@tmf_ciclica/ciclicastorybook 1.0.14 → 1.1.0

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,4 +1,4 @@
1
- "use strict";var gs=Object.create;var Mo=Object.defineProperty;var ys=Object.getOwnPropertyDescriptor;var vs=Object.getOwnPropertyNames;var bs=Object.getPrototypeOf,_s=Object.prototype.hasOwnProperty;var Cs=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of vs(t))!_s.call(e,o)&&o!==n&&Mo(e,o,{get:()=>t[o],enumerable:!(r=ys(t,o))||r.enumerable});return e};var Lo=(e,t,n)=>(n=e!=null?gs(bs(e)):{},Cs(t||!e||!e.__esModule?Mo(n,"default",{value:e,enumerable:!0}):n,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react"),je=require("react-i18next"),ho=require("framer-motion"),xs=require("zustand"),Es=require("d3"),Ss=require("mapbox-gl"),wt=require("react-redux"),hr=require("react-dom"),No=require("maplibre-gl"),go=require("@reduxjs/toolkit"),Io=require("@mui/material"),an=require("@emotion/react"),Ts=require("@emotion/styled"),ws=require("react-router-dom");function Ki(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 X=Ki(v),Do=Ki(Es);function Zi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Rt(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Wn={exports:{}},Cn={};/**
1
+ "use strict";var gs=Object.create;var jo=Object.defineProperty;var ys=Object.getOwnPropertyDescriptor;var vs=Object.getOwnPropertyNames;var bs=Object.getPrototypeOf,_s=Object.prototype.hasOwnProperty;var Cs=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of vs(t))!_s.call(e,o)&&o!==n&&jo(e,o,{get:()=>t[o],enumerable:!(r=ys(t,o))||r.enumerable});return e};var Mo=(e,t,n)=>(n=e!=null?gs(bs(e)):{},Cs(t||!e||!e.__esModule?jo(n,"default",{value:e,enumerable:!0}):n,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("react"),je=require("react-i18next"),ho=require("framer-motion"),xs=require("zustand"),Es=require("d3"),Ss=require("mapbox-gl"),on=require("react-redux"),hr=require("react-dom"),Lo=require("maplibre-gl"),Yi=require("@reduxjs/toolkit"),No=require("@mui/material"),an=require("@emotion/react"),Ts=require("@emotion/styled"),ws=require("react-router-dom");function Ki(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 X=Ki(v),Io=Ki(Es);function Zi(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function kt(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var Wn={exports:{}},Cn={};/**
2
2
  * @license React
3
3
  * react-jsx-runtime.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
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 Fo;function ks(){if(Fo)return Cn;Fo=1;var e=v,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(l,c,u){var m,d={},p=null,_=null;u!==void 0&&(p=""+u),c.key!==void 0&&(p=""+c.key),c.ref!==void 0&&(_=c.ref);for(m in c)r.call(c,m)&&!i.hasOwnProperty(m)&&(d[m]=c[m]);if(l&&l.defaultProps)for(m in c=l.defaultProps,c)d[m]===void 0&&(d[m]=c[m]);return{$$typeof:t,type:l,key:p,ref:_,props:d,_owner:o.current}}return Cn.Fragment=n,Cn.jsx=a,Cn.jsxs=a,Cn}var xn={};/**
9
+ */var Do;function ks(){if(Do)return Cn;Do=1;var e=v,t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function a(l,c,u){var m,d={},p=null,_=null;u!==void 0&&(p=""+u),c.key!==void 0&&(p=""+c.key),c.ref!==void 0&&(_=c.ref);for(m in c)r.call(c,m)&&!i.hasOwnProperty(m)&&(d[m]=c[m]);if(l&&l.defaultProps)for(m in c=l.defaultProps,c)d[m]===void 0&&(d[m]=c[m]);return{$$typeof:t,type:l,key:p,ref:_,props:d,_owner:o.current}}return Cn.Fragment=n,Cn.jsx=a,Cn.jsxs=a,Cn}var xn={};/**
10
10
  * @license React
11
11
  * react-jsx-runtime.development.js
12
12
  *
@@ -14,43 +14,43 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */var Bo;function Rs(){return Bo||(Bo=1,process.env.NODE_ENV!=="production"&&function(){var e=v,t=Symbol.for("react.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.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),b=Symbol.iterator,f="@@iterator";function x(h){if(h===null||typeof h!="object")return null;var R=b&&h[b]||h[f];return typeof R=="function"?R:null}var E=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function T(h){{for(var R=arguments.length,I=new Array(R>1?R-1:0),te=1;te<R;te++)I[te-1]=arguments[te];k("error",h,I)}}function k(h,R,I){{var te=E.ReactDebugCurrentFrame,J=te.getStackAddendum();J!==""&&(R+="%s",I=I.concat([J]));var oe=I.map(function(ue){return String(ue)});oe.unshift("Warning: "+R),Function.prototype.apply.call(console[h],console,oe)}}var j=!1,C=!1,z=!1,y=!1,w=!1,S;S=Symbol.for("react.module.reference");function A(h){return!!(typeof h=="string"||typeof h=="function"||h===r||h===i||w||h===o||h===u||h===m||y||h===_||j||C||z||typeof h=="object"&&h!==null&&(h.$$typeof===p||h.$$typeof===d||h.$$typeof===a||h.$$typeof===l||h.$$typeof===c||h.$$typeof===S||h.getModuleId!==void 0))}function N(h,R,I){var te=h.displayName;if(te)return te;var J=R.displayName||R.name||"";return J!==""?I+"("+J+")":I}function H(h){return h.displayName||"Context"}function V(h){if(h==null)return null;if(typeof h.tag=="number"&&T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case m:return"SuspenseList"}if(typeof h=="object")switch(h.$$typeof){case l:var R=h;return H(R)+".Consumer";case a:var I=h;return H(I._context)+".Provider";case c:return N(h,h.render,"ForwardRef");case d:var te=h.displayName||null;return te!==null?te:V(h.type)||"Memo";case p:{var J=h,oe=J._payload,ue=J._init;try{return V(ue(oe))}catch{return null}}}return null}var ce=Object.assign,Y=0,ie,re,we,Ae,O,M,Q;function q(){}q.__reactDisabledLog=!0;function F(){{if(Y===0){ie=console.log,re=console.info,we=console.warn,Ae=console.error,O=console.group,M=console.groupCollapsed,Q=console.groupEnd;var h={configurable:!0,enumerable:!0,value:q,writable:!0};Object.defineProperties(console,{info:h,log:h,warn:h,error:h,group:h,groupCollapsed:h,groupEnd:h})}Y++}}function ee(){{if(Y--,Y===0){var h={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ce({},h,{value:ie}),info:ce({},h,{value:re}),warn:ce({},h,{value:we}),error:ce({},h,{value:Ae}),group:ce({},h,{value:O}),groupCollapsed:ce({},h,{value:M}),groupEnd:ce({},h,{value:Q})})}Y<0&&T("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Z=E.ReactCurrentDispatcher,K;function U(h,R,I){{if(K===void 0)try{throw Error()}catch(J){var te=J.stack.trim().match(/\n( *(at )?)/);K=te&&te[1]||""}return`
18
- `+K+h}}var G=!1,ne;{var be=typeof WeakMap=="function"?WeakMap:Map;ne=new be}function P(h,R){if(!h||G)return"";{var I=ne.get(h);if(I!==void 0)return I}var te;G=!0;var J=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var oe;oe=Z.current,Z.current=null,F();try{if(R){var ue=function(){throw Error()};if(Object.defineProperty(ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ue,[])}catch(Ke){te=Ke}Reflect.construct(h,[],ue)}else{try{ue.call()}catch(Ke){te=Ke}h.call(ue.prototype)}}else{try{throw Error()}catch(Ke){te=Ke}h()}}catch(Ke){if(Ke&&te&&typeof Ke.stack=="string"){for(var le=Ke.stack.split(`
17
+ */var Fo;function Os(){return Fo||(Fo=1,process.env.NODE_ENV!=="production"&&function(){var e=v,t=Symbol.for("react.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.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),b=Symbol.iterator,f="@@iterator";function x(h){if(h===null||typeof h!="object")return null;var O=b&&h[b]||h[f];return typeof O=="function"?O:null}var E=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function T(h){{for(var O=arguments.length,I=new Array(O>1?O-1:0),te=1;te<O;te++)I[te-1]=arguments[te];k("error",h,I)}}function k(h,O,I){{var te=E.ReactDebugCurrentFrame,J=te.getStackAddendum();J!==""&&(O+="%s",I=I.concat([J]));var oe=I.map(function(ue){return String(ue)});oe.unshift("Warning: "+O),Function.prototype.apply.call(console[h],console,oe)}}var j=!1,C=!1,z=!1,y=!1,w=!1,S;S=Symbol.for("react.module.reference");function A(h){return!!(typeof h=="string"||typeof h=="function"||h===r||h===i||w||h===o||h===u||h===m||y||h===_||j||C||z||typeof h=="object"&&h!==null&&(h.$$typeof===p||h.$$typeof===d||h.$$typeof===a||h.$$typeof===l||h.$$typeof===c||h.$$typeof===S||h.getModuleId!==void 0))}function N(h,O,I){var te=h.displayName;if(te)return te;var J=O.displayName||O.name||"";return J!==""?I+"("+J+")":I}function H(h){return h.displayName||"Context"}function V(h){if(h==null)return null;if(typeof h.tag=="number"&&T("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case r:return"Fragment";case n:return"Portal";case i:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case m:return"SuspenseList"}if(typeof h=="object")switch(h.$$typeof){case l:var O=h;return H(O)+".Consumer";case a:var I=h;return H(I._context)+".Provider";case c:return N(h,h.render,"ForwardRef");case d:var te=h.displayName||null;return te!==null?te:V(h.type)||"Memo";case p:{var J=h,oe=J._payload,ue=J._init;try{return V(ue(oe))}catch{return null}}}return null}var ce=Object.assign,Y=0,ie,re,we,Ae,R,M,Q;function q(){}q.__reactDisabledLog=!0;function F(){{if(Y===0){ie=console.log,re=console.info,we=console.warn,Ae=console.error,R=console.group,M=console.groupCollapsed,Q=console.groupEnd;var h={configurable:!0,enumerable:!0,value:q,writable:!0};Object.defineProperties(console,{info:h,log:h,warn:h,error:h,group:h,groupCollapsed:h,groupEnd:h})}Y++}}function ee(){{if(Y--,Y===0){var h={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ce({},h,{value:ie}),info:ce({},h,{value:re}),warn:ce({},h,{value:we}),error:ce({},h,{value:Ae}),group:ce({},h,{value:R}),groupCollapsed:ce({},h,{value:M}),groupEnd:ce({},h,{value:Q})})}Y<0&&T("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Z=E.ReactCurrentDispatcher,K;function U(h,O,I){{if(K===void 0)try{throw Error()}catch(J){var te=J.stack.trim().match(/\n( *(at )?)/);K=te&&te[1]||""}return`
18
+ `+K+h}}var G=!1,ne;{var be=typeof WeakMap=="function"?WeakMap:Map;ne=new be}function P(h,O){if(!h||G)return"";{var I=ne.get(h);if(I!==void 0)return I}var te;G=!0;var J=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var oe;oe=Z.current,Z.current=null,F();try{if(O){var ue=function(){throw Error()};if(Object.defineProperty(ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ue,[])}catch(Ke){te=Ke}Reflect.construct(h,[],ue)}else{try{ue.call()}catch(Ke){te=Ke}h.call(ue.prototype)}}else{try{throw Error()}catch(Ke){te=Ke}h()}}catch(Ke){if(Ke&&te&&typeof Ke.stack=="string"){for(var le=Ke.stack.split(`
19
19
  `),Se=te.stack.split(`
20
20
  `),Me=le.length-1,Ne=Se.length-1;Me>=1&&Ne>=0&&le[Me]!==Se[Ne];)Ne--;for(;Me>=1&&Ne>=0;Me--,Ne--)if(le[Me]!==Se[Ne]){if(Me!==1||Ne!==1)do if(Me--,Ne--,Ne<0||le[Me]!==Se[Ne]){var ot=`
21
- `+le[Me].replace(" at new "," at ");return h.displayName&&ot.includes("<anonymous>")&&(ot=ot.replace("<anonymous>",h.displayName)),typeof h=="function"&&ne.set(h,ot),ot}while(Me>=1&&Ne>=0);break}}}finally{G=!1,Z.current=oe,ee(),Error.prepareStackTrace=J}var Yt=h?h.displayName||h.name:"",jt=Yt?U(Yt):"";return typeof h=="function"&&ne.set(h,jt),jt}function _e(h,R,I){return P(h,!1)}function ae(h){var R=h.prototype;return!!(R&&R.isReactComponent)}function se(h,R,I){if(h==null)return"";if(typeof h=="function")return P(h,ae(h));if(typeof h=="string")return U(h);switch(h){case u:return U("Suspense");case m:return U("SuspenseList")}if(typeof h=="object")switch(h.$$typeof){case c:return _e(h.render);case d:return se(h.type,R,I);case p:{var te=h,J=te._payload,oe=te._init;try{return se(oe(J),R,I)}catch{}}}return""}var Re=Object.prototype.hasOwnProperty,Ue={},qe=E.ReactDebugCurrentFrame;function dt(h){if(h){var R=h._owner,I=se(h.type,h._source,R?R.type:null);qe.setExtraStackFrame(I)}else qe.setExtraStackFrame(null)}function De(h,R,I,te,J){{var oe=Function.call.bind(Re);for(var ue in h)if(oe(h,ue)){var le=void 0;try{if(typeof h[ue]!="function"){var Se=Error((te||"React class")+": "+I+" type `"+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof h[ue]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Se.name="Invariant Violation",Se}le=h[ue](R,ue,te,I,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Me){le=Me}le&&!(le instanceof Error)&&(dt(J),T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",te||"React class",I,ue,typeof le),dt(null)),le instanceof Error&&!(le.message in Ue)&&(Ue[le.message]=!0,dt(J),T("Failed %s type: %s",I,le.message),dt(null))}}}var Ct=Array.isArray;function Pt(h){return Ct(h)}function hn(h){{var R=typeof Symbol=="function"&&Symbol.toStringTag,I=R&&h[Symbol.toStringTag]||h.constructor.name||"Object";return I}}function gn(h){try{return yn(h),!1}catch{return!0}}function yn(h){return""+h}function zt(h){if(gn(h))return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",hn(h)),yn(h)}var xt=E.ReactCurrentOwner,$={key:!0,ref:!0,__self:!0,__source:!0},D,W;function fe(h){if(Re.call(h,"ref")){var R=Object.getOwnPropertyDescriptor(h,"ref").get;if(R&&R.isReactWarning)return!1}return h.ref!==void 0}function me(h){if(Re.call(h,"key")){var R=Object.getOwnPropertyDescriptor(h,"key").get;if(R&&R.isReactWarning)return!1}return h.key!==void 0}function de(h,R){typeof h.ref=="string"&&xt.current}function Je(h,R){{var I=function(){D||(D=!0,T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",R))};I.isReactWarning=!0,Object.defineProperty(h,"key",{get:I,configurable:!0})}}function rt(h,R){{var I=function(){W||(W=!0,T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",R))};I.isReactWarning=!0,Object.defineProperty(h,"ref",{get:I,configurable:!0})}}var pe=function(h,R,I,te,J,oe,ue){var le={$$typeof:t,type:h,key:R,ref:I,props:ue,_owner:oe};return le._store={},Object.defineProperty(le._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(le,"_self",{configurable:!1,enumerable:!1,writable:!1,value:te}),Object.defineProperty(le,"_source",{configurable:!1,enumerable:!1,writable:!1,value:J}),Object.freeze&&(Object.freeze(le.props),Object.freeze(le)),le};function Ye(h,R,I,te,J){{var oe,ue={},le=null,Se=null;I!==void 0&&(zt(I),le=""+I),me(R)&&(zt(R.key),le=""+R.key),fe(R)&&(Se=R.ref,de(R,J));for(oe in R)Re.call(R,oe)&&!$.hasOwnProperty(oe)&&(ue[oe]=R[oe]);if(h&&h.defaultProps){var Me=h.defaultProps;for(oe in Me)ue[oe]===void 0&&(ue[oe]=Me[oe])}if(le||Se){var Ne=typeof h=="function"?h.displayName||h.name||"Unknown":h;le&&Je(ue,Ne),Se&&rt(ue,Ne)}return pe(h,le,Se,J,te,xt.current,ue)}}var ft=E.ReactCurrentOwner,vn=E.ReactDebugCurrentFrame;function yt(h){if(h){var R=h._owner,I=se(h.type,h._source,R?R.type:null);vn.setExtraStackFrame(I)}else vn.setExtraStackFrame(null)}var Vt;Vt=!1;function $t(h){return typeof h=="object"&&h!==null&&h.$$typeof===t}function Ut(){{if(ft.current){var h=V(ft.current.type);if(h)return`
21
+ `+le[Me].replace(" at new "," at ");return h.displayName&&ot.includes("<anonymous>")&&(ot=ot.replace("<anonymous>",h.displayName)),typeof h=="function"&&ne.set(h,ot),ot}while(Me>=1&&Ne>=0);break}}}finally{G=!1,Z.current=oe,ee(),Error.prepareStackTrace=J}var Ht=h?h.displayName||h.name:"",$t=Ht?U(Ht):"";return typeof h=="function"&&ne.set(h,$t),$t}function _e(h,O,I){return P(h,!1)}function ae(h){var O=h.prototype;return!!(O&&O.isReactComponent)}function se(h,O,I){if(h==null)return"";if(typeof h=="function")return P(h,ae(h));if(typeof h=="string")return U(h);switch(h){case u:return U("Suspense");case m:return U("SuspenseList")}if(typeof h=="object")switch(h.$$typeof){case c:return _e(h.render);case d:return se(h.type,O,I);case p:{var te=h,J=te._payload,oe=te._init;try{return se(oe(J),O,I)}catch{}}}return""}var Oe=Object.prototype.hasOwnProperty,Ue={},qe=E.ReactDebugCurrentFrame;function dt(h){if(h){var O=h._owner,I=se(h.type,h._source,O?O.type:null);qe.setExtraStackFrame(I)}else qe.setExtraStackFrame(null)}function De(h,O,I,te,J){{var oe=Function.call.bind(Oe);for(var ue in h)if(oe(h,ue)){var le=void 0;try{if(typeof h[ue]!="function"){var Se=Error((te||"React class")+": "+I+" type `"+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof h[ue]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Se.name="Invariant Violation",Se}le=h[ue](O,ue,te,I,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Me){le=Me}le&&!(le instanceof Error)&&(dt(J),T("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",te||"React class",I,ue,typeof le),dt(null)),le instanceof Error&&!(le.message in Ue)&&(Ue[le.message]=!0,dt(J),T("Failed %s type: %s",I,le.message),dt(null))}}}var Ct=Array.isArray;function At(h){return Ct(h)}function hn(h){{var O=typeof Symbol=="function"&&Symbol.toStringTag,I=O&&h[Symbol.toStringTag]||h.constructor.name||"Object";return I}}function gn(h){try{return yn(h),!1}catch{return!0}}function yn(h){return""+h}function Bt(h){if(gn(h))return T("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",hn(h)),yn(h)}var xt=E.ReactCurrentOwner,$={key:!0,ref:!0,__self:!0,__source:!0},D,W;function fe(h){if(Oe.call(h,"ref")){var O=Object.getOwnPropertyDescriptor(h,"ref").get;if(O&&O.isReactWarning)return!1}return h.ref!==void 0}function me(h){if(Oe.call(h,"key")){var O=Object.getOwnPropertyDescriptor(h,"key").get;if(O&&O.isReactWarning)return!1}return h.key!==void 0}function de(h,O){typeof h.ref=="string"&&xt.current}function Je(h,O){{var I=function(){D||(D=!0,T("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",O))};I.isReactWarning=!0,Object.defineProperty(h,"key",{get:I,configurable:!0})}}function rt(h,O){{var I=function(){W||(W=!0,T("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",O))};I.isReactWarning=!0,Object.defineProperty(h,"ref",{get:I,configurable:!0})}}var pe=function(h,O,I,te,J,oe,ue){var le={$$typeof:t,type:h,key:O,ref:I,props:ue,_owner:oe};return le._store={},Object.defineProperty(le._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(le,"_self",{configurable:!1,enumerable:!1,writable:!1,value:te}),Object.defineProperty(le,"_source",{configurable:!1,enumerable:!1,writable:!1,value:J}),Object.freeze&&(Object.freeze(le.props),Object.freeze(le)),le};function Ye(h,O,I,te,J){{var oe,ue={},le=null,Se=null;I!==void 0&&(Bt(I),le=""+I),me(O)&&(Bt(O.key),le=""+O.key),fe(O)&&(Se=O.ref,de(O,J));for(oe in O)Oe.call(O,oe)&&!$.hasOwnProperty(oe)&&(ue[oe]=O[oe]);if(h&&h.defaultProps){var Me=h.defaultProps;for(oe in Me)ue[oe]===void 0&&(ue[oe]=Me[oe])}if(le||Se){var Ne=typeof h=="function"?h.displayName||h.name||"Unknown":h;le&&Je(ue,Ne),Se&&rt(ue,Ne)}return pe(h,le,Se,J,te,xt.current,ue)}}var ft=E.ReactCurrentOwner,vn=E.ReactDebugCurrentFrame;function yt(h){if(h){var O=h._owner,I=se(h.type,h._source,O?O.type:null);vn.setExtraStackFrame(I)}else vn.setExtraStackFrame(null)}var zt;zt=!1;function Pt(h){return typeof h=="object"&&h!==null&&h.$$typeof===t}function Vt(){{if(ft.current){var h=V(ft.current.type);if(h)return`
22
22
 
23
- Check the render method of \``+h+"`."}return""}}function Vn(h){return""}var qt={};function Ar(h){{var R=Ut();if(!R){var I=typeof h=="string"?h:h.displayName||h.name;I&&(R=`
23
+ Check the render method of \``+h+"`."}return""}}function Vn(h){return""}var Ut={};function Ar(h){{var O=Vt();if(!O){var I=typeof h=="string"?h:h.displayName||h.name;I&&(O=`
24
24
 
25
- Check the top-level render call using <`+I+">.")}return R}}function Wt(h,R){{if(!h._store||h._store.validated||h.key!=null)return;h._store.validated=!0;var I=Ar(R);if(qt[I])return;qt[I]=!0;var te="";h&&h._owner&&h._owner!==ft.current&&(te=" It was passed a child from "+V(h._owner.type)+"."),yt(h),T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',I,te),yt(null)}}function Ht(h,R){{if(typeof h!="object")return;if(Pt(h))for(var I=0;I<h.length;I++){var te=h[I];$t(te)&&Wt(te,R)}else if($t(h))h._store&&(h._store.validated=!0);else if(h){var J=x(h);if(typeof J=="function"&&J!==h.entries)for(var oe=J.call(h),ue;!(ue=oe.next()).done;)$t(ue.value)&&Wt(ue.value,R)}}}function bn(h){{var R=h.type;if(R==null||typeof R=="string")return;var I;if(typeof R=="function")I=R.propTypes;else if(typeof R=="object"&&(R.$$typeof===c||R.$$typeof===d))I=R.propTypes;else return;if(I){var te=V(R);De(I,h.props,"prop",te,h)}else if(R.PropTypes!==void 0&&!Vt){Vt=!0;var J=V(R);T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",J||"Unknown")}typeof R.getDefaultProps=="function"&&!R.getDefaultProps.isReactClassApproved&&T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Pr(h){{for(var R=Object.keys(h.props),I=0;I<R.length;I++){var te=R[I];if(te!=="children"&&te!=="key"){yt(h),T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",te),yt(null);break}}h.ref!==null&&(yt(h),T("Invalid attribute `ref` supplied to `React.Fragment`."),yt(null))}}var Un={};function qn(h,R,I,te,J,oe){{var ue=A(h);if(!ue){var le="";(h===void 0||typeof h=="object"&&h!==null&&Object.keys(h).length===0)&&(le+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Se=Vn();Se?le+=Se:le+=Ut();var Me;h===null?Me="null":Pt(h)?Me="array":h!==void 0&&h.$$typeof===t?(Me="<"+(V(h.type)||"Unknown")+" />",le=" Did you accidentally export a JSX literal instead of a component?"):Me=typeof h,T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Me,le)}var Ne=Ye(h,R,I,J,oe);if(Ne==null)return Ne;if(ue){var ot=R.children;if(ot!==void 0)if(te)if(Pt(ot)){for(var Yt=0;Yt<ot.length;Yt++)Ht(ot[Yt],h);Object.freeze&&Object.freeze(ot)}else T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Ht(ot,h)}if(Re.call(R,"key")){var jt=V(h),Ke=Object.keys(R).filter(function(hs){return hs!=="key"}),Lr=Ke.length>0?"{key: someKey, "+Ke.join(": ..., ")+": ...}":"{key: someKey}";if(!Un[jt+Lr]){var ps=Ke.length>0?"{"+Ke.join(": ..., ")+": ...}":"{}";T(`A props object containing a "key" prop is being spread into JSX:
25
+ Check the top-level render call using <`+I+">.")}return O}}function qt(h,O){{if(!h._store||h._store.validated||h.key!=null)return;h._store.validated=!0;var I=Ar(O);if(Ut[I])return;Ut[I]=!0;var te="";h&&h._owner&&h._owner!==ft.current&&(te=" It was passed a child from "+V(h._owner.type)+"."),yt(h),T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',I,te),yt(null)}}function Wt(h,O){{if(typeof h!="object")return;if(At(h))for(var I=0;I<h.length;I++){var te=h[I];Pt(te)&&qt(te,O)}else if(Pt(h))h._store&&(h._store.validated=!0);else if(h){var J=x(h);if(typeof J=="function"&&J!==h.entries)for(var oe=J.call(h),ue;!(ue=oe.next()).done;)Pt(ue.value)&&qt(ue.value,O)}}}function bn(h){{var O=h.type;if(O==null||typeof O=="string")return;var I;if(typeof O=="function")I=O.propTypes;else if(typeof O=="object"&&(O.$$typeof===c||O.$$typeof===d))I=O.propTypes;else return;if(I){var te=V(O);De(I,h.props,"prop",te,h)}else if(O.PropTypes!==void 0&&!zt){zt=!0;var J=V(O);T("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",J||"Unknown")}typeof O.getDefaultProps=="function"&&!O.getDefaultProps.isReactClassApproved&&T("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Pr(h){{for(var O=Object.keys(h.props),I=0;I<O.length;I++){var te=O[I];if(te!=="children"&&te!=="key"){yt(h),T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",te),yt(null);break}}h.ref!==null&&(yt(h),T("Invalid attribute `ref` supplied to `React.Fragment`."),yt(null))}}var Un={};function qn(h,O,I,te,J,oe){{var ue=A(h);if(!ue){var le="";(h===void 0||typeof h=="object"&&h!==null&&Object.keys(h).length===0)&&(le+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Se=Vn();Se?le+=Se:le+=Vt();var Me;h===null?Me="null":At(h)?Me="array":h!==void 0&&h.$$typeof===t?(Me="<"+(V(h.type)||"Unknown")+" />",le=" Did you accidentally export a JSX literal instead of a component?"):Me=typeof h,T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Me,le)}var Ne=Ye(h,O,I,J,oe);if(Ne==null)return Ne;if(ue){var ot=O.children;if(ot!==void 0)if(te)if(At(ot)){for(var Ht=0;Ht<ot.length;Ht++)Wt(ot[Ht],h);Object.freeze&&Object.freeze(ot)}else T("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else Wt(ot,h)}if(Oe.call(O,"key")){var $t=V(h),Ke=Object.keys(O).filter(function(hs){return hs!=="key"}),Lr=Ke.length>0?"{key: someKey, "+Ke.join(": ..., ")+": ...}":"{key: someKey}";if(!Un[$t+Lr]){var ps=Ke.length>0?"{"+Ke.join(": ..., ")+": ...}":"{}";T(`A props object containing a "key" prop is being spread into JSX:
26
26
  let props = %s;
27
27
  <%s {...props} />
28
28
  React keys must be passed directly to JSX without using spread:
29
29
  let props = %s;
30
- <%s key={someKey} {...props} />`,Lr,jt,ps,jt),Un[jt+Lr]=!0}}return h===r?Pr(Ne):bn(Ne),Ne}}function $r(h,R,I){return qn(h,R,I,!0)}function jr(h,R,I){return qn(h,R,I,!1)}var Mr=jr,_n=$r;xn.Fragment=r,xn.jsx=Mr,xn.jsxs=_n}()),xn}var zo;function Os(){return zo||(zo=1,process.env.NODE_ENV==="production"?Wn.exports=ks():Wn.exports=Rs()),Wn.exports}var g=Os();const As="_ambitSelector_f07c1_2",Ps="_header_f07c1_13",$s="_nameDateContainer_f07c1_23",js="_ambitName_f07c1_39",Ms="_ambitDate_f07c1_48",Ls="_buttonsContainer_f07c1_51",Kt={ambitSelector:As,header:Ps,nameDateContainer:$s,ambitName:js,ambitDate:Ms,buttonsContainer:Ls},Ns="_ambitItem_1ueih_2",Is="_ambitNameDate_1ueih_16",Ds="_ambitName_1ueih_16",Fs="_ambitDate_1ueih_35",Bs="_ambitButtons_1ueih_38",En={ambitItem:Ns,ambitNameDate:Is,ambitName:Ds,ambitDate:Fs,ambitButtons:Bs},zs="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",Vs="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",Vo="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",Us="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",qs="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";var Hn={exports:{}},Yn={exports:{}},ye={};/** @license React v16.13.1
30
+ <%s key={someKey} {...props} />`,Lr,$t,ps,$t),Un[$t+Lr]=!0}}return h===r?Pr(Ne):bn(Ne),Ne}}function $r(h,O,I){return qn(h,O,I,!0)}function jr(h,O,I){return qn(h,O,I,!1)}var Mr=jr,_n=$r;xn.Fragment=r,xn.jsx=Mr,xn.jsxs=_n}()),xn}var Bo;function Rs(){return Bo||(Bo=1,process.env.NODE_ENV==="production"?Wn.exports=ks():Wn.exports=Os()),Wn.exports}var g=Rs();const As="_ambitSelector_f07c1_2",Ps="_header_f07c1_13",$s="_nameDateContainer_f07c1_23",js="_ambitName_f07c1_39",Ms="_ambitDate_f07c1_48",Ls="_buttonsContainer_f07c1_51",Yt={ambitSelector:As,header:Ps,nameDateContainer:$s,ambitName:js,ambitDate:Ms,buttonsContainer:Ls},Ns="_ambitItem_1ueih_2",Is="_ambitNameDate_1ueih_16",Ds="_ambitName_1ueih_16",Fs="_ambitDate_1ueih_35",Bs="_ambitButtons_1ueih_38",En={ambitItem:Ns,ambitNameDate:Is,ambitName:Ds,ambitDate:Fs,ambitButtons:Bs},zs="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",Vs="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",zo="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",Us="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",qs="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";var Hn={exports:{}},Yn={exports:{}},ye={};/** @license React v16.13.1
31
31
  * react-is.production.min.js
32
32
  *
33
33
  * Copyright (c) Facebook, Inc. and its affiliates.
34
34
  *
35
35
  * This source code is licensed under the MIT license found in the
36
36
  * LICENSE file in the root directory of this source tree.
37
- */var Uo;function Ws(){if(Uo)return ye;Uo=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,_=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function k(C){if(typeof C=="object"&&C!==null){var z=C.$$typeof;switch(z){case t:switch(C=C.type,C){case c:case u:case r:case i:case o:case d:return C;default:switch(C=C&&C.$$typeof,C){case l:case m:case b:case _:case a:return C;default:return z}}case n:return z}}}function j(C){return k(C)===u}return ye.AsyncMode=c,ye.ConcurrentMode=u,ye.ContextConsumer=l,ye.ContextProvider=a,ye.Element=t,ye.ForwardRef=m,ye.Fragment=r,ye.Lazy=b,ye.Memo=_,ye.Portal=n,ye.Profiler=i,ye.StrictMode=o,ye.Suspense=d,ye.isAsyncMode=function(C){return j(C)||k(C)===c},ye.isConcurrentMode=j,ye.isContextConsumer=function(C){return k(C)===l},ye.isContextProvider=function(C){return k(C)===a},ye.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},ye.isForwardRef=function(C){return k(C)===m},ye.isFragment=function(C){return k(C)===r},ye.isLazy=function(C){return k(C)===b},ye.isMemo=function(C){return k(C)===_},ye.isPortal=function(C){return k(C)===n},ye.isProfiler=function(C){return k(C)===i},ye.isStrictMode=function(C){return k(C)===o},ye.isSuspense=function(C){return k(C)===d},ye.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===u||C===i||C===o||C===d||C===p||typeof C=="object"&&C!==null&&(C.$$typeof===b||C.$$typeof===_||C.$$typeof===a||C.$$typeof===l||C.$$typeof===m||C.$$typeof===x||C.$$typeof===E||C.$$typeof===T||C.$$typeof===f)},ye.typeOf=k,ye}var ve={};/** @license React v16.13.1
37
+ */var Vo;function Ws(){if(Vo)return ye;Vo=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,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,_=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function k(C){if(typeof C=="object"&&C!==null){var z=C.$$typeof;switch(z){case t:switch(C=C.type,C){case c:case u:case r:case i:case o:case d:return C;default:switch(C=C&&C.$$typeof,C){case l:case m:case b:case _:case a:return C;default:return z}}case n:return z}}}function j(C){return k(C)===u}return ye.AsyncMode=c,ye.ConcurrentMode=u,ye.ContextConsumer=l,ye.ContextProvider=a,ye.Element=t,ye.ForwardRef=m,ye.Fragment=r,ye.Lazy=b,ye.Memo=_,ye.Portal=n,ye.Profiler=i,ye.StrictMode=o,ye.Suspense=d,ye.isAsyncMode=function(C){return j(C)||k(C)===c},ye.isConcurrentMode=j,ye.isContextConsumer=function(C){return k(C)===l},ye.isContextProvider=function(C){return k(C)===a},ye.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},ye.isForwardRef=function(C){return k(C)===m},ye.isFragment=function(C){return k(C)===r},ye.isLazy=function(C){return k(C)===b},ye.isMemo=function(C){return k(C)===_},ye.isPortal=function(C){return k(C)===n},ye.isProfiler=function(C){return k(C)===i},ye.isStrictMode=function(C){return k(C)===o},ye.isSuspense=function(C){return k(C)===d},ye.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===r||C===u||C===i||C===o||C===d||C===p||typeof C=="object"&&C!==null&&(C.$$typeof===b||C.$$typeof===_||C.$$typeof===a||C.$$typeof===l||C.$$typeof===m||C.$$typeof===x||C.$$typeof===E||C.$$typeof===T||C.$$typeof===f)},ye.typeOf=k,ye}var ve={};/** @license React v16.13.1
38
38
  * react-is.development.js
39
39
  *
40
40
  * Copyright (c) Facebook, Inc. and its affiliates.
41
41
  *
42
42
  * This source code is licensed under the MIT license found in the
43
43
  * LICENSE file in the root directory of this source tree.
44
- */var qo;function Hs(){return qo||(qo=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,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,_=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function k(P){return typeof P=="string"||typeof P=="function"||P===r||P===u||P===i||P===o||P===d||P===p||typeof P=="object"&&P!==null&&(P.$$typeof===b||P.$$typeof===_||P.$$typeof===a||P.$$typeof===l||P.$$typeof===m||P.$$typeof===x||P.$$typeof===E||P.$$typeof===T||P.$$typeof===f)}function j(P){if(typeof P=="object"&&P!==null){var _e=P.$$typeof;switch(_e){case t:var ae=P.type;switch(ae){case c:case u:case r:case i:case o:case d:return ae;default:var se=ae&&ae.$$typeof;switch(se){case l:case m:case b:case _:case a:return se;default:return _e}}case n:return _e}}}var C=c,z=u,y=l,w=a,S=t,A=m,N=r,H=b,V=_,ce=n,Y=i,ie=o,re=d,we=!1;function Ae(P){return we||(we=!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.")),O(P)||j(P)===c}function O(P){return j(P)===u}function M(P){return j(P)===l}function Q(P){return j(P)===a}function q(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function F(P){return j(P)===m}function ee(P){return j(P)===r}function Z(P){return j(P)===b}function K(P){return j(P)===_}function U(P){return j(P)===n}function G(P){return j(P)===i}function ne(P){return j(P)===o}function be(P){return j(P)===d}ve.AsyncMode=C,ve.ConcurrentMode=z,ve.ContextConsumer=y,ve.ContextProvider=w,ve.Element=S,ve.ForwardRef=A,ve.Fragment=N,ve.Lazy=H,ve.Memo=V,ve.Portal=ce,ve.Profiler=Y,ve.StrictMode=ie,ve.Suspense=re,ve.isAsyncMode=Ae,ve.isConcurrentMode=O,ve.isContextConsumer=M,ve.isContextProvider=Q,ve.isElement=q,ve.isForwardRef=F,ve.isFragment=ee,ve.isLazy=Z,ve.isMemo=K,ve.isPortal=U,ve.isProfiler=G,ve.isStrictMode=ne,ve.isSuspense=be,ve.isValidElementType=k,ve.typeOf=j}()),ve}var Wo;function Gi(){return Wo||(Wo=1,process.env.NODE_ENV==="production"?Yn.exports=Ws():Yn.exports=Hs()),Yn.exports}/*
44
+ */var Uo;function Hs(){return Uo||(Uo=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,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,_=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,f=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,T=e?Symbol.for("react.scope"):60119;function k(P){return typeof P=="string"||typeof P=="function"||P===r||P===u||P===i||P===o||P===d||P===p||typeof P=="object"&&P!==null&&(P.$$typeof===b||P.$$typeof===_||P.$$typeof===a||P.$$typeof===l||P.$$typeof===m||P.$$typeof===x||P.$$typeof===E||P.$$typeof===T||P.$$typeof===f)}function j(P){if(typeof P=="object"&&P!==null){var _e=P.$$typeof;switch(_e){case t:var ae=P.type;switch(ae){case c:case u:case r:case i:case o:case d:return ae;default:var se=ae&&ae.$$typeof;switch(se){case l:case m:case b:case _:case a:return se;default:return _e}}case n:return _e}}}var C=c,z=u,y=l,w=a,S=t,A=m,N=r,H=b,V=_,ce=n,Y=i,ie=o,re=d,we=!1;function Ae(P){return we||(we=!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.")),R(P)||j(P)===c}function R(P){return j(P)===u}function M(P){return j(P)===l}function Q(P){return j(P)===a}function q(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function F(P){return j(P)===m}function ee(P){return j(P)===r}function Z(P){return j(P)===b}function K(P){return j(P)===_}function U(P){return j(P)===n}function G(P){return j(P)===i}function ne(P){return j(P)===o}function be(P){return j(P)===d}ve.AsyncMode=C,ve.ConcurrentMode=z,ve.ContextConsumer=y,ve.ContextProvider=w,ve.Element=S,ve.ForwardRef=A,ve.Fragment=N,ve.Lazy=H,ve.Memo=V,ve.Portal=ce,ve.Profiler=Y,ve.StrictMode=ie,ve.Suspense=re,ve.isAsyncMode=Ae,ve.isConcurrentMode=R,ve.isContextConsumer=M,ve.isContextProvider=Q,ve.isElement=q,ve.isForwardRef=F,ve.isFragment=ee,ve.isLazy=Z,ve.isMemo=K,ve.isPortal=U,ve.isProfiler=G,ve.isStrictMode=ne,ve.isSuspense=be,ve.isValidElementType=k,ve.typeOf=j}()),ve}var qo;function Gi(){return qo||(qo=1,process.env.NODE_ENV==="production"?Yn.exports=Ws():Yn.exports=Hs()),Yn.exports}/*
45
45
  object-assign
46
46
  (c) Sindre Sorhus
47
47
  @license MIT
48
- */var Nr,Ho;function Ys(){if(Ho)return Nr;Ho=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 c=Object.getOwnPropertyNames(a).map(function(m){return a[m]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(m){u[m]=m}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Nr=o()?Object.assign:function(i,a){for(var l,c=r(i),u,m=1;m<arguments.length;m++){l=Object(arguments[m]);for(var d in l)t.call(l,d)&&(c[d]=l[d]);if(e){u=e(l);for(var p=0;p<u.length;p++)n.call(l,u[p])&&(c[u[p]]=l[u[p]])}}return c},Nr}var Ir,Yo;function yo(){if(Yo)return Ir;Yo=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ir=e,Ir}var Dr,Ko;function Ji(){return Ko||(Ko=1,Dr=Function.call.bind(Object.prototype.hasOwnProperty)),Dr}var Fr,Zo;function Ks(){if(Zo)return Fr;Zo=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=yo(),n={},r=Ji();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,l,c,u){if(process.env.NODE_ENV!=="production"){for(var m in i)if(r(i,m)){var d;try{if(typeof i[m]!="function"){var p=Error((c||"React class")+": "+l+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}d=i[m](a,m,c,l,null,t)}catch(b){d=b}if(d&&!(d instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var _=u?u():"";e("Failed "+l+" type: "+d.message+(_??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Fr=o,Fr}var Br,Go;function Zs(){if(Go)return Br;Go=1;var e=Gi(),t=Ys(),n=yo(),r=Ji(),o=Ks(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return Br=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function d(O){var M=O&&(u&&O[u]||O[m]);if(typeof M=="function")return M}var p="<<anonymous>>",_={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:T(),arrayOf:k,element:j(),elementType:C(),instanceOf:z,node:A(),objectOf:w,oneOf:y,oneOfType:S,shape:H,exact:V};function b(O,M){return O===M?O!==0||1/O===1/M:O!==O&&M!==M}function f(O,M){this.message=O,this.data=M&&typeof M=="object"?M:{},this.stack=""}f.prototype=Error.prototype;function x(O){if(process.env.NODE_ENV!=="production")var M={},Q=0;function q(ee,Z,K,U,G,ne,be){if(U=U||p,ne=ne||K,be!==n){if(c){var P=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 P.name="Invariant Violation",P}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var _e=U+":"+K;!M[_e]&&Q<3&&(i("You are manually calling a React.PropTypes validation function for the `"+ne+"` 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."),M[_e]=!0,Q++)}}return Z[K]==null?ee?Z[K]===null?new f("The "+G+" `"+ne+"` is marked as required "+("in `"+U+"`, but its value is `null`.")):new f("The "+G+" `"+ne+"` is marked as required in "+("`"+U+"`, but its value is `undefined`.")):null:O(Z,K,U,G,ne)}var F=q.bind(null,!1);return F.isRequired=q.bind(null,!0),F}function E(O){function M(Q,q,F,ee,Z,K){var U=Q[q],G=ie(U);if(G!==O){var ne=re(U);return new f("Invalid "+ee+" `"+Z+"` of type "+("`"+ne+"` supplied to `"+F+"`, expected ")+("`"+O+"`."),{expectedType:O})}return null}return x(M)}function T(){return x(a)}function k(O){function M(Q,q,F,ee,Z){if(typeof O!="function")return new f("Property `"+Z+"` of component `"+F+"` has invalid PropType notation inside arrayOf.");var K=Q[q];if(!Array.isArray(K)){var U=ie(K);return new f("Invalid "+ee+" `"+Z+"` of type "+("`"+U+"` supplied to `"+F+"`, expected an array."))}for(var G=0;G<K.length;G++){var ne=O(K,G,F,ee,Z+"["+G+"]",n);if(ne instanceof Error)return ne}return null}return x(M)}function j(){function O(M,Q,q,F,ee){var Z=M[Q];if(!l(Z)){var K=ie(Z);return new f("Invalid "+F+" `"+ee+"` of type "+("`"+K+"` supplied to `"+q+"`, expected a single ReactElement."))}return null}return x(O)}function C(){function O(M,Q,q,F,ee){var Z=M[Q];if(!e.isValidElementType(Z)){var K=ie(Z);return new f("Invalid "+F+" `"+ee+"` of type "+("`"+K+"` supplied to `"+q+"`, expected a single ReactElement type."))}return null}return x(O)}function z(O){function M(Q,q,F,ee,Z){if(!(Q[q]instanceof O)){var K=O.name||p,U=Ae(Q[q]);return new f("Invalid "+ee+" `"+Z+"` of type "+("`"+U+"` supplied to `"+F+"`, expected ")+("instance of `"+K+"`."))}return null}return x(M)}function y(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function M(Q,q,F,ee,Z){for(var K=Q[q],U=0;U<O.length;U++)if(b(K,O[U]))return null;var G=JSON.stringify(O,function(be,P){var _e=re(P);return _e==="symbol"?String(P):P});return new f("Invalid "+ee+" `"+Z+"` of value `"+String(K)+"` "+("supplied to `"+F+"`, expected one of "+G+"."))}return x(M)}function w(O){function M(Q,q,F,ee,Z){if(typeof O!="function")return new f("Property `"+Z+"` of component `"+F+"` has invalid PropType notation inside objectOf.");var K=Q[q],U=ie(K);if(U!=="object")return new f("Invalid "+ee+" `"+Z+"` of type "+("`"+U+"` supplied to `"+F+"`, expected an object."));for(var G in K)if(r(K,G)){var ne=O(K,G,F,ee,Z+"."+G,n);if(ne instanceof Error)return ne}return null}return x(M)}function S(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var M=0;M<O.length;M++){var Q=O[M];if(typeof Q!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+we(Q)+" at index "+M+"."),a}function q(F,ee,Z,K,U){for(var G=[],ne=0;ne<O.length;ne++){var be=O[ne],P=be(F,ee,Z,K,U,n);if(P==null)return null;P.data&&r(P.data,"expectedType")&&G.push(P.data.expectedType)}var _e=G.length>0?", expected one of type ["+G.join(", ")+"]":"";return new f("Invalid "+K+" `"+U+"` supplied to "+("`"+Z+"`"+_e+"."))}return x(q)}function A(){function O(M,Q,q,F,ee){return ce(M[Q])?null:new f("Invalid "+F+" `"+ee+"` supplied to "+("`"+q+"`, expected a ReactNode."))}return x(O)}function N(O,M,Q,q,F){return new f((O||"React class")+": "+M+" type `"+Q+"."+q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+F+"`.")}function H(O){function M(Q,q,F,ee,Z){var K=Q[q],U=ie(K);if(U!=="object")return new f("Invalid "+ee+" `"+Z+"` of type `"+U+"` "+("supplied to `"+F+"`, expected `object`."));for(var G in O){var ne=O[G];if(typeof ne!="function")return N(F,ee,Z,G,re(ne));var be=ne(K,G,F,ee,Z+"."+G,n);if(be)return be}return null}return x(M)}function V(O){function M(Q,q,F,ee,Z){var K=Q[q],U=ie(K);if(U!=="object")return new f("Invalid "+ee+" `"+Z+"` of type `"+U+"` "+("supplied to `"+F+"`, expected `object`."));var G=t({},Q[q],O);for(var ne in G){var be=O[ne];if(r(O,ne)&&typeof be!="function")return N(F,ee,Z,ne,re(be));if(!be)return new f("Invalid "+ee+" `"+Z+"` key `"+ne+"` supplied to `"+F+"`.\nBad object: "+JSON.stringify(Q[q],null," ")+`
49
- Valid keys: `+JSON.stringify(Object.keys(O),null," "));var P=be(K,ne,F,ee,Z+"."+ne,n);if(P)return P}return null}return x(M)}function ce(O){switch(typeof O){case"number":case"string":case"undefined":return!0;case"boolean":return!O;case"object":if(Array.isArray(O))return O.every(ce);if(O===null||l(O))return!0;var M=d(O);if(M){var Q=M.call(O),q;if(M!==O.entries){for(;!(q=Q.next()).done;)if(!ce(q.value))return!1}else for(;!(q=Q.next()).done;){var F=q.value;if(F&&!ce(F[1]))return!1}}else return!1;return!0;default:return!1}}function Y(O,M){return O==="symbol"?!0:M?M["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&M instanceof Symbol:!1}function ie(O){var M=typeof O;return Array.isArray(O)?"array":O instanceof RegExp?"object":Y(M,O)?"symbol":M}function re(O){if(typeof O>"u"||O===null)return""+O;var M=ie(O);if(M==="object"){if(O instanceof Date)return"date";if(O instanceof RegExp)return"regexp"}return M}function we(O){var M=re(O);switch(M){case"array":case"object":return"an "+M;case"boolean":case"date":case"regexp":return"a "+M;default:return M}}function Ae(O){return!O.constructor||!O.constructor.name?p:O.constructor.name}return _.checkPropTypes=o,_.resetWarningCache=o.resetWarningCache,_.PropTypes=_,_},Br}var zr,Jo;function Gs(){if(Jo)return zr;Jo=1;var e=yo();function t(){}function n(){}return n.resetWarningCache=t,zr=function(){function r(a,l,c,u,m,d){if(d!==e){var p=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 p.name="Invariant Violation",p}}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},zr}var Xo;function Js(){if(Xo)return Hn.exports;if(Xo=1,process.env.NODE_ENV!=="production"){var e=Gi(),t=!0;Hn.exports=Zs()(e.isElement,t)}else Hn.exports=Gs()();return Hn.exports}var Xs=Js();const s=Zi(Xs),Xi=({ambit:e,onClickCopy:t,onClickDelete:n,onClickFilters:r,onClickAmbit:o,isBeingProcessed:i,isActive:a,activeColor:l,fontColor:c,moreInfo:u})=>{const{name:m,date:d,id:p}=e;return g.jsxs("div",{className:En.ambitItem,style:{borderBottom:`1px solid ${c}`},children:[g.jsxs("div",{className:En.ambitNameDate,onClick:()=>o(p),children:[g.jsxs("div",{className:En.ambitName,children:[g.jsx("img",{src:a?Us:qs}),g.jsx("span",{style:{color:a?l:c},children:m})]}),g.jsx("div",{className:En.ambitDate,children:new Date(d).toLocaleDateString()})]}),g.jsxs("div",{className:En.ambitButtons,children:[i&&g.jsx("img",{src:Vo}),g.jsx("button",{onClick:()=>r(p),children:g.jsx("img",{src:Vo})}),g.jsx("button",{onClick:()=>t(p),children:g.jsx("img",{src:Vs})}),g.jsx("button",{onClick:()=>n(p),children:g.jsx("img",{src:zs})})]})]})};Xi.propTypes={ambit:s.shape({name:s.string.isRequired,date:s.string.isRequired,id:s.string.isRequired}).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 Qs="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",Qi=({ambitList:e,activeAmbitId:t,fontColor:n="#605B56",activeColor:r,nameLabel:o,dateLabel:i,onClickCopy:a=m=>console.log(`Copy ambit: ${m}`),onCLickDelete:l=m=>console.log(`Delete ambit: ${m}`),onClickFilters:c=m=>console.log(`Filters clicked: ${m}`),onClickAmbit:u=m=>console.log(`OnCLickAmbit: ${m}`)})=>{const{t:m}=je.useTranslation();return g.jsxs("div",{className:Kt.ambitSelector,style:{color:n},children:[g.jsxs("div",{className:Kt.header,style:{borderBottom:`1px solid ${n}`},children:[g.jsxs("div",{className:Kt.nameDateContainer,children:[g.jsx("div",{className:Kt.ambitName,children:g.jsx("span",{children:m(o)})}),g.jsx("div",{className:Kt.ambitDate,children:g.jsx("span",{children:m(i)})})]}),g.jsx("div",{className:Kt.buttonsContainer})]}),e&&e.length>0&&e.map(d=>g.jsx(Xi,{isActive:t==d.id,ambit:d,fontColor:n,activeColor:r,onClickCopy:a,onClickDelete:l,onClickFilters:c,onClickAmbit:u},`ambitKey${d.id}`))]})};Qi.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};const el="_buttonsContainer_1audx_2",tl="_vertical_1audx_6",nl="_horizontal_1audx_9",rl="_button_1audx_2",ol="_active_1audx_25",il="_buttonName_1audx_28",Mt={buttonsContainer:el,vertical:tl,horizontal:nl,button:rl,active:ol,buttonName:il},al="_left_19lnt_3",sl="_top_19lnt_33",ll="_bottom_19lnt_66",cl="_right_19lnt_97",ul={left:al,top:sl,bottom:ll,right:cl},vo=({text:e,position:t,styleCustom:n=null})=>{const{t:r}=je.useTranslation();return g.jsx("div",{className:`tooltip ${ul[t]}`,style:n,children:r(e)})};vo.propTypes={text:s.string.isRequired,position:s.oneOf(["top","bottom","left","right"]).isRequired,styleCustom:s.object};const ea=({buttons:e=[],orientation:t="horizontal",showName:n=!0,namePosition:r="right",useTooltip:o=!1,tooltipPosition:i="top"})=>{const{t:a}=je.useTranslation();return g.jsx("div",{className:`${Mt.buttonsContainer} ${t==="vertical"&&Mt.vertical}
50
- ${t==="horizontal"&&Mt.horizontal}`,children:e.map((l,c)=>{const{icon:u,activeIcon:m,isActive:d,name:p,onClick:_}=l,b=g.jsxs(g.Fragment,{children:[n&&r==="left"&&g.jsx("span",{className:Mt.buttonName,children:a(p)}),g.jsx("img",{src:d?m:u,alt:a(p)}),n&&r==="right"&&g.jsx("span",{className:Mt.buttonName,children:a(p)})]});return g.jsxs("div",{className:"tooltip-parent",children:[g.jsx("button",{onClick:_,className:`${Mt.button}
51
- ${d&&Mt.active}`,children:b}),o&&g.jsx(vo,{text:p,position:i})]},c)})})};ea.propTypes={buttons:s.arrayOf(s.shape({icon:s.node.isRequired,activeIcon:s.node,isActive:s.bool,name:s.string,onClick:s.func})).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 dl="_indicatorsCategory_1cu33_2",fl="_title_1cu33_5",ml="_list_1cu33_11",Vr={indicatorsCategory:dl,title:fl,list:ml},Ot=({isOpen:e,onClick:t,children:n,color:r,activeColor:o="#F8A925",title:i="Title",height:a=53,titleFontStyles:l,showBottomBar:c=!0,titleMarginChildren:u=25})=>{const{t:m}=je.useTranslation();return g.jsxs(ho.motion.div,{className:Vr.indicatorsCategory,initial:{height:`${a}px`},animate:{height:e?"auto":`${a}px`},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:e&&c?`1px solid ${o}`:"0px",marginBottom:e?"20px":"0px"},children:[g.jsxs("h2",{style:{...l,marginBottom:u||"auto"},className:`${Vr.title}`,onClick:t,children:[g.jsx("span",{style:{color:e?o:r},children:e?"-":"+"}),g.jsx("span",{style:{marginLeft:12,color:e?o:r},children:m(i)})]}),g.jsx("div",{className:Vr.content,children:n})]})};Ot.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 pl=()=>g.jsx("div",{children:"EditAmbit"}),hl="_AppliedFiltersContainer_s8ooe_2",gl="_AppliedFilterContent_s8ooe_10",Qo={AppliedFiltersContainer:hl,AppliedFilterContent:gl},Ve=xs.create(e=>({activeCategory:"",activeSubCategory:"",selectedIndicator:"",tematicalFiltersSelected:[],fontColor:"#605B56",inputsColor:"#605B56"})),ta=({title:e,onClick:t,isOpen:n=!0,textColor:r="#ffffff",backgroundColor:o="#605B5680"})=>{const{t:i}=je.useTranslation(),{tematicalFiltersSelected:a}=Ve(c=>c),l=c=>{Ve.setState(u=>({tematicalFiltersSelected:u.tematicalFiltersSelected.filter(m=>m.code!==c)}))};return g.jsx(Ot,{isOpen:n,onClick:t,title:e?i(e):"Applied Filters",children:g.jsx("div",{className:Qo.AppliedFiltersContainer,children:a==null?void 0:a.map((c,u)=>g.jsxs("div",{className:Qo.AppliedFilterContent,style:{color:r,background:o},children:[c.code,g.jsx("img",{src:Qs,alt:"CloseIcon",onClick:()=>l(c.code),style:{cursor:"pointer"}})]},u))})})};ta.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}))};const na=({title:e,onClick:t,isOpen:n=!0,textColor:r="#ffffff",backgroundColor:o="#605B5680"})=>{const{t:i}=je.useTranslation();return Ve(a=>a),g.jsx(Ot,{isOpen:n,onClick:t,title:e?i(e):"Geographical Filters",children:"A"})};na.propTypes={isOpen:s.bool,onClick:s.func,title:s.string,textColor:s.string,backgroundColor:s.string};const yl=[{category:"Arq",name:"indicators.arq",haveFilters:!0,escenariFilters:!0,subcategories:[{subcategory:"subcPrinc",name:"indicators.arq_princ",indicators:[{ikey:0,name:"indicators.us_prn.title",code:["us_prn"],type:"cat",category:"Arq",category_ods:"ODS_00",category_aue:"AUE_00",values:[{fillColor:"#FEB740",codename:["Residencial","VincViv"],title:"indicators.us_prn.Residencial"},{fillColor:"#033364",codename:["Público"],title:"indicators.us_prn.Public"},{fillColor:"#5190cb",codename:["EnseñanzaCultural"],title:"indicators.us_prn.EnsenyamentCultural"},{fillColor:"#18ae9a",codename:["Deportivo","Piscinas"],title:"indicators.us_prn.Esportiu"},{fillColor:"#850d15",codename:["Comercial"],title:"indicators.us_prn.Comercial"},{fillColor:"#ee2e39",codename:["HoteleroRestauración"],title:"indicators.us_prn.HotelerRestauracio"},{fillColor:"#ed602e",codename:["Oficinas"],title:"indicators.us_prn.Oficines"},{fillColor:"#843059",codename:["Almacenaje"],title:"indicators.us_prn.Emmagatzematge"},{fillColor:"#CB719D",codename:["Industrial","IndustrialResto"],title:"indicators.us_prn.Industrial"},{fillColor:"#7f7f7f",codename:["Aparcamiento"],title:"indicators.us_prn.Aparcament"},{fillColor:"#dadae3",codename:["OtrosCal","OtrosNoCal","Común","Sin datos","","None","null","undefined"," ","NoCodificado"],title:"indicators.us_prn.None"}],time:!1},{ikey:1,name:"indicators.al_max.title",code:["al_max","al_max_cat"],codeAbs:"al_max",codeCat:"al_max_cat",type:"both",category:"Arq",category_ods:"ODS_00",category_aue:"AUE_00",maxColor:"#00544a",midColor:"#00ae9a",minColor:"#00ffe1",minValue:-1,maxValue:14,minValueIndicador:"indicators.al_max.minValueIndicador",maxValueIndicador:"indicators.al_max.maxValueIndicador",unit:"indicators.al_max.unit",values:[{fillColor:"#00544a",codename:["De PB+3 o mes"],title:"indicators.al_max.PB+3"},{fillColor:"#00ae9a",codename:["De PB a PB+2"],title:"indicators.al_max.PB"},{fillColor:"#00ffe1",codename:["De P-1 en avall"],title:"indicators.al_max.De P-1"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.al_max.None"}],time:!1},{ikey:2,name:"indicators.uni_pluri.title",code:["uni_pluri"],type:"cat",category:"Arq",values:[{fillColor:"#BA1C27",codename:["Bloque"],title:"indicators.uni_pluri.Bloc"},{fillColor:"#FEB740",codename:["Colectiva"],title:"indicators.uni_pluri.Colectiva"},{fillColor:"#508FCC",codename:["Unifamiliar"],title:"indicators.uni_pluri.Unifamiliar"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.uni_pluri.None"}],time:!1},{ikey:3,name:"indicators.any_const.title",code:["any_const","any_const_cat"],type:"both",category:"Arq",category_ods:"ODS_00",category_aue:"AUE_00",maxColor:"#D2DBE4",midColor:"#7E98B2",minColor:"#003366",minValue:1900,maxValue:2020,minValueIndicador:"indicators.any_const.minValueIndicador",maxValueIndicador:"indicators.any_const.maxValueIndicador",unit:"indicators.any_const.Unit",values:[{fillColor:"#D2DBE4 ",codename:["De 2008 a 2020"],title:"indicators.any_const.2008Adelante"},{fillColor:"#A8BACB",codename:["De 1981 a 2007"],title:"indicators.any_const.1981-2007"},{fillColor:"#7E98B2",codename:["De 1961 a 1980"],title:"indicators.any_const.1961-1980"},{fillColor:"#547699",codename:["De 1941 a 1960"],title:"indicators.any_const.1941-1960"},{fillColor:"#2A557F",codename:["De 1901 a 1940"],title:"indicators.any_const.1901-1940"},{fillColor:"#003366",codename:["Hasta 1900"],title:"indicators.any_const.hasta-1900"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.any_const.None"}],time:!1},{ikey:4,name:"indicators.num_viv.title",code:["num_viv","num_viv_cat"],type:"abs",category:"Arq",category_ods:"ODS_00",category_aue:"AUE_02",maxColor:"#684A1A",midColor:"#AF7F2C",minColor:"#FEB740",minValue:1,maxValue:40,minValueIndicador:"indicators.num_viv.minValueIndicador",maxValueIndicador:"indicators.num_viv.maxValueIndicador",unit:"indicators.num_viv.unit",time:!1,values:[{fillColor:"#684A1A",codename:["40 o más viviendas"],title:"indicators.num_viv.40+"},{fillColor:"#8A6423",codename:["De 20 a 39 viviendas"],title:"indicators.num_viv.20-39"},{fillColor:"#AF7F2C",codename:["De 10 a 19 viviendas"],title:"indicators.num_viv.10-19"},{fillColor:"#D69A36",codename:["De 5 a 9 viviendas"],title:"indicators.num_viv.5-9"},{fillColor:"#FEB740",codename:["De 2 a 4 viviendas"],title:"indicators.num_viv.2-4"},{fillColor:"#3e77b2",codename:["Unifamiliar"],title:"indicators.num_viv.unifamiliar"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," ","No residencial"],title:"indicators.num_viv.none"}]},{ikey:5,name:"indicators.cluster.title",code:["nom_cluster"],type:"cat",category_ods:"ODS_07",category_aue:"AUE_01",category:"Arq",values:[{fillColor:"#022952",codename:["A"],title:"indicators.cluster.A"},{fillColor:"#033364",codename:["B"],title:"indicators.cluster.B"},{fillColor:"#2A6298",codename:["C"],title:"indicators.cluster.C"},{fillColor:"#5190CB",codename:["D"],title:"indicators.cluster.D"},{fillColor:"#6CA2D4",codename:["E"],title:"indicators.cluster.E"},{fillColor:"#79ABD8",codename:["F"],title:"indicators.cluster.F"},{fillColor:"#605225",codename:["G"],title:"indicators.cluster.G"},{fillColor:"#7B692F",codename:["H"],title:"indicators.cluster.H"},{fillColor:"#BD9037",codename:["I"],title:"indicators.cluster.I"},{fillColor:"#FEB63E",codename:["J"],title:"indicators.cluster.J"},{fillColor:"#FECC7A",codename:["K"],title:"indicators.cluster.K"},{fillColor:"#FED798",codename:["L"],title:"indicators.cluster.L"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.cluster.none"}],time:!1}]},{subcategory:"subcPrinc22",name:"indicators.arq_princ22",indicators:[{ikey:0,name:"indicators.us_prn.title",code:["us_prn"],type:"cat",category:"Arq",category_ods:"ODS_00",category_aue:"AUE_00",values:[{fillColor:"#FEB740",codename:["Residencial","VincViv"],title:"indicators.us_prn.Residencial"},{fillColor:"#033364",codename:["Público"],title:"indicators.us_prn.Public"},{fillColor:"#5190cb",codename:["EnseñanzaCultural"],title:"indicators.us_prn.EnsenyamentCultural"},{fillColor:"#18ae9a",codename:["Deportivo","Piscinas"],title:"indicators.us_prn.Esportiu"},{fillColor:"#850d15",codename:["Comercial"],title:"indicators.us_prn.Comercial"},{fillColor:"#ee2e39",codename:["HoteleroRestauración"],title:"indicators.us_prn.HotelerRestauracio"},{fillColor:"#ed602e",codename:["Oficinas"],title:"indicators.us_prn.Oficines"},{fillColor:"#843059",codename:["Almacenaje"],title:"indicators.us_prn.Emmagatzematge"},{fillColor:"#CB719D",codename:["Industrial","IndustrialResto"],title:"indicators.us_prn.Industrial"},{fillColor:"#7f7f7f",codename:["Aparcamiento"],title:"indicators.us_prn.Aparcament"},{fillColor:"#dadae3",codename:["OtrosCal","OtrosNoCal","Común","Sin datos","","None","null","undefined"," ","NoCodificado"],title:"indicators.us_prn.None"}],time:!1},{ikey:1,name:"indicators.al_max.title",code:["al_max","al_max_cat"],type:"both",category:"Arq",category_ods:"ODS_00",category_aue:"AUE_00",maxColor:"#00544a",midColor:"#00ae9a",minColor:"#00ffe1",minValue:-1,maxValue:14,minValueIndicador:"indicators.al_max.minValueIndicador",maxValueIndicador:"indicators.al_max.maxValueIndicador",unit:"indicators.al_max.unit",values:[{fillColor:"#00544a",codename:["De PB+3 o mes"],title:"indicators.al_max.PB+3"},{fillColor:"#00ae9a",codename:["De PB a PB+2"],title:"indicators.al_max.PB"},{fillColor:"#00ffe1",codename:["De P-1 en avall"],title:"indicators.al_max.De P-1"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.al_max.None"}],time:!1},{ikey:2,name:"indicators.uni_pluri.title",code:["uni_pluri"],type:"cat",category:"Arq",values:[{fillColor:"#BA1C27",codename:["Bloque"],title:"indicators.uni_pluri.Bloc"},{fillColor:"#FEB740",codename:["Colectiva"],title:"indicators.uni_pluri.Colectiva"},{fillColor:"#508FCC",codename:["Unifamiliar"],title:"indicators.uni_pluri.Unifamiliar"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.uni_pluri.None"}],time:!1},{ikey:3,name:"indicators.any_const.title",code:["any_const","any_const_cat"],type:"both",category:"Arq",category_ods:"ODS_00",category_aue:"AUE_00",maxColor:"#D2DBE4",midColor:"#7E98B2",minColor:"#003366",minValue:1900,maxValue:2020,minValueIndicador:"indicators.any_const.minValueIndicador",maxValueIndicador:"indicators.any_const.maxValueIndicador",unit:"indicators.any_const.Unit",values:[{fillColor:"#D2DBE4 ",codename:["De 2008 a 2020"],title:"indicators.any_const.2008Adelante"},{fillColor:"#A8BACB",codename:["De 1981 a 2007"],title:"indicators.any_const.1981-2007"},{fillColor:"#7E98B2",codename:["De 1961 a 1980"],title:"indicators.any_const.1961-1980"},{fillColor:"#547699",codename:["De 1941 a 1960"],title:"indicators.any_const.1941-1960"},{fillColor:"#2A557F",codename:["De 1901 a 1940"],title:"indicators.any_const.1901-1940"},{fillColor:"#003366",codename:["Hasta 1900"],title:"indicators.any_const.hasta-1900"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.any_const.None"}],time:!1},{ikey:4,name:"indicators.num_viv.title",code:["num_viv","num_viv_cat"],type:"abs",category:"Arq",category_ods:"ODS_00",category_aue:"AUE_02",maxColor:"#684A1A",midColor:"#AF7F2C",minColor:"#FEB740",minValue:1,maxValue:40,minValueIndicador:"indicators.num_viv.minValueIndicador",maxValueIndicador:"indicators.num_viv.maxValueIndicador",unit:"indicators.num_viv.unit",time:!1,values:[{fillColor:"#684A1A",codename:["40 o más viviendas"],title:"indicators.num_viv.40+"},{fillColor:"#8A6423",codename:["De 20 a 39 viviendas"],title:"indicators.num_viv.20-39"},{fillColor:"#AF7F2C",codename:["De 10 a 19 viviendas"],title:"indicators.num_viv.10-19"},{fillColor:"#D69A36",codename:["De 5 a 9 viviendas"],title:"indicators.num_viv.5-9"},{fillColor:"#FEB740",codename:["De 2 a 4 viviendas"],title:"indicators.num_viv.2-4"},{fillColor:"#3e77b2",codename:["Unifamiliar"],title:"indicators.num_viv.unifamiliar"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," ","No residencial"],title:"indicators.num_viv.none"}]},{ikey:5,name:"indicators.cluster.title",code:["nom_cluster"],type:"cat",category_ods:"ODS_07",category_aue:"AUE_01",category:"Arq",values:[{fillColor:"#022952",codename:["A"],title:"indicators.cluster.A"},{fillColor:"#033364",codename:["B"],title:"indicators.cluster.B"},{fillColor:"#2A6298",codename:["C"],title:"indicators.cluster.C"},{fillColor:"#5190CB",codename:["D"],title:"indicators.cluster.D"},{fillColor:"#6CA2D4",codename:["E"],title:"indicators.cluster.E"},{fillColor:"#79ABD8",codename:["F"],title:"indicators.cluster.F"},{fillColor:"#605225",codename:["G"],title:"indicators.cluster.G"},{fillColor:"#7B692F",codename:["H"],title:"indicators.cluster.H"},{fillColor:"#BD9037",codename:["I"],title:"indicators.cluster.I"},{fillColor:"#FEB63E",codename:["J"],title:"indicators.cluster.J"},{fillColor:"#FECC7A",codename:["K"],title:"indicators.cluster.K"},{fillColor:"#FED798",codename:["L"],title:"indicators.cluster.L"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.cluster.none"}],time:!1}]}]},{category:"Ene",name:"indicators.ene",haveFilters:!0,escenariFilters:!0,indicators:[{ikey:6,name:"indicators.cal.title",code:["demanda_cal_m2"],type:"abs",category:"Ene",category_ods:"ODS_07",category_aue:"AUE_04",maxColor:"#EE2C3C",midColor:"#FDB740",minColor:"#00544A",minValue:1,maxValue:120,minValueIndicador:"indicators.cal.minValueIndicador",maxValueIndicador:"indicators.cal.maxValueIndicador",unit:"indicators.cal.unit",time:!0,values:[{fillColor:"#00544A",codename:["Menos de 20 kWh/m2"],title:"indicators.demanda_cal_m2.<20"},{fillColor:"#386A48",codename:["Entre 20 y 40 kWh/m2"],title:"indicators.demanda_cal_m2.20-40"},{fillColor:"#708046",codename:["Entre 40 y 60 kWh/m2"],title:"indicators.demanda_cal_m2.40-60"},{fillColor:"#A99643",codename:["Entre 60 y 80 kWh/m2"],title:"indicators.demanda_cal_m2.60-80"},{fillColor:"#E1AC41",codename:["Entre 80 y 100 kWh/m2"],title:"indicators.demanda_cal_m2.80-100"},{fillColor:"#FBA840",codename:["Entre 100 y 120 kWh/m2"],title:"indicators.demanda_cal_m2.100-120"},{fillColor:"#F8893F",codename:["Entre 120 y 140 kWh/m2"],title:"indicators.demanda_cal_m2.120-140"},{fillColor:"#F56A3E",codename:["Entre 140 y 160 kWh/m2"],title:"indicators.demanda_cal_m2.140-160"},{fillColor:"#F14B3D",codename:["Entre 160 y 180 kWh/m2"],title:"indicators.demanda_cal_m2.160-180"},{fillColor:"#EE2C3C",codename:["Más de 180 kWh/m2"],title:"indicators.demanda_cal_m2.>180"}]},{ikey:7,name:"indicators.cal_post.title",code:["demanda_post_m2"],type:"abs",category:"Ene",category_ods:"ODS_07",category_aue:"AUE_04",minColor:"#00544A",midColor:"#FDB740",maxColor:"#EE2C3C",minValue:10,maxValue:150,minValueIndicador:"indicators.cal_post.minValueIndicador",maxValueIndicador:"indicators.cal_post.maxValueIndicador",unit:"indicators.cal_post.unit",time:!1,values:[{fillColor:"#00544A",codename:["Menos de 20 kWh/m2"],title:"indicators.demanda_cal_m2.<20"},{fillColor:"#386A48",codename:["Entre 20 y 40 kWh/m2"],title:"indicators.demanda_cal_m2.20-40"},{fillColor:"#708046",codename:["Entre 40 y 60 kWh/m2"],title:"indicators.demanda_cal_m2.40-60"},{fillColor:"#A99643",codename:["Entre 60 y 80 kWh/m2"],title:"indicators.demanda_cal_m2.60-80"},{fillColor:"#E1AC41",codename:["Entre 80 y 100 kWh/m2"],title:"indicators.demanda_cal_m2.80-100"},{fillColor:"#FBA840",codename:["Entre 100 y 120 kWh/m2"],title:"indicators.demanda_cal_m2.100-120"},{fillColor:"#F8893F",codename:["Entre 120 y 140 kWh/m2"],title:"indicators.demanda_cal_m2.120-140"},{fillColor:"#F56A3E",codename:["Entre 140 y 160 kWh/m2"],title:"indicators.demanda_cal_m2.140-160"},{fillColor:"#F14B3D",codename:["Entre 160 y 180 kWh/m2"],title:"indicators.demanda_cal_m2.160-180"},{fillColor:"#EE2C3C",codename:["Más de 180 kWh/m2"],title:"indicators.demanda_cal_m2.>180"}]},{ikey:8,name:"indicators.qual_cal.title",code:["qual"],type:"cat",category:"Ene",category_ods:"ODS_07",category_aue:"AUE_04",values:[{fillColor:"#306f35",codename:["A"],title:"indicators.qual_cal.A"},{fillColor:"#4aa038",codename:["B"],title:"indicators.qual_cal.B"},{fillColor:"#a7c52b",codename:["C"],title:"indicators.qual_cal.C"},{fillColor:"#efe737",codename:["D"],title:"indicators.qual_cal.D"},{fillColor:"#feb63e",codename:["E"],title:"indicators.qual_cal.E"},{fillColor:"#f35d3e",codename:["F"],title:"indicators.qual_cal.F"},{fillColor:"#cb2f45",codename:["G"],title:"indicators.qual_cal.G"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.qual_cal.none"}],time:!0},{ikey:9,name:"indicators.qual_cal_post.title",code:["qual_post"],type:"cat",category:"Ene",category_ods:"ODS_07",category_aue:"AUE_04",values:[{fillColor:"#306f35",codename:["A"],title:"indicators.qual_cal.A"},{fillColor:"#4aa038",codename:["B"],title:"indicators.qual_cal.B"},{fillColor:"#a7c52b",codename:["C"],title:"indicators.qual_cal.C"},{fillColor:"#efe737",codename:["D"],title:"indicators.qual_cal.D"},{fillColor:"#feb63e",codename:["E"],title:"indicators.qual_cal.E"},{fillColor:"#f35d3e",codename:["F"],title:"indicators.qual_cal.F"},{fillColor:"#cb2f45",codename:["G"],title:"indicators.qual_cal.G"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.qual_cal.none"}],time:!1},{ikey:10,name:"indicators.reduccio_demanda.title",code:["reduccio_demanda"],type:"abs",category:"Ene",category_ods:"ODS_07",category_aue:"AUE_04",maxColor:"#00544A",midColor:"#FDB740",minColor:"#EE2C3C",minValue:0,maxValue:100,minValueIndicador:"indicators.cal.minValueIndicador",maxValueIndicador:"indicators.cal.maxValueIndicador",unit:"indicators.reduccio_demanda.unit",time:!0,values:[{fillColor:"#00544A",codename:["Entre 90 y 100 %"],title:"indicators.reduccio_demanda.100"},{fillColor:"#386A48",codename:["Entre 80 y 90 %"],title:"indicators.reduccio_demanda.90"},{fillColor:"#708046",codename:["Entre 70 y 80 %"],title:"indicators.reduccio_demanda.80"},{fillColor:"#A99643",codename:["Entre 60 y 70 %"],title:"indicators.reduccio_demanda.70"},{fillColor:"#E1AC41",codename:["Entre 50 y 60 %"],title:"indicators.reduccio_demanda.60"},{fillColor:"#FBA840",codename:["Entre 40 y 50 %"],title:"indicators.reduccio_demanda.50"},{fillColor:"#F8893F",codename:["Entre 30 y 40 %"],title:"indicators.reduccio_demanda.40"},{fillColor:"#F56A3E",codename:["Entre 20 y 30 %"],title:"indicators.reduccio_demanda.30"},{fillColor:"#F14B3D",codename:["Entre 10 y 20 %"],title:"indicators.reduccio_demanda.20"},{fillColor:"#EE2C3C",codename:["Menos de 10 %"],title:"indicators.reduccio_demanda.10"}]}]},{category:"Eco",name:"indicators.eco",haveFilters:!0,escenariFilters:!1,indicators:[{ikey:11,name:"indicators.cost_int.title",code:["cost_int"],type:"twoUnits",category:"Eco",category_ods:"ODS_11",category_aue:"AUE_02",maxColor:"#EE2C3C",midColor:"#FDB740",minColor:"#003366",values:[{unit:"€/m2",minValue:100,maxValue:900,minValueIndicador:"indicators.cost_int_m2.minValueIndicador",maxValueIndicador:"indicators.cost_int_m2.maxValueIndicador",codename:"cost_int_m2",title:"indicators.cost_int.cost_int_m2"},{unit:"€/Vivienda",minValue:1e4,maxValue:18e3,minValueIndicador:"indicators.cost_int_hab.minValueIndicador",maxValueIndicador:"indicators.cost_int_hab.maxValueIndicador",codename:"cost_int_hab",title:"indicators.cost_int.cost_int_hab"}],time:!1,cats_hab:[{fillColor:"#003366",codename:["Menos de 10.000 €/viv"],title:"indicators.cost_int.<10"},{fillColor:"#38505E",codename:["Entre 10.000 y 11.000 €/viv"],title:"indicators.cost_int.10-11"},{fillColor:"#706E55",codename:["Entre 11.000 y 12.000 €/viv"],title:"indicators.cost_int.11-12"},{fillColor:"#A98B4D",codename:["Entre 12.000 y 13.000 €/viv"],title:"indicators.cost_int.12-13"},{fillColor:"#E1A844",codename:["Entre 13.000 y 14.000 €/viv"],title:"indicators.cost_int.13-14"},{fillColor:"#FBA840",codename:["Entre 14.000 y 15.000 €/viv"],title:"indicators.cost_int.14-15"},{fillColor:"#F8893F",codename:["Entre 15.000 y 16.000 €/viv"],title:"indicators.cost_int.15-16"},{fillColor:"#F56A3E",codename:["Entre 16.000 y 17.000 €/viv"],title:"indicators.cost_int.16-17"},{fillColor:"#F14B3D",codename:["Entre 17.000 y 18.000 €/viv"],title:"indicators.cost_int.17-18"},{fillColor:"#EE2C3C",codename:["Más de 18.000 €/viv"],title:"indicators.cost_int.>18"}],cats_m2:[{fillColor:"#003366",codename:["Menos de 100 €/m2·viv"],title:"indicators.cost_int.<100"},{fillColor:"#38505E",codename:["Entre 100 y 200 €/m2·viv"],title:"indicators.cost_int.100-200"},{fillColor:"#706E55",codename:["Entre 200 y 300 €/m2·viv"],title:"indicators.cost_int.200-300"},{fillColor:"#A98B4D",codename:["Entre 300 y 400 €/m2·viv"],title:"indicators.cost_int.300-400"},{fillColor:"#E1A844",codename:["Entre 400 y 500 €/m2·viv"],title:"indicators.cost_int.400-500"},{fillColor:"#FBA840",codename:["Entre 500 y 600 €/m2·viv"],title:"indicators.cost_int.500-600"},{fillColor:"#F8893F",codename:["Entre 600 y 700 €/m2·viv"],title:"indicators.cost_int.600-700"},{fillColor:"#F56A3E",codename:["Entre 700 y 800 €/m2·viv"],title:"indicators.cost_int.700-800"},{fillColor:"#F14B3D",codename:["Entre 800 y 900 €/m2·viv"],title:"indicators.cost_int.800-900"},{fillColor:"#EE2C3C",codename:["Más de 900 €/m2·viv"],title:"indicators.cost_int.>900"}]}]},{category:"Int",name:"indicators.int",haveFilters:!1,escenariFilters:!1,indicators:[{ikey:12,name:"indicators.int_FP.title",code:["FP"],type:"cat",category:"Int",values:[{fillColor:"#89a301",codename:[1],title:"indicators.intYear"},{fillColor:"#D0D79D",codename:[2],title:"indicators.intPast"},{fillColor:"#dadae3",codename:[0],title:"indicators.intNot"}],time:!0},{ikey:13,name:"indicators.int_VFP.title",code:["VFP"],type:"cat",category:"Int",values:[{fillColor:"#006e51",codename:[1],title:"indicators.intYear"},{fillColor:"#9CBFB0",codename:[2],title:"indicators.intPast"},{fillColor:"#dadae3",codename:[0],title:"indicators.intNot"}],time:!0},{ikey:14,name:"indicators.int_P.title",code:["P"],type:"cat",category:"Int",values:[{fillColor:"#9d4823",codename:[1],title:"indicators.intYear"},{fillColor:"#DCAE9B",codename:[2],title:"indicators.intPast"},{fillColor:"#dadae3",codename:[0],title:"indicators.intNot"}],time:!0},{ikey:15,name:"indicators.int_ME.title",code:["ME"],type:"cat",category:"Int",values:[{fillColor:"#1D7DAD",codename:[1],title:"indicators.intYear"},{fillColor:"#ABC5DC",codename:[2],title:"indicators.intPast"},{fillColor:"#dadae3",codename:[0],title:"indicators.intNot"}],time:!0},{ikey:16,name:"indicators.int_S.title",code:["S"],type:"cat",category:"Int",values:[{fillColor:"#3ba5a5",codename:[1],title:"indicators.intYear"},{fillColor:"#B2D8D8",codename:[2],title:"indicators.intPast"},{fillColor:"#dadae3",codename:[0],title:"indicators.intNot"}],time:!0},{ikey:17,name:"indicators.int_C.title",code:["C"],type:"cat",category:"Int",values:[{fillColor:"#ad6e5c",codename:[1],title:"indicators.intYear"},{fillColor:"#DFBFB6",codename:[2],title:"indicators.intPast"},{fillColor:"#dadae3",codename:[0],title:"indicators.intNot"}],time:!0},{ikey:18,name:"indicators.check_meps.title",code:["check_meps"],type:"cat",category:"Int",values:[{fillColor:"#00ae9a",codename:[1],title:"indicators.check_meps.yes"},{fillColor:"#dadae3",codename:[0],title:"indicators.check_meps.no"}],time:!0}]}],vl="_checkboxContainer_zld97_2",bl={checkboxContainer:vl},ra=({onClick:e,containerStyles:t,color:n="#605B56",indicator:r,value:o})=>{const{t:i}=je.useTranslation(),{title:a}=r||{},{fontColor:l,inputsColor:c}=Ve(u=>u);return g.jsxs("div",{style:{...t,color:n},role:"checkbox",className:bl.checkboxContainer,onClick:e,children:[g.jsx("input",{type:"checkbox",checked:typeof o=="boolean"?o:!0,value:o,readOnly:!0,style:{border:`1.5px solid ${o?c:l}`,backgroundColor:o?c:"white"}}),g.jsx("span",{className:"checkmark",children:i(a)})]})};ra.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 ro(e,t){return ro=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ro(e,t)}function _l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ro(e,t)}function Ur(e){return e&&e.stopPropagation&&e.stopPropagation(),e&&e.preventDefault&&e.preventDefault(),!1}function qr(e){return e==null?[]:Array.isArray(e)?e.slice():[e]}function Kn(e){return e!==null&&e.length===1?e[0]:e.slice()}function Zn(e){Object.keys(e).forEach(t=>{typeof document<"u"&&document.addEventListener(t,e[t],!1)})}function Lt(e,t){return oo(function(n,r){let o=n;return o<=r.min&&(o=r.min),o>=r.max&&(o=r.max),o}(e,t),t)}function oo(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 io=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 c=o.getMousePosition(l),u=o.getDiffPosition(c[0]),m=o.getValueFromPosition(u);o.move(m)},o.onTouchMove=l=>{if(l.touches.length>1)return;o.setState({pending:!0});const c=o.getTouchPosition(l);if(o.isScrolling===void 0){const d=c[0]-o.startPosition[0],p=c[1]-o.startPosition[1];o.isScrolling=Math.abs(p)>Math.abs(d)}if(o.isScrolling)return void o.setState({index:-1});const u=o.getDiffPosition(c[0]),m=o.getValueFromPosition(u);o.move(m)},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 c=o.getMousePosition(l);o.forceValueFromPosition(c[0],u=>{o.start(u,c[0]),Zn(o.getMouseEventMap())})}Ur(l)}},o.onSliderClick=l=>{if(!o.props.disabled&&o.props.onSliderClick&&!o.hasMoved){const c=o.getMousePosition(l),u=Lt(o.calcValue(o.calcOffsetFromPosition(c[0])),o.props);o.props.onSliderClick(u)}},o.createOnKeyDown=l=>c=>{o.props.disabled||(o.start(l),Zn(o.getKeyDownEventMap()),Ur(c))},o.createOnMouseDown=l=>c=>{if(o.props.disabled||c.button===2)return;o.setState({pending:!0});const u=o.getMousePosition(c);o.start(l,u[0]),Zn(o.getMouseEventMap()),Ur(c)},o.createOnTouchStart=l=>c=>{if(o.props.disabled||c.touches.length>1)return;o.setState({pending:!0});const u=o.getTouchPosition(c);o.startPosition=u,o.isScrolling=void 0,o.start(l,u[0]),Zn(o.getTouchEventMap()),function(m){m.stopPropagation&&m.stopPropagation()}(c)},o.handleResize=()=>{const l=window.setTimeout(()=>{o.pendingResizeTimeouts.shift(),o.resize()},0);o.pendingResizeTimeouts.push(l)},o.renderThumb=(l,c)=>{const u=o.props.thumbClassName+" "+o.props.thumbClassName+"-"+c+" "+(o.state.index===c?o.props.thumbActiveClassName:""),m={ref:p=>{o["thumb"+c]=p},key:o.props.thumbClassName+"-"+c,className:u,style:l,onMouseDown:o.createOnMouseDown(c),onTouchStart:o.createOnTouchStart(c),onFocus:o.createOnKeyDown(c),tabIndex:0,role:"slider","aria-orientation":o.props.orientation,"aria-valuenow":o.state.value[c],"aria-valuemin":o.props.min,"aria-valuemax":o.props.max,"aria-label":Array.isArray(o.props.ariaLabel)?o.props.ariaLabel[c]:o.props.ariaLabel,"aria-labelledby":Array.isArray(o.props.ariaLabelledby)?o.props.ariaLabelledby[c]:o.props.ariaLabelledby,"aria-disabled":o.props.disabled},d={index:c,value:Kn(o.state.value),valueNow:o.state.value[c]};return o.props.ariaValuetext&&(m["aria-valuetext"]=typeof o.props.ariaValuetext=="string"?o.props.ariaValuetext:o.props.ariaValuetext(d)),o.props.renderThumb(m,d)},o.renderTrack=(l,c,u)=>{const m={key:o.props.trackClassName+"-"+l,className:o.props.trackClassName+" "+o.props.trackClassName+"-"+l,style:o.buildTrackStyle(c,o.state.upperBound-u)},d={index:l,value:Kn(o.state.value)};return o.props.renderTrack(m,d)};let i=qr(r.value);i.length||(i=qr(r.defaultValue)),o.pendingResizeTimeouts=[];const a=[];for(let l=0;l<i.length;l+=1)i[l]=Lt(i[l],r),a.push(l);return o.resizeObserver=null,o.resizeElementRef=v.createRef(),o.state={index:-1,upperBound:0,sliderLength:0,value:i,zIndices:a},o}_l(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=qr(r.value);return i.length?o.pending?null:{value:i.map(a=>Lt(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 Kn(this.state.value)},n.getClosestIndex=function(r){let o=Number.MAX_VALUE,i=-1;const{value:a}=this.state,l=a.length;for(let c=0;c<l;c+=1){const u=this.calcOffset(a[c]),m=Math.abs(r-u);m<o&&(o=m,i=c)}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 Lt(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],c=a[this.posMaxKey()],u=a[this.posMinKey()],m=o.getBoundingClientRect()[i.replace("client","").toLowerCase()],d=l-m,p=Math.abs(c-u);this.state.upperBound===d&&this.state.sliderLength===p&&this.state.thumbSize===m||this.setState({upperBound:d,sliderLength:p,thumbSize:m})},n.calcOffset=function(r){const o=this.props.max-this.props.min;return o===0?0:(r-this.props.min)/o*this.state.upperBound},n.calcValue=function(r){return r/this.state.upperBound*(this.props.max-this.props.min)+this.props.min},n.calcOffsetFromPosition=function(r){const{slider:o}=this,i=o.getBoundingClientRect(),a=i[this.posMaxKey()],l=i[this.posMinKey()];let c=r-(window["page"+this.axisKey()+"Offset"]+(this.props.invert?a:l));return this.props.invert&&(c=this.state.sliderLength-c),c-=this.state.thumbSize/2,c},n.forceValueFromPosition=function(r,o){const i=this.calcOffsetFromPosition(r),a=this.getClosestIndex(i),l=Lt(this.calcValue(i),this.props),c=this.state.value.slice();c[a]=l;for(let u=0;u<c.length-1;u+=1)if(c[u+1]-c[u]<this.props.minDistance)return;this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0,this.setState({value:c},()=>{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=Lt(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=Lt(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:c,max:u,min:m,minDistance:d}=this.props;if(!c){if(i>0){const p=o[i-1];r<p+d&&(r=p+d)}if(i<a-1){const p=o[i+1];r>p-d&&(r=p-d)}}o[i]=r,c&&a>1&&(r>l?(this.pushSucceeding(o,d,i),function(p,_,b,f){for(let x=0;x<p;x+=1){const E=f-x*b;_[p-1-x]>E&&(_[p-1-x]=E)}}(a,o,d,u)):r<l&&(this.pushPreceding(o,d,i),function(p,_,b,f){for(let x=0;x<p;x+=1){const E=f+x*b;_[x]<E&&(_[x]=E)}}(a,o,d,m))),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]=oo(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]=oo(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](Kn(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 u=0;u<i;u+=1)r[u]=this.calcOffset(o[u],u);const a=this.props.withTracks?this.renderTracks(r):null,l=this.renderThumbs(r),c=this.props.marks?this.renderMarks():null;return v.createElement("div",{ref:u=>{this.slider=u,this.resizeElementRef.current=u},style:{position:"relative"},className:this.props.className+(this.props.disabled?" disabled":""),onMouseDown:this.onSliderMouseDown,onClick:this.onSliderClick},a,l,c)},t}(v.Component);io.displayName="ReactSlider",io.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=>v.createElement("div",e),renderTrack:e=>v.createElement("div",e),renderMark:e=>v.createElement("span",e)};var Cl=io;const xl="_container_15vgv_2",El="_unitLabel_15vgv_9",Sl="_slider_15vgv_12",Tl="_thumb_15vgv_18",wl="_track_15vgv_27",kl="_labels_15vgv_33",Zt={container:xl,unitLabel:El,slider:Sl,thumb:Tl,track:wl,labels:kl},oa=({min:e=0,max:t=100,step:n=1,onChange:r,width:o=300,unit:i,fontColor:a="#605B56",value:l=[e,t]})=>{const{t:c}=je.useTranslation(),u=m=>{r==null||r({min:m[0],max:m[1]})};return g.jsxs("div",{className:Zt.container,style:{width:`${o}px`,color:`${a}`},children:[g.jsx("div",{className:Zt.unitLabel,children:g.jsx("span",{children:c(i)})}),g.jsx(Cl,{className:Zt.slider,thumbClassName:Zt.thumb,trackClassName:Zt.track,min:e,max:t,step:n,value:l,onChange:u,withTracks:!0,pearling:!0,minDistance:1}),g.jsxs("div",{className:Zt.labels,children:[g.jsx("span",{children:l[0]}),g.jsx("span",{children:l[1]})]})]})};oa.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 Rl="_tematicalFiltersInputContainer_1vm1r_2",Ol="_inputTypeContainer_1vm1r_2",Al="_checkboxContainer_1vm1r_28",Pl="_absoluteSliderContainer_1vm1r_37",Gn={tematicalFiltersInputContainer:Rl,inputTypeContainer:Ol,checkboxContainer:Al,absoluteSliderContainer:Pl},bo=({indicator:e})=>{const[t,n]=v.useState(),{type:r,name:o,values:i,minValue:a,maxValue:l,unit:c}=e||{},u=v.useMemo(()=>r=="cat"||t=="cat",[t,r]),m=v.useMemo(()=>r=="abs"||t=="abs",[t,r]),{tematicalFiltersSelected:d,selectedIndicator:p,fontColor:_,inputsColor:b}=Ve(E=>E),f=E=>{if(E){const{min:T,max:k,valueClicked:j,allValues:C}=E||{},{code:z,type:y}=e||{},w=m?"abs":u?"cat":"both";let S=z[0];y=="both"&&(S=w=="cat"?z[1]:z[0]),w=="cat"?Ve.setState(A=>{let N=A.tematicalFiltersSelected.find(H=>H.code===S);if(N){let H=[N.values];if(N.values.includes(j)){if(H=N.values.filter(V=>V!==j),H.length<1)return{tematicalFiltersSelected:A.tematicalFiltersSelected.filter(V=>V.code!==S)}}else H=[...N.values,j];return{tematicalFiltersSelected:A.tematicalFiltersSelected.map(V=>V.code===S?{...V,values:H}:V)}}else{console.log("entra aqui: ",C," ",j);let H=C.map((V,ce)=>ce);return{tematicalFiltersSelected:[...d,{type:"cat",code:S,values:H.filter(V=>V!==j)}]}}}):w=="abs"&&Ve.setState(A=>{let N=A.tematicalFiltersSelected.find(H=>H.code===S);if(N){let H={...N};return H.min=T,H.max=k,{tematicalFiltersSelected:A.tematicalFiltersSelected.map(V=>V.code===S?H:V)}}else return{tematicalFiltersSelected:[...d,{type:"abs",code:S,min:T,max:k}]}})}},x=v.useMemo(()=>{const E={};if((d==null?void 0:d.length)>0)for(const T of d)T.type==="cat"?E[T.code]=new Set(T.values):E[T.code]=[T.min,T.max];return E},[d]);return g.jsx("div",{className:Gn.tematicalFiltersInputContainer,children:g.jsxs(Ot,{titleFontStyles:{fontSize:16,fontWeight:400},title:o,isOpen:p==`id${o}`,onClick:()=>Ve.setState(()=>({selectedIndicator:p==`id${o}`?"":`id${o}`})),showBottomBar:!1,height:38,titleMarginChildren:14,className:"tematicalFiltersInputContainer",color:_,children:[r=="both"&&g.jsxs("div",{className:Gn.inputTypeContainer,style:{color:_},children:[g.jsxs("label",{children:[g.jsx("input",{type:"radio",name:"tipo",value:"abs",onChange:()=>{n("abs")},style:{marginRight:4,backgroundColor:t=="abs"?b:"white",border:`1.5px solid ${t=="abs"?b:_}`}}),"Absoluto"]}),g.jsxs("label",{children:[g.jsx("input",{type:"radio",name:"tipo",value:"cat",onChange:()=>{n("cat")},style:{marginRight:4,backgroundColor:t=="cat"?b:"white",border:`1.5px solid ${t=="cat"?b:_}`}}),"Categórico"]})]}),u&&g.jsx("div",{className:Gn.checkboxContainer,children:i.map((E,T)=>{var k;return g.jsx(ra,{onClick:()=>f({valueClicked:T,allValues:i}),indicator:E,value:((k=x[e.code[r=="both"?1:0]])==null?void 0:k.has(T))||!x[e.code[r=="both"?1:0]]},`checkbox-${T}`)})}),m&&g.jsx("div",{className:Gn.absoluteSliderContainer,children:g.jsx(oa,{onChange:f,min:a,max:l,unit:c,value:x[e.code[0]]})})]})})};bo.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}))})};const ia=({subcategory:e,fontColor:t})=>{const{activeSubcategory:n}=Ve(i=>i),{name:r,indicators:o}=e||{};return g.jsx(Ot,{title:r,isOpen:n==`id${r}`,onClick:()=>{Ve.setState(i=>({activeSubcategory:i.activeSubcategory===`id${r}`?"":`id${r}`}))},titleFontStyles:{fontSize:16,fontWeight:400},showBottomBar:!1,titleMarginChildren:20,height:49,color:t,children:o==null?void 0:o.map((i,a)=>g.jsx(bo,{indicator:i,fontColor:t},`indicatorSub-${a}`))})};ia.propTypes={subcategory:s.shape({name:s.string,indicators:s.arrayOf(s.shape({name:s.string,value:s.string}))})};const aa=({category:e})=>{const{name:t,subcategories:n,indicators:r}=e||{},{activeCategory:o,fontColor:i}=Ve(a=>a);return e&&g.jsx(Ot,{onClick:()=>{Ve.setState(a=>({activeCategory:o===`id${t}`?"":`id${t}`}))},title:t,isOpen:o===`id${t}`,titleFontStyles:{fontSize:18,fontWeight:"bold"},showBottomBar:!1,color:i,children:n?n.map((a,l)=>g.jsx(ia,{subcategory:a,fontColor:i},`subcategory-${l}`)):r&&r.map((a,l)=>g.jsx(bo,{indicator:a,fontColor:i},`indicator-${l}`))})};aa.propTypes={category:s.shape({name:s.string.isRequired,subcategories:s.array,indicators:s.array})};const sa=({indicators:e=yl,isOpen:t=!0,title:n,fontColor:r="#605B56",inputsColor:o="#605B56"})=>{const{tematicalFiltersSelected:i}=Ve(l=>l),{t:a}=je.useTranslation();return v.useEffect(()=>{console.log("filtersSelected changed: ",i)},[i]),v.useEffect(()=>{r&&Ve.setState(()=>({fontColor:r}))},[r]),v.useEffect(()=>{o&&Ve.setState(()=>({inputsColor:o}))},[o]),g.jsx(Ot,{isOpen:t,title:n?a(n):"Tematical filters",color:r,children:e==null?void 0:e.map((l,c)=>g.jsx(aa,{category:l,fontColor:r},`category-${c}`))})};sa.propTypes={isOpen:s.bool,title:s.string,indicators:s.arrayOf(s.shape({name:s.string,type:s.string,values:s.arrayOf(s.shape({codename:s.string,title:s.string}))})),fontColor:s.string,onChangeTematicalFilters:s.func,inputsColor:s.string};const $l="_FiltersAmbitContainer_6o4gt_2",jl="_FiltersAmbitHeader_6o4gt_7",Ml="_FiltersAmbitTitle_6o4gt_15",Ll="_FiltersAmbitDescription_6o4gt_22",Nl="_FiltersAmbitDescriptionTitle_6o4gt_33",Sn={FiltersAmbitContainer:$l,FiltersAmbitHeader:jl,FiltersAmbitTitle:Ml,FiltersAmbitDescription:Ll,FiltersAmbitDescriptionTitle:Nl},Il=({ambitName:e,ambitDescription:t,defaultFilters:n})=>{const{t:r}=je.useTranslation(),{tematicalFiltersSelected:o}=Ve(i=>i);return v.useEffect(()=>{n&&n.length>0&&Ve.setState(i=>({tematicalFiltersSelected:n}))},[n]),v.useEffect(()=>{console.log("filtersSelected changed: ",o)},[o]),g.jsxs("div",{className:Sn.FiltersAmbitContainer,children:[g.jsxs("div",{className:Sn.FiltersAmbitHeader,children:[g.jsx("div",{className:Sn.FiltersAmbitTitle,children:e}),g.jsxs("div",{className:Sn.FiltersAmbitDescription,children:[g.jsx("div",{className:Sn.FiltersAmbitDescriptionTitle,children:r("Descripción")}),t]})]}),g.jsx(ta,{title:r("Filtros Aplicados"),isOpen:!0,textColor:"#ffffff",backgroundColor:"#605B5680"}),g.jsx(na,{}),g.jsx(sa,{})]})},Dl="_barChartContainer_d2f1z_2",Fl={barChartContainer:Dl},la=({data:e,width:t=700,barHeight:n=25,gap:r=23,fontColor:o="#605B56",verticalPaddign:i=10,horizontalPaddign:a=20,leftPadding:l=200,numberOfDivisions:c=7,maxValue:u=null})=>{const{t:m}=je.useTranslation(),{xScale:d,ticks:p,height:_}=v.useMemo(()=>{if(e&&e.length>0){const b=(e==null?void 0:e.length)*(n+r)+i*2,f=Do.max(e,T=>T.value)||1,x=Do.scaleLinear().domain([0,u||f]).range([0,t-l]),E=Array.from({length:c+1},(T,k)=>u?u/c*k:f/c*k);return{xScale:x,ticks:E,height:b,width:t,verticalPaddign:i,horizontalPaddign:a}}else return{xScale:null,ticks:[],height:0}},[e,t,c,n,r,a,i,u]);return g.jsx("div",{className:Fl.barChartContainer,children:g.jsx("svg",{width:t+a*2,height:_,children:g.jsxs("g",{transform:`translate(0,${r})`,children:[g.jsx("g",{transform:`translate(${l+a}, 0)`,children:p.map((b,f)=>{const x=d(b);return g.jsxs("g",{transform:`translate(${x}, 0)`,children:[g.jsx("line",{y1:0,y2:_-r*2,stroke:"#ccc"}),g.jsx("text",{y:_-r,textAnchor:"middle",fontSize:10,fill:o,children:parseInt(b)})]},f)})}),e&&e.length>0&&(e==null?void 0:e.map((b,f)=>{const x=d(b.value),E=f*(n+r);return g.jsxs("g",{transform:`translate(${l+a}, ${E})`,children:[g.jsx("text",{x:-24,y:n/2+5,textAnchor:"end",fill:o,children:m(b.title)}),g.jsx("rect",{width:x,height:n,fill:b.color,rx:0})]},f)}))]})})})};la.propTypes={data:s.arrayOf(s.shape({title:s.string,value:s.number,color:s.string})),width:s.number,barHeight:s.number,gap:s.number,verticalPaddign:s.number,horizontalPaddign:s.number,numberOfDivisions:s.number,fontColor:s.string};const Bl="_graphicContainer_c9zrg_2",zl="_titleContainer_c9zrg_14",ei={graphicContainer:Bl,titleContainer:zl},ca=({data:e,graphWidth:t=700,containerStyle:n,borderColor:r="#605B56",title:o="Graphic Title",fontColor:i="#605B56",maxValue:a=null,numberOfDivisions:l=7,leftPadding:c=200})=>{const{t:u}=je.useTranslation();return g.jsxs("div",{className:ei.graphicContainer,style:{...n||{},border:`1.5px solid ${r}`},children:[g.jsx("div",{className:ei.titleContainer,children:g.jsx("h2",{children:u(o)})}),g.jsx(la,{data:e,width:t,fontColor:i,maxValue:a,numberOfDivisions:l,leftPadding:c})]})};ca.propTypes={data:s.arrayOf(s.shape({color:s.string.isRequired,value:s.number.isRequired,title:s.string.isRequired})),borderColor:s.string,title:s.string,graphWidth:s.number,containerStyle:s.object,fontColor:s.string,maxValue:s.number,numberOfDivisions:s.number,leftPadding:s.number};const Vl="_indicatorsCategory_1cu33_2",Ul="_title_1cu33_5",ql="_list_1cu33_11",Wr={indicatorsCategory:Vl,title:Ul,list:ql},Wl="_indicatorContainer_wv1z4_2",Hl="_dot_wv1z4_11",Yl="_indicatorName_wv1z4_16",Kl="_switchExternalContainer_wv1z4_22",Zl="_switchType_wv1z4_31",Gl="_switchTypeOptions_wv1z4_35",Jl="_optionContainer_wv1z4_46",Xl="_customRadious_wv1z4_56",Be={indicatorContainer:Wl,dot:Hl,indicatorName:Yl,switchExternalContainer:Kl,switchType:Zl,switchTypeOptions:Gl,optionContainer:Jl,customRadious:Xl},_o=({indicator:e,values:t=[],activeColor:n,defaultColor:r="black",activeIndicator:o,onClickIndicator:i,multiple:a=!1})=>{const{t:l}=je.useTranslation(),{name:c,ikey:u,type:m}=e,[d,p]=v.useState(!1);v.useEffect(()=>{o&&p(a?o.some(f=>f.ikey==String(u)):o.ikey==u)},[o]);const _=()=>g.jsx("div",{className:Be.switchExternalContainer,children:g.jsx("div",{className:Be.switchType,children:g.jsxs("div",{className:Be.switchTypeOptions,children:[g.jsxs("div",{className:Be.optionContainer,children:[g.jsx("span",{className:`${Be.customRadious}`}),g.jsx("h4",{className:Be.optionText,children:l("indicators.cat")})]}),g.jsxs("div",{className:Be.optionContainer,children:[g.jsx("span",{className:`${Be.customRadious}`}),g.jsx("h4",{className:Be.optionText,children:l("indicators.abs")})]})]})})}),b=()=>g.jsx("div",{className:Be.switchExternalContainer,children:g.jsx("div",{className:Be.switchType,children:g.jsx("div",{className:Be.switchTypeOptions,children:t.map((f,x)=>g.jsxs("div",{className:Be.optionContainer,children:[g.jsx("span",{className:Be.customRadious}),g.jsx("h4",{children:l(f.unit)})]},x))})})});return g.jsxs("button",{onClick:()=>i({indicator:e}),className:Be.indicatorContainer,children:[g.jsx("div",{style:{border:d?`1px solid ${n}`:`1px solid ${r}`},className:Be.dot}),g.jsx("h4",{className:Be.indicatorName,style:{color:d?n:r},children:l(c)}),o===u&&m==="both"&&g.jsx("div",{children:_()}),o===u&&m==="twoUnits"&&g.jsx("div",{children:b()})]})};_o.propTypes={indicator:s.shape({name:s.string,ikey:s.number,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 Ql="_indicatorsSubCategory_1dzsi_2",ec="_list_1dzsi_8",ti={indicatorsSubCategory:Ql,list:ec},ua=({subcName:e,indicators:t,defaultColor:n,activeColor:r,activeSubCategory:o,onClickSubCategory:i,id:a,activeIndicator:l,onClickIndicator:c,multiple:u})=>{const{t:m}=je.useTranslation(),[d,p]=v.useState(!1);return v.useEffect(()=>{p(o==a)},[o,a]),g.jsxs(ho.motion.div,{className:ti.indicatorsSubCategory,initial:{height:"43px"},animate:{height:d?"auto":"43px"},transition:{duration:.4},children:[g.jsx("button",{onClick:()=>i(a),children:g.jsxs("h3",{style:{color:d?r:n},children:[g.jsx("span",{style:{color:d?r:n},children:d?"-":"+"}),g.jsx("span",{style:{marginLeft:12,color:d?r:n},children:m(e)})]})}),t&&g.jsx("div",{className:ti.list,children:t==null?void 0:t.map((_,b)=>g.jsx(_o,{indicator:_,defaultColor:n,activeColor:r,activeIndicator:l,onClickIndicator:c,multiple:u},"indicator"+b))})]})};ua.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 da=({cat:e,id:t,activeColor:n,defaultColor:r,onClickCategory:o,activeCategory:i,activeSubCategory:a,onClickSubCategory:l,activeIndicator:c,onClickIndicator:u,multiple:m})=>{var b;const{t:d}=je.useTranslation(),[p,_]=v.useState(!1);return v.useEffect(()=>{_(i===t)},[i,t]),g.jsxs(ho.motion.div,{className:Wr.indicatorsCategory,initial:{height:"53px"},animate:{height:p?"auto":"53px"},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:p?`1px solid ${n}`:"0px",marginBottom:p?"20px":"0px"},children:[g.jsxs("h2",{className:`${Wr.title}`,onClick:()=>o(t),children:[g.jsx("span",{style:{color:p?n:r},children:p?"-":"+"}),g.jsx("span",{style:{marginLeft:12,color:p?n:r},children:d(e.name)})]}),e.subcategories?e.subcategories.map(({name:f,subcategory:x,indicators:E},T)=>g.jsx(ua,{id:x,activeSubCategory:a,subcName:f,onClickSubCategory:l,activeIndicator:c,onClickIndicator:u,multiple:m,activeColor:n,defaultColor:r,indicators:E},`subcKey ${T}`)):g.jsx("div",{className:Wr.list,children:(b=e.indicators)==null?void 0:b.map((f,x)=>g.jsx(_o,{indicator:f,values:f.type=="twoUnits"&&f.values,activeColor:n,defaultColor:r,activeIndicator:c,onClickIndicator:u,multiple:m},`indicator${x}`))})]})};da.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 tc="_indicatorsList_k90zc_2",nc="_title_k90zc_6",ni={indicatorsList:tc,title:nc},fa=({indicators:e,activeColor:t,defaultColor:n="black",onChange:r,multiple:o=!1,defaultValue:i=null})=>{const{t:a}=je.useTranslation(),[l,c]=v.useState(),[u,m]=v.useState(),[d,p]=v.useState(),_=T=>{c(l==T?null:T)},b=T=>{m(u==T?null:T)},f=({indicator:T})=>{x(T)},x=T=>{if(!o)p((d==null?void 0:d.ikey)==T.ikey?null:T);else{let k=d&&d.length>0?[...d]:[];p(k!=null&&k.some(j=>j.ikey==T.ikey)?k.filter(j=>j.ikey!=String(T.ikey)):[...k,T])}};v.useEffect(()=>{r&&typeof r=="function"&&r({activeIndicator:d})},[d]),v.useEffect(()=>{if(i&&!d)if(o&&i&&Array.isArray(i)){let T=d&&d.length>0?[...d]:[];p([...T,...i]),E(i[0].ikey)}else x(i),E(i.ikey)},[i]);const E=T=>{const k=e.find(j=>{if(j.subcategories){let C=j.subcategories.find(z=>z.indicators.find(y=>y.ikey==T));if(C)return m(C.subcategory),C}else return j.indicators.some(C=>C.ikey==T)});k&&c(k.category)};return g.jsxs("div",{className:ni.indicatorsList,children:[g.jsx("h2",{className:ni.title,style:{color:n},children:a("indicators.indicators")}),e.map((T,k)=>g.jsx(da,{id:T.category,cat:T,onClickCategory:_,activeCategory:l,onClickSubCategory:b,activeSubCategory:u,onClickIndicator:f,activeIndicator:d,activeColor:t,defaultColor:n,multiple:o,onChange:r},`categoryKey${k}`))]})};fa.propTypes={indicators:s.arrayOf(s.object),activeColor:s.string,defaultColor:s.string,onChange:s.func,multiple:s.bool,activeIndicator:s.oneOfType([s.object,s.array]),defaultValue:s.oneOfType([s.object,s.array])};const rc="_langSelector_1of0g_2",oc="_currentLang_1of0g_7",ic="_arrow_1of0g_19",ac="_prevImg_1of0g_22",sc="_langMenu_1of0g_26",Gt={langSelector:rc,currentLang:oc,arrow:ic,prevImg:ac,langMenu:sc},ma=({langs:e,arrow:t,imgPrev:n})=>{const[r,o]=v.useState(!1),{i18n:i}=je.useTranslation(),a=e.find(c=>c.code==i.language),l=c=>{i.changeLanguage(c),o(!1)};return g.jsxs("div",{className:Gt.langSelector,children:[g.jsxs("div",{className:Gt.currentLang,onClick:()=>{o(!r)},children:[n&&g.jsx("img",{className:Gt.prevImg,src:n}),a.titleSelected||a.title,g.jsx("img",{src:t,className:Gt.arrow})]}),r&&g.jsx("div",{className:Gt.langMenu,children:e.map(c=>g.jsx("button",{className:a.code==c.code?Gt.active:"",onClick:()=>l(c.code),children:c.title},c.code))})]})};ma.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 lc="_legendContainer_atg3j_3",cc="_closeButton_atg3j_18",uc="_titleContainer_atg3j_46",dc="_infoContainer_atg3j_52",fc="_titleLegendList_atg3j_63",mc="_legendListContainer_atg3j_70",pc="_gridContainer_atg3j_70",hc="_elementLegendContainer_atg3j_76",gc="_colorDot_atg3j_82",yc="_absoluteValueContainer_atg3j_88",vc="_absoluteValueColor_atg3j_91",bc="_absoluteValueText_atg3j_96",_c="_moreInfoContainer_atg3j_108",We={legendContainer:lc,closeButton:cc,titleContainer:uc,infoContainer:dc,titleLegendList:fc,legendListContainer:mc,gridContainer:pc,elementLegendContainer:hc,colorDot:gc,absoluteValueContainer:yc,absoluteValueColor:vc,absoluteValueText:bc,moreInfoContainer:_c},pa=({containerStyles:e,title:t,infoList:n,legendList:r,legendListTitle:o,absoluteValue:i,onClickMoreInfo:a,buttonTitle:l,onClickClose:c})=>{const{t:u}=je.useTranslation();return g.jsxs("div",{style:e?{...e}:{},className:`${We.legendContainer}`,children:[g.jsx("button",{className:We.closeButton,onClick:c}),t&&g.jsx("div",{className:We.titleContainer,children:g.jsx("h2",{children:t})}),n&&n.length>0&&g.jsx("div",{className:We.infoContainer,children:g.jsx("ul",{children:n.map(({title:m,value:d})=>g.jsxs("li",{children:[g.jsx("h3",{className:We.title,children:`${m}:`}),g.jsxs("span",{className:We.value,children:["  ",d]})]},t))})}),g.jsx("h3",{className:We.titleLegendList,children:u(o||"mainUse")}),g.jsx("div",{className:We.legendListContainer,children:i?g.jsxs("div",{className:We.absoluteValueContainer,children:[g.jsx("div",{className:We.absoluteValueColor,style:{background:`linear-gradient(to bottom, ${i.maxColor} 0%, ${i.minColor} 100%)`}}),g.jsxs("div",{className:We.absoluteValueText,children:[g.jsxs("span",{children:[i.maxValue," ",u(i.unit)]}),g.jsxs("span",{children:[i.minValue," ",u(i.unit)]})]})]}):r&&r.length>0&&g.jsx("div",{className:We.gridContainer,children:r.map(({title:m,color:d})=>g.jsxs("div",{className:We.elementLegendContainer,children:[g.jsx("div",{className:We.colorDot,style:{backgroundColor:d}}),g.jsxs("div",{className:We.titleLegendElement,children:[u(m)," "]})]},t))})}),a&&g.jsx("button",{className:We.moreInfoContainer,onClick:a,children:l||u("moreInformation")})]})};pa.propTypes={title:s.string,containerStyles:s.object,infoList:s.arrayOf(s.shape({title:s.string.isRequired,value:s.oneOfType([s.string,s.number])})),legendList:s.arrayOf(s.shape({title:s.string,color:s.string})),legendListTitle:s.string,absoluteValue:s.shape({maxColor:s.string,minColor:s.string,maxValue:s.number,minValue:s.number}),onClickMoreInfo:s.func,buttonTitle:s.string,onClickClose:s.func};const Cc="_logo_1ewa6_2",ri={logo:Cc},ha=({src:e,alt:t,href:n})=>{const{t:r}=je.useTranslation(),o=g.jsx("img",{src:e,alt:r(t)});return n?g.jsx("div",{className:ri.logo,children:g.jsx("a",{href:n,children:o})}):g.jsx("div",{className:ri.logo,children:o})};ha.propTypes={src:s.string.isRequired,alt:s.string.isRequired,href:s.string,className:s.string};const xc=X.createContext(null);function Ec(e,t){const n=Array.isArray(e)?e[0]:e?e.x:0,r=Array.isArray(e)?e[1]:e?e.y:0,o=Array.isArray(t)?t[0]:t?t.x:0,i=Array.isArray(t)?t[1]:t?t.y:0;return n===o&&r===i}function Qe(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(!Qe(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)||!Qe(e[o],t[o]))return!1;return!0}return!1}function Sc(e){const t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}function oi(e,t){if(!e.getProjection)return;const n=e.getProjection(),r=t.getProjection();Qe(n,r)||t.setProjection(n)}function ii(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function ai(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 Tc=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function si(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 Tc)a in i&&(o[a]=i[a])}return o||r});return{...e,layers:n}}const li={version:8,sources:{},layers:[]},ci={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"},Hr={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"},ui={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"},wc=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],kc=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class cn{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[ui[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[ci[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[Hr[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=cn.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,r.setProps({...t,styleDiffing:!1}),o.resize();const{initialViewState:a}=t;return a&&(a.bounds?o.fitBounds(a.bounds,{...a.fitBoundsOptions,duration:0}):r._updateViewState(a,!1)),o.isStyleLoaded()?o.fire("load"):o.once("styledata",()=>o.fire("load")),o._update(),r}_initialize(t){const{props:n}=this,{mapStyle:r=li}=n,o={...n,...n.initialViewState,accessToken:n.mapboxAccessToken||Rc()||null,container:t,style:si(r)},i=o.initialViewState||o.viewState||o;if(Object.assign(o,{center:[i.longitude||0,i.latitude||0],zoom:i.zoom||0,pitch:i.pitch||0,bearing:i.bearing||0}),n.gl){const m=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=m,n.gl)}const a=new this._MapClass(o);i.padding&&a.setPadding(i.padding),n.cursor&&(a.getCanvas().style.cursor=n.cursor),this._createShadowTransform(a);const l=a._render;a._render=m=>{this._inRender=!0,l.call(a,m),this._inRender=!1};const c=a._renderTaskQueue.run;a._renderTaskQueue.run=m=>{c.call(a._renderTaskQueue,m),this._onBeforeRepaint()},a.on("render",()=>this._onAfterRepaint());const u=a.fire;a.fire=this._fireEvent.bind(this,u),a.on("resize",()=>{this._renderTransform.resize(a.transform.width,a.transform.height)}),a.on("styledata",()=>{this._updateStyleComponents(this.props,{}),oi(a.transform,this._renderTransform)}),a.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(const m in ci)a.on(m,this._onPointerEvent);for(const m in Hr)a.on(m,this._onCameraEvent);for(const m in ui)a.on(m,this._onEvent);this._map=a}recycle(){const n=this.map.getContainer().querySelector("[mapboxgl-children]");n==null||n.remove(),cn.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=Sc(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,c=r.isMoving();c&&(o.cameraElevationReference="sea");const u=ai(o,{...ii(r.transform),...t});if(c&&(o.cameraElevationReference="ground"),u&&n){const m=this._deferredEvents;m.move=!0,m.zoom||(m.zoom=i!==o.zoom),m.rotate||(m.rotate=l!==o.bearing),m.pitch||(m.pitch=a!==o.pitch)}return c||ai(r.transform,t),u}_updateSettings(t,n){const r=this._map;let o=!1;for(const i of wc)if(i in t&&!Qe(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=li,styleDiffing:o=!0}=t,i={diff:o};return"localIdeographFontFamily"in t&&(i.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(si(r),i),!0}return!1}_updateStyleComponents(t,n){const r=this._map;let o=!1;return r.isStyleLoaded()&&("light"in t&&r.setLight&&!Qe(t.light,n.light)&&(o=!0,r.setLight(t.light)),"fog"in t&&r.setFog&&!Qe(t.fog,n.fog)&&(o=!0,r.setFog(t.fog)),"terrain"in t&&r.setTerrain&&!Qe(t.terrain,n.terrain)&&(!t.terrain||r.getSource(t.terrain.source))&&(o=!0,r.setTerrain(t.terrain))),o}_updateHandlers(t,n){const r=this._map;let o=!1;for(const i of kc){const a=t[i]??!0,l=n[i]??!0;Qe(a,l)||(o=!0,a?r[i].enable(a):r[i].disable())}return o}_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 o;const{props:n}=this;if(n.interactiveLayerIds&&(n.onMouseMove||n.onMouseEnter||n.onMouseLeave)){const i=t.type,a=((o=this._hoveredFeatures)==null?void 0:o.length)>0,l=this._queryRenderedFeatures(t.point),c=l.length>0;!c&&a&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=l,c&&!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 Hr&&(typeof n=="object"&&(n.viewState=ii(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=()=>{oi(this._renderTransform,n),t.transform=n}}}cn.savedMaps=[];function Rc(){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 Oc=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function Ac(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 Pc(t))!(r in n)&&!Oc.includes(r)&&(n[r]=t[r].bind(t));return n}function Pc(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"?v.useLayoutEffect:v.useEffect,jc=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function Mc(e,t){for(const r of jc)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 fn=X.createContext(null);function Lc(e,t){const n=v.useContext(xc),[r,o]=v.useState(null),i=v.useRef(),{current:a}=v.useRef({mapLib:null,map:null});v.useEffect(()=>{const u=e.mapLib;let m=!0,d;return Promise.resolve(u||import("mapbox-gl")).then(p=>{if(!m)return;if(!p)throw new Error("Invalid mapLib");const _="Map"in p?p:p.default;if(!_.Map)throw new Error("Invalid mapLib");Mc(_,e),e.reuseMaps&&(d=cn.reuse(e,i.current)),d||(d=new cn(_.Map,e,i.current)),a.map=Ac(d),a.mapLib=_,o(d),n==null||n.onMapMount(a.map,e.id)}).catch(p=>{const{onError:_}=e;_?_({type:"error",target:null,error:p}):console.error(p)}),()=>{m=!1,d&&(n==null||n.onMapUnmount(e.id),e.reuseMaps?d.recycle():d.destroy())}},[]),$c(()=>{r&&r.setProps(e)}),v.useImperativeHandle(t,()=>a.map,[r]);const l=v.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),c={height:"100%"};return X.createElement("div",{id:e.id,ref:i,style:l},r&&X.createElement(fn.Provider,{value:a},X.createElement("div",{"mapboxgl-children":"",style:c},e.children)))}const Nc=X.forwardRef(Lc),Ic=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function Dt(e,t){if(!e||!t)return;const n=e.style;for(const r in t){const o=t[r];Number.isFinite(o)&&!Ic.test(r)?n[r]=`${o}px`:n[r]=o}}function ga(e,t){if(e===t)return null;const n=di(e),r=di(t),o=[];for(const i of r)n.has(i)||o.push(i);for(const i of n)r.has(i)||o.push(i);return o.length===0?null:o}function di(e){return new Set(e?e.trim().split(/\s+/):[])}v.memo(v.forwardRef((e,t)=>{const{map:n,mapLib:r}=v.useContext(fn),o=v.useRef({props:e}),i=v.useMemo(()=>{let E=!1;X.Children.forEach(e.children,j=>{j&&(E=!0)});const T={...e,element:E?document.createElement("div"):null},k=new r.Marker(T);return k.setLngLat([e.longitude,e.latitude]),k.getElement().addEventListener("click",j=>{var C,z;(z=(C=o.current.props).onClick)==null||z.call(C,{type:"click",target:k,originalEvent:j})}),k.on("dragstart",j=>{var z,y;const C=j;C.lngLat=i.getLngLat(),(y=(z=o.current.props).onDragStart)==null||y.call(z,C)}),k.on("drag",j=>{var z,y;const C=j;C.lngLat=i.getLngLat(),(y=(z=o.current.props).onDrag)==null||y.call(z,C)}),k.on("dragend",j=>{var z,y;const C=j;C.lngLat=i.getLngLat(),(y=(z=o.current.props).onDragEnd)==null||y.call(z,C)}),k},[]);v.useEffect(()=>(i.addTo(n.getMap()),()=>{i.remove()}),[]);const{longitude:a,latitude:l,offset:c,style:u,draggable:m=!1,popup:d=null,rotation:p=0,rotationAlignment:_="auto",pitchAlignment:b="auto"}=e;v.useEffect(()=>{Dt(i.getElement(),u)},[u]),v.useImperativeHandle(t,()=>i,[]);const f=o.current.props;(i.getLngLat().lng!==a||i.getLngLat().lat!==l)&&i.setLngLat([a,l]),c&&!Ec(i.getOffset(),c)&&i.setOffset(c),i.isDraggable()!==m&&i.setDraggable(m),i.getRotation()!==p&&i.setRotation(p),i.getRotationAlignment()!==_&&i.setRotationAlignment(_),i.getPitchAlignment()!==b&&i.setPitchAlignment(b),i.getPopup()!==d&&i.setPopup(d);const x=ga(f.className,e.className);if(x)for(const E of x)i.toggleClassName(E);return o.current.props=e,hr.createPortal(e.children,i.getElement())}));const Dc=v.memo(v.forwardRef((e,t)=>{const{map:n,mapLib:r}=v.useContext(fn),o=v.useMemo(()=>document.createElement("div"),[]),i=v.useRef({props:e}),a=v.useMemo(()=>{const l={...e},c=new r.Popup(l);return c.setLngLat([e.longitude,e.latitude]),c.once("open",u=>{var m,d;(d=(m=i.current.props).onOpen)==null||d.call(m,u)}),c},[]);if(v.useEffect(()=>{const l=c=>{var u,m;(m=(u=i.current.props).onClose)==null||m.call(u,c)};return a.on("close",l),a.setDOMContent(o).addTo(n.getMap()),()=>{a.off("close",l),a.isOpen()&&a.remove()}},[]),v.useEffect(()=>{Dt(a.getElement(),e.style)},[e.style]),v.useImperativeHandle(t,()=>a,[]),a.isOpen()){const l=i.current.props;(a.getLngLat().lng!==e.longitude||a.getLngLat().lat!==e.latitude)&&a.setLngLat([e.longitude,e.latitude]),e.offset&&!Qe(l.offset,e.offset)&&(a.options.anchor=e.anchor,a.setOffset(e.offset)),(l.anchor!==e.anchor||l.maxWidth!==e.maxWidth)&&a.setMaxWidth(e.maxWidth);const c=ga(l.className,e.className);if(c)for(const u of c)a.toggleClassName(u);i.current.props=e}return hr.createPortal(e.children,o)}));function Nn(e,t,n,r){const o=v.useContext(fn),i=v.useMemo(()=>e(o),[]);return v.useEffect(()=>{const a=t,l=typeof t=="function"?t:null,{map:c}=o;return c.hasControl(i)||c.addControl(i,a==null?void 0:a.position),()=>{l&&l(o),c.hasControl(i)&&c.removeControl(i)}},[]),i}function Fc(e){const t=Nn(({mapLib:n})=>new n.AttributionControl(e),{position:e.position});return v.useEffect(()=>{Dt(t._container,e.style)},[e.style]),null}v.memo(Fc);function Bc(e){const t=Nn(({mapLib:n})=>new n.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return v.useEffect(()=>{Dt(t._controlContainer,e.style)},[e.style]),null}v.memo(Bc);function zc(e,t){const n=v.useRef({props:e}),r=Nn(({mapLib:o})=>{const i=new o.GeolocateControl(e),a=i._setupUI.bind(i);return i._setupUI=l=>{i._container.hasChildNodes()||a(l)},i.on("geolocate",l=>{var c,u;(u=(c=n.current.props).onGeolocate)==null||u.call(c,l)}),i.on("error",l=>{var c,u;(u=(c=n.current.props).onError)==null||u.call(c,l)}),i.on("outofmaxbounds",l=>{var c,u;(u=(c=n.current.props).onOutOfMaxBounds)==null||u.call(c,l)}),i.on("trackuserlocationstart",l=>{var c,u;(u=(c=n.current.props).onTrackUserLocationStart)==null||u.call(c,l)}),i.on("trackuserlocationend",l=>{var c,u;(u=(c=n.current.props).onTrackUserLocationEnd)==null||u.call(c,l)}),i},{position:e.position});return n.current.props=e,v.useImperativeHandle(t,()=>r,[]),v.useEffect(()=>{Dt(r._container,e.style)},[e.style]),null}v.memo(v.forwardRef(zc));function Vc(e){const t=Nn(({mapLib:n})=>new n.NavigationControl(e),{position:e.position});return v.useEffect(()=>{Dt(t._container,e.style)},[e.style]),null}const Uc=v.memo(Vc);function qc(e){const t=Nn(({mapLib:i})=>new i.ScaleControl(e),{position:e.position}),n=v.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),v.useEffect(()=>{Dt(t._container,o)},[o]),null}v.memo(qc);function ur(e,t){if(!e)throw new Error(t)}let Wc=0;function Hc(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 Yc(e,t,n){ur(t.id===n.id,"source id changed"),ur(t.type===n.type,"source type changed");let r="",o=0;for(const a in t)a!=="children"&&a!=="id"&&!Qe(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 Kc(e){const t=v.useContext(fn).map.getMap(),n=v.useRef(e),[,r]=v.useState(0),o=v.useMemo(()=>e.id||`jsx-source-${Wc++}`,[]);v.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 c=(l=t.getStyle())==null?void 0:l.layers;if(c)for(const u of c)u.source===o&&t.removeLayer(u.id);t.removeSource(o)}}}},[t]);let i=t&&t.style&&t.getSource(o);return i?Yc(i,e,n.current):i=Hc(t,o,e),n.current=e,i&&X.Children.map(e.children,a=>a&&v.cloneElement(a,{source:o}))||null}function Zc(e,t,n,r){if(ur(n.id===r.id,"layer id changed"),ur(n.type===r.type,"layer type changed"),n.type==="custom"||r.type==="custom")return;const{layout:o={},paint:i={},filter:a,minzoom:l,maxzoom:c,beforeId:u}=n;if(u!==r.beforeId&&e.moveLayer(t,u),o!==r.layout){const m=r.layout||{};for(const d in o)Qe(o[d],m[d])||e.setLayoutProperty(t,d,o[d]);for(const d in m)o.hasOwnProperty(d)||e.setLayoutProperty(t,d,void 0)}if(i!==r.paint){const m=r.paint||{};for(const d in i)Qe(i[d],m[d])||e.setPaintProperty(t,d,i[d]);for(const d in m)i.hasOwnProperty(d)||e.setPaintProperty(t,d,void 0)}Qe(a,r.filter)||e.setFilter(t,a),(l!==r.minzoom||c!==r.maxzoom)&&e.setLayerZoomRange(t,l,c)}function Gc(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 Jc=0;function Xc(e){const t=v.useContext(fn).map.getMap(),n=v.useRef(e),[,r]=v.useState(0),o=v.useMemo(()=>e.id||`jsx-layer-${Jc++}`,[]);if(v.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{Zc(t,o,e,n.current)}catch(a){console.warn(a)}else Gc(t,o,e);return n.current=e,null}const Qc="_mapContainer_84pkf_2",eu={mapContainer:Qc};Ss.accessToken="pk.eyJ1IjoiY2ljbGljYSIsImEiOiJja3llODhxZ2UwYzF1Mm5xcHVhMzI3anhqIn0.-r56FLAzEH57eVsB2ZeVcA";const ya=({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:c=!1,sources:u=[],layers:m=[]})=>{const d=v.useRef(),[p,_]=v.useState(null),b=wt.useSelector(f=>f.mapState.showTexts);return v.useEffect(()=>{if(d.current){const f=d.current.getMap();f.getStyle().layers.map(E=>{E.type=="symbol"&&E.id!="professionals"&&(b?f.setLayoutProperty(E.id,"visibility","visible"):f.setLayoutProperty(E.id,"visibility","none"))})}},[b]),g.jsx("div",{className:`${eu.mapContainer}`,style:i,children:g.jsxs(Nc,{initialViewState:e,ref:d,hash:!1,maxZoom:t,minZoom:n,mapStyle:r,onClick:a,interactiveLayerIds:l,children:[u.length&&u.map((f,x)=>g.jsx(Kc,{...f,children:m.length&&m.map((E,T)=>{if(E.sourceId==f.id)return g.jsx(Xc,{...E.layer,beforeId:o},T)})},x)),g.jsx(Uc,{position:"bottom-right",visualizePitch:!0}),c&&p&&g.jsx(Dc,{longitude:c.longitude,latitude:c.latitude,anchor:c.anchor,onClose:()=>_(null),children:c.content})]})})};ya.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})}))};var et=Uint8Array,on=Uint16Array,tu=Int32Array,va=new et([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),ba=new et([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),nu=new et([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),_a=function(e,t){for(var n=new on(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var o=new tu(n[30]),r=1;r<30;++r)for(var i=n[r];i<n[r+1];++i)o[i]=i-n[r]<<5|r;return{b:n,r:o}},Ca=_a(va,2),xa=Ca.b,ru=Ca.r;xa[28]=258,ru[258]=28;var ou=_a(ba,0),iu=ou.b,ao=new on(32768);for(var Te=0;Te<32768;++Te){var Et=(Te&43690)>>1|(Te&21845)<<1;Et=(Et&52428)>>2|(Et&13107)<<2,Et=(Et&61680)>>4|(Et&3855)<<4,ao[Te]=((Et&65280)>>8|(Et&255)<<8)>>1}var Rn=function(e,t,n){for(var r=e.length,o=0,i=new on(t);o<r;++o)e[o]&&++i[e[o]-1];var a=new on(t);for(o=1;o<t;++o)a[o]=a[o-1]+i[o-1]<<1;var l;if(n){l=new on(1<<t);var c=15-t;for(o=0;o<r;++o)if(e[o])for(var u=o<<4|e[o],m=t-e[o],d=a[e[o]-1]++<<m,p=d|(1<<m)-1;d<=p;++d)l[ao[d]>>c]=u}else for(l=new on(r),o=0;o<r;++o)e[o]&&(l[o]=ao[a[e[o]-1]++]>>15-e[o]);return l},In=new et(288);for(var Te=0;Te<144;++Te)In[Te]=8;for(var Te=144;Te<256;++Te)In[Te]=9;for(var Te=256;Te<280;++Te)In[Te]=7;for(var Te=280;Te<288;++Te)In[Te]=8;var Ea=new et(32);for(var Te=0;Te<32;++Te)Ea[Te]=5;var au=Rn(In,9,1),su=Rn(Ea,5,1),Yr=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},ct=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(t&7)&n},Kr=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},lu=function(e){return(e+7)/8|0},cu=function(e,t,n){return(n==null||n>e.length)&&(n=e.length),new et(e.subarray(t,n))},uu=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Xe=function(e,t,n){var r=new Error(t||uu[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,Xe),!n)throw r;return r},Co=function(e,t,n,r){var o=e.length,i=0;if(!o||t.f&&!t.l)return n||new et(0);var a=!n,l=a||t.i!=2,c=t.i;a&&(n=new et(o*3));var u=function(be){var P=n.length;if(be>P){var _e=new et(Math.max(P*2,be));_e.set(n),n=_e}},m=t.f||0,d=t.p||0,p=t.b||0,_=t.l,b=t.d,f=t.m,x=t.n,E=o*8;do{if(!_){m=ct(e,d,1);var T=ct(e,d+1,3);if(d+=3,T)if(T==1)_=au,b=su,f=9,x=5;else if(T==2){var z=ct(e,d,31)+257,y=ct(e,d+10,15)+4,w=z+ct(e,d+5,31)+1;d+=14;for(var S=new et(w),A=new et(19),N=0;N<y;++N)A[nu[N]]=ct(e,d+N*3,7);d+=y*3;for(var H=Yr(A),V=(1<<H)-1,ce=Rn(A,H,1),N=0;N<w;){var Y=ce[ct(e,d,V)];d+=Y&15;var k=Y>>4;if(k<16)S[N++]=k;else{var ie=0,re=0;for(k==16?(re=3+ct(e,d,3),d+=2,ie=S[N-1]):k==17?(re=3+ct(e,d,7),d+=3):k==18&&(re=11+ct(e,d,127),d+=7);re--;)S[N++]=ie}}var we=S.subarray(0,z),Ae=S.subarray(z);f=Yr(we),x=Yr(Ae),_=Rn(we,f,1),b=Rn(Ae,x,1)}else Xe(1);else{var k=lu(d)+4,j=e[k-4]|e[k-3]<<8,C=k+j;if(C>o){c&&Xe(0);break}l&&u(p+j),n.set(e.subarray(k,C),p),t.b=p+=j,t.p=d=C*8,t.f=m;continue}if(d>E){c&&Xe(0);break}}l&&u(p+131072);for(var O=(1<<f)-1,M=(1<<x)-1,Q=d;;Q=d){var ie=_[Kr(e,d)&O],q=ie>>4;if(d+=ie&15,d>E){c&&Xe(0);break}if(ie||Xe(2),q<256)n[p++]=q;else if(q==256){Q=d,_=null;break}else{var F=q-254;if(q>264){var N=q-257,ee=va[N];F=ct(e,d,(1<<ee)-1)+xa[N],d+=ee}var Z=b[Kr(e,d)&M],K=Z>>4;Z||Xe(3),d+=Z&15;var Ae=iu[K];if(K>3){var ee=ba[K];Ae+=Kr(e,d)&(1<<ee)-1,d+=ee}if(d>E){c&&Xe(0);break}l&&u(p+131072);var U=p+F;if(p<Ae){var G=i-Ae,ne=Math.min(Ae,U);for(G+p<0&&Xe(3);p<ne;++p)n[p]=r[G+p]}for(;p<U;++p)n[p]=n[p-Ae]}}t.l=_,t.p=Q,t.b=p,t.f=m,_&&(m=1,t.m=f,t.d=b,t.n=x)}while(!m);return p!=n.length&&a?cu(n,0,p):n.subarray(0,p)},du=new et(0),fu=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Xe(6,"invalid gzip data");var t=e[3],n=10;t&4&&(n+=(e[10]|e[11]<<8)+2);for(var r=(t>>3&1)+(t>>4&1);r>0;r-=!e[n++]);return n+(t&2)},mu=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},pu=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Xe(6,"invalid zlib data"),(e[1]>>5&1)==1&&Xe(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function hu(e,t){return Co(e,{i:2},t,t)}function gu(e,t){var n=fu(e);return n+8>e.length&&Xe(6,"invalid gzip data"),Co(e.subarray(n,-8),{i:2},new et(mu(e)),t)}function yu(e,t){return Co(e.subarray(pu(e),-4),{i:2},t,t)}function vu(e,t){return e[0]==31&&e[1]==139&&e[2]==8?gu(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?hu(e,t):yu(e,t)}var bu=typeof TextDecoder<"u"&&new TextDecoder,_u=0;try{bu.decode(du,{stream:!0}),_u=1}catch{}var Cu=Object.defineProperty,On=Math.pow,Ee=(e,t)=>Cu(e,"name",{value:t,configurable:!0}),Fe=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{l(n.next(c))}catch(u){o(u)}},a=c=>{try{l(n.throw(c))}catch(u){o(u)}},l=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,a);l((n=n.apply(e,t)).next())});Ee((e,t)=>{let n=!1,r="",o=L.GridLayer.extend({createTile:Ee((i,a)=>{let l=document.createElement("img"),c=new AbortController,u=c.signal;return l.cancel=()=>{c.abort()},n||(e.getHeader().then(m=>{m.tileType===1?console.error("Error: archive contains MVT vector tiles, but leafletRasterLayer is for displaying raster tiles. See https://github.com/protomaps/PMTiles/tree/main/js for details."):m.tileType===2?r="image/png":m.tileType===3?r="image/jpeg":m.tileType===4?r="image/webp":m.tileType===5&&(r="image/avif")}),n=!0),e.getZxy(i.z,i.x,i.y,u).then(m=>{if(m){let d=new Blob([m.data],{type:r}),p=window.URL.createObjectURL(d);l.src=p,l.cancel=void 0,a(void 0,l)}}).catch(m=>{if(m.name!=="AbortError")throw m}),l},"createTile"),_removeTile:Ee(function(i){let a=this._tiles[i];a&&(a.el.cancel&&a.el.cancel(),a.el.width=0,a.el.height=0,a.el.deleted=!0,L.DomUtil.remove(a.el),delete this._tiles[i],this.fire("tileunload",{tile:a.el,coords:this._keyToTileCoords(i)}))},"_removeTile")});return new o(t)},"leafletRasterLayer");var xu=Ee(e=>(t,n)=>{if(n instanceof AbortController)return e(t,n);let r=new AbortController;return e(t,r).then(o=>n(void 0,o.data,o.cacheControl||"",o.expires||""),o=>n(o)).catch(o=>n(o)),{cancel:Ee(()=>r.abort(),"cancel")}},"v3compat"),Sa=class{constructor(t){this.tilev4=Ee((n,r)=>Fe(this,null,function*(){if(n.type==="json"){let _=n.url.substr(10),b=this.tiles.get(_);if(b||(b=new fi(_),this.tiles.set(_,b)),this.metadata)return{data:yield b.getTileJson(n.url)};let f=yield b.getHeader();return(f.minLon>=f.maxLon||f.minLat>=f.maxLat)&&console.error(`Bounds of PMTiles archive ${f.minLon},${f.minLat},${f.maxLon},${f.maxLat} are not valid.`),{data:{tiles:[`${n.url}/{z}/{x}/{y}`],minzoom:f.minZoom,maxzoom:f.maxZoom,bounds:[f.minLon,f.minLat,f.maxLon,f.maxLat]}}}let o=new RegExp(/pmtiles:\/\/(.+)\/(\d+)\/(\d+)\/(\d+)/),i=n.url.match(o);if(!i)throw new Error("Invalid PMTiles protocol URL");let a=i[1],l=this.tiles.get(a);l||(l=new fi(a),this.tiles.set(a,l));let c=i[2],u=i[3],m=i[4],d=yield l.getHeader(),p=yield l==null?void 0:l.getZxy(+c,+u,+m,r.signal);if(p)return{data:new Uint8Array(p.data),cacheControl:p.cacheControl,expires:p.expires};if(d.tileType===1){if(this.errorOnMissingTile)throw new Error("Tile not found.");return{data:new Uint8Array}}return{data:null}}),"tilev4"),this.tile=xu(this.tilev4),this.tiles=new Map,this.metadata=(t==null?void 0:t.metadata)||!1,this.errorOnMissingTile=(t==null?void 0:t.errorOnMissingTile)||!1}add(t){this.tiles.set(t.source.getKey(),t)}get(t){return this.tiles.get(t)}};Ee(Sa,"Protocol");var Eu=Sa;function Ta(e,t){return(t>>>0)*4294967296+(e>>>0)}Ee(Ta,"toNum");function wa(e,t){let n=t.buf,r=n[t.pos++],o=(r&112)>>4;if(r<128||(r=n[t.pos++],o|=(r&127)<<3,r<128)||(r=n[t.pos++],o|=(r&127)<<10,r<128)||(r=n[t.pos++],o|=(r&127)<<17,r<128)||(r=n[t.pos++],o|=(r&127)<<24,r<128)||(r=n[t.pos++],o|=(r&1)<<31,r<128))return Ta(e,o);throw new Error("Expected varint not more than 10 bytes")}Ee(wa,"readVarintRemainder");function nn(e){let t=e.buf,n=t[e.pos++],r=n&127;return n<128||(n=t[e.pos++],r|=(n&127)<<7,n<128)||(n=t[e.pos++],r|=(n&127)<<14,n<128)||(n=t[e.pos++],r|=(n&127)<<21,n<128)?r:(n=t[e.pos],r|=(n&15)<<28,wa(r,e))}Ee(nn,"readVarint");function xo(e,t,n,r){if(r===0){n===1&&(t[0]=e-1-t[0],t[1]=e-1-t[1]);let o=t[0];t[0]=t[1],t[1]=o}}Ee(xo,"rotate");function ka(e,t){let n=On(2,e),r=t,o=t,i=t,a=[0,0],l=1;for(;l<n;)r=1&i/2,o=1&(i^r),xo(l,a,r,o),a[0]+=l*r,a[1]+=l*o,i=i/4,l*=2;return[e,a[0],a[1]]}Ee(ka,"idOnLevel");var Su=[0,1,5,21,85,341,1365,5461,21845,87381,349525,1398101,5592405,22369621,89478485,357913941,1431655765,5726623061,22906492245,91625968981,366503875925,1466015503701,5864062014805,23456248059221,93824992236885,375299968947541,0x5555555555555];function Ra(e,t,n){if(e>26)throw new Error("Tile zoom level exceeds max safe number limit (26)");if(t>On(2,e)-1||n>On(2,e)-1)throw new Error("tile x/y outside zoom level bounds");let r=Su[e],o=On(2,e),i=0,a=0,l=0,c=[t,n],u=o/2;for(;u>0;)i=(c[0]&u)>0?1:0,a=(c[1]&u)>0?1:0,l+=u*u*(3*i^a),xo(u,c,i,a),u=u/2;return r+l}Ee(Ra,"zxyToTileId");function Tu(e){let t=0;for(let n=0;n<27;n++){let r=(1<<n)*(1<<n);if(t+r>e)return ka(n,e-t);t+=r}throw new Error("Tile zoom level exceeds max safe number limit (26)")}Ee(Tu,"tileIdToZxy");var wu=(e=>(e[e.Unknown=0]="Unknown",e[e.None=1]="None",e[e.Gzip=2]="Gzip",e[e.Brotli=3]="Brotli",e[e.Zstd=4]="Zstd",e))(wu||{});function gr(e,t){return Fe(this,null,function*(){if(t===1||t===0)return e;if(t===2){if(typeof globalThis.DecompressionStream>"u")return vu(new Uint8Array(e));let n=new Response(e).body;if(!n)throw new Error("Failed to read response stream");let r=n.pipeThrough(new globalThis.DecompressionStream("gzip"));return new Response(r).arrayBuffer()}throw new Error("Compression method not supported")})}Ee(gr,"defaultDecompress");var ku=(e=>(e[e.Unknown=0]="Unknown",e[e.Mvt=1]="Mvt",e[e.Png=2]="Png",e[e.Jpeg=3]="Jpeg",e[e.Webp=4]="Webp",e[e.Avif=5]="Avif",e))(ku||{});function Oa(e){return e===1?".mvt":e===2?".png":e===3?".jpg":e===4?".webp":e===5?".avif":""}Ee(Oa,"tileTypeExt");var Ru=127;function Aa(e,t){let n=0,r=e.length-1;for(;n<=r;){let o=r+n>>1,i=t-e[o].tileId;if(i>0)n=o+1;else if(i<0)r=o-1;else return e[o]}return r>=0&&(e[r].runLength===0||t-e[r].tileId<e[r].runLength)?e[r]:null}Ee(Aa,"findTile");var Ou=class{constructor(t){this.file=t}getKey(){return this.file.name}getBytes(t,n){return Fe(this,null,function*(){return{data:yield this.file.slice(t,t+n).arrayBuffer()}})}};Ee(Ou,"FileSource");var Pa=class{constructor(t,n=new Headers){this.url=t,this.customHeaders=n,this.mustReload=!1;let r="";"navigator"in globalThis&&(r=globalThis.navigator.userAgent||"");let o=r.indexOf("Windows")>-1,i=/Chrome|Chromium|Edg|OPR|Brave/.test(r);this.chromeWindowsNoCache=!1,o&&i&&(this.chromeWindowsNoCache=!0)}getKey(){return this.url}setHeaders(t){this.customHeaders=t}getBytes(t,n,r,o){return Fe(this,null,function*(){let i,a;r?a=r:(i=new AbortController,a=i.signal);let l=new Headers(this.customHeaders);l.set("range",`bytes=${t}-${t+n-1}`);let c;this.mustReload?c="reload":this.chromeWindowsNoCache&&(c="no-store");let u=yield fetch(this.url,{signal:a,cache:c,headers:l});if(t===0&&u.status===416){let p=u.headers.get("Content-Range");if(!p||!p.startsWith("bytes */"))throw new Error("Missing content-length on 416 response");let _=+p.substr(8);u=yield fetch(this.url,{signal:a,cache:"reload",headers:{range:`bytes=0-${_-1}`}})}let m=u.headers.get("Etag");if(m!=null&&m.startsWith("W/")&&(m=null),u.status===416||o&&m&&m!==o)throw this.mustReload=!0,new so(`Server returned non-matching ETag ${o} after one retry. Check browser extensions and servers for issues that may affect correct ETag headers.`);if(u.status>=300)throw new Error(`Bad response code: ${u.status}`);let d=u.headers.get("Content-Length");if(u.status===200&&(!d||+d>n))throw i&&i.abort(),new Error("Server returned no content-length header or content-length exceeding request. Check that your storage backend supports HTTP Byte Serving.");return{data:yield u.arrayBuffer(),etag:m||void 0,cacheControl:u.headers.get("Cache-Control")||void 0,expires:u.headers.get("Expires")||void 0}})}};Ee(Pa,"FetchSource");var Au=Pa;function it(e,t){let n=e.getUint32(t+4,!0),r=e.getUint32(t+0,!0);return n*On(2,32)+r}Ee(it,"getUint64");function $a(e,t){let n=new DataView(e),r=n.getUint8(7);if(r>3)throw new Error(`Archive is spec version ${r} but this library supports up to spec version 3`);return{specVersion:r,rootDirectoryOffset:it(n,8),rootDirectoryLength:it(n,16),jsonMetadataOffset:it(n,24),jsonMetadataLength:it(n,32),leafDirectoryOffset:it(n,40),leafDirectoryLength:it(n,48),tileDataOffset:it(n,56),tileDataLength:it(n,64),numAddressedTiles:it(n,72),numTileEntries:it(n,80),numTileContents:it(n,88),clustered:n.getUint8(96)===1,internalCompression:n.getUint8(97),tileCompression:n.getUint8(98),tileType:n.getUint8(99),minZoom:n.getUint8(100),maxZoom:n.getUint8(101),minLon:n.getInt32(102,!0)/1e7,minLat:n.getInt32(106,!0)/1e7,maxLon:n.getInt32(110,!0)/1e7,maxLat:n.getInt32(114,!0)/1e7,centerZoom:n.getUint8(118),centerLon:n.getInt32(119,!0)/1e7,centerLat:n.getInt32(123,!0)/1e7,etag:t}}Ee($a,"bytesToHeader");function Eo(e){let t={buf:new Uint8Array(e),pos:0},n=nn(t),r=[],o=0;for(let i=0;i<n;i++){let a=nn(t);r.push({tileId:o+a,offset:0,length:0,runLength:1}),o+=a}for(let i=0;i<n;i++)r[i].runLength=nn(t);for(let i=0;i<n;i++)r[i].length=nn(t);for(let i=0;i<n;i++){let a=nn(t);a===0&&i>0?r[i].offset=r[i-1].offset+r[i-1].length:r[i].offset=a-1}return r}Ee(Eo,"deserializeIndex");var ja=class extends Error{};Ee(ja,"EtagMismatch");var so=ja;function So(e,t){return Fe(this,null,function*(){let n=yield e.getBytes(0,16384);if(new DataView(n.data).getUint16(0,!0)!==19792)throw new Error("Wrong magic number for PMTiles archive");let r=n.data.slice(0,Ru),o=$a(r,n.etag),i=n.data.slice(o.rootDirectoryOffset,o.rootDirectoryOffset+o.rootDirectoryLength),a=`${e.getKey()}|${o.etag||""}|${o.rootDirectoryOffset}|${o.rootDirectoryLength}`,l=Eo(yield t(i,o.internalCompression));return[o,[a,l.length,l]]})}Ee(So,"getHeaderAndRoot");function To(e,t,n,r,o){return Fe(this,null,function*(){let i=yield e.getBytes(n,r,void 0,o.etag),a=yield t(i.data,o.internalCompression),l=Eo(a);if(l.length===0)throw new Error("Empty directory is invalid");return l})}Ee(To,"getDirectory");var Pu=class{constructor(t=100,n=!0,r=gr){this.cache=new Map,this.maxCacheEntries=t,this.counter=1,this.decompress=r}getHeader(t){return Fe(this,null,function*(){let n=t.getKey(),r=this.cache.get(n);if(r)return r.lastUsed=this.counter++,r.data;let o=yield So(t,this.decompress);return o[1]&&this.cache.set(o[1][0],{lastUsed:this.counter++,data:o[1][2]}),this.cache.set(n,{lastUsed:this.counter++,data:o[0]}),this.prune(),o[0]})}getDirectory(t,n,r,o){return Fe(this,null,function*(){let i=`${t.getKey()}|${o.etag||""}|${n}|${r}`,a=this.cache.get(i);if(a)return a.lastUsed=this.counter++,a.data;let l=yield To(t,this.decompress,n,r,o);return this.cache.set(i,{lastUsed:this.counter++,data:l}),this.prune(),l})}prune(){if(this.cache.size>this.maxCacheEntries){let t=1/0,n;this.cache.forEach((r,o)=>{r.lastUsed<t&&(t=r.lastUsed,n=o)}),n&&this.cache.delete(n)}}invalidate(t){return Fe(this,null,function*(){this.cache.delete(t.getKey())})}};Ee(Pu,"ResolvedValueCache");var Ma=class{constructor(t=100,n=!0,r=gr){this.cache=new Map,this.invalidations=new Map,this.maxCacheEntries=t,this.counter=1,this.decompress=r}getHeader(t){return Fe(this,null,function*(){let n=t.getKey(),r=this.cache.get(n);if(r)return r.lastUsed=this.counter++,yield r.data;let o=new Promise((i,a)=>{So(t,this.decompress).then(l=>{l[1]&&this.cache.set(l[1][0],{lastUsed:this.counter++,data:Promise.resolve(l[1][2])}),i(l[0]),this.prune()}).catch(l=>{a(l)})});return this.cache.set(n,{lastUsed:this.counter++,data:o}),o})}getDirectory(t,n,r,o){return Fe(this,null,function*(){let i=`${t.getKey()}|${o.etag||""}|${n}|${r}`,a=this.cache.get(i);if(a)return a.lastUsed=this.counter++,yield a.data;let l=new Promise((c,u)=>{To(t,this.decompress,n,r,o).then(m=>{c(m),this.prune()}).catch(m=>{u(m)})});return this.cache.set(i,{lastUsed:this.counter++,data:l}),l})}prune(){if(this.cache.size>=this.maxCacheEntries){let t=1/0,n;this.cache.forEach((r,o)=>{r.lastUsed<t&&(t=r.lastUsed,n=o)}),n&&this.cache.delete(n)}}invalidate(t){return Fe(this,null,function*(){let n=t.getKey();if(this.invalidations.get(n))return yield this.invalidations.get(n);this.cache.delete(t.getKey());let r=new Promise((o,i)=>{this.getHeader(t).then(a=>{o(),this.invalidations.delete(n)}).catch(a=>{i(a)})});this.invalidations.set(n,r)})}};Ee(Ma,"SharedPromiseCache");var $u=Ma,La=class{constructor(t,n,r){typeof t=="string"?this.source=new Au(t):this.source=t,r?this.decompress=r:this.decompress=gr,n?this.cache=n:this.cache=new $u}getHeader(){return Fe(this,null,function*(){return yield this.cache.getHeader(this.source)})}getZxyAttempt(t,n,r,o){return Fe(this,null,function*(){let i=Ra(t,n,r),a=yield this.cache.getHeader(this.source);if(t<a.minZoom||t>a.maxZoom)return;let l=a.rootDirectoryOffset,c=a.rootDirectoryLength;for(let u=0;u<=3;u++){let m=yield this.cache.getDirectory(this.source,l,c,a),d=Aa(m,i);if(d){if(d.runLength>0){let p=yield this.source.getBytes(a.tileDataOffset+d.offset,d.length,o,a.etag);return{data:yield this.decompress(p.data,a.tileCompression),cacheControl:p.cacheControl,expires:p.expires}}l=a.leafDirectoryOffset+d.offset,c=d.length}else return}throw new Error("Maximum directory depth exceeded")})}getZxy(t,n,r,o){return Fe(this,null,function*(){try{return yield this.getZxyAttempt(t,n,r,o)}catch(i){if(i instanceof so)return this.cache.invalidate(this.source),yield this.getZxyAttempt(t,n,r,o);throw i}})}getMetadataAttempt(){return Fe(this,null,function*(){let t=yield this.cache.getHeader(this.source),n=yield this.source.getBytes(t.jsonMetadataOffset,t.jsonMetadataLength,void 0,t.etag),r=yield this.decompress(n.data,t.internalCompression),o=new TextDecoder("utf-8");return JSON.parse(o.decode(r))})}getMetadata(){return Fe(this,null,function*(){try{return yield this.getMetadataAttempt()}catch(t){if(t instanceof so)return this.cache.invalidate(this.source),yield this.getMetadataAttempt();throw t}})}getTileJson(t){return Fe(this,null,function*(){let n=yield this.getHeader(),r=yield this.getMetadata(),o=Oa(n.tileType);return{tilejson:"3.0.0",scheme:"xyz",tiles:[`${t}/{z}/{x}/{y}${o}`],vector_layers:r.vector_layers,attribution:r.attribution,description:r.description,name:r.name,version:r.version,bounds:[n.minLon,n.minLat,n.maxLon,n.maxLat],center:[n.centerLon,n.centerLat,n.centerZoom],minzoom:n.minZoom,maxzoom:n.maxZoom}})}};Ee(La,"PMTiles");var fi=La;const ju=X.createContext(null);function Mu(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 Ze(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(!Ze(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)||!Ze(e[o],t[o]))return!1;return!0}return!1}function mi(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function pi(e,t){const n=t.viewState||t,r={};if("longitude"in n&&"latitude"in n&&(n.longitude!==e.center.lng||n.latitude!==e.center.lat)){const o=e.center.constructor;r.center=new o(n.longitude,n.latitude)}return"zoom"in n&&n.zoom!==e.zoom&&(r.zoom=n.zoom),"bearing"in n&&n.bearing!==e.bearing&&(r.bearing=n.bearing),"pitch"in n&&n.pitch!==e.pitch&&(r.pitch=n.pitch),n.padding&&e.padding&&!Ze(n.padding,e.padding)&&(r.padding=n.padding),r}const Lu=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function hi(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 Lu)a in i&&(o[a]=i[a])}return o||r});return{...e,layers:n}}const gi={version:8,sources:{},layers:[]},yi={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"},vi={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"},bi={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"},Nu=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],Iu=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class un{constructor(t,n,r){this._map=null,this._internalUpdate=!1,this._hoveredFeatures=null,this._propsedCameraUpdate=null,this._styleComponents={},this._onEvent=o=>{const i=this.props[bi[o.type]];i?i(o):o.type==="error"&&console.error(o.error)},this._onCameraEvent=o=>{if(this._internalUpdate)return;o.viewState=this._propsedCameraUpdate||mi(this._map.transform);const i=this.props[vi[o.type]];i&&i(o)},this._onCameraUpdate=o=>this._internalUpdate?o:(this._propsedCameraUpdate=mi(o),pi(o,this.props)),this._onPointerEvent=o=>{(o.type==="mousemove"||o.type==="mouseout")&&this._updateHover(o);const i=this.props[yi[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._MapClass=t,this.props=n,this._initialize(r)}get map(){return this._map}setProps(t){const n=this.props;this.props=t;const r=this._updateSettings(t,n),o=this._updateSize(t),i=this._updateViewState(t);this._updateStyle(t,n),this._updateStyleComponents(t),this._updateHandlers(t,n),(r||o||i&&!this._map.isMoving())&&this.redraw()}static reuse(t,n){const r=un.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)),o.isStyleLoaded()?o.fire("load"):o.once("style.load",()=>o.fire("load")),o._update(),r}_initialize(t){const{props:n}=this,{mapStyle:r=gi}=n,o={...n,...n.initialViewState,container:t,style:hi(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 l=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=l,n.gl)}const a=new this._MapClass(o);i.padding&&a.setPadding(i.padding),n.cursor&&(a.getCanvas().style.cursor=n.cursor),a.transformCameraUpdate=this._onCameraUpdate,a.on("style.load",()=>{var l;this._styleComponents={light:a.getLight(),sky:a.getSky(),projection:(l=a.getProjection)==null?void 0:l.call(a),terrain:a.getTerrain()},this._updateStyleComponents(this.props)}),a.on("sourcedata",()=>{this._updateStyleComponents(this.props)});for(const l in yi)a.on(l,this._onPointerEvent);for(const l in vi)a.on(l,this._onCameraEvent);for(const l in bi)a.on(l,this._onEvent);this._map=a}recycle(){const n=this.map.getContainer().querySelector("[mapboxgl-children]");n==null||n.remove(),un.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const t=this._map;t.style&&(t._frame&&(t._frame.cancel(),t._frame=null),t._render())}_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){const n=this._map,r=n.transform;if(!n.isMoving()){const i=pi(r,t);if(Object.keys(i).length>0)return this._internalUpdate=!0,n.jumpTo(i),this._internalUpdate=!1,!0}return!1}_updateSettings(t,n){const r=this._map;let o=!1;for(const i of Nu)if(i in t&&!Ze(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=gi,styleDiffing:o=!0}=t,i={diff:o};"localIdeographFontFamily"in t&&(i.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(hi(r),i)}}_updateStyleComponents({light:t,projection:n,sky:r,terrain:o}){var l,c;const i=this._map,a=this._styleComponents;i.style._loaded&&(t&&!Ze(t,a.light)&&(a.light=t,i.setLight(t)),n&&!Ze(n,a.projection)&&n!==((l=a.projection)==null?void 0:l.type)&&(a.projection=typeof n=="string"?{type:n}:n,(c=i.setProjection)==null||c.call(i,a.projection)),r&&!Ze(r,a.sky)&&(a.sky=r,i.setSky(r)),o!==void 0&&!Ze(o,a.terrain)&&(!o||i.getSource(o.source))&&(a.terrain=o,i.setTerrain(o)))}_updateHandlers(t,n){const r=this._map;for(const o of Iu){const i=t[o]??!0,a=n[o]??!0;Ze(i,a)||(i?r[o].enable(i):r[o].disable())}}_queryRenderedFeatures(t){const n=this._map,{interactiveLayerIds:r=[]}=this.props;try{return n.queryRenderedFeatures(t,{layers:r.filter(n.getLayer.bind(n))})}catch{return[]}}_updateHover(t){var o;const{props:n}=this;if(n.interactiveLayerIds&&(n.onMouseMove||n.onMouseEnter||n.onMouseLeave)){const i=t.type,a=((o=this._hoveredFeatures)==null?void 0:o.length)>0,l=this._queryRenderedFeatures(t.point),c=l.length>0;!c&&a&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=l,c&&!a&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=i}else this._hoveredFeatures=null}}un.savedMaps=[];const Du=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function Fu(e){if(!e)return null;const t=e.map,n={getMap:()=>t};for(const r of Bu(t))!(r in n)&&!Du.includes(r)&&(n[r]=t[r].bind(t));return n}function Bu(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 zu=typeof document<"u"?v.useLayoutEffect:v.useEffect;function Vu(e,t){const{RTLTextPlugin:n,maxParallelImageRequests:r,workerCount:o,workerUrl:i}=t;if(n&&e.getRTLTextPluginStatus&&e.getRTLTextPluginStatus()==="unavailable"){const{pluginUrl:a,lazy:l=!0}=typeof n=="string"?{pluginUrl:n}:n;e.setRTLTextPlugin(a,c=>{c&&console.error(c)},l)}r!==void 0&&e.setMaxParallelImageRequests(r),o!==void 0&&e.setWorkerCount(o),i!==void 0&&e.setWorkerUrl(i)}const mn=X.createContext(null);function Uu(e,t){const n=v.useContext(ju),[r,o]=v.useState(null),i=v.useRef(),{current:a}=v.useRef({mapLib:null,map:null});v.useEffect(()=>{const u=e.mapLib;let m=!0,d;return Promise.resolve(u||import("maplibre-gl")).then(p=>{if(!m)return;if(!p)throw new Error("Invalid mapLib");const _="Map"in p?p:p.default;if(!_.Map)throw new Error("Invalid mapLib");Vu(_,e),e.reuseMaps&&(d=un.reuse(e,i.current)),d||(d=new un(_.Map,e,i.current)),a.map=Fu(d),a.mapLib=_,o(d),n==null||n.onMapMount(a.map,e.id)}).catch(p=>{const{onError:_}=e;_?_({type:"error",target:null,originalEvent:null,error:p}):console.error(p)}),()=>{m=!1,d&&(n==null||n.onMapUnmount(e.id),e.reuseMaps?d.recycle():d.destroy())}},[]),zu(()=>{r&&r.setProps(e)}),v.useImperativeHandle(t,()=>a.map,[r]);const l=v.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),c={height:"100%"};return X.createElement("div",{id:e.id,ref:i,style:l},r&&X.createElement(mn.Provider,{value:a},X.createElement("div",{"mapboxgl-children":"",style:c},e.children)))}const qu=X.forwardRef(Uu),Wu=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function bt(e,t){if(!e||!t)return;const n=e.style;for(const r in t){const o=t[r];Number.isFinite(o)&&!Wu.test(r)?n[r]=`${o}px`:n[r]=o}}function Na(e,t){if(e===t)return null;const n=_i(e),r=_i(t),o=[];for(const i of r)n.has(i)||o.push(i);for(const i of n)r.has(i)||o.push(i);return o.length===0?null:o}function _i(e){return new Set(e?e.trim().split(/\s+/):[])}v.memo(v.forwardRef((e,t)=>{const{map:n,mapLib:r}=v.useContext(mn),o=v.useRef({props:e}),i=v.useMemo(()=>{let E=!1;X.Children.forEach(e.children,j=>{j&&(E=!0)});const T={...e,element:E?document.createElement("div"):void 0},k=new r.Marker(T);return k.setLngLat([e.longitude,e.latitude]),k.getElement().addEventListener("click",j=>{var C,z;(z=(C=o.current.props).onClick)==null||z.call(C,{type:"click",target:k,originalEvent:j})}),k.on("dragstart",j=>{var z,y;const C=j;C.lngLat=i.getLngLat(),(y=(z=o.current.props).onDragStart)==null||y.call(z,C)}),k.on("drag",j=>{var z,y;const C=j;C.lngLat=i.getLngLat(),(y=(z=o.current.props).onDrag)==null||y.call(z,C)}),k.on("dragend",j=>{var z,y;const C=j;C.lngLat=i.getLngLat(),(y=(z=o.current.props).onDragEnd)==null||y.call(z,C)}),k},[]);v.useEffect(()=>(i.addTo(n.getMap()),()=>{i.remove()}),[]);const{longitude:a,latitude:l,offset:c,style:u,draggable:m=!1,popup:d=null,rotation:p=0,rotationAlignment:_="auto",pitchAlignment:b="auto"}=e;v.useEffect(()=>{bt(i.getElement(),u)},[u]),v.useImperativeHandle(t,()=>i,[]);const f=o.current.props;(i.getLngLat().lng!==a||i.getLngLat().lat!==l)&&i.setLngLat([a,l]),c&&!Mu(i.getOffset(),c)&&i.setOffset(c),i.isDraggable()!==m&&i.setDraggable(m),i.getRotation()!==p&&i.setRotation(p),i.getRotationAlignment()!==_&&i.setRotationAlignment(_),i.getPitchAlignment()!==b&&i.setPitchAlignment(b),i.getPopup()!==d&&i.setPopup(d);const x=Na(f.className,e.className);if(x)for(const E of x)i.toggleClassName(E);return o.current.props=e,hr.createPortal(e.children,i.getElement())}));const Hu=v.memo(v.forwardRef((e,t)=>{const{map:n,mapLib:r}=v.useContext(mn),o=v.useMemo(()=>document.createElement("div"),[]),i=v.useRef({props:e}),a=v.useMemo(()=>{const l={...e},c=new r.Popup(l);return c.setLngLat([e.longitude,e.latitude]),c.once("open",u=>{var m,d;(d=(m=i.current.props).onOpen)==null||d.call(m,u)}),c},[]);if(v.useEffect(()=>{const l=c=>{var u,m;(m=(u=i.current.props).onClose)==null||m.call(u,c)};return a.on("close",l),a.setDOMContent(o).addTo(n.getMap()),()=>{a.off("close",l),a.isOpen()&&a.remove()}},[]),v.useEffect(()=>{bt(a.getElement(),e.style)},[e.style]),v.useImperativeHandle(t,()=>a,[]),a.isOpen()){const l=i.current.props;(a.getLngLat().lng!==e.longitude||a.getLngLat().lat!==e.latitude)&&a.setLngLat([e.longitude,e.latitude]),e.offset&&!Ze(l.offset,e.offset)&&a.setOffset(e.offset),(l.anchor!==e.anchor||l.maxWidth!==e.maxWidth)&&(a.options.anchor=e.anchor,a.setMaxWidth(e.maxWidth));const c=Na(l.className,e.className);if(c)for(const u of c)a.toggleClassName(u);i.current.props=e}return hr.createPortal(e.children,o)}));function Ft(e,t,n,r){const o=v.useContext(mn),i=v.useMemo(()=>e(o),[]);return v.useEffect(()=>{const a=t,l=typeof t=="function"?t:null,{map:c}=o;return c.hasControl(i)||c.addControl(i,a==null?void 0:a.position),()=>{l&&l(o),c.hasControl(i)&&c.removeControl(i)}},[]),i}function Yu(e){const t=Ft(({mapLib:n})=>new n.AttributionControl(e),{position:e.position});return v.useEffect(()=>{bt(t._container,e.style)},[e.style]),null}v.memo(Yu);function Ku(e){const t=Ft(({mapLib:n})=>new n.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return v.useEffect(()=>{bt(t._controlContainer,e.style)},[e.style]),null}v.memo(Ku);function Zu(e,t){const n=v.useRef({props:e}),r=Ft(({mapLib:o})=>{const i=new o.GeolocateControl(e),a=i._setupUI;return i._setupUI=()=>{i._container.hasChildNodes()||a()},i.on("geolocate",l=>{var c,u;(u=(c=n.current.props).onGeolocate)==null||u.call(c,l)}),i.on("error",l=>{var c,u;(u=(c=n.current.props).onError)==null||u.call(c,l)}),i.on("outofmaxbounds",l=>{var c,u;(u=(c=n.current.props).onOutOfMaxBounds)==null||u.call(c,l)}),i.on("trackuserlocationstart",l=>{var c,u;(u=(c=n.current.props).onTrackUserLocationStart)==null||u.call(c,l)}),i.on("trackuserlocationend",l=>{var c,u;(u=(c=n.current.props).onTrackUserLocationEnd)==null||u.call(c,l)}),i},{position:e.position});return n.current.props=e,v.useImperativeHandle(t,()=>r,[]),v.useEffect(()=>{bt(r._container,e.style)},[e.style]),null}v.memo(v.forwardRef(Zu));function Gu(e){const t=Ft(({mapLib:n})=>new n.NavigationControl(e),{position:e.position});return v.useEffect(()=>{bt(t._container,e.style)},[e.style]),null}const Ju=v.memo(Gu);function Xu(e){const t=Ft(({mapLib:i})=>new i.ScaleControl(e),{position:e.position}),n=v.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),v.useEffect(()=>{bt(t._container,o)},[o]),null}v.memo(Xu);function Qu(e){const t=Ft(({mapLib:n})=>new n.TerrainControl(e),{position:e.position});return v.useEffect(()=>{bt(t._container,e.style)},[e.style]),null}v.memo(Qu);function ed(e){const t=Ft(({mapLib:n})=>new n.LogoControl(e),{position:e.position});return v.useEffect(()=>{bt(t._container,e.style)},[e.style]),null}v.memo(ed);function dr(e,t){if(!e)throw new Error(t)}let td=0;function nd(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 rd(e,t,n){var a,l,c;dr(t.id===n.id,"source id changed"),dr(t.type===n.type,"source type changed");let r="",o=0;for(const u in t)u!=="children"&&u!=="id"&&!Ze(n[u],t[u])&&(r=u,o++);if(!o)return;const i=t.type;if(i==="geojson")e.setData(t.data);else if(i==="image")e.updateImage({url:t.url,coordinates:t.coordinates});else switch(r){case"coordinates":(a=e.setCoordinates)==null||a.call(e,t.coordinates);break;case"url":(l=e.setUrl)==null||l.call(e,t.url);break;case"tiles":(c=e.setTiles)==null||c.call(e,t.tiles);break;default:console.warn(`Unable to update <Source> prop: ${r}`)}}function od(e){const t=v.useContext(mn).map.getMap(),n=v.useRef(e),[,r]=v.useState(0),o=v.useMemo(()=>e.id||`jsx-source-${td++}`,[]);v.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 c=(l=t.getStyle())==null?void 0:l.layers;if(c)for(const u of c)u.source===o&&t.removeLayer(u.id);t.removeSource(o)}}}},[t]);let i=t&&t.style&&t.getSource(o);return i?rd(i,e,n.current):i=nd(t,o,e),n.current=e,i&&X.Children.map(e.children,a=>a&&v.cloneElement(a,{source:o}))||null}function id(e,t,n,r){if(dr(n.id===r.id,"layer id changed"),dr(n.type===r.type,"layer type changed"),n.type==="custom"||r.type==="custom")return;const{layout:o={},paint:i={},filter:a,minzoom:l,maxzoom:c,beforeId:u}=n;if(u!==r.beforeId&&e.moveLayer(t,u),o!==r.layout){const m=r.layout||{};for(const d in o)Ze(o[d],m[d])||e.setLayoutProperty(t,d,o[d]);for(const d in m)o.hasOwnProperty(d)||e.setLayoutProperty(t,d,void 0)}if(i!==r.paint){const m=r.paint||{};for(const d in i)Ze(i[d],m[d])||e.setPaintProperty(t,d,i[d]);for(const d in m)i.hasOwnProperty(d)||e.setPaintProperty(t,d,void 0)}Ze(a,r.filter)||e.setFilter(t,a),(l!==r.minzoom||c!==r.maxzoom)&&e.setLayerZoomRange(t,l,c)}function ad(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 sd=0;function ld(e){const t=v.useContext(mn).map.getMap(),n=v.useRef(e),[,r]=v.useState(0),o=v.useMemo(()=>e.id||`jsx-layer-${sd++}`,[]);if(v.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{id(t,o,e,n.current)}catch(a){console.warn(a)}else ad(t,o,e);return n.current=e,null}const cd="_mapContainer_ivruh_3",ud={mapContainer:cd},Ia=({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:c=!1,sources:u=[],layers:m=[]})=>{const d=v.useRef(),[p,_]=v.useState(null),b=wt.useSelector(f=>f.mapState.showTexts);return v.useEffect(()=>{if(d.current){const f=d.current.getMap();f.getStyle().layers.map(E=>{E.type=="symbol"&&E.id!="professionals"&&(b?f.setLayoutProperty(E.id,"visibility","visible"):f.setLayoutProperty(E.id,"visibility","none"))})}},[b]),v.useEffect(()=>{let f=new Eu;return No.addProtocol("pmtiles",f.tile),()=>{No.removeProtocol("pmtiles")}},[]),g.jsx("div",{className:`${ud.mapContainer}`,style:i&&i,children:g.jsxs(qu,{initialViewState:e,ref:d,hash:!1,maxZoom:t,minZoom:n,mapStyle:r,onClick:a,interactiveLayerIds:l,children:[u.length&&u.map((f,x)=>g.jsx(od,{...f,children:m.length&&m.map((E,T)=>{if(E.sourceId==f.id)return g.jsx(ld,{...E.layer,beforeId:o},T)})},x)),g.jsx(Ju,{position:"bottom-right",visualizePitch:!0}),c&&p&&g.jsx(Hu,{longitude:c.longitude,latitude:c.latitude,anchor:c.anchor,onClose:()=>_(null),children:c.content})]})})};Ia.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.shape({latitude:s.number,longitude:s.number,anchor:s.string,content:s.element}),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 dd="_sectionBar_2vnc3_2",fd="_leftContent_2vnc3_13",md="_textContainer_2vnc3_19",pd="_title_2vnc3_26",hd="_subtitle_2vnc3_32",gd="_rightContent_2vnc3_37",Nt={sectionBar:dd,leftContent:fd,textContainer:md,title:pd,subtitle:hd,rightContent:gd},Da=({leftIcon:e,title:t,subtitle:n,rightContent:r,mainColor:o})=>{const{t:i}=je.useTranslation();return g.jsxs("div",{className:Nt.sectionBar,children:[g.jsxs("div",{className:Nt.leftContent,children:[e&&g.jsx("img",{src:e,alt:"Icono",className:Nt.icon}),g.jsxs("div",{className:Nt.textContainer,children:[g.jsx("div",{className:Nt.title,style:o?{color:o}:{},children:i(t)}),n&&g.jsx("div",{className:Nt.subtitle,children:n})]})]}),g.jsx("div",{className:Nt.rightContent,children:r})]})};Da.propTypes={leftIcon:s.node.isRequired,title:s.string.isRequired,subtitle:s.string,rightContent:s.node.isRequired,mainColor:s.string};const yd=go.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:b0,setYear:Zr,setActiveIndicatorKey:_0,setActiveIndicatorType:C0,setActiveIndicatorUnit:x0}=yd.actions,vd="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",bd="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 _t(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function B(){return B=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},B.apply(null,arguments)}function Fa(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=Fa(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function kt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Fa(e))&&(r&&(r+=" "),r+=t);return r}function Ci(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function _d(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const l=t(a);l!==""&&i.push(l),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}var Oe={},Gr={exports:{}},xi;function Ba(){return xi||(xi=1,function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Gr)),Gr.exports}function $n(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const Cd=Object.freeze(Object.defineProperty({__proto__:null,default:$n},Symbol.toStringTag,{value:"Module"})),xd=Rt(Cd);function rn(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const Ed=Object.freeze(Object.defineProperty({__proto__:null,default:rn},Symbol.toStringTag,{value:"Module"})),Sd=Rt(Ed);var Ei;function Td(){if(Ei)return Oe;Ei=1;var e=Ba();Object.defineProperty(Oe,"__esModule",{value:!0}),Oe.alpha=b,Oe.blend=z,Oe.colorChannel=void 0,Oe.darken=x,Oe.decomposeColor=a,Oe.emphasize=j,Oe.getContrastRatio=_,Oe.getLuminance=p,Oe.hexToRgb=o,Oe.hslToRgb=d,Oe.lighten=T,Oe.private_safeAlpha=f,Oe.private_safeColorChannel=void 0,Oe.private_safeDarken=E,Oe.private_safeEmphasize=C,Oe.private_safeLighten=k,Oe.recomposeColor=u,Oe.rgbToHex=m;var t=e(xd),n=e(Sd);function r(y,w=0,S=1){return process.env.NODE_ENV!=="production"&&(y<w||y>S)&&console.error(`MUI: The value provided ${y} is out of range [${w}, ${S}].`),(0,n.default)(y,w,S)}function o(y){y=y.slice(1);const w=new RegExp(`.{1,${y.length>=6?2:1}}`,"g");let S=y.match(w);return S&&S[0].length===1&&(S=S.map(A=>A+A)),S?`rgb${S.length===4?"a":""}(${S.map((A,N)=>N<3?parseInt(A,16):Math.round(parseInt(A,16)/255*1e3)/1e3).join(", ")})`:""}function i(y){const w=y.toString(16);return w.length===1?`0${w}`:w}function a(y){if(y.type)return y;if(y.charAt(0)==="#")return a(o(y));const w=y.indexOf("("),S=y.substring(0,w);if(["rgb","rgba","hsl","hsla","color"].indexOf(S)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${y}\` color.
48
+ */var Nr,Wo;function Ys(){if(Wo)return Nr;Wo=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 c=Object.getOwnPropertyNames(a).map(function(m){return a[m]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(m){u[m]=m}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Nr=o()?Object.assign:function(i,a){for(var l,c=r(i),u,m=1;m<arguments.length;m++){l=Object(arguments[m]);for(var d in l)t.call(l,d)&&(c[d]=l[d]);if(e){u=e(l);for(var p=0;p<u.length;p++)n.call(l,u[p])&&(c[u[p]]=l[u[p]])}}return c},Nr}var Ir,Ho;function go(){if(Ho)return Ir;Ho=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ir=e,Ir}var Dr,Yo;function Ji(){return Yo||(Yo=1,Dr=Function.call.bind(Object.prototype.hasOwnProperty)),Dr}var Fr,Ko;function Ks(){if(Ko)return Fr;Ko=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=go(),n={},r=Ji();e=function(i){var a="Warning: "+i;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function o(i,a,l,c,u){if(process.env.NODE_ENV!=="production"){for(var m in i)if(r(i,m)){var d;try{if(typeof i[m]!="function"){var p=Error((c||"React class")+": "+l+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}d=i[m](a,m,c,l,null,t)}catch(b){d=b}if(d&&!(d instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var _=u?u():"";e("Failed "+l+" type: "+d.message+(_??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Fr=o,Fr}var Br,Zo;function Zs(){if(Zo)return Br;Zo=1;var e=Gi(),t=Ys(),n=go(),r=Ji(),o=Ks(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function a(){return null}return Br=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function d(R){var M=R&&(u&&R[u]||R[m]);if(typeof M=="function")return M}var p="<<anonymous>>",_={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:T(),arrayOf:k,element:j(),elementType:C(),instanceOf:z,node:A(),objectOf:w,oneOf:y,oneOfType:S,shape:H,exact:V};function b(R,M){return R===M?R!==0||1/R===1/M:R!==R&&M!==M}function f(R,M){this.message=R,this.data=M&&typeof M=="object"?M:{},this.stack=""}f.prototype=Error.prototype;function x(R){if(process.env.NODE_ENV!=="production")var M={},Q=0;function q(ee,Z,K,U,G,ne,be){if(U=U||p,ne=ne||K,be!==n){if(c){var P=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 P.name="Invariant Violation",P}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var _e=U+":"+K;!M[_e]&&Q<3&&(i("You are manually calling a React.PropTypes validation function for the `"+ne+"` 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."),M[_e]=!0,Q++)}}return Z[K]==null?ee?Z[K]===null?new f("The "+G+" `"+ne+"` is marked as required "+("in `"+U+"`, but its value is `null`.")):new f("The "+G+" `"+ne+"` is marked as required in "+("`"+U+"`, but its value is `undefined`.")):null:R(Z,K,U,G,ne)}var F=q.bind(null,!1);return F.isRequired=q.bind(null,!0),F}function E(R){function M(Q,q,F,ee,Z,K){var U=Q[q],G=ie(U);if(G!==R){var ne=re(U);return new f("Invalid "+ee+" `"+Z+"` of type "+("`"+ne+"` supplied to `"+F+"`, expected ")+("`"+R+"`."),{expectedType:R})}return null}return x(M)}function T(){return x(a)}function k(R){function M(Q,q,F,ee,Z){if(typeof R!="function")return new f("Property `"+Z+"` of component `"+F+"` has invalid PropType notation inside arrayOf.");var K=Q[q];if(!Array.isArray(K)){var U=ie(K);return new f("Invalid "+ee+" `"+Z+"` of type "+("`"+U+"` supplied to `"+F+"`, expected an array."))}for(var G=0;G<K.length;G++){var ne=R(K,G,F,ee,Z+"["+G+"]",n);if(ne instanceof Error)return ne}return null}return x(M)}function j(){function R(M,Q,q,F,ee){var Z=M[Q];if(!l(Z)){var K=ie(Z);return new f("Invalid "+F+" `"+ee+"` of type "+("`"+K+"` supplied to `"+q+"`, expected a single ReactElement."))}return null}return x(R)}function C(){function R(M,Q,q,F,ee){var Z=M[Q];if(!e.isValidElementType(Z)){var K=ie(Z);return new f("Invalid "+F+" `"+ee+"` of type "+("`"+K+"` supplied to `"+q+"`, expected a single ReactElement type."))}return null}return x(R)}function z(R){function M(Q,q,F,ee,Z){if(!(Q[q]instanceof R)){var K=R.name||p,U=Ae(Q[q]);return new f("Invalid "+ee+" `"+Z+"` of type "+("`"+U+"` supplied to `"+F+"`, expected ")+("instance of `"+K+"`."))}return null}return x(M)}function y(R){if(!Array.isArray(R))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function M(Q,q,F,ee,Z){for(var K=Q[q],U=0;U<R.length;U++)if(b(K,R[U]))return null;var G=JSON.stringify(R,function(be,P){var _e=re(P);return _e==="symbol"?String(P):P});return new f("Invalid "+ee+" `"+Z+"` of value `"+String(K)+"` "+("supplied to `"+F+"`, expected one of "+G+"."))}return x(M)}function w(R){function M(Q,q,F,ee,Z){if(typeof R!="function")return new f("Property `"+Z+"` of component `"+F+"` has invalid PropType notation inside objectOf.");var K=Q[q],U=ie(K);if(U!=="object")return new f("Invalid "+ee+" `"+Z+"` of type "+("`"+U+"` supplied to `"+F+"`, expected an object."));for(var G in K)if(r(K,G)){var ne=R(K,G,F,ee,Z+"."+G,n);if(ne instanceof Error)return ne}return null}return x(M)}function S(R){if(!Array.isArray(R))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var M=0;M<R.length;M++){var Q=R[M];if(typeof Q!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+we(Q)+" at index "+M+"."),a}function q(F,ee,Z,K,U){for(var G=[],ne=0;ne<R.length;ne++){var be=R[ne],P=be(F,ee,Z,K,U,n);if(P==null)return null;P.data&&r(P.data,"expectedType")&&G.push(P.data.expectedType)}var _e=G.length>0?", expected one of type ["+G.join(", ")+"]":"";return new f("Invalid "+K+" `"+U+"` supplied to "+("`"+Z+"`"+_e+"."))}return x(q)}function A(){function R(M,Q,q,F,ee){return ce(M[Q])?null:new f("Invalid "+F+" `"+ee+"` supplied to "+("`"+q+"`, expected a ReactNode."))}return x(R)}function N(R,M,Q,q,F){return new f((R||"React class")+": "+M+" type `"+Q+"."+q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+F+"`.")}function H(R){function M(Q,q,F,ee,Z){var K=Q[q],U=ie(K);if(U!=="object")return new f("Invalid "+ee+" `"+Z+"` of type `"+U+"` "+("supplied to `"+F+"`, expected `object`."));for(var G in R){var ne=R[G];if(typeof ne!="function")return N(F,ee,Z,G,re(ne));var be=ne(K,G,F,ee,Z+"."+G,n);if(be)return be}return null}return x(M)}function V(R){function M(Q,q,F,ee,Z){var K=Q[q],U=ie(K);if(U!=="object")return new f("Invalid "+ee+" `"+Z+"` of type `"+U+"` "+("supplied to `"+F+"`, expected `object`."));var G=t({},Q[q],R);for(var ne in G){var be=R[ne];if(r(R,ne)&&typeof be!="function")return N(F,ee,Z,ne,re(be));if(!be)return new f("Invalid "+ee+" `"+Z+"` key `"+ne+"` supplied to `"+F+"`.\nBad object: "+JSON.stringify(Q[q],null," ")+`
49
+ Valid keys: `+JSON.stringify(Object.keys(R),null," "));var P=be(K,ne,F,ee,Z+"."+ne,n);if(P)return P}return null}return x(M)}function ce(R){switch(typeof R){case"number":case"string":case"undefined":return!0;case"boolean":return!R;case"object":if(Array.isArray(R))return R.every(ce);if(R===null||l(R))return!0;var M=d(R);if(M){var Q=M.call(R),q;if(M!==R.entries){for(;!(q=Q.next()).done;)if(!ce(q.value))return!1}else for(;!(q=Q.next()).done;){var F=q.value;if(F&&!ce(F[1]))return!1}}else return!1;return!0;default:return!1}}function Y(R,M){return R==="symbol"?!0:M?M["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&M instanceof Symbol:!1}function ie(R){var M=typeof R;return Array.isArray(R)?"array":R instanceof RegExp?"object":Y(M,R)?"symbol":M}function re(R){if(typeof R>"u"||R===null)return""+R;var M=ie(R);if(M==="object"){if(R instanceof Date)return"date";if(R instanceof RegExp)return"regexp"}return M}function we(R){var M=re(R);switch(M){case"array":case"object":return"an "+M;case"boolean":case"date":case"regexp":return"a "+M;default:return M}}function Ae(R){return!R.constructor||!R.constructor.name?p:R.constructor.name}return _.checkPropTypes=o,_.resetWarningCache=o.resetWarningCache,_.PropTypes=_,_},Br}var zr,Go;function Gs(){if(Go)return zr;Go=1;var e=go();function t(){}function n(){}return n.resetWarningCache=t,zr=function(){function r(a,l,c,u,m,d){if(d!==e){var p=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 p.name="Invariant Violation",p}}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},zr}var Jo;function Js(){if(Jo)return Hn.exports;if(Jo=1,process.env.NODE_ENV!=="production"){var e=Gi(),t=!0;Hn.exports=Zs()(e.isElement,t)}else Hn.exports=Gs()();return Hn.exports}var Xs=Js();const s=Zi(Xs),Xi=({ambit:e,onClickCopy:t,onClickDelete:n,onClickFilters:r,onClickAmbit:o,isBeingProcessed:i,isActive:a,activeColor:l,fontColor:c,moreInfo:u})=>{const{name:m,date:d,id:p}=e;return g.jsxs("div",{className:En.ambitItem,style:{borderBottom:`1px solid ${c}`},children:[g.jsxs("div",{className:En.ambitNameDate,onClick:()=>o(p),children:[g.jsxs("div",{className:En.ambitName,children:[g.jsx("img",{src:a?Us:qs}),g.jsx("span",{style:{color:a?l:c},children:m})]}),g.jsx("div",{className:En.ambitDate,children:new Date(d).toLocaleDateString()})]}),g.jsxs("div",{className:En.ambitButtons,children:[i&&g.jsx("img",{src:zo}),g.jsx("button",{onClick:()=>r(p),children:g.jsx("img",{src:zo})}),g.jsx("button",{onClick:()=>t(p),children:g.jsx("img",{src:Vs})}),g.jsx("button",{onClick:()=>n(p),children:g.jsx("img",{src:zs})})]})]})};Xi.propTypes={ambit:s.shape({name:s.string.isRequired,date:s.string.isRequired,id:s.string.isRequired}).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 Qs="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",Qi=({ambitList:e,activeAmbitId:t,fontColor:n="#605B56",activeColor:r,nameLabel:o,dateLabel:i,onClickCopy:a=m=>console.log(`Copy ambit: ${m}`),onCLickDelete:l=m=>console.log(`Delete ambit: ${m}`),onClickFilters:c=m=>console.log(`Filters clicked: ${m}`),onClickAmbit:u=m=>console.log(`OnCLickAmbit: ${m}`)})=>{const{t:m}=je.useTranslation();return g.jsxs("div",{className:Yt.ambitSelector,style:{color:n},children:[g.jsxs("div",{className:Yt.header,style:{borderBottom:`1px solid ${n}`},children:[g.jsxs("div",{className:Yt.nameDateContainer,children:[g.jsx("div",{className:Yt.ambitName,children:g.jsx("span",{children:m(o)})}),g.jsx("div",{className:Yt.ambitDate,children:g.jsx("span",{children:m(i)})})]}),g.jsx("div",{className:Yt.buttonsContainer})]}),e&&e.length>0&&e.map(d=>g.jsx(Xi,{isActive:t==d.id,ambit:d,fontColor:n,activeColor:r,onClickCopy:a,onClickDelete:l,onClickFilters:c,onClickAmbit:u},`ambitKey${d.id}`))]})};Qi.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};const el="_buttonsContainer_1audx_2",tl="_vertical_1audx_6",nl="_horizontal_1audx_9",rl="_button_1audx_2",ol="_active_1audx_25",il="_buttonName_1audx_28",jt={buttonsContainer:el,vertical:tl,horizontal:nl,button:rl,active:ol,buttonName:il},al="_left_19lnt_3",sl="_top_19lnt_33",ll="_bottom_19lnt_66",cl="_right_19lnt_97",ul={left:al,top:sl,bottom:ll,right:cl},yo=({text:e,position:t,styleCustom:n=null})=>{const{t:r}=je.useTranslation();return g.jsx("div",{className:`tooltip ${ul[t]}`,style:n,children:r(e)})};yo.propTypes={text:s.string.isRequired,position:s.oneOf(["top","bottom","left","right"]).isRequired,styleCustom:s.object};const ea=({buttons:e=[],orientation:t="horizontal",showName:n=!0,namePosition:r="right",useTooltip:o=!1,tooltipPosition:i="top"})=>{const{t:a}=je.useTranslation();return g.jsx("div",{className:`${jt.buttonsContainer} ${t==="vertical"&&jt.vertical}
50
+ ${t==="horizontal"&&jt.horizontal}`,children:e.map((l,c)=>{const{icon:u,activeIcon:m,isActive:d,name:p,onClick:_}=l,b=g.jsxs(g.Fragment,{children:[n&&r==="left"&&g.jsx("span",{className:jt.buttonName,children:a(p)}),g.jsx("img",{src:d?m:u,alt:a(p)}),n&&r==="right"&&g.jsx("span",{className:jt.buttonName,children:a(p)})]});return g.jsxs("div",{className:"tooltip-parent",children:[g.jsx("button",{onClick:_,className:`${jt.button}
51
+ ${d&&jt.active}`,children:b}),o&&g.jsx(yo,{text:p,position:i})]},c)})})};ea.propTypes={buttons:s.arrayOf(s.shape({icon:s.node.isRequired,activeIcon:s.node,isActive:s.bool,name:s.string,onClick:s.func})).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 dl="_indicatorsCategory_1cu33_2",fl="_title_1cu33_5",ml="_list_1cu33_11",Vr={indicatorsCategory:dl,title:fl,list:ml},Ot=({isOpen:e,onClick:t,children:n,color:r,activeColor:o="#F8A925",title:i="Title",height:a=53,titleFontStyles:l,showBottomBar:c=!0,titleMarginChildren:u=25})=>{const{t:m}=je.useTranslation();return g.jsxs(ho.motion.div,{className:Vr.indicatorsCategory,initial:{height:`${a}px`},animate:{height:e?"auto":`${a}px`},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:e&&c?`1px solid ${o}`:"0px",marginBottom:e?"20px":"0px"},children:[g.jsxs("h2",{style:{...l,marginBottom:u||"auto"},className:`${Vr.title}`,onClick:t,children:[g.jsx("span",{style:{color:e?o:r},children:e?"-":"+"}),g.jsx("span",{style:{marginLeft:12,color:e?o:r},children:m(i)})]}),g.jsx("div",{className:Vr.content,children:n})]})};Ot.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 pl=()=>g.jsx("div",{children:"EditAmbit"}),hl="_AppliedFiltersContainer_s8ooe_2",gl="_AppliedFilterContent_s8ooe_10",Xo={AppliedFiltersContainer:hl,AppliedFilterContent:gl},Ve=xs.create(e=>({activeCategory:"",activeSubCategory:"",selectedIndicator:"",tematicalFiltersSelected:[],fontColor:"#605B56",inputsColor:"#605B56"})),ta=({title:e,onClick:t,isOpen:n=!0,textColor:r="#ffffff",backgroundColor:o="#605B5680"})=>{const{t:i}=je.useTranslation(),{tematicalFiltersSelected:a}=Ve(c=>c),l=c=>{Ve.setState(u=>({tematicalFiltersSelected:u.tematicalFiltersSelected.filter(m=>m.code!==c)}))};return g.jsx(Ot,{isOpen:n,onClick:t,title:e?i(e):"Applied Filters",children:g.jsx("div",{className:Xo.AppliedFiltersContainer,children:a==null?void 0:a.map((c,u)=>g.jsxs("div",{className:Xo.AppliedFilterContent,style:{color:r,background:o},children:[c.code,g.jsx("img",{src:Qs,alt:"CloseIcon",onClick:()=>l(c.code),style:{cursor:"pointer"}})]},u))})})};ta.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}))};const na=({title:e,onClick:t,isOpen:n=!0,textColor:r="#ffffff",backgroundColor:o="#605B5680"})=>{const{t:i}=je.useTranslation();return Ve(a=>a),g.jsx(Ot,{isOpen:n,onClick:t,title:e?i(e):"Geographical Filters",children:"A"})};na.propTypes={isOpen:s.bool,onClick:s.func,title:s.string,textColor:s.string,backgroundColor:s.string};const yl=[{category:"Arq",name:"indicators.arq",haveFilters:!0,escenariFilters:!0,subcategories:[{subcategory:"subcPrinc",name:"indicators.arq_princ",indicators:[{ikey:0,name:"indicators.us_prn.title",code:["us_prn"],type:"cat",category:"Arq",category_ods:"ODS_00",category_aue:"AUE_00",values:[{fillColor:"#FEB740",codename:["Residencial","VincViv"],title:"indicators.us_prn.Residencial"},{fillColor:"#033364",codename:["Público"],title:"indicators.us_prn.Public"},{fillColor:"#5190cb",codename:["EnseñanzaCultural"],title:"indicators.us_prn.EnsenyamentCultural"},{fillColor:"#18ae9a",codename:["Deportivo","Piscinas"],title:"indicators.us_prn.Esportiu"},{fillColor:"#850d15",codename:["Comercial"],title:"indicators.us_prn.Comercial"},{fillColor:"#ee2e39",codename:["HoteleroRestauración"],title:"indicators.us_prn.HotelerRestauracio"},{fillColor:"#ed602e",codename:["Oficinas"],title:"indicators.us_prn.Oficines"},{fillColor:"#843059",codename:["Almacenaje"],title:"indicators.us_prn.Emmagatzematge"},{fillColor:"#CB719D",codename:["Industrial","IndustrialResto"],title:"indicators.us_prn.Industrial"},{fillColor:"#7f7f7f",codename:["Aparcamiento"],title:"indicators.us_prn.Aparcament"},{fillColor:"#dadae3",codename:["OtrosCal","OtrosNoCal","Común","Sin datos","","None","null","undefined"," ","NoCodificado"],title:"indicators.us_prn.None"}],time:!1},{ikey:1,name:"indicators.al_max.title",code:["al_max","al_max_cat"],codeAbs:"al_max",codeCat:"al_max_cat",type:"both",category:"Arq",category_ods:"ODS_00",category_aue:"AUE_00",maxColor:"#00544a",midColor:"#00ae9a",minColor:"#00ffe1",minValue:-1,maxValue:14,minValueIndicador:"indicators.al_max.minValueIndicador",maxValueIndicador:"indicators.al_max.maxValueIndicador",unit:"indicators.al_max.unit",values:[{fillColor:"#00544a",codename:["De PB+3 o mes"],title:"indicators.al_max.PB+3"},{fillColor:"#00ae9a",codename:["De PB a PB+2"],title:"indicators.al_max.PB"},{fillColor:"#00ffe1",codename:["De P-1 en avall"],title:"indicators.al_max.De P-1"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.al_max.None"}],time:!1},{ikey:2,name:"indicators.uni_pluri.title",code:["uni_pluri"],type:"cat",category:"Arq",values:[{fillColor:"#BA1C27",codename:["Bloque"],title:"indicators.uni_pluri.Bloc"},{fillColor:"#FEB740",codename:["Colectiva"],title:"indicators.uni_pluri.Colectiva"},{fillColor:"#508FCC",codename:["Unifamiliar"],title:"indicators.uni_pluri.Unifamiliar"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.uni_pluri.None"}],time:!1},{ikey:3,name:"indicators.any_const.title",code:["any_const","any_const_cat"],type:"both",category:"Arq",category_ods:"ODS_00",category_aue:"AUE_00",maxColor:"#D2DBE4",midColor:"#7E98B2",minColor:"#003366",minValue:1900,maxValue:2020,minValueIndicador:"indicators.any_const.minValueIndicador",maxValueIndicador:"indicators.any_const.maxValueIndicador",unit:"indicators.any_const.Unit",values:[{fillColor:"#D2DBE4 ",codename:["De 2008 a 2020"],title:"indicators.any_const.2008Adelante"},{fillColor:"#A8BACB",codename:["De 1981 a 2007"],title:"indicators.any_const.1981-2007"},{fillColor:"#7E98B2",codename:["De 1961 a 1980"],title:"indicators.any_const.1961-1980"},{fillColor:"#547699",codename:["De 1941 a 1960"],title:"indicators.any_const.1941-1960"},{fillColor:"#2A557F",codename:["De 1901 a 1940"],title:"indicators.any_const.1901-1940"},{fillColor:"#003366",codename:["Hasta 1900"],title:"indicators.any_const.hasta-1900"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.any_const.None"}],time:!1},{ikey:4,name:"indicators.num_viv.title",code:["num_viv","num_viv_cat"],type:"abs",category:"Arq",category_ods:"ODS_00",category_aue:"AUE_02",maxColor:"#684A1A",midColor:"#AF7F2C",minColor:"#FEB740",minValue:1,maxValue:40,minValueIndicador:"indicators.num_viv.minValueIndicador",maxValueIndicador:"indicators.num_viv.maxValueIndicador",unit:"indicators.num_viv.unit",time:!1,values:[{fillColor:"#684A1A",codename:["40 o más viviendas"],title:"indicators.num_viv.40+"},{fillColor:"#8A6423",codename:["De 20 a 39 viviendas"],title:"indicators.num_viv.20-39"},{fillColor:"#AF7F2C",codename:["De 10 a 19 viviendas"],title:"indicators.num_viv.10-19"},{fillColor:"#D69A36",codename:["De 5 a 9 viviendas"],title:"indicators.num_viv.5-9"},{fillColor:"#FEB740",codename:["De 2 a 4 viviendas"],title:"indicators.num_viv.2-4"},{fillColor:"#3e77b2",codename:["Unifamiliar"],title:"indicators.num_viv.unifamiliar"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," ","No residencial"],title:"indicators.num_viv.none"}]},{ikey:5,name:"indicators.cluster.title",code:["nom_cluster"],type:"cat",category_ods:"ODS_07",category_aue:"AUE_01",category:"Arq",values:[{fillColor:"#022952",codename:["A"],title:"indicators.cluster.A"},{fillColor:"#033364",codename:["B"],title:"indicators.cluster.B"},{fillColor:"#2A6298",codename:["C"],title:"indicators.cluster.C"},{fillColor:"#5190CB",codename:["D"],title:"indicators.cluster.D"},{fillColor:"#6CA2D4",codename:["E"],title:"indicators.cluster.E"},{fillColor:"#79ABD8",codename:["F"],title:"indicators.cluster.F"},{fillColor:"#605225",codename:["G"],title:"indicators.cluster.G"},{fillColor:"#7B692F",codename:["H"],title:"indicators.cluster.H"},{fillColor:"#BD9037",codename:["I"],title:"indicators.cluster.I"},{fillColor:"#FEB63E",codename:["J"],title:"indicators.cluster.J"},{fillColor:"#FECC7A",codename:["K"],title:"indicators.cluster.K"},{fillColor:"#FED798",codename:["L"],title:"indicators.cluster.L"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.cluster.none"}],time:!1}]},{subcategory:"subcPrinc22",name:"indicators.arq_princ22",indicators:[{ikey:0,name:"indicators.us_prn.title",code:["us_prn"],type:"cat",category:"Arq",category_ods:"ODS_00",category_aue:"AUE_00",values:[{fillColor:"#FEB740",codename:["Residencial","VincViv"],title:"indicators.us_prn.Residencial"},{fillColor:"#033364",codename:["Público"],title:"indicators.us_prn.Public"},{fillColor:"#5190cb",codename:["EnseñanzaCultural"],title:"indicators.us_prn.EnsenyamentCultural"},{fillColor:"#18ae9a",codename:["Deportivo","Piscinas"],title:"indicators.us_prn.Esportiu"},{fillColor:"#850d15",codename:["Comercial"],title:"indicators.us_prn.Comercial"},{fillColor:"#ee2e39",codename:["HoteleroRestauración"],title:"indicators.us_prn.HotelerRestauracio"},{fillColor:"#ed602e",codename:["Oficinas"],title:"indicators.us_prn.Oficines"},{fillColor:"#843059",codename:["Almacenaje"],title:"indicators.us_prn.Emmagatzematge"},{fillColor:"#CB719D",codename:["Industrial","IndustrialResto"],title:"indicators.us_prn.Industrial"},{fillColor:"#7f7f7f",codename:["Aparcamiento"],title:"indicators.us_prn.Aparcament"},{fillColor:"#dadae3",codename:["OtrosCal","OtrosNoCal","Común","Sin datos","","None","null","undefined"," ","NoCodificado"],title:"indicators.us_prn.None"}],time:!1},{ikey:1,name:"indicators.al_max.title",code:["al_max","al_max_cat"],type:"both",category:"Arq",category_ods:"ODS_00",category_aue:"AUE_00",maxColor:"#00544a",midColor:"#00ae9a",minColor:"#00ffe1",minValue:-1,maxValue:14,minValueIndicador:"indicators.al_max.minValueIndicador",maxValueIndicador:"indicators.al_max.maxValueIndicador",unit:"indicators.al_max.unit",values:[{fillColor:"#00544a",codename:["De PB+3 o mes"],title:"indicators.al_max.PB+3"},{fillColor:"#00ae9a",codename:["De PB a PB+2"],title:"indicators.al_max.PB"},{fillColor:"#00ffe1",codename:["De P-1 en avall"],title:"indicators.al_max.De P-1"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.al_max.None"}],time:!1},{ikey:2,name:"indicators.uni_pluri.title",code:["uni_pluri"],type:"cat",category:"Arq",values:[{fillColor:"#BA1C27",codename:["Bloque"],title:"indicators.uni_pluri.Bloc"},{fillColor:"#FEB740",codename:["Colectiva"],title:"indicators.uni_pluri.Colectiva"},{fillColor:"#508FCC",codename:["Unifamiliar"],title:"indicators.uni_pluri.Unifamiliar"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.uni_pluri.None"}],time:!1},{ikey:3,name:"indicators.any_const.title",code:["any_const","any_const_cat"],type:"both",category:"Arq",category_ods:"ODS_00",category_aue:"AUE_00",maxColor:"#D2DBE4",midColor:"#7E98B2",minColor:"#003366",minValue:1900,maxValue:2020,minValueIndicador:"indicators.any_const.minValueIndicador",maxValueIndicador:"indicators.any_const.maxValueIndicador",unit:"indicators.any_const.Unit",values:[{fillColor:"#D2DBE4 ",codename:["De 2008 a 2020"],title:"indicators.any_const.2008Adelante"},{fillColor:"#A8BACB",codename:["De 1981 a 2007"],title:"indicators.any_const.1981-2007"},{fillColor:"#7E98B2",codename:["De 1961 a 1980"],title:"indicators.any_const.1961-1980"},{fillColor:"#547699",codename:["De 1941 a 1960"],title:"indicators.any_const.1941-1960"},{fillColor:"#2A557F",codename:["De 1901 a 1940"],title:"indicators.any_const.1901-1940"},{fillColor:"#003366",codename:["Hasta 1900"],title:"indicators.any_const.hasta-1900"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.any_const.None"}],time:!1},{ikey:4,name:"indicators.num_viv.title",code:["num_viv","num_viv_cat"],type:"abs",category:"Arq",category_ods:"ODS_00",category_aue:"AUE_02",maxColor:"#684A1A",midColor:"#AF7F2C",minColor:"#FEB740",minValue:1,maxValue:40,minValueIndicador:"indicators.num_viv.minValueIndicador",maxValueIndicador:"indicators.num_viv.maxValueIndicador",unit:"indicators.num_viv.unit",time:!1,values:[{fillColor:"#684A1A",codename:["40 o más viviendas"],title:"indicators.num_viv.40+"},{fillColor:"#8A6423",codename:["De 20 a 39 viviendas"],title:"indicators.num_viv.20-39"},{fillColor:"#AF7F2C",codename:["De 10 a 19 viviendas"],title:"indicators.num_viv.10-19"},{fillColor:"#D69A36",codename:["De 5 a 9 viviendas"],title:"indicators.num_viv.5-9"},{fillColor:"#FEB740",codename:["De 2 a 4 viviendas"],title:"indicators.num_viv.2-4"},{fillColor:"#3e77b2",codename:["Unifamiliar"],title:"indicators.num_viv.unifamiliar"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," ","No residencial"],title:"indicators.num_viv.none"}]},{ikey:5,name:"indicators.cluster.title",code:["nom_cluster"],type:"cat",category_ods:"ODS_07",category_aue:"AUE_01",category:"Arq",values:[{fillColor:"#022952",codename:["A"],title:"indicators.cluster.A"},{fillColor:"#033364",codename:["B"],title:"indicators.cluster.B"},{fillColor:"#2A6298",codename:["C"],title:"indicators.cluster.C"},{fillColor:"#5190CB",codename:["D"],title:"indicators.cluster.D"},{fillColor:"#6CA2D4",codename:["E"],title:"indicators.cluster.E"},{fillColor:"#79ABD8",codename:["F"],title:"indicators.cluster.F"},{fillColor:"#605225",codename:["G"],title:"indicators.cluster.G"},{fillColor:"#7B692F",codename:["H"],title:"indicators.cluster.H"},{fillColor:"#BD9037",codename:["I"],title:"indicators.cluster.I"},{fillColor:"#FEB63E",codename:["J"],title:"indicators.cluster.J"},{fillColor:"#FECC7A",codename:["K"],title:"indicators.cluster.K"},{fillColor:"#FED798",codename:["L"],title:"indicators.cluster.L"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.cluster.none"}],time:!1}]}]},{category:"Ene",name:"indicators.ene",haveFilters:!0,escenariFilters:!0,indicators:[{ikey:6,name:"indicators.cal.title",code:["demanda_cal_m2"],type:"abs",category:"Ene",category_ods:"ODS_07",category_aue:"AUE_04",maxColor:"#EE2C3C",midColor:"#FDB740",minColor:"#00544A",minValue:1,maxValue:120,minValueIndicador:"indicators.cal.minValueIndicador",maxValueIndicador:"indicators.cal.maxValueIndicador",unit:"indicators.cal.unit",time:!0,values:[{fillColor:"#00544A",codename:["Menos de 20 kWh/m2"],title:"indicators.demanda_cal_m2.<20"},{fillColor:"#386A48",codename:["Entre 20 y 40 kWh/m2"],title:"indicators.demanda_cal_m2.20-40"},{fillColor:"#708046",codename:["Entre 40 y 60 kWh/m2"],title:"indicators.demanda_cal_m2.40-60"},{fillColor:"#A99643",codename:["Entre 60 y 80 kWh/m2"],title:"indicators.demanda_cal_m2.60-80"},{fillColor:"#E1AC41",codename:["Entre 80 y 100 kWh/m2"],title:"indicators.demanda_cal_m2.80-100"},{fillColor:"#FBA840",codename:["Entre 100 y 120 kWh/m2"],title:"indicators.demanda_cal_m2.100-120"},{fillColor:"#F8893F",codename:["Entre 120 y 140 kWh/m2"],title:"indicators.demanda_cal_m2.120-140"},{fillColor:"#F56A3E",codename:["Entre 140 y 160 kWh/m2"],title:"indicators.demanda_cal_m2.140-160"},{fillColor:"#F14B3D",codename:["Entre 160 y 180 kWh/m2"],title:"indicators.demanda_cal_m2.160-180"},{fillColor:"#EE2C3C",codename:["Más de 180 kWh/m2"],title:"indicators.demanda_cal_m2.>180"}]},{ikey:7,name:"indicators.cal_post.title",code:["demanda_post_m2"],type:"abs",category:"Ene",category_ods:"ODS_07",category_aue:"AUE_04",minColor:"#00544A",midColor:"#FDB740",maxColor:"#EE2C3C",minValue:10,maxValue:150,minValueIndicador:"indicators.cal_post.minValueIndicador",maxValueIndicador:"indicators.cal_post.maxValueIndicador",unit:"indicators.cal_post.unit",time:!1,values:[{fillColor:"#00544A",codename:["Menos de 20 kWh/m2"],title:"indicators.demanda_cal_m2.<20"},{fillColor:"#386A48",codename:["Entre 20 y 40 kWh/m2"],title:"indicators.demanda_cal_m2.20-40"},{fillColor:"#708046",codename:["Entre 40 y 60 kWh/m2"],title:"indicators.demanda_cal_m2.40-60"},{fillColor:"#A99643",codename:["Entre 60 y 80 kWh/m2"],title:"indicators.demanda_cal_m2.60-80"},{fillColor:"#E1AC41",codename:["Entre 80 y 100 kWh/m2"],title:"indicators.demanda_cal_m2.80-100"},{fillColor:"#FBA840",codename:["Entre 100 y 120 kWh/m2"],title:"indicators.demanda_cal_m2.100-120"},{fillColor:"#F8893F",codename:["Entre 120 y 140 kWh/m2"],title:"indicators.demanda_cal_m2.120-140"},{fillColor:"#F56A3E",codename:["Entre 140 y 160 kWh/m2"],title:"indicators.demanda_cal_m2.140-160"},{fillColor:"#F14B3D",codename:["Entre 160 y 180 kWh/m2"],title:"indicators.demanda_cal_m2.160-180"},{fillColor:"#EE2C3C",codename:["Más de 180 kWh/m2"],title:"indicators.demanda_cal_m2.>180"}]},{ikey:8,name:"indicators.qual_cal.title",code:["qual"],type:"cat",category:"Ene",category_ods:"ODS_07",category_aue:"AUE_04",values:[{fillColor:"#306f35",codename:["A"],title:"indicators.qual_cal.A"},{fillColor:"#4aa038",codename:["B"],title:"indicators.qual_cal.B"},{fillColor:"#a7c52b",codename:["C"],title:"indicators.qual_cal.C"},{fillColor:"#efe737",codename:["D"],title:"indicators.qual_cal.D"},{fillColor:"#feb63e",codename:["E"],title:"indicators.qual_cal.E"},{fillColor:"#f35d3e",codename:["F"],title:"indicators.qual_cal.F"},{fillColor:"#cb2f45",codename:["G"],title:"indicators.qual_cal.G"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.qual_cal.none"}],time:!0},{ikey:9,name:"indicators.qual_cal_post.title",code:["qual_post"],type:"cat",category:"Ene",category_ods:"ODS_07",category_aue:"AUE_04",values:[{fillColor:"#306f35",codename:["A"],title:"indicators.qual_cal.A"},{fillColor:"#4aa038",codename:["B"],title:"indicators.qual_cal.B"},{fillColor:"#a7c52b",codename:["C"],title:"indicators.qual_cal.C"},{fillColor:"#efe737",codename:["D"],title:"indicators.qual_cal.D"},{fillColor:"#feb63e",codename:["E"],title:"indicators.qual_cal.E"},{fillColor:"#f35d3e",codename:["F"],title:"indicators.qual_cal.F"},{fillColor:"#cb2f45",codename:["G"],title:"indicators.qual_cal.G"},{fillColor:"#dadae3",codename:["Sense dades","Sense","","None","null","undefined"," "],title:"indicators.qual_cal.none"}],time:!1},{ikey:10,name:"indicators.reduccio_demanda.title",code:["reduccio_demanda"],type:"abs",category:"Ene",category_ods:"ODS_07",category_aue:"AUE_04",maxColor:"#00544A",midColor:"#FDB740",minColor:"#EE2C3C",minValue:0,maxValue:100,minValueIndicador:"indicators.cal.minValueIndicador",maxValueIndicador:"indicators.cal.maxValueIndicador",unit:"indicators.reduccio_demanda.unit",time:!0,values:[{fillColor:"#00544A",codename:["Entre 90 y 100 %"],title:"indicators.reduccio_demanda.100"},{fillColor:"#386A48",codename:["Entre 80 y 90 %"],title:"indicators.reduccio_demanda.90"},{fillColor:"#708046",codename:["Entre 70 y 80 %"],title:"indicators.reduccio_demanda.80"},{fillColor:"#A99643",codename:["Entre 60 y 70 %"],title:"indicators.reduccio_demanda.70"},{fillColor:"#E1AC41",codename:["Entre 50 y 60 %"],title:"indicators.reduccio_demanda.60"},{fillColor:"#FBA840",codename:["Entre 40 y 50 %"],title:"indicators.reduccio_demanda.50"},{fillColor:"#F8893F",codename:["Entre 30 y 40 %"],title:"indicators.reduccio_demanda.40"},{fillColor:"#F56A3E",codename:["Entre 20 y 30 %"],title:"indicators.reduccio_demanda.30"},{fillColor:"#F14B3D",codename:["Entre 10 y 20 %"],title:"indicators.reduccio_demanda.20"},{fillColor:"#EE2C3C",codename:["Menos de 10 %"],title:"indicators.reduccio_demanda.10"}]}]},{category:"Eco",name:"indicators.eco",haveFilters:!0,escenariFilters:!1,indicators:[{ikey:11,name:"indicators.cost_int.title",code:["cost_int"],type:"twoUnits",category:"Eco",category_ods:"ODS_11",category_aue:"AUE_02",maxColor:"#EE2C3C",midColor:"#FDB740",minColor:"#003366",values:[{unit:"€/m2",minValue:100,maxValue:900,minValueIndicador:"indicators.cost_int_m2.minValueIndicador",maxValueIndicador:"indicators.cost_int_m2.maxValueIndicador",codename:"cost_int_m2",title:"indicators.cost_int.cost_int_m2"},{unit:"€/Vivienda",minValue:1e4,maxValue:18e3,minValueIndicador:"indicators.cost_int_hab.minValueIndicador",maxValueIndicador:"indicators.cost_int_hab.maxValueIndicador",codename:"cost_int_hab",title:"indicators.cost_int.cost_int_hab"}],time:!1,cats_hab:[{fillColor:"#003366",codename:["Menos de 10.000 €/viv"],title:"indicators.cost_int.<10"},{fillColor:"#38505E",codename:["Entre 10.000 y 11.000 €/viv"],title:"indicators.cost_int.10-11"},{fillColor:"#706E55",codename:["Entre 11.000 y 12.000 €/viv"],title:"indicators.cost_int.11-12"},{fillColor:"#A98B4D",codename:["Entre 12.000 y 13.000 €/viv"],title:"indicators.cost_int.12-13"},{fillColor:"#E1A844",codename:["Entre 13.000 y 14.000 €/viv"],title:"indicators.cost_int.13-14"},{fillColor:"#FBA840",codename:["Entre 14.000 y 15.000 €/viv"],title:"indicators.cost_int.14-15"},{fillColor:"#F8893F",codename:["Entre 15.000 y 16.000 €/viv"],title:"indicators.cost_int.15-16"},{fillColor:"#F56A3E",codename:["Entre 16.000 y 17.000 €/viv"],title:"indicators.cost_int.16-17"},{fillColor:"#F14B3D",codename:["Entre 17.000 y 18.000 €/viv"],title:"indicators.cost_int.17-18"},{fillColor:"#EE2C3C",codename:["Más de 18.000 €/viv"],title:"indicators.cost_int.>18"}],cats_m2:[{fillColor:"#003366",codename:["Menos de 100 €/m2·viv"],title:"indicators.cost_int.<100"},{fillColor:"#38505E",codename:["Entre 100 y 200 €/m2·viv"],title:"indicators.cost_int.100-200"},{fillColor:"#706E55",codename:["Entre 200 y 300 €/m2·viv"],title:"indicators.cost_int.200-300"},{fillColor:"#A98B4D",codename:["Entre 300 y 400 €/m2·viv"],title:"indicators.cost_int.300-400"},{fillColor:"#E1A844",codename:["Entre 400 y 500 €/m2·viv"],title:"indicators.cost_int.400-500"},{fillColor:"#FBA840",codename:["Entre 500 y 600 €/m2·viv"],title:"indicators.cost_int.500-600"},{fillColor:"#F8893F",codename:["Entre 600 y 700 €/m2·viv"],title:"indicators.cost_int.600-700"},{fillColor:"#F56A3E",codename:["Entre 700 y 800 €/m2·viv"],title:"indicators.cost_int.700-800"},{fillColor:"#F14B3D",codename:["Entre 800 y 900 €/m2·viv"],title:"indicators.cost_int.800-900"},{fillColor:"#EE2C3C",codename:["Más de 900 €/m2·viv"],title:"indicators.cost_int.>900"}]}]},{category:"Int",name:"indicators.int",haveFilters:!1,escenariFilters:!1,indicators:[{ikey:12,name:"indicators.int_FP.title",code:["FP"],type:"cat",category:"Int",values:[{fillColor:"#89a301",codename:[1],title:"indicators.intYear"},{fillColor:"#D0D79D",codename:[2],title:"indicators.intPast"},{fillColor:"#dadae3",codename:[0],title:"indicators.intNot"}],time:!0},{ikey:13,name:"indicators.int_VFP.title",code:["VFP"],type:"cat",category:"Int",values:[{fillColor:"#006e51",codename:[1],title:"indicators.intYear"},{fillColor:"#9CBFB0",codename:[2],title:"indicators.intPast"},{fillColor:"#dadae3",codename:[0],title:"indicators.intNot"}],time:!0},{ikey:14,name:"indicators.int_P.title",code:["P"],type:"cat",category:"Int",values:[{fillColor:"#9d4823",codename:[1],title:"indicators.intYear"},{fillColor:"#DCAE9B",codename:[2],title:"indicators.intPast"},{fillColor:"#dadae3",codename:[0],title:"indicators.intNot"}],time:!0},{ikey:15,name:"indicators.int_ME.title",code:["ME"],type:"cat",category:"Int",values:[{fillColor:"#1D7DAD",codename:[1],title:"indicators.intYear"},{fillColor:"#ABC5DC",codename:[2],title:"indicators.intPast"},{fillColor:"#dadae3",codename:[0],title:"indicators.intNot"}],time:!0},{ikey:16,name:"indicators.int_S.title",code:["S"],type:"cat",category:"Int",values:[{fillColor:"#3ba5a5",codename:[1],title:"indicators.intYear"},{fillColor:"#B2D8D8",codename:[2],title:"indicators.intPast"},{fillColor:"#dadae3",codename:[0],title:"indicators.intNot"}],time:!0},{ikey:17,name:"indicators.int_C.title",code:["C"],type:"cat",category:"Int",values:[{fillColor:"#ad6e5c",codename:[1],title:"indicators.intYear"},{fillColor:"#DFBFB6",codename:[2],title:"indicators.intPast"},{fillColor:"#dadae3",codename:[0],title:"indicators.intNot"}],time:!0},{ikey:18,name:"indicators.check_meps.title",code:["check_meps"],type:"cat",category:"Int",values:[{fillColor:"#00ae9a",codename:[1],title:"indicators.check_meps.yes"},{fillColor:"#dadae3",codename:[0],title:"indicators.check_meps.no"}],time:!0}]}],vl="_checkboxContainer_zld97_2",bl={checkboxContainer:vl},ra=({onClick:e,containerStyles:t,color:n="#605B56",indicator:r,value:o})=>{const{t:i}=je.useTranslation(),{title:a}=r||{},{fontColor:l,inputsColor:c}=Ve(u=>u);return g.jsxs("div",{style:{...t,color:n},role:"checkbox",className:bl.checkboxContainer,onClick:e,children:[g.jsx("input",{type:"checkbox",checked:typeof o=="boolean"?o:!0,value:o,readOnly:!0,style:{border:`1.5px solid ${o?c:l}`,backgroundColor:o?c:"white"}}),g.jsx("span",{className:"checkmark",children:i(a)})]})};ra.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 ro(e,t){return ro=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},ro(e,t)}function _l(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ro(e,t)}function Ur(e){return e&&e.stopPropagation&&e.stopPropagation(),e&&e.preventDefault&&e.preventDefault(),!1}function qr(e){return e==null?[]:Array.isArray(e)?e.slice():[e]}function Kn(e){return e!==null&&e.length===1?e[0]:e.slice()}function Zn(e){Object.keys(e).forEach(t=>{typeof document<"u"&&document.addEventListener(t,e[t],!1)})}function Mt(e,t){return oo(function(n,r){let o=n;return o<=r.min&&(o=r.min),o>=r.max&&(o=r.max),o}(e,t),t)}function oo(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 io=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 c=o.getMousePosition(l),u=o.getDiffPosition(c[0]),m=o.getValueFromPosition(u);o.move(m)},o.onTouchMove=l=>{if(l.touches.length>1)return;o.setState({pending:!0});const c=o.getTouchPosition(l);if(o.isScrolling===void 0){const d=c[0]-o.startPosition[0],p=c[1]-o.startPosition[1];o.isScrolling=Math.abs(p)>Math.abs(d)}if(o.isScrolling)return void o.setState({index:-1});const u=o.getDiffPosition(c[0]),m=o.getValueFromPosition(u);o.move(m)},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 c=o.getMousePosition(l);o.forceValueFromPosition(c[0],u=>{o.start(u,c[0]),Zn(o.getMouseEventMap())})}Ur(l)}},o.onSliderClick=l=>{if(!o.props.disabled&&o.props.onSliderClick&&!o.hasMoved){const c=o.getMousePosition(l),u=Mt(o.calcValue(o.calcOffsetFromPosition(c[0])),o.props);o.props.onSliderClick(u)}},o.createOnKeyDown=l=>c=>{o.props.disabled||(o.start(l),Zn(o.getKeyDownEventMap()),Ur(c))},o.createOnMouseDown=l=>c=>{if(o.props.disabled||c.button===2)return;o.setState({pending:!0});const u=o.getMousePosition(c);o.start(l,u[0]),Zn(o.getMouseEventMap()),Ur(c)},o.createOnTouchStart=l=>c=>{if(o.props.disabled||c.touches.length>1)return;o.setState({pending:!0});const u=o.getTouchPosition(c);o.startPosition=u,o.isScrolling=void 0,o.start(l,u[0]),Zn(o.getTouchEventMap()),function(m){m.stopPropagation&&m.stopPropagation()}(c)},o.handleResize=()=>{const l=window.setTimeout(()=>{o.pendingResizeTimeouts.shift(),o.resize()},0);o.pendingResizeTimeouts.push(l)},o.renderThumb=(l,c)=>{const u=o.props.thumbClassName+" "+o.props.thumbClassName+"-"+c+" "+(o.state.index===c?o.props.thumbActiveClassName:""),m={ref:p=>{o["thumb"+c]=p},key:o.props.thumbClassName+"-"+c,className:u,style:l,onMouseDown:o.createOnMouseDown(c),onTouchStart:o.createOnTouchStart(c),onFocus:o.createOnKeyDown(c),tabIndex:0,role:"slider","aria-orientation":o.props.orientation,"aria-valuenow":o.state.value[c],"aria-valuemin":o.props.min,"aria-valuemax":o.props.max,"aria-label":Array.isArray(o.props.ariaLabel)?o.props.ariaLabel[c]:o.props.ariaLabel,"aria-labelledby":Array.isArray(o.props.ariaLabelledby)?o.props.ariaLabelledby[c]:o.props.ariaLabelledby,"aria-disabled":o.props.disabled},d={index:c,value:Kn(o.state.value),valueNow:o.state.value[c]};return o.props.ariaValuetext&&(m["aria-valuetext"]=typeof o.props.ariaValuetext=="string"?o.props.ariaValuetext:o.props.ariaValuetext(d)),o.props.renderThumb(m,d)},o.renderTrack=(l,c,u)=>{const m={key:o.props.trackClassName+"-"+l,className:o.props.trackClassName+" "+o.props.trackClassName+"-"+l,style:o.buildTrackStyle(c,o.state.upperBound-u)},d={index:l,value:Kn(o.state.value)};return o.props.renderTrack(m,d)};let i=qr(r.value);i.length||(i=qr(r.defaultValue)),o.pendingResizeTimeouts=[];const a=[];for(let l=0;l<i.length;l+=1)i[l]=Mt(i[l],r),a.push(l);return o.resizeObserver=null,o.resizeElementRef=v.createRef(),o.state={index:-1,upperBound:0,sliderLength:0,value:i,zIndices:a},o}_l(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=qr(r.value);return i.length?o.pending?null:{value:i.map(a=>Mt(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 Kn(this.state.value)},n.getClosestIndex=function(r){let o=Number.MAX_VALUE,i=-1;const{value:a}=this.state,l=a.length;for(let c=0;c<l;c+=1){const u=this.calcOffset(a[c]),m=Math.abs(r-u);m<o&&(o=m,i=c)}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 Mt(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],c=a[this.posMaxKey()],u=a[this.posMinKey()],m=o.getBoundingClientRect()[i.replace("client","").toLowerCase()],d=l-m,p=Math.abs(c-u);this.state.upperBound===d&&this.state.sliderLength===p&&this.state.thumbSize===m||this.setState({upperBound:d,sliderLength:p,thumbSize:m})},n.calcOffset=function(r){const o=this.props.max-this.props.min;return o===0?0:(r-this.props.min)/o*this.state.upperBound},n.calcValue=function(r){return r/this.state.upperBound*(this.props.max-this.props.min)+this.props.min},n.calcOffsetFromPosition=function(r){const{slider:o}=this,i=o.getBoundingClientRect(),a=i[this.posMaxKey()],l=i[this.posMinKey()];let c=r-(window["page"+this.axisKey()+"Offset"]+(this.props.invert?a:l));return this.props.invert&&(c=this.state.sliderLength-c),c-=this.state.thumbSize/2,c},n.forceValueFromPosition=function(r,o){const i=this.calcOffsetFromPosition(r),a=this.getClosestIndex(i),l=Mt(this.calcValue(i),this.props),c=this.state.value.slice();c[a]=l;for(let u=0;u<c.length-1;u+=1)if(c[u+1]-c[u]<this.props.minDistance)return;this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0,this.setState({value:c},()=>{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=Mt(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=Mt(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:c,max:u,min:m,minDistance:d}=this.props;if(!c){if(i>0){const p=o[i-1];r<p+d&&(r=p+d)}if(i<a-1){const p=o[i+1];r>p-d&&(r=p-d)}}o[i]=r,c&&a>1&&(r>l?(this.pushSucceeding(o,d,i),function(p,_,b,f){for(let x=0;x<p;x+=1){const E=f-x*b;_[p-1-x]>E&&(_[p-1-x]=E)}}(a,o,d,u)):r<l&&(this.pushPreceding(o,d,i),function(p,_,b,f){for(let x=0;x<p;x+=1){const E=f+x*b;_[x]<E&&(_[x]=E)}}(a,o,d,m))),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]=oo(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]=oo(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](Kn(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 u=0;u<i;u+=1)r[u]=this.calcOffset(o[u],u);const a=this.props.withTracks?this.renderTracks(r):null,l=this.renderThumbs(r),c=this.props.marks?this.renderMarks():null;return v.createElement("div",{ref:u=>{this.slider=u,this.resizeElementRef.current=u},style:{position:"relative"},className:this.props.className+(this.props.disabled?" disabled":""),onMouseDown:this.onSliderMouseDown,onClick:this.onSliderClick},a,l,c)},t}(v.Component);io.displayName="ReactSlider",io.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=>v.createElement("div",e),renderTrack:e=>v.createElement("div",e),renderMark:e=>v.createElement("span",e)};var Cl=io;const xl="_container_15vgv_2",El="_unitLabel_15vgv_9",Sl="_slider_15vgv_12",Tl="_thumb_15vgv_18",wl="_track_15vgv_27",kl="_labels_15vgv_33",Kt={container:xl,unitLabel:El,slider:Sl,thumb:Tl,track:wl,labels:kl},oa=({min:e=0,max:t=100,step:n=1,onChange:r,width:o=300,unit:i,fontColor:a="#605B56",value:l=[e,t]})=>{const{t:c}=je.useTranslation(),u=m=>{r==null||r({min:m[0],max:m[1]})};return g.jsxs("div",{className:Kt.container,style:{width:`${o}px`,color:`${a}`},children:[g.jsx("div",{className:Kt.unitLabel,children:g.jsx("span",{children:c(i)})}),g.jsx(Cl,{className:Kt.slider,thumbClassName:Kt.thumb,trackClassName:Kt.track,min:e,max:t,step:n,value:l,onChange:u,withTracks:!0,pearling:!0,minDistance:1}),g.jsxs("div",{className:Kt.labels,children:[g.jsx("span",{children:l[0]}),g.jsx("span",{children:l[1]})]})]})};oa.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 Ol="_tematicalFiltersInputContainer_1vm1r_2",Rl="_inputTypeContainer_1vm1r_2",Al="_checkboxContainer_1vm1r_28",Pl="_absoluteSliderContainer_1vm1r_37",Gn={tematicalFiltersInputContainer:Ol,inputTypeContainer:Rl,checkboxContainer:Al,absoluteSliderContainer:Pl},vo=({indicator:e})=>{const[t,n]=v.useState(),{type:r,name:o,values:i,minValue:a,maxValue:l,unit:c}=e||{},u=v.useMemo(()=>r=="cat"||t=="cat",[t,r]),m=v.useMemo(()=>r=="abs"||t=="abs",[t,r]),{tematicalFiltersSelected:d,selectedIndicator:p,fontColor:_,inputsColor:b}=Ve(E=>E),f=E=>{if(E){const{min:T,max:k,valueClicked:j,allValues:C}=E||{},{code:z,type:y}=e||{},w=m?"abs":u?"cat":"both";let S=z[0];y=="both"&&(S=w=="cat"?z[1]:z[0]),w=="cat"?Ve.setState(A=>{let N=A.tematicalFiltersSelected.find(H=>H.code===S);if(N){let H=[N.values];if(N.values.includes(j)){if(H=N.values.filter(V=>V!==j),H.length<1)return{tematicalFiltersSelected:A.tematicalFiltersSelected.filter(V=>V.code!==S)}}else H=[...N.values,j];return{tematicalFiltersSelected:A.tematicalFiltersSelected.map(V=>V.code===S?{...V,values:H}:V)}}else{console.log("entra aqui: ",C," ",j);let H=C.map((V,ce)=>ce);return{tematicalFiltersSelected:[...d,{type:"cat",code:S,values:H.filter(V=>V!==j)}]}}}):w=="abs"&&Ve.setState(A=>{let N=A.tematicalFiltersSelected.find(H=>H.code===S);if(N){let H={...N};return H.min=T,H.max=k,{tematicalFiltersSelected:A.tematicalFiltersSelected.map(V=>V.code===S?H:V)}}else return{tematicalFiltersSelected:[...d,{type:"abs",code:S,min:T,max:k}]}})}},x=v.useMemo(()=>{const E={};if((d==null?void 0:d.length)>0)for(const T of d)T.type==="cat"?E[T.code]=new Set(T.values):E[T.code]=[T.min,T.max];return E},[d]);return g.jsx("div",{className:Gn.tematicalFiltersInputContainer,children:g.jsxs(Ot,{titleFontStyles:{fontSize:16,fontWeight:400},title:o,isOpen:p==`id${o}`,onClick:()=>Ve.setState(()=>({selectedIndicator:p==`id${o}`?"":`id${o}`})),showBottomBar:!1,height:38,titleMarginChildren:14,className:"tematicalFiltersInputContainer",color:_,children:[r=="both"&&g.jsxs("div",{className:Gn.inputTypeContainer,style:{color:_},children:[g.jsxs("label",{children:[g.jsx("input",{type:"radio",name:"tipo",value:"abs",onChange:()=>{n("abs")},style:{marginRight:4,backgroundColor:t=="abs"?b:"white",border:`1.5px solid ${t=="abs"?b:_}`}}),"Absoluto"]}),g.jsxs("label",{children:[g.jsx("input",{type:"radio",name:"tipo",value:"cat",onChange:()=>{n("cat")},style:{marginRight:4,backgroundColor:t=="cat"?b:"white",border:`1.5px solid ${t=="cat"?b:_}`}}),"Categórico"]})]}),u&&g.jsx("div",{className:Gn.checkboxContainer,children:i.map((E,T)=>{var k;return g.jsx(ra,{onClick:()=>f({valueClicked:T,allValues:i}),indicator:E,value:((k=x[e.code[r=="both"?1:0]])==null?void 0:k.has(T))||!x[e.code[r=="both"?1:0]]},`checkbox-${T}`)})}),m&&g.jsx("div",{className:Gn.absoluteSliderContainer,children:g.jsx(oa,{onChange:f,min:a,max:l,unit:c,value:x[e.code[0]]})})]})})};vo.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}))})};const ia=({subcategory:e,fontColor:t})=>{const{activeSubcategory:n}=Ve(i=>i),{name:r,indicators:o}=e||{};return g.jsx(Ot,{title:r,isOpen:n==`id${r}`,onClick:()=>{Ve.setState(i=>({activeSubcategory:i.activeSubcategory===`id${r}`?"":`id${r}`}))},titleFontStyles:{fontSize:16,fontWeight:400},showBottomBar:!1,titleMarginChildren:20,height:49,color:t,children:o==null?void 0:o.map((i,a)=>g.jsx(vo,{indicator:i,fontColor:t},`indicatorSub-${a}`))})};ia.propTypes={subcategory:s.shape({name:s.string,indicators:s.arrayOf(s.shape({name:s.string,value:s.string}))})};const aa=({category:e})=>{const{name:t,subcategories:n,indicators:r}=e||{},{activeCategory:o,fontColor:i}=Ve(a=>a);return e&&g.jsx(Ot,{onClick:()=>{Ve.setState(a=>({activeCategory:o===`id${t}`?"":`id${t}`}))},title:t,isOpen:o===`id${t}`,titleFontStyles:{fontSize:18,fontWeight:"bold"},showBottomBar:!1,color:i,children:n?n.map((a,l)=>g.jsx(ia,{subcategory:a,fontColor:i},`subcategory-${l}`)):r&&r.map((a,l)=>g.jsx(vo,{indicator:a,fontColor:i},`indicator-${l}`))})};aa.propTypes={category:s.shape({name:s.string.isRequired,subcategories:s.array,indicators:s.array})};const sa=({indicators:e=yl,isOpen:t=!0,title:n,fontColor:r="#605B56",inputsColor:o="#605B56"})=>{const{tematicalFiltersSelected:i}=Ve(l=>l),{t:a}=je.useTranslation();return v.useEffect(()=>{console.log("filtersSelected changed: ",i)},[i]),v.useEffect(()=>{r&&Ve.setState(()=>({fontColor:r}))},[r]),v.useEffect(()=>{o&&Ve.setState(()=>({inputsColor:o}))},[o]),g.jsx(Ot,{isOpen:t,title:n?a(n):"Tematical filters",color:r,children:e==null?void 0:e.map((l,c)=>g.jsx(aa,{category:l,fontColor:r},`category-${c}`))})};sa.propTypes={isOpen:s.bool,title:s.string,indicators:s.arrayOf(s.shape({name:s.string,type:s.string,values:s.arrayOf(s.shape({codename:s.string,title:s.string}))})),fontColor:s.string,onChangeTematicalFilters:s.func,inputsColor:s.string};const $l="_FiltersAmbitContainer_6o4gt_2",jl="_FiltersAmbitHeader_6o4gt_7",Ml="_FiltersAmbitTitle_6o4gt_15",Ll="_FiltersAmbitDescription_6o4gt_22",Nl="_FiltersAmbitDescriptionTitle_6o4gt_33",Sn={FiltersAmbitContainer:$l,FiltersAmbitHeader:jl,FiltersAmbitTitle:Ml,FiltersAmbitDescription:Ll,FiltersAmbitDescriptionTitle:Nl},Il=({ambitName:e,ambitDescription:t,defaultFilters:n})=>{const{t:r}=je.useTranslation(),{tematicalFiltersSelected:o}=Ve(i=>i);return v.useEffect(()=>{n&&n.length>0&&Ve.setState(i=>({tematicalFiltersSelected:n}))},[n]),v.useEffect(()=>{console.log("filtersSelected changed: ",o)},[o]),g.jsxs("div",{className:Sn.FiltersAmbitContainer,children:[g.jsxs("div",{className:Sn.FiltersAmbitHeader,children:[g.jsx("div",{className:Sn.FiltersAmbitTitle,children:e}),g.jsxs("div",{className:Sn.FiltersAmbitDescription,children:[g.jsx("div",{className:Sn.FiltersAmbitDescriptionTitle,children:r("Descripción")}),t]})]}),g.jsx(ta,{title:r("Filtros Aplicados"),isOpen:!0,textColor:"#ffffff",backgroundColor:"#605B5680"}),g.jsx(na,{}),g.jsx(sa,{})]})},Dl="_barChartContainer_d2f1z_2",Fl={barChartContainer:Dl},la=({data:e,width:t=700,barHeight:n=25,gap:r=23,fontColor:o="#605B56",verticalPaddign:i=10,horizontalPaddign:a=20,leftPadding:l=200,numberOfDivisions:c=7,maxValue:u=null})=>{const{t:m}=je.useTranslation(),{xScale:d,ticks:p,height:_}=v.useMemo(()=>{if(e&&e.length>0){const b=(e==null?void 0:e.length)*(n+r)+i*2,f=Io.max(e,T=>T.value)||1,x=Io.scaleLinear().domain([0,u||f]).range([0,t-l]),E=Array.from({length:c+1},(T,k)=>u?u/c*k:f/c*k);return{xScale:x,ticks:E,height:b,width:t,verticalPaddign:i,horizontalPaddign:a}}else return{xScale:null,ticks:[],height:0}},[e,t,c,n,r,a,i,u]);return g.jsx("div",{className:Fl.barChartContainer,children:g.jsx("svg",{width:t+a*2,height:_,children:g.jsxs("g",{transform:`translate(0,${r})`,children:[g.jsx("g",{transform:`translate(${l+a}, 0)`,children:p.map((b,f)=>{const x=d(b);return g.jsxs("g",{transform:`translate(${x}, 0)`,children:[g.jsx("line",{y1:0,y2:_-r*2,stroke:"#ccc"}),g.jsx("text",{y:_-r,textAnchor:"middle",fontSize:10,fill:o,children:parseInt(b)})]},f)})}),e&&e.length>0&&(e==null?void 0:e.map((b,f)=>{const x=d(b.value),E=f*(n+r);return g.jsxs("g",{transform:`translate(${l+a}, ${E})`,children:[g.jsx("text",{x:-24,y:n/2+5,textAnchor:"end",fill:o,children:m(b.title)}),g.jsx("rect",{width:x,height:n,fill:b.color,rx:0})]},f)}))]})})})};la.propTypes={data:s.arrayOf(s.shape({title:s.string,value:s.number,color:s.string})),width:s.number,barHeight:s.number,gap:s.number,verticalPaddign:s.number,horizontalPaddign:s.number,numberOfDivisions:s.number,fontColor:s.string};const Bl="_graphicContainer_c9zrg_2",zl="_titleContainer_c9zrg_14",Qo={graphicContainer:Bl,titleContainer:zl},ca=({data:e,graphWidth:t=700,containerStyle:n,borderColor:r="#605B56",title:o="Graphic Title",fontColor:i="#605B56",maxValue:a=null,numberOfDivisions:l=7,leftPadding:c=200})=>{const{t:u}=je.useTranslation();return g.jsxs("div",{className:Qo.graphicContainer,style:{...n||{},border:`1.5px solid ${r}`},children:[g.jsx("div",{className:Qo.titleContainer,children:g.jsx("h2",{children:u(o)})}),g.jsx(la,{data:e,width:t,fontColor:i,maxValue:a,numberOfDivisions:l,leftPadding:c})]})};ca.propTypes={data:s.arrayOf(s.shape({color:s.string.isRequired,value:s.number.isRequired,title:s.string.isRequired})),borderColor:s.string,title:s.string,graphWidth:s.number,containerStyle:s.object,fontColor:s.string,maxValue:s.number,numberOfDivisions:s.number,leftPadding:s.number};const Vl="_indicatorsCategory_1cu33_2",Ul="_title_1cu33_5",ql="_list_1cu33_11",Wr={indicatorsCategory:Vl,title:Ul,list:ql},Wl="_indicatorContainer_wv1z4_2",Hl="_dot_wv1z4_11",Yl="_indicatorName_wv1z4_16",Kl="_switchExternalContainer_wv1z4_22",Zl="_switchType_wv1z4_31",Gl="_switchTypeOptions_wv1z4_35",Jl="_optionContainer_wv1z4_46",Xl="_customRadious_wv1z4_56",Be={indicatorContainer:Wl,dot:Hl,indicatorName:Yl,switchExternalContainer:Kl,switchType:Zl,switchTypeOptions:Gl,optionContainer:Jl,customRadious:Xl},bo=({indicator:e,values:t=[],activeColor:n,defaultColor:r="black",activeIndicator:o,onClickIndicator:i,multiple:a=!1})=>{const{t:l}=je.useTranslation(),{name:c,ikey:u,type:m}=e,[d,p]=v.useState(!1);v.useEffect(()=>{o&&p(a?o.some(f=>f.ikey==String(u)):o.ikey==u)},[o]);const _=()=>g.jsx("div",{className:Be.switchExternalContainer,children:g.jsx("div",{className:Be.switchType,children:g.jsxs("div",{className:Be.switchTypeOptions,children:[g.jsxs("div",{className:Be.optionContainer,children:[g.jsx("span",{className:`${Be.customRadious}`}),g.jsx("h4",{className:Be.optionText,children:l("indicators.cat")})]}),g.jsxs("div",{className:Be.optionContainer,children:[g.jsx("span",{className:`${Be.customRadious}`}),g.jsx("h4",{className:Be.optionText,children:l("indicators.abs")})]})]})})}),b=()=>g.jsx("div",{className:Be.switchExternalContainer,children:g.jsx("div",{className:Be.switchType,children:g.jsx("div",{className:Be.switchTypeOptions,children:t.map((f,x)=>g.jsxs("div",{className:Be.optionContainer,children:[g.jsx("span",{className:Be.customRadious}),g.jsx("h4",{children:l(f.unit)})]},x))})})});return g.jsxs("button",{onClick:()=>i({indicator:e}),className:Be.indicatorContainer,children:[g.jsx("div",{style:{border:d?`1px solid ${n}`:`1px solid ${r}`},className:Be.dot}),g.jsx("h4",{className:Be.indicatorName,style:{color:d?n:r},children:l(c)}),o===u&&m==="both"&&g.jsx("div",{children:_()}),o===u&&m==="twoUnits"&&g.jsx("div",{children:b()})]})};bo.propTypes={indicator:s.shape({name:s.string,ikey:s.number,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 Ql="_indicatorsSubCategory_1dzsi_2",ec="_list_1dzsi_8",ei={indicatorsSubCategory:Ql,list:ec},ua=({subcName:e,indicators:t,defaultColor:n,activeColor:r,activeSubCategory:o,onClickSubCategory:i,id:a,activeIndicator:l,onClickIndicator:c,multiple:u})=>{const{t:m}=je.useTranslation(),[d,p]=v.useState(!1);return v.useEffect(()=>{p(o==a)},[o,a]),g.jsxs(ho.motion.div,{className:ei.indicatorsSubCategory,initial:{height:"43px"},animate:{height:d?"auto":"43px"},transition:{duration:.4},children:[g.jsx("button",{onClick:()=>i(a),children:g.jsxs("h3",{style:{color:d?r:n},children:[g.jsx("span",{style:{color:d?r:n},children:d?"-":"+"}),g.jsx("span",{style:{marginLeft:12,color:d?r:n},children:m(e)})]})}),t&&g.jsx("div",{className:ei.list,children:t==null?void 0:t.map((_,b)=>g.jsx(bo,{indicator:_,defaultColor:n,activeColor:r,activeIndicator:l,onClickIndicator:c,multiple:u},"indicator"+b))})]})};ua.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 da=({cat:e,id:t,activeColor:n,defaultColor:r,onClickCategory:o,activeCategory:i,activeSubCategory:a,onClickSubCategory:l,activeIndicator:c,onClickIndicator:u,multiple:m})=>{var b;const{t:d}=je.useTranslation(),[p,_]=v.useState(!1);return v.useEffect(()=>{_(i===t)},[i,t]),g.jsxs(ho.motion.div,{className:Wr.indicatorsCategory,initial:{height:"53px"},animate:{height:p?"auto":"53px"},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:p?`1px solid ${n}`:"0px",marginBottom:p?"20px":"0px"},children:[g.jsxs("h2",{className:`${Wr.title}`,onClick:()=>o(t),children:[g.jsx("span",{style:{color:p?n:r},children:p?"-":"+"}),g.jsx("span",{style:{marginLeft:12,color:p?n:r},children:d(e.name)})]}),e.subcategories?e.subcategories.map(({name:f,subcategory:x,indicators:E},T)=>g.jsx(ua,{id:x,activeSubCategory:a,subcName:f,onClickSubCategory:l,activeIndicator:c,onClickIndicator:u,multiple:m,activeColor:n,defaultColor:r,indicators:E},`subcKey ${T}`)):g.jsx("div",{className:Wr.list,children:(b=e.indicators)==null?void 0:b.map((f,x)=>g.jsx(bo,{indicator:f,values:f.type=="twoUnits"&&f.values,activeColor:n,defaultColor:r,activeIndicator:c,onClickIndicator:u,multiple:m},`indicator${x}`))})]})};da.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 tc="_indicatorsList_k90zc_2",nc="_title_k90zc_6",ti={indicatorsList:tc,title:nc},fa=({indicators:e,activeColor:t,defaultColor:n="black",onChange:r,multiple:o=!1,defaultValue:i=null})=>{const{t:a}=je.useTranslation(),[l,c]=v.useState(),[u,m]=v.useState(),[d,p]=v.useState(),_=T=>{c(l==T?null:T)},b=T=>{m(u==T?null:T)},f=({indicator:T})=>{x(T)},x=T=>{if(!o)p((d==null?void 0:d.ikey)==T.ikey?null:T);else{let k=d&&d.length>0?[...d]:[];p(k!=null&&k.some(j=>j.ikey==T.ikey)?k.filter(j=>j.ikey!=String(T.ikey)):[...k,T])}};v.useEffect(()=>{r&&typeof r=="function"&&r({activeIndicator:d})},[d]),v.useEffect(()=>{if(i&&!d)if(o&&i&&Array.isArray(i)){let T=d&&d.length>0?[...d]:[];p([...T,...i]),E(i[0].ikey)}else x(i),E(i.ikey)},[i]);const E=T=>{const k=e.find(j=>{if(j.subcategories){let C=j.subcategories.find(z=>z.indicators.find(y=>y.ikey==T));if(C)return m(C.subcategory),C}else return j.indicators.some(C=>C.ikey==T)});k&&c(k.category)};return g.jsxs("div",{className:ti.indicatorsList,children:[g.jsx("h2",{className:ti.title,style:{color:n},children:a("indicators.indicators")}),e.map((T,k)=>g.jsx(da,{id:T.category,cat:T,onClickCategory:_,activeCategory:l,onClickSubCategory:b,activeSubCategory:u,onClickIndicator:f,activeIndicator:d,activeColor:t,defaultColor:n,multiple:o,onChange:r},`categoryKey${k}`))]})};fa.propTypes={indicators:s.arrayOf(s.object),activeColor:s.string,defaultColor:s.string,onChange:s.func,multiple:s.bool,activeIndicator:s.oneOfType([s.object,s.array]),defaultValue:s.oneOfType([s.object,s.array])};const rc="_langSelector_1of0g_2",oc="_currentLang_1of0g_7",ic="_arrow_1of0g_19",ac="_prevImg_1of0g_22",sc="_langMenu_1of0g_26",Zt={langSelector:rc,currentLang:oc,arrow:ic,prevImg:ac,langMenu:sc},ma=({langs:e,arrow:t,imgPrev:n})=>{const[r,o]=v.useState(!1),{i18n:i}=je.useTranslation(),a=e.find(c=>c.code==i.language),l=c=>{i.changeLanguage(c),o(!1)};return g.jsxs("div",{className:Zt.langSelector,children:[g.jsxs("div",{className:Zt.currentLang,onClick:()=>{o(!r)},children:[n&&g.jsx("img",{className:Zt.prevImg,src:n}),a.titleSelected||a.title,g.jsx("img",{src:t,className:Zt.arrow})]}),r&&g.jsx("div",{className:Zt.langMenu,children:e.map(c=>g.jsx("button",{className:a.code==c.code?Zt.active:"",onClick:()=>l(c.code),children:c.title},c.code))})]})};ma.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 lc="_legendContainer_atg3j_3",cc="_closeButton_atg3j_18",uc="_titleContainer_atg3j_46",dc="_infoContainer_atg3j_52",fc="_titleLegendList_atg3j_63",mc="_legendListContainer_atg3j_70",pc="_gridContainer_atg3j_70",hc="_elementLegendContainer_atg3j_76",gc="_colorDot_atg3j_82",yc="_absoluteValueContainer_atg3j_88",vc="_absoluteValueColor_atg3j_91",bc="_absoluteValueText_atg3j_96",_c="_moreInfoContainer_atg3j_108",We={legendContainer:lc,closeButton:cc,titleContainer:uc,infoContainer:dc,titleLegendList:fc,legendListContainer:mc,gridContainer:pc,elementLegendContainer:hc,colorDot:gc,absoluteValueContainer:yc,absoluteValueColor:vc,absoluteValueText:bc,moreInfoContainer:_c},pa=({containerStyles:e,title:t,infoList:n,legendList:r,legendListTitle:o,absoluteValue:i,onClickMoreInfo:a,buttonTitle:l,onClickClose:c})=>{const{t:u}=je.useTranslation();return g.jsxs("div",{style:e?{...e}:{},className:`${We.legendContainer}`,children:[g.jsx("button",{className:We.closeButton,onClick:c}),t&&g.jsx("div",{className:We.titleContainer,children:g.jsx("h2",{children:t})}),n&&n.length>0&&g.jsx("div",{className:We.infoContainer,children:g.jsx("ul",{children:n.map(({title:m,value:d})=>g.jsxs("li",{children:[g.jsx("h3",{className:We.title,children:`${m}:`}),g.jsxs("span",{className:We.value,children:["  ",d]})]},t))})}),g.jsx("h3",{className:We.titleLegendList,children:u(o||"mainUse")}),g.jsx("div",{className:We.legendListContainer,children:i?g.jsxs("div",{className:We.absoluteValueContainer,children:[g.jsx("div",{className:We.absoluteValueColor,style:{background:`linear-gradient(to bottom, ${i.maxColor} 0%, ${i.minColor} 100%)`}}),g.jsxs("div",{className:We.absoluteValueText,children:[g.jsxs("span",{children:[i.maxValue," ",u(i.unit)]}),g.jsxs("span",{children:[i.minValue," ",u(i.unit)]})]})]}):r&&r.length>0&&g.jsx("div",{className:We.gridContainer,children:r.map(({title:m,color:d})=>g.jsxs("div",{className:We.elementLegendContainer,children:[g.jsx("div",{className:We.colorDot,style:{backgroundColor:d}}),g.jsxs("div",{className:We.titleLegendElement,children:[u(m)," "]})]},t))})}),a&&g.jsx("button",{className:We.moreInfoContainer,onClick:a,children:l||u("moreInformation")})]})};pa.propTypes={title:s.string,containerStyles:s.object,infoList:s.arrayOf(s.shape({title:s.string.isRequired,value:s.oneOfType([s.string,s.number])})),legendList:s.arrayOf(s.shape({title:s.string,color:s.string})),legendListTitle:s.string,absoluteValue:s.shape({maxColor:s.string,minColor:s.string,maxValue:s.number,minValue:s.number}),onClickMoreInfo:s.func,buttonTitle:s.string,onClickClose:s.func};const Cc="_logo_1ewa6_2",ni={logo:Cc},ha=({src:e,alt:t,href:n})=>{const{t:r}=je.useTranslation(),o=g.jsx("img",{src:e,alt:r(t)});return n?g.jsx("div",{className:ni.logo,children:g.jsx("a",{href:n,children:o})}):g.jsx("div",{className:ni.logo,children:o})};ha.propTypes={src:s.string.isRequired,alt:s.string.isRequired,href:s.string,className:s.string};const xc=X.createContext(null);function Ec(e,t){const n=Array.isArray(e)?e[0]:e?e.x:0,r=Array.isArray(e)?e[1]:e?e.y:0,o=Array.isArray(t)?t[0]:t?t.x:0,i=Array.isArray(t)?t[1]:t?t.y:0;return n===o&&r===i}function Qe(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(!Qe(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)||!Qe(e[o],t[o]))return!1;return!0}return!1}function Sc(e){const t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}function ri(e,t){if(!e.getProjection)return;const n=e.getProjection(),r=t.getProjection();Qe(n,r)||t.setProjection(n)}function oi(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function ii(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 Tc=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function ai(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 Tc)a in i&&(o[a]=i[a])}return o||r});return{...e,layers:n}}const si={version:8,sources:{},layers:[]},li={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"},Hr={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"},ci={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"},wc=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],kc=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class cn{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[ci[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[li[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[Hr[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=cn.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,r.setProps({...t,styleDiffing:!1}),o.resize();const{initialViewState:a}=t;return a&&(a.bounds?o.fitBounds(a.bounds,{...a.fitBoundsOptions,duration:0}):r._updateViewState(a,!1)),o.isStyleLoaded()?o.fire("load"):o.once("styledata",()=>o.fire("load")),o._update(),r}_initialize(t){const{props:n}=this,{mapStyle:r=si}=n,o={...n,...n.initialViewState,accessToken:n.mapboxAccessToken||Oc()||null,container:t,style:ai(r)},i=o.initialViewState||o.viewState||o;if(Object.assign(o,{center:[i.longitude||0,i.latitude||0],zoom:i.zoom||0,pitch:i.pitch||0,bearing:i.bearing||0}),n.gl){const m=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=m,n.gl)}const a=new this._MapClass(o);i.padding&&a.setPadding(i.padding),n.cursor&&(a.getCanvas().style.cursor=n.cursor),this._createShadowTransform(a);const l=a._render;a._render=m=>{this._inRender=!0,l.call(a,m),this._inRender=!1};const c=a._renderTaskQueue.run;a._renderTaskQueue.run=m=>{c.call(a._renderTaskQueue,m),this._onBeforeRepaint()},a.on("render",()=>this._onAfterRepaint());const u=a.fire;a.fire=this._fireEvent.bind(this,u),a.on("resize",()=>{this._renderTransform.resize(a.transform.width,a.transform.height)}),a.on("styledata",()=>{this._updateStyleComponents(this.props,{}),ri(a.transform,this._renderTransform)}),a.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(const m in li)a.on(m,this._onPointerEvent);for(const m in Hr)a.on(m,this._onCameraEvent);for(const m in ci)a.on(m,this._onEvent);this._map=a}recycle(){const n=this.map.getContainer().querySelector("[mapboxgl-children]");n==null||n.remove(),cn.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=Sc(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,c=r.isMoving();c&&(o.cameraElevationReference="sea");const u=ii(o,{...oi(r.transform),...t});if(c&&(o.cameraElevationReference="ground"),u&&n){const m=this._deferredEvents;m.move=!0,m.zoom||(m.zoom=i!==o.zoom),m.rotate||(m.rotate=l!==o.bearing),m.pitch||(m.pitch=a!==o.pitch)}return c||ii(r.transform,t),u}_updateSettings(t,n){const r=this._map;let o=!1;for(const i of wc)if(i in t&&!Qe(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=si,styleDiffing:o=!0}=t,i={diff:o};return"localIdeographFontFamily"in t&&(i.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(ai(r),i),!0}return!1}_updateStyleComponents(t,n){const r=this._map;let o=!1;return r.isStyleLoaded()&&("light"in t&&r.setLight&&!Qe(t.light,n.light)&&(o=!0,r.setLight(t.light)),"fog"in t&&r.setFog&&!Qe(t.fog,n.fog)&&(o=!0,r.setFog(t.fog)),"terrain"in t&&r.setTerrain&&!Qe(t.terrain,n.terrain)&&(!t.terrain||r.getSource(t.terrain.source))&&(o=!0,r.setTerrain(t.terrain))),o}_updateHandlers(t,n){const r=this._map;let o=!1;for(const i of kc){const a=t[i]??!0,l=n[i]??!0;Qe(a,l)||(o=!0,a?r[i].enable(a):r[i].disable())}return o}_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 o;const{props:n}=this;if(n.interactiveLayerIds&&(n.onMouseMove||n.onMouseEnter||n.onMouseLeave)){const i=t.type,a=((o=this._hoveredFeatures)==null?void 0:o.length)>0,l=this._queryRenderedFeatures(t.point),c=l.length>0;!c&&a&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=l,c&&!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 Hr&&(typeof n=="object"&&(n.viewState=oi(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=()=>{ri(this._renderTransform,n),t.transform=n}}}cn.savedMaps=[];function Oc(){let e=null;if(typeof location<"u"){const t=/access_token=([^&\/]*)/.exec(location.search);e=t&&t[1]}try{e=e||process.env.MapboxAccessToken}catch{}try{e=e||process.env.REACT_APP_MAPBOX_ACCESS_TOKEN}catch{}return e}const Rc=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function Ac(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 Pc(t))!(r in n)&&!Rc.includes(r)&&(n[r]=t[r].bind(t));return n}function Pc(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"?v.useLayoutEffect:v.useEffect,jc=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function Mc(e,t){for(const r of jc)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 fn=X.createContext(null);function Lc(e,t){const n=v.useContext(xc),[r,o]=v.useState(null),i=v.useRef(),{current:a}=v.useRef({mapLib:null,map:null});v.useEffect(()=>{const u=e.mapLib;let m=!0,d;return Promise.resolve(u||import("mapbox-gl")).then(p=>{if(!m)return;if(!p)throw new Error("Invalid mapLib");const _="Map"in p?p:p.default;if(!_.Map)throw new Error("Invalid mapLib");Mc(_,e),e.reuseMaps&&(d=cn.reuse(e,i.current)),d||(d=new cn(_.Map,e,i.current)),a.map=Ac(d),a.mapLib=_,o(d),n==null||n.onMapMount(a.map,e.id)}).catch(p=>{const{onError:_}=e;_?_({type:"error",target:null,error:p}):console.error(p)}),()=>{m=!1,d&&(n==null||n.onMapUnmount(e.id),e.reuseMaps?d.recycle():d.destroy())}},[]),$c(()=>{r&&r.setProps(e)}),v.useImperativeHandle(t,()=>a.map,[r]);const l=v.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),c={height:"100%"};return X.createElement("div",{id:e.id,ref:i,style:l},r&&X.createElement(fn.Provider,{value:a},X.createElement("div",{"mapboxgl-children":"",style:c},e.children)))}const Nc=X.forwardRef(Lc),Ic=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function It(e,t){if(!e||!t)return;const n=e.style;for(const r in t){const o=t[r];Number.isFinite(o)&&!Ic.test(r)?n[r]=`${o}px`:n[r]=o}}function ga(e,t){if(e===t)return null;const n=ui(e),r=ui(t),o=[];for(const i of r)n.has(i)||o.push(i);for(const i of n)r.has(i)||o.push(i);return o.length===0?null:o}function ui(e){return new Set(e?e.trim().split(/\s+/):[])}v.memo(v.forwardRef((e,t)=>{const{map:n,mapLib:r}=v.useContext(fn),o=v.useRef({props:e}),i=v.useMemo(()=>{let E=!1;X.Children.forEach(e.children,j=>{j&&(E=!0)});const T={...e,element:E?document.createElement("div"):null},k=new r.Marker(T);return k.setLngLat([e.longitude,e.latitude]),k.getElement().addEventListener("click",j=>{var C,z;(z=(C=o.current.props).onClick)==null||z.call(C,{type:"click",target:k,originalEvent:j})}),k.on("dragstart",j=>{var z,y;const C=j;C.lngLat=i.getLngLat(),(y=(z=o.current.props).onDragStart)==null||y.call(z,C)}),k.on("drag",j=>{var z,y;const C=j;C.lngLat=i.getLngLat(),(y=(z=o.current.props).onDrag)==null||y.call(z,C)}),k.on("dragend",j=>{var z,y;const C=j;C.lngLat=i.getLngLat(),(y=(z=o.current.props).onDragEnd)==null||y.call(z,C)}),k},[]);v.useEffect(()=>(i.addTo(n.getMap()),()=>{i.remove()}),[]);const{longitude:a,latitude:l,offset:c,style:u,draggable:m=!1,popup:d=null,rotation:p=0,rotationAlignment:_="auto",pitchAlignment:b="auto"}=e;v.useEffect(()=>{It(i.getElement(),u)},[u]),v.useImperativeHandle(t,()=>i,[]);const f=o.current.props;(i.getLngLat().lng!==a||i.getLngLat().lat!==l)&&i.setLngLat([a,l]),c&&!Ec(i.getOffset(),c)&&i.setOffset(c),i.isDraggable()!==m&&i.setDraggable(m),i.getRotation()!==p&&i.setRotation(p),i.getRotationAlignment()!==_&&i.setRotationAlignment(_),i.getPitchAlignment()!==b&&i.setPitchAlignment(b),i.getPopup()!==d&&i.setPopup(d);const x=ga(f.className,e.className);if(x)for(const E of x)i.toggleClassName(E);return o.current.props=e,hr.createPortal(e.children,i.getElement())}));const Dc=v.memo(v.forwardRef((e,t)=>{const{map:n,mapLib:r}=v.useContext(fn),o=v.useMemo(()=>document.createElement("div"),[]),i=v.useRef({props:e}),a=v.useMemo(()=>{const l={...e},c=new r.Popup(l);return c.setLngLat([e.longitude,e.latitude]),c.once("open",u=>{var m,d;(d=(m=i.current.props).onOpen)==null||d.call(m,u)}),c},[]);if(v.useEffect(()=>{const l=c=>{var u,m;(m=(u=i.current.props).onClose)==null||m.call(u,c)};return a.on("close",l),a.setDOMContent(o).addTo(n.getMap()),()=>{a.off("close",l),a.isOpen()&&a.remove()}},[]),v.useEffect(()=>{It(a.getElement(),e.style)},[e.style]),v.useImperativeHandle(t,()=>a,[]),a.isOpen()){const l=i.current.props;(a.getLngLat().lng!==e.longitude||a.getLngLat().lat!==e.latitude)&&a.setLngLat([e.longitude,e.latitude]),e.offset&&!Qe(l.offset,e.offset)&&(a.options.anchor=e.anchor,a.setOffset(e.offset)),(l.anchor!==e.anchor||l.maxWidth!==e.maxWidth)&&a.setMaxWidth(e.maxWidth);const c=ga(l.className,e.className);if(c)for(const u of c)a.toggleClassName(u);i.current.props=e}return hr.createPortal(e.children,o)}));function Nn(e,t,n,r){const o=v.useContext(fn),i=v.useMemo(()=>e(o),[]);return v.useEffect(()=>{const a=t,l=typeof t=="function"?t:null,{map:c}=o;return c.hasControl(i)||c.addControl(i,a==null?void 0:a.position),()=>{l&&l(o),c.hasControl(i)&&c.removeControl(i)}},[]),i}function Fc(e){const t=Nn(({mapLib:n})=>new n.AttributionControl(e),{position:e.position});return v.useEffect(()=>{It(t._container,e.style)},[e.style]),null}v.memo(Fc);function Bc(e){const t=Nn(({mapLib:n})=>new n.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return v.useEffect(()=>{It(t._controlContainer,e.style)},[e.style]),null}v.memo(Bc);function zc(e,t){const n=v.useRef({props:e}),r=Nn(({mapLib:o})=>{const i=new o.GeolocateControl(e),a=i._setupUI.bind(i);return i._setupUI=l=>{i._container.hasChildNodes()||a(l)},i.on("geolocate",l=>{var c,u;(u=(c=n.current.props).onGeolocate)==null||u.call(c,l)}),i.on("error",l=>{var c,u;(u=(c=n.current.props).onError)==null||u.call(c,l)}),i.on("outofmaxbounds",l=>{var c,u;(u=(c=n.current.props).onOutOfMaxBounds)==null||u.call(c,l)}),i.on("trackuserlocationstart",l=>{var c,u;(u=(c=n.current.props).onTrackUserLocationStart)==null||u.call(c,l)}),i.on("trackuserlocationend",l=>{var c,u;(u=(c=n.current.props).onTrackUserLocationEnd)==null||u.call(c,l)}),i},{position:e.position});return n.current.props=e,v.useImperativeHandle(t,()=>r,[]),v.useEffect(()=>{It(r._container,e.style)},[e.style]),null}v.memo(v.forwardRef(zc));function Vc(e){const t=Nn(({mapLib:n})=>new n.NavigationControl(e),{position:e.position});return v.useEffect(()=>{It(t._container,e.style)},[e.style]),null}const Uc=v.memo(Vc);function qc(e){const t=Nn(({mapLib:i})=>new i.ScaleControl(e),{position:e.position}),n=v.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),v.useEffect(()=>{It(t._container,o)},[o]),null}v.memo(qc);function ur(e,t){if(!e)throw new Error(t)}let Wc=0;function Hc(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 Yc(e,t,n){ur(t.id===n.id,"source id changed"),ur(t.type===n.type,"source type changed");let r="",o=0;for(const a in t)a!=="children"&&a!=="id"&&!Qe(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 Kc(e){const t=v.useContext(fn).map.getMap(),n=v.useRef(e),[,r]=v.useState(0),o=v.useMemo(()=>e.id||`jsx-source-${Wc++}`,[]);v.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 c=(l=t.getStyle())==null?void 0:l.layers;if(c)for(const u of c)u.source===o&&t.removeLayer(u.id);t.removeSource(o)}}}},[t]);let i=t&&t.style&&t.getSource(o);return i?Yc(i,e,n.current):i=Hc(t,o,e),n.current=e,i&&X.Children.map(e.children,a=>a&&v.cloneElement(a,{source:o}))||null}function Zc(e,t,n,r){if(ur(n.id===r.id,"layer id changed"),ur(n.type===r.type,"layer type changed"),n.type==="custom"||r.type==="custom")return;const{layout:o={},paint:i={},filter:a,minzoom:l,maxzoom:c,beforeId:u}=n;if(u!==r.beforeId&&e.moveLayer(t,u),o!==r.layout){const m=r.layout||{};for(const d in o)Qe(o[d],m[d])||e.setLayoutProperty(t,d,o[d]);for(const d in m)o.hasOwnProperty(d)||e.setLayoutProperty(t,d,void 0)}if(i!==r.paint){const m=r.paint||{};for(const d in i)Qe(i[d],m[d])||e.setPaintProperty(t,d,i[d]);for(const d in m)i.hasOwnProperty(d)||e.setPaintProperty(t,d,void 0)}Qe(a,r.filter)||e.setFilter(t,a),(l!==r.minzoom||c!==r.maxzoom)&&e.setLayerZoomRange(t,l,c)}function Gc(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 Jc=0;function Xc(e){const t=v.useContext(fn).map.getMap(),n=v.useRef(e),[,r]=v.useState(0),o=v.useMemo(()=>e.id||`jsx-layer-${Jc++}`,[]);if(v.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{Zc(t,o,e,n.current)}catch(a){console.warn(a)}else Gc(t,o,e);return n.current=e,null}const Qc="_mapContainer_84pkf_2",eu={mapContainer:Qc};Ss.accessToken="pk.eyJ1IjoiY2ljbGljYSIsImEiOiJja3llODhxZ2UwYzF1Mm5xcHVhMzI3anhqIn0.-r56FLAzEH57eVsB2ZeVcA";const ya=({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:c=!1,sources:u=[],layers:m=[]})=>{const d=v.useRef(),[p,_]=v.useState(null),b=on.useSelector(f=>f.mapState.showTexts);return v.useEffect(()=>{if(d.current){const f=d.current.getMap();f.getStyle().layers.map(E=>{E.type=="symbol"&&E.id!="professionals"&&(b?f.setLayoutProperty(E.id,"visibility","visible"):f.setLayoutProperty(E.id,"visibility","none"))})}},[b]),g.jsx("div",{className:`${eu.mapContainer}`,style:i,children:g.jsxs(Nc,{initialViewState:e,ref:d,hash:!1,maxZoom:t,minZoom:n,mapStyle:r,onClick:a,interactiveLayerIds:l,children:[u.length&&u.map((f,x)=>g.jsx(Kc,{...f,children:m.length&&m.map((E,T)=>{if(E.sourceId==f.id)return g.jsx(Xc,{...E.layer,beforeId:o},T)})},x)),g.jsx(Uc,{position:"bottom-right",visualizePitch:!0}),c&&p&&g.jsx(Dc,{longitude:c.longitude,latitude:c.latitude,anchor:c.anchor,onClose:()=>_(null),children:c.content})]})})};ya.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})}))};var et=Uint8Array,rn=Uint16Array,tu=Int32Array,va=new et([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),ba=new et([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),nu=new et([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),_a=function(e,t){for(var n=new rn(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var o=new tu(n[30]),r=1;r<30;++r)for(var i=n[r];i<n[r+1];++i)o[i]=i-n[r]<<5|r;return{b:n,r:o}},Ca=_a(va,2),xa=Ca.b,ru=Ca.r;xa[28]=258,ru[258]=28;var ou=_a(ba,0),iu=ou.b,ao=new rn(32768);for(var Te=0;Te<32768;++Te){var Et=(Te&43690)>>1|(Te&21845)<<1;Et=(Et&52428)>>2|(Et&13107)<<2,Et=(Et&61680)>>4|(Et&3855)<<4,ao[Te]=((Et&65280)>>8|(Et&255)<<8)>>1}var On=function(e,t,n){for(var r=e.length,o=0,i=new rn(t);o<r;++o)e[o]&&++i[e[o]-1];var a=new rn(t);for(o=1;o<t;++o)a[o]=a[o-1]+i[o-1]<<1;var l;if(n){l=new rn(1<<t);var c=15-t;for(o=0;o<r;++o)if(e[o])for(var u=o<<4|e[o],m=t-e[o],d=a[e[o]-1]++<<m,p=d|(1<<m)-1;d<=p;++d)l[ao[d]>>c]=u}else for(l=new rn(r),o=0;o<r;++o)e[o]&&(l[o]=ao[a[e[o]-1]++]>>15-e[o]);return l},In=new et(288);for(var Te=0;Te<144;++Te)In[Te]=8;for(var Te=144;Te<256;++Te)In[Te]=9;for(var Te=256;Te<280;++Te)In[Te]=7;for(var Te=280;Te<288;++Te)In[Te]=8;var Ea=new et(32);for(var Te=0;Te<32;++Te)Ea[Te]=5;var au=On(In,9,1),su=On(Ea,5,1),Yr=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},ct=function(e,t,n){var r=t/8|0;return(e[r]|e[r+1]<<8)>>(t&7)&n},Kr=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},lu=function(e){return(e+7)/8|0},cu=function(e,t,n){return(n==null||n>e.length)&&(n=e.length),new et(e.subarray(t,n))},uu=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Xe=function(e,t,n){var r=new Error(t||uu[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,Xe),!n)throw r;return r},_o=function(e,t,n,r){var o=e.length,i=0;if(!o||t.f&&!t.l)return n||new et(0);var a=!n,l=a||t.i!=2,c=t.i;a&&(n=new et(o*3));var u=function(be){var P=n.length;if(be>P){var _e=new et(Math.max(P*2,be));_e.set(n),n=_e}},m=t.f||0,d=t.p||0,p=t.b||0,_=t.l,b=t.d,f=t.m,x=t.n,E=o*8;do{if(!_){m=ct(e,d,1);var T=ct(e,d+1,3);if(d+=3,T)if(T==1)_=au,b=su,f=9,x=5;else if(T==2){var z=ct(e,d,31)+257,y=ct(e,d+10,15)+4,w=z+ct(e,d+5,31)+1;d+=14;for(var S=new et(w),A=new et(19),N=0;N<y;++N)A[nu[N]]=ct(e,d+N*3,7);d+=y*3;for(var H=Yr(A),V=(1<<H)-1,ce=On(A,H,1),N=0;N<w;){var Y=ce[ct(e,d,V)];d+=Y&15;var k=Y>>4;if(k<16)S[N++]=k;else{var ie=0,re=0;for(k==16?(re=3+ct(e,d,3),d+=2,ie=S[N-1]):k==17?(re=3+ct(e,d,7),d+=3):k==18&&(re=11+ct(e,d,127),d+=7);re--;)S[N++]=ie}}var we=S.subarray(0,z),Ae=S.subarray(z);f=Yr(we),x=Yr(Ae),_=On(we,f,1),b=On(Ae,x,1)}else Xe(1);else{var k=lu(d)+4,j=e[k-4]|e[k-3]<<8,C=k+j;if(C>o){c&&Xe(0);break}l&&u(p+j),n.set(e.subarray(k,C),p),t.b=p+=j,t.p=d=C*8,t.f=m;continue}if(d>E){c&&Xe(0);break}}l&&u(p+131072);for(var R=(1<<f)-1,M=(1<<x)-1,Q=d;;Q=d){var ie=_[Kr(e,d)&R],q=ie>>4;if(d+=ie&15,d>E){c&&Xe(0);break}if(ie||Xe(2),q<256)n[p++]=q;else if(q==256){Q=d,_=null;break}else{var F=q-254;if(q>264){var N=q-257,ee=va[N];F=ct(e,d,(1<<ee)-1)+xa[N],d+=ee}var Z=b[Kr(e,d)&M],K=Z>>4;Z||Xe(3),d+=Z&15;var Ae=iu[K];if(K>3){var ee=ba[K];Ae+=Kr(e,d)&(1<<ee)-1,d+=ee}if(d>E){c&&Xe(0);break}l&&u(p+131072);var U=p+F;if(p<Ae){var G=i-Ae,ne=Math.min(Ae,U);for(G+p<0&&Xe(3);p<ne;++p)n[p]=r[G+p]}for(;p<U;++p)n[p]=n[p-Ae]}}t.l=_,t.p=Q,t.b=p,t.f=m,_&&(m=1,t.m=f,t.d=b,t.n=x)}while(!m);return p!=n.length&&a?cu(n,0,p):n.subarray(0,p)},du=new et(0),fu=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Xe(6,"invalid gzip data");var t=e[3],n=10;t&4&&(n+=(e[10]|e[11]<<8)+2);for(var r=(t>>3&1)+(t>>4&1);r>0;r-=!e[n++]);return n+(t&2)},mu=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},pu=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Xe(6,"invalid zlib data"),(e[1]>>5&1)==1&&Xe(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function hu(e,t){return _o(e,{i:2},t,t)}function gu(e,t){var n=fu(e);return n+8>e.length&&Xe(6,"invalid gzip data"),_o(e.subarray(n,-8),{i:2},new et(mu(e)),t)}function yu(e,t){return _o(e.subarray(pu(e),-4),{i:2},t,t)}function vu(e,t){return e[0]==31&&e[1]==139&&e[2]==8?gu(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?hu(e,t):yu(e,t)}var bu=typeof TextDecoder<"u"&&new TextDecoder,_u=0;try{bu.decode(du,{stream:!0}),_u=1}catch{}var Cu=Object.defineProperty,Rn=Math.pow,Ee=(e,t)=>Cu(e,"name",{value:t,configurable:!0}),Fe=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{l(n.next(c))}catch(u){o(u)}},a=c=>{try{l(n.throw(c))}catch(u){o(u)}},l=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,a);l((n=n.apply(e,t)).next())});Ee((e,t)=>{let n=!1,r="",o=L.GridLayer.extend({createTile:Ee((i,a)=>{let l=document.createElement("img"),c=new AbortController,u=c.signal;return l.cancel=()=>{c.abort()},n||(e.getHeader().then(m=>{m.tileType===1?console.error("Error: archive contains MVT vector tiles, but leafletRasterLayer is for displaying raster tiles. See https://github.com/protomaps/PMTiles/tree/main/js for details."):m.tileType===2?r="image/png":m.tileType===3?r="image/jpeg":m.tileType===4?r="image/webp":m.tileType===5&&(r="image/avif")}),n=!0),e.getZxy(i.z,i.x,i.y,u).then(m=>{if(m){let d=new Blob([m.data],{type:r}),p=window.URL.createObjectURL(d);l.src=p,l.cancel=void 0,a(void 0,l)}}).catch(m=>{if(m.name!=="AbortError")throw m}),l},"createTile"),_removeTile:Ee(function(i){let a=this._tiles[i];a&&(a.el.cancel&&a.el.cancel(),a.el.width=0,a.el.height=0,a.el.deleted=!0,L.DomUtil.remove(a.el),delete this._tiles[i],this.fire("tileunload",{tile:a.el,coords:this._keyToTileCoords(i)}))},"_removeTile")});return new o(t)},"leafletRasterLayer");var xu=Ee(e=>(t,n)=>{if(n instanceof AbortController)return e(t,n);let r=new AbortController;return e(t,r).then(o=>n(void 0,o.data,o.cacheControl||"",o.expires||""),o=>n(o)).catch(o=>n(o)),{cancel:Ee(()=>r.abort(),"cancel")}},"v3compat"),Sa=class{constructor(t){this.tilev4=Ee((n,r)=>Fe(this,null,function*(){if(n.type==="json"){let _=n.url.substr(10),b=this.tiles.get(_);if(b||(b=new di(_),this.tiles.set(_,b)),this.metadata)return{data:yield b.getTileJson(n.url)};let f=yield b.getHeader();return(f.minLon>=f.maxLon||f.minLat>=f.maxLat)&&console.error(`Bounds of PMTiles archive ${f.minLon},${f.minLat},${f.maxLon},${f.maxLat} are not valid.`),{data:{tiles:[`${n.url}/{z}/{x}/{y}`],minzoom:f.minZoom,maxzoom:f.maxZoom,bounds:[f.minLon,f.minLat,f.maxLon,f.maxLat]}}}let o=new RegExp(/pmtiles:\/\/(.+)\/(\d+)\/(\d+)\/(\d+)/),i=n.url.match(o);if(!i)throw new Error("Invalid PMTiles protocol URL");let a=i[1],l=this.tiles.get(a);l||(l=new di(a),this.tiles.set(a,l));let c=i[2],u=i[3],m=i[4],d=yield l.getHeader(),p=yield l==null?void 0:l.getZxy(+c,+u,+m,r.signal);if(p)return{data:new Uint8Array(p.data),cacheControl:p.cacheControl,expires:p.expires};if(d.tileType===1){if(this.errorOnMissingTile)throw new Error("Tile not found.");return{data:new Uint8Array}}return{data:null}}),"tilev4"),this.tile=xu(this.tilev4),this.tiles=new Map,this.metadata=(t==null?void 0:t.metadata)||!1,this.errorOnMissingTile=(t==null?void 0:t.errorOnMissingTile)||!1}add(t){this.tiles.set(t.source.getKey(),t)}get(t){return this.tiles.get(t)}};Ee(Sa,"Protocol");var Eu=Sa;function Ta(e,t){return(t>>>0)*4294967296+(e>>>0)}Ee(Ta,"toNum");function wa(e,t){let n=t.buf,r=n[t.pos++],o=(r&112)>>4;if(r<128||(r=n[t.pos++],o|=(r&127)<<3,r<128)||(r=n[t.pos++],o|=(r&127)<<10,r<128)||(r=n[t.pos++],o|=(r&127)<<17,r<128)||(r=n[t.pos++],o|=(r&127)<<24,r<128)||(r=n[t.pos++],o|=(r&1)<<31,r<128))return Ta(e,o);throw new Error("Expected varint not more than 10 bytes")}Ee(wa,"readVarintRemainder");function tn(e){let t=e.buf,n=t[e.pos++],r=n&127;return n<128||(n=t[e.pos++],r|=(n&127)<<7,n<128)||(n=t[e.pos++],r|=(n&127)<<14,n<128)||(n=t[e.pos++],r|=(n&127)<<21,n<128)?r:(n=t[e.pos],r|=(n&15)<<28,wa(r,e))}Ee(tn,"readVarint");function Co(e,t,n,r){if(r===0){n===1&&(t[0]=e-1-t[0],t[1]=e-1-t[1]);let o=t[0];t[0]=t[1],t[1]=o}}Ee(Co,"rotate");function ka(e,t){let n=Rn(2,e),r=t,o=t,i=t,a=[0,0],l=1;for(;l<n;)r=1&i/2,o=1&(i^r),Co(l,a,r,o),a[0]+=l*r,a[1]+=l*o,i=i/4,l*=2;return[e,a[0],a[1]]}Ee(ka,"idOnLevel");var Su=[0,1,5,21,85,341,1365,5461,21845,87381,349525,1398101,5592405,22369621,89478485,357913941,1431655765,5726623061,22906492245,91625968981,366503875925,1466015503701,5864062014805,23456248059221,93824992236885,375299968947541,0x5555555555555];function Oa(e,t,n){if(e>26)throw new Error("Tile zoom level exceeds max safe number limit (26)");if(t>Rn(2,e)-1||n>Rn(2,e)-1)throw new Error("tile x/y outside zoom level bounds");let r=Su[e],o=Rn(2,e),i=0,a=0,l=0,c=[t,n],u=o/2;for(;u>0;)i=(c[0]&u)>0?1:0,a=(c[1]&u)>0?1:0,l+=u*u*(3*i^a),Co(u,c,i,a),u=u/2;return r+l}Ee(Oa,"zxyToTileId");function Tu(e){let t=0;for(let n=0;n<27;n++){let r=(1<<n)*(1<<n);if(t+r>e)return ka(n,e-t);t+=r}throw new Error("Tile zoom level exceeds max safe number limit (26)")}Ee(Tu,"tileIdToZxy");var wu=(e=>(e[e.Unknown=0]="Unknown",e[e.None=1]="None",e[e.Gzip=2]="Gzip",e[e.Brotli=3]="Brotli",e[e.Zstd=4]="Zstd",e))(wu||{});function gr(e,t){return Fe(this,null,function*(){if(t===1||t===0)return e;if(t===2){if(typeof globalThis.DecompressionStream>"u")return vu(new Uint8Array(e));let n=new Response(e).body;if(!n)throw new Error("Failed to read response stream");let r=n.pipeThrough(new globalThis.DecompressionStream("gzip"));return new Response(r).arrayBuffer()}throw new Error("Compression method not supported")})}Ee(gr,"defaultDecompress");var ku=(e=>(e[e.Unknown=0]="Unknown",e[e.Mvt=1]="Mvt",e[e.Png=2]="Png",e[e.Jpeg=3]="Jpeg",e[e.Webp=4]="Webp",e[e.Avif=5]="Avif",e))(ku||{});function Ra(e){return e===1?".mvt":e===2?".png":e===3?".jpg":e===4?".webp":e===5?".avif":""}Ee(Ra,"tileTypeExt");var Ou=127;function Aa(e,t){let n=0,r=e.length-1;for(;n<=r;){let o=r+n>>1,i=t-e[o].tileId;if(i>0)n=o+1;else if(i<0)r=o-1;else return e[o]}return r>=0&&(e[r].runLength===0||t-e[r].tileId<e[r].runLength)?e[r]:null}Ee(Aa,"findTile");var Ru=class{constructor(t){this.file=t}getKey(){return this.file.name}getBytes(t,n){return Fe(this,null,function*(){return{data:yield this.file.slice(t,t+n).arrayBuffer()}})}};Ee(Ru,"FileSource");var Pa=class{constructor(t,n=new Headers){this.url=t,this.customHeaders=n,this.mustReload=!1;let r="";"navigator"in globalThis&&(r=globalThis.navigator.userAgent||"");let o=r.indexOf("Windows")>-1,i=/Chrome|Chromium|Edg|OPR|Brave/.test(r);this.chromeWindowsNoCache=!1,o&&i&&(this.chromeWindowsNoCache=!0)}getKey(){return this.url}setHeaders(t){this.customHeaders=t}getBytes(t,n,r,o){return Fe(this,null,function*(){let i,a;r?a=r:(i=new AbortController,a=i.signal);let l=new Headers(this.customHeaders);l.set("range",`bytes=${t}-${t+n-1}`);let c;this.mustReload?c="reload":this.chromeWindowsNoCache&&(c="no-store");let u=yield fetch(this.url,{signal:a,cache:c,headers:l});if(t===0&&u.status===416){let p=u.headers.get("Content-Range");if(!p||!p.startsWith("bytes */"))throw new Error("Missing content-length on 416 response");let _=+p.substr(8);u=yield fetch(this.url,{signal:a,cache:"reload",headers:{range:`bytes=0-${_-1}`}})}let m=u.headers.get("Etag");if(m!=null&&m.startsWith("W/")&&(m=null),u.status===416||o&&m&&m!==o)throw this.mustReload=!0,new so(`Server returned non-matching ETag ${o} after one retry. Check browser extensions and servers for issues that may affect correct ETag headers.`);if(u.status>=300)throw new Error(`Bad response code: ${u.status}`);let d=u.headers.get("Content-Length");if(u.status===200&&(!d||+d>n))throw i&&i.abort(),new Error("Server returned no content-length header or content-length exceeding request. Check that your storage backend supports HTTP Byte Serving.");return{data:yield u.arrayBuffer(),etag:m||void 0,cacheControl:u.headers.get("Cache-Control")||void 0,expires:u.headers.get("Expires")||void 0}})}};Ee(Pa,"FetchSource");var Au=Pa;function it(e,t){let n=e.getUint32(t+4,!0),r=e.getUint32(t+0,!0);return n*Rn(2,32)+r}Ee(it,"getUint64");function $a(e,t){let n=new DataView(e),r=n.getUint8(7);if(r>3)throw new Error(`Archive is spec version ${r} but this library supports up to spec version 3`);return{specVersion:r,rootDirectoryOffset:it(n,8),rootDirectoryLength:it(n,16),jsonMetadataOffset:it(n,24),jsonMetadataLength:it(n,32),leafDirectoryOffset:it(n,40),leafDirectoryLength:it(n,48),tileDataOffset:it(n,56),tileDataLength:it(n,64),numAddressedTiles:it(n,72),numTileEntries:it(n,80),numTileContents:it(n,88),clustered:n.getUint8(96)===1,internalCompression:n.getUint8(97),tileCompression:n.getUint8(98),tileType:n.getUint8(99),minZoom:n.getUint8(100),maxZoom:n.getUint8(101),minLon:n.getInt32(102,!0)/1e7,minLat:n.getInt32(106,!0)/1e7,maxLon:n.getInt32(110,!0)/1e7,maxLat:n.getInt32(114,!0)/1e7,centerZoom:n.getUint8(118),centerLon:n.getInt32(119,!0)/1e7,centerLat:n.getInt32(123,!0)/1e7,etag:t}}Ee($a,"bytesToHeader");function xo(e){let t={buf:new Uint8Array(e),pos:0},n=tn(t),r=[],o=0;for(let i=0;i<n;i++){let a=tn(t);r.push({tileId:o+a,offset:0,length:0,runLength:1}),o+=a}for(let i=0;i<n;i++)r[i].runLength=tn(t);for(let i=0;i<n;i++)r[i].length=tn(t);for(let i=0;i<n;i++){let a=tn(t);a===0&&i>0?r[i].offset=r[i-1].offset+r[i-1].length:r[i].offset=a-1}return r}Ee(xo,"deserializeIndex");var ja=class extends Error{};Ee(ja,"EtagMismatch");var so=ja;function Eo(e,t){return Fe(this,null,function*(){let n=yield e.getBytes(0,16384);if(new DataView(n.data).getUint16(0,!0)!==19792)throw new Error("Wrong magic number for PMTiles archive");let r=n.data.slice(0,Ou),o=$a(r,n.etag),i=n.data.slice(o.rootDirectoryOffset,o.rootDirectoryOffset+o.rootDirectoryLength),a=`${e.getKey()}|${o.etag||""}|${o.rootDirectoryOffset}|${o.rootDirectoryLength}`,l=xo(yield t(i,o.internalCompression));return[o,[a,l.length,l]]})}Ee(Eo,"getHeaderAndRoot");function So(e,t,n,r,o){return Fe(this,null,function*(){let i=yield e.getBytes(n,r,void 0,o.etag),a=yield t(i.data,o.internalCompression),l=xo(a);if(l.length===0)throw new Error("Empty directory is invalid");return l})}Ee(So,"getDirectory");var Pu=class{constructor(t=100,n=!0,r=gr){this.cache=new Map,this.maxCacheEntries=t,this.counter=1,this.decompress=r}getHeader(t){return Fe(this,null,function*(){let n=t.getKey(),r=this.cache.get(n);if(r)return r.lastUsed=this.counter++,r.data;let o=yield Eo(t,this.decompress);return o[1]&&this.cache.set(o[1][0],{lastUsed:this.counter++,data:o[1][2]}),this.cache.set(n,{lastUsed:this.counter++,data:o[0]}),this.prune(),o[0]})}getDirectory(t,n,r,o){return Fe(this,null,function*(){let i=`${t.getKey()}|${o.etag||""}|${n}|${r}`,a=this.cache.get(i);if(a)return a.lastUsed=this.counter++,a.data;let l=yield So(t,this.decompress,n,r,o);return this.cache.set(i,{lastUsed:this.counter++,data:l}),this.prune(),l})}prune(){if(this.cache.size>this.maxCacheEntries){let t=1/0,n;this.cache.forEach((r,o)=>{r.lastUsed<t&&(t=r.lastUsed,n=o)}),n&&this.cache.delete(n)}}invalidate(t){return Fe(this,null,function*(){this.cache.delete(t.getKey())})}};Ee(Pu,"ResolvedValueCache");var Ma=class{constructor(t=100,n=!0,r=gr){this.cache=new Map,this.invalidations=new Map,this.maxCacheEntries=t,this.counter=1,this.decompress=r}getHeader(t){return Fe(this,null,function*(){let n=t.getKey(),r=this.cache.get(n);if(r)return r.lastUsed=this.counter++,yield r.data;let o=new Promise((i,a)=>{Eo(t,this.decompress).then(l=>{l[1]&&this.cache.set(l[1][0],{lastUsed:this.counter++,data:Promise.resolve(l[1][2])}),i(l[0]),this.prune()}).catch(l=>{a(l)})});return this.cache.set(n,{lastUsed:this.counter++,data:o}),o})}getDirectory(t,n,r,o){return Fe(this,null,function*(){let i=`${t.getKey()}|${o.etag||""}|${n}|${r}`,a=this.cache.get(i);if(a)return a.lastUsed=this.counter++,yield a.data;let l=new Promise((c,u)=>{So(t,this.decompress,n,r,o).then(m=>{c(m),this.prune()}).catch(m=>{u(m)})});return this.cache.set(i,{lastUsed:this.counter++,data:l}),l})}prune(){if(this.cache.size>=this.maxCacheEntries){let t=1/0,n;this.cache.forEach((r,o)=>{r.lastUsed<t&&(t=r.lastUsed,n=o)}),n&&this.cache.delete(n)}}invalidate(t){return Fe(this,null,function*(){let n=t.getKey();if(this.invalidations.get(n))return yield this.invalidations.get(n);this.cache.delete(t.getKey());let r=new Promise((o,i)=>{this.getHeader(t).then(a=>{o(),this.invalidations.delete(n)}).catch(a=>{i(a)})});this.invalidations.set(n,r)})}};Ee(Ma,"SharedPromiseCache");var $u=Ma,La=class{constructor(t,n,r){typeof t=="string"?this.source=new Au(t):this.source=t,r?this.decompress=r:this.decompress=gr,n?this.cache=n:this.cache=new $u}getHeader(){return Fe(this,null,function*(){return yield this.cache.getHeader(this.source)})}getZxyAttempt(t,n,r,o){return Fe(this,null,function*(){let i=Oa(t,n,r),a=yield this.cache.getHeader(this.source);if(t<a.minZoom||t>a.maxZoom)return;let l=a.rootDirectoryOffset,c=a.rootDirectoryLength;for(let u=0;u<=3;u++){let m=yield this.cache.getDirectory(this.source,l,c,a),d=Aa(m,i);if(d){if(d.runLength>0){let p=yield this.source.getBytes(a.tileDataOffset+d.offset,d.length,o,a.etag);return{data:yield this.decompress(p.data,a.tileCompression),cacheControl:p.cacheControl,expires:p.expires}}l=a.leafDirectoryOffset+d.offset,c=d.length}else return}throw new Error("Maximum directory depth exceeded")})}getZxy(t,n,r,o){return Fe(this,null,function*(){try{return yield this.getZxyAttempt(t,n,r,o)}catch(i){if(i instanceof so)return this.cache.invalidate(this.source),yield this.getZxyAttempt(t,n,r,o);throw i}})}getMetadataAttempt(){return Fe(this,null,function*(){let t=yield this.cache.getHeader(this.source),n=yield this.source.getBytes(t.jsonMetadataOffset,t.jsonMetadataLength,void 0,t.etag),r=yield this.decompress(n.data,t.internalCompression),o=new TextDecoder("utf-8");return JSON.parse(o.decode(r))})}getMetadata(){return Fe(this,null,function*(){try{return yield this.getMetadataAttempt()}catch(t){if(t instanceof so)return this.cache.invalidate(this.source),yield this.getMetadataAttempt();throw t}})}getTileJson(t){return Fe(this,null,function*(){let n=yield this.getHeader(),r=yield this.getMetadata(),o=Ra(n.tileType);return{tilejson:"3.0.0",scheme:"xyz",tiles:[`${t}/{z}/{x}/{y}${o}`],vector_layers:r.vector_layers,attribution:r.attribution,description:r.description,name:r.name,version:r.version,bounds:[n.minLon,n.minLat,n.maxLon,n.maxLat],center:[n.centerLon,n.centerLat,n.centerZoom],minzoom:n.minZoom,maxzoom:n.maxZoom}})}};Ee(La,"PMTiles");var di=La;const ju=X.createContext(null);function Mu(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 Ze(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(!Ze(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)||!Ze(e[o],t[o]))return!1;return!0}return!1}function fi(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function mi(e,t){const n=t.viewState||t,r={};if("longitude"in n&&"latitude"in n&&(n.longitude!==e.center.lng||n.latitude!==e.center.lat)){const o=e.center.constructor;r.center=new o(n.longitude,n.latitude)}return"zoom"in n&&n.zoom!==e.zoom&&(r.zoom=n.zoom),"bearing"in n&&n.bearing!==e.bearing&&(r.bearing=n.bearing),"pitch"in n&&n.pitch!==e.pitch&&(r.pitch=n.pitch),n.padding&&e.padding&&!Ze(n.padding,e.padding)&&(r.padding=n.padding),r}const Lu=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function pi(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 Lu)a in i&&(o[a]=i[a])}return o||r});return{...e,layers:n}}const hi={version:8,sources:{},layers:[]},gi={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"},yi={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"},vi={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"},Nu=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],Iu=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class un{constructor(t,n,r){this._map=null,this._internalUpdate=!1,this._hoveredFeatures=null,this._propsedCameraUpdate=null,this._styleComponents={},this._onEvent=o=>{const i=this.props[vi[o.type]];i?i(o):o.type==="error"&&console.error(o.error)},this._onCameraEvent=o=>{if(this._internalUpdate)return;o.viewState=this._propsedCameraUpdate||fi(this._map.transform);const i=this.props[yi[o.type]];i&&i(o)},this._onCameraUpdate=o=>this._internalUpdate?o:(this._propsedCameraUpdate=fi(o),mi(o,this.props)),this._onPointerEvent=o=>{(o.type==="mousemove"||o.type==="mouseout")&&this._updateHover(o);const i=this.props[gi[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._MapClass=t,this.props=n,this._initialize(r)}get map(){return this._map}setProps(t){const n=this.props;this.props=t;const r=this._updateSettings(t,n),o=this._updateSize(t),i=this._updateViewState(t);this._updateStyle(t,n),this._updateStyleComponents(t),this._updateHandlers(t,n),(r||o||i&&!this._map.isMoving())&&this.redraw()}static reuse(t,n){const r=un.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)),o.isStyleLoaded()?o.fire("load"):o.once("style.load",()=>o.fire("load")),o._update(),r}_initialize(t){const{props:n}=this,{mapStyle:r=hi}=n,o={...n,...n.initialViewState,container:t,style:pi(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 l=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=l,n.gl)}const a=new this._MapClass(o);i.padding&&a.setPadding(i.padding),n.cursor&&(a.getCanvas().style.cursor=n.cursor),a.transformCameraUpdate=this._onCameraUpdate,a.on("style.load",()=>{var l;this._styleComponents={light:a.getLight(),sky:a.getSky(),projection:(l=a.getProjection)==null?void 0:l.call(a),terrain:a.getTerrain()},this._updateStyleComponents(this.props)}),a.on("sourcedata",()=>{this._updateStyleComponents(this.props)});for(const l in gi)a.on(l,this._onPointerEvent);for(const l in yi)a.on(l,this._onCameraEvent);for(const l in vi)a.on(l,this._onEvent);this._map=a}recycle(){const n=this.map.getContainer().querySelector("[mapboxgl-children]");n==null||n.remove(),un.savedMaps.push(this)}destroy(){this._map.remove()}redraw(){const t=this._map;t.style&&(t._frame&&(t._frame.cancel(),t._frame=null),t._render())}_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){const n=this._map,r=n.transform;if(!n.isMoving()){const i=mi(r,t);if(Object.keys(i).length>0)return this._internalUpdate=!0,n.jumpTo(i),this._internalUpdate=!1,!0}return!1}_updateSettings(t,n){const r=this._map;let o=!1;for(const i of Nu)if(i in t&&!Ze(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=hi,styleDiffing:o=!0}=t,i={diff:o};"localIdeographFontFamily"in t&&(i.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(pi(r),i)}}_updateStyleComponents({light:t,projection:n,sky:r,terrain:o}){var l,c;const i=this._map,a=this._styleComponents;i.style._loaded&&(t&&!Ze(t,a.light)&&(a.light=t,i.setLight(t)),n&&!Ze(n,a.projection)&&n!==((l=a.projection)==null?void 0:l.type)&&(a.projection=typeof n=="string"?{type:n}:n,(c=i.setProjection)==null||c.call(i,a.projection)),r&&!Ze(r,a.sky)&&(a.sky=r,i.setSky(r)),o!==void 0&&!Ze(o,a.terrain)&&(!o||i.getSource(o.source))&&(a.terrain=o,i.setTerrain(o)))}_updateHandlers(t,n){const r=this._map;for(const o of Iu){const i=t[o]??!0,a=n[o]??!0;Ze(i,a)||(i?r[o].enable(i):r[o].disable())}}_queryRenderedFeatures(t){const n=this._map,{interactiveLayerIds:r=[]}=this.props;try{return n.queryRenderedFeatures(t,{layers:r.filter(n.getLayer.bind(n))})}catch{return[]}}_updateHover(t){var o;const{props:n}=this;if(n.interactiveLayerIds&&(n.onMouseMove||n.onMouseEnter||n.onMouseLeave)){const i=t.type,a=((o=this._hoveredFeatures)==null?void 0:o.length)>0,l=this._queryRenderedFeatures(t.point),c=l.length>0;!c&&a&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=l,c&&!a&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=i}else this._hoveredFeatures=null}}un.savedMaps=[];const Du=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function Fu(e){if(!e)return null;const t=e.map,n={getMap:()=>t};for(const r of Bu(t))!(r in n)&&!Du.includes(r)&&(n[r]=t[r].bind(t));return n}function Bu(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 zu=typeof document<"u"?v.useLayoutEffect:v.useEffect;function Vu(e,t){const{RTLTextPlugin:n,maxParallelImageRequests:r,workerCount:o,workerUrl:i}=t;if(n&&e.getRTLTextPluginStatus&&e.getRTLTextPluginStatus()==="unavailable"){const{pluginUrl:a,lazy:l=!0}=typeof n=="string"?{pluginUrl:n}:n;e.setRTLTextPlugin(a,c=>{c&&console.error(c)},l)}r!==void 0&&e.setMaxParallelImageRequests(r),o!==void 0&&e.setWorkerCount(o),i!==void 0&&e.setWorkerUrl(i)}const mn=X.createContext(null);function Uu(e,t){const n=v.useContext(ju),[r,o]=v.useState(null),i=v.useRef(),{current:a}=v.useRef({mapLib:null,map:null});v.useEffect(()=>{const u=e.mapLib;let m=!0,d;return Promise.resolve(u||import("maplibre-gl")).then(p=>{if(!m)return;if(!p)throw new Error("Invalid mapLib");const _="Map"in p?p:p.default;if(!_.Map)throw new Error("Invalid mapLib");Vu(_,e),e.reuseMaps&&(d=un.reuse(e,i.current)),d||(d=new un(_.Map,e,i.current)),a.map=Fu(d),a.mapLib=_,o(d),n==null||n.onMapMount(a.map,e.id)}).catch(p=>{const{onError:_}=e;_?_({type:"error",target:null,originalEvent:null,error:p}):console.error(p)}),()=>{m=!1,d&&(n==null||n.onMapUnmount(e.id),e.reuseMaps?d.recycle():d.destroy())}},[]),zu(()=>{r&&r.setProps(e)}),v.useImperativeHandle(t,()=>a.map,[r]);const l=v.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),c={height:"100%"};return X.createElement("div",{id:e.id,ref:i,style:l},r&&X.createElement(mn.Provider,{value:a},X.createElement("div",{"mapboxgl-children":"",style:c},e.children)))}const qu=X.forwardRef(Uu),Wu=/box|flex|grid|column|lineHeight|fontWeight|opacity|order|tabSize|zIndex/;function bt(e,t){if(!e||!t)return;const n=e.style;for(const r in t){const o=t[r];Number.isFinite(o)&&!Wu.test(r)?n[r]=`${o}px`:n[r]=o}}function Na(e,t){if(e===t)return null;const n=bi(e),r=bi(t),o=[];for(const i of r)n.has(i)||o.push(i);for(const i of n)r.has(i)||o.push(i);return o.length===0?null:o}function bi(e){return new Set(e?e.trim().split(/\s+/):[])}v.memo(v.forwardRef((e,t)=>{const{map:n,mapLib:r}=v.useContext(mn),o=v.useRef({props:e}),i=v.useMemo(()=>{let E=!1;X.Children.forEach(e.children,j=>{j&&(E=!0)});const T={...e,element:E?document.createElement("div"):void 0},k=new r.Marker(T);return k.setLngLat([e.longitude,e.latitude]),k.getElement().addEventListener("click",j=>{var C,z;(z=(C=o.current.props).onClick)==null||z.call(C,{type:"click",target:k,originalEvent:j})}),k.on("dragstart",j=>{var z,y;const C=j;C.lngLat=i.getLngLat(),(y=(z=o.current.props).onDragStart)==null||y.call(z,C)}),k.on("drag",j=>{var z,y;const C=j;C.lngLat=i.getLngLat(),(y=(z=o.current.props).onDrag)==null||y.call(z,C)}),k.on("dragend",j=>{var z,y;const C=j;C.lngLat=i.getLngLat(),(y=(z=o.current.props).onDragEnd)==null||y.call(z,C)}),k},[]);v.useEffect(()=>(i.addTo(n.getMap()),()=>{i.remove()}),[]);const{longitude:a,latitude:l,offset:c,style:u,draggable:m=!1,popup:d=null,rotation:p=0,rotationAlignment:_="auto",pitchAlignment:b="auto"}=e;v.useEffect(()=>{bt(i.getElement(),u)},[u]),v.useImperativeHandle(t,()=>i,[]);const f=o.current.props;(i.getLngLat().lng!==a||i.getLngLat().lat!==l)&&i.setLngLat([a,l]),c&&!Mu(i.getOffset(),c)&&i.setOffset(c),i.isDraggable()!==m&&i.setDraggable(m),i.getRotation()!==p&&i.setRotation(p),i.getRotationAlignment()!==_&&i.setRotationAlignment(_),i.getPitchAlignment()!==b&&i.setPitchAlignment(b),i.getPopup()!==d&&i.setPopup(d);const x=Na(f.className,e.className);if(x)for(const E of x)i.toggleClassName(E);return o.current.props=e,hr.createPortal(e.children,i.getElement())}));const Hu=v.memo(v.forwardRef((e,t)=>{const{map:n,mapLib:r}=v.useContext(mn),o=v.useMemo(()=>document.createElement("div"),[]),i=v.useRef({props:e}),a=v.useMemo(()=>{const l={...e},c=new r.Popup(l);return c.setLngLat([e.longitude,e.latitude]),c.once("open",u=>{var m,d;(d=(m=i.current.props).onOpen)==null||d.call(m,u)}),c},[]);if(v.useEffect(()=>{const l=c=>{var u,m;(m=(u=i.current.props).onClose)==null||m.call(u,c)};return a.on("close",l),a.setDOMContent(o).addTo(n.getMap()),()=>{a.off("close",l),a.isOpen()&&a.remove()}},[]),v.useEffect(()=>{bt(a.getElement(),e.style)},[e.style]),v.useImperativeHandle(t,()=>a,[]),a.isOpen()){const l=i.current.props;(a.getLngLat().lng!==e.longitude||a.getLngLat().lat!==e.latitude)&&a.setLngLat([e.longitude,e.latitude]),e.offset&&!Ze(l.offset,e.offset)&&a.setOffset(e.offset),(l.anchor!==e.anchor||l.maxWidth!==e.maxWidth)&&(a.options.anchor=e.anchor,a.setMaxWidth(e.maxWidth));const c=Na(l.className,e.className);if(c)for(const u of c)a.toggleClassName(u);i.current.props=e}return hr.createPortal(e.children,o)}));function Dt(e,t,n,r){const o=v.useContext(mn),i=v.useMemo(()=>e(o),[]);return v.useEffect(()=>{const a=t,l=typeof t=="function"?t:null,{map:c}=o;return c.hasControl(i)||c.addControl(i,a==null?void 0:a.position),()=>{l&&l(o),c.hasControl(i)&&c.removeControl(i)}},[]),i}function Yu(e){const t=Dt(({mapLib:n})=>new n.AttributionControl(e),{position:e.position});return v.useEffect(()=>{bt(t._container,e.style)},[e.style]),null}v.memo(Yu);function Ku(e){const t=Dt(({mapLib:n})=>new n.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return v.useEffect(()=>{bt(t._controlContainer,e.style)},[e.style]),null}v.memo(Ku);function Zu(e,t){const n=v.useRef({props:e}),r=Dt(({mapLib:o})=>{const i=new o.GeolocateControl(e),a=i._setupUI;return i._setupUI=()=>{i._container.hasChildNodes()||a()},i.on("geolocate",l=>{var c,u;(u=(c=n.current.props).onGeolocate)==null||u.call(c,l)}),i.on("error",l=>{var c,u;(u=(c=n.current.props).onError)==null||u.call(c,l)}),i.on("outofmaxbounds",l=>{var c,u;(u=(c=n.current.props).onOutOfMaxBounds)==null||u.call(c,l)}),i.on("trackuserlocationstart",l=>{var c,u;(u=(c=n.current.props).onTrackUserLocationStart)==null||u.call(c,l)}),i.on("trackuserlocationend",l=>{var c,u;(u=(c=n.current.props).onTrackUserLocationEnd)==null||u.call(c,l)}),i},{position:e.position});return n.current.props=e,v.useImperativeHandle(t,()=>r,[]),v.useEffect(()=>{bt(r._container,e.style)},[e.style]),null}v.memo(v.forwardRef(Zu));function Gu(e){const t=Dt(({mapLib:n})=>new n.NavigationControl(e),{position:e.position});return v.useEffect(()=>{bt(t._container,e.style)},[e.style]),null}const Ju=v.memo(Gu);function Xu(e){const t=Dt(({mapLib:i})=>new i.ScaleControl(e),{position:e.position}),n=v.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),v.useEffect(()=>{bt(t._container,o)},[o]),null}v.memo(Xu);function Qu(e){const t=Dt(({mapLib:n})=>new n.TerrainControl(e),{position:e.position});return v.useEffect(()=>{bt(t._container,e.style)},[e.style]),null}v.memo(Qu);function ed(e){const t=Dt(({mapLib:n})=>new n.LogoControl(e),{position:e.position});return v.useEffect(()=>{bt(t._container,e.style)},[e.style]),null}v.memo(ed);function dr(e,t){if(!e)throw new Error(t)}let td=0;function nd(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 rd(e,t,n){var a,l,c;dr(t.id===n.id,"source id changed"),dr(t.type===n.type,"source type changed");let r="",o=0;for(const u in t)u!=="children"&&u!=="id"&&!Ze(n[u],t[u])&&(r=u,o++);if(!o)return;const i=t.type;if(i==="geojson")e.setData(t.data);else if(i==="image")e.updateImage({url:t.url,coordinates:t.coordinates});else switch(r){case"coordinates":(a=e.setCoordinates)==null||a.call(e,t.coordinates);break;case"url":(l=e.setUrl)==null||l.call(e,t.url);break;case"tiles":(c=e.setTiles)==null||c.call(e,t.tiles);break;default:console.warn(`Unable to update <Source> prop: ${r}`)}}function od(e){const t=v.useContext(mn).map.getMap(),n=v.useRef(e),[,r]=v.useState(0),o=v.useMemo(()=>e.id||`jsx-source-${td++}`,[]);v.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 c=(l=t.getStyle())==null?void 0:l.layers;if(c)for(const u of c)u.source===o&&t.removeLayer(u.id);t.removeSource(o)}}}},[t]);let i=t&&t.style&&t.getSource(o);return i?rd(i,e,n.current):i=nd(t,o,e),n.current=e,i&&X.Children.map(e.children,a=>a&&v.cloneElement(a,{source:o}))||null}function id(e,t,n,r){if(dr(n.id===r.id,"layer id changed"),dr(n.type===r.type,"layer type changed"),n.type==="custom"||r.type==="custom")return;const{layout:o={},paint:i={},filter:a,minzoom:l,maxzoom:c,beforeId:u}=n;if(u!==r.beforeId&&e.moveLayer(t,u),o!==r.layout){const m=r.layout||{};for(const d in o)Ze(o[d],m[d])||e.setLayoutProperty(t,d,o[d]);for(const d in m)o.hasOwnProperty(d)||e.setLayoutProperty(t,d,void 0)}if(i!==r.paint){const m=r.paint||{};for(const d in i)Ze(i[d],m[d])||e.setPaintProperty(t,d,i[d]);for(const d in m)i.hasOwnProperty(d)||e.setPaintProperty(t,d,void 0)}Ze(a,r.filter)||e.setFilter(t,a),(l!==r.minzoom||c!==r.maxzoom)&&e.setLayerZoomRange(t,l,c)}function ad(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 sd=0;function ld(e){const t=v.useContext(mn).map.getMap(),n=v.useRef(e),[,r]=v.useState(0),o=v.useMemo(()=>e.id||`jsx-layer-${sd++}`,[]);if(v.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{id(t,o,e,n.current)}catch(a){console.warn(a)}else ad(t,o,e);return n.current=e,null}const cd="_mapContainer_ivruh_3",ud={mapContainer:cd},Ia=({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:c=!1,sources:u=[],layers:m=[]})=>{const d=v.useRef(),[p,_]=v.useState(null),b=on.useSelector(f=>f.mapState.showTexts);return v.useEffect(()=>{if(d.current){const f=d.current.getMap();f.getStyle().layers.map(E=>{E.type=="symbol"&&E.id!="professionals"&&(b?f.setLayoutProperty(E.id,"visibility","visible"):f.setLayoutProperty(E.id,"visibility","none"))})}},[b]),v.useEffect(()=>{let f=new Eu;return Lo.addProtocol("pmtiles",f.tile),()=>{Lo.removeProtocol("pmtiles")}},[]),g.jsx("div",{className:`${ud.mapContainer}`,style:i&&i,children:g.jsxs(qu,{initialViewState:e,ref:d,hash:!1,maxZoom:t,minZoom:n,mapStyle:r,onClick:a,interactiveLayerIds:l,children:[u.length&&u.map((f,x)=>g.jsx(od,{...f,children:m.length&&m.map((E,T)=>{if(E.sourceId==f.id)return g.jsx(ld,{...E.layer,beforeId:o},T)})},x)),g.jsx(Ju,{position:"bottom-right",visualizePitch:!0}),c&&p&&g.jsx(Hu,{longitude:c.longitude,latitude:c.latitude,anchor:c.anchor,onClose:()=>_(null),children:c.content})]})})};Ia.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.shape({latitude:s.number,longitude:s.number,anchor:s.string,content:s.element}),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 dd="_sectionBar_2vnc3_2",fd="_leftContent_2vnc3_13",md="_textContainer_2vnc3_19",pd="_title_2vnc3_26",hd="_subtitle_2vnc3_32",gd="_rightContent_2vnc3_37",Lt={sectionBar:dd,leftContent:fd,textContainer:md,title:pd,subtitle:hd,rightContent:gd},Da=({leftIcon:e,title:t,subtitle:n,rightContent:r,mainColor:o})=>{const{t:i}=je.useTranslation();return g.jsxs("div",{className:Lt.sectionBar,children:[g.jsxs("div",{className:Lt.leftContent,children:[e&&g.jsx("img",{src:e,alt:"Icono",className:Lt.icon}),g.jsxs("div",{className:Lt.textContainer,children:[g.jsx("div",{className:Lt.title,style:o?{color:o}:{},children:i(t)}),n&&g.jsx("div",{className:Lt.subtitle,children:n})]})]}),g.jsx("div",{className:Lt.rightContent,children:r})]})};Da.propTypes={leftIcon:s.node.isRequired,title:s.string.isRequired,subtitle:s.string,rightContent:s.node.isRequired,mainColor:s.string};const yd=Yi.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:y0,setYear:Zr,setActiveIndicatorKey:v0,setActiveIndicatorType:b0,setActiveIndicatorUnit:_0}=yd.actions,vd="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",bd="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 _t(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function B(){return B=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},B.apply(null,arguments)}function Fa(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=Fa(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function wt(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Fa(e))&&(r&&(r+=" "),r+=t);return r}function _i(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function _d(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const l=t(a);l!==""&&i.push(l),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}var Re={},Gr={exports:{}},Ci;function Ba(){return Ci||(Ci=1,function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Gr)),Gr.exports}function $n(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const Cd=Object.freeze(Object.defineProperty({__proto__:null,default:$n},Symbol.toStringTag,{value:"Module"})),xd=kt(Cd);function nn(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const Ed=Object.freeze(Object.defineProperty({__proto__:null,default:nn},Symbol.toStringTag,{value:"Module"})),Sd=kt(Ed);var xi;function Td(){if(xi)return Re;xi=1;var e=Ba();Object.defineProperty(Re,"__esModule",{value:!0}),Re.alpha=b,Re.blend=z,Re.colorChannel=void 0,Re.darken=x,Re.decomposeColor=a,Re.emphasize=j,Re.getContrastRatio=_,Re.getLuminance=p,Re.hexToRgb=o,Re.hslToRgb=d,Re.lighten=T,Re.private_safeAlpha=f,Re.private_safeColorChannel=void 0,Re.private_safeDarken=E,Re.private_safeEmphasize=C,Re.private_safeLighten=k,Re.recomposeColor=u,Re.rgbToHex=m;var t=e(xd),n=e(Sd);function r(y,w=0,S=1){return process.env.NODE_ENV!=="production"&&(y<w||y>S)&&console.error(`MUI: The value provided ${y} is out of range [${w}, ${S}].`),(0,n.default)(y,w,S)}function o(y){y=y.slice(1);const w=new RegExp(`.{1,${y.length>=6?2:1}}`,"g");let S=y.match(w);return S&&S[0].length===1&&(S=S.map(A=>A+A)),S?`rgb${S.length===4?"a":""}(${S.map((A,N)=>N<3?parseInt(A,16):Math.round(parseInt(A,16)/255*1e3)/1e3).join(", ")})`:""}function i(y){const w=y.toString(16);return w.length===1?`0${w}`:w}function a(y){if(y.type)return y;if(y.charAt(0)==="#")return a(o(y));const w=y.indexOf("("),S=y.substring(0,w);if(["rgb","rgba","hsl","hsla","color"].indexOf(S)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${y}\` color.
52
52
  The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,t.default)(9,y));let A=y.substring(w+1,y.length-1),N;if(S==="color"){if(A=A.split(" "),N=A.shift(),A.length===4&&A[3].charAt(0)==="/"&&(A[3]=A[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(N)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${N}\` color space.
53
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,t.default)(10,N))}else A=A.split(",");return A=A.map(H=>parseFloat(H)),{type:S,values:A,colorSpace:N}}const l=y=>{const w=a(y);return w.values.slice(0,3).map((S,A)=>w.type.indexOf("hsl")!==-1&&A!==0?`${S}%`:S).join(" ")};Oe.colorChannel=l;const c=(y,w)=>{try{return l(y)}catch{return w&&process.env.NODE_ENV!=="production"&&console.warn(w),y}};Oe.private_safeColorChannel=c;function u(y){const{type:w,colorSpace:S}=y;let{values:A}=y;return w.indexOf("rgb")!==-1?A=A.map((N,H)=>H<3?parseInt(N,10):N):w.indexOf("hsl")!==-1&&(A[1]=`${A[1]}%`,A[2]=`${A[2]}%`),w.indexOf("color")!==-1?A=`${S} ${A.join(" ")}`:A=`${A.join(", ")}`,`${w}(${A})`}function m(y){if(y.indexOf("#")===0)return y;const{values:w}=a(y);return`#${w.map((S,A)=>i(A===3?Math.round(255*S):S)).join("")}`}function d(y){y=a(y);const{values:w}=y,S=w[0],A=w[1]/100,N=w[2]/100,H=A*Math.min(N,1-N),V=(ie,re=(ie+S/30)%12)=>N-H*Math.max(Math.min(re-3,9-re,1),-1);let ce="rgb";const Y=[Math.round(V(0)*255),Math.round(V(8)*255),Math.round(V(4)*255)];return y.type==="hsla"&&(ce+="a",Y.push(w[3])),u({type:ce,values:Y})}function p(y){y=a(y);let w=y.type==="hsl"||y.type==="hsla"?a(d(y)).values:y.values;return w=w.map(S=>(y.type!=="color"&&(S/=255),S<=.03928?S/12.92:((S+.055)/1.055)**2.4)),Number((.2126*w[0]+.7152*w[1]+.0722*w[2]).toFixed(3))}function _(y,w){const S=p(y),A=p(w);return(Math.max(S,A)+.05)/(Math.min(S,A)+.05)}function b(y,w){return y=a(y),w=r(w),(y.type==="rgb"||y.type==="hsl")&&(y.type+="a"),y.type==="color"?y.values[3]=`/${w}`:y.values[3]=w,u(y)}function f(y,w,S){try{return b(y,w)}catch{return S&&process.env.NODE_ENV!=="production"&&console.warn(S),y}}function x(y,w){if(y=a(y),w=r(w),y.type.indexOf("hsl")!==-1)y.values[2]*=1-w;else if(y.type.indexOf("rgb")!==-1||y.type.indexOf("color")!==-1)for(let S=0;S<3;S+=1)y.values[S]*=1-w;return u(y)}function E(y,w,S){try{return x(y,w)}catch{return S&&process.env.NODE_ENV!=="production"&&console.warn(S),y}}function T(y,w){if(y=a(y),w=r(w),y.type.indexOf("hsl")!==-1)y.values[2]+=(100-y.values[2])*w;else if(y.type.indexOf("rgb")!==-1)for(let S=0;S<3;S+=1)y.values[S]+=(255-y.values[S])*w;else if(y.type.indexOf("color")!==-1)for(let S=0;S<3;S+=1)y.values[S]+=(1-y.values[S])*w;return u(y)}function k(y,w,S){try{return T(y,w)}catch{return S&&process.env.NODE_ENV!=="production"&&console.warn(S),y}}function j(y,w=.15){return p(y)>.5?x(y,w):T(y,w)}function C(y,w,S){try{return j(y,w)}catch{return S&&process.env.NODE_ENV!=="production"&&console.warn(S),y}}function z(y,w,S,A=1){const N=(Y,ie)=>Math.round((Y**(1/A)*(1-S)+ie**(1/A)*S)**A),H=a(y),V=a(w),ce=[N(H.values[0],V.values[0]),N(H.values[1],V.values[1]),N(H.values[2],V.values[2])];return u({type:"rgb",values:ce})}return Oe}var pt=Td();const wd=X.createContext();process.env.NODE_ENV!=="production"&&(s.node,s.bool);const kd=()=>{const e=X.useContext(wd);return e??!1};function Rd(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function lo(...e){return X.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Rd(n,t)})},e)}function An(e){return typeof e=="string"}function Od(e,t,n){return e===void 0||An(e)?t:B({},t,{ownerState:B({},t.ownerState,n)})}function ir(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 Si(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 Ad(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const _=kt(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),b=B({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=B({},n,o,r);return _.length>0&&(f.className=_),Object.keys(b).length>0&&(f.style=b),{props:f,internalRef:void 0}}const a=ir(B({},o,r)),l=Si(r),c=Si(o),u=t(a),m=kt(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d=B({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=B({},u,n,c,l);return m.length>0&&(p.className=m),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}function Pd(e,t,n){return typeof e=="function"?e(t,n):e}const $d=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function St(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=_t(e,$d),l=i?{}:Pd(r,o),{props:c,internalRef:u}=Ad(B({},a,{externalSlotProps:l})),m=lo(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return Od(n,B({},c,{ref:m}),o)}function Tt(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 za(e){if(X.isValidElement(e)||!Tt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=za(e[n])}),t}function ht(e,t,n={clone:!0}){const r=n.clone?B({},e):e;return Tt(e)&&Tt(t)&&Object.keys(t).forEach(o=>{X.isValidElement(t[o])?r[o]=t[o]:Tt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Tt(e[o])?r[o]=ht(e[o],t[o],n):n.clone?r[o]=Tt(t[o])?za(t[o]):t[o]:r[o]=t[o]}),r}const jd=Object.freeze(Object.defineProperty({__proto__:null,default:ht,isPlainObject:Tt},Symbol.toStringTag,{value:"Module"}));var Jn={exports:{}},Ce={};/**
53
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,t.default)(10,N))}else A=A.split(",");return A=A.map(H=>parseFloat(H)),{type:S,values:A,colorSpace:N}}const l=y=>{const w=a(y);return w.values.slice(0,3).map((S,A)=>w.type.indexOf("hsl")!==-1&&A!==0?`${S}%`:S).join(" ")};Re.colorChannel=l;const c=(y,w)=>{try{return l(y)}catch{return w&&process.env.NODE_ENV!=="production"&&console.warn(w),y}};Re.private_safeColorChannel=c;function u(y){const{type:w,colorSpace:S}=y;let{values:A}=y;return w.indexOf("rgb")!==-1?A=A.map((N,H)=>H<3?parseInt(N,10):N):w.indexOf("hsl")!==-1&&(A[1]=`${A[1]}%`,A[2]=`${A[2]}%`),w.indexOf("color")!==-1?A=`${S} ${A.join(" ")}`:A=`${A.join(", ")}`,`${w}(${A})`}function m(y){if(y.indexOf("#")===0)return y;const{values:w}=a(y);return`#${w.map((S,A)=>i(A===3?Math.round(255*S):S)).join("")}`}function d(y){y=a(y);const{values:w}=y,S=w[0],A=w[1]/100,N=w[2]/100,H=A*Math.min(N,1-N),V=(ie,re=(ie+S/30)%12)=>N-H*Math.max(Math.min(re-3,9-re,1),-1);let ce="rgb";const Y=[Math.round(V(0)*255),Math.round(V(8)*255),Math.round(V(4)*255)];return y.type==="hsla"&&(ce+="a",Y.push(w[3])),u({type:ce,values:Y})}function p(y){y=a(y);let w=y.type==="hsl"||y.type==="hsla"?a(d(y)).values:y.values;return w=w.map(S=>(y.type!=="color"&&(S/=255),S<=.03928?S/12.92:((S+.055)/1.055)**2.4)),Number((.2126*w[0]+.7152*w[1]+.0722*w[2]).toFixed(3))}function _(y,w){const S=p(y),A=p(w);return(Math.max(S,A)+.05)/(Math.min(S,A)+.05)}function b(y,w){return y=a(y),w=r(w),(y.type==="rgb"||y.type==="hsl")&&(y.type+="a"),y.type==="color"?y.values[3]=`/${w}`:y.values[3]=w,u(y)}function f(y,w,S){try{return b(y,w)}catch{return S&&process.env.NODE_ENV!=="production"&&console.warn(S),y}}function x(y,w){if(y=a(y),w=r(w),y.type.indexOf("hsl")!==-1)y.values[2]*=1-w;else if(y.type.indexOf("rgb")!==-1||y.type.indexOf("color")!==-1)for(let S=0;S<3;S+=1)y.values[S]*=1-w;return u(y)}function E(y,w,S){try{return x(y,w)}catch{return S&&process.env.NODE_ENV!=="production"&&console.warn(S),y}}function T(y,w){if(y=a(y),w=r(w),y.type.indexOf("hsl")!==-1)y.values[2]+=(100-y.values[2])*w;else if(y.type.indexOf("rgb")!==-1)for(let S=0;S<3;S+=1)y.values[S]+=(255-y.values[S])*w;else if(y.type.indexOf("color")!==-1)for(let S=0;S<3;S+=1)y.values[S]+=(1-y.values[S])*w;return u(y)}function k(y,w,S){try{return T(y,w)}catch{return S&&process.env.NODE_ENV!=="production"&&console.warn(S),y}}function j(y,w=.15){return p(y)>.5?x(y,w):T(y,w)}function C(y,w,S){try{return j(y,w)}catch{return S&&process.env.NODE_ENV!=="production"&&console.warn(S),y}}function z(y,w,S,A=1){const N=(Y,ie)=>Math.round((Y**(1/A)*(1-S)+ie**(1/A)*S)**A),H=a(y),V=a(w),ce=[N(H.values[0],V.values[0]),N(H.values[1],V.values[1]),N(H.values[2],V.values[2])];return u({type:"rgb",values:ce})}return Re}var pt=Td();const wd=X.createContext();process.env.NODE_ENV!=="production"&&(s.node,s.bool);const kd=()=>{const e=X.useContext(wd);return e??!1};function Od(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function lo(...e){return X.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Od(n,t)})},e)}function An(e){return typeof e=="string"}function Rd(e,t,n){return e===void 0||An(e)?t:B({},t,{ownerState:B({},t.ownerState,n)})}function ir(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 Ei(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 Ad(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const _=wt(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),b=B({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=B({},n,o,r);return _.length>0&&(f.className=_),Object.keys(b).length>0&&(f.style=b),{props:f,internalRef:void 0}}const a=ir(B({},o,r)),l=Ei(r),c=Ei(o),u=t(a),m=wt(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d=B({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=B({},u,n,c,l);return m.length>0&&(p.className=m),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}function Pd(e,t,n){return typeof e=="function"?e(t,n):e}const $d=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function St(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=_t(e,$d),l=i?{}:Pd(r,o),{props:c,internalRef:u}=Ad(B({},a,{externalSlotProps:l})),m=lo(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return Rd(n,B({},c,{ref:m}),o)}function Tt(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 za(e){if(X.isValidElement(e)||!Tt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=za(e[n])}),t}function ht(e,t,n={clone:!0}){const r=n.clone?B({},e):e;return Tt(e)&&Tt(t)&&Object.keys(t).forEach(o=>{X.isValidElement(t[o])?r[o]=t[o]:Tt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&Tt(e[o])?r[o]=ht(e[o],t[o],n):n.clone?r[o]=Tt(t[o])?za(t[o]):t[o]:r[o]=t[o]}),r}const jd=Object.freeze(Object.defineProperty({__proto__:null,default:ht,isPlainObject:Tt},Symbol.toStringTag,{value:"Module"}));var Jn={exports:{}},Ce={};/**
54
54
  * @license React
55
55
  * react-is.production.js
56
56
  *
@@ -58,7 +58,7 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
58
58
  *
59
59
  * This source code is licensed under the MIT license found in the
60
60
  * LICENSE file in the root directory of this source tree.
61
- */var Ti;function Md(){if(Ti)return Ce;Ti=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"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),_=Symbol.for("react.client.reference");function b(f){if(typeof f=="object"&&f!==null){var x=f.$$typeof;switch(x){case e:switch(f=f.type,f){case n:case o:case r:case c:case u:case p:return f;default:switch(f=f&&f.$$typeof,f){case a:case l:case d:case m:return f;case i:return f;default:return x}}case t:return x}}}return Ce.ContextConsumer=i,Ce.ContextProvider=a,Ce.Element=e,Ce.ForwardRef=l,Ce.Fragment=n,Ce.Lazy=d,Ce.Memo=m,Ce.Portal=t,Ce.Profiler=o,Ce.StrictMode=r,Ce.Suspense=c,Ce.SuspenseList=u,Ce.isContextConsumer=function(f){return b(f)===i},Ce.isContextProvider=function(f){return b(f)===a},Ce.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},Ce.isForwardRef=function(f){return b(f)===l},Ce.isFragment=function(f){return b(f)===n},Ce.isLazy=function(f){return b(f)===d},Ce.isMemo=function(f){return b(f)===m},Ce.isPortal=function(f){return b(f)===t},Ce.isProfiler=function(f){return b(f)===o},Ce.isStrictMode=function(f){return b(f)===r},Ce.isSuspense=function(f){return b(f)===c},Ce.isSuspenseList=function(f){return b(f)===u},Ce.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===o||f===r||f===c||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===d||f.$$typeof===m||f.$$typeof===a||f.$$typeof===i||f.$$typeof===l||f.$$typeof===_||f.getModuleId!==void 0)},Ce.typeOf=b,Ce}var xe={};/**
61
+ */var Si;function Md(){if(Si)return Ce;Si=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"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.for("react.view_transition"),_=Symbol.for("react.client.reference");function b(f){if(typeof f=="object"&&f!==null){var x=f.$$typeof;switch(x){case e:switch(f=f.type,f){case n:case o:case r:case c:case u:case p:return f;default:switch(f=f&&f.$$typeof,f){case a:case l:case d:case m:return f;case i:return f;default:return x}}case t:return x}}}return Ce.ContextConsumer=i,Ce.ContextProvider=a,Ce.Element=e,Ce.ForwardRef=l,Ce.Fragment=n,Ce.Lazy=d,Ce.Memo=m,Ce.Portal=t,Ce.Profiler=o,Ce.StrictMode=r,Ce.Suspense=c,Ce.SuspenseList=u,Ce.isContextConsumer=function(f){return b(f)===i},Ce.isContextProvider=function(f){return b(f)===a},Ce.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===e},Ce.isForwardRef=function(f){return b(f)===l},Ce.isFragment=function(f){return b(f)===n},Ce.isLazy=function(f){return b(f)===d},Ce.isMemo=function(f){return b(f)===m},Ce.isPortal=function(f){return b(f)===t},Ce.isProfiler=function(f){return b(f)===o},Ce.isStrictMode=function(f){return b(f)===r},Ce.isSuspense=function(f){return b(f)===c},Ce.isSuspenseList=function(f){return b(f)===u},Ce.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===n||f===o||f===r||f===c||f===u||typeof f=="object"&&f!==null&&(f.$$typeof===d||f.$$typeof===m||f.$$typeof===a||f.$$typeof===i||f.$$typeof===l||f.$$typeof===_||f.getModuleId!==void 0)},Ce.typeOf=b,Ce}var xe={};/**
62
62
  * @license React
63
63
  * react-is.development.js
64
64
  *
@@ -66,19 +66,19 @@ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rg
66
66
  *
67
67
  * This source code is licensed under the MIT license found in the
68
68
  * LICENSE file in the root directory of this source tree.
69
- */var wi;function Ld(){return wi||(wi=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 u:case m:case _:return f;default:switch(f=f&&f.$$typeof,f){case l:case c:case p:case d: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"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),_=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");xe.ContextConsumer=a,xe.ContextProvider=l,xe.Element=t,xe.ForwardRef=c,xe.Fragment=r,xe.Lazy=p,xe.Memo=d,xe.Portal=n,xe.Profiler=i,xe.StrictMode=o,xe.Suspense=u,xe.SuspenseList=m,xe.isContextConsumer=function(f){return e(f)===a},xe.isContextProvider=function(f){return e(f)===l},xe.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},xe.isForwardRef=function(f){return e(f)===c},xe.isFragment=function(f){return e(f)===r},xe.isLazy=function(f){return e(f)===p},xe.isMemo=function(f){return e(f)===d},xe.isPortal=function(f){return e(f)===n},xe.isProfiler=function(f){return e(f)===i},xe.isStrictMode=function(f){return e(f)===o},xe.isSuspense=function(f){return e(f)===u},xe.isSuspenseList=function(f){return e(f)===m},xe.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===i||f===o||f===u||f===m||typeof f=="object"&&f!==null&&(f.$$typeof===p||f.$$typeof===d||f.$$typeof===l||f.$$typeof===a||f.$$typeof===c||f.$$typeof===b||f.getModuleId!==void 0)},xe.typeOf=e}()),xe}var ki;function Nd(){return ki||(ki=1,process.env.NODE_ENV==="production"?Jn.exports=Md():Jn.exports=Ld()),Jn.exports}var Ri=Nd();const Id=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Va(e){const t=`${e}`.match(Id);return t&&t[1]||""}function Ua(e,t=""){return e.displayName||e.name||Va(e)||t}function Oi(e,t,n){const r=Ua(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function Dd(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Ua(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ri.ForwardRef:return Oi(e,e.render,"ForwardRef");case Ri.Memo:return Oi(e,e.type,"memo");default:return}}}const Fd=Object.freeze(Object.defineProperty({__proto__:null,default:Dd,getFunctionName:Va},Symbol.toStringTag,{value:"Module"}));function ut(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":$n(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Bd=Object.freeze(Object.defineProperty({__proto__:null,default:ut},Symbol.toStringTag,{value:"Module"}));function ar(e){return e&&e.ownerDocument||document}const qa=typeof window<"u"?X.useLayoutEffect:X.useEffect;function zd({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=X.useRef(e!==void 0),[i,a]=X.useState(t),l=o?e:i;if(process.env.NODE_ENV!=="production"){X.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${r} state of ${n} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} 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(`
69
+ */var Ti;function Ld(){return Ti||(Ti=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 u:case m:case _:return f;default:switch(f=f&&f.$$typeof,f){case l:case c:case p:case d: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"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),_=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");xe.ContextConsumer=a,xe.ContextProvider=l,xe.Element=t,xe.ForwardRef=c,xe.Fragment=r,xe.Lazy=p,xe.Memo=d,xe.Portal=n,xe.Profiler=i,xe.StrictMode=o,xe.Suspense=u,xe.SuspenseList=m,xe.isContextConsumer=function(f){return e(f)===a},xe.isContextProvider=function(f){return e(f)===l},xe.isElement=function(f){return typeof f=="object"&&f!==null&&f.$$typeof===t},xe.isForwardRef=function(f){return e(f)===c},xe.isFragment=function(f){return e(f)===r},xe.isLazy=function(f){return e(f)===p},xe.isMemo=function(f){return e(f)===d},xe.isPortal=function(f){return e(f)===n},xe.isProfiler=function(f){return e(f)===i},xe.isStrictMode=function(f){return e(f)===o},xe.isSuspense=function(f){return e(f)===u},xe.isSuspenseList=function(f){return e(f)===m},xe.isValidElementType=function(f){return typeof f=="string"||typeof f=="function"||f===r||f===i||f===o||f===u||f===m||typeof f=="object"&&f!==null&&(f.$$typeof===p||f.$$typeof===d||f.$$typeof===l||f.$$typeof===a||f.$$typeof===c||f.$$typeof===b||f.getModuleId!==void 0)},xe.typeOf=e}()),xe}var wi;function Nd(){return wi||(wi=1,process.env.NODE_ENV==="production"?Jn.exports=Md():Jn.exports=Ld()),Jn.exports}var ki=Nd();const Id=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Va(e){const t=`${e}`.match(Id);return t&&t[1]||""}function Ua(e,t=""){return e.displayName||e.name||Va(e)||t}function Oi(e,t,n){const r=Ua(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function Dd(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Ua(e,"Component");if(typeof e=="object")switch(e.$$typeof){case ki.ForwardRef:return Oi(e,e.render,"ForwardRef");case ki.Memo:return Oi(e,e.type,"memo");default:return}}}const Fd=Object.freeze(Object.defineProperty({__proto__:null,default:Dd,getFunctionName:Va},Symbol.toStringTag,{value:"Module"}));function ut(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":$n(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Bd=Object.freeze(Object.defineProperty({__proto__:null,default:ut},Symbol.toStringTag,{value:"Module"}));function ar(e){return e&&e.ownerDocument||document}const qa=typeof window<"u"?X.useLayoutEffect:X.useEffect;function zd({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=X.useRef(e!==void 0),[i,a]=X.useState(t),l=o?e:i;if(process.env.NODE_ENV!=="production"){X.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${r} state of ${n} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} 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(`
70
70
  `))},[r,n,e]);const{current:u}=X.useRef(t);X.useEffect(()=>{!o&&!Object.is(u,t)&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
71
- `))},[JSON.stringify(t)])}const c=X.useCallback(u=>{o||a(u)},[]);return[l,c]}function Jr(e){const t=X.useRef(e);return qa(()=>{t.current=e}),X.useRef((...n)=>(0,t.current)(...n)).current}class wo{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new wo}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}let yr=!0,co=!1;const Vd=new wo,Ud={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function qd(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Ud[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Wd(e){e.metaKey||e.altKey||e.ctrlKey||(yr=!0)}function Xr(){yr=!1}function Hd(){this.visibilityState==="hidden"&&co&&(yr=!0)}function Yd(e){e.addEventListener("keydown",Wd,!0),e.addEventListener("mousedown",Xr,!0),e.addEventListener("pointerdown",Xr,!0),e.addEventListener("touchstart",Xr,!0),e.addEventListener("visibilitychange",Hd,!0)}function Kd(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return yr||qd(t)}function Zd(){const e=X.useCallback(o=>{o!=null&&Yd(o.ownerDocument)},[]),t=X.useRef(!1);function n(){return t.current?(co=!0,Vd.start(100,()=>{co=!1}),t.current=!1,!0):!1}function r(o){return Kd(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}const Gd={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function uo(e,t){const n=B({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=B({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=B({},i),Object.keys(o).forEach(a=>{n[r][a]=uo(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}const Ai=e=>e,Jd=()=>{let e=Ai;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ai}}},Xd=Jd(),Qd={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 ko(e,t,n="Mui"){const r=Qd[t];return r?`${n}-${r}`:`${Xd.generate(e)}-${t}`}function ef(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=ko(e,o,n)}),r}function tf(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const nf=2;function Wa(e,t){return e-t}function Pi(e,t){var n;const{index:r}=(n=e.reduce((o,i,a)=>{const l=Math.abs(t-i);return o===null||l<o.distance||l===o.distance?{distance:l,index:a}:o},null))!=null?n:{};return r}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 fr(e,t,n){return(e-t)*100/(n-t)}function rf(e,t,n){return(n-t)*e+t}function of(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 af(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(of(t)))}function $i({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(Wa)}function Qn({sliderRef:e,activeIndex:t,setActive:n}){var r,o;const i=ar(e.current);if(!((r=e.current)!=null&&r.contains(i.activeElement))||Number(i==null||(o=i.activeElement)==null?void 0:o.getAttribute("data-index"))!==t){var a;(a=e.current)==null||a.querySelector(`[type="range"][data-index="${t}"]`).focus()}n&&n(t)}function er(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?tf(e,t):!1}const sf={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}%`})}},lf=e=>e;let tr;function ji(){return tr===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?tr=CSS.supports("touch-action","none"):tr=!0),tr}function cf(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:a=!1,max:l=100,min:c=0,name:u,onChange:m,onChangeCommitted:d,orientation:p="horizontal",rootRef:_,scale:b=lf,step:f=1,shiftStep:x=10,tabIndex:E,value:T}=e,k=X.useRef(void 0),[j,C]=X.useState(-1),[z,y]=X.useState(-1),[w,S]=X.useState(!1),A=X.useRef(0),[N,H]=zd({controlled:T,default:n??c,name:"Slider"}),V=m&&(($,D,W)=>{const fe=$.nativeEvent||$,me=new fe.constructor(fe.type,fe);Object.defineProperty(me,"target",{writable:!0,value:{value:D,name:u}}),m(me,D,W)}),ce=Array.isArray(N);let Y=ce?N.slice().sort(Wa):[N];Y=Y.map($=>$==null?c:rn($,c,l));const ie=a===!0&&f!==null?[...Array(Math.floor((l-c)/f)+1)].map(($,D)=>({value:c+f*D})):a||[],re=ie.map($=>$.value),{isFocusVisibleRef:we,onBlur:Ae,onFocus:O,ref:M}=Zd(),[Q,q]=X.useState(-1),F=X.useRef(null),ee=lo(M,F),Z=lo(_,ee),K=$=>D=>{var W;const fe=Number(D.currentTarget.getAttribute("data-index"));O(D),we.current===!0&&q(fe),y(fe),$==null||(W=$.onFocus)==null||W.call($,D)},U=$=>D=>{var W;Ae(D),we.current===!1&&q(-1),y(-1),$==null||(W=$.onBlur)==null||W.call($,D)},G=($,D)=>{const W=Number($.currentTarget.getAttribute("data-index")),fe=Y[W],me=re.indexOf(fe);let de=D;if(ie&&f==null){const Je=re[re.length-1];de>Je?de=Je:de<re[0]?de=re[0]:de=de<fe?re[me-1]:re[me+1]}if(de=rn(de,c,l),ce){o&&(de=rn(de,Y[W-1]||-1/0,Y[W+1]||1/0));const Je=de;de=$i({values:Y,newValue:de,index:W});let rt=W;o||(rt=de.indexOf(Je)),Qn({sliderRef:F,activeIndex:rt})}H(de),q(W),V&&!er(de,N)&&V($,de,W),d&&d($,de)},ne=$=>D=>{var W;if(f!==null){const fe=Number(D.currentTarget.getAttribute("data-index")),me=Y[fe];let de=null;(D.key==="ArrowLeft"||D.key==="ArrowDown")&&D.shiftKey||D.key==="PageDown"?de=Math.max(me-x,c):((D.key==="ArrowRight"||D.key==="ArrowUp")&&D.shiftKey||D.key==="PageUp")&&(de=Math.min(me+x,l)),de!==null&&(G(D,de),D.preventDefault())}$==null||(W=$.onKeyDown)==null||W.call($,D)};qa(()=>{if(r&&F.current.contains(document.activeElement)){var $;($=document.activeElement)==null||$.blur()}},[r]),r&&j!==-1&&C(-1),r&&Q!==-1&&q(-1);const be=$=>D=>{var W;(W=$.onChange)==null||W.call($,D),G(D,D.target.valueAsNumber)},P=X.useRef(void 0);let _e=p;i&&p==="horizontal"&&(_e+="-reverse");const ae=({finger:$,move:D=!1})=>{const{current:W}=F,{width:fe,height:me,bottom:de,left:Je}=W.getBoundingClientRect();let rt;_e.indexOf("vertical")===0?rt=(de-$.y)/me:rt=($.x-Je)/fe,_e.indexOf("-reverse")!==-1&&(rt=1-rt);let pe;if(pe=rf(rt,c,l),f)pe=af(pe,f,c);else{const ft=Pi(re,pe);pe=re[ft]}pe=rn(pe,c,l);let Ye=0;if(ce){D?Ye=P.current:Ye=Pi(Y,pe),o&&(pe=rn(pe,Y[Ye-1]||-1/0,Y[Ye+1]||1/0));const ft=pe;pe=$i({values:Y,newValue:pe,index:Ye}),o&&D||(Ye=pe.indexOf(ft),P.current=Ye)}return{newValue:pe,activeIndex:Ye}},se=Jr($=>{const D=Xn($,k);if(!D)return;if(A.current+=1,$.type==="mousemove"&&$.buttons===0){Re($);return}const{newValue:W,activeIndex:fe}=ae({finger:D,move:!0});Qn({sliderRef:F,activeIndex:fe,setActive:C}),H(W),!w&&A.current>nf&&S(!0),V&&!er(W,N)&&V($,W,fe)}),Re=Jr($=>{const D=Xn($,k);if(S(!1),!D)return;const{newValue:W}=ae({finger:D,move:!0});C(-1),$.type==="touchend"&&y(-1),d&&d($,W),k.current=void 0,qe()}),Ue=Jr($=>{if(r)return;ji()||$.preventDefault();const D=$.changedTouches[0];D!=null&&(k.current=D.identifier);const W=Xn($,k);if(W!==!1){const{newValue:me,activeIndex:de}=ae({finger:W});Qn({sliderRef:F,activeIndex:de,setActive:C}),H(me),V&&!er(me,N)&&V($,me,de)}A.current=0;const fe=ar(F.current);fe.addEventListener("touchmove",se,{passive:!0}),fe.addEventListener("touchend",Re,{passive:!0})}),qe=X.useCallback(()=>{const $=ar(F.current);$.removeEventListener("mousemove",se),$.removeEventListener("mouseup",Re),$.removeEventListener("touchmove",se),$.removeEventListener("touchend",Re)},[Re,se]);X.useEffect(()=>{const{current:$}=F;return $.addEventListener("touchstart",Ue,{passive:ji()}),()=>{$.removeEventListener("touchstart",Ue),qe()}},[qe,Ue]),X.useEffect(()=>{r&&qe()},[r,qe]);const dt=$=>D=>{var W;if((W=$.onMouseDown)==null||W.call($,D),r||D.defaultPrevented||D.button!==0)return;D.preventDefault();const fe=Xn(D,k);if(fe!==!1){const{newValue:de,activeIndex:Je}=ae({finger:fe});Qn({sliderRef:F,activeIndex:Je,setActive:C}),H(de),V&&!er(de,N)&&V(D,de,Je)}A.current=0;const me=ar(F.current);me.addEventListener("mousemove",se,{passive:!0}),me.addEventListener("mouseup",Re)},De=fr(ce?Y[0]:c,c,l),Ct=fr(Y[Y.length-1],c,l)-De,Pt=($={})=>{const D=ir($),W={onMouseDown:dt(D||{})},fe=B({},D,W);return B({},$,{ref:Z},fe)},hn=$=>D=>{var W;(W=$.onMouseOver)==null||W.call($,D);const fe=Number(D.currentTarget.getAttribute("data-index"));y(fe)},gn=$=>D=>{var W;(W=$.onMouseLeave)==null||W.call($,D),y(-1)};return{active:j,axis:_e,axisProps:sf,dragging:w,focusedThumbIndex:Q,getHiddenInputProps:($={})=>{var D;const W=ir($),fe={onChange:be(W||{}),onFocus:K(W||{}),onBlur:U(W||{}),onKeyDown:ne(W||{})},me=B({},W,fe);return B({tabIndex:E,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":b(l),"aria-valuemin":b(c),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(D=e.step)!=null?D:void 0,disabled:r},$,me,{style:B({},Gd,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Pt,getThumbProps:($={})=>{const D=ir($),W={onMouseOver:hn(D||{}),onMouseLeave:gn(D||{})};return B({},$,D,W)},marks:ie,open:z,range:ce,rootRef:Z,trackLeap:Ct,trackOffset:De,values:Y,getThumbStyle:$=>({pointerEvents:j!==-1&&j!==$?"none":void 0})}}const uf=["values","unit","step"],df=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)=>B({},n,{[r.key]:r.val}),{})};function Ha(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=_t(e,uf),i=df(t),a=Object.keys(i);function l(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function c(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function u(p,_){const b=a.indexOf(_);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(b!==-1&&typeof t[a[b]]=="number"?t[a[b]]:_)-r/100}${n})`}function m(p){return a.indexOf(p)+1<a.length?u(p,a[a.indexOf(p)+1]):l(p)}function d(p){const _=a.indexOf(p);return _===0?l(a[1]):_===a.length-1?c(a[_]):u(p,a[a.indexOf(p)+1]).replace("@media","@media not all and")}return B({keys:a,values:i,up:l,down:c,between:u,only:m,not:d,unit:n},o)}const ff={borderRadius:4},At=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function Pn(e,t){return t?ht(e,t,{clone:!1}):e}const Ro={xs:0,sm:600,md:900,lg:1200,xl:1536},Mi={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Ro[e]}px)`};function vt(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Mi;return t.reduce((a,l,c)=>(a[i.up(i.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const i=r.breakpoints||Mi;return Object.keys(t).reduce((a,l)=>{if(Object.keys(i.values||Ro).indexOf(l)!==-1){const c=i.up(l);a[c]=n(t[l],l)}else{const c=l;a[c]=t[c]}return a},{})}return n(t)}function mf(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function pf(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function vr(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 mr(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=vr(e,n)||r,t&&(o=t(o,r,e)),o}function Le(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],c=a.theme,u=vr(c,r)||{};return vt(a,l,d=>{let p=mr(u,o,d);return d===p&&typeof d=="string"&&(p=mr(u,o,`${t}${d==="default"?"":ut(d)}`,d)),n===!1?p:{[n]:p}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:At}:{},i.filterProps=[t],i}function hf(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const gf={m:"margin",p:"padding"},yf={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Li={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},vf=hf(e=>{if(e.length>2)if(Li[e])e=Li[e];else return[e];const[t,n]=e.split(""),r=gf[t],o=yf[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),br=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],_r=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],bf=[...br,..._r];function Dn(e,t,n,r){var o;const i=(o=vr(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${a}.`),i*a):Array.isArray(i)?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>i.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${a} > ${i.length-1}, you need to add the missing values.`].join(`
71
+ `))},[JSON.stringify(t)])}const c=X.useCallback(u=>{o||a(u)},[]);return[l,c]}function Jr(e){const t=X.useRef(e);return qa(()=>{t.current=e}),X.useRef((...n)=>(0,t.current)(...n)).current}class To{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new To}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}let yr=!0,co=!1;const Vd=new To,Ud={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function qd(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Ud[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Wd(e){e.metaKey||e.altKey||e.ctrlKey||(yr=!0)}function Xr(){yr=!1}function Hd(){this.visibilityState==="hidden"&&co&&(yr=!0)}function Yd(e){e.addEventListener("keydown",Wd,!0),e.addEventListener("mousedown",Xr,!0),e.addEventListener("pointerdown",Xr,!0),e.addEventListener("touchstart",Xr,!0),e.addEventListener("visibilitychange",Hd,!0)}function Kd(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return yr||qd(t)}function Zd(){const e=X.useCallback(o=>{o!=null&&Yd(o.ownerDocument)},[]),t=X.useRef(!1);function n(){return t.current?(co=!0,Vd.start(100,()=>{co=!1}),t.current=!1,!0):!1}function r(o){return Kd(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}const Gd={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function uo(e,t){const n=B({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=B({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=B({},i),Object.keys(o).forEach(a=>{n[r][a]=uo(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}const Ri=e=>e,Jd=()=>{let e=Ri;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ri}}},Xd=Jd(),Qd={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 wo(e,t,n="Mui"){const r=Qd[t];return r?`${n}-${r}`:`${Xd.generate(e)}-${t}`}function ef(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=wo(e,o,n)}),r}function tf(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const nf=2;function Wa(e,t){return e-t}function Ai(e,t){var n;const{index:r}=(n=e.reduce((o,i,a)=>{const l=Math.abs(t-i);return o===null||l<o.distance||l===o.distance?{distance:l,index:a}:o},null))!=null?n:{};return r}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 fr(e,t,n){return(e-t)*100/(n-t)}function rf(e,t,n){return(n-t)*e+t}function of(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 af(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(of(t)))}function Pi({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(Wa)}function Qn({sliderRef:e,activeIndex:t,setActive:n}){var r,o;const i=ar(e.current);if(!((r=e.current)!=null&&r.contains(i.activeElement))||Number(i==null||(o=i.activeElement)==null?void 0:o.getAttribute("data-index"))!==t){var a;(a=e.current)==null||a.querySelector(`[type="range"][data-index="${t}"]`).focus()}n&&n(t)}function er(e,t){return typeof e=="number"&&typeof t=="number"?e===t:typeof e=="object"&&typeof t=="object"?tf(e,t):!1}const sf={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}%`})}},lf=e=>e;let tr;function $i(){return tr===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?tr=CSS.supports("touch-action","none"):tr=!0),tr}function cf(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:a=!1,max:l=100,min:c=0,name:u,onChange:m,onChangeCommitted:d,orientation:p="horizontal",rootRef:_,scale:b=lf,step:f=1,shiftStep:x=10,tabIndex:E,value:T}=e,k=X.useRef(void 0),[j,C]=X.useState(-1),[z,y]=X.useState(-1),[w,S]=X.useState(!1),A=X.useRef(0),[N,H]=zd({controlled:T,default:n??c,name:"Slider"}),V=m&&(($,D,W)=>{const fe=$.nativeEvent||$,me=new fe.constructor(fe.type,fe);Object.defineProperty(me,"target",{writable:!0,value:{value:D,name:u}}),m(me,D,W)}),ce=Array.isArray(N);let Y=ce?N.slice().sort(Wa):[N];Y=Y.map($=>$==null?c:nn($,c,l));const ie=a===!0&&f!==null?[...Array(Math.floor((l-c)/f)+1)].map(($,D)=>({value:c+f*D})):a||[],re=ie.map($=>$.value),{isFocusVisibleRef:we,onBlur:Ae,onFocus:R,ref:M}=Zd(),[Q,q]=X.useState(-1),F=X.useRef(null),ee=lo(M,F),Z=lo(_,ee),K=$=>D=>{var W;const fe=Number(D.currentTarget.getAttribute("data-index"));R(D),we.current===!0&&q(fe),y(fe),$==null||(W=$.onFocus)==null||W.call($,D)},U=$=>D=>{var W;Ae(D),we.current===!1&&q(-1),y(-1),$==null||(W=$.onBlur)==null||W.call($,D)},G=($,D)=>{const W=Number($.currentTarget.getAttribute("data-index")),fe=Y[W],me=re.indexOf(fe);let de=D;if(ie&&f==null){const Je=re[re.length-1];de>Je?de=Je:de<re[0]?de=re[0]:de=de<fe?re[me-1]:re[me+1]}if(de=nn(de,c,l),ce){o&&(de=nn(de,Y[W-1]||-1/0,Y[W+1]||1/0));const Je=de;de=Pi({values:Y,newValue:de,index:W});let rt=W;o||(rt=de.indexOf(Je)),Qn({sliderRef:F,activeIndex:rt})}H(de),q(W),V&&!er(de,N)&&V($,de,W),d&&d($,de)},ne=$=>D=>{var W;if(f!==null){const fe=Number(D.currentTarget.getAttribute("data-index")),me=Y[fe];let de=null;(D.key==="ArrowLeft"||D.key==="ArrowDown")&&D.shiftKey||D.key==="PageDown"?de=Math.max(me-x,c):((D.key==="ArrowRight"||D.key==="ArrowUp")&&D.shiftKey||D.key==="PageUp")&&(de=Math.min(me+x,l)),de!==null&&(G(D,de),D.preventDefault())}$==null||(W=$.onKeyDown)==null||W.call($,D)};qa(()=>{if(r&&F.current.contains(document.activeElement)){var $;($=document.activeElement)==null||$.blur()}},[r]),r&&j!==-1&&C(-1),r&&Q!==-1&&q(-1);const be=$=>D=>{var W;(W=$.onChange)==null||W.call($,D),G(D,D.target.valueAsNumber)},P=X.useRef(void 0);let _e=p;i&&p==="horizontal"&&(_e+="-reverse");const ae=({finger:$,move:D=!1})=>{const{current:W}=F,{width:fe,height:me,bottom:de,left:Je}=W.getBoundingClientRect();let rt;_e.indexOf("vertical")===0?rt=(de-$.y)/me:rt=($.x-Je)/fe,_e.indexOf("-reverse")!==-1&&(rt=1-rt);let pe;if(pe=rf(rt,c,l),f)pe=af(pe,f,c);else{const ft=Ai(re,pe);pe=re[ft]}pe=nn(pe,c,l);let Ye=0;if(ce){D?Ye=P.current:Ye=Ai(Y,pe),o&&(pe=nn(pe,Y[Ye-1]||-1/0,Y[Ye+1]||1/0));const ft=pe;pe=Pi({values:Y,newValue:pe,index:Ye}),o&&D||(Ye=pe.indexOf(ft),P.current=Ye)}return{newValue:pe,activeIndex:Ye}},se=Jr($=>{const D=Xn($,k);if(!D)return;if(A.current+=1,$.type==="mousemove"&&$.buttons===0){Oe($);return}const{newValue:W,activeIndex:fe}=ae({finger:D,move:!0});Qn({sliderRef:F,activeIndex:fe,setActive:C}),H(W),!w&&A.current>nf&&S(!0),V&&!er(W,N)&&V($,W,fe)}),Oe=Jr($=>{const D=Xn($,k);if(S(!1),!D)return;const{newValue:W}=ae({finger:D,move:!0});C(-1),$.type==="touchend"&&y(-1),d&&d($,W),k.current=void 0,qe()}),Ue=Jr($=>{if(r)return;$i()||$.preventDefault();const D=$.changedTouches[0];D!=null&&(k.current=D.identifier);const W=Xn($,k);if(W!==!1){const{newValue:me,activeIndex:de}=ae({finger:W});Qn({sliderRef:F,activeIndex:de,setActive:C}),H(me),V&&!er(me,N)&&V($,me,de)}A.current=0;const fe=ar(F.current);fe.addEventListener("touchmove",se,{passive:!0}),fe.addEventListener("touchend",Oe,{passive:!0})}),qe=X.useCallback(()=>{const $=ar(F.current);$.removeEventListener("mousemove",se),$.removeEventListener("mouseup",Oe),$.removeEventListener("touchmove",se),$.removeEventListener("touchend",Oe)},[Oe,se]);X.useEffect(()=>{const{current:$}=F;return $.addEventListener("touchstart",Ue,{passive:$i()}),()=>{$.removeEventListener("touchstart",Ue),qe()}},[qe,Ue]),X.useEffect(()=>{r&&qe()},[r,qe]);const dt=$=>D=>{var W;if((W=$.onMouseDown)==null||W.call($,D),r||D.defaultPrevented||D.button!==0)return;D.preventDefault();const fe=Xn(D,k);if(fe!==!1){const{newValue:de,activeIndex:Je}=ae({finger:fe});Qn({sliderRef:F,activeIndex:Je,setActive:C}),H(de),V&&!er(de,N)&&V(D,de,Je)}A.current=0;const me=ar(F.current);me.addEventListener("mousemove",se,{passive:!0}),me.addEventListener("mouseup",Oe)},De=fr(ce?Y[0]:c,c,l),Ct=fr(Y[Y.length-1],c,l)-De,At=($={})=>{const D=ir($),W={onMouseDown:dt(D||{})},fe=B({},D,W);return B({},$,{ref:Z},fe)},hn=$=>D=>{var W;(W=$.onMouseOver)==null||W.call($,D);const fe=Number(D.currentTarget.getAttribute("data-index"));y(fe)},gn=$=>D=>{var W;(W=$.onMouseLeave)==null||W.call($,D),y(-1)};return{active:j,axis:_e,axisProps:sf,dragging:w,focusedThumbIndex:Q,getHiddenInputProps:($={})=>{var D;const W=ir($),fe={onChange:be(W||{}),onFocus:K(W||{}),onBlur:U(W||{}),onKeyDown:ne(W||{})},me=B({},W,fe);return B({tabIndex:E,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":b(l),"aria-valuemin":b(c),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(D=e.step)!=null?D:void 0,disabled:r},$,me,{style:B({},Gd,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:At,getThumbProps:($={})=>{const D=ir($),W={onMouseOver:hn(D||{}),onMouseLeave:gn(D||{})};return B({},$,D,W)},marks:ie,open:z,range:ce,rootRef:Z,trackLeap:Ct,trackOffset:De,values:Y,getThumbStyle:$=>({pointerEvents:j!==-1&&j!==$?"none":void 0})}}const uf=["values","unit","step"],df=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)=>B({},n,{[r.key]:r.val}),{})};function Ha(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=_t(e,uf),i=df(t),a=Object.keys(i);function l(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function c(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function u(p,_){const b=a.indexOf(_);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(b!==-1&&typeof t[a[b]]=="number"?t[a[b]]:_)-r/100}${n})`}function m(p){return a.indexOf(p)+1<a.length?u(p,a[a.indexOf(p)+1]):l(p)}function d(p){const _=a.indexOf(p);return _===0?l(a[1]):_===a.length-1?c(a[_]):u(p,a[a.indexOf(p)+1]).replace("@media","@media not all and")}return B({keys:a,values:i,up:l,down:c,between:u,only:m,not:d,unit:n},o)}const ff={borderRadius:4},Rt=process.env.NODE_ENV!=="production"?s.oneOfType([s.number,s.string,s.object,s.array]):{};function Pn(e,t){return t?ht(e,t,{clone:!1}):e}const ko={xs:0,sm:600,md:900,lg:1200,xl:1536},ji={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ko[e]}px)`};function vt(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||ji;return t.reduce((a,l,c)=>(a[i.up(i.keys[c])]=n(t[c]),a),{})}if(typeof t=="object"){const i=r.breakpoints||ji;return Object.keys(t).reduce((a,l)=>{if(Object.keys(i.values||ko).indexOf(l)!==-1){const c=i.up(l);a[c]=n(t[l],l)}else{const c=l;a[c]=t[c]}return a},{})}return n(t)}function mf(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function pf(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function vr(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 mr(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=vr(e,n)||r,t&&(o=t(o,r,e)),o}function Le(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],c=a.theme,u=vr(c,r)||{};return vt(a,l,d=>{let p=mr(u,o,d);return d===p&&typeof d=="string"&&(p=mr(u,o,`${t}${d==="default"?"":ut(d)}`,d)),n===!1?p:{[n]:p}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Rt}:{},i.filterProps=[t],i}function hf(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const gf={m:"margin",p:"padding"},yf={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Mi={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},vf=hf(e=>{if(e.length>2)if(Mi[e])e=Mi[e];else return[e];const[t,n]=e.split(""),r=gf[t],o=yf[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),br=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],_r=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],bf=[...br,..._r];function Dn(e,t,n,r){var o;const i=(o=vr(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${a}.`),i*a):Array.isArray(i)?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>i.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${a} > ${i.length-1}, you need to add the missing values.`].join(`
72
72
  `)):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(`
73
73
  `))),i[a]):typeof i=="function"?i:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(`
74
- `)),()=>{})}function Ya(e){return Dn(e,"spacing",8,"spacing")}function Fn(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function _f(e,t){return n=>e.reduce((r,o)=>(r[o]=Fn(t,n),r),{})}function Cf(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=vf(n),i=_f(o,r),a=e[n];return vt(e,a,i)}function Ka(e,t){const n=Ya(e.theme);return Object.keys(e).map(r=>Cf(e,t,r,n)).reduce(Pn,{})}function Pe(e){return Ka(e,br)}Pe.propTypes=process.env.NODE_ENV!=="production"?br.reduce((e,t)=>(e[t]=At,e),{}):{};Pe.filterProps=br;function $e(e){return Ka(e,_r)}$e.propTypes=process.env.NODE_ENV!=="production"?_r.reduce((e,t)=>(e[t]=At,e),{}):{};$e.filterProps=_r;process.env.NODE_ENV!=="production"&&bf.reduce((e,t)=>(e[t]=At,e),{});function xf(e=8){if(e.mui)return e;const t=Ya({spacing:e}),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 Cr(...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]?Pn(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 at(e){return typeof e!="number"?e:`${e}px solid`}function lt(e,t){return Le({prop:e,themeKey:"borders",transform:t})}const Ef=lt("border",at),Sf=lt("borderTop",at),Tf=lt("borderRight",at),wf=lt("borderBottom",at),kf=lt("borderLeft",at),Rf=lt("borderColor"),Of=lt("borderTopColor"),Af=lt("borderRightColor"),Pf=lt("borderBottomColor"),$f=lt("borderLeftColor"),jf=lt("outline",at),Mf=lt("outlineColor"),xr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Dn(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Fn(t,r)});return vt(e,e.borderRadius,n)}return null};xr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:At}:{};xr.filterProps=["borderRadius"];Cr(Ef,Sf,Tf,wf,kf,Rf,Of,Af,Pf,$f,xr,jf,Mf);const Er=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Dn(e.theme,"spacing",8,"gap"),n=r=>({gap:Fn(t,r)});return vt(e,e.gap,n)}return null};Er.propTypes=process.env.NODE_ENV!=="production"?{gap:At}:{};Er.filterProps=["gap"];const Sr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Dn(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Fn(t,r)});return vt(e,e.columnGap,n)}return null};Sr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:At}:{};Sr.filterProps=["columnGap"];const Tr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Dn(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Fn(t,r)});return vt(e,e.rowGap,n)}return null};Tr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:At}:{};Tr.filterProps=["rowGap"];const Lf=Le({prop:"gridColumn"}),Nf=Le({prop:"gridRow"}),If=Le({prop:"gridAutoFlow"}),Df=Le({prop:"gridAutoColumns"}),Ff=Le({prop:"gridAutoRows"}),Bf=Le({prop:"gridTemplateColumns"}),zf=Le({prop:"gridTemplateRows"}),Vf=Le({prop:"gridTemplateAreas"}),Uf=Le({prop:"gridArea"});Cr(Er,Sr,Tr,Lf,Nf,If,Df,Ff,Bf,zf,Vf,Uf);function sn(e,t){return t==="grey"?t:e}const qf=Le({prop:"color",themeKey:"palette",transform:sn}),Wf=Le({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:sn}),Hf=Le({prop:"backgroundColor",themeKey:"palette",transform:sn});Cr(qf,Wf,Hf);function tt(e){return e<=1&&e!==0?`${e*100}%`:e}const Yf=Le({prop:"width",transform:tt}),Oo=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Ro[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:tt(n)}};return vt(e,e.maxWidth,t)}return null};Oo.filterProps=["maxWidth"];const Kf=Le({prop:"minWidth",transform:tt}),Zf=Le({prop:"height",transform:tt}),Gf=Le({prop:"maxHeight",transform:tt}),Jf=Le({prop:"minHeight",transform:tt});Le({prop:"size",cssProperty:"width",transform:tt});Le({prop:"size",cssProperty:"height",transform:tt});const Xf=Le({prop:"boxSizing"});Cr(Yf,Oo,Kf,Zf,Gf,Jf,Xf);const Bn={border:{themeKey:"borders",transform:at},borderTop:{themeKey:"borders",transform:at},borderRight:{themeKey:"borders",transform:at},borderBottom:{themeKey:"borders",transform:at},borderLeft:{themeKey:"borders",transform:at},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:at},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:xr},color:{themeKey:"palette",transform:sn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:sn},backgroundColor:{themeKey:"palette",transform:sn},p:{style:$e},pt:{style:$e},pr:{style:$e},pb:{style:$e},pl:{style:$e},px:{style:$e},py:{style:$e},padding:{style:$e},paddingTop:{style:$e},paddingRight:{style:$e},paddingBottom:{style:$e},paddingLeft:{style:$e},paddingX:{style:$e},paddingY:{style:$e},paddingInline:{style:$e},paddingInlineStart:{style:$e},paddingInlineEnd:{style:$e},paddingBlock:{style:$e},paddingBlockStart:{style:$e},paddingBlockEnd:{style:$e},m:{style:Pe},mt:{style:Pe},mr:{style:Pe},mb:{style:Pe},ml:{style:Pe},mx:{style:Pe},my:{style:Pe},margin:{style:Pe},marginTop:{style:Pe},marginRight:{style:Pe},marginBottom:{style:Pe},marginLeft:{style:Pe},marginX:{style:Pe},marginY:{style:Pe},marginInline:{style:Pe},marginInlineStart:{style:Pe},marginInlineEnd:{style:Pe},marginBlock:{style:Pe},marginBlockStart:{style:Pe},marginBlockEnd:{style:Pe},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:Er},rowGap:{style:Tr},columnGap:{style:Sr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:tt},maxWidth:{style:Oo},minWidth:{transform:tt},height:{transform:tt},maxHeight:{transform:tt},minHeight:{transform:tt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Qf(...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 em(e,t){return typeof e=="function"?e(t):e}function Za(){function e(n,r,o,i){const a={[n]:r,theme:o},l=i[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:u,transform:m,style:d}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=vr(o,u)||{};return d?d(a):vt(a,r,b=>{let f=mr(p,m,b);return b===f&&typeof b=="string"&&(f=mr(p,m,`${n}${b==="default"?"":ut(b)}`,b)),c===!1?f:{[c]:f}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:Bn;function l(c){let u=c;if(typeof c=="function")u=c(i);else if(typeof c!="object")return c;if(!u)return null;const m=mf(i.breakpoints),d=Object.keys(m);let p=m;return Object.keys(u).forEach(_=>{const b=em(u[_],i);if(b!=null)if(typeof b=="object")if(a[_])p=Pn(p,e(_,b,i,a));else{const f=vt({theme:i},b,x=>({[_]:x}));Qf(f,b)?p[_]=t({sx:b,theme:i}):p=Pn(p,f)}else p=Pn(p,e(_,b,i,a))}),pf(d,p)}return Array.isArray(o)?o.map(l):l(o)}return t}const wr=Za();wr.filterProps=["sx"];function Ga(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const tm=["breakpoints","palette","spacing","shape"];function Ja(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=_t(e,tm),l=Ha(n),c=xf(o);let u=ht({breakpoints:l,direction:"ltr",components:{},palette:B({mode:"light"},r),spacing:c,shape:B({},ff,i)},a);return u.applyStyles=Ga,u=t.reduce((m,d)=>ht(m,d),u),u.unstable_sxConfig=B({},Bn,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return wr({sx:d,theme:this})},u}const nm=Object.freeze(Object.defineProperty({__proto__:null,default:Ja,private_createBreakpoints:Ha,unstable_applyStyles:Ga},Symbol.toStringTag,{value:"Module"}));function rm(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function om(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var im=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(om(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=rm(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),He="-ms-",pr="-moz-",he="-webkit-",Xa="comm",Ao="rule",Po="decl",am="@import",Qa="@keyframes",sm="@layer",lm=Math.abs,kr=String.fromCharCode,cm=Object.assign;function um(e,t){return ze(e,0)^45?(((t<<2^ze(e,0))<<2^ze(e,1))<<2^ze(e,2))<<2^ze(e,3):0}function es(e){return e.trim()}function dm(e,t){return(e=t.exec(e))?e[0]:e}function ge(e,t,n){return e.replace(t,n)}function fo(e,t){return e.indexOf(t)}function ze(e,t){return e.charCodeAt(t)|0}function jn(e,t,n){return e.slice(t,n)}function mt(e){return e.length}function $o(e){return e.length}function nr(e,t){return t.push(e),e}function fm(e,t){return e.map(t).join("")}var Rr=1,dn=1,ts=0,Ge=0,Ie=0,pn="";function Or(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Rr,column:dn,length:a,return:""}}function Tn(e,t){return cm(Or("",null,null,"",null,null,0),e,{length:-e.length},t)}function mm(){return Ie}function pm(){return Ie=Ge>0?ze(pn,--Ge):0,dn--,Ie===10&&(dn=1,Rr--),Ie}function nt(){return Ie=Ge<ts?ze(pn,Ge++):0,dn++,Ie===10&&(dn=1,Rr++),Ie}function gt(){return ze(pn,Ge)}function sr(){return Ge}function zn(e,t){return jn(pn,e,t)}function Mn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ns(e){return Rr=dn=1,ts=mt(pn=e),Ge=0,[]}function rs(e){return pn="",e}function lr(e){return es(zn(Ge-1,mo(e===91?e+2:e===40?e+1:e)))}function hm(e){for(;(Ie=gt())&&Ie<33;)nt();return Mn(e)>2||Mn(Ie)>3?"":" "}function gm(e,t){for(;--t&&nt()&&!(Ie<48||Ie>102||Ie>57&&Ie<65||Ie>70&&Ie<97););return zn(e,sr()+(t<6&&gt()==32&&nt()==32))}function mo(e){for(;nt();)switch(Ie){case e:return Ge;case 34:case 39:e!==34&&e!==39&&mo(Ie);break;case 40:e===41&&mo(e);break;case 92:nt();break}return Ge}function ym(e,t){for(;nt()&&e+Ie!==57;)if(e+Ie===84&&gt()===47)break;return"/*"+zn(t,Ge-1)+"*"+kr(e===47?e:nt())}function vm(e){for(;!Mn(gt());)nt();return zn(e,Ge)}function bm(e){return rs(cr("",null,null,null,[""],e=ns(e),0,[0],e))}function cr(e,t,n,r,o,i,a,l,c){for(var u=0,m=0,d=a,p=0,_=0,b=0,f=1,x=1,E=1,T=0,k="",j=o,C=i,z=r,y=k;x;)switch(b=T,T=nt()){case 40:if(b!=108&&ze(y,d-1)==58){fo(y+=ge(lr(T),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:y+=lr(T);break;case 9:case 10:case 13:case 32:y+=hm(b);break;case 92:y+=gm(sr()-1,7);continue;case 47:switch(gt()){case 42:case 47:nr(_m(ym(nt(),sr()),t,n),c);break;default:y+="/"}break;case 123*f:l[u++]=mt(y)*E;case 125*f:case 59:case 0:switch(T){case 0:case 125:x=0;case 59+m:E==-1&&(y=ge(y,/\f/g,"")),_>0&&mt(y)-d&&nr(_>32?Ii(y+";",r,n,d-1):Ii(ge(y," ","")+";",r,n,d-2),c);break;case 59:y+=";";default:if(nr(z=Ni(y,t,n,u,m,o,l,k,j=[],C=[],d),i),T===123)if(m===0)cr(y,t,z,z,j,i,d,l,C);else switch(p===99&&ze(y,3)===110?100:p){case 100:case 108:case 109:case 115:cr(e,z,z,r&&nr(Ni(e,z,z,0,0,o,l,k,o,j=[],d),C),o,C,d,l,r?j:C);break;default:cr(y,z,z,z,[""],C,0,l,C)}}u=m=_=0,f=E=1,k=y="",d=a;break;case 58:d=1+mt(y),_=b;default:if(f<1){if(T==123)--f;else if(T==125&&f++==0&&pm()==125)continue}switch(y+=kr(T),T*f){case 38:E=m>0?1:(y+="\f",-1);break;case 44:l[u++]=(mt(y)-1)*E,E=1;break;case 64:gt()===45&&(y+=lr(nt())),p=gt(),m=d=mt(k=y+=vm(sr())),T++;break;case 45:b===45&&mt(y)==2&&(f=0)}}return i}function Ni(e,t,n,r,o,i,a,l,c,u,m){for(var d=o-1,p=o===0?i:[""],_=$o(p),b=0,f=0,x=0;b<r;++b)for(var E=0,T=jn(e,d+1,d=lm(f=a[b])),k=e;E<_;++E)(k=es(f>0?p[E]+" "+T:ge(T,/&\f/g,p[E])))&&(c[x++]=k);return Or(e,t,n,o===0?Ao:l,c,u,m)}function _m(e,t,n){return Or(e,t,n,Xa,kr(mm()),jn(e,2,-2),0)}function Ii(e,t,n,r){return Or(e,t,n,Po,jn(e,0,r),jn(e,r+1,-1),r)}function ln(e,t){for(var n="",r=$o(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Cm(e,t,n,r){switch(e.type){case sm:if(e.children.length)break;case am:case Po:return e.return=e.return||e.value;case Xa:return"";case Qa:return e.return=e.value+"{"+ln(e.children,r)+"}";case Ao:e.value=e.props.join(",")}return mt(n=ln(e.children,r))?e.return=e.value+"{"+n+"}":""}function xm(e){var t=$o(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}function Em(e){return function(t){t.root||(t=t.return)&&e(t)}}var Sm=function(t,n,r){for(var o=0,i=0;o=i,i=gt(),o===38&&i===12&&(n[r]=1),!Mn(i);)nt();return zn(t,Ge)},Tm=function(t,n){var r=-1,o=44;do switch(Mn(o)){case 0:o===38&&gt()===12&&(n[r]=1),t[r]+=Sm(Ge-1,n,r);break;case 2:t[r]+=lr(o);break;case 4:if(o===44){t[++r]=gt()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=kr(o)}while(o=nt());return t},wm=function(t,n){return rs(Tm(ns(t),n))},Di=new WeakMap,km=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Di.get(r))&&!o){Di.set(t,!0);for(var i=[],a=wm(n,i),l=r.props,c=0,u=0;c<a.length;c++)for(var m=0;m<l.length;m++,u++)t.props[u]=i[c]?a[c].replace(/&\f/g,l[m]):l[m]+" "+a[c]}}},Rm=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function os(e,t){switch(um(e,t)){case 5103:return he+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return he+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return he+e+pr+e+He+e+e;case 6828:case 4268:return he+e+He+e+e;case 6165:return he+e+He+"flex-"+e+e;case 5187:return he+e+ge(e,/(\w+).+(:[^]+)/,he+"box-$1$2"+He+"flex-$1$2")+e;case 5443:return he+e+He+"flex-item-"+ge(e,/flex-|-self/,"")+e;case 4675:return he+e+He+"flex-line-pack"+ge(e,/align-content|flex-|-self/,"")+e;case 5548:return he+e+He+ge(e,"shrink","negative")+e;case 5292:return he+e+He+ge(e,"basis","preferred-size")+e;case 6060:return he+"box-"+ge(e,"-grow","")+he+e+He+ge(e,"grow","positive")+e;case 4554:return he+ge(e,/([^-])(transform)/g,"$1"+he+"$2")+e;case 6187:return ge(ge(ge(e,/(zoom-|grab)/,he+"$1"),/(image-set)/,he+"$1"),e,"")+e;case 5495:case 3959:return ge(e,/(image-set\([^]*)/,he+"$1$`$1");case 4968:return ge(ge(e,/(.+:)(flex-)?(.*)/,he+"box-pack:$3"+He+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+he+e+e;case 4095:case 3583:case 4068:case 2532:return ge(e,/(.+)-inline(.+)/,he+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(mt(e)-1-t>6)switch(ze(e,t+1)){case 109:if(ze(e,t+4)!==45)break;case 102:return ge(e,/(.+:)(.+)-([^]+)/,"$1"+he+"$2-$3$1"+pr+(ze(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~fo(e,"stretch")?os(ge(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ze(e,t+1)!==115)break;case 6444:switch(ze(e,mt(e)-3-(~fo(e,"!important")&&10))){case 107:return ge(e,":",":"+he)+e;case 101:return ge(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+he+(ze(e,14)===45?"inline-":"")+"box$3$1"+he+"$2$3$1"+He+"$2box$3")+e}break;case 5936:switch(ze(e,t+11)){case 114:return he+e+He+ge(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return he+e+He+ge(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return he+e+He+ge(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return he+e+He+e+e}return e}var Om=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Po:t.return=os(t.value,t.length);break;case Qa:return ln([Tn(t,{value:ge(t.value,"@","@"+he)})],o);case Ao:if(t.length)return fm(t.props,function(i){switch(dm(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ln([Tn(t,{props:[ge(i,/:(read-\w+)/,":"+pr+"$1")]})],o);case"::placeholder":return ln([Tn(t,{props:[ge(i,/:(plac\w+)/,":"+he+"input-$1")]}),Tn(t,{props:[ge(i,/:(plac\w+)/,":"+pr+"$1")]}),Tn(t,{props:[ge(i,/:(plac\w+)/,He+"input-$1")]})],o)}return""})}},Am=[Om],Pm=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(f){var x=f.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var o=t.stylisPlugins||Am,i={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(f){for(var x=f.getAttribute("data-emotion").split(" "),E=1;E<x.length;E++)i[x[E]]=!0;l.push(f)});var c,u=[km,Rm];{var m,d=[Cm,Em(function(f){m.insert(f)})],p=xm(u.concat(o,d)),_=function(x){return ln(bm(x),p)};c=function(x,E,T,k){m=T,_(x?x+"{"+E.styles+"}":E.styles),k&&(b.inserted[E.name]=!0)}}var b={key:n,sheet:new im({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return b.sheet.hydrate(l),b};let po;typeof document=="object"&&(po=Pm({key:"css",prepend:!0}));function is(e){const{injectFirst:t,children:n}=e;return t&&po?g.jsx(an.CacheProvider,{value:po,children:n}):n}process.env.NODE_ENV!=="production"&&(is.propTypes={children:s.node,injectFirst:s.bool});function $m(e){return e==null||Object.keys(e).length===0}function as(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t($m(o)?n:o):t;return g.jsx(an.Global,{styles:r})}process.env.NODE_ENV!=="production"&&(as.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.string,s.object,s.func])});/**
74
+ `)),()=>{})}function Ya(e){return Dn(e,"spacing",8,"spacing")}function Fn(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function _f(e,t){return n=>e.reduce((r,o)=>(r[o]=Fn(t,n),r),{})}function Cf(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=vf(n),i=_f(o,r),a=e[n];return vt(e,a,i)}function Ka(e,t){const n=Ya(e.theme);return Object.keys(e).map(r=>Cf(e,t,r,n)).reduce(Pn,{})}function Pe(e){return Ka(e,br)}Pe.propTypes=process.env.NODE_ENV!=="production"?br.reduce((e,t)=>(e[t]=Rt,e),{}):{};Pe.filterProps=br;function $e(e){return Ka(e,_r)}$e.propTypes=process.env.NODE_ENV!=="production"?_r.reduce((e,t)=>(e[t]=Rt,e),{}):{};$e.filterProps=_r;process.env.NODE_ENV!=="production"&&bf.reduce((e,t)=>(e[t]=Rt,e),{});function xf(e=8){if(e.mui)return e;const t=Ya({spacing:e}),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 Cr(...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]?Pn(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 at(e){return typeof e!="number"?e:`${e}px solid`}function lt(e,t){return Le({prop:e,themeKey:"borders",transform:t})}const Ef=lt("border",at),Sf=lt("borderTop",at),Tf=lt("borderRight",at),wf=lt("borderBottom",at),kf=lt("borderLeft",at),Of=lt("borderColor"),Rf=lt("borderTopColor"),Af=lt("borderRightColor"),Pf=lt("borderBottomColor"),$f=lt("borderLeftColor"),jf=lt("outline",at),Mf=lt("outlineColor"),xr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Dn(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Fn(t,r)});return vt(e,e.borderRadius,n)}return null};xr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Rt}:{};xr.filterProps=["borderRadius"];Cr(Ef,Sf,Tf,wf,kf,Of,Rf,Af,Pf,$f,xr,jf,Mf);const Er=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Dn(e.theme,"spacing",8,"gap"),n=r=>({gap:Fn(t,r)});return vt(e,e.gap,n)}return null};Er.propTypes=process.env.NODE_ENV!=="production"?{gap:Rt}:{};Er.filterProps=["gap"];const Sr=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Dn(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Fn(t,r)});return vt(e,e.columnGap,n)}return null};Sr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Rt}:{};Sr.filterProps=["columnGap"];const Tr=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Dn(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Fn(t,r)});return vt(e,e.rowGap,n)}return null};Tr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Rt}:{};Tr.filterProps=["rowGap"];const Lf=Le({prop:"gridColumn"}),Nf=Le({prop:"gridRow"}),If=Le({prop:"gridAutoFlow"}),Df=Le({prop:"gridAutoColumns"}),Ff=Le({prop:"gridAutoRows"}),Bf=Le({prop:"gridTemplateColumns"}),zf=Le({prop:"gridTemplateRows"}),Vf=Le({prop:"gridTemplateAreas"}),Uf=Le({prop:"gridArea"});Cr(Er,Sr,Tr,Lf,Nf,If,Df,Ff,Bf,zf,Vf,Uf);function sn(e,t){return t==="grey"?t:e}const qf=Le({prop:"color",themeKey:"palette",transform:sn}),Wf=Le({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:sn}),Hf=Le({prop:"backgroundColor",themeKey:"palette",transform:sn});Cr(qf,Wf,Hf);function tt(e){return e<=1&&e!==0?`${e*100}%`:e}const Yf=Le({prop:"width",transform:tt}),Oo=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||ko[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:tt(n)}};return vt(e,e.maxWidth,t)}return null};Oo.filterProps=["maxWidth"];const Kf=Le({prop:"minWidth",transform:tt}),Zf=Le({prop:"height",transform:tt}),Gf=Le({prop:"maxHeight",transform:tt}),Jf=Le({prop:"minHeight",transform:tt});Le({prop:"size",cssProperty:"width",transform:tt});Le({prop:"size",cssProperty:"height",transform:tt});const Xf=Le({prop:"boxSizing"});Cr(Yf,Oo,Kf,Zf,Gf,Jf,Xf);const Bn={border:{themeKey:"borders",transform:at},borderTop:{themeKey:"borders",transform:at},borderRight:{themeKey:"borders",transform:at},borderBottom:{themeKey:"borders",transform:at},borderLeft:{themeKey:"borders",transform:at},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:at},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:xr},color:{themeKey:"palette",transform:sn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:sn},backgroundColor:{themeKey:"palette",transform:sn},p:{style:$e},pt:{style:$e},pr:{style:$e},pb:{style:$e},pl:{style:$e},px:{style:$e},py:{style:$e},padding:{style:$e},paddingTop:{style:$e},paddingRight:{style:$e},paddingBottom:{style:$e},paddingLeft:{style:$e},paddingX:{style:$e},paddingY:{style:$e},paddingInline:{style:$e},paddingInlineStart:{style:$e},paddingInlineEnd:{style:$e},paddingBlock:{style:$e},paddingBlockStart:{style:$e},paddingBlockEnd:{style:$e},m:{style:Pe},mt:{style:Pe},mr:{style:Pe},mb:{style:Pe},ml:{style:Pe},mx:{style:Pe},my:{style:Pe},margin:{style:Pe},marginTop:{style:Pe},marginRight:{style:Pe},marginBottom:{style:Pe},marginLeft:{style:Pe},marginX:{style:Pe},marginY:{style:Pe},marginInline:{style:Pe},marginInlineStart:{style:Pe},marginInlineEnd:{style:Pe},marginBlock:{style:Pe},marginBlockStart:{style:Pe},marginBlockEnd:{style:Pe},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:Er},rowGap:{style:Tr},columnGap:{style:Sr},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:tt},maxWidth:{style:Oo},minWidth:{transform:tt},height:{transform:tt},maxHeight:{transform:tt},minHeight:{transform:tt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Qf(...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 em(e,t){return typeof e=="function"?e(t):e}function Za(){function e(n,r,o,i){const a={[n]:r,theme:o},l=i[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:u,transform:m,style:d}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=vr(o,u)||{};return d?d(a):vt(a,r,b=>{let f=mr(p,m,b);return b===f&&typeof b=="string"&&(f=mr(p,m,`${n}${b==="default"?"":ut(b)}`,b)),c===!1?f:{[c]:f}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:Bn;function l(c){let u=c;if(typeof c=="function")u=c(i);else if(typeof c!="object")return c;if(!u)return null;const m=mf(i.breakpoints),d=Object.keys(m);let p=m;return Object.keys(u).forEach(_=>{const b=em(u[_],i);if(b!=null)if(typeof b=="object")if(a[_])p=Pn(p,e(_,b,i,a));else{const f=vt({theme:i},b,x=>({[_]:x}));Qf(f,b)?p[_]=t({sx:b,theme:i}):p=Pn(p,f)}else p=Pn(p,e(_,b,i,a))}),pf(d,p)}return Array.isArray(o)?o.map(l):l(o)}return t}const wr=Za();wr.filterProps=["sx"];function Ga(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const tm=["breakpoints","palette","spacing","shape"];function Ja(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=_t(e,tm),l=Ha(n),c=xf(o);let u=ht({breakpoints:l,direction:"ltr",components:{},palette:B({mode:"light"},r),spacing:c,shape:B({},ff,i)},a);return u.applyStyles=Ga,u=t.reduce((m,d)=>ht(m,d),u),u.unstable_sxConfig=B({},Bn,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return wr({sx:d,theme:this})},u}const nm=Object.freeze(Object.defineProperty({__proto__:null,default:Ja,private_createBreakpoints:Ha,unstable_applyStyles:Ga},Symbol.toStringTag,{value:"Module"}));function rm(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function om(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var im=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(om(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=rm(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),He="-ms-",pr="-moz-",he="-webkit-",Xa="comm",Ro="rule",Ao="decl",am="@import",Qa="@keyframes",sm="@layer",lm=Math.abs,kr=String.fromCharCode,cm=Object.assign;function um(e,t){return ze(e,0)^45?(((t<<2^ze(e,0))<<2^ze(e,1))<<2^ze(e,2))<<2^ze(e,3):0}function es(e){return e.trim()}function dm(e,t){return(e=t.exec(e))?e[0]:e}function ge(e,t,n){return e.replace(t,n)}function fo(e,t){return e.indexOf(t)}function ze(e,t){return e.charCodeAt(t)|0}function jn(e,t,n){return e.slice(t,n)}function mt(e){return e.length}function Po(e){return e.length}function nr(e,t){return t.push(e),e}function fm(e,t){return e.map(t).join("")}var Or=1,dn=1,ts=0,Ge=0,Ie=0,pn="";function Rr(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Or,column:dn,length:a,return:""}}function Tn(e,t){return cm(Rr("",null,null,"",null,null,0),e,{length:-e.length},t)}function mm(){return Ie}function pm(){return Ie=Ge>0?ze(pn,--Ge):0,dn--,Ie===10&&(dn=1,Or--),Ie}function nt(){return Ie=Ge<ts?ze(pn,Ge++):0,dn++,Ie===10&&(dn=1,Or++),Ie}function gt(){return ze(pn,Ge)}function sr(){return Ge}function zn(e,t){return jn(pn,e,t)}function Mn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function ns(e){return Or=dn=1,ts=mt(pn=e),Ge=0,[]}function rs(e){return pn="",e}function lr(e){return es(zn(Ge-1,mo(e===91?e+2:e===40?e+1:e)))}function hm(e){for(;(Ie=gt())&&Ie<33;)nt();return Mn(e)>2||Mn(Ie)>3?"":" "}function gm(e,t){for(;--t&&nt()&&!(Ie<48||Ie>102||Ie>57&&Ie<65||Ie>70&&Ie<97););return zn(e,sr()+(t<6&&gt()==32&&nt()==32))}function mo(e){for(;nt();)switch(Ie){case e:return Ge;case 34:case 39:e!==34&&e!==39&&mo(Ie);break;case 40:e===41&&mo(e);break;case 92:nt();break}return Ge}function ym(e,t){for(;nt()&&e+Ie!==57;)if(e+Ie===84&&gt()===47)break;return"/*"+zn(t,Ge-1)+"*"+kr(e===47?e:nt())}function vm(e){for(;!Mn(gt());)nt();return zn(e,Ge)}function bm(e){return rs(cr("",null,null,null,[""],e=ns(e),0,[0],e))}function cr(e,t,n,r,o,i,a,l,c){for(var u=0,m=0,d=a,p=0,_=0,b=0,f=1,x=1,E=1,T=0,k="",j=o,C=i,z=r,y=k;x;)switch(b=T,T=nt()){case 40:if(b!=108&&ze(y,d-1)==58){fo(y+=ge(lr(T),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:y+=lr(T);break;case 9:case 10:case 13:case 32:y+=hm(b);break;case 92:y+=gm(sr()-1,7);continue;case 47:switch(gt()){case 42:case 47:nr(_m(ym(nt(),sr()),t,n),c);break;default:y+="/"}break;case 123*f:l[u++]=mt(y)*E;case 125*f:case 59:case 0:switch(T){case 0:case 125:x=0;case 59+m:E==-1&&(y=ge(y,/\f/g,"")),_>0&&mt(y)-d&&nr(_>32?Ni(y+";",r,n,d-1):Ni(ge(y," ","")+";",r,n,d-2),c);break;case 59:y+=";";default:if(nr(z=Li(y,t,n,u,m,o,l,k,j=[],C=[],d),i),T===123)if(m===0)cr(y,t,z,z,j,i,d,l,C);else switch(p===99&&ze(y,3)===110?100:p){case 100:case 108:case 109:case 115:cr(e,z,z,r&&nr(Li(e,z,z,0,0,o,l,k,o,j=[],d),C),o,C,d,l,r?j:C);break;default:cr(y,z,z,z,[""],C,0,l,C)}}u=m=_=0,f=E=1,k=y="",d=a;break;case 58:d=1+mt(y),_=b;default:if(f<1){if(T==123)--f;else if(T==125&&f++==0&&pm()==125)continue}switch(y+=kr(T),T*f){case 38:E=m>0?1:(y+="\f",-1);break;case 44:l[u++]=(mt(y)-1)*E,E=1;break;case 64:gt()===45&&(y+=lr(nt())),p=gt(),m=d=mt(k=y+=vm(sr())),T++;break;case 45:b===45&&mt(y)==2&&(f=0)}}return i}function Li(e,t,n,r,o,i,a,l,c,u,m){for(var d=o-1,p=o===0?i:[""],_=Po(p),b=0,f=0,x=0;b<r;++b)for(var E=0,T=jn(e,d+1,d=lm(f=a[b])),k=e;E<_;++E)(k=es(f>0?p[E]+" "+T:ge(T,/&\f/g,p[E])))&&(c[x++]=k);return Rr(e,t,n,o===0?Ro:l,c,u,m)}function _m(e,t,n){return Rr(e,t,n,Xa,kr(mm()),jn(e,2,-2),0)}function Ni(e,t,n,r){return Rr(e,t,n,Ao,jn(e,0,r),jn(e,r+1,-1),r)}function ln(e,t){for(var n="",r=Po(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Cm(e,t,n,r){switch(e.type){case sm:if(e.children.length)break;case am:case Ao:return e.return=e.return||e.value;case Xa:return"";case Qa:return e.return=e.value+"{"+ln(e.children,r)+"}";case Ro:e.value=e.props.join(",")}return mt(n=ln(e.children,r))?e.return=e.value+"{"+n+"}":""}function xm(e){var t=Po(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}function Em(e){return function(t){t.root||(t=t.return)&&e(t)}}var Sm=function(t,n,r){for(var o=0,i=0;o=i,i=gt(),o===38&&i===12&&(n[r]=1),!Mn(i);)nt();return zn(t,Ge)},Tm=function(t,n){var r=-1,o=44;do switch(Mn(o)){case 0:o===38&&gt()===12&&(n[r]=1),t[r]+=Sm(Ge-1,n,r);break;case 2:t[r]+=lr(o);break;case 4:if(o===44){t[++r]=gt()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=kr(o)}while(o=nt());return t},wm=function(t,n){return rs(Tm(ns(t),n))},Ii=new WeakMap,km=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Ii.get(r))&&!o){Ii.set(t,!0);for(var i=[],a=wm(n,i),l=r.props,c=0,u=0;c<a.length;c++)for(var m=0;m<l.length;m++,u++)t.props[u]=i[c]?a[c].replace(/&\f/g,l[m]):l[m]+" "+a[c]}}},Om=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function os(e,t){switch(um(e,t)){case 5103:return he+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return he+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return he+e+pr+e+He+e+e;case 6828:case 4268:return he+e+He+e+e;case 6165:return he+e+He+"flex-"+e+e;case 5187:return he+e+ge(e,/(\w+).+(:[^]+)/,he+"box-$1$2"+He+"flex-$1$2")+e;case 5443:return he+e+He+"flex-item-"+ge(e,/flex-|-self/,"")+e;case 4675:return he+e+He+"flex-line-pack"+ge(e,/align-content|flex-|-self/,"")+e;case 5548:return he+e+He+ge(e,"shrink","negative")+e;case 5292:return he+e+He+ge(e,"basis","preferred-size")+e;case 6060:return he+"box-"+ge(e,"-grow","")+he+e+He+ge(e,"grow","positive")+e;case 4554:return he+ge(e,/([^-])(transform)/g,"$1"+he+"$2")+e;case 6187:return ge(ge(ge(e,/(zoom-|grab)/,he+"$1"),/(image-set)/,he+"$1"),e,"")+e;case 5495:case 3959:return ge(e,/(image-set\([^]*)/,he+"$1$`$1");case 4968:return ge(ge(e,/(.+:)(flex-)?(.*)/,he+"box-pack:$3"+He+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+he+e+e;case 4095:case 3583:case 4068:case 2532:return ge(e,/(.+)-inline(.+)/,he+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(mt(e)-1-t>6)switch(ze(e,t+1)){case 109:if(ze(e,t+4)!==45)break;case 102:return ge(e,/(.+:)(.+)-([^]+)/,"$1"+he+"$2-$3$1"+pr+(ze(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~fo(e,"stretch")?os(ge(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ze(e,t+1)!==115)break;case 6444:switch(ze(e,mt(e)-3-(~fo(e,"!important")&&10))){case 107:return ge(e,":",":"+he)+e;case 101:return ge(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+he+(ze(e,14)===45?"inline-":"")+"box$3$1"+he+"$2$3$1"+He+"$2box$3")+e}break;case 5936:switch(ze(e,t+11)){case 114:return he+e+He+ge(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return he+e+He+ge(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return he+e+He+ge(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return he+e+He+e+e}return e}var Rm=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Ao:t.return=os(t.value,t.length);break;case Qa:return ln([Tn(t,{value:ge(t.value,"@","@"+he)})],o);case Ro:if(t.length)return fm(t.props,function(i){switch(dm(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ln([Tn(t,{props:[ge(i,/:(read-\w+)/,":"+pr+"$1")]})],o);case"::placeholder":return ln([Tn(t,{props:[ge(i,/:(plac\w+)/,":"+he+"input-$1")]}),Tn(t,{props:[ge(i,/:(plac\w+)/,":"+pr+"$1")]}),Tn(t,{props:[ge(i,/:(plac\w+)/,He+"input-$1")]})],o)}return""})}},Am=[Rm],Pm=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(f){var x=f.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var o=t.stylisPlugins||Am,i={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(f){for(var x=f.getAttribute("data-emotion").split(" "),E=1;E<x.length;E++)i[x[E]]=!0;l.push(f)});var c,u=[km,Om];{var m,d=[Cm,Em(function(f){m.insert(f)})],p=xm(u.concat(o,d)),_=function(x){return ln(bm(x),p)};c=function(x,E,T,k){m=T,_(x?x+"{"+E.styles+"}":E.styles),k&&(b.inserted[E.name]=!0)}}var b={key:n,sheet:new im({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:c};return b.sheet.hydrate(l),b};let po;typeof document=="object"&&(po=Pm({key:"css",prepend:!0}));function is(e){const{injectFirst:t,children:n}=e;return t&&po?g.jsx(an.CacheProvider,{value:po,children:n}):n}process.env.NODE_ENV!=="production"&&(is.propTypes={children:s.node,injectFirst:s.bool});function $m(e){return e==null||Object.keys(e).length===0}function as(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t($m(o)?n:o):t;return g.jsx(an.Global,{styles:r})}process.env.NODE_ENV!=="production"&&(as.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.string,s.object,s.func])});/**
75
75
  * @mui/styled-engine v5.16.14
76
76
  *
77
77
  * @license MIT
78
78
  * This source code is licensed under the MIT license found in the
79
79
  * LICENSE file in the root directory of this source tree.
80
80
  */function jm(e,t){const n=Ts(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(`
81
- `)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}const Mm=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Lm=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:as,StyledEngineProvider:is,ThemeContext:an.ThemeContext,css:an.css,default:jm,internal_processStyles:Mm,keyframes:an.keyframes},Symbol.toStringTag,{value:"Module"})),Nm=["sx"],Im=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Bn;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function Dm(e){const{sx:t}=e,n=_t(e,Nm),{systemProps:r,otherProps:o}=Im(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return Tt(l)?B({},r,l):r}:i=B({},r,t),B({},o,{sx:i})}const Fm=Object.freeze(Object.defineProperty({__proto__:null,default:wr,extendSxProp:Dm,unstable_createStyleFunctionSx:Za,unstable_defaultSxConfig:Bn},Symbol.toStringTag,{value:"Module"}));function Bm(e,t){return B({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Ln={black:"#000",white:"#fff"},zm={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"},Jt={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Xt={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},wn={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Qt={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},en={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},tn={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Vm=["mode","contrastThreshold","tonalOffset"],Fi={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:Ln.white,default:Ln.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}},Qr={text:{primary:Ln.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:Ln.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}};function Bi(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=pt.lighten(e.main,o):t==="dark"&&(e.dark=pt.darken(e.main,i)))}function Um(e="light"){return e==="dark"?{main:Qt[200],light:Qt[50],dark:Qt[400]}:{main:Qt[700],light:Qt[400],dark:Qt[800]}}function qm(e="light"){return e==="dark"?{main:Jt[200],light:Jt[50],dark:Jt[400]}:{main:Jt[500],light:Jt[300],dark:Jt[700]}}function Wm(e="light"){return e==="dark"?{main:Xt[500],light:Xt[300],dark:Xt[700]}:{main:Xt[700],light:Xt[400],dark:Xt[800]}}function Hm(e="light"){return e==="dark"?{main:en[400],light:en[300],dark:en[700]}:{main:en[700],light:en[500],dark:en[900]}}function Ym(e="light"){return e==="dark"?{main:tn[400],light:tn[300],dark:tn[700]}:{main:tn[800],light:tn[500],dark:tn[900]}}function Km(e="light"){return e==="dark"?{main:wn[400],light:wn[300],dark:wn[700]}:{main:"#ed6c02",light:wn[500],dark:wn[900]}}function Zm(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=_t(e,Vm),i=e.primary||Um(t),a=e.secondary||qm(t),l=e.error||Wm(t),c=e.info||Hm(t),u=e.success||Ym(t),m=e.warning||Km(t);function d(f){const x=pt.getContrastRatio(f,Qr.text.primary)>=n?Qr.text.primary:Fi.text.primary;if(process.env.NODE_ENV!=="production"){const E=pt.getContrastRatio(f,x);E<3&&console.error([`MUI: The contrast ratio of ${E}:1 for ${x} on ${f}`,"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(`
81
+ `)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}const Mm=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},Lm=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:as,StyledEngineProvider:is,ThemeContext:an.ThemeContext,css:an.css,default:jm,internal_processStyles:Mm,keyframes:an.keyframes},Symbol.toStringTag,{value:"Module"})),Nm=["sx"],Im=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Bn;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function Dm(e){const{sx:t}=e,n=_t(e,Nm),{systemProps:r,otherProps:o}=Im(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return Tt(l)?B({},r,l):r}:i=B({},r,t),B({},o,{sx:i})}const Fm=Object.freeze(Object.defineProperty({__proto__:null,default:wr,extendSxProp:Dm,unstable_createStyleFunctionSx:Za,unstable_defaultSxConfig:Bn},Symbol.toStringTag,{value:"Module"}));function Bm(e,t){return B({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Ln={black:"#000",white:"#fff"},zm={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"},Gt={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Jt={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},wn={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Xt={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Qt={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},en={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Vm=["mode","contrastThreshold","tonalOffset"],Di={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:Ln.white,default:Ln.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}},Qr={text:{primary:Ln.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:Ln.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}};function Fi(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=pt.lighten(e.main,o):t==="dark"&&(e.dark=pt.darken(e.main,i)))}function Um(e="light"){return e==="dark"?{main:Xt[200],light:Xt[50],dark:Xt[400]}:{main:Xt[700],light:Xt[400],dark:Xt[800]}}function qm(e="light"){return e==="dark"?{main:Gt[200],light:Gt[50],dark:Gt[400]}:{main:Gt[500],light:Gt[300],dark:Gt[700]}}function Wm(e="light"){return e==="dark"?{main:Jt[500],light:Jt[300],dark:Jt[700]}:{main:Jt[700],light:Jt[400],dark:Jt[800]}}function Hm(e="light"){return e==="dark"?{main:Qt[400],light:Qt[300],dark:Qt[700]}:{main:Qt[700],light:Qt[500],dark:Qt[900]}}function Ym(e="light"){return e==="dark"?{main:en[400],light:en[300],dark:en[700]}:{main:en[800],light:en[500],dark:en[900]}}function Km(e="light"){return e==="dark"?{main:wn[400],light:wn[300],dark:wn[700]}:{main:"#ed6c02",light:wn[500],dark:wn[900]}}function Zm(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=_t(e,Vm),i=e.primary||Um(t),a=e.secondary||qm(t),l=e.error||Wm(t),c=e.info||Hm(t),u=e.success||Ym(t),m=e.warning||Km(t);function d(f){const x=pt.getContrastRatio(f,Qr.text.primary)>=n?Qr.text.primary:Di.text.primary;if(process.env.NODE_ENV!=="production"){const E=pt.getContrastRatio(f,x);E<3&&console.error([`MUI: The contrast ratio of ${E}:1 for ${x} on ${f}`,"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(`
82
82
  `))}return x}const p=({color:f,name:x,mainShade:E=500,lightShade:T=300,darkShade:k=700})=>{if(f=B({},f),!f.main&&f[E]&&(f.main=f[E]),!f.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
83
83
  The color object needs to have a \`main\` property or a \`${E}\` property.`:$n(11,x?` (${x})`:"",E));if(typeof f.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
84
84
  \`color.main\` should be a string, but \`${JSON.stringify(f.main)}\` was provided instead.
@@ -93,6 +93,6 @@ const theme1 = createTheme({ palette: {
93
93
 
94
94
  const theme2 = createTheme({ palette: {
95
95
  primary: { main: green[500] },
96
- } });`:$n(12,x?` (${x})`:"",JSON.stringify(f.main)));return Bi(f,"light",T,r),Bi(f,"dark",k,r),f.contrastText||(f.contrastText=d(f.main)),f},_={dark:Qr,light:Fi};return process.env.NODE_ENV!=="production"&&(_[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),ht(B({common:B({},Ln),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:m,name:"warning"}),info:p({color:c,name:"info"}),success:p({color:u,name:"success"}),grey:zm,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},_[t]),o)}const Gm=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Jm(e){return Math.round(e*1e5)/1e5}const zi={textTransform:"uppercase"},Vi='"Roboto", "Helvetica", "Arial", sans-serif';function Xm(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Vi,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:m,pxToRem:d}=n,p=_t(n,Gm);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 _=o/14,b=d||(E=>`${E/u*_}rem`),f=(E,T,k,j,C)=>B({fontFamily:r,fontWeight:E,fontSize:b(T),lineHeight:k},r===Vi?{letterSpacing:`${Jm(j/T)}em`}:{},C,m),x={h1:f(i,96,1.167,-1.5),h2:f(i,60,1.2,-.5),h3:f(a,48,1.167,0),h4:f(a,34,1.235,.25),h5:f(a,24,1.334,0),h6:f(l,20,1.6,.15),subtitle1:f(a,16,1.75,.15),subtitle2:f(l,14,1.57,.1),body1:f(a,16,1.5,.15),body2:f(a,14,1.43,.15),button:f(l,14,1.75,.4,zi),caption:f(a,12,1.66,.4),overline:f(a,12,2.66,1,zi),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ht(B({htmlFontSize:u,pxToRem:b,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:c},x),p,{clone:!1})}const Qm=.2,ep=.14,tp=.12;function ke(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Qm})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${ep})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${tp})`].join(",")}const np=["none",ke(0,2,1,-1,0,1,1,0,0,1,3,0),ke(0,3,1,-2,0,2,2,0,0,1,5,0),ke(0,3,3,-2,0,3,4,0,0,1,8,0),ke(0,2,4,-1,0,4,5,0,0,1,10,0),ke(0,3,5,-1,0,5,8,0,0,1,14,0),ke(0,3,5,-1,0,6,10,0,0,1,18,0),ke(0,4,5,-2,0,7,10,1,0,2,16,1),ke(0,5,5,-3,0,8,10,1,0,3,14,2),ke(0,5,6,-3,0,9,12,1,0,3,16,2),ke(0,6,6,-3,0,10,14,1,0,4,18,3),ke(0,6,7,-4,0,11,15,1,0,4,20,3),ke(0,7,8,-4,0,12,17,2,0,5,22,4),ke(0,7,8,-4,0,13,19,2,0,5,24,4),ke(0,7,9,-4,0,14,21,2,0,5,26,4),ke(0,8,9,-5,0,15,22,2,0,6,28,5),ke(0,8,10,-5,0,16,24,2,0,6,30,5),ke(0,8,11,-5,0,17,26,2,0,6,32,5),ke(0,9,11,-5,0,18,28,2,0,7,34,6),ke(0,9,12,-6,0,19,29,2,0,7,36,6),ke(0,10,13,-6,0,20,31,3,0,8,38,7),ke(0,10,13,-6,0,21,33,3,0,8,40,7),ke(0,10,14,-6,0,22,35,3,0,8,42,7),ke(0,11,14,-7,0,23,36,3,0,9,44,8),ke(0,11,15,-7,0,24,38,3,0,9,46,8)],rp=["duration","easing","delay"],op={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)"},ip={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Ui(e){return`${Math.round(e)}ms`}function ap(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function sp(e){const t=B({},op,e.easing),n=B({},ip,e.duration);return B({getAutoHeightDuration:ap,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:c=0}=i,u=_t(i,rp);if(process.env.NODE_ENV!=="production"){const m=p=>typeof p=="string",d=p=>!isNaN(parseFloat(p));!m(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!d(a)&&!m(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),m(l)||console.error('MUI: Argument "easing" must be a string.'),!d(c)&&!m(c)&&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(`
97
- `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(m=>`${m} ${typeof a=="string"?a:Ui(a)} ${l} ${typeof c=="string"?c:Ui(c)}`).join(",")}},e,{easing:t,duration:n})}const lp={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},cp=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function up(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=_t(e,cp);if(e.vars&&e.generateCssVars===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.":$n(18));const l=Zm(r),c=Ja(e);let u=ht(c,{mixins:Bm(c.breakpoints,n),palette:l,shadows:np.slice(),typography:Xm(l,i),transitions:sp(o),zIndex:B({},lp)});if(u=ht(u,a),u=t.reduce((m,d)=>ht(m,d),u),process.env.NODE_ENV!=="production"){const m=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],d=(p,_)=>{let b;for(b in p){const f=p[b];if(m.indexOf(b)!==-1&&Object.keys(f).length>0){if(process.env.NODE_ENV!=="production"){const x=ko("",b);console.error([`MUI: The \`${_}\` component increases the CSS specificity of the \`${b}\` internal state.`,"You can not override it like this: ",JSON.stringify(p,null,2),"",`Instead, you need to use the '&.${x}' syntax:`,JSON.stringify({root:{[`&.${x}`]:f}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
98
- `))}p[b]={}}}};Object.keys(u.components).forEach(p=>{const _=u.components[p].styleOverrides;_&&p.indexOf("Mui")===0&&d(_,p)})}return u.unstable_sxConfig=B({},Bn,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return wr({sx:d,theme:this})},u}const dp=up(),fp="$$material";var It={},eo={exports:{}},qi;function mp(){return qi||(qi=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)({}).hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(eo)),eo.exports}var to={exports:{}},Wi;function pp(){return Wi||(Wi=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.indexOf(i)!==-1)continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(to)),to.exports}const hp=Rt(Lm),gp=Rt(jd),yp=Rt(Bd),vp=Rt(Fd),bp=Rt(nm),_p=Rt(Fm);var Hi;function Cp(){if(Hi)return It;Hi=1;var e=Ba();Object.defineProperty(It,"__esModule",{value:!0}),It.default=z,It.shouldForwardProp=x,It.systemDefaultTheme=void 0;var t=e(mp()),n=e(pp()),r=_(hp),o=gp,i=e(yp),a=e(vp),l=e(bp),c=e(_p);const u=["ownerState"],m=["variants"],d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p(y){if(typeof WeakMap!="function")return null;var w=new WeakMap,S=new WeakMap;return(p=function(A){return A?S:w})(y)}function _(y,w){if(y&&y.__esModule)return y;if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var S=p(w);if(S&&S.has(y))return S.get(y);var A={__proto__:null},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var H in y)if(H!=="default"&&Object.prototype.hasOwnProperty.call(y,H)){var V=N?Object.getOwnPropertyDescriptor(y,H):null;V&&(V.get||V.set)?Object.defineProperty(A,H,V):A[H]=y[H]}return A.default=y,S&&S.set(y,A),A}function b(y){return Object.keys(y).length===0}function f(y){return typeof y=="string"&&y.charCodeAt(0)>96}function x(y){return y!=="ownerState"&&y!=="theme"&&y!=="sx"&&y!=="as"}const E=It.systemDefaultTheme=(0,l.default)(),T=y=>y&&y.charAt(0).toLowerCase()+y.slice(1);function k({defaultTheme:y,theme:w,themeId:S}){return b(w)?y:w[S]||w}function j(y){return y?(w,S)=>S[y]:null}function C(y,w){let{ownerState:S}=w,A=(0,n.default)(w,u);const N=typeof y=="function"?y((0,t.default)({ownerState:S},A)):y;if(Array.isArray(N))return N.flatMap(H=>C(H,(0,t.default)({ownerState:S},A)));if(N&&typeof N=="object"&&Array.isArray(N.variants)){const{variants:H=[]}=N;let ce=(0,n.default)(N,m);return H.forEach(Y=>{let ie=!0;typeof Y.props=="function"?ie=Y.props((0,t.default)({ownerState:S},A,S)):Object.keys(Y.props).forEach(re=>{(S==null?void 0:S[re])!==Y.props[re]&&A[re]!==Y.props[re]&&(ie=!1)}),ie&&(Array.isArray(ce)||(ce=[ce]),ce.push(typeof Y.style=="function"?Y.style((0,t.default)({ownerState:S},A,S)):Y.style))}),ce}return N}function z(y={}){const{themeId:w,defaultTheme:S=E,rootShouldForwardProp:A=x,slotShouldForwardProp:N=x}=y,H=V=>(0,c.default)((0,t.default)({},V,{theme:k((0,t.default)({},V,{defaultTheme:S,themeId:w}))}));return H.__mui_systemSx=!0,(V,ce={})=>{(0,r.internal_processStyles)(V,U=>U.filter(G=>!(G!=null&&G.__mui_systemSx)));const{name:Y,slot:ie,skipVariantsResolver:re,skipSx:we,overridesResolver:Ae=j(T(ie))}=ce,O=(0,n.default)(ce,d),M=re!==void 0?re:ie&&ie!=="Root"&&ie!=="root"||!1,Q=we||!1;let q;process.env.NODE_ENV!=="production"&&Y&&(q=`${Y}-${T(ie||"Root")}`);let F=x;ie==="Root"||ie==="root"?F=A:ie?F=N:f(V)&&(F=void 0);const ee=(0,r.default)(V,(0,t.default)({shouldForwardProp:F,label:q},O)),Z=U=>typeof U=="function"&&U.__emotion_real!==U||(0,o.isPlainObject)(U)?G=>C(U,(0,t.default)({},G,{theme:k({theme:G.theme,defaultTheme:S,themeId:w})})):U,K=(U,...G)=>{let ne=Z(U);const be=G?G.map(Z):[];Y&&Ae&&be.push(ae=>{const se=k((0,t.default)({},ae,{defaultTheme:S,themeId:w}));if(!se.components||!se.components[Y]||!se.components[Y].styleOverrides)return null;const Re=se.components[Y].styleOverrides,Ue={};return Object.entries(Re).forEach(([qe,dt])=>{Ue[qe]=C(dt,(0,t.default)({},ae,{theme:se}))}),Ae(ae,Ue)}),Y&&!M&&be.push(ae=>{var se;const Re=k((0,t.default)({},ae,{defaultTheme:S,themeId:w})),Ue=Re==null||(se=Re.components)==null||(se=se[Y])==null?void 0:se.variants;return C({variants:Ue},(0,t.default)({},ae,{theme:Re}))}),Q||be.push(H);const P=be.length-G.length;if(Array.isArray(U)&&P>0){const ae=new Array(P).fill("");ne=[...U,...ae],ne.raw=[...U.raw,...ae]}const _e=ee(ne,...be);if(process.env.NODE_ENV!=="production"){let ae;Y&&(ae=`${Y}${(0,i.default)(ie||"")}`),ae===void 0&&(ae=`Styled(${(0,a.default)(V)})`),_e.displayName=ae}return V.muiName&&(_e.muiName=V.muiName),_e};return ee.withConfig&&(K.withConfig=ee.withConfig),K}}return It}var xp=Cp();const Ep=Zi(xp);function jo(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Sp=e=>jo(e)&&e!=="classes",Bt=Ep({themeId:fp,defaultTheme:dp,rootShouldForwardProp:Sp}),Tp=X.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function wp(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?uo(o.defaultProps,r):!o.styleOverrides&&!o.variants?uo(o,r):r}function kp({props:e,name:t}){const n=X.useContext(Tp);return wp({props:e,name:t,theme:{components:n}})}process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function Rp(e){return kp(e)}const Op=e=>!e||!An(e);function Ap(e){return ko("MuiSlider",e)}const st=ef("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"]),Pp=e=>{const{open:t}=e;return{offset:kt(t&&st.valueLabelOpen),circle:st.valueLabelCircle,label:st.valueLabelLabel}};function ss(e){const{children:t,className:n,value:r}=e,o=Pp(e);return t?X.cloneElement(t,{className:kt(t.props.className)},g.jsxs(X.Fragment,{children:[t.props.children,g.jsx("span",{className:kt(o.offset,n),"aria-hidden":!0,children:g.jsx("span",{className:o.circle,children:g.jsx("span",{className:o.label,children:r})})})]})):null}process.env.NODE_ENV!=="production"&&(ss.propTypes={children:s.element.isRequired,className:s.string,value:s.node});const $p=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Yi(e){return e}const jp=Bt("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ut(n.color)}`],n.size!=="medium"&&t[`size${ut(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${st.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${st.dragging}`]:{[`& .${st.thumb}, & .${st.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{color:(e.vars||e).palette[n].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}}]}}),Mp=Bt("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.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}}]}),Lp=Bt("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{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.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n,track:"inverted"},style:B({},e.vars?{backgroundColor:e.vars.palette.Slider[`${n}Track`],borderColor:e.vars.palette.Slider[`${n}Track`]}:B({backgroundColor:pt.lighten(e.palette[n].main,.62),borderColor:pt.lighten(e.palette[n].main,.62)},e.applyStyles("dark",{backgroundColor:pt.darken(e.palette[n].main,.5)}),e.applyStyles("dark",{borderColor:pt.darken(e.palette[n].main,.5)})))}))]}}),Np=Bt("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${ut(n.color)}`],n.size!=="medium"&&t[`thumbSize${ut(n.size)}`]]}})(({theme:e})=>{var t;return{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%)"},[`&.${st.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.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{[`&:hover, &.${st.focusVisible}`]:B({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${pt.alpha(e.palette[n].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${st.active}`]:B({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${pt.alpha(e.palette[n].main,.16)}`})}}))]}}),Ip=Bt(ss,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>B({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%"},[`&.${st.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%"},[`&.${st.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"}}]})),Dp=Bt("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>jo(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({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}}]})),Fp=Bt("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>jo(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>B({},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}}]})),Bp=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:a,color:l,size:c}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",l&&`color${ut(l)}`,c&&`size${ut(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${ut(c)}`,l&&`thumbColor${ut(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return _d(u,Ap,a)},zp=({children:e})=>e,ls=X.forwardRef(function(t,n){var r,o,i,a,l,c,u,m,d,p,_,b,f,x,E,T,k,j,C,z,y,w,S,A;const N=Rp({props:t,name:"MuiSlider"}),H=kd(),{"aria-label":V,"aria-valuetext":ce,"aria-labelledby":Y,component:ie="span",components:re={},componentsProps:we={},color:Ae="primary",classes:O,className:M,disableSwap:Q=!1,disabled:q=!1,getAriaLabel:F,getAriaValueText:ee,marks:Z=!1,max:K=100,min:U=0,orientation:G="horizontal",shiftStep:ne=10,size:be="medium",step:P=1,scale:_e=Yi,slotProps:ae,slots:se,track:Re="normal",valueLabelDisplay:Ue="off",valueLabelFormat:qe=Yi}=N,dt=_t(N,$p),De=B({},N,{isRtl:H,max:K,min:U,classes:O,disabled:q,disableSwap:Q,orientation:G,marks:Z,color:Ae,size:be,step:P,shiftStep:ne,scale:_e,track:Re,valueLabelDisplay:Ue,valueLabelFormat:qe}),{axisProps:Ct,getRootProps:Pt,getHiddenInputProps:hn,getThumbProps:gn,open:yn,active:zt,axis:xt,focusedThumbIndex:$,range:D,dragging:W,marks:fe,values:me,trackOffset:de,trackLeap:Je,getThumbStyle:rt}=cf(B({},De,{rootRef:n}));De.marked=fe.length>0&&fe.some(J=>J.label),De.dragging=W,De.focusedThumbIndex=$;const pe=Bp(De),Ye=(r=(o=se==null?void 0:se.root)!=null?o:re.Root)!=null?r:jp,ft=(i=(a=se==null?void 0:se.rail)!=null?a:re.Rail)!=null?i:Mp,vn=(l=(c=se==null?void 0:se.track)!=null?c:re.Track)!=null?l:Lp,yt=(u=(m=se==null?void 0:se.thumb)!=null?m:re.Thumb)!=null?u:Np,Vt=(d=(p=se==null?void 0:se.valueLabel)!=null?p:re.ValueLabel)!=null?d:Ip,$t=(_=(b=se==null?void 0:se.mark)!=null?b:re.Mark)!=null?_:Dp,Ut=(f=(x=se==null?void 0:se.markLabel)!=null?x:re.MarkLabel)!=null?f:Fp,Vn=(E=(T=se==null?void 0:se.input)!=null?T:re.Input)!=null?E:"input",qt=(k=ae==null?void 0:ae.root)!=null?k:we.root,Ar=(j=ae==null?void 0:ae.rail)!=null?j:we.rail,Wt=(C=ae==null?void 0:ae.track)!=null?C:we.track,Ht=(z=ae==null?void 0:ae.thumb)!=null?z:we.thumb,bn=(y=ae==null?void 0:ae.valueLabel)!=null?y:we.valueLabel,Pr=(w=ae==null?void 0:ae.mark)!=null?w:we.mark,Un=(S=ae==null?void 0:ae.markLabel)!=null?S:we.markLabel,qn=(A=ae==null?void 0:ae.input)!=null?A:we.input,$r=St({elementType:Ye,getSlotProps:Pt,externalSlotProps:qt,externalForwardedProps:dt,additionalProps:B({},Op(Ye)&&{as:ie}),ownerState:B({},De,qt==null?void 0:qt.ownerState),className:[pe.root,M]}),jr=St({elementType:ft,externalSlotProps:Ar,ownerState:De,className:pe.rail}),Mr=St({elementType:vn,externalSlotProps:Wt,additionalProps:{style:B({},Ct[xt].offset(de),Ct[xt].leap(Je))},ownerState:B({},De,Wt==null?void 0:Wt.ownerState),className:pe.track}),_n=St({elementType:yt,getSlotProps:gn,externalSlotProps:Ht,ownerState:B({},De,Ht==null?void 0:Ht.ownerState),className:pe.thumb}),h=St({elementType:Vt,externalSlotProps:bn,ownerState:B({},De,bn==null?void 0:bn.ownerState),className:pe.valueLabel}),R=St({elementType:$t,externalSlotProps:Pr,ownerState:De,className:pe.mark}),I=St({elementType:Ut,externalSlotProps:Un,ownerState:De,className:pe.markLabel}),te=St({elementType:Vn,getSlotProps:hn,externalSlotProps:qn,ownerState:De});return g.jsxs(Ye,B({},$r,{children:[g.jsx(ft,B({},jr)),g.jsx(vn,B({},Mr)),fe.filter(J=>J.value>=U&&J.value<=K).map((J,oe)=>{const ue=fr(J.value,U,K),le=Ct[xt].offset(ue);let Se;return Re===!1?Se=me.indexOf(J.value)!==-1:Se=Re==="normal"&&(D?J.value>=me[0]&&J.value<=me[me.length-1]:J.value<=me[0])||Re==="inverted"&&(D?J.value<=me[0]||J.value>=me[me.length-1]:J.value>=me[0]),g.jsxs(X.Fragment,{children:[g.jsx($t,B({"data-index":oe},R,!An($t)&&{markActive:Se},{style:B({},le,R.style),className:kt(R.className,Se&&pe.markActive)})),J.label!=null?g.jsx(Ut,B({"aria-hidden":!0,"data-index":oe},I,!An(Ut)&&{markLabelActive:Se},{style:B({},le,I.style),className:kt(pe.markLabel,I.className,Se&&pe.markLabelActive),children:J.label})):null]},oe)}),me.map((J,oe)=>{const ue=fr(J,U,K),le=Ct[xt].offset(ue),Se=Ue==="off"?zp:Vt;return g.jsx(Se,B({},!An(Se)&&{valueLabelFormat:qe,valueLabelDisplay:Ue,value:typeof qe=="function"?qe(_e(J),oe):qe,index:oe,open:yn===oe||zt===oe||Ue==="on",disabled:q},h,{children:g.jsx(yt,B({"data-index":oe},_n,{className:kt(pe.thumb,_n.className,zt===oe&&pe.active,$===oe&&pe.focusVisible),style:B({},le,rt(oe),_n.style),children:g.jsx(Vn,B({"data-index":oe,"aria-label":F?F(oe):V,"aria-valuenow":_e(J),"aria-labelledby":Y,"aria-valuetext":ee?ee(_e(J),oe):ce,value:me[oe]},te))}))}),oe)})]}))});process.env.NODE_ENV!=="production"&&(ls.propTypes={"aria-label":Ci(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":Ci(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.number,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.number,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 Vp="_slider_a19yo_2",Up="_playButton_a19yo_17",qp="_hover_a19yo_20",Wp="_sliderOpen_a19yo_28",Hp="_sliderResults_a19yo_32",kn={slider:Vp,playButton:Up,hover:qp,sliderOpen:Wp,sliderResults:Hp},cs=({onResults:e=!1,defaultYear:t=2025,firstYear:n=2025,lastYear:r=2050,zIndex:o=10,rightBarOpen:i=!1})=>{const[a,l]=v.useState(t),c=wt.useDispatch(),u=(E,T)=>{l(T),c(Zr(T-2e3))},[m,d]=v.useState(!1),p=()=>{d(!0)},_=()=>{d(!1)};((E,T)=>{const k=v.useRef();v.useEffect(()=>{k.current=E},[E]),v.useEffect(()=>{function j(){k.current()}{let C=setInterval(j,T);return()=>clearInterval(C)}},[T])})(()=>{m&&(a!=2050?(l(a+1),c(Zr(a-2e3+1))):(l(2025),c(Zr(25))))},1e3);const f=Io.createTheme({palette:{primary:{main:"#605b56"}},components:{MuiSlider:{styleOverrides:{mark:{height:10,backgroundColor:"#605b56"},valueLabel:{backgroundColor:"transparent",color:"#605b56",padding:0,top:3}}}}}),x=[{label:"",value:2025},{label:"",value:2032},{label:"",value:2041},{label:"",value:2050}];return g.jsx(an.ThemeProvider,{theme:f,children:g.jsxs(Io.Box,{sx:{width:400},className:`${e?kn.sliderResults:kn.slider} ${i?kn.sliderOpen:""}`,style:{zIndex:o},children:[n,g.jsx(ls,{"aria-label":"TimeSlider",value:a,valueLabelDisplay:"on",step:1,marks:x,min:n,max:r,onChange:u,color:"primary",size:"small"}),r,!m&&g.jsx("button",{className:kn.playButton,onClick:p,children:g.jsx("img",{src:vd,alt:"Play"})}),m&&g.jsx("button",{className:kn.playButton,onClick:_,children:g.jsx("img",{src:bd,alt:"Pause"})})]})})};cs.propTypes={defaultYear:s.number,onResults:s.bool,firstYear:s.number,lastYear:s.number,zIndex:s.number,rightBarOpen:s.bool};const Yp="_TopNavMenuContainer_1j1d1_2",Kp="_topNavOptions_1j1d1_11",Zp="_active_1j1d1_22",no={TopNavMenuContainer:Yp,topNavOptions:Kp,active:Zp},us=({options:e=[],cssProps:t={}})=>{const{t:n}=je.useTranslation(),r=t.textColor||"inherit";return t.borderColor,g.jsx("div",{className:no.TopNavMenuContainer,children:e.map((o,i)=>g.jsx(ws.NavLink,{to:o.url,className:({isActive:a})=>`${no.topNavOptions} ${a?no.active:""}`,style:{color:r},children:n(o.name)},i))})};us.propTypes={options:s.arrayOf(s.object),cssProps:s.shape({borderColor:s.string.isRequired,textColor:s.string.isRequired})};const Gp=go.createSlice({name:"userSlice",initialState:{user:{isLoggedIn:!1,username:""},showLogIn:!1,showUserMenu:!1},reducers:{setShowLogIn:(e,t)=>{e.showLogIn=t.payload},setShowUserMenu:(e,t)=>{e.showUserMenu=t.payload}}}),{setShowLogIn:Jp,setShowUserMenu:Xp}=Gp.actions,Qp="_UserMenuTrigger_uglss_2",e0={UserMenuTrigger:Qp},ds=({cssClass:e,loginLocale:t="login"})=>{const n=wt.useDispatch(),r=wt.useSelector(l=>l.userState.user.isLoggedIn),o=wt.useSelector(l=>l.userState.user.username),{t:i}=je.useTranslation(),a=()=>{n(r?Jp(!0):Xp(!0))};return g.jsx("div",{className:`${e0.UserMenuTrigger} link ${e}`,onClick:a,children:r?o:i(t)})};ds.propTypes={onClickLoggedIn:s.func.isRequired,onClickLoggedOut:s.func.isRequired,log:s.bool,name:s.string,cssClass:s.string,loginLocale:s.string};const t0="_header_1w621_2",n0="_leftComponents_1w621_12",r0="_centerComponents_1w621_13",o0="_rightComponents_1w621_14",rr={header:t0,leftComponents:n0,centerComponents:r0,rightComponents:o0},fs=({cssProps:e,leftComponents:t=[],centerComponents:n=[],rightComponents:r=[]})=>g.jsxs("div",{className:rr.header,style:e,children:[g.jsx("div",{className:rr.leftComponents,style:{height:e.height},children:t.map((o,i)=>g.jsx("div",{style:{height:e.height},children:o},i))}),g.jsx("div",{className:rr.centerComponents,style:{height:e.height},children:n.map((o,i)=>g.jsx("div",{style:{height:e.height},children:o},i))}),g.jsx("div",{className:rr.rightComponents,style:{height:e.height},children:r.map((o,i)=>g.jsx("div",{style:{height:e.height},children:o},i))})]});fs.propTypes={cssProps:s.shape({backgroundColor:s.string.isRequired,height:s.string.isRequired,borderColor:s.string,textColor:s.string}),leftComponents:s.arrayOf(s.node),centerComponents:s.arrayOf(s.node),rightComponents:s.arrayOf(s.node)};const i0=go.createSlice({name:"rightBar",initialState:{showRightBar:!0,children:"",width:"500px"},reducers:{toggleRightBar:e=>{e.showRightBar=!e.showRightBar},setShowRightBar:(e,t)=>{e.showRightBar=t.payload},setRightBarChildren:(e,t)=>{e.children=t.payload},setRightBarWidth:(e,t)=>{e.width=t.payload}}}),{toggleRightBar:E0,setShowRightBar:a0,setRightBarChildren:S0,setRightBarWidth:T0}=i0.actions,s0="_sidebar_1jqo2_2",l0="_open_1jqo2_16",c0="_content_1jqo2_20",u0="_closeButton_1jqo2_26",or={sidebar:s0,open:l0,content:c0,closeButton:u0},ms=({width:e="300px",children:t})=>{const n=wt.useSelector(i=>i.rightBarState.showRightBar),r=wt.useDispatch(),o=()=>{r(a0(!1))};return g.jsx("div",{className:`${or.sidebar} ${n?or.open:""}`,style:{width:n?e:0},children:n&&g.jsxs("div",{className:or.content,children:[g.jsx("button",{className:or.closeButton,onClick:o,children:"×"}),t]})})};ms.propTypes={width:s.string,children:s.node};exports.AmbitSelector=Qi;exports.ButtonsList=ea;exports.DropdownList=Ot;exports.EditAmbit=pl;exports.FiltersAmbit=Il;exports.Graphic=ca;exports.HeaderSection=fs;exports.IndicatorsList=fa;exports.LangSelector=ma;exports.Legend=pa;exports.LogoApp=ha;exports.MapboxMap=ya;exports.MaplibreMap=Ia;exports.RightSidebar=ms;exports.SectionBar=Da;exports.TimeSlider=cs;exports.Tooltip=vo;exports.TopNavMenu=us;exports.UserMenuTrigger=ds;
96
+ } });`:$n(12,x?` (${x})`:"",JSON.stringify(f.main)));return Fi(f,"light",T,r),Fi(f,"dark",k,r),f.contrastText||(f.contrastText=d(f.main)),f},_={dark:Qr,light:Di};return process.env.NODE_ENV!=="production"&&(_[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),ht(B({common:B({},Ln),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:m,name:"warning"}),info:p({color:c,name:"info"}),success:p({color:u,name:"success"}),grey:zm,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},_[t]),o)}const Gm=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Jm(e){return Math.round(e*1e5)/1e5}const Bi={textTransform:"uppercase"},zi='"Roboto", "Helvetica", "Arial", sans-serif';function Xm(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=zi,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:m,pxToRem:d}=n,p=_t(n,Gm);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 _=o/14,b=d||(E=>`${E/u*_}rem`),f=(E,T,k,j,C)=>B({fontFamily:r,fontWeight:E,fontSize:b(T),lineHeight:k},r===zi?{letterSpacing:`${Jm(j/T)}em`}:{},C,m),x={h1:f(i,96,1.167,-1.5),h2:f(i,60,1.2,-.5),h3:f(a,48,1.167,0),h4:f(a,34,1.235,.25),h5:f(a,24,1.334,0),h6:f(l,20,1.6,.15),subtitle1:f(a,16,1.75,.15),subtitle2:f(l,14,1.57,.1),body1:f(a,16,1.5,.15),body2:f(a,14,1.43,.15),button:f(l,14,1.75,.4,Bi),caption:f(a,12,1.66,.4),overline:f(a,12,2.66,1,Bi),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ht(B({htmlFontSize:u,pxToRem:b,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:c},x),p,{clone:!1})}const Qm=.2,ep=.14,tp=.12;function ke(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Qm})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${ep})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${tp})`].join(",")}const np=["none",ke(0,2,1,-1,0,1,1,0,0,1,3,0),ke(0,3,1,-2,0,2,2,0,0,1,5,0),ke(0,3,3,-2,0,3,4,0,0,1,8,0),ke(0,2,4,-1,0,4,5,0,0,1,10,0),ke(0,3,5,-1,0,5,8,0,0,1,14,0),ke(0,3,5,-1,0,6,10,0,0,1,18,0),ke(0,4,5,-2,0,7,10,1,0,2,16,1),ke(0,5,5,-3,0,8,10,1,0,3,14,2),ke(0,5,6,-3,0,9,12,1,0,3,16,2),ke(0,6,6,-3,0,10,14,1,0,4,18,3),ke(0,6,7,-4,0,11,15,1,0,4,20,3),ke(0,7,8,-4,0,12,17,2,0,5,22,4),ke(0,7,8,-4,0,13,19,2,0,5,24,4),ke(0,7,9,-4,0,14,21,2,0,5,26,4),ke(0,8,9,-5,0,15,22,2,0,6,28,5),ke(0,8,10,-5,0,16,24,2,0,6,30,5),ke(0,8,11,-5,0,17,26,2,0,6,32,5),ke(0,9,11,-5,0,18,28,2,0,7,34,6),ke(0,9,12,-6,0,19,29,2,0,7,36,6),ke(0,10,13,-6,0,20,31,3,0,8,38,7),ke(0,10,13,-6,0,21,33,3,0,8,40,7),ke(0,10,14,-6,0,22,35,3,0,8,42,7),ke(0,11,14,-7,0,23,36,3,0,9,44,8),ke(0,11,15,-7,0,24,38,3,0,9,46,8)],rp=["duration","easing","delay"],op={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)"},ip={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Vi(e){return`${Math.round(e)}ms`}function ap(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function sp(e){const t=B({},op,e.easing),n=B({},ip,e.duration);return B({getAutoHeightDuration:ap,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:c=0}=i,u=_t(i,rp);if(process.env.NODE_ENV!=="production"){const m=p=>typeof p=="string",d=p=>!isNaN(parseFloat(p));!m(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!d(a)&&!m(a)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${a}.`),m(l)||console.error('MUI: Argument "easing" must be a string.'),!d(c)&&!m(c)&&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(`
97
+ `)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(m=>`${m} ${typeof a=="string"?a:Vi(a)} ${l} ${typeof c=="string"?c:Vi(c)}`).join(",")}},e,{easing:t,duration:n})}const lp={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},cp=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function up(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=_t(e,cp);if(e.vars&&e.generateCssVars===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.":$n(18));const l=Zm(r),c=Ja(e);let u=ht(c,{mixins:Bm(c.breakpoints,n),palette:l,shadows:np.slice(),typography:Xm(l,i),transitions:sp(o),zIndex:B({},lp)});if(u=ht(u,a),u=t.reduce((m,d)=>ht(m,d),u),process.env.NODE_ENV!=="production"){const m=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],d=(p,_)=>{let b;for(b in p){const f=p[b];if(m.indexOf(b)!==-1&&Object.keys(f).length>0){if(process.env.NODE_ENV!=="production"){const x=wo("",b);console.error([`MUI: The \`${_}\` component increases the CSS specificity of the \`${b}\` internal state.`,"You can not override it like this: ",JSON.stringify(p,null,2),"",`Instead, you need to use the '&.${x}' syntax:`,JSON.stringify({root:{[`&.${x}`]:f}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
98
+ `))}p[b]={}}}};Object.keys(u.components).forEach(p=>{const _=u.components[p].styleOverrides;_&&p.indexOf("Mui")===0&&d(_,p)})}return u.unstable_sxConfig=B({},Bn,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(d){return wr({sx:d,theme:this})},u}const dp=up(),fp="$$material";var Nt={},eo={exports:{}},Ui;function mp(){return Ui||(Ui=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)({}).hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(eo)),eo.exports}var to={exports:{}},qi;function pp(){return qi||(qi=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.indexOf(i)!==-1)continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(to)),to.exports}const hp=kt(Lm),gp=kt(jd),yp=kt(Bd),vp=kt(Fd),bp=kt(nm),_p=kt(Fm);var Wi;function Cp(){if(Wi)return Nt;Wi=1;var e=Ba();Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.default=z,Nt.shouldForwardProp=x,Nt.systemDefaultTheme=void 0;var t=e(mp()),n=e(pp()),r=_(hp),o=gp,i=e(yp),a=e(vp),l=e(bp),c=e(_p);const u=["ownerState"],m=["variants"],d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p(y){if(typeof WeakMap!="function")return null;var w=new WeakMap,S=new WeakMap;return(p=function(A){return A?S:w})(y)}function _(y,w){if(y&&y.__esModule)return y;if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var S=p(w);if(S&&S.has(y))return S.get(y);var A={__proto__:null},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var H in y)if(H!=="default"&&Object.prototype.hasOwnProperty.call(y,H)){var V=N?Object.getOwnPropertyDescriptor(y,H):null;V&&(V.get||V.set)?Object.defineProperty(A,H,V):A[H]=y[H]}return A.default=y,S&&S.set(y,A),A}function b(y){return Object.keys(y).length===0}function f(y){return typeof y=="string"&&y.charCodeAt(0)>96}function x(y){return y!=="ownerState"&&y!=="theme"&&y!=="sx"&&y!=="as"}const E=Nt.systemDefaultTheme=(0,l.default)(),T=y=>y&&y.charAt(0).toLowerCase()+y.slice(1);function k({defaultTheme:y,theme:w,themeId:S}){return b(w)?y:w[S]||w}function j(y){return y?(w,S)=>S[y]:null}function C(y,w){let{ownerState:S}=w,A=(0,n.default)(w,u);const N=typeof y=="function"?y((0,t.default)({ownerState:S},A)):y;if(Array.isArray(N))return N.flatMap(H=>C(H,(0,t.default)({ownerState:S},A)));if(N&&typeof N=="object"&&Array.isArray(N.variants)){const{variants:H=[]}=N;let ce=(0,n.default)(N,m);return H.forEach(Y=>{let ie=!0;typeof Y.props=="function"?ie=Y.props((0,t.default)({ownerState:S},A,S)):Object.keys(Y.props).forEach(re=>{(S==null?void 0:S[re])!==Y.props[re]&&A[re]!==Y.props[re]&&(ie=!1)}),ie&&(Array.isArray(ce)||(ce=[ce]),ce.push(typeof Y.style=="function"?Y.style((0,t.default)({ownerState:S},A,S)):Y.style))}),ce}return N}function z(y={}){const{themeId:w,defaultTheme:S=E,rootShouldForwardProp:A=x,slotShouldForwardProp:N=x}=y,H=V=>(0,c.default)((0,t.default)({},V,{theme:k((0,t.default)({},V,{defaultTheme:S,themeId:w}))}));return H.__mui_systemSx=!0,(V,ce={})=>{(0,r.internal_processStyles)(V,U=>U.filter(G=>!(G!=null&&G.__mui_systemSx)));const{name:Y,slot:ie,skipVariantsResolver:re,skipSx:we,overridesResolver:Ae=j(T(ie))}=ce,R=(0,n.default)(ce,d),M=re!==void 0?re:ie&&ie!=="Root"&&ie!=="root"||!1,Q=we||!1;let q;process.env.NODE_ENV!=="production"&&Y&&(q=`${Y}-${T(ie||"Root")}`);let F=x;ie==="Root"||ie==="root"?F=A:ie?F=N:f(V)&&(F=void 0);const ee=(0,r.default)(V,(0,t.default)({shouldForwardProp:F,label:q},R)),Z=U=>typeof U=="function"&&U.__emotion_real!==U||(0,o.isPlainObject)(U)?G=>C(U,(0,t.default)({},G,{theme:k({theme:G.theme,defaultTheme:S,themeId:w})})):U,K=(U,...G)=>{let ne=Z(U);const be=G?G.map(Z):[];Y&&Ae&&be.push(ae=>{const se=k((0,t.default)({},ae,{defaultTheme:S,themeId:w}));if(!se.components||!se.components[Y]||!se.components[Y].styleOverrides)return null;const Oe=se.components[Y].styleOverrides,Ue={};return Object.entries(Oe).forEach(([qe,dt])=>{Ue[qe]=C(dt,(0,t.default)({},ae,{theme:se}))}),Ae(ae,Ue)}),Y&&!M&&be.push(ae=>{var se;const Oe=k((0,t.default)({},ae,{defaultTheme:S,themeId:w})),Ue=Oe==null||(se=Oe.components)==null||(se=se[Y])==null?void 0:se.variants;return C({variants:Ue},(0,t.default)({},ae,{theme:Oe}))}),Q||be.push(H);const P=be.length-G.length;if(Array.isArray(U)&&P>0){const ae=new Array(P).fill("");ne=[...U,...ae],ne.raw=[...U.raw,...ae]}const _e=ee(ne,...be);if(process.env.NODE_ENV!=="production"){let ae;Y&&(ae=`${Y}${(0,i.default)(ie||"")}`),ae===void 0&&(ae=`Styled(${(0,a.default)(V)})`),_e.displayName=ae}return V.muiName&&(_e.muiName=V.muiName),_e};return ee.withConfig&&(K.withConfig=ee.withConfig),K}}return Nt}var xp=Cp();const Ep=Zi(xp);function $o(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Sp=e=>$o(e)&&e!=="classes",Ft=Ep({themeId:fp,defaultTheme:dp,rootShouldForwardProp:Sp}),Tp=X.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function wp(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?uo(o.defaultProps,r):!o.styleOverrides&&!o.variants?uo(o,r):r}function kp({props:e,name:t}){const n=X.useContext(Tp);return wp({props:e,name:t,theme:{components:n}})}process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function Op(e){return kp(e)}const Rp=e=>!e||!An(e);function Ap(e){return wo("MuiSlider",e)}const st=ef("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"]),Pp=e=>{const{open:t}=e;return{offset:wt(t&&st.valueLabelOpen),circle:st.valueLabelCircle,label:st.valueLabelLabel}};function ss(e){const{children:t,className:n,value:r}=e,o=Pp(e);return t?X.cloneElement(t,{className:wt(t.props.className)},g.jsxs(X.Fragment,{children:[t.props.children,g.jsx("span",{className:wt(o.offset,n),"aria-hidden":!0,children:g.jsx("span",{className:o.circle,children:g.jsx("span",{className:o.label,children:r})})})]})):null}process.env.NODE_ENV!=="production"&&(ss.propTypes={children:s.element.isRequired,className:s.string,value:s.node});const $p=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Hi(e){return e}const jp=Ft("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ut(n.color)}`],n.size!=="medium"&&t[`size${ut(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${st.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${st.dragging}`]:{[`& .${st.thumb}, & .${st.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{color:(e.vars||e).palette[n].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}}]}}),Mp=Ft("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.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}}]}),Lp=Ft("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{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.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n,track:"inverted"},style:B({},e.vars?{backgroundColor:e.vars.palette.Slider[`${n}Track`],borderColor:e.vars.palette.Slider[`${n}Track`]}:B({backgroundColor:pt.lighten(e.palette[n].main,.62),borderColor:pt.lighten(e.palette[n].main,.62)},e.applyStyles("dark",{backgroundColor:pt.darken(e.palette[n].main,.5)}),e.applyStyles("dark",{borderColor:pt.darken(e.palette[n].main,.5)})))}))]}}),Np=Ft("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${ut(n.color)}`],n.size!=="medium"&&t[`thumbSize${ut(n.size)}`]]}})(({theme:e})=>{var t;return{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%)"},[`&.${st.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.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{[`&:hover, &.${st.focusVisible}`]:B({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${pt.alpha(e.palette[n].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${st.active}`]:B({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${pt.alpha(e.palette[n].main,.16)}`})}}))]}}),Ip=Ft(ss,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>B({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%"},[`&.${st.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%"},[`&.${st.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"}}]})),Dp=Ft("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>$o(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({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}}]})),Fp=Ft("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>$o(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>B({},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}}]})),Bp=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:a,color:l,size:c}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",l&&`color${ut(l)}`,c&&`size${ut(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${ut(c)}`,l&&`thumbColor${ut(l)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return _d(u,Ap,a)},zp=({children:e})=>e,ls=X.forwardRef(function(t,n){var r,o,i,a,l,c,u,m,d,p,_,b,f,x,E,T,k,j,C,z,y,w,S,A;const N=Op({props:t,name:"MuiSlider"}),H=kd(),{"aria-label":V,"aria-valuetext":ce,"aria-labelledby":Y,component:ie="span",components:re={},componentsProps:we={},color:Ae="primary",classes:R,className:M,disableSwap:Q=!1,disabled:q=!1,getAriaLabel:F,getAriaValueText:ee,marks:Z=!1,max:K=100,min:U=0,orientation:G="horizontal",shiftStep:ne=10,size:be="medium",step:P=1,scale:_e=Hi,slotProps:ae,slots:se,track:Oe="normal",valueLabelDisplay:Ue="off",valueLabelFormat:qe=Hi}=N,dt=_t(N,$p),De=B({},N,{isRtl:H,max:K,min:U,classes:R,disabled:q,disableSwap:Q,orientation:G,marks:Z,color:Ae,size:be,step:P,shiftStep:ne,scale:_e,track:Oe,valueLabelDisplay:Ue,valueLabelFormat:qe}),{axisProps:Ct,getRootProps:At,getHiddenInputProps:hn,getThumbProps:gn,open:yn,active:Bt,axis:xt,focusedThumbIndex:$,range:D,dragging:W,marks:fe,values:me,trackOffset:de,trackLeap:Je,getThumbStyle:rt}=cf(B({},De,{rootRef:n}));De.marked=fe.length>0&&fe.some(J=>J.label),De.dragging=W,De.focusedThumbIndex=$;const pe=Bp(De),Ye=(r=(o=se==null?void 0:se.root)!=null?o:re.Root)!=null?r:jp,ft=(i=(a=se==null?void 0:se.rail)!=null?a:re.Rail)!=null?i:Mp,vn=(l=(c=se==null?void 0:se.track)!=null?c:re.Track)!=null?l:Lp,yt=(u=(m=se==null?void 0:se.thumb)!=null?m:re.Thumb)!=null?u:Np,zt=(d=(p=se==null?void 0:se.valueLabel)!=null?p:re.ValueLabel)!=null?d:Ip,Pt=(_=(b=se==null?void 0:se.mark)!=null?b:re.Mark)!=null?_:Dp,Vt=(f=(x=se==null?void 0:se.markLabel)!=null?x:re.MarkLabel)!=null?f:Fp,Vn=(E=(T=se==null?void 0:se.input)!=null?T:re.Input)!=null?E:"input",Ut=(k=ae==null?void 0:ae.root)!=null?k:we.root,Ar=(j=ae==null?void 0:ae.rail)!=null?j:we.rail,qt=(C=ae==null?void 0:ae.track)!=null?C:we.track,Wt=(z=ae==null?void 0:ae.thumb)!=null?z:we.thumb,bn=(y=ae==null?void 0:ae.valueLabel)!=null?y:we.valueLabel,Pr=(w=ae==null?void 0:ae.mark)!=null?w:we.mark,Un=(S=ae==null?void 0:ae.markLabel)!=null?S:we.markLabel,qn=(A=ae==null?void 0:ae.input)!=null?A:we.input,$r=St({elementType:Ye,getSlotProps:At,externalSlotProps:Ut,externalForwardedProps:dt,additionalProps:B({},Rp(Ye)&&{as:ie}),ownerState:B({},De,Ut==null?void 0:Ut.ownerState),className:[pe.root,M]}),jr=St({elementType:ft,externalSlotProps:Ar,ownerState:De,className:pe.rail}),Mr=St({elementType:vn,externalSlotProps:qt,additionalProps:{style:B({},Ct[xt].offset(de),Ct[xt].leap(Je))},ownerState:B({},De,qt==null?void 0:qt.ownerState),className:pe.track}),_n=St({elementType:yt,getSlotProps:gn,externalSlotProps:Wt,ownerState:B({},De,Wt==null?void 0:Wt.ownerState),className:pe.thumb}),h=St({elementType:zt,externalSlotProps:bn,ownerState:B({},De,bn==null?void 0:bn.ownerState),className:pe.valueLabel}),O=St({elementType:Pt,externalSlotProps:Pr,ownerState:De,className:pe.mark}),I=St({elementType:Vt,externalSlotProps:Un,ownerState:De,className:pe.markLabel}),te=St({elementType:Vn,getSlotProps:hn,externalSlotProps:qn,ownerState:De});return g.jsxs(Ye,B({},$r,{children:[g.jsx(ft,B({},jr)),g.jsx(vn,B({},Mr)),fe.filter(J=>J.value>=U&&J.value<=K).map((J,oe)=>{const ue=fr(J.value,U,K),le=Ct[xt].offset(ue);let Se;return Oe===!1?Se=me.indexOf(J.value)!==-1:Se=Oe==="normal"&&(D?J.value>=me[0]&&J.value<=me[me.length-1]:J.value<=me[0])||Oe==="inverted"&&(D?J.value<=me[0]||J.value>=me[me.length-1]:J.value>=me[0]),g.jsxs(X.Fragment,{children:[g.jsx(Pt,B({"data-index":oe},O,!An(Pt)&&{markActive:Se},{style:B({},le,O.style),className:wt(O.className,Se&&pe.markActive)})),J.label!=null?g.jsx(Vt,B({"aria-hidden":!0,"data-index":oe},I,!An(Vt)&&{markLabelActive:Se},{style:B({},le,I.style),className:wt(pe.markLabel,I.className,Se&&pe.markLabelActive),children:J.label})):null]},oe)}),me.map((J,oe)=>{const ue=fr(J,U,K),le=Ct[xt].offset(ue),Se=Ue==="off"?zp:zt;return g.jsx(Se,B({},!An(Se)&&{valueLabelFormat:qe,valueLabelDisplay:Ue,value:typeof qe=="function"?qe(_e(J),oe):qe,index:oe,open:yn===oe||Bt===oe||Ue==="on",disabled:q},h,{children:g.jsx(yt,B({"data-index":oe},_n,{className:wt(pe.thumb,_n.className,Bt===oe&&pe.active,$===oe&&pe.focusVisible),style:B({},le,rt(oe),_n.style),children:g.jsx(Vn,B({"data-index":oe,"aria-label":F?F(oe):V,"aria-valuenow":_e(J),"aria-labelledby":Y,"aria-valuetext":ee?ee(_e(J),oe):ce,value:me[oe]},te))}))}),oe)})]}))});process.env.NODE_ENV!=="production"&&(ls.propTypes={"aria-label":_i(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":_i(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.number,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.number,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 Vp="_slider_a19yo_2",Up="_playButton_a19yo_17",qp="_hover_a19yo_20",Wp="_sliderOpen_a19yo_28",Hp="_sliderResults_a19yo_32",kn={slider:Vp,playButton:Up,hover:qp,sliderOpen:Wp,sliderResults:Hp},cs=({onResults:e=!1,defaultYear:t=2025,firstYear:n=2025,lastYear:r=2050,zIndex:o=10,rightBarOpen:i=!1})=>{const[a,l]=v.useState(t),c=on.useDispatch(),u=(E,T)=>{l(T),c(Zr(T-2e3))},[m,d]=v.useState(!1),p=()=>{d(!0)},_=()=>{d(!1)};((E,T)=>{const k=v.useRef();v.useEffect(()=>{k.current=E},[E]),v.useEffect(()=>{function j(){k.current()}{let C=setInterval(j,T);return()=>clearInterval(C)}},[T])})(()=>{m&&(a!=2050?(l(a+1),c(Zr(a-2e3+1))):(l(2025),c(Zr(25))))},1e3);const f=No.createTheme({palette:{primary:{main:"#605b56"}},components:{MuiSlider:{styleOverrides:{mark:{height:10,backgroundColor:"#605b56"},valueLabel:{backgroundColor:"transparent",color:"#605b56",padding:0,top:3}}}}}),x=[{label:"",value:2025},{label:"",value:2032},{label:"",value:2041},{label:"",value:2050}];return g.jsx(an.ThemeProvider,{theme:f,children:g.jsxs(No.Box,{sx:{width:400},className:`${e?kn.sliderResults:kn.slider} ${i?kn.sliderOpen:""}`,style:{zIndex:o},children:[n,g.jsx(ls,{"aria-label":"TimeSlider",value:a,valueLabelDisplay:"on",step:1,marks:x,min:n,max:r,onChange:u,color:"primary",size:"small"}),r,!m&&g.jsx("button",{className:kn.playButton,onClick:p,children:g.jsx("img",{src:vd,alt:"Play"})}),m&&g.jsx("button",{className:kn.playButton,onClick:_,children:g.jsx("img",{src:bd,alt:"Pause"})})]})})};cs.propTypes={defaultYear:s.number,onResults:s.bool,firstYear:s.number,lastYear:s.number,zIndex:s.number,rightBarOpen:s.bool};const Yp="_TopNavMenuContainer_1j1d1_2",Kp="_topNavOptions_1j1d1_11",Zp="_active_1j1d1_22",no={TopNavMenuContainer:Yp,topNavOptions:Kp,active:Zp},us=({options:e=[],cssProps:t={}})=>{const{t:n}=je.useTranslation(),r=t.textColor||"inherit";return t.borderColor,g.jsx("div",{className:no.TopNavMenuContainer,children:e.map((o,i)=>g.jsx(ws.NavLink,{to:o.url,className:({isActive:a})=>`${no.topNavOptions} ${a?no.active:""}`,style:{color:r},children:n(o.name)},i))})};us.propTypes={options:s.arrayOf(s.object),cssProps:s.shape({borderColor:s.string.isRequired,textColor:s.string.isRequired})};const Gp=Yi.createSlice({name:"userSlice",initialState:{user:{isLoggedIn:!1,username:""},showLogIn:!1,showUserMenu:!1},reducers:{setShowLogIn:(e,t)=>{e.showLogIn=t.payload},setShowUserMenu:(e,t)=>{e.showUserMenu=t.payload}}}),{setShowLogIn:Jp,setShowUserMenu:Xp}=Gp.actions,Qp="_UserMenuTrigger_uglss_2",e0={UserMenuTrigger:Qp},ds=({cssClass:e,loginLocale:t="login"})=>{const n=on.useDispatch(),r=on.useSelector(l=>l.userState.user.isLoggedIn),o=on.useSelector(l=>l.userState.user.username),{t:i}=je.useTranslation(),a=()=>{n(r?Jp(!0):Xp(!0))};return g.jsx("div",{className:`${e0.UserMenuTrigger} link ${e}`,onClick:a,children:r?o:i(t)})};ds.propTypes={onClickLoggedIn:s.func.isRequired,onClickLoggedOut:s.func.isRequired,log:s.bool,name:s.string,cssClass:s.string,loginLocale:s.string};const t0="_header_1w621_2",n0="_leftComponents_1w621_12",r0="_centerComponents_1w621_13",o0="_rightComponents_1w621_14",rr={header:t0,leftComponents:n0,centerComponents:r0,rightComponents:o0},fs=({cssProps:e,leftComponents:t=[],centerComponents:n=[],rightComponents:r=[]})=>g.jsxs("div",{className:rr.header,style:e,children:[g.jsx("div",{className:rr.leftComponents,style:{height:e.height},children:t.map((o,i)=>g.jsx("div",{style:{height:e.height},children:o},i))}),g.jsx("div",{className:rr.centerComponents,style:{height:e.height},children:n.map((o,i)=>g.jsx("div",{style:{height:e.height},children:o},i))}),g.jsx("div",{className:rr.rightComponents,style:{height:e.height},children:r.map((o,i)=>g.jsx("div",{style:{height:e.height},children:o},i))})]});fs.propTypes={cssProps:s.shape({backgroundColor:s.string.isRequired,height:s.string.isRequired,borderColor:s.string,textColor:s.string}),leftComponents:s.arrayOf(s.node),centerComponents:s.arrayOf(s.node),rightComponents:s.arrayOf(s.node)};const i0="_sidebar_1jqo2_2",a0="_open_1jqo2_16",s0="_content_1jqo2_20",l0="_closeButton_1jqo2_26",or={sidebar:i0,open:a0,content:s0,closeButton:l0},ms=({width:e="300px",children:t,showRightBar:n,setShowRightBar:r})=>{const o=()=>{r(!1)};return g.jsx("div",{className:`${or.sidebar} ${n?or.open:""}`,style:{width:n?e:0},children:n&&g.jsxs("div",{className:or.content,children:[g.jsx("button",{className:or.closeButton,onClick:o,children:"×"}),t]})})};ms.propTypes={width:s.string,children:s.node,showRightBar:s.bool,setShowRightBar:s.func};exports.AmbitSelector=Qi;exports.ButtonsList=ea;exports.DropdownList=Ot;exports.EditAmbit=pl;exports.FiltersAmbit=Il;exports.Graphic=ca;exports.HeaderSection=fs;exports.IndicatorsList=fa;exports.LangSelector=ma;exports.Legend=pa;exports.LogoApp=ha;exports.MapboxMap=ya;exports.MaplibreMap=Ia;exports.RightSidebar=ms;exports.SectionBar=Da;exports.TimeSlider=cs;exports.Tooltip=yo;exports.TopNavMenu=us;exports.UserMenuTrigger=ds;