@tmf_ciclica/ciclicastorybook 1.1.3 → 1.1.5
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/ciclicastorybook.css +1 -1
- package/dist/index.cjs.js +30 -30
- package/dist/index.es.js +3704 -5063
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var va=Object.create;var Mo=Object.defineProperty;var ba=Object.getOwnPropertyDescriptor;var xa=Object.getOwnPropertyNames;var _a=Object.getPrototypeOf,Ca=Object.prototype.hasOwnProperty;var Sa=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of xa(t))!Ca.call(e,o)&&o!==n&&Mo(e,o,{get:()=>t[o],enumerable:!(r=ba(t,o))||r.enumerable});return e};var Lo=(e,t,n)=>(n=e!=null?va(_a(e)):{},Sa(t||!e||!e.__esModule?Mo(n,"default",{value:e,enumerable:!0}):n,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),Te=require("react-i18next"),mo=require("framer-motion"),Ta=require("zustand"),wa=require("d3"),Ea=require("mapbox-gl"),kn=require("react-redux"),mr=require("react-dom"),Ao=require("maplibre-gl"),Ys=require("@reduxjs/toolkit"),No=require("@mui/material"),on=require("@emotion/react"),ka=require("@emotion/styled"),Ra=require("react-router-dom");function Zs(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=Zs(b),Io=Zs(wa);function Gs(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:{}},xn={};/**
|
|
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 Do;function
|
|
9
|
+
*/var Do;function Oa(){if(Do)return xn;Do=1;var e=b,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,s={key:!0,ref:!0,__self:!0,__source:!0};function i(l,c,u){var p,f={},h=null,v=null;u!==void 0&&(h=""+u),c.key!==void 0&&(h=""+c.key),c.ref!==void 0&&(v=c.ref);for(p in c)r.call(c,p)&&!s.hasOwnProperty(p)&&(f[p]=c[p]);if(l&&l.defaultProps)for(p in c=l.defaultProps,c)f[p]===void 0&&(f[p]=c[p]);return{$$typeof:t,type:l,key:h,ref:v,props:f,_owner:o.current}}return xn.Fragment=n,xn.jsx=i,xn.jsxs=i,xn}var _n={};/**
|
|
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 Fo;function
|
|
18
|
-
`+
|
|
19
|
-
`),
|
|
20
|
-
`),
|
|
21
|
-
`+le[
|
|
17
|
+
*/var Fo;function ja(){return Fo||(Fo=1,process.env.NODE_ENV!=="production"&&function(){var e=b,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),x=Symbol.iterator,d="@@iterator";function C(g){if(g===null||typeof g!="object")return null;var E=x&&g[x]||g[d];return typeof E=="function"?E:null}var S=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function R(g){{for(var E=arguments.length,I=new Array(E>1?E-1:0),te=1;te<E;te++)I[te-1]=arguments[te];j("error",g,I)}}function j(g,E,I){{var te=S.ReactDebugCurrentFrame,J=te.getStackAddendum();J!==""&&(E+="%s",I=I.concat([J]));var oe=I.map(function(ue){return String(ue)});oe.unshift("Warning: "+E),Function.prototype.apply.call(console[g],console,oe)}}var k=!1,_=!1,F=!1,y=!1,w=!1,T;T=Symbol.for("react.module.reference");function $(g){return!!(typeof g=="string"||typeof g=="function"||g===r||g===s||w||g===o||g===u||g===p||y||g===v||k||_||F||typeof g=="object"&&g!==null&&(g.$$typeof===h||g.$$typeof===f||g.$$typeof===i||g.$$typeof===l||g.$$typeof===c||g.$$typeof===T||g.getModuleId!==void 0))}function N(g,E,I){var te=g.displayName;if(te)return te;var J=E.displayName||E.name||"";return J!==""?I+"("+J+")":I}function H(g){return g.displayName||"Context"}function U(g){if(g==null)return null;if(typeof g.tag=="number"&&R("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof g=="function")return g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case r:return"Fragment";case n:return"Portal";case s:return"Profiler";case o:return"StrictMode";case u:return"Suspense";case p:return"SuspenseList"}if(typeof g=="object")switch(g.$$typeof){case l:var E=g;return H(E)+".Consumer";case i:var I=g;return H(I._context)+".Provider";case c:return N(g,g.render,"ForwardRef");case f:var te=g.displayName||null;return te!==null?te:U(g.type)||"Memo";case h:{var J=g,oe=J._payload,ue=J._init;try{return U(ue(oe))}catch{return null}}}return null}var ce=Object.assign,K=0,se,re,ke,$e,O,A,Q;function q(){}q.__reactDisabledLog=!0;function z(){{if(K===0){se=console.log,re=console.info,ke=console.warn,$e=console.error,O=console.group,A=console.groupCollapsed,Q=console.groupEnd;var g={configurable:!0,enumerable:!0,value:q,writable:!0};Object.defineProperties(console,{info:g,log:g,warn:g,error:g,group:g,groupCollapsed:g,groupEnd:g})}K++}}function ee(){{if(K--,K===0){var g={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ce({},g,{value:se}),info:ce({},g,{value:re}),warn:ce({},g,{value:ke}),error:ce({},g,{value:$e}),group:ce({},g,{value:O}),groupCollapsed:ce({},g,{value:A}),groupEnd:ce({},g,{value:Q})})}K<0&&R("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Z=S.ReactCurrentDispatcher,Y;function V(g,E,I){{if(Y===void 0)try{throw Error()}catch(J){var te=J.stack.trim().match(/\n( *(at )?)/);Y=te&&te[1]||""}return`
|
|
18
|
+
`+Y+g}}var G=!1,ne;{var be=typeof WeakMap=="function"?WeakMap:Map;ne=new be}function P(g,E){if(!g||G)return"";{var I=ne.get(g);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,z();try{if(E){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(Ye){te=Ye}Reflect.construct(g,[],ue)}else{try{ue.call()}catch(Ye){te=Ye}g.call(ue.prototype)}}else{try{throw Error()}catch(Ye){te=Ye}g()}}catch(Ye){if(Ye&&te&&typeof Ye.stack=="string"){for(var le=Ye.stack.split(`
|
|
19
|
+
`),we=te.stack.split(`
|
|
20
|
+
`),Le=le.length-1,Ne=we.length-1;Le>=1&&Ne>=0&&le[Le]!==we[Ne];)Ne--;for(;Le>=1&&Ne>=0;Le--,Ne--)if(le[Le]!==we[Ne]){if(Le!==1||Ne!==1)do if(Le--,Ne--,Ne<0||le[Le]!==we[Ne]){var ot=`
|
|
21
|
+
`+le[Le].replace(" at new "," at ");return g.displayName&&ot.includes("<anonymous>")&&(ot=ot.replace("<anonymous>",g.displayName)),typeof g=="function"&&ne.set(g,ot),ot}while(Le>=1&&Ne>=0);break}}}finally{G=!1,Z.current=oe,ee(),Error.prepareStackTrace=J}var Ht=g?g.displayName||g.name:"",Pt=Ht?V(Ht):"";return typeof g=="function"&&ne.set(g,Pt),Pt}function xe(g,E,I){return P(g,!1)}function ie(g){var E=g.prototype;return!!(E&&E.isReactComponent)}function ae(g,E,I){if(g==null)return"";if(typeof g=="function")return P(g,ie(g));if(typeof g=="string")return V(g);switch(g){case u:return V("Suspense");case p:return V("SuspenseList")}if(typeof g=="object")switch(g.$$typeof){case c:return xe(g.render);case f:return ae(g.type,E,I);case h:{var te=g,J=te._payload,oe=te._init;try{return ae(oe(J),E,I)}catch{}}}return""}var Oe=Object.prototype.hasOwnProperty,Ve={},qe=S.ReactDebugCurrentFrame;function ft(g){if(g){var E=g._owner,I=ae(g.type,g._source,E?E.type:null);qe.setExtraStackFrame(I)}else qe.setExtraStackFrame(null)}function De(g,E,I,te,J){{var oe=Function.call.bind(Oe);for(var ue in g)if(oe(g,ue)){var le=void 0;try{if(typeof g[ue]!="function"){var we=Error((te||"React class")+": "+I+" type `"+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof g[ue]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw we.name="Invariant Violation",we}le=g[ue](E,ue,te,I,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Le){le=Le}le&&!(le instanceof Error)&&(ft(J),R("%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),ft(null)),le instanceof Error&&!(le.message in Ve)&&(Ve[le.message]=!0,ft(J),R("Failed %s type: %s",I,le.message),ft(null))}}}var _t=Array.isArray;function jt(g){return _t(g)}function hn(g){{var E=typeof Symbol=="function"&&Symbol.toStringTag,I=E&&g[Symbol.toStringTag]||g.constructor.name||"Object";return I}}function mn(g){try{return gn(g),!1}catch{return!0}}function gn(g){return""+g}function zt(g){if(mn(g))return R("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",hn(g)),gn(g)}var Ct=S.ReactCurrentOwner,M={key:!0,ref:!0,__self:!0,__source:!0},D,W;function de(g){if(Oe.call(g,"ref")){var E=Object.getOwnPropertyDescriptor(g,"ref").get;if(E&&E.isReactWarning)return!1}return g.ref!==void 0}function pe(g){if(Oe.call(g,"key")){var E=Object.getOwnPropertyDescriptor(g,"key").get;if(E&&E.isReactWarning)return!1}return g.key!==void 0}function fe(g,E){typeof g.ref=="string"&&Ct.current}function Je(g,E){{var I=function(){D||(D=!0,R("%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)",E))};I.isReactWarning=!0,Object.defineProperty(g,"key",{get:I,configurable:!0})}}function rt(g,E){{var I=function(){W||(W=!0,R("%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)",E))};I.isReactWarning=!0,Object.defineProperty(g,"ref",{get:I,configurable:!0})}}var he=function(g,E,I,te,J,oe,ue){var le={$$typeof:t,type:g,key:E,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 Ke(g,E,I,te,J){{var oe,ue={},le=null,we=null;I!==void 0&&(zt(I),le=""+I),pe(E)&&(zt(E.key),le=""+E.key),de(E)&&(we=E.ref,fe(E,J));for(oe in E)Oe.call(E,oe)&&!M.hasOwnProperty(oe)&&(ue[oe]=E[oe]);if(g&&g.defaultProps){var Le=g.defaultProps;for(oe in Le)ue[oe]===void 0&&(ue[oe]=Le[oe])}if(le||we){var Ne=typeof g=="function"?g.displayName||g.name||"Unknown":g;le&&Je(ue,Ne),we&&rt(ue,Ne)}return he(g,le,we,J,te,Ct.current,ue)}}var dt=S.ReactCurrentOwner,yn=S.ReactDebugCurrentFrame;function yt(g){if(g){var E=g._owner,I=ae(g.type,g._source,E?E.type:null);yn.setExtraStackFrame(I)}else yn.setExtraStackFrame(null)}var Bt;Bt=!1;function $t(g){return typeof g=="object"&&g!==null&&g.$$typeof===t}function Ut(){{if(dt.current){var g=U(dt.current.type);if(g)return`
|
|
22
22
|
|
|
23
|
-
Check the render method of \``+g+"`."}return""}}function
|
|
23
|
+
Check the render method of \``+g+"`."}return""}}function Un(g){return""}var Vt={};function jr(g){{var E=Ut();if(!E){var I=typeof g=="string"?g:g.displayName||g.name;I&&(E=`
|
|
24
24
|
|
|
25
|
-
Check the top-level render call using <`+I+">.")}return
|
|
25
|
+
Check the top-level render call using <`+I+">.")}return E}}function qt(g,E){{if(!g._store||g._store.validated||g.key!=null)return;g._store.validated=!0;var I=jr(E);if(Vt[I])return;Vt[I]=!0;var te="";g&&g._owner&&g._owner!==dt.current&&(te=" It was passed a child from "+U(g._owner.type)+"."),yt(g),R('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(g,E){{if(typeof g!="object")return;if(jt(g))for(var I=0;I<g.length;I++){var te=g[I];$t(te)&&qt(te,E)}else if($t(g))g._store&&(g._store.validated=!0);else if(g){var J=C(g);if(typeof J=="function"&&J!==g.entries)for(var oe=J.call(g),ue;!(ue=oe.next()).done;)$t(ue.value)&&qt(ue.value,E)}}}function vn(g){{var E=g.type;if(E==null||typeof E=="string")return;var I;if(typeof E=="function")I=E.propTypes;else if(typeof E=="object"&&(E.$$typeof===c||E.$$typeof===f))I=E.propTypes;else return;if(I){var te=U(E);De(I,g.props,"prop",te,g)}else if(E.PropTypes!==void 0&&!Bt){Bt=!0;var J=U(E);R("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",J||"Unknown")}typeof E.getDefaultProps=="function"&&!E.getDefaultProps.isReactClassApproved&&R("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function $r(g){{for(var E=Object.keys(g.props),I=0;I<E.length;I++){var te=E[I];if(te!=="children"&&te!=="key"){yt(g),R("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",te),yt(null);break}}g.ref!==null&&(yt(g),R("Invalid attribute `ref` supplied to `React.Fragment`."),yt(null))}}var Vn={};function qn(g,E,I,te,J,oe){{var ue=$(g);if(!ue){var le="";(g===void 0||typeof g=="object"&&g!==null&&Object.keys(g).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 we=Un();we?le+=we:le+=Ut();var Le;g===null?Le="null":jt(g)?Le="array":g!==void 0&&g.$$typeof===t?(Le="<"+(U(g.type)||"Unknown")+" />",le=" Did you accidentally export a JSX literal instead of a component?"):Le=typeof g,R("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Le,le)}var Ne=Ke(g,E,I,J,oe);if(Ne==null)return Ne;if(ue){var ot=E.children;if(ot!==void 0)if(te)if(jt(ot)){for(var Ht=0;Ht<ot.length;Ht++)Wt(ot[Ht],g);Object.freeze&&Object.freeze(ot)}else R("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,g)}if(Oe.call(E,"key")){var Pt=U(g),Ye=Object.keys(E).filter(function(ya){return ya!=="key"}),Ar=Ye.length>0?"{key: someKey, "+Ye.join(": ..., ")+": ...}":"{key: someKey}";if(!Vn[Pt+Ar]){var ga=Ye.length>0?"{"+Ye.join(": ..., ")+": ...}":"{}";R(`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} />`,
|
|
30
|
+
<%s key={someKey} {...props} />`,Ar,Pt,ga,Pt),Vn[Pt+Ar]=!0}}return g===r?$r(Ne):vn(Ne),Ne}}function Pr(g,E,I){return qn(g,E,I,!0)}function Mr(g,E,I){return qn(g,E,I,!1)}var Lr=Mr,bn=Pr;_n.Fragment=r,_n.jsx=Lr,_n.jsxs=bn}()),_n}var zo;function $a(){return zo||(zo=1,process.env.NODE_ENV==="production"?Wn.exports=Oa():Wn.exports=ja()),Wn.exports}var m=$a();const Pa="_ambitSelector_f07c1_2",Ma="_header_f07c1_13",La="_nameDateContainer_f07c1_23",Aa="_ambitName_f07c1_39",Na="_ambitDate_f07c1_48",Ia="_buttonsContainer_f07c1_51",Kt={ambitSelector:Pa,header:Ma,nameDateContainer:La,ambitName:Aa,ambitDate:Na,buttonsContainer:Ia},Da="_ambitItem_1ueih_2",Fa="_ambitNameDate_1ueih_16",za="_ambitName_1ueih_16",Ba="_ambitDate_1ueih_35",Ua="_ambitButtons_1ueih_38",Cn={ambitItem:Da,ambitNameDate:Fa,ambitName:za,ambitDate:Ba,ambitButtons:Ua},Va="data:image/svg+xml,%3csvg%20width='31'%20height='31'%20viewBox='0%200%2031%2031'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Eliminar'%3e%3ccircle%20id='Ellipse%20220'%20cx='15.5106'%20cy='15.8063'%20r='14.3521'%20stroke='%23605B56'%20stroke-width='1.5'/%3e%3cpath%20id='Vector'%20d='M20.8581%2010.5548H17.5491V10.4015C17.5491%209.17493%2016.6257%208.255%2015.4714%208.255C14.3171%208.255%2013.3167%209.17493%2013.3167%2010.4015V10.5548H10.0846C9.69985%2010.5548%209.46899%2010.7848%209.46899%2011.1681C9.46899%2011.5514%209.69985%2011.7814%2010.0846%2011.7814H10.2385V21.2106C10.2385%2022.3605%2011.162%2023.3571%2012.3932%2023.3571H18.5495C19.7038%2023.3571%2020.7042%2022.4372%2020.7042%2021.2106V11.7047H20.9351C21.2429%2011.7047%2021.5507%2011.4747%2021.5507%2011.0914C21.5507%2010.7081%2021.1659%2010.5548%2020.8581%2010.5548ZM14.471%2010.4015C14.471%209.86488%2014.9327%209.40491%2015.4714%209.40491C16.01%209.40491%2016.3948%209.86488%2016.3948%2010.4015V10.5548H14.471V10.4015ZM16.3948%2018.8342V15.0011C16.3948%2014.6178%2016.6257%2014.3878%2017.0104%2014.3878C17.3952%2014.3878%2017.6261%2014.6178%2017.6261%2015.0011V18.8342C17.6261%2019.1408%2017.3952%2019.4474%2017.0104%2019.4474C16.6257%2019.4474%2016.3948%2019.1408%2016.3948%2018.8342ZM13.3167%2018.8342V15.0011C13.3167%2014.6178%2013.5475%2014.3878%2013.9323%2014.3878C14.3171%2014.3878%2014.5479%2014.6178%2014.5479%2015.0011V18.8342C14.5479%2019.1408%2014.3171%2019.4474%2013.9323%2019.4474C13.5475%2019.4474%2013.3167%2019.1408%2013.3167%2018.8342Z'%20fill='%23605B56'/%3e%3c/g%3e%3c/svg%3e",qa="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",Bo="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",Wa="data:image/svg+xml,%3csvg%20width='26'%20height='14'%20viewBox='0%200%2026%2014'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%205138'%3e%3cpath%20id='Vector'%20d='M12.95%200.408447C7.659%200.408447%202.84899%202.77185%200.0832465%206.72621C-0.0277488%206.88808%20-0.0277488%207.09621%200.0832465%207.25807C2.84439%2011.2125%207.65437%2013.5712%2012.95%2013.5712C18.2456%2013.5712%2023.0556%2011.2125%2025.8168%207.25807C25.9278%207.0962%2025.9278%206.88807%2025.8168%206.72621C23.051%202.77184%2018.241%200.408447%2012.95%200.408447ZM12.95%2011.2217C10.619%2011.2217%208.71812%209.32083%208.71812%206.98984C8.71812%204.65885%2010.619%202.75796%2012.95%202.75796C15.281%202.75796%2017.1819%204.65883%2017.1819%206.98984C17.1819%209.32085%2015.281%2011.2217%2012.95%2011.2217Z'%20fill='%23B32F5D'/%3e%3cpath%20id='Vector_2'%20d='M12.9514%2010.2966C14.7777%2010.2966%2016.2583%208.81607%2016.2583%206.98974C16.2583%205.1634%2014.7777%203.68286%2012.9514%203.68286C11.1251%203.68286%209.64453%205.1634%209.64453%206.98974C9.64453%208.81607%2011.1251%2010.2966%2012.9514%2010.2966Z'%20fill='%23B32F5D'/%3e%3c/g%3e%3c/svg%3e",Ha="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:{}},Kn={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
|
|
37
|
+
*/var Uo;function Ka(){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,s=e?Symbol.for("react.profiler"):60114,i=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,p=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function j(_){if(typeof _=="object"&&_!==null){var F=_.$$typeof;switch(F){case t:switch(_=_.type,_){case c:case u:case r:case s:case o:case f:return _;default:switch(_=_&&_.$$typeof,_){case l:case p:case x:case v:case i:return _;default:return F}}case n:return F}}}function k(_){return j(_)===u}return ye.AsyncMode=c,ye.ConcurrentMode=u,ye.ContextConsumer=l,ye.ContextProvider=i,ye.Element=t,ye.ForwardRef=p,ye.Fragment=r,ye.Lazy=x,ye.Memo=v,ye.Portal=n,ye.Profiler=s,ye.StrictMode=o,ye.Suspense=f,ye.isAsyncMode=function(_){return k(_)||j(_)===c},ye.isConcurrentMode=k,ye.isContextConsumer=function(_){return j(_)===l},ye.isContextProvider=function(_){return j(_)===i},ye.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},ye.isForwardRef=function(_){return j(_)===p},ye.isFragment=function(_){return j(_)===r},ye.isLazy=function(_){return j(_)===x},ye.isMemo=function(_){return j(_)===v},ye.isPortal=function(_){return j(_)===n},ye.isProfiler=function(_){return j(_)===s},ye.isStrictMode=function(_){return j(_)===o},ye.isSuspense=function(_){return j(_)===f},ye.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===r||_===u||_===s||_===o||_===f||_===h||typeof _=="object"&&_!==null&&(_.$$typeof===x||_.$$typeof===v||_.$$typeof===i||_.$$typeof===l||_.$$typeof===p||_.$$typeof===C||_.$$typeof===S||_.$$typeof===R||_.$$typeof===d)},ye.typeOf=j,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
|
|
44
|
+
*/var Vo;function Ya(){return Vo||(Vo=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,s=e?Symbol.for("react.profiler"):60114,i=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,p=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,v=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,R=e?Symbol.for("react.scope"):60119;function j(P){return typeof P=="string"||typeof P=="function"||P===r||P===u||P===s||P===o||P===f||P===h||typeof P=="object"&&P!==null&&(P.$$typeof===x||P.$$typeof===v||P.$$typeof===i||P.$$typeof===l||P.$$typeof===p||P.$$typeof===C||P.$$typeof===S||P.$$typeof===R||P.$$typeof===d)}function k(P){if(typeof P=="object"&&P!==null){var xe=P.$$typeof;switch(xe){case t:var ie=P.type;switch(ie){case c:case u:case r:case s:case o:case f:return ie;default:var ae=ie&&ie.$$typeof;switch(ae){case l:case p:case x:case v:case i:return ae;default:return xe}}case n:return xe}}}var _=c,F=u,y=l,w=i,T=t,$=p,N=r,H=x,U=v,ce=n,K=s,se=o,re=f,ke=!1;function $e(P){return ke||(ke=!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)||k(P)===c}function O(P){return k(P)===u}function A(P){return k(P)===l}function Q(P){return k(P)===i}function q(P){return typeof P=="object"&&P!==null&&P.$$typeof===t}function z(P){return k(P)===p}function ee(P){return k(P)===r}function Z(P){return k(P)===x}function Y(P){return k(P)===v}function V(P){return k(P)===n}function G(P){return k(P)===s}function ne(P){return k(P)===o}function be(P){return k(P)===f}ve.AsyncMode=_,ve.ConcurrentMode=F,ve.ContextConsumer=y,ve.ContextProvider=w,ve.Element=T,ve.ForwardRef=$,ve.Fragment=N,ve.Lazy=H,ve.Memo=U,ve.Portal=ce,ve.Profiler=K,ve.StrictMode=se,ve.Suspense=re,ve.isAsyncMode=$e,ve.isConcurrentMode=O,ve.isContextConsumer=A,ve.isContextProvider=Q,ve.isElement=q,ve.isForwardRef=z,ve.isFragment=ee,ve.isLazy=Z,ve.isMemo=Y,ve.isPortal=V,ve.isProfiler=G,ve.isStrictMode=ne,ve.isSuspense=be,ve.isValidElementType=j,ve.typeOf=k}()),ve}var qo;function Js(){return qo||(qo=1,process.env.NODE_ENV==="production"?Kn.exports=Ka():Kn.exports=Ya()),Kn.exports}/*
|
|
45
45
|
object-assign
|
|
46
46
|
(c) Sindre Sorhus
|
|
47
47
|
@license MIT
|
|
48
|
-
*/var Nr,Wo;function
|
|
49
|
-
Valid keys: `+JSON.stringify(Object.keys(
|
|
50
|
-
${t==="horizontal"&&
|
|
51
|
-
${f&&jt.active}`,children:_}),o&&h.jsx(yo,{text:p,position:i})]},c)})})};ta.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 fl="_indicatorsCategory_1cu33_2",ml="_title_1cu33_5",pl="_list_1cu33_11",Vr={indicatorsCategory:fl,title:ml,list:pl},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}=Oe.useTranslation();return h.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:[h.jsxs("h2",{style:{...l,marginBottom:u||"auto"},className:`${Vr.title}`,onClick:t,children:[h.jsx("span",{style:{color:e?o:r},children:e?"-":"+"}),h.jsx("span",{style:{marginLeft:12,color:e?o:r},children:m(i)})]}),h.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 hl=()=>h.jsx("div",{children:"EditAmbit"}),gl="_AppliedFiltersContainer_s8ooe_2",yl="_AppliedFilterContent_s8ooe_10",Xo={AppliedFiltersContainer:gl,AppliedFilterContent:yl},Ve=Es.create(e=>({activeCategory:"",activeSubCategory:"",selectedIndicator:"",tematicalFiltersSelected:[],fontColor:"#605B56",inputsColor:"#605B56"})),na=({title:e,onClick:t,isOpen:n=!0,textColor:r="#ffffff",backgroundColor:o="#605B5680"})=>{const{t:i}=Oe.useTranslation(),{tematicalFiltersSelected:a}=Ve(c=>c),l=c=>{Ve.setState(u=>({tematicalFiltersSelected:u.tematicalFiltersSelected.filter(m=>m.code!==c)}))};return h.jsx(Ot,{isOpen:n,onClick:t,title:e?i(e):"Applied Filters",children:h.jsx("div",{className:Xo.AppliedFiltersContainer,children:a==null?void 0:a.map((c,u)=>h.jsxs("div",{className:Xo.AppliedFilterContent,style:{color:r,background:o},children:[c.code,h.jsx("img",{src:el,alt:"CloseIcon",onClick:()=>l(c.code),style:{cursor:"pointer"}})]},u))})})};na.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 ra=({title:e,onClick:t,isOpen:n=!0,textColor:r="#ffffff",backgroundColor:o="#605B5680"})=>{const{t:i}=Oe.useTranslation();return Ve(a=>a),h.jsx(Ot,{isOpen:n,onClick:t,title:e?i(e):"Geographical Filters",children:"A"})};ra.propTypes={isOpen:s.bool,onClick:s.func,title:s.string,textColor:s.string,backgroundColor:s.string};const vl=[{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}]}],bl="_checkboxContainer_zld97_2",_l={checkboxContainer:bl},oa=({onClick:e,containerStyles:t,color:n="#605B56",indicator:r,value:o})=>{const{t:i}=Oe.useTranslation(),{title:a}=r||{},{fontColor:l,inputsColor:c}=Ve(u=>u);return h.jsxs("div",{style:{...t,color:n},role:"checkbox",className:_l.checkboxContainer,onClick:e,children:[h.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"}}),h.jsx("span",{className:"checkmark",children:i(a)})]})};oa.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 Cl(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 f=c[0]-o.startPosition[0],p=c[1]-o.startPosition[1];o.isScrolling=Math.abs(p)>Math.abs(f)}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},f={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(f)),o.props.renderThumb(m,f)},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)},f={index:l,value:Kn(o.state.value)};return o.props.renderTrack(m,f)};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=b.createRef(),o.state={index:-1,upperBound:0,sliderLength:0,value:i,zIndices:a},o}Cl(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()],f=l-m,p=Math.abs(c-u);this.state.upperBound===f&&this.state.sliderLength===p&&this.state.thumbSize===m||this.setState({upperBound:f,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:f}=this.props;if(!c){if(i>0){const p=o[i-1];r<p+f&&(r=p+f)}if(i<a-1){const p=o[i+1];r>p-f&&(r=p-f)}}o[i]=r,c&&a>1&&(r>l?(this.pushSucceeding(o,f,i),function(p,v,_,d){for(let x=0;x<p;x+=1){const E=d-x*_;v[p-1-x]>E&&(v[p-1-x]=E)}}(a,o,f,u)):r<l&&(this.pushPreceding(o,f,i),function(p,v,_,d){for(let x=0;x<p;x+=1){const E=d+x*_;v[x]<E&&(v[x]=E)}}(a,o,f,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 b.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}(b.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=>b.createElement("div",e),renderTrack:e=>b.createElement("div",e),renderMark:e=>b.createElement("span",e)};var xl=io;const El="_container_15vgv_2",Sl="_unitLabel_15vgv_9",Tl="_slider_15vgv_12",wl="_thumb_15vgv_18",kl="_track_15vgv_27",Ol="_labels_15vgv_33",Kt={container:El,unitLabel:Sl,slider:Tl,thumb:wl,track:kl,labels:Ol},ia=({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}=Oe.useTranslation(),u=m=>{r==null||r({min:m[0],max:m[1]})};return h.jsxs("div",{className:Kt.container,style:{width:`${o}px`,color:`${a}`},children:[h.jsx("div",{className:Kt.unitLabel,children:h.jsx("span",{children:c(i)})}),h.jsx(xl,{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}),h.jsxs("div",{className:Kt.labels,children:[h.jsx("span",{children:l[0]}),h.jsx("span",{children:l[1]})]})]})};ia.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",Al="_inputTypeContainer_1vm1r_2",Pl="_checkboxContainer_1vm1r_28",$l="_absoluteSliderContainer_1vm1r_37",Gn={tematicalFiltersInputContainer:Rl,inputTypeContainer:Al,checkboxContainer:Pl,absoluteSliderContainer:$l},vo=({indicator:e})=>{const[t,n]=b.useState(),{type:r,name:o,values:i,minValue:a,maxValue:l,unit:c}=e||{},u=b.useMemo(()=>r=="cat"||t=="cat",[t,r]),m=b.useMemo(()=>r=="abs"||t=="abs",[t,r]),{tematicalFiltersSelected:f,selectedIndicator:p,fontColor:v,inputsColor:_}=Ve(E=>E),d=E=>{if(E){const{min:R,max:A,valueClicked:O,allValues:C}=E||{},{code:F,type:y}=e||{},T=m?"abs":u?"cat":"both";let S=F[0];y=="both"&&(S=T=="cat"?F[1]:F[0]),T=="cat"?Ve.setState(P=>{let N=P.tematicalFiltersSelected.find(H=>H.code===S);if(N){let H=[N.values];if(N.values.includes(O)){if(H=N.values.filter(V=>V!==O),H.length<1)return{tematicalFiltersSelected:P.tematicalFiltersSelected.filter(V=>V.code!==S)}}else H=[...N.values,O];return{tematicalFiltersSelected:P.tematicalFiltersSelected.map(V=>V.code===S?{...V,values:H}:V)}}else{console.log("entra aqui: ",C," ",O);let H=C.map((V,ce)=>ce);return{tematicalFiltersSelected:[...f,{type:"cat",code:S,values:H.filter(V=>V!==O)}]}}}):T=="abs"&&Ve.setState(P=>{let N=P.tematicalFiltersSelected.find(H=>H.code===S);if(N){let H={...N};return H.min=R,H.max=A,{tematicalFiltersSelected:P.tematicalFiltersSelected.map(V=>V.code===S?H:V)}}else return{tematicalFiltersSelected:[...f,{type:"abs",code:S,min:R,max:A}]}})}},x=b.useMemo(()=>{const E={};if((f==null?void 0:f.length)>0)for(const R of f)R.type==="cat"?E[R.code]=new Set(R.values):E[R.code]=[R.min,R.max];return E},[f]);return h.jsx("div",{className:Gn.tematicalFiltersInputContainer,children:h.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:v,children:[r=="both"&&h.jsxs("div",{className:Gn.inputTypeContainer,style:{color:v},children:[h.jsxs("label",{children:[h.jsx("input",{type:"radio",name:"tipo",value:"abs",onChange:()=>{n("abs")},style:{marginRight:4,backgroundColor:t=="abs"?_:"white",border:`1.5px solid ${t=="abs"?_:v}`}}),"Absoluto"]}),h.jsxs("label",{children:[h.jsx("input",{type:"radio",name:"tipo",value:"cat",onChange:()=>{n("cat")},style:{marginRight:4,backgroundColor:t=="cat"?_:"white",border:`1.5px solid ${t=="cat"?_:v}`}}),"Categórico"]})]}),u&&h.jsx("div",{className:Gn.checkboxContainer,children:i.map((E,R)=>{var A;return h.jsx(oa,{onClick:()=>d({valueClicked:R,allValues:i}),indicator:E,value:((A=x[e.code[r=="both"?1:0]])==null?void 0:A.has(R))||!x[e.code[r=="both"?1:0]]},`checkbox-${R}`)})}),m&&h.jsx("div",{className:Gn.absoluteSliderContainer,children:h.jsx(ia,{onChange:d,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 aa=({subcategory:e,fontColor:t})=>{const{activeSubcategory:n}=Ve(i=>i),{name:r,indicators:o}=e||{};return h.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)=>h.jsx(vo,{indicator:i,fontColor:t},`indicatorSub-${a}`))})};aa.propTypes={subcategory:s.shape({name:s.string,indicators:s.arrayOf(s.shape({name:s.string,value:s.string}))})};const sa=({category:e})=>{const{name:t,subcategories:n,indicators:r}=e||{},{activeCategory:o,fontColor:i}=Ve(a=>a);return e&&h.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)=>h.jsx(aa,{subcategory:a,fontColor:i},`subcategory-${l}`)):r&&r.map((a,l)=>h.jsx(vo,{indicator:a,fontColor:i},`indicator-${l}`))})};sa.propTypes={category:s.shape({name:s.string.isRequired,subcategories:s.array,indicators:s.array})};const la=({indicators:e=vl,isOpen:t=!0,title:n,fontColor:r="#605B56",inputsColor:o="#605B56"})=>{const{tematicalFiltersSelected:i}=Ve(l=>l),{t:a}=Oe.useTranslation();return b.useEffect(()=>{console.log("filtersSelected changed: ",i)},[i]),b.useEffect(()=>{r&&Ve.setState(()=>({fontColor:r}))},[r]),b.useEffect(()=>{o&&Ve.setState(()=>({inputsColor:o}))},[o]),h.jsx(Ot,{isOpen:t,title:n?a(n):"Tematical filters",color:r,children:e==null?void 0:e.map((l,c)=>h.jsx(sa,{category:l,fontColor:r},`category-${c}`))})};la.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 jl="_FiltersAmbitContainer_6o4gt_2",Ml="_FiltersAmbitHeader_6o4gt_7",Ll="_FiltersAmbitTitle_6o4gt_15",Nl="_FiltersAmbitDescription_6o4gt_22",Il="_FiltersAmbitDescriptionTitle_6o4gt_33",En={FiltersAmbitContainer:jl,FiltersAmbitHeader:Ml,FiltersAmbitTitle:Ll,FiltersAmbitDescription:Nl,FiltersAmbitDescriptionTitle:Il},Dl=({ambitName:e,ambitDescription:t,defaultFilters:n})=>{const{t:r}=Oe.useTranslation(),{tematicalFiltersSelected:o}=Ve(i=>i);return b.useEffect(()=>{n&&n.length>0&&Ve.setState(i=>({tematicalFiltersSelected:n}))},[n]),b.useEffect(()=>{console.log("filtersSelected changed: ",o)},[o]),h.jsxs("div",{className:En.FiltersAmbitContainer,children:[h.jsxs("div",{className:En.FiltersAmbitHeader,children:[h.jsx("div",{className:En.FiltersAmbitTitle,children:e}),h.jsxs("div",{className:En.FiltersAmbitDescription,children:[h.jsx("div",{className:En.FiltersAmbitDescriptionTitle,children:r("Descripción")}),t]})]}),h.jsx(na,{title:r("Filtros Aplicados"),isOpen:!0,textColor:"#ffffff",backgroundColor:"#605B5680"}),h.jsx(ra,{}),h.jsx(la,{})]})},Fl="_barChartContainer_d2f1z_2",Bl={barChartContainer:Fl},ca=({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}=Oe.useTranslation(),{xScale:f,ticks:p,height:v}=b.useMemo(()=>{if(e&&e.length>0){const _=(e==null?void 0:e.length)*(n+r)+i*2,d=Io.max(e,R=>R.value)||1,x=Io.scaleLinear().domain([0,u||d]).range([0,t-l]),E=Array.from({length:c+1},(R,A)=>u?u/c*A:d/c*A);return{xScale:x,ticks:E,height:_,width:t,verticalPaddign:i,horizontalPaddign:a}}else return{xScale:null,ticks:[],height:0}},[e,t,c,n,r,a,i,u]);return h.jsx("div",{className:Bl.barChartContainer,children:h.jsx("svg",{width:t+a*2,height:v,children:h.jsxs("g",{transform:`translate(0,${r})`,children:[h.jsx("g",{transform:`translate(${l+a}, 0)`,children:p.map((_,d)=>{const x=f(_);return h.jsxs("g",{transform:`translate(${x}, 0)`,children:[h.jsx("line",{y1:0,y2:v-r*2,stroke:"#ccc"}),h.jsx("text",{y:v-r,textAnchor:"middle",fontSize:10,fill:o,children:parseInt(_)})]},d)})}),e&&e.length>0&&(e==null?void 0:e.map((_,d)=>{const x=f(_.value),E=d*(n+r);return h.jsxs("g",{transform:`translate(${l+a}, ${E})`,children:[h.jsx("text",{x:-24,y:n/2+5,textAnchor:"end",fill:o,children:m(_.title)}),h.jsx("rect",{width:x,height:n,fill:_.color,rx:0})]},d)}))]})})})};ca.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 zl="_graphicContainer_c9zrg_2",Vl="_titleContainer_c9zrg_14",Qo={graphicContainer:zl,titleContainer:Vl},ua=({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}=Oe.useTranslation();return h.jsxs("div",{className:Qo.graphicContainer,style:{...n||{},border:`1.5px solid ${r}`},children:[h.jsx("div",{className:Qo.titleContainer,children:h.jsx("h2",{children:u(o)})}),h.jsx(ca,{data:e,width:t,fontColor:i,maxValue:a,numberOfDivisions:l,leftPadding:c})]})};ua.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 Ul="_indicatorsCategory_1cu33_2",ql="_title_1cu33_5",Wl="_list_1cu33_11",Wr={indicatorsCategory:Ul,title:ql,list:Wl},Hl="_indicatorContainer_wv1z4_2",Yl="_dot_wv1z4_11",Kl="_indicatorName_wv1z4_16",Zl="_switchExternalContainer_wv1z4_22",Gl="_switchType_wv1z4_31",Jl="_switchTypeOptions_wv1z4_35",Xl="_optionContainer_wv1z4_46",Ql="_customRadious_wv1z4_56",Be={indicatorContainer:Hl,dot:Yl,indicatorName:Kl,switchExternalContainer:Zl,switchType:Gl,switchTypeOptions:Jl,optionContainer:Xl,customRadious:Ql},bo=({indicator:e,values:t=[],activeColor:n,defaultColor:r="black",activeIndicator:o,onClickIndicator:i,multiple:a=!1})=>{const{t:l}=Oe.useTranslation(),{name:c,ikey:u,type:m}=e,[f,p]=b.useState(!1);b.useEffect(()=>{o&&p(a?o.some(d=>d.ikey==String(u)):o.ikey==u)},[o]);const v=()=>h.jsx("div",{className:Be.switchExternalContainer,children:h.jsx("div",{className:Be.switchType,children:h.jsxs("div",{className:Be.switchTypeOptions,children:[h.jsxs("div",{className:Be.optionContainer,children:[h.jsx("span",{className:`${Be.customRadious}`}),h.jsx("h4",{className:Be.optionText,children:l("indicators.cat")})]}),h.jsxs("div",{className:Be.optionContainer,children:[h.jsx("span",{className:`${Be.customRadious}`}),h.jsx("h4",{className:Be.optionText,children:l("indicators.abs")})]})]})})}),_=()=>h.jsx("div",{className:Be.switchExternalContainer,children:h.jsx("div",{className:Be.switchType,children:h.jsx("div",{className:Be.switchTypeOptions,children:t.map((d,x)=>h.jsxs("div",{className:Be.optionContainer,children:[h.jsx("span",{className:Be.customRadious}),h.jsx("h4",{children:l(d.unit)})]},x))})})});return h.jsxs("button",{onClick:()=>i({indicator:e}),className:Be.indicatorContainer,children:[h.jsx("div",{style:{border:f?`1px solid ${n}`:`1px solid ${r}`},className:Be.dot}),h.jsx("h4",{className:Be.indicatorName,style:{color:f?n:r},children:l(c)}),o===u&&m==="both"&&h.jsx("div",{children:v()}),o===u&&m==="twoUnits"&&h.jsx("div",{children:_()})]})};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 ec="_indicatorsSubCategory_1dzsi_2",tc="_list_1dzsi_8",ei={indicatorsSubCategory:ec,list:tc},da=({subcName:e,indicators:t,defaultColor:n,activeColor:r,activeSubCategory:o,onClickSubCategory:i,id:a,activeIndicator:l,onClickIndicator:c,multiple:u})=>{const{t:m}=Oe.useTranslation(),[f,p]=b.useState(!1);return b.useEffect(()=>{p(o==a)},[o,a]),h.jsxs(ho.motion.div,{className:ei.indicatorsSubCategory,initial:{height:"43px"},animate:{height:f?"auto":"43px"},transition:{duration:.4},children:[h.jsx("button",{onClick:()=>i(a),children:h.jsxs("h3",{style:{color:f?r:n},children:[h.jsx("span",{style:{color:f?r:n},children:f?"-":"+"}),h.jsx("span",{style:{marginLeft:12,color:f?r:n},children:m(e)})]})}),t&&h.jsx("div",{className:ei.list,children:t==null?void 0:t.map((v,_)=>h.jsx(bo,{indicator:v,defaultColor:n,activeColor:r,activeIndicator:l,onClickIndicator:c,multiple:u},"indicator"+_))})]})};da.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 fa=({cat:e,id:t,activeColor:n,defaultColor:r,onClickCategory:o,activeCategory:i,activeSubCategory:a,onClickSubCategory:l,activeIndicator:c,onClickIndicator:u,multiple:m})=>{var _;const{t:f}=Oe.useTranslation(),[p,v]=b.useState(!1);return b.useEffect(()=>{v(i===t)},[i,t]),h.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:[h.jsxs("h2",{className:`${Wr.title}`,onClick:()=>o(t),children:[h.jsx("span",{style:{color:p?n:r},children:p?"-":"+"}),h.jsx("span",{style:{marginLeft:12,color:p?n:r},children:f(e.name)})]}),e.subcategories?e.subcategories.map(({name:d,subcategory:x,indicators:E},R)=>h.jsx(da,{id:x,activeSubCategory:a,subcName:d,onClickSubCategory:l,activeIndicator:c,onClickIndicator:u,multiple:m,activeColor:n,defaultColor:r,indicators:E},`subcKey ${R}`)):h.jsx("div",{className:Wr.list,children:(_=e.indicators)==null?void 0:_.map((d,x)=>h.jsx(bo,{indicator:d,values:d.type=="twoUnits"&&d.values,activeColor:n,defaultColor:r,activeIndicator:c,onClickIndicator:u,multiple:m},`indicator${x}`))})]})};fa.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 nc="_indicatorsList_k90zc_2",rc="_title_k90zc_6",ti={indicatorsList:nc,title:rc},ma=({indicators:e,activeColor:t,defaultColor:n="#92898A",onChange:r,multiple:o=!1,defaultValue:i=null,changeIndType:a,activeIndicatorType:l})=>{const{t:c}=Oe.useTranslation(),[u,m]=b.useState(),[f,p]=b.useState(),[v,_]=b.useState(),d=O=>{m(u==O?null:O)},x=O=>{p(f==O?null:O)},E=({indicator:O})=>{console.log("onClickIndicator: ",O),R(O)},R=O=>{if(!o)_((v==null?void 0:v.name)==O.name?null:O);else{let C=v&&v.length>0?[...v]:[];_(C!=null&&C.some(F=>F.name==O.name)?C.filter(F=>F.name!=String(O.name)):[...C,O]),O.type=="both"&&a("cat")}};b.useEffect(()=>{console.log("activeindicator changed to: ",v),r&&typeof r=="function"&&v&&r({activeIndicator:v})},[v]),b.useLayoutEffect(()=>{if(i&&!v)if(o&&i&&Array.isArray(i)){let O=v&&v.length>0?[...v]:[];_([...O,...i]),A(i[0].name)}else R(i),A(i.name)},[]);const A=O=>{const C=e.find(F=>{if(F.subcategories){let y=F.subcategories.find(T=>T.indicators.find(S=>S.name==O));if(y)return p(y.subcategory),y}else return F.indicators.some(y=>y.name==O)});C&&m(C.category)};return h.jsxs("div",{className:ti.indicatorsList,children:[h.jsx("h2",{className:ti.title,style:{color:n},children:c("indicators.indicators")}),e.map((O,C)=>h.jsx(fa,{id:O.category,cat:O,onClickCategory:d,activeCategory:u,onClickSubCategory:x,activeSubCategory:f,onClickIndicator:E,activeIndicator:v,activeColor:t,defaultColor:n,multiple:o,onChange:r,onChangeType:a,activeIndicatorType:l},`categoryKey${C}`))]})};ma.propTypes={indicators:s.arrayOf(s.object),activeColor:s.string,defaultColor:s.string,onChange:s.func,changeIndType:s.func,multiple:s.bool,activeIndicator:s.oneOfType([s.object,s.array]),defaultValue:s.oneOfType([s.object,s.array]),activeIndicatorType:s.string};const oc="_langSelector_1of0g_2",ic="_currentLang_1of0g_7",ac="_arrow_1of0g_19",sc="_prevImg_1of0g_22",lc="_langMenu_1of0g_26",Zt={langSelector:oc,currentLang:ic,arrow:ac,prevImg:sc,langMenu:lc},pa=({langs:e,arrow:t,imgPrev:n})=>{const[r,o]=b.useState(!1),{i18n:i}=Oe.useTranslation(),a=e.find(c=>c.code==i.language),l=c=>{i.changeLanguage(c),o(!1)};return h.jsxs("div",{className:Zt.langSelector,children:[h.jsxs("div",{className:Zt.currentLang,onClick:()=>{o(!r)},children:[n&&h.jsx("img",{className:Zt.prevImg,src:n}),a.titleSelected||a.title,h.jsx("img",{src:t,className:Zt.arrow})]}),r&&h.jsx("div",{className:Zt.langMenu,children:e.map(c=>h.jsx("button",{className:a.code==c.code?Zt.active:"",onClick:()=>l(c.code),children:c.title},c.code))})]})};pa.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 cc="_legendContainer_atg3j_3",uc="_closeButton_atg3j_18",dc="_titleContainer_atg3j_46",fc="_infoContainer_atg3j_52",mc="_titleLegendList_atg3j_63",pc="_legendListContainer_atg3j_70",hc="_gridContainer_atg3j_70",gc="_elementLegendContainer_atg3j_76",yc="_colorDot_atg3j_82",vc="_absoluteValueContainer_atg3j_88",bc="_absoluteValueColor_atg3j_91",_c="_absoluteValueText_atg3j_96",Cc="_moreInfoContainer_atg3j_108",We={legendContainer:cc,closeButton:uc,titleContainer:dc,infoContainer:fc,titleLegendList:mc,legendListContainer:pc,gridContainer:hc,elementLegendContainer:gc,colorDot:yc,absoluteValueContainer:vc,absoluteValueColor:bc,absoluteValueText:_c,moreInfoContainer:Cc},ha=({containerStyles:e,title:t,infoList:n,legendList:r,legendListTitle:o,absoluteValue:i,onClickMoreInfo:a,buttonTitle:l,onClickClose:c})=>{const{t:u}=Oe.useTranslation();return h.jsxs("div",{style:e?{...e}:{},className:`${We.legendContainer}`,children:[h.jsx("button",{className:We.closeButton,onClick:c}),t&&h.jsx("div",{className:We.titleContainer,children:h.jsx("h2",{children:t})}),n&&n.length>0&&h.jsx("div",{className:We.infoContainer,children:h.jsx("ul",{children:n.map(({title:m,value:f})=>h.jsxs("li",{children:[h.jsx("h3",{className:We.title,children:`${m}:`}),h.jsxs("span",{className:We.value,children:[" ",f]})]},t))})}),h.jsx("h3",{className:We.titleLegendList,children:u(o||"mainUse")}),h.jsx("div",{className:We.legendListContainer,children:i?h.jsxs("div",{className:We.absoluteValueContainer,children:[h.jsx("div",{className:We.absoluteValueColor,style:{background:`linear-gradient(to bottom, ${i.maxColor} 0%, ${i.minColor} 100%)`}}),h.jsxs("div",{className:We.absoluteValueText,children:[h.jsxs("span",{children:[i.maxValue," ",u(i.unit)]}),h.jsxs("span",{children:[i.minValue," ",u(i.unit)]})]})]}):r&&r.length>0&&h.jsx("div",{className:We.gridContainer,children:r.map(({title:m,color:f})=>h.jsxs("div",{className:We.elementLegendContainer,children:[h.jsx("div",{className:We.colorDot,style:{backgroundColor:f}}),h.jsxs("div",{className:We.titleLegendElement,children:[u(m)," "]})]},t))})}),a&&h.jsx("button",{className:We.moreInfoContainer,onClick:a,children:l||u("moreInformation")})]})};ha.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 xc="_logo_1ewa6_2",ni={logo:xc},ga=({src:e,alt:t,href:n})=>{const{t:r}=Oe.useTranslation(),o=h.jsx("img",{src:e,alt:r(t)});return n?h.jsx("div",{className:ni.logo,children:h.jsx("a",{href:n,children:o})}):h.jsx("div",{className:ni.logo,children:o})};ga.propTypes={src:s.string.isRequired,alt:s.string.isRequired,href:s.string,className:s.string};const Ec=X.createContext(null);function Sc(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 Tc(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 wc=["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 wc)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"},kc=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],Oc=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class ln{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=ln.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||Rc()||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(),ln.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=Tc(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 kc)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 Oc){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}}}ln.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 Ac=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function Pc(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 $c(t))!(r in n)&&!Ac.includes(r)&&(n[r]=t[r].bind(t));return n}function $c(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 jc=typeof document<"u"?b.useLayoutEffect:b.useEffect,Mc=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function Lc(e,t){for(const r of Mc)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 dn=X.createContext(null);function Nc(e,t){const n=b.useContext(Ec),[r,o]=b.useState(null),i=b.useRef(),{current:a}=b.useRef({mapLib:null,map:null});b.useEffect(()=>{const u=e.mapLib;let m=!0,f;return Promise.resolve(u||import("mapbox-gl")).then(p=>{if(!m)return;if(!p)throw new Error("Invalid mapLib");const v="Map"in p?p:p.default;if(!v.Map)throw new Error("Invalid mapLib");Lc(v,e),e.reuseMaps&&(f=ln.reuse(e,i.current)),f||(f=new ln(v.Map,e,i.current)),a.map=Pc(f),a.mapLib=v,o(f),n==null||n.onMapMount(a.map,e.id)}).catch(p=>{const{onError:v}=e;v?v({type:"error",target:null,error:p}):console.error(p)}),()=>{m=!1,f&&(n==null||n.onMapUnmount(e.id),e.reuseMaps?f.recycle():f.destroy())}},[]),jc(()=>{r&&r.setProps(e)}),b.useImperativeHandle(t,()=>a.map,[r]);const l=b.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(dn.Provider,{value:a},X.createElement("div",{"mapboxgl-children":"",style:c},e.children)))}const Ic=X.forwardRef(Nc),Dc=/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)&&!Dc.test(r)?n[r]=`${o}px`:n[r]=o}}function ya(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+/):[])}b.memo(b.forwardRef((e,t)=>{const{map:n,mapLib:r}=b.useContext(dn),o=b.useRef({props:e}),i=b.useMemo(()=>{let E=!1;X.Children.forEach(e.children,O=>{O&&(E=!0)});const R={...e,element:E?document.createElement("div"):null},A=new r.Marker(R);return A.setLngLat([e.longitude,e.latitude]),A.getElement().addEventListener("click",O=>{var C,F;(F=(C=o.current.props).onClick)==null||F.call(C,{type:"click",target:A,originalEvent:O})}),A.on("dragstart",O=>{var F,y;const C=O;C.lngLat=i.getLngLat(),(y=(F=o.current.props).onDragStart)==null||y.call(F,C)}),A.on("drag",O=>{var F,y;const C=O;C.lngLat=i.getLngLat(),(y=(F=o.current.props).onDrag)==null||y.call(F,C)}),A.on("dragend",O=>{var F,y;const C=O;C.lngLat=i.getLngLat(),(y=(F=o.current.props).onDragEnd)==null||y.call(F,C)}),A},[]);b.useEffect(()=>(i.addTo(n.getMap()),()=>{i.remove()}),[]);const{longitude:a,latitude:l,offset:c,style:u,draggable:m=!1,popup:f=null,rotation:p=0,rotationAlignment:v="auto",pitchAlignment:_="auto"}=e;b.useEffect(()=>{It(i.getElement(),u)},[u]),b.useImperativeHandle(t,()=>i,[]);const d=o.current.props;(i.getLngLat().lng!==a||i.getLngLat().lat!==l)&&i.setLngLat([a,l]),c&&!Sc(i.getOffset(),c)&&i.setOffset(c),i.isDraggable()!==m&&i.setDraggable(m),i.getRotation()!==p&&i.setRotation(p),i.getRotationAlignment()!==v&&i.setRotationAlignment(v),i.getPitchAlignment()!==_&&i.setPitchAlignment(_),i.getPopup()!==f&&i.setPopup(f);const x=ya(d.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 Fc=b.memo(b.forwardRef((e,t)=>{const{map:n,mapLib:r}=b.useContext(dn),o=b.useMemo(()=>document.createElement("div"),[]),i=b.useRef({props:e}),a=b.useMemo(()=>{const l={...e},c=new r.Popup(l);return c.setLngLat([e.longitude,e.latitude]),c.once("open",u=>{var m,f;(f=(m=i.current.props).onOpen)==null||f.call(m,u)}),c},[]);if(b.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()}},[]),b.useEffect(()=>{It(a.getElement(),e.style)},[e.style]),b.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=ya(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=b.useContext(dn),i=b.useMemo(()=>e(o),[]);return b.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 Bc(e){const t=Nn(({mapLib:n})=>new n.AttributionControl(e),{position:e.position});return b.useEffect(()=>{It(t._container,e.style)},[e.style]),null}b.memo(Bc);function zc(e){const t=Nn(({mapLib:n})=>new n.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return b.useEffect(()=>{It(t._controlContainer,e.style)},[e.style]),null}b.memo(zc);function Vc(e,t){const n=b.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,b.useImperativeHandle(t,()=>r,[]),b.useEffect(()=>{It(r._container,e.style)},[e.style]),null}b.memo(b.forwardRef(Vc));function Uc(e){const t=Nn(({mapLib:n})=>new n.NavigationControl(e),{position:e.position});return b.useEffect(()=>{It(t._container,e.style)},[e.style]),null}const qc=b.memo(Uc);function Wc(e){const t=Nn(({mapLib:i})=>new i.ScaleControl(e),{position:e.position}),n=b.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),b.useEffect(()=>{It(t._container,o)},[o]),null}b.memo(Wc);function ur(e,t){if(!e)throw new Error(t)}let Hc=0;function Yc(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 Kc(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 Zc(e){const t=b.useContext(dn).map.getMap(),n=b.useRef(e),[,r]=b.useState(0),o=b.useMemo(()=>e.id||`jsx-source-${Hc++}`,[]);b.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?Kc(i,e,n.current):i=Yc(t,o,e),n.current=e,i&&X.Children.map(e.children,a=>a&&b.cloneElement(a,{source:o}))||null}function Gc(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 f in o)Qe(o[f],m[f])||e.setLayoutProperty(t,f,o[f]);for(const f in m)o.hasOwnProperty(f)||e.setLayoutProperty(t,f,void 0)}if(i!==r.paint){const m=r.paint||{};for(const f in i)Qe(i[f],m[f])||e.setPaintProperty(t,f,i[f]);for(const f in m)i.hasOwnProperty(f)||e.setPaintProperty(t,f,void 0)}Qe(a,r.filter)||e.setFilter(t,a),(l!==r.minzoom||c!==r.maxzoom)&&e.setLayerZoomRange(t,l,c)}function Jc(e,t,n){if(e.style&&e.style._loaded&&(!("source"in n)||e.getSource(n.source))){const r={...n,id:t};delete r.beforeId,e.addLayer(r,n.beforeId)}}let Xc=0;function Qc(e){const t=b.useContext(dn).map.getMap(),n=b.useRef(e),[,r]=b.useState(0),o=b.useMemo(()=>e.id||`jsx-layer-${Xc++}`,[]);if(b.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{Gc(t,o,e,n.current)}catch(a){console.warn(a)}else Jc(t,o,e);return n.current=e,null}const eu="_mapContainer_84pkf_2",tu={mapContainer:eu};Ts.accessToken="pk.eyJ1IjoiY2ljbGljYSIsImEiOiJja3llODhxZ2UwYzF1Mm5xcHVhMzI3anhqIn0.-r56FLAzEH57eVsB2ZeVcA";const va=({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 f=b.useRef(),[p,v]=b.useState(null),_=kn.useSelector(d=>d.mapState.showTexts);return b.useEffect(()=>{if(f.current){const d=f.current.getMap();d.getStyle().layers.map(E=>{E.type=="symbol"&&E.id!="professionals"&&(_?d.setLayoutProperty(E.id,"visibility","visible"):d.setLayoutProperty(E.id,"visibility","none"))})}},[_]),h.jsx("div",{className:`${tu.mapContainer}`,style:i,children:h.jsxs(Ic,{initialViewState:e,ref:f,hash:!1,maxZoom:t,minZoom:n,mapStyle:r,onClick:a,interactiveLayerIds:l,children:[u.length&&u.map((d,x)=>h.jsx(Zc,{...d,children:m.length&&m.map((E,R)=>{if(E.sourceId==d.id)return h.jsx(Qc,{...E.layer,beforeId:o},R)})},x)),h.jsx(qc,{position:"bottom-right",visualizePitch:!0}),c&&p&&h.jsx(Fc,{longitude:c.longitude,latitude:c.latitude,anchor:c.anchor,onClose:()=>v(null),children:c.content})]})})};va.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,nu=Int32Array,ba=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]),_a=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]),ru=new et([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ca=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 nu(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}},xa=Ca(ba,2),Ea=xa.b,ou=xa.r;Ea[28]=258,ou[258]=28;var iu=Ca(_a,0),au=iu.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],f=a[e[o]-1]++<<m,p=f|(1<<m)-1;f<=p;++f)l[ao[f]>>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 Sa=new et(32);for(var Te=0;Te<32;++Te)Sa[Te]=5;var su=On(In,9,1),lu=On(Sa,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)},cu=function(e){return(e+7)/8|0},uu=function(e,t,n){return(n==null||n>e.length)&&(n=e.length),new et(e.subarray(t,n))},du=["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||du[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 $=n.length;if(be>$){var _e=new et(Math.max($*2,be));_e.set(n),n=_e}},m=t.f||0,f=t.p||0,p=t.b||0,v=t.l,_=t.d,d=t.m,x=t.n,E=o*8;do{if(!v){m=ct(e,f,1);var R=ct(e,f+1,3);if(f+=3,R)if(R==1)v=su,_=lu,d=9,x=5;else if(R==2){var F=ct(e,f,31)+257,y=ct(e,f+10,15)+4,T=F+ct(e,f+5,31)+1;f+=14;for(var S=new et(T),P=new et(19),N=0;N<y;++N)P[ru[N]]=ct(e,f+N*3,7);f+=y*3;for(var H=Yr(P),V=(1<<H)-1,ce=On(P,H,1),N=0;N<T;){var Y=ce[ct(e,f,V)];f+=Y&15;var A=Y>>4;if(A<16)S[N++]=A;else{var ie=0,re=0;for(A==16?(re=3+ct(e,f,3),f+=2,ie=S[N-1]):A==17?(re=3+ct(e,f,7),f+=3):A==18&&(re=11+ct(e,f,127),f+=7);re--;)S[N++]=ie}}var we=S.subarray(0,F),Pe=S.subarray(F);d=Yr(we),x=Yr(Pe),v=On(we,d,1),_=On(Pe,x,1)}else Xe(1);else{var A=cu(f)+4,O=e[A-4]|e[A-3]<<8,C=A+O;if(C>o){c&&Xe(0);break}l&&u(p+O),n.set(e.subarray(A,C),p),t.b=p+=O,t.p=f=C*8,t.f=m;continue}if(f>E){c&&Xe(0);break}}l&&u(p+131072);for(var k=(1<<d)-1,M=(1<<x)-1,Q=f;;Q=f){var ie=v[Kr(e,f)&k],q=ie>>4;if(f+=ie&15,f>E){c&&Xe(0);break}if(ie||Xe(2),q<256)n[p++]=q;else if(q==256){Q=f,v=null;break}else{var B=q-254;if(q>264){var N=q-257,ee=ba[N];B=ct(e,f,(1<<ee)-1)+Ea[N],f+=ee}var Z=_[Kr(e,f)&M],K=Z>>4;Z||Xe(3),f+=Z&15;var Pe=au[K];if(K>3){var ee=_a[K];Pe+=Kr(e,f)&(1<<ee)-1,f+=ee}if(f>E){c&&Xe(0);break}l&&u(p+131072);var U=p+B;if(p<Pe){var G=i-Pe,ne=Math.min(Pe,U);for(G+p<0&&Xe(3);p<ne;++p)n[p]=r[G+p]}for(;p<U;++p)n[p]=n[p-Pe]}}t.l=v,t.p=Q,t.b=p,t.f=m,v&&(m=1,t.m=d,t.d=_,t.n=x)}while(!m);return p!=n.length&&a?uu(n,0,p):n.subarray(0,p)},fu=new et(0),mu=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)},pu=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},hu=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 gu(e,t){return _o(e,{i:2},t,t)}function yu(e,t){var n=mu(e);return n+8>e.length&&Xe(6,"invalid gzip data"),_o(e.subarray(n,-8),{i:2},new et(pu(e)),t)}function vu(e,t){return _o(e.subarray(hu(e),-4),{i:2},t,t)}function bu(e,t){return e[0]==31&&e[1]==139&&e[2]==8?yu(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?gu(e,t):vu(e,t)}var _u=typeof TextDecoder<"u"&&new TextDecoder,Cu=0;try{_u.decode(fu,{stream:!0}),Cu=1}catch{}var xu=Object.defineProperty,Rn=Math.pow,Ee=(e,t)=>xu(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 f=new Blob([m.data],{type:r}),p=window.URL.createObjectURL(f);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 Eu=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"),Ta=class{constructor(t){this.tilev4=Ee((n,r)=>Fe(this,null,function*(){if(n.type==="json"){let v=n.url.substr(10),_=this.tiles.get(v);if(_||(_=new di(v),this.tiles.set(v,_)),this.metadata)return{data:yield _.getTileJson(n.url)};let d=yield _.getHeader();return(d.minLon>=d.maxLon||d.minLat>=d.maxLat)&&console.error(`Bounds of PMTiles archive ${d.minLon},${d.minLat},${d.maxLon},${d.maxLat} are not valid.`),{data:{tiles:[`${n.url}/{z}/{x}/{y}`],minzoom:d.minZoom,maxzoom:d.maxZoom,bounds:[d.minLon,d.minLat,d.maxLon,d.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],f=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(f.tileType===1){if(this.errorOnMissingTile)throw new Error("Tile not found.");return{data:new Uint8Array}}return{data:null}}),"tilev4"),this.tile=Eu(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(Ta,"Protocol");var Su=Ta;function wa(e,t){return(t>>>0)*4294967296+(e>>>0)}Ee(wa,"toNum");function ka(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 wa(e,o);throw new Error("Expected varint not more than 10 bytes")}Ee(ka,"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,ka(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 Oa(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(Oa,"idOnLevel");var Tu=[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>Rn(2,e)-1||n>Rn(2,e)-1)throw new Error("tile x/y outside zoom level bounds");let r=Tu[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(Ra,"zxyToTileId");function wu(e){let t=0;for(let n=0;n<27;n++){let r=(1<<n)*(1<<n);if(t+r>e)return Oa(n,e-t);t+=r}throw new Error("Tile zoom level exceeds max safe number limit (26)")}Ee(wu,"tileIdToZxy");var ku=(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))(ku||{});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 bu(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 Ou=(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))(Ou||{});function Aa(e){return e===1?".mvt":e===2?".png":e===3?".jpg":e===4?".webp":e===5?".avif":""}Ee(Aa,"tileTypeExt");var Ru=127;function Pa(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(Pa,"findTile");var Au=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(Au,"FileSource");var $a=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 v=+p.substr(8);u=yield fetch(this.url,{signal:a,cache:"reload",headers:{range:`bytes=0-${v-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 f=u.headers.get("Content-Length");if(u.status===200&&(!f||+f>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($a,"FetchSource");var Pu=$a;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 ja(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(ja,"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 Ma=class extends Error{};Ee(Ma,"EtagMismatch");var so=Ma;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,Ru),o=ja(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 $u=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($u,"ResolvedValueCache");var La=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(La,"SharedPromiseCache");var ju=La,Na=class{constructor(t,n,r){typeof t=="string"?this.source=new Pu(t):this.source=t,r?this.decompress=r:this.decompress=gr,n?this.cache=n:this.cache=new ju}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),f=Pa(m,i);if(f){if(f.runLength>0){let p=yield this.source.getBytes(a.tileDataOffset+f.offset,f.length,o,a.etag);return{data:yield this.decompress(p.data,a.tileCompression),cacheControl:p.cacheControl,expires:p.expires}}l=a.leafDirectoryOffset+f.offset,c=f.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=Aa(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(Na,"PMTiles");var di=Na;const Mu=X.createContext(null);function Lu(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 Nu=["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 Nu)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"},Iu=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],Du=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class cn{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=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;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(),cn.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 Iu)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 Du){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}}cn.savedMaps=[];const Fu=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function Bu(e){if(!e)return null;const t=e.map,n={getMap:()=>t};for(const r of zu(t))!(r in n)&&!Fu.includes(r)&&(n[r]=t[r].bind(t));return n}function zu(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 Vu=typeof document<"u"?b.useLayoutEffect:b.useEffect;function Uu(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 fn=X.createContext(null);function qu(e,t){const n=b.useContext(Mu),[r,o]=b.useState(null),i=b.useRef(),{current:a}=b.useRef({mapLib:null,map:null});b.useEffect(()=>{const u=e.mapLib;let m=!0,f;return Promise.resolve(u||import("maplibre-gl")).then(p=>{if(!m)return;if(!p)throw new Error("Invalid mapLib");const v="Map"in p?p:p.default;if(!v.Map)throw new Error("Invalid mapLib");Uu(v,e),e.reuseMaps&&(f=cn.reuse(e,i.current)),f||(f=new cn(v.Map,e,i.current)),a.map=Bu(f),a.mapLib=v,o(f),n==null||n.onMapMount(a.map,e.id)}).catch(p=>{const{onError:v}=e;v?v({type:"error",target:null,originalEvent:null,error:p}):console.error(p)}),()=>{m=!1,f&&(n==null||n.onMapUnmount(e.id),e.reuseMaps?f.recycle():f.destroy())}},[]),Vu(()=>{r&&r.setProps(e)}),b.useImperativeHandle(t,()=>a.map,[r]);const l=b.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 Wu=X.forwardRef(qu),Hu=/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)&&!Hu.test(r)?n[r]=`${o}px`:n[r]=o}}function Ia(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+/):[])}b.memo(b.forwardRef((e,t)=>{const{map:n,mapLib:r}=b.useContext(fn),o=b.useRef({props:e}),i=b.useMemo(()=>{let E=!1;X.Children.forEach(e.children,O=>{O&&(E=!0)});const R={...e,element:E?document.createElement("div"):void 0},A=new r.Marker(R);return A.setLngLat([e.longitude,e.latitude]),A.getElement().addEventListener("click",O=>{var C,F;(F=(C=o.current.props).onClick)==null||F.call(C,{type:"click",target:A,originalEvent:O})}),A.on("dragstart",O=>{var F,y;const C=O;C.lngLat=i.getLngLat(),(y=(F=o.current.props).onDragStart)==null||y.call(F,C)}),A.on("drag",O=>{var F,y;const C=O;C.lngLat=i.getLngLat(),(y=(F=o.current.props).onDrag)==null||y.call(F,C)}),A.on("dragend",O=>{var F,y;const C=O;C.lngLat=i.getLngLat(),(y=(F=o.current.props).onDragEnd)==null||y.call(F,C)}),A},[]);b.useEffect(()=>(i.addTo(n.getMap()),()=>{i.remove()}),[]);const{longitude:a,latitude:l,offset:c,style:u,draggable:m=!1,popup:f=null,rotation:p=0,rotationAlignment:v="auto",pitchAlignment:_="auto"}=e;b.useEffect(()=>{bt(i.getElement(),u)},[u]),b.useImperativeHandle(t,()=>i,[]);const d=o.current.props;(i.getLngLat().lng!==a||i.getLngLat().lat!==l)&&i.setLngLat([a,l]),c&&!Lu(i.getOffset(),c)&&i.setOffset(c),i.isDraggable()!==m&&i.setDraggable(m),i.getRotation()!==p&&i.setRotation(p),i.getRotationAlignment()!==v&&i.setRotationAlignment(v),i.getPitchAlignment()!==_&&i.setPitchAlignment(_),i.getPopup()!==f&&i.setPopup(f);const x=Ia(d.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 Yu=b.memo(b.forwardRef((e,t)=>{const{map:n,mapLib:r}=b.useContext(fn),o=b.useMemo(()=>document.createElement("div"),[]),i=b.useRef({props:e}),a=b.useMemo(()=>{const l={...e},c=new r.Popup(l);return c.setLngLat([e.longitude,e.latitude]),c.once("open",u=>{var m,f;(f=(m=i.current.props).onOpen)==null||f.call(m,u)}),c},[]);if(b.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()}},[]),b.useEffect(()=>{bt(a.getElement(),e.style)},[e.style]),b.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=Ia(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=b.useContext(fn),i=b.useMemo(()=>e(o),[]);return b.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 Ku(e){const t=Dt(({mapLib:n})=>new n.AttributionControl(e),{position:e.position});return b.useEffect(()=>{bt(t._container,e.style)},[e.style]),null}b.memo(Ku);function Zu(e){const t=Dt(({mapLib:n})=>new n.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return b.useEffect(()=>{bt(t._controlContainer,e.style)},[e.style]),null}b.memo(Zu);function Gu(e,t){const n=b.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,b.useImperativeHandle(t,()=>r,[]),b.useEffect(()=>{bt(r._container,e.style)},[e.style]),null}b.memo(b.forwardRef(Gu));function Ju(e){const t=Dt(({mapLib:n})=>new n.NavigationControl(e),{position:e.position});return b.useEffect(()=>{bt(t._container,e.style)},[e.style]),null}const Xu=b.memo(Ju);function Qu(e){const t=Dt(({mapLib:i})=>new i.ScaleControl(e),{position:e.position}),n=b.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),b.useEffect(()=>{bt(t._container,o)},[o]),null}b.memo(Qu);function ed(e){const t=Dt(({mapLib:n})=>new n.TerrainControl(e),{position:e.position});return b.useEffect(()=>{bt(t._container,e.style)},[e.style]),null}b.memo(ed);function td(e){const t=Dt(({mapLib:n})=>new n.LogoControl(e),{position:e.position});return b.useEffect(()=>{bt(t._container,e.style)},[e.style]),null}b.memo(td);function dr(e,t){if(!e)throw new Error(t)}let nd=0;function rd(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 od(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 id(e){const t=b.useContext(fn).map.getMap(),n=b.useRef(e),[,r]=b.useState(0),o=b.useMemo(()=>e.id||`jsx-source-${nd++}`,[]);b.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?od(i,e,n.current):i=rd(t,o,e),n.current=e,i&&X.Children.map(e.children,a=>a&&b.cloneElement(a,{source:o}))||null}function ad(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 f in o)Ze(o[f],m[f])||e.setLayoutProperty(t,f,o[f]);for(const f in m)o.hasOwnProperty(f)||e.setLayoutProperty(t,f,void 0)}if(i!==r.paint){const m=r.paint||{};for(const f in i)Ze(i[f],m[f])||e.setPaintProperty(t,f,i[f]);for(const f in m)i.hasOwnProperty(f)||e.setPaintProperty(t,f,void 0)}Ze(a,r.filter)||e.setFilter(t,a),(l!==r.minzoom||c!==r.maxzoom)&&e.setLayerZoomRange(t,l,c)}function sd(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 ld=0;function cd(e){const t=b.useContext(fn).map.getMap(),n=b.useRef(e),[,r]=b.useState(0),o=b.useMemo(()=>e.id||`jsx-layer-${ld++}`,[]);if(b.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{ad(t,o,e,n.current)}catch(a){console.warn(a)}else sd(t,o,e);return n.current=e,null}const ud="_mapContainer_ivruh_3",dd={mapContainer:ud},fd="_FeaturePopUp_1gd6w_2",md="_title_1gd6w_2",_i={FeaturePopUp:fd,title:md},pd=({props:e})=>{const{t}=Oe.useTranslation();return h.jsx("div",{className:_i.FeaturePopUp,children:e.map(n=>h.jsxs("p",{children:[h.jsxs("span",{className:_i.title,children:[h.jsx(Oe.Trans,{i18nKey:n.name,components:{sup:h.jsx("sup",{})}}),": "]}),n.value.toLocaleString("de",{maximumFractionDigits:2})," ",t(n.unit)]}))})},Da=({initialView:e={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:t=17,minZoom:n=8,mapStyle:r,firstSymbolLayer:o,cssProps:i={},onClick:a="",interactiveLayers:l=[],sources:c=[],layers:u=[],filters:m,popUpParams:f,onClosePopUp:p,showTexts:v})=>{console.log(m);const _=b.useRef();return b.useEffect(()=>{if(_.current){const d=_.current.getMap();d.getStyle().layers.map(E=>{E.type=="symbol"&&E.id!="professionals"&&(v?d.setLayoutProperty(E.id,"visibility","visible"):d.setLayoutProperty(E.id,"visibility","none"))})}},[v]),b.useEffect(()=>{let d=new Su;return Lo.addProtocol("pmtiles",d.tile),()=>{Lo.removeProtocol("pmtiles")}},[]),h.jsx("div",{className:`${dd.mapContainer}`,style:i&&i,children:h.jsxs(Wu,{initialViewState:e,ref:_,hash:!1,maxZoom:t,minZoom:n,mapStyle:r,onClick:a,interactiveLayerIds:l,children:[c.length&&c.map((d,x)=>h.jsx(id,{...d,children:u.length&&u.map((E,R)=>{if(E.sourceId==d.id)return h.jsx(cd,{...E.layer,beforeId:o,filter:m&&m},R)})},x)),h.jsx(Xu,{position:"bottom-right",visualizePitch:!0}),f&&h.jsx(Yu,{longitude:f.lng,latitude:f.lat,onClose:p,children:h.jsx(pd,{props:f.props})})]})})};Da.propTypes={initialView:s.shape({latitude:s.number.isRequired,longitude:s.number.isRequired,zoom:s.number.isRequired}),mapStyle:s.string,firstSymbolLayer:s.string,cssProps:s.object,style:s.object,maxZoom:s.number,minZoom:s.number,onClick:s.func,interactiveLayers:s.array,popUp:s.bool,sources:s.arrayOf(s.shape({id:s.string,type:s.string,url:s.string,data:s.object})),layers:s.arrayOf(s.shape({sourceId:s.string,layer:s.shape({id:s.string,type:s.string,sourceLayer:s.string,minZoom:s.number,maxZoom:s.number,paint:s.object})})),showTexts:s.bool,filters:s.array,popUpParams:s.object,onClosePopUp:s.func};const hd="_sectionBar_2vnc3_2",gd="_leftContent_2vnc3_13",yd="_textContainer_2vnc3_19",vd="_title_2vnc3_26",bd="_subtitle_2vnc3_32",_d="_rightContent_2vnc3_37",Lt={sectionBar:hd,leftContent:gd,textContainer:yd,title:vd,subtitle:bd,rightContent:_d},Fa=({leftIcon:e,title:t,subtitle:n,rightContent:r,mainColor:o})=>{const{t:i}=Oe.useTranslation();return h.jsxs("div",{className:Lt.sectionBar,children:[h.jsxs("div",{className:Lt.leftContent,children:[e&&h.jsx("img",{src:e,alt:"Icono",className:Lt.icon}),h.jsxs("div",{className:Lt.textContainer,children:[h.jsx("div",{className:Lt.title,style:o?{color:o}:{},children:i(t)}),n&&h.jsx("div",{className:Lt.subtitle,children:n})]})]}),h.jsx("div",{className:Lt.rightContent,children:r})]})};Fa.propTypes={leftIcon:s.node.isRequired,title:s.string.isRequired,subtitle:s.string,rightContent:s.node.isRequired,mainColor:s.string};const Cd=Ki.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:C0,setYear:Zr,setActiveIndicatorKey:x0,setActiveIndicatorType:E0,setActiveIndicatorUnit:S0}=Cd.actions,xd="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",Ed="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 z(){return z=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},z.apply(null,arguments)}function Ba(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=Ba(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=Ba(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 Sd(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 Ae={},Gr={exports:{}},xi;function za(){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 Td=Object.freeze(Object.defineProperty({__proto__:null,default:$n},Symbol.toStringTag,{value:"Module"})),wd=kt(Td);function nn(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const kd=Object.freeze(Object.defineProperty({__proto__:null,default:nn},Symbol.toStringTag,{value:"Module"})),Od=kt(kd);var Ei;function Rd(){if(Ei)return Ae;Ei=1;var e=za();Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.alpha=_,Ae.blend=F,Ae.colorChannel=void 0,Ae.darken=x,Ae.decomposeColor=a,Ae.emphasize=O,Ae.getContrastRatio=v,Ae.getLuminance=p,Ae.hexToRgb=o,Ae.hslToRgb=f,Ae.lighten=R,Ae.private_safeAlpha=d,Ae.private_safeColorChannel=void 0,Ae.private_safeDarken=E,Ae.private_safeEmphasize=C,Ae.private_safeLighten=A,Ae.recomposeColor=u,Ae.rgbToHex=m;var t=e(wd),n=e(Od);function r(y,T=0,S=1){return process.env.NODE_ENV!=="production"&&(y<T||y>S)&&console.error(`MUI: The value provided ${y} is out of range [${T}, ${S}].`),(0,n.default)(y,T,S)}function o(y){y=y.slice(1);const T=new RegExp(`.{1,${y.length>=6?2:1}}`,"g");let S=y.match(T);return S&&S[0].length===1&&(S=S.map(P=>P+P)),S?`rgb${S.length===4?"a":""}(${S.map((P,N)=>N<3?parseInt(P,16):Math.round(parseInt(P,16)/255*1e3)/1e3).join(", ")})`:""}function i(y){const T=y.toString(16);return T.length===1?`0${T}`:T}function a(y){if(y.type)return y;if(y.charAt(0)==="#")return a(o(y));const T=y.indexOf("("),S=y.substring(0,T);if(["rgb","rgba","hsl","hsla","color"].indexOf(S)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${y}\` color.
|
|
52
|
-
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,t.default)(9,y));let
|
|
53
|
-
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,t.default)(10,N))}else
|
|
48
|
+
*/var Nr,Wo;function Za(){if(Wo)return Nr;Wo=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function o(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var i={},l=0;l<10;l++)i["_"+String.fromCharCode(l)]=l;var c=Object.getOwnPropertyNames(i).map(function(p){return i[p]});if(c.join("")!=="0123456789")return!1;var u={};return"abcdefghijklmnopqrst".split("").forEach(function(p){u[p]=p}),Object.keys(Object.assign({},u)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Nr=o()?Object.assign:function(s,i){for(var l,c=r(s),u,p=1;p<arguments.length;p++){l=Object(arguments[p]);for(var f in l)t.call(l,f)&&(c[f]=l[f]);if(e){u=e(l);for(var h=0;h<u.length;h++)n.call(l,u[h])&&(c[u[h]]=l[u[h]])}}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,Ko;function Xs(){return Ko||(Ko=1,Dr=Function.call.bind(Object.prototype.hasOwnProperty)),Dr}var Fr,Yo;function Ga(){if(Yo)return Fr;Yo=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=go(),n={},r=Xs();e=function(s){var i="Warning: "+s;typeof console<"u"&&console.error(i);try{throw new Error(i)}catch{}}}function o(s,i,l,c,u){if(process.env.NODE_ENV!=="production"){for(var p in s)if(r(s,p)){var f;try{if(typeof s[p]!="function"){var h=Error((c||"React class")+": "+l+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}f=s[p](i,p,c,l,null,t)}catch(x){f=x}if(f&&!(f instanceof Error)&&e((c||"React class")+": type specification of "+l+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in n)){n[f.message]=!0;var v=u?u():"";e("Failed "+l+" type: "+f.message+(v??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},Fr=o,Fr}var zr,Zo;function Ja(){if(Zo)return zr;Zo=1;var e=Js(),t=Za(),n=go(),r=Xs(),o=Ga(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(l){var c="Warning: "+l;typeof console<"u"&&console.error(c);try{throw new Error(c)}catch{}});function i(){return null}return zr=function(l,c){var u=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function f(O){var A=O&&(u&&O[u]||O[p]);if(typeof A=="function")return A}var h="<<anonymous>>",v={array:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:R(),arrayOf:j,element:k(),elementType:_(),instanceOf:F,node:$(),objectOf:w,oneOf:y,oneOfType:T,shape:H,exact:U};function x(O,A){return O===A?O!==0||1/O===1/A:O!==O&&A!==A}function d(O,A){this.message=O,this.data=A&&typeof A=="object"?A:{},this.stack=""}d.prototype=Error.prototype;function C(O){if(process.env.NODE_ENV!=="production")var A={},Q=0;function q(ee,Z,Y,V,G,ne,be){if(V=V||h,ne=ne||Y,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 xe=V+":"+Y;!A[xe]&&Q<3&&(s("You are manually calling a React.PropTypes validation function for the `"+ne+"` prop on `"+V+"`. 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."),A[xe]=!0,Q++)}}return Z[Y]==null?ee?Z[Y]===null?new d("The "+G+" `"+ne+"` is marked as required "+("in `"+V+"`, but its value is `null`.")):new d("The "+G+" `"+ne+"` is marked as required in "+("`"+V+"`, but its value is `undefined`.")):null:O(Z,Y,V,G,ne)}var z=q.bind(null,!1);return z.isRequired=q.bind(null,!0),z}function S(O){function A(Q,q,z,ee,Z,Y){var V=Q[q],G=se(V);if(G!==O){var ne=re(V);return new d("Invalid "+ee+" `"+Z+"` of type "+("`"+ne+"` supplied to `"+z+"`, expected ")+("`"+O+"`."),{expectedType:O})}return null}return C(A)}function R(){return C(i)}function j(O){function A(Q,q,z,ee,Z){if(typeof O!="function")return new d("Property `"+Z+"` of component `"+z+"` has invalid PropType notation inside arrayOf.");var Y=Q[q];if(!Array.isArray(Y)){var V=se(Y);return new d("Invalid "+ee+" `"+Z+"` of type "+("`"+V+"` supplied to `"+z+"`, expected an array."))}for(var G=0;G<Y.length;G++){var ne=O(Y,G,z,ee,Z+"["+G+"]",n);if(ne instanceof Error)return ne}return null}return C(A)}function k(){function O(A,Q,q,z,ee){var Z=A[Q];if(!l(Z)){var Y=se(Z);return new d("Invalid "+z+" `"+ee+"` of type "+("`"+Y+"` supplied to `"+q+"`, expected a single ReactElement."))}return null}return C(O)}function _(){function O(A,Q,q,z,ee){var Z=A[Q];if(!e.isValidElementType(Z)){var Y=se(Z);return new d("Invalid "+z+" `"+ee+"` of type "+("`"+Y+"` supplied to `"+q+"`, expected a single ReactElement type."))}return null}return C(O)}function F(O){function A(Q,q,z,ee,Z){if(!(Q[q]instanceof O)){var Y=O.name||h,V=$e(Q[q]);return new d("Invalid "+ee+" `"+Z+"` of type "+("`"+V+"` supplied to `"+z+"`, expected ")+("instance of `"+Y+"`."))}return null}return C(A)}function y(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("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])."):s("Invalid argument supplied to oneOf, expected an array.")),i;function A(Q,q,z,ee,Z){for(var Y=Q[q],V=0;V<O.length;V++)if(x(Y,O[V]))return null;var G=JSON.stringify(O,function(be,P){var xe=re(P);return xe==="symbol"?String(P):P});return new d("Invalid "+ee+" `"+Z+"` of value `"+String(Y)+"` "+("supplied to `"+z+"`, expected one of "+G+"."))}return C(A)}function w(O){function A(Q,q,z,ee,Z){if(typeof O!="function")return new d("Property `"+Z+"` of component `"+z+"` has invalid PropType notation inside objectOf.");var Y=Q[q],V=se(Y);if(V!=="object")return new d("Invalid "+ee+" `"+Z+"` of type "+("`"+V+"` supplied to `"+z+"`, expected an object."));for(var G in Y)if(r(Y,G)){var ne=O(Y,G,z,ee,Z+"."+G,n);if(ne instanceof Error)return ne}return null}return C(A)}function T(O){if(!Array.isArray(O))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),i;for(var A=0;A<O.length;A++){var Q=O[A];if(typeof Q!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+ke(Q)+" at index "+A+"."),i}function q(z,ee,Z,Y,V){for(var G=[],ne=0;ne<O.length;ne++){var be=O[ne],P=be(z,ee,Z,Y,V,n);if(P==null)return null;P.data&&r(P.data,"expectedType")&&G.push(P.data.expectedType)}var xe=G.length>0?", expected one of type ["+G.join(", ")+"]":"";return new d("Invalid "+Y+" `"+V+"` supplied to "+("`"+Z+"`"+xe+"."))}return C(q)}function $(){function O(A,Q,q,z,ee){return ce(A[Q])?null:new d("Invalid "+z+" `"+ee+"` supplied to "+("`"+q+"`, expected a ReactNode."))}return C(O)}function N(O,A,Q,q,z){return new d((O||"React class")+": "+A+" type `"+Q+"."+q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+z+"`.")}function H(O){function A(Q,q,z,ee,Z){var Y=Q[q],V=se(Y);if(V!=="object")return new d("Invalid "+ee+" `"+Z+"` of type `"+V+"` "+("supplied to `"+z+"`, expected `object`."));for(var G in O){var ne=O[G];if(typeof ne!="function")return N(z,ee,Z,G,re(ne));var be=ne(Y,G,z,ee,Z+"."+G,n);if(be)return be}return null}return C(A)}function U(O){function A(Q,q,z,ee,Z){var Y=Q[q],V=se(Y);if(V!=="object")return new d("Invalid "+ee+" `"+Z+"` of type `"+V+"` "+("supplied to `"+z+"`, 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(z,ee,Z,ne,re(be));if(!be)return new d("Invalid "+ee+" `"+Z+"` key `"+ne+"` supplied to `"+z+"`.\nBad object: "+JSON.stringify(Q[q],null," ")+`
|
|
49
|
+
Valid keys: `+JSON.stringify(Object.keys(O),null," "));var P=be(Y,ne,z,ee,Z+"."+ne,n);if(P)return P}return null}return C(A)}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 A=f(O);if(A){var Q=A.call(O),q;if(A!==O.entries){for(;!(q=Q.next()).done;)if(!ce(q.value))return!1}else for(;!(q=Q.next()).done;){var z=q.value;if(z&&!ce(z[1]))return!1}}else return!1;return!0;default:return!1}}function K(O,A){return O==="symbol"?!0:A?A["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&A instanceof Symbol:!1}function se(O){var A=typeof O;return Array.isArray(O)?"array":O instanceof RegExp?"object":K(A,O)?"symbol":A}function re(O){if(typeof O>"u"||O===null)return""+O;var A=se(O);if(A==="object"){if(O instanceof Date)return"date";if(O instanceof RegExp)return"regexp"}return A}function ke(O){var A=re(O);switch(A){case"array":case"object":return"an "+A;case"boolean":case"date":case"regexp":return"a "+A;default:return A}}function $e(O){return!O.constructor||!O.constructor.name?h:O.constructor.name}return v.checkPropTypes=o,v.resetWarningCache=o.resetWarningCache,v.PropTypes=v,v},zr}var Br,Go;function Xa(){if(Go)return Br;Go=1;var e=go();function t(){}function n(){}return n.resetWarningCache=t,Br=function(){function r(i,l,c,u,p,f){if(f!==e){var h=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 h.name="Invariant Violation",h}}r.isRequired=r;function o(){return r}var s={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 s.PropTypes=s,s},Br}var Jo;function Qa(){if(Jo)return Hn.exports;if(Jo=1,process.env.NODE_ENV!=="production"){var e=Js(),t=!0;Hn.exports=Ja()(e.isElement,t)}else Hn.exports=Xa()();return Hn.exports}var el=Qa();const a=Gs(el),Qs=({ambit:e,onClickCopy:t,onClickDelete:n,onClickFilters:r,onClickAmbit:o,isBeingProcessed:s,isActive:i,activeColor:l,fontColor:c,moreInfo:u})=>{const{name:p,date:f,id:h}=e;return m.jsxs("div",{className:Cn.ambitItem,style:{borderBottom:`1px solid ${c}`},children:[m.jsxs("div",{className:Cn.ambitNameDate,onClick:()=>o(h),children:[m.jsxs("div",{className:Cn.ambitName,children:[m.jsx("img",{src:i?Wa:Ha}),m.jsx("span",{style:{color:i?l:c},children:p})]}),m.jsx("div",{className:Cn.ambitDate,children:new Date(f).toLocaleDateString()})]}),m.jsxs("div",{className:Cn.ambitButtons,children:[s&&m.jsx("img",{src:Bo}),m.jsx("button",{onClick:()=>r(h),children:m.jsx("img",{src:Bo})}),m.jsx("button",{onClick:()=>t(h),children:m.jsx("img",{src:qa})}),m.jsx("button",{onClick:()=>n(h),children:m.jsx("img",{src:Va})})]})]})};Qs.propTypes={ambit:a.shape({name:a.string.isRequired,date:a.string.isRequired,id:a.string.isRequired}).isRequired,onClickCopy:a.func.isRequired,onClickDelete:a.func.isRequired,onClickFilters:a.func.isRequired,onClickAmbit:a.func.isRequired,isBeingProcessed:a.bool,isActive:a.bool,activeColor:a.string,fontColor:a.string,moreInfo:a.object};const tl="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",ei=({ambitList:e,activeAmbitId:t,fontColor:n="#605B56",activeColor:r,nameLabel:o,dateLabel:s,onClickCopy:i=p=>console.log(`Copy ambit: ${p}`),onCLickDelete:l=p=>console.log(`Delete ambit: ${p}`),onClickFilters:c=p=>console.log(`Filters clicked: ${p}`),onClickAmbit:u=p=>console.log(`OnCLickAmbit: ${p}`)})=>{const{t:p}=Te.useTranslation();return m.jsxs("div",{className:Kt.ambitSelector,style:{color:n},children:[m.jsxs("div",{className:Kt.header,style:{borderBottom:`1px solid ${n}`},children:[m.jsxs("div",{className:Kt.nameDateContainer,children:[m.jsx("div",{className:Kt.ambitName,children:m.jsx("span",{children:p(o)})}),m.jsx("div",{className:Kt.ambitDate,children:m.jsx("span",{children:p(s)})})]}),m.jsx("div",{className:Kt.buttonsContainer})]}),e&&e.length>0&&e.map(f=>m.jsx(Qs,{isActive:t==f.id,ambit:f,fontColor:n,activeColor:r,onClickCopy:i,onClickDelete:l,onClickFilters:c,onClickAmbit:u},`ambitKey${f.id}`))]})};ei.propTypes={ambitList:a.arrayOf(a.shape({name:a.string.isRequired,date:a.string.isRequired,id:a.string.isRequired})).isRequired,activeAmbitId:a.string,fontColor:a.string,activeColor:a.string,onClickCopy:a.func.isRequired,onCLickDelete:a.func.isRequired,onClickFilters:a.func.isRequired,onClickAmbit:a.func.isRequired};const nl="_buttonsContainer_1audx_2",rl="_vertical_1audx_6",ol="_horizontal_1audx_9",sl="_button_1audx_2",il="_active_1audx_25",al="_buttonName_1audx_28",Mt={buttonsContainer:nl,vertical:rl,horizontal:ol,button:sl,active:il,buttonName:al},ll="_left_19lnt_3",cl="_top_19lnt_33",ul="_bottom_19lnt_66",fl="_right_19lnt_97",dl={left:ll,top:cl,bottom:ul,right:fl},yo=({text:e,position:t,styleCustom:n=null})=>{const{t:r}=Te.useTranslation();return m.jsx("div",{className:`tooltip ${dl[t]}`,style:n,children:r(e)})};yo.propTypes={text:a.string.isRequired,position:a.oneOf(["top","bottom","left","right"]).isRequired,styleCustom:a.object};const ti=({buttons:e=[],orientation:t="horizontal",showName:n=!0,namePosition:r="right",useTooltip:o=!1,tooltipPosition:s="top"})=>{const{t:i}=Te.useTranslation();return m.jsx("div",{className:`${Mt.buttonsContainer} ${t==="vertical"&&Mt.vertical}
|
|
50
|
+
${t==="horizontal"&&Mt.horizontal}`,children:e.map((l,c)=>{const{icon:u,activeIcon:p,isActive:f,name:h,onClick:v}=l,x=m.jsxs(m.Fragment,{children:[n&&r==="left"&&m.jsx("span",{className:Mt.buttonName,children:i(h)}),m.jsx("img",{src:f?p:u,alt:i(h)}),n&&r==="right"&&m.jsx("span",{className:Mt.buttonName,children:i(h)})]});return m.jsxs("div",{className:"tooltip-parent",children:[m.jsx("button",{onClick:v,className:`${Mt.button}
|
|
51
|
+
${f&&Mt.active}`,children:x}),o&&m.jsx(yo,{text:h,position:s})]},c)})})};ti.propTypes={buttons:a.arrayOf(a.shape({icon:a.node.isRequired,activeIcon:a.node,isActive:a.bool,name:a.string,onClick:a.func})).isRequired,orientation:a.oneOf(["horizontal","vertical"]),showName:a.bool,namePosition:a.oneOf(["left","right"]),useTooltip:a.bool,tooltipPosition:a.oneOf(["top","bottom","left","right"])};const pl="_indicatorsCategory_1cu33_2",hl="_title_1cu33_5",ml="_list_1cu33_11",Ur={indicatorsCategory:pl,title:hl,list:ml},Rt=({isOpen:e,onClick:t,children:n,color:r,activeColor:o="#F8A925",title:s="Title",height:i=53,titleFontStyles:l,showBottomBar:c=!0,titleMarginChildren:u=25})=>{const{t:p}=Te.useTranslation();return m.jsxs(mo.motion.div,{className:Ur.indicatorsCategory,initial:{height:`${i}px`},animate:{height:e?"auto":`${i}px`},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:e&&c?`1px solid ${o}`:"0px",marginBottom:e?"20px":"0px"},children:[m.jsxs("h2",{style:{...l,marginBottom:u||"auto"},className:`${Ur.title}`,onClick:t,children:[m.jsx("span",{style:{color:e?o:r},children:e?"-":"+"}),m.jsx("span",{style:{marginLeft:12,color:e?o:r},children:p(s)})]}),m.jsx("div",{className:Ur.content,children:n})]})};Rt.propTypes={isOpen:a.bool,onClick:a.func,children:a.node,color:a.string,activeColor:a.string,title:a.string,height:a.number,showBottomBar:a.bool,titleFontStyles:a.object};const gl=()=>m.jsx("div",{children:"EditAmbit"}),yl="_AppliedFiltersContainer_s8ooe_2",vl="_AppliedFilterContent_s8ooe_10",Xo={AppliedFiltersContainer:yl,AppliedFilterContent:vl},Ue=Ta.create(e=>({activeCategory:"",activeSubCategory:"",selectedIndicator:"",tematicalFiltersSelected:[],fontColor:"#605B56",inputsColor:"#605B56"})),ni=({title:e,onClick:t,isOpen:n=!0,textColor:r="#ffffff",backgroundColor:o="#605B5680"})=>{const{t:s}=Te.useTranslation(),{tematicalFiltersSelected:i}=Ue(c=>c),l=c=>{Ue.setState(u=>({tematicalFiltersSelected:u.tematicalFiltersSelected.filter(p=>p.code!==c)}))};return m.jsx(Rt,{isOpen:n,onClick:t,title:e?s(e):"Applied Filters",children:m.jsx("div",{className:Xo.AppliedFiltersContainer,children:i==null?void 0:i.map((c,u)=>m.jsxs("div",{className:Xo.AppliedFilterContent,style:{color:r,background:o},children:[c.code,m.jsx("img",{src:tl,alt:"CloseIcon",onClick:()=>l(c.code),style:{cursor:"pointer"}})]},u))})})};ni.propTypes={isOpen:a.bool,onClick:a.func,title:a.string,textColor:a.string,backgroundColor:a.string,indicators:a.arrayOf(a.shape({title:a.string.isRequired,Codename:a.string.isRequired}))};const ri=({title:e,onClick:t,isOpen:n=!0,textColor:r="#ffffff",backgroundColor:o="#605B5680"})=>{const{t:s}=Te.useTranslation();return Ue(i=>i),m.jsx(Rt,{isOpen:n,onClick:t,title:e?s(e):"Geographical Filters",children:"A"})};ri.propTypes={isOpen:a.bool,onClick:a.func,title:a.string,textColor:a.string,backgroundColor:a.string};const bl="_checkboxContainer_zld97_2",xl={checkboxContainer:bl},oi=({onClick:e,containerStyles:t,color:n="#605B56",indicator:r,value:o})=>{const{t:s}=Te.useTranslation(),{title:i}=r||{},{fontColor:l,inputsColor:c}=Ue(u=>u);return m.jsxs("div",{style:{...t,color:n},role:"checkbox",className:xl.checkboxContainer,onClick:e,children:[m.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"}}),m.jsx("span",{className:"checkmark",children:s(i)})]})};oi.propTypes={onClick:a.func,value:a.bool,containerStyles:a.object,color:a.string,indicator:a.shape({title:a.string,codename:a.array}),checkedColor:a.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 Vr(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 Yn(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 so=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]),p=o.getValueFromPosition(u);o.move(p)},o.onTouchMove=l=>{if(l.touches.length>1)return;o.setState({pending:!0});const c=o.getTouchPosition(l);if(o.isScrolling===void 0){const f=c[0]-o.startPosition[0],h=c[1]-o.startPosition[1];o.isScrolling=Math.abs(h)>Math.abs(f)}if(o.isScrolling)return void o.setState({index:-1});const u=o.getDiffPosition(c[0]),p=o.getValueFromPosition(u);o.move(p)},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())})}Vr(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()),Vr(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()),Vr(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(p){p.stopPropagation&&p.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:""),p={ref:h=>{o["thumb"+c]=h},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},f={index:c,value:Yn(o.state.value),valueNow:o.state.value[c]};return o.props.ariaValuetext&&(p["aria-valuetext"]=typeof o.props.ariaValuetext=="string"?o.props.ariaValuetext:o.props.ariaValuetext(f)),o.props.renderThumb(p,f)},o.renderTrack=(l,c,u)=>{const p={key:o.props.trackClassName+"-"+l,className:o.props.trackClassName+" "+o.props.trackClassName+"-"+l,style:o.buildTrackStyle(c,o.state.upperBound-u)},f={index:l,value:Yn(o.state.value)};return o.props.renderTrack(p,f)};let s=qr(r.value);s.length||(s=qr(r.defaultValue)),o.pendingResizeTimeouts=[];const i=[];for(let l=0;l<s.length;l+=1)s[l]=Lt(s[l],r),i.push(l);return o.resizeObserver=null,o.resizeElementRef=b.createRef(),o.state={index:-1,upperBound:0,sliderLength:0,value:s,zIndices:i},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 s=qr(r.value);return s.length?o.pending?null:{value:s.map(i=>Lt(i,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(s=>{typeof document<"u"&&document.removeEventListener(s,o[s],!1)})}(r),this.hasMoved&&this.fireChangeEvent("onAfterChange"),this.setState({pending:!1}),this.hasMoved=!1},n.getValue=function(){return Yn(this.state.value)},n.getClosestIndex=function(r){let o=Number.MAX_VALUE,s=-1;const{value:i}=this.state,l=i.length;for(let c=0;c<l;c+=1){const u=this.calcOffset(i[c]),p=Math.abs(r-u);p<o&&(o=p,s=c)}return s},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 s=this.sizeKey(),i=r.getBoundingClientRect(),l=r[s],c=i[this.posMaxKey()],u=i[this.posMinKey()],p=o.getBoundingClientRect()[s.replace("client","").toLowerCase()],f=l-p,h=Math.abs(c-u);this.state.upperBound===f&&this.state.sliderLength===h&&this.state.thumbSize===p||this.setState({upperBound:f,sliderLength:h,thumbSize:p})},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,s=o.getBoundingClientRect(),i=s[this.posMaxKey()],l=s[this.posMinKey()];let c=r-(window["page"+this.axisKey()+"Offset"]+(this.props.invert?i:l));return this.props.invert&&(c=this.state.sliderLength-c),c-=this.state.thumbSize/2,c},n.forceValueFromPosition=function(r,o){const s=this.calcOffsetFromPosition(r),i=this.getClosestIndex(s),l=Lt(this.calcValue(s),this.props),c=this.state.value.slice();c[i]=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(i),this.fireChangeEvent("onChange")})},n.clearPendingResizeTimeouts=function(){do{const r=this.pendingResizeTimeouts.shift();clearTimeout(r)}while(this.pendingResizeTimeouts.length)},n.start=function(r,o){const s=this["thumb"+r];s&&s.focus();const{zIndices:i}=this.state;i.splice(i.indexOf(r),1),i.push(r),this.setState(l=>({startValue:l.value[r],startPosition:o!==void 0?o:l.startPosition,index:r,zIndices:i}))},n.moveUpByStep=function(r){r===void 0&&(r=this.props.step);const o=this.state.value[this.state.index],s=Lt(this.props.invert&&this.props.orientation==="horizontal"?o-r:o+r,this.props);this.move(Math.min(s,this.props.max))},n.moveDownByStep=function(r){r===void 0&&(r=this.props.step);const o=this.state.value[this.state.index],s=Lt(this.props.invert&&this.props.orientation==="horizontal"?o+r:o-r,this.props);this.move(Math.max(s,this.props.min))},n.move=function(r){const o=this.state.value.slice(),{index:s}=this.state,{length:i}=o,l=o[s];if(r===l)return;this.hasMoved||this.fireChangeEvent("onBeforeChange"),this.hasMoved=!0;const{pearling:c,max:u,min:p,minDistance:f}=this.props;if(!c){if(s>0){const h=o[s-1];r<h+f&&(r=h+f)}if(s<i-1){const h=o[s+1];r>h-f&&(r=h-f)}}o[s]=r,c&&i>1&&(r>l?(this.pushSucceeding(o,f,s),function(h,v,x,d){for(let C=0;C<h;C+=1){const S=d-C*x;v[h-1-C]>S&&(v[h-1-C]=S)}}(i,o,f,u)):r<l&&(this.pushPreceding(o,f,s),function(h,v,x,d){for(let C=0;C<h;C+=1){const S=d+C*x;v[C]<S&&(v[C]=S)}}(i,o,f,p))),this.setState({value:o},this.fireChangeEvent.bind(this,"onChange"))},n.pushSucceeding=function(r,o,s){let i,l;for(i=s,l=r[i]+o;r[i+1]!==null&&l>r[i+1];i+=1,l=r[i]+o)r[i+1]=oo(l,this.props)},n.pushPreceding=function(r,o,s){for(let i=s,l=r[i]-o;r[i-1]!==null&&l<r[i-1];i-=1,l=r[i]-o)r[i-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](Yn(this.state.value),this.state.index)},n.buildThumbStyle=function(r,o){const s={position:"absolute",touchAction:"none",willChange:this.state.index>=0?this.posMinKey():void 0,zIndex:this.state.zIndices.indexOf(o)+1};return s[this.posMinKey()]=r+"px",s},n.buildTrackStyle=function(r,o){const s={position:"absolute",willChange:this.state.index>=0?this.posMinKey()+","+this.posMaxKey():void 0};return s[this.posMinKey()]=r,s[this.posMaxKey()]=o,s},n.buildMarkStyle=function(r){var o;return(o={position:"absolute"})[this.posMinKey()]=r,o},n.renderThumbs=function(r){const{length:o}=r,s=[];for(let l=0;l<o;l+=1)s[l]=this.buildThumbStyle(r[l],l);const i=[];for(let l=0;l<o;l+=1)i[l]=this.renderThumb(s[l],l);return i},n.renderTracks=function(r){const o=[],s=r.length-1;o.push(this.renderTrack(0,0,r[0]));for(let i=0;i<s;i+=1)o.push(this.renderTrack(i+1,r[i],r[i+1]));return o.push(this.renderTrack(s+1,r[s],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((s,i)=>i):typeof r=="number"&&(r=Array.from({length:o}).map((s,i)=>i).filter(s=>s%r==0)),r.map(parseFloat).sort((s,i)=>s-i).map(s=>{const i=this.calcOffset(s),l={key:s,className:this.props.markClassName,style:this.buildMarkStyle(i)};return this.props.renderMark(l)})},n.render=function(){const r=[],{value:o}=this.state,s=o.length;for(let u=0;u<s;u+=1)r[u]=this.calcOffset(o[u],u);const i=this.props.withTracks?this.renderTracks(r):null,l=this.renderThumbs(r),c=this.props.marks?this.renderMarks():null;return b.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},i,l,c)},t}(b.Component);so.displayName="ReactSlider",so.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=>b.createElement("div",e),renderTrack:e=>b.createElement("div",e),renderMark:e=>b.createElement("span",e)};var Cl=so;const Sl="_container_15vgv_2",Tl="_unitLabel_15vgv_9",wl="_slider_15vgv_12",El="_thumb_15vgv_18",kl="_track_15vgv_27",Rl="_labels_15vgv_33",Yt={container:Sl,unitLabel:Tl,slider:wl,thumb:El,track:kl,labels:Rl},si=({min:e=0,max:t=100,step:n=1,onChange:r,width:o=300,unit:s,fontColor:i="#605B56",value:l=[e,t]})=>{const{t:c}=Te.useTranslation(),u=p=>{r==null||r({min:p[0],max:p[1]})};return m.jsxs("div",{className:Yt.container,style:{width:`${o}px`,color:`${i}`},children:[m.jsx("div",{className:Yt.unitLabel,children:m.jsx("span",{children:c(s)})}),m.jsx(Cl,{className:Yt.slider,thumbClassName:Yt.thumb,trackClassName:Yt.track,min:e,max:t,step:n,value:l,onChange:u,withTracks:!0,pearling:!0,minDistance:1}),m.jsxs("div",{className:Yt.labels,children:[m.jsx("span",{children:l[0]}),m.jsx("span",{children:l[1]})]})]})};si.propTypes={min:a.number,max:a.number,step:a.number,initialMin:a.number,initialMax:a.number,onChange:a.func,width:a.number,unit:a.string,fontColor:a.string,value:a.arrayOf(a.number)};const Ol="_tematicalFiltersInputContainer_1vm1r_2",jl="_inputTypeContainer_1vm1r_2",$l="_checkboxContainer_1vm1r_28",Pl="_absoluteSliderContainer_1vm1r_37",Gn={tematicalFiltersInputContainer:Ol,inputTypeContainer:jl,checkboxContainer:$l,absoluteSliderContainer:Pl},vo=({indicator:e})=>{const[t,n]=b.useState(),{type:r,name:o,values:s,minValue:i,maxValue:l,unit:c}=e||{},u=b.useMemo(()=>r=="cat"||t=="cat",[t,r]),p=b.useMemo(()=>r=="abs"||t=="abs",[t,r]),{tematicalFiltersSelected:f,selectedIndicator:h,fontColor:v,inputsColor:x}=Ue(S=>S),d=S=>{if(S){const{min:R,max:j,valueClicked:k,allValues:_}=S||{},{code:F,type:y}=e||{},w=p?"abs":u?"cat":"both";let T=F[0];y=="both"&&(T=w=="cat"?F[1]:F[0]),w=="cat"?Ue.setState($=>{let N=$.tematicalFiltersSelected.find(H=>H.code===T);if(N){let H=[N.values];if(N.values.includes(k)){if(H=N.values.filter(U=>U!==k),H.length<1)return{tematicalFiltersSelected:$.tematicalFiltersSelected.filter(U=>U.code!==T)}}else H=[...N.values,k];return{tematicalFiltersSelected:$.tematicalFiltersSelected.map(U=>U.code===T?{...U,values:H}:U)}}else{console.log("entra aqui: ",_," ",k);let H=_.map((U,ce)=>ce);return{tematicalFiltersSelected:[...f,{type:"cat",code:T,values:H.filter(U=>U!==k)}]}}}):w=="abs"&&Ue.setState($=>{let N=$.tematicalFiltersSelected.find(H=>H.code===T);if(N){let H={...N};return H.min=R,H.max=j,{tematicalFiltersSelected:$.tematicalFiltersSelected.map(U=>U.code===T?H:U)}}else return{tematicalFiltersSelected:[...f,{type:"abs",code:T,min:R,max:j}]}})}},C=b.useMemo(()=>{const S={};if((f==null?void 0:f.length)>0)for(const R of f)R.type==="cat"?S[R.code]=new Set(R.values):S[R.code]=[R.min,R.max];return S},[f]);return m.jsx("div",{className:Gn.tematicalFiltersInputContainer,children:m.jsxs(Rt,{titleFontStyles:{fontSize:16,fontWeight:400},title:o,isOpen:h==`id${o}`,onClick:()=>Ue.setState(()=>({selectedIndicator:h==`id${o}`?"":`id${o}`})),showBottomBar:!1,height:38,titleMarginChildren:14,className:"tematicalFiltersInputContainer",color:v,children:[r=="both"&&m.jsxs("div",{className:Gn.inputTypeContainer,style:{color:v},children:[m.jsxs("label",{children:[m.jsx("input",{type:"radio",name:"tipo",value:"abs",onChange:()=>{n("abs")},style:{marginRight:4,backgroundColor:t=="abs"?x:"white",border:`1.5px solid ${t=="abs"?x:v}`}}),"Absoluto"]}),m.jsxs("label",{children:[m.jsx("input",{type:"radio",name:"tipo",value:"cat",onChange:()=>{n("cat")},style:{marginRight:4,backgroundColor:t=="cat"?x:"white",border:`1.5px solid ${t=="cat"?x:v}`}}),"Categórico"]})]}),u&&m.jsx("div",{className:Gn.checkboxContainer,children:s.map((S,R)=>{var j;return m.jsx(oi,{onClick:()=>d({valueClicked:R,allValues:s}),indicator:S,value:((j=C[e.code[r=="both"?1:0]])==null?void 0:j.has(R))||!C[e.code[r=="both"?1:0]]},`checkbox-${R}`)})}),p&&m.jsx("div",{className:Gn.absoluteSliderContainer,children:m.jsx(si,{onChange:d,min:i,max:l,unit:c,value:C[e.code[0]]})})]})})};vo.propTypes={indicator:a.shape({name:a.string,type:a.string,code:a.arrayOf(a.string),values:a.arrayOf(a.shape({codename:a.oneOfType(a.array,a.string),title:a.string}))})};const ii=({subcategory:e,fontColor:t})=>{const{activeSubcategory:n}=Ue(s=>s),{name:r,indicators:o}=e||{};return m.jsx(Rt,{title:r,isOpen:n==`id${r}`,onClick:()=>{Ue.setState(s=>({activeSubcategory:s.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((s,i)=>m.jsx(vo,{indicator:s,fontColor:t},`indicatorSub-${i}`))})};ii.propTypes={subcategory:a.shape({name:a.string,indicators:a.arrayOf(a.shape({name:a.string,value:a.string}))})};const ai=({category:e})=>{const{name:t,subcategories:n,indicators:r}=e||{},{activeCategory:o,fontColor:s}=Ue(i=>i);return e&&m.jsx(Rt,{onClick:()=>{Ue.setState(i=>({activeCategory:o===`id${t}`?"":`id${t}`}))},title:t,isOpen:o===`id${t}`,titleFontStyles:{fontSize:18,fontWeight:"bold"},showBottomBar:!1,color:s,children:n?n.map((i,l)=>m.jsx(ii,{subcategory:i,fontColor:s},`subcategory-${l}`)):r&&r.map((i,l)=>m.jsx(vo,{indicator:i,fontColor:s},`indicator-${l}`))})};ai.propTypes={category:a.shape({name:a.string.isRequired,subcategories:a.array,indicators:a.array})};const li=({indicators:e,isOpen:t=!0,title:n,fontColor:r="#605B56",inputsColor:o="#605B56"})=>{const{tematicalFiltersSelected:s}=Ue(l=>l),{t:i}=Te.useTranslation();return b.useEffect(()=>{console.log("filtersSelected changed: ",s)},[s]),b.useEffect(()=>{r&&Ue.setState(()=>({fontColor:r}))},[r]),b.useEffect(()=>{o&&Ue.setState(()=>({inputsColor:o}))},[o]),m.jsx(Rt,{isOpen:t,title:n?i(n):"Tematical filters",color:r,children:e==null?void 0:e.map((l,c)=>m.jsx(ai,{category:l,fontColor:r},`category-${c}`))})};li.propTypes={isOpen:a.bool,title:a.string,indicators:a.arrayOf(a.object),fontColor:a.string,onChangeTematicalFilters:a.func,inputsColor:a.string};const Ml="_FiltersAmbitContainer_6o4gt_2",Ll="_FiltersAmbitHeader_6o4gt_7",Al="_FiltersAmbitTitle_6o4gt_15",Nl="_FiltersAmbitDescription_6o4gt_22",Il="_FiltersAmbitDescriptionTitle_6o4gt_33",Sn={FiltersAmbitContainer:Ml,FiltersAmbitHeader:Ll,FiltersAmbitTitle:Al,FiltersAmbitDescription:Nl,FiltersAmbitDescriptionTitle:Il},ci=({ambitName:e,ambitDescription:t,defaultFilters:n,indicators:r,activeColor:o,textColor:s,backgroundColor:i})=>{const{t:l}=Te.useTranslation(),{tematicalFiltersSelected:c}=Ue(u=>u);return b.useEffect(()=>{n&&n.length>0&&Ue.setState(u=>({tematicalFiltersSelected:n}))},[n]),b.useEffect(()=>{console.log("filtersSelected changed: ",c)},[c]),m.jsxs("div",{className:Sn.FiltersAmbitContainer,children:[m.jsxs("div",{className:Sn.FiltersAmbitHeader,children:[m.jsx("div",{className:Sn.FiltersAmbitTitle,children:e}),m.jsxs("div",{className:Sn.FiltersAmbitDescription,children:[m.jsx("div",{className:Sn.FiltersAmbitDescriptionTitle,children:l("Descripción")}),t]})]}),m.jsx(ni,{title:l("applied-filters"),isOpen:!0,textColor:s||"#fff",backgroundColor:i||"#605B5680"}),m.jsx(ri,{}),m.jsx(li,{indicators:r,inputsColor:o,textColor:s})]})};ci.propTypes={indicators:a.arrayOf(a.object),ambitName:a.string,ambitDescription:a.string,defaultFilters:a.arrayOf(a.object),activeColor:a.string,backgroundColor:a.string,textColor:a.string};const Dl="_barChartContainer_d2f1z_2",Fl={barChartContainer:Dl},ui=({data:e,width:t=700,barHeight:n=25,gap:r=23,fontColor:o="#605B56",verticalPaddign:s=10,horizontalPaddign:i=20,leftPadding:l=200,numberOfDivisions:c=7,maxValue:u=null})=>{const{t:p}=Te.useTranslation(),{xScale:f,ticks:h,height:v}=b.useMemo(()=>{if(e&&e.length>0){const x=(e==null?void 0:e.length)*(n+r)+s*2,d=Io.max(e,R=>R.value)||1,C=Io.scaleLinear().domain([0,u||d]).range([0,t-l]),S=Array.from({length:c+1},(R,j)=>u?u/c*j:d/c*j);return{xScale:C,ticks:S,height:x,width:t,verticalPaddign:s,horizontalPaddign:i}}else return{xScale:null,ticks:[],height:0}},[e,t,c,n,r,i,s,u]);return m.jsx("div",{className:Fl.barChartContainer,children:m.jsx("svg",{width:t+i*2,height:v,children:m.jsxs("g",{transform:`translate(0,${r})`,children:[m.jsx("g",{transform:`translate(${l+i}, 0)`,children:h.map((x,d)=>{const C=f(x);return m.jsxs("g",{transform:`translate(${C}, 0)`,children:[m.jsx("line",{y1:0,y2:v-r*2,stroke:"#ccc"}),m.jsx("text",{y:v-r,textAnchor:"middle",fontSize:10,fill:o,children:parseInt(x)})]},d)})}),e&&e.length>0&&(e==null?void 0:e.map((x,d)=>{const C=f(x.value),S=d*(n+r);return m.jsxs("g",{transform:`translate(${l+i}, ${S})`,children:[m.jsx("text",{x:-24,y:n/2+5,textAnchor:"end",fill:o,children:p(x.title)}),m.jsx("rect",{width:C,height:n,fill:x.color,rx:0})]},d)}))]})})})};ui.propTypes={data:a.arrayOf(a.shape({title:a.string,value:a.number,color:a.string})),width:a.number,barHeight:a.number,gap:a.number,verticalPaddign:a.number,horizontalPaddign:a.number,numberOfDivisions:a.number,fontColor:a.string};const zl="_graphicContainer_c9zrg_2",Bl="_titleContainer_c9zrg_14",Qo={graphicContainer:zl,titleContainer:Bl},fi=({data:e,graphWidth:t=700,containerStyle:n,borderColor:r="#605B56",title:o="Graphic Title",fontColor:s="#605B56",maxValue:i=null,numberOfDivisions:l=7,leftPadding:c=200})=>{const{t:u}=Te.useTranslation();return m.jsxs("div",{className:Qo.graphicContainer,style:{...n||{},border:`1.5px solid ${r}`},children:[m.jsx("div",{className:Qo.titleContainer,children:m.jsx("h2",{children:u(o)})}),m.jsx(ui,{data:e,width:t,fontColor:s,maxValue:i,numberOfDivisions:l,leftPadding:c})]})};fi.propTypes={data:a.arrayOf(a.shape({color:a.string.isRequired,value:a.number.isRequired,title:a.string.isRequired})),borderColor:a.string,title:a.string,graphWidth:a.number,containerStyle:a.object,fontColor:a.string,maxValue:a.number,numberOfDivisions:a.number,leftPadding:a.number};const Ul="_indicatorsCategory_1cu33_2",Vl="_title_1cu33_5",ql="_list_1cu33_11",Wr={indicatorsCategory:Ul,title:Vl,list:ql},Wl="_indicatorContainer_lw8gx_2",Hl="_indicatorNameContainer_lw8gx_11",Kl="_dot_lw8gx_20",Yl="_indicatorName_lw8gx_11",Zl="_switchExternalContainer_lw8gx_31",Gl="_switchType_lw8gx_40",Jl="_switchTypeOptions_lw8gx_44",Xl="_optionContainer_lw8gx_55",Ql="_customRadious_lw8gx_65",ec="_optionText_lw8gx_72",Fe={indicatorContainer:Wl,indicatorNameContainer:Hl,dot:Kl,indicatorName:Yl,switchExternalContainer:Zl,switchType:Gl,switchTypeOptions:Jl,optionContainer:Xl,customRadious:Ql,optionText:ec},bo=({indicator:e,values:t=[],activeColor:n,defaultColor:r="#92898A",activeIndicator:o,activeIndicatorType:s,onClickIndicator:i,multiple:l=!1,onChangeType:c})=>{const{t:u}=Te.useTranslation(),{name:p,type:f}=e,[h,v]=b.useState(!1);b.useEffect(()=>{o&&v(l?o.some(C=>C.name==String(p)):o.name==p)},[o]);const x=()=>m.jsx("div",{className:Fe.switchExternalContainer,children:m.jsx("div",{className:Fe.switchType,children:m.jsxs("div",{className:Fe.switchTypeOptions,children:[m.jsxs("div",{className:Fe.optionContainer,onClick:()=>c("cat"),children:[m.jsx("span",{className:`${Fe.customRadious}`,style:{backgroundColor:s==="cat"?n:"transparent",borderColor:s==="cat"?n:r}}),m.jsx("h4",{className:Fe.optionText,style:{color:s==="cat"?n:r},children:u("indicators.cat")})]}),m.jsxs("div",{className:Fe.optionContainer,onClick:()=>c("abs"),children:[m.jsx("span",{className:`${Fe.customRadious}`,style:{backgroundColor:s==="abs"?n:"transparent",borderColor:s==="abs"?n:r}}),m.jsx("h4",{className:Fe.optionText,style:{color:s==="abs"?n:r},children:u("indicators.abs")})]})]})})}),d=()=>m.jsx("div",{className:Fe.switchExternalContainer,children:m.jsx("div",{className:Fe.switchType,children:m.jsx("div",{className:Fe.switchTypeOptions,children:t.map((C,S)=>m.jsxs("div",{className:Fe.optionContainer,children:[m.jsx("span",{className:Fe.customRadious}),m.jsx("h4",{children:u(C.unit)})]},S))})})});return m.jsxs("div",{className:Fe.indicatorContainer,children:[m.jsxs("div",{className:Fe.indicatorNameContainer,onClick:()=>i({indicator:e}),children:[m.jsx("div",{style:{border:h?`1px solid ${n}`:`1px solid ${r}`},className:Fe.dot}),m.jsx("h4",{className:Fe.indicatorName,style:{color:h?n:r},children:m.jsx(Te.Trans,{i18nKey:p,components:{sup:m.jsx("sup",{})}})})]}),(o==null?void 0:o.name)===p&&f==="both"&&m.jsx("div",{children:x()}),(o==null?void 0:o.name)===p&&f==="twoUnits"&&m.jsx("div",{children:d()})]})};bo.propTypes={indicator:a.shape({name:a.string,type:a.string}),values:a.oneOfType([a.bool,a.array]),activeColor:a.string,defaultColor:a.string,activeIndicator:a.oneOfType([a.object,a.array]),multiple:a.bool,onClickIndicator:a.func};const tc="_indicatorsSubCategory_1dzsi_2",nc="_list_1dzsi_8",es={indicatorsSubCategory:tc,list:nc},di=({subcName:e,indicators:t,defaultColor:n,activeColor:r,activeSubCategory:o,onClickSubCategory:s,id:i,activeIndicator:l,onClickIndicator:c,multiple:u,activeIndicatorType:p,onChangeType:f})=>{const{t:h}=Te.useTranslation(),[v,x]=b.useState(!1);return b.useEffect(()=>{x(o==i)},[o,i]),m.jsxs(mo.motion.div,{className:es.indicatorsSubCategory,initial:{height:"43px"},animate:{height:v?"auto":"43px"},transition:{duration:.4},children:[m.jsx("button",{onClick:()=>s(i),children:m.jsxs("h3",{style:{color:v?r:n},children:[m.jsx("span",{style:{color:v?r:n},children:v?"-":"+"}),m.jsx("span",{style:{marginLeft:12,color:v?r:n},children:h(e)})]})}),t&&m.jsx("div",{className:es.list,children:t==null?void 0:t.map((d,C)=>m.jsx(bo,{indicator:d,defaultColor:n,activeColor:r,activeIndicator:l,onClickIndicator:c,multiple:u,activeIndicatorType:p,onChangeType:f},"indicator"+C))})]})};di.propTypes={subcName:a.string,indicators:a.array,activeColor:a.string,defaultColor:a.string,activeSubCategory:a.string,id:a.string,activeIndicator:a.oneOfType([a.object,a.array]),multiple:a.bool,onClickSubCategory:a.func,onClickIndicator:a.func};const pi=({cat:e,id:t,activeColor:n,defaultColor:r,onClickCategory:o,activeCategory:s,activeSubCategory:i,onClickSubCategory:l,activeIndicator:c,onClickIndicator:u,multiple:p,activeIndicatorType:f,onChangeType:h})=>{var C;const{t:v}=Te.useTranslation(),[x,d]=b.useState(!1);return b.useEffect(()=>{d(s===t)},[s,t]),m.jsxs(mo.motion.div,{className:Wr.indicatorsCategory,initial:{height:"53px"},animate:{height:x?"auto":"53px"},transition:{duration:.4},style:{backgroundColor:"white",borderBottom:x?`1px solid ${n}`:"0px",marginBottom:x?"20px":"0px"},children:[m.jsxs("h2",{className:`${Wr.title}`,onClick:()=>o(t),children:[m.jsx("span",{style:{color:x?n:r},children:x?"-":"+"}),m.jsx("span",{style:{marginLeft:12,color:x?n:r},children:v(e.name)})]}),e.subcategories?e.subcategories.map(({name:S,subcategory:R,indicators:j},k)=>m.jsx(di,{id:R,activeSubCategory:i,subcName:S,onClickSubCategory:l,activeIndicator:c,onClickIndicator:u,multiple:p,activeColor:n,defaultColor:r,indicators:j,activeIndicatorType:f,onChangeType:h},`subcKey ${k}`)):m.jsx("div",{className:Wr.list,children:(C=e.indicators)==null?void 0:C.map((S,R)=>m.jsx(bo,{indicator:S,values:S.type=="twoUnits"&&S.values,activeColor:n,defaultColor:r,activeIndicator:c,onClickIndicator:u,multiple:p,activeIndicatorType:f,onChangeType:h},`indicator${R}`))})]})};pi.propTypes={cat:a.object,id:a.string,onChange:a.func,onClickCategory:a.func,activeCategory:a.string,activeSubCategory:a.string,onClickSubCategory:a.func,onClickIndicator:a.func,activeIndicator:a.oneOfType([a.object,a.array]),multiple:a.bool,activeColor:a.string,defaultColor:a.string};const rc="_indicatorsList_fklyu_2",oc="_title_fklyu_6",ts={indicatorsList:rc,title:oc},hi=({indicators:e,activeColor:t,defaultColor:n="#92898A",onChange:r,multiple:o=!1,defaultValue:s=null,changeIndType:i,activeIndicatorType:l})=>{const{t:c}=Te.useTranslation(),[u,p]=b.useState(),[f,h]=b.useState(),[v,x]=b.useState(),d=k=>{p(u==k?null:k)},C=k=>{h(f==k?null:k)},S=({indicator:k})=>{console.log("onClickIndicator: ",k),R(k)},R=k=>{if(!o)x((v==null?void 0:v.name)==k.name?null:k);else{let _=v&&v.length>0?[...v]:[];x(_!=null&&_.some(F=>F.name==k.name)?_.filter(F=>F.name!=String(k.name)):[..._,k]),k.type=="both"&&i("cat")}};b.useEffect(()=>{console.log("activeindicator changed to: ",v),r&&typeof r=="function"&&v&&r({activeIndicator:v})},[v]),b.useLayoutEffect(()=>{if(s&&!v)if(o&&s&&Array.isArray(s)){let k=v&&v.length>0?[...v]:[];x([...k,...s]),j(s[0].name)}else R(s),j(s.name)},[]);const j=k=>{const _=e.find(F=>{if(F.subcategories){let y=F.subcategories.find(w=>w.indicators.find(T=>T.name==k));if(y)return h(y.subcategory),y}else return F.indicators.some(y=>y.name==k)});_&&p(_.category)};return m.jsxs("div",{className:ts.indicatorsList,children:[m.jsx("h2",{className:ts.title,style:{color:n},children:c("indicators.indicators")}),e.map((k,_)=>m.jsx(pi,{id:k.category,cat:k,onClickCategory:d,activeCategory:u,onClickSubCategory:C,activeSubCategory:f,onClickIndicator:S,activeIndicator:v,activeColor:t,defaultColor:n,multiple:o,onChange:r,onChangeType:i,activeIndicatorType:l},`categoryKey${_}`))]})};hi.propTypes={indicators:a.arrayOf(a.object),activeColor:a.string,defaultColor:a.string,onChange:a.func,changeIndType:a.func,multiple:a.bool,activeIndicator:a.oneOfType([a.object,a.array]),defaultValue:a.oneOfType([a.object,a.array]),activeIndicatorType:a.string};const sc="_langSelector_1of0g_2",ic="_currentLang_1of0g_7",ac="_arrow_1of0g_19",lc="_prevImg_1of0g_22",cc="_langMenu_1of0g_26",Zt={langSelector:sc,currentLang:ic,arrow:ac,prevImg:lc,langMenu:cc},mi=({langs:e,arrow:t,imgPrev:n})=>{const[r,o]=b.useState(!1),{i18n:s}=Te.useTranslation(),i=e.find(c=>c.code==s.language),l=c=>{s.changeLanguage(c),o(!1)};return m.jsxs("div",{className:Zt.langSelector,children:[m.jsxs("div",{className:Zt.currentLang,onClick:()=>{o(!r)},children:[n&&m.jsx("img",{className:Zt.prevImg,src:n}),i.titleSelected||i.title,m.jsx("img",{src:t,className:Zt.arrow})]}),r&&m.jsx("div",{className:Zt.langMenu,children:e.map(c=>m.jsx("button",{className:i.code==c.code?Zt.active:"",onClick:()=>l(c.code),children:c.title},c.code))})]})};mi.propTypes={langs:a.arrayOf(a.shape({code:a.string,title:a.string,titleSelected:a.string})),color:a.string,bckColor:a.string,hoverColor:a.string,arrow:a.object,imgPrev:a.object};const uc="_legendContainer_atg3j_3",fc="_closeButton_atg3j_18",dc="_titleContainer_atg3j_46",pc="_infoContainer_atg3j_52",hc="_titleLegendList_atg3j_63",mc="_legendListContainer_atg3j_70",gc="_gridContainer_atg3j_70",yc="_elementLegendContainer_atg3j_76",vc="_colorDot_atg3j_82",bc="_absoluteValueContainer_atg3j_88",xc="_absoluteValueColor_atg3j_91",_c="_absoluteValueText_atg3j_96",Cc="_moreInfoContainer_atg3j_108",We={legendContainer:uc,closeButton:fc,titleContainer:dc,infoContainer:pc,titleLegendList:hc,legendListContainer:mc,gridContainer:gc,elementLegendContainer:yc,colorDot:vc,absoluteValueContainer:bc,absoluteValueColor:xc,absoluteValueText:_c,moreInfoContainer:Cc},gi=({containerStyles:e,title:t,infoList:n,legendList:r,legendListTitle:o,absoluteValue:s,onClickMoreInfo:i,buttonTitle:l,onClickClose:c})=>{const{t:u}=Te.useTranslation();return m.jsxs("div",{style:e?{...e}:{},className:`${We.legendContainer}`,children:[m.jsx("button",{className:We.closeButton,onClick:c}),t&&m.jsx("div",{className:We.titleContainer,children:m.jsx("h2",{children:t})}),n&&n.length>0&&m.jsx("div",{className:We.infoContainer,children:m.jsx("ul",{children:n.map(({title:p,value:f})=>m.jsxs("li",{children:[m.jsx("h3",{className:We.title,children:`${p}:`}),m.jsxs("span",{className:We.value,children:[" ",f]})]},t))})}),m.jsx("h3",{className:We.titleLegendList,children:o?m.jsx(Te.Trans,{i18nKey:o,components:{sup:m.jsx("sup",{})}}):u("mainUse")}),m.jsx("div",{className:We.legendListContainer,children:s?m.jsxs("div",{className:We.absoluteValueContainer,children:[m.jsx("div",{className:We.absoluteValueColor,style:{background:`linear-gradient(to bottom, ${s.maxColor} 0%, ${s.minColor} 100%)`}}),m.jsxs("div",{className:We.absoluteValueText,children:[m.jsxs("span",{children:[s.maxValue," ",u(s.unit)]}),m.jsxs("span",{children:[s.minValue," ",u(s.unit)]})]})]}):r&&r.length>0&&m.jsx("div",{className:We.gridContainer,children:r.map(({title:p,color:f})=>m.jsxs("div",{className:We.elementLegendContainer,children:[m.jsx("div",{className:We.colorDot,style:{backgroundColor:f}}),m.jsxs("div",{className:We.titleLegendElement,children:[u(p)," "]})]},t))})}),i&&m.jsx("button",{className:We.moreInfoContainer,onClick:i,children:l||u("moreInformation")})]})};gi.propTypes={title:a.string,containerStyles:a.object,infoList:a.arrayOf(a.shape({title:a.string.isRequired,value:a.oneOfType([a.string,a.number])})),legendList:a.arrayOf(a.shape({title:a.string,color:a.string})),legendListTitle:a.string,absoluteValue:a.shape({maxColor:a.string,minColor:a.string,maxValue:a.number,minValue:a.number}),onClickMoreInfo:a.func,buttonTitle:a.string,onClickClose:a.func};const Sc="_logo_1ewa6_2",ns={logo:Sc},yi=({src:e,alt:t,href:n})=>{const{t:r}=Te.useTranslation(),o=m.jsx("img",{src:e,alt:r(t)});return n?m.jsx("div",{className:ns.logo,children:m.jsx("a",{href:n,children:o})}):m.jsx("div",{className:ns.logo,children:o})};yi.propTypes={src:a.string.isRequired,alt:a.string.isRequired,href:a.string,className:a.string};const Tc=X.createContext(null);function wc(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,s=Array.isArray(t)?t[1]:t?t.y:0;return n===o&&r===s}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 Ec(e){const t=e.clone();return t.pixelsToGLUnits=e.pixelsToGLUnits,t}function rs(e,t){if(!e.getProjection)return;const n=e.getProjection(),r=t.getProjection();Qe(n,r)||t.setProjection(n)}function os(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function ss(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 kc=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function is(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 s=t[r.ref];if(s){o=o||Object.assign({},r),delete o.ref;for(const i of kc)i in s&&(o[i]=s[i])}return o||r});return{...e,layers:n}}const as={version:8,sources:{},layers:[]},ls={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"},cs={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"},Rc=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],Oc=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class ln{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 s=this.props[cs[o.type]];s?s(o):o.type==="error"&&console.error(o.error)},this._onPointerEvent=o=>{(o.type==="mousemove"||o.type==="mouseout")&&this._updateHover(o);const s=this.props[ls[o.type]];s&&(this.props.interactiveLayerIds&&o.type!=="mouseover"&&o.type!=="mouseout"&&(o.features=this._hoveredFeatures||this._queryRenderedFeatures(o.point)),s(o),delete o.features)},this._onCameraEvent=o=>{if(!this._internalUpdate){const s=this.props[Hr[o.type]];s&&s(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),s=this._updateViewState(t,!0);this._updateStyle(t,n),this._updateStyleComponents(t,n),this._updateHandlers(t,n),(r||o||s&&!this._map.isMoving())&&this.redraw()}static reuse(t,n){const r=ln.savedMaps.pop();if(!r)return null;const o=r.map,s=o.getContainer();for(n.className=s.className;s.childNodes.length>0;)n.appendChild(s.childNodes[0]);o._container=n,r.setProps({...t,styleDiffing:!1}),o.resize();const{initialViewState:i}=t;return i&&(i.bounds?o.fitBounds(i.bounds,{...i.fitBoundsOptions,duration:0}):r._updateViewState(i,!1)),o.isStyleLoaded()?o.fire("load"):o.once("styledata",()=>o.fire("load")),o._update(),r}_initialize(t){const{props:n}=this,{mapStyle:r=as}=n,o={...n,...n.initialViewState,accessToken:n.mapboxAccessToken||jc()||null,container:t,style:is(r)},s=o.initialViewState||o.viewState||o;if(Object.assign(o,{center:[s.longitude||0,s.latitude||0],zoom:s.zoom||0,pitch:s.pitch||0,bearing:s.bearing||0}),n.gl){const p=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=p,n.gl)}const i=new this._MapClass(o);s.padding&&i.setPadding(s.padding),n.cursor&&(i.getCanvas().style.cursor=n.cursor),this._createShadowTransform(i);const l=i._render;i._render=p=>{this._inRender=!0,l.call(i,p),this._inRender=!1};const c=i._renderTaskQueue.run;i._renderTaskQueue.run=p=>{c.call(i._renderTaskQueue,p),this._onBeforeRepaint()},i.on("render",()=>this._onAfterRepaint());const u=i.fire;i.fire=this._fireEvent.bind(this,u),i.on("resize",()=>{this._renderTransform.resize(i.transform.width,i.transform.height)}),i.on("styledata",()=>{this._updateStyleComponents(this.props,{}),rs(i.transform,this._renderTransform)}),i.on("sourcedata",()=>this._updateStyleComponents(this.props,{}));for(const p in ls)i.on(p,this._onPointerEvent);for(const p in Hr)i.on(p,this._onCameraEvent);for(const p in cs)i.on(p,this._onEvent);this._map=i}recycle(){const n=this.map.getContainer().querySelector("[mapboxgl-children]");n==null||n.remove(),ln.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=Ec(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:s,pitch:i,bearing:l}=o,c=r.isMoving();c&&(o.cameraElevationReference="sea");const u=ss(o,{...os(r.transform),...t});if(c&&(o.cameraElevationReference="ground"),u&&n){const p=this._deferredEvents;p.move=!0,p.zoom||(p.zoom=s!==o.zoom),p.rotate||(p.rotate=l!==o.bearing),p.pitch||(p.pitch=i!==o.pitch)}return c||ss(r.transform,t),u}_updateSettings(t,n){const r=this._map;let o=!1;for(const s of Rc)if(s in t&&!Qe(t[s],n[s])){o=!0;const i=r[`set${s[0].toUpperCase()}${s.slice(1)}`];i==null||i.call(r,t[s])}return o}_updateStyle(t,n){if(t.cursor!==n.cursor&&(this._map.getCanvas().style.cursor=t.cursor||""),t.mapStyle!==n.mapStyle){const{mapStyle:r=as,styleDiffing:o=!0}=t,s={diff:o};return"localIdeographFontFamily"in t&&(s.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(is(r),s),!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 s of Oc){const i=t[s]??!0,l=n[s]??!0;Qe(i,l)||(o=!0,i?r[s].enable(i):r[s].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 s=t.type,i=((o=this._hoveredFeatures)==null?void 0:o.length)>0,l=this._queryRenderedFeatures(t.point),c=l.length>0;!c&&i&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=l,c&&!i&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=s}else this._hoveredFeatures=null}_fireEvent(t,n,r){const o=this._map,s=o.transform,i=typeof n=="string"?n:n.type;return i==="move"&&this._updateViewState(this.props,!1),i in Hr&&(typeof n=="object"&&(n.viewState=os(s)),this._map.isMoving())?(o.transform=this._renderTransform,t.call(o,n,r),o.transform=s,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=()=>{rs(this._renderTransform,n),t.transform=n}}}ln.savedMaps=[];function jc(){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 $c=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function Pc(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 s=t.project(r);return t.transform=o,s},unproject:r=>{const o=t.transform;t.transform=e.transform;const s=t.unproject(r);return t.transform=o,s},queryTerrainElevation:(r,o)=>{const s=t.transform;t.transform=e.transform;const i=t.queryTerrainElevation(r,o);return t.transform=s,i},queryRenderedFeatures:(r,o)=>{const s=t.transform;t.transform=e.transform;const i=t.queryRenderedFeatures(r,o);return t.transform=s,i}};for(const r of Mc(t))!(r in n)&&!$c.includes(r)&&(n[r]=t[r].bind(t));return n}function Mc(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 Lc=typeof document<"u"?b.useLayoutEffect:b.useEffect,Ac=["baseApiUrl","maxParallelImageRequests","workerClass","workerCount","workerUrl"];function Nc(e,t){for(const r of Ac)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 Ic(e,t){const n=b.useContext(Tc),[r,o]=b.useState(null),s=b.useRef(),{current:i}=b.useRef({mapLib:null,map:null});b.useEffect(()=>{const u=e.mapLib;let p=!0,f;return Promise.resolve(u||import("mapbox-gl")).then(h=>{if(!p)return;if(!h)throw new Error("Invalid mapLib");const v="Map"in h?h:h.default;if(!v.Map)throw new Error("Invalid mapLib");Nc(v,e),e.reuseMaps&&(f=ln.reuse(e,s.current)),f||(f=new ln(v.Map,e,s.current)),i.map=Pc(f),i.mapLib=v,o(f),n==null||n.onMapMount(i.map,e.id)}).catch(h=>{const{onError:v}=e;v?v({type:"error",target:null,error:h}):console.error(h)}),()=>{p=!1,f&&(n==null||n.onMapUnmount(e.id),e.reuseMaps?f.recycle():f.destroy())}},[]),Lc(()=>{r&&r.setProps(e)}),b.useImperativeHandle(t,()=>i.map,[r]);const l=b.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),c={height:"100%"};return X.createElement("div",{id:e.id,ref:s,style:l},r&&X.createElement(fn.Provider,{value:i},X.createElement("div",{"mapboxgl-children":"",style:c},e.children)))}const Dc=X.forwardRef(Ic),Fc=/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)&&!Fc.test(r)?n[r]=`${o}px`:n[r]=o}}function vi(e,t){if(e===t)return null;const n=us(e),r=us(t),o=[];for(const s of r)n.has(s)||o.push(s);for(const s of n)r.has(s)||o.push(s);return o.length===0?null:o}function us(e){return new Set(e?e.trim().split(/\s+/):[])}b.memo(b.forwardRef((e,t)=>{const{map:n,mapLib:r}=b.useContext(fn),o=b.useRef({props:e}),s=b.useMemo(()=>{let S=!1;X.Children.forEach(e.children,k=>{k&&(S=!0)});const R={...e,element:S?document.createElement("div"):null},j=new r.Marker(R);return j.setLngLat([e.longitude,e.latitude]),j.getElement().addEventListener("click",k=>{var _,F;(F=(_=o.current.props).onClick)==null||F.call(_,{type:"click",target:j,originalEvent:k})}),j.on("dragstart",k=>{var F,y;const _=k;_.lngLat=s.getLngLat(),(y=(F=o.current.props).onDragStart)==null||y.call(F,_)}),j.on("drag",k=>{var F,y;const _=k;_.lngLat=s.getLngLat(),(y=(F=o.current.props).onDrag)==null||y.call(F,_)}),j.on("dragend",k=>{var F,y;const _=k;_.lngLat=s.getLngLat(),(y=(F=o.current.props).onDragEnd)==null||y.call(F,_)}),j},[]);b.useEffect(()=>(s.addTo(n.getMap()),()=>{s.remove()}),[]);const{longitude:i,latitude:l,offset:c,style:u,draggable:p=!1,popup:f=null,rotation:h=0,rotationAlignment:v="auto",pitchAlignment:x="auto"}=e;b.useEffect(()=>{It(s.getElement(),u)},[u]),b.useImperativeHandle(t,()=>s,[]);const d=o.current.props;(s.getLngLat().lng!==i||s.getLngLat().lat!==l)&&s.setLngLat([i,l]),c&&!wc(s.getOffset(),c)&&s.setOffset(c),s.isDraggable()!==p&&s.setDraggable(p),s.getRotation()!==h&&s.setRotation(h),s.getRotationAlignment()!==v&&s.setRotationAlignment(v),s.getPitchAlignment()!==x&&s.setPitchAlignment(x),s.getPopup()!==f&&s.setPopup(f);const C=vi(d.className,e.className);if(C)for(const S of C)s.toggleClassName(S);return o.current.props=e,mr.createPortal(e.children,s.getElement())}));const zc=b.memo(b.forwardRef((e,t)=>{const{map:n,mapLib:r}=b.useContext(fn),o=b.useMemo(()=>document.createElement("div"),[]),s=b.useRef({props:e}),i=b.useMemo(()=>{const l={...e},c=new r.Popup(l);return c.setLngLat([e.longitude,e.latitude]),c.once("open",u=>{var p,f;(f=(p=s.current.props).onOpen)==null||f.call(p,u)}),c},[]);if(b.useEffect(()=>{const l=c=>{var u,p;(p=(u=s.current.props).onClose)==null||p.call(u,c)};return i.on("close",l),i.setDOMContent(o).addTo(n.getMap()),()=>{i.off("close",l),i.isOpen()&&i.remove()}},[]),b.useEffect(()=>{It(i.getElement(),e.style)},[e.style]),b.useImperativeHandle(t,()=>i,[]),i.isOpen()){const l=s.current.props;(i.getLngLat().lng!==e.longitude||i.getLngLat().lat!==e.latitude)&&i.setLngLat([e.longitude,e.latitude]),e.offset&&!Qe(l.offset,e.offset)&&(i.options.anchor=e.anchor,i.setOffset(e.offset)),(l.anchor!==e.anchor||l.maxWidth!==e.maxWidth)&&i.setMaxWidth(e.maxWidth);const c=vi(l.className,e.className);if(c)for(const u of c)i.toggleClassName(u);s.current.props=e}return mr.createPortal(e.children,o)}));function Nn(e,t,n,r){const o=b.useContext(fn),s=b.useMemo(()=>e(o),[]);return b.useEffect(()=>{const i=t,l=typeof t=="function"?t:null,{map:c}=o;return c.hasControl(s)||c.addControl(s,i==null?void 0:i.position),()=>{l&&l(o),c.hasControl(s)&&c.removeControl(s)}},[]),s}function Bc(e){const t=Nn(({mapLib:n})=>new n.AttributionControl(e),{position:e.position});return b.useEffect(()=>{It(t._container,e.style)},[e.style]),null}b.memo(Bc);function Uc(e){const t=Nn(({mapLib:n})=>new n.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return b.useEffect(()=>{It(t._controlContainer,e.style)},[e.style]),null}b.memo(Uc);function Vc(e,t){const n=b.useRef({props:e}),r=Nn(({mapLib:o})=>{const s=new o.GeolocateControl(e),i=s._setupUI.bind(s);return s._setupUI=l=>{s._container.hasChildNodes()||i(l)},s.on("geolocate",l=>{var c,u;(u=(c=n.current.props).onGeolocate)==null||u.call(c,l)}),s.on("error",l=>{var c,u;(u=(c=n.current.props).onError)==null||u.call(c,l)}),s.on("outofmaxbounds",l=>{var c,u;(u=(c=n.current.props).onOutOfMaxBounds)==null||u.call(c,l)}),s.on("trackuserlocationstart",l=>{var c,u;(u=(c=n.current.props).onTrackUserLocationStart)==null||u.call(c,l)}),s.on("trackuserlocationend",l=>{var c,u;(u=(c=n.current.props).onTrackUserLocationEnd)==null||u.call(c,l)}),s},{position:e.position});return n.current.props=e,b.useImperativeHandle(t,()=>r,[]),b.useEffect(()=>{It(r._container,e.style)},[e.style]),null}b.memo(b.forwardRef(Vc));function qc(e){const t=Nn(({mapLib:n})=>new n.NavigationControl(e),{position:e.position});return b.useEffect(()=>{It(t._container,e.style)},[e.style]),null}const Wc=b.memo(qc);function Hc(e){const t=Nn(({mapLib:s})=>new s.ScaleControl(e),{position:e.position}),n=b.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),b.useEffect(()=>{It(t._container,o)},[o]),null}b.memo(Hc);function ur(e,t){if(!e)throw new Error(t)}let Kc=0;function Yc(e,t,n){if(e.style&&e.style._loaded){const r={...n};return delete r.id,delete r.children,e.addSource(t,r),e.getSource(t)}return null}function Zc(e,t,n){ur(t.id===n.id,"source id changed"),ur(t.type===n.type,"source type changed");let r="",o=0;for(const i in t)i!=="children"&&i!=="id"&&!Qe(n[i],t[i])&&(r=i,o++);if(!o)return;const s=t.type;s==="geojson"?e.setData(t.data):s==="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 Gc(e){const t=b.useContext(fn).map.getMap(),n=b.useRef(e),[,r]=b.useState(0),o=b.useMemo(()=>e.id||`jsx-source-${Kc++}`,[]);b.useEffect(()=>{if(t){const i=()=>setTimeout(()=>r(l=>l+1),0);return t.on("styledata",i),i(),()=>{var l;if(t.off("styledata",i),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 s=t&&t.style&&t.getSource(o);return s?Zc(s,e,n.current):s=Yc(t,o,e),n.current=e,s&&X.Children.map(e.children,i=>i&&b.cloneElement(i,{source:o}))||null}function Jc(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:s={},filter:i,minzoom:l,maxzoom:c,beforeId:u}=n;if(u!==r.beforeId&&e.moveLayer(t,u),o!==r.layout){const p=r.layout||{};for(const f in o)Qe(o[f],p[f])||e.setLayoutProperty(t,f,o[f]);for(const f in p)o.hasOwnProperty(f)||e.setLayoutProperty(t,f,void 0)}if(s!==r.paint){const p=r.paint||{};for(const f in s)Qe(s[f],p[f])||e.setPaintProperty(t,f,s[f]);for(const f in p)s.hasOwnProperty(f)||e.setPaintProperty(t,f,void 0)}Qe(i,r.filter)||e.setFilter(t,i),(l!==r.minzoom||c!==r.maxzoom)&&e.setLayerZoomRange(t,l,c)}function Xc(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 Qc=0;function eu(e){const t=b.useContext(fn).map.getMap(),n=b.useRef(e),[,r]=b.useState(0),o=b.useMemo(()=>e.id||`jsx-layer-${Qc++}`,[]);if(b.useEffect(()=>{if(t){const i=()=>r(l=>l+1);return t.on("styledata",i),i(),()=>{t.off("styledata",i),t.style&&t.style._loaded&&t.getLayer(o)&&t.removeLayer(o)}}},[t]),t&&t.style&&t.getLayer(o))try{Jc(t,o,e,n.current)}catch(i){console.warn(i)}else Xc(t,o,e);return n.current=e,null}const tu="_mapContainer_84pkf_2",nu={mapContainer:tu};Ea.accessToken="pk.eyJ1IjoiY2ljbGljYSIsImEiOiJja3llODhxZ2UwYzF1Mm5xcHVhMzI3anhqIn0.-r56FLAzEH57eVsB2ZeVcA";const bi=({initialView:e={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:t=17,minZoom:n=8,mapStyle:r,firstSymbolLayer:o,cssProps:s="",onClick:i="",interactiveLayers:l=[],popUp:c=!1,sources:u=[],layers:p=[]})=>{const f=b.useRef(),[h,v]=b.useState(null),x=kn.useSelector(d=>d.mapState.showTexts);return b.useEffect(()=>{if(f.current){const d=f.current.getMap();d.getStyle().layers.map(S=>{S.type=="symbol"&&S.id!="professionals"&&(x?d.setLayoutProperty(S.id,"visibility","visible"):d.setLayoutProperty(S.id,"visibility","none"))})}},[x]),m.jsx("div",{className:`${nu.mapContainer}`,style:s,children:m.jsxs(Dc,{initialViewState:e,ref:f,hash:!1,maxZoom:t,minZoom:n,mapStyle:r,onClick:i,interactiveLayerIds:l,children:[u.length&&u.map((d,C)=>m.jsx(Gc,{...d,children:p.length&&p.map((S,R)=>{if(S.sourceId==d.id)return m.jsx(eu,{...S.layer,beforeId:o},R)})},C)),m.jsx(Wc,{position:"bottom-right",visualizePitch:!0}),c&&h&&m.jsx(zc,{longitude:c.longitude,latitude:c.latitude,anchor:c.anchor,onClose:()=>v(null),children:c.content})]})})};bi.propTypes={initialView:a.shape({latitude:a.number.isRequired,longitude:a.number.isRequired,zoom:a.number.isRequired}),mapStyle:a.object,firstSymbolLayer:a.string,cssProps:a.object,style:a.object,maxZoom:a.number,minZoom:a.number,onClick:a.func,interactiveLayers:a.array,popUp:a.shape({latitude:a.number,longitude:a.number,anchor:a.string,content:a.element}),textsUrl:a.string,sources:a.arrayOf(a.shape({id:a.string,type:a.string,url:a.string,data:a.object})),layers:a.arrayOf(a.shape({sourceId:a.string,layer:a.shape({id:a.string,type:a.string,sourceLayer:a.string,minZoom:a.number,maxZoom:a.number,paint:a.object})}))};var et=Uint8Array,rn=Uint16Array,ru=Int32Array,xi=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]),_i=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]),ou=new et([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Ci=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 ru(n[30]),r=1;r<30;++r)for(var s=n[r];s<n[r+1];++s)o[s]=s-n[r]<<5|r;return{b:n,r:o}},Si=Ci(xi,2),Ti=Si.b,su=Si.r;Ti[28]=258,su[258]=28;var iu=Ci(_i,0),au=iu.b,io=new rn(32768);for(var Ee=0;Ee<32768;++Ee){var St=(Ee&43690)>>1|(Ee&21845)<<1;St=(St&52428)>>2|(St&13107)<<2,St=(St&61680)>>4|(St&3855)<<4,io[Ee]=((St&65280)>>8|(St&255)<<8)>>1}var Rn=function(e,t,n){for(var r=e.length,o=0,s=new rn(t);o<r;++o)e[o]&&++s[e[o]-1];var i=new rn(t);for(o=1;o<t;++o)i[o]=i[o-1]+s[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],p=t-e[o],f=i[e[o]-1]++<<p,h=f|(1<<p)-1;f<=h;++f)l[io[f]>>c]=u}else for(l=new rn(r),o=0;o<r;++o)e[o]&&(l[o]=io[i[e[o]-1]++]>>15-e[o]);return l},In=new et(288);for(var Ee=0;Ee<144;++Ee)In[Ee]=8;for(var Ee=144;Ee<256;++Ee)In[Ee]=9;for(var Ee=256;Ee<280;++Ee)In[Ee]=7;for(var Ee=280;Ee<288;++Ee)In[Ee]=8;var wi=new et(32);for(var Ee=0;Ee<32;++Ee)wi[Ee]=5;var lu=Rn(In,9,1),cu=Rn(wi,5,1),Kr=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},Yr=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(t&7)},uu=function(e){return(e+7)/8|0},fu=function(e,t,n){return(n==null||n>e.length)&&(n=e.length),new et(e.subarray(t,n))},du=["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||du[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,Xe),!n)throw r;return r},xo=function(e,t,n,r){var o=e.length,s=0;if(!o||t.f&&!t.l)return n||new et(0);var i=!n,l=i||t.i!=2,c=t.i;i&&(n=new et(o*3));var u=function(be){var P=n.length;if(be>P){var xe=new et(Math.max(P*2,be));xe.set(n),n=xe}},p=t.f||0,f=t.p||0,h=t.b||0,v=t.l,x=t.d,d=t.m,C=t.n,S=o*8;do{if(!v){p=ct(e,f,1);var R=ct(e,f+1,3);if(f+=3,R)if(R==1)v=lu,x=cu,d=9,C=5;else if(R==2){var F=ct(e,f,31)+257,y=ct(e,f+10,15)+4,w=F+ct(e,f+5,31)+1;f+=14;for(var T=new et(w),$=new et(19),N=0;N<y;++N)$[ou[N]]=ct(e,f+N*3,7);f+=y*3;for(var H=Kr($),U=(1<<H)-1,ce=Rn($,H,1),N=0;N<w;){var K=ce[ct(e,f,U)];f+=K&15;var j=K>>4;if(j<16)T[N++]=j;else{var se=0,re=0;for(j==16?(re=3+ct(e,f,3),f+=2,se=T[N-1]):j==17?(re=3+ct(e,f,7),f+=3):j==18&&(re=11+ct(e,f,127),f+=7);re--;)T[N++]=se}}var ke=T.subarray(0,F),$e=T.subarray(F);d=Kr(ke),C=Kr($e),v=Rn(ke,d,1),x=Rn($e,C,1)}else Xe(1);else{var j=uu(f)+4,k=e[j-4]|e[j-3]<<8,_=j+k;if(_>o){c&&Xe(0);break}l&&u(h+k),n.set(e.subarray(j,_),h),t.b=h+=k,t.p=f=_*8,t.f=p;continue}if(f>S){c&&Xe(0);break}}l&&u(h+131072);for(var O=(1<<d)-1,A=(1<<C)-1,Q=f;;Q=f){var se=v[Yr(e,f)&O],q=se>>4;if(f+=se&15,f>S){c&&Xe(0);break}if(se||Xe(2),q<256)n[h++]=q;else if(q==256){Q=f,v=null;break}else{var z=q-254;if(q>264){var N=q-257,ee=xi[N];z=ct(e,f,(1<<ee)-1)+Ti[N],f+=ee}var Z=x[Yr(e,f)&A],Y=Z>>4;Z||Xe(3),f+=Z&15;var $e=au[Y];if(Y>3){var ee=_i[Y];$e+=Yr(e,f)&(1<<ee)-1,f+=ee}if(f>S){c&&Xe(0);break}l&&u(h+131072);var V=h+z;if(h<$e){var G=s-$e,ne=Math.min($e,V);for(G+h<0&&Xe(3);h<ne;++h)n[h]=r[G+h]}for(;h<V;++h)n[h]=n[h-$e]}}t.l=v,t.p=Q,t.b=h,t.f=p,v&&(p=1,t.m=d,t.d=x,t.n=C)}while(!p);return h!=n.length&&i?fu(n,0,h):n.subarray(0,h)},pu=new et(0),hu=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},gu=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 yu(e,t){return xo(e,{i:2},t,t)}function vu(e,t){var n=hu(e);return n+8>e.length&&Xe(6,"invalid gzip data"),xo(e.subarray(n,-8),{i:2},new et(mu(e)),t)}function bu(e,t){return xo(e.subarray(gu(e),-4),{i:2},t,t)}function xu(e,t){return e[0]==31&&e[1]==139&&e[2]==8?vu(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?yu(e,t):bu(e,t)}var _u=typeof TextDecoder<"u"&&new TextDecoder,Cu=0;try{_u.decode(pu,{stream:!0}),Cu=1}catch{}var Su=Object.defineProperty,On=Math.pow,Se=(e,t)=>Su(e,"name",{value:t,configurable:!0}),ze=(e,t,n)=>new Promise((r,o)=>{var s=c=>{try{l(n.next(c))}catch(u){o(u)}},i=c=>{try{l(n.throw(c))}catch(u){o(u)}},l=c=>c.done?r(c.value):Promise.resolve(c.value).then(s,i);l((n=n.apply(e,t)).next())});Se((e,t)=>{let n=!1,r="",o=L.GridLayer.extend({createTile:Se((s,i)=>{let l=document.createElement("img"),c=new AbortController,u=c.signal;return l.cancel=()=>{c.abort()},n||(e.getHeader().then(p=>{p.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."):p.tileType===2?r="image/png":p.tileType===3?r="image/jpeg":p.tileType===4?r="image/webp":p.tileType===5&&(r="image/avif")}),n=!0),e.getZxy(s.z,s.x,s.y,u).then(p=>{if(p){let f=new Blob([p.data],{type:r}),h=window.URL.createObjectURL(f);l.src=h,l.cancel=void 0,i(void 0,l)}}).catch(p=>{if(p.name!=="AbortError")throw p}),l},"createTile"),_removeTile:Se(function(s){let i=this._tiles[s];i&&(i.el.cancel&&i.el.cancel(),i.el.width=0,i.el.height=0,i.el.deleted=!0,L.DomUtil.remove(i.el),delete this._tiles[s],this.fire("tileunload",{tile:i.el,coords:this._keyToTileCoords(s)}))},"_removeTile")});return new o(t)},"leafletRasterLayer");var Tu=Se(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:Se(()=>r.abort(),"cancel")}},"v3compat"),Ei=class{constructor(t){this.tilev4=Se((n,r)=>ze(this,null,function*(){if(n.type==="json"){let v=n.url.substr(10),x=this.tiles.get(v);if(x||(x=new fs(v),this.tiles.set(v,x)),this.metadata)return{data:yield x.getTileJson(n.url)};let d=yield x.getHeader();return(d.minLon>=d.maxLon||d.minLat>=d.maxLat)&&console.error(`Bounds of PMTiles archive ${d.minLon},${d.minLat},${d.maxLon},${d.maxLat} are not valid.`),{data:{tiles:[`${n.url}/{z}/{x}/{y}`],minzoom:d.minZoom,maxzoom:d.maxZoom,bounds:[d.minLon,d.minLat,d.maxLon,d.maxLat]}}}let o=new RegExp(/pmtiles:\/\/(.+)\/(\d+)\/(\d+)\/(\d+)/),s=n.url.match(o);if(!s)throw new Error("Invalid PMTiles protocol URL");let i=s[1],l=this.tiles.get(i);l||(l=new fs(i),this.tiles.set(i,l));let c=s[2],u=s[3],p=s[4],f=yield l.getHeader(),h=yield l==null?void 0:l.getZxy(+c,+u,+p,r.signal);if(h)return{data:new Uint8Array(h.data),cacheControl:h.cacheControl,expires:h.expires};if(f.tileType===1){if(this.errorOnMissingTile)throw new Error("Tile not found.");return{data:new Uint8Array}}return{data:null}}),"tilev4"),this.tile=Tu(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)}};Se(Ei,"Protocol");var wu=Ei;function ki(e,t){return(t>>>0)*4294967296+(e>>>0)}Se(ki,"toNum");function Ri(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 ki(e,o);throw new Error("Expected varint not more than 10 bytes")}Se(Ri,"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,Ri(r,e))}Se(tn,"readVarint");function _o(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}}Se(_o,"rotate");function Oi(e,t){let n=On(2,e),r=t,o=t,s=t,i=[0,0],l=1;for(;l<n;)r=1&s/2,o=1&(s^r),_o(l,i,r,o),i[0]+=l*r,i[1]+=l*o,s=s/4,l*=2;return[e,i[0],i[1]]}Se(Oi,"idOnLevel");var Eu=[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 ji(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=Eu[e],o=On(2,e),s=0,i=0,l=0,c=[t,n],u=o/2;for(;u>0;)s=(c[0]&u)>0?1:0,i=(c[1]&u)>0?1:0,l+=u*u*(3*s^i),_o(u,c,s,i),u=u/2;return r+l}Se(ji,"zxyToTileId");function ku(e){let t=0;for(let n=0;n<27;n++){let r=(1<<n)*(1<<n);if(t+r>e)return Oi(n,e-t);t+=r}throw new Error("Tile zoom level exceeds max safe number limit (26)")}Se(ku,"tileIdToZxy");var Ru=(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))(Ru||{});function gr(e,t){return ze(this,null,function*(){if(t===1||t===0)return e;if(t===2){if(typeof globalThis.DecompressionStream>"u")return xu(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")})}Se(gr,"defaultDecompress");var Ou=(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))(Ou||{});function $i(e){return e===1?".mvt":e===2?".png":e===3?".jpg":e===4?".webp":e===5?".avif":""}Se($i,"tileTypeExt");var ju=127;function Pi(e,t){let n=0,r=e.length-1;for(;n<=r;){let o=r+n>>1,s=t-e[o].tileId;if(s>0)n=o+1;else if(s<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}Se(Pi,"findTile");var $u=class{constructor(t){this.file=t}getKey(){return this.file.name}getBytes(t,n){return ze(this,null,function*(){return{data:yield this.file.slice(t,t+n).arrayBuffer()}})}};Se($u,"FileSource");var Mi=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,s=/Chrome|Chromium|Edg|OPR|Brave/.test(r);this.chromeWindowsNoCache=!1,o&&s&&(this.chromeWindowsNoCache=!0)}getKey(){return this.url}setHeaders(t){this.customHeaders=t}getBytes(t,n,r,o){return ze(this,null,function*(){let s,i;r?i=r:(s=new AbortController,i=s.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:i,cache:c,headers:l});if(t===0&&u.status===416){let h=u.headers.get("Content-Range");if(!h||!h.startsWith("bytes */"))throw new Error("Missing content-length on 416 response");let v=+h.substr(8);u=yield fetch(this.url,{signal:i,cache:"reload",headers:{range:`bytes=0-${v-1}`}})}let p=u.headers.get("Etag");if(p!=null&&p.startsWith("W/")&&(p=null),u.status===416||o&&p&&p!==o)throw this.mustReload=!0,new ao(`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 f=u.headers.get("Content-Length");if(u.status===200&&(!f||+f>n))throw s&&s.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:p||void 0,cacheControl:u.headers.get("Cache-Control")||void 0,expires:u.headers.get("Expires")||void 0}})}};Se(Mi,"FetchSource");var Pu=Mi;function st(e,t){let n=e.getUint32(t+4,!0),r=e.getUint32(t+0,!0);return n*On(2,32)+r}Se(st,"getUint64");function Li(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:st(n,8),rootDirectoryLength:st(n,16),jsonMetadataOffset:st(n,24),jsonMetadataLength:st(n,32),leafDirectoryOffset:st(n,40),leafDirectoryLength:st(n,48),tileDataOffset:st(n,56),tileDataLength:st(n,64),numAddressedTiles:st(n,72),numTileEntries:st(n,80),numTileContents:st(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}}Se(Li,"bytesToHeader");function Co(e){let t={buf:new Uint8Array(e),pos:0},n=tn(t),r=[],o=0;for(let s=0;s<n;s++){let i=tn(t);r.push({tileId:o+i,offset:0,length:0,runLength:1}),o+=i}for(let s=0;s<n;s++)r[s].runLength=tn(t);for(let s=0;s<n;s++)r[s].length=tn(t);for(let s=0;s<n;s++){let i=tn(t);i===0&&s>0?r[s].offset=r[s-1].offset+r[s-1].length:r[s].offset=i-1}return r}Se(Co,"deserializeIndex");var Ai=class extends Error{};Se(Ai,"EtagMismatch");var ao=Ai;function So(e,t){return ze(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,ju),o=Li(r,n.etag),s=n.data.slice(o.rootDirectoryOffset,o.rootDirectoryOffset+o.rootDirectoryLength),i=`${e.getKey()}|${o.etag||""}|${o.rootDirectoryOffset}|${o.rootDirectoryLength}`,l=Co(yield t(s,o.internalCompression));return[o,[i,l.length,l]]})}Se(So,"getHeaderAndRoot");function To(e,t,n,r,o){return ze(this,null,function*(){let s=yield e.getBytes(n,r,void 0,o.etag),i=yield t(s.data,o.internalCompression),l=Co(i);if(l.length===0)throw new Error("Empty directory is invalid");return l})}Se(To,"getDirectory");var Mu=class{constructor(t=100,n=!0,r=gr){this.cache=new Map,this.maxCacheEntries=t,this.counter=1,this.decompress=r}getHeader(t){return ze(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 ze(this,null,function*(){let s=`${t.getKey()}|${o.etag||""}|${n}|${r}`,i=this.cache.get(s);if(i)return i.lastUsed=this.counter++,i.data;let l=yield To(t,this.decompress,n,r,o);return this.cache.set(s,{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 ze(this,null,function*(){this.cache.delete(t.getKey())})}};Se(Mu,"ResolvedValueCache");var Ni=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 ze(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((s,i)=>{So(t,this.decompress).then(l=>{l[1]&&this.cache.set(l[1][0],{lastUsed:this.counter++,data:Promise.resolve(l[1][2])}),s(l[0]),this.prune()}).catch(l=>{i(l)})});return this.cache.set(n,{lastUsed:this.counter++,data:o}),o})}getDirectory(t,n,r,o){return ze(this,null,function*(){let s=`${t.getKey()}|${o.etag||""}|${n}|${r}`,i=this.cache.get(s);if(i)return i.lastUsed=this.counter++,yield i.data;let l=new Promise((c,u)=>{To(t,this.decompress,n,r,o).then(p=>{c(p),this.prune()}).catch(p=>{u(p)})});return this.cache.set(s,{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 ze(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,s)=>{this.getHeader(t).then(i=>{o(),this.invalidations.delete(n)}).catch(i=>{s(i)})});this.invalidations.set(n,r)})}};Se(Ni,"SharedPromiseCache");var Lu=Ni,Ii=class{constructor(t,n,r){typeof t=="string"?this.source=new Pu(t):this.source=t,r?this.decompress=r:this.decompress=gr,n?this.cache=n:this.cache=new Lu}getHeader(){return ze(this,null,function*(){return yield this.cache.getHeader(this.source)})}getZxyAttempt(t,n,r,o){return ze(this,null,function*(){let s=ji(t,n,r),i=yield this.cache.getHeader(this.source);if(t<i.minZoom||t>i.maxZoom)return;let l=i.rootDirectoryOffset,c=i.rootDirectoryLength;for(let u=0;u<=3;u++){let p=yield this.cache.getDirectory(this.source,l,c,i),f=Pi(p,s);if(f){if(f.runLength>0){let h=yield this.source.getBytes(i.tileDataOffset+f.offset,f.length,o,i.etag);return{data:yield this.decompress(h.data,i.tileCompression),cacheControl:h.cacheControl,expires:h.expires}}l=i.leafDirectoryOffset+f.offset,c=f.length}else return}throw new Error("Maximum directory depth exceeded")})}getZxy(t,n,r,o){return ze(this,null,function*(){try{return yield this.getZxyAttempt(t,n,r,o)}catch(s){if(s instanceof ao)return this.cache.invalidate(this.source),yield this.getZxyAttempt(t,n,r,o);throw s}})}getMetadataAttempt(){return ze(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 ze(this,null,function*(){try{return yield this.getMetadataAttempt()}catch(t){if(t instanceof ao)return this.cache.invalidate(this.source),yield this.getMetadataAttempt();throw t}})}getTileJson(t){return ze(this,null,function*(){let n=yield this.getHeader(),r=yield this.getMetadata(),o=$i(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}})}};Se(Ii,"PMTiles");var fs=Ii;const Au=X.createContext(null);function Nu(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,s=Array.isArray(t)?t[1]:t?t.y:0;return n===o&&r===s}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 ds(e){return{longitude:e.center.lng,latitude:e.center.lat,zoom:e.zoom,pitch:e.pitch,bearing:e.bearing,padding:e.padding}}function ps(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 Iu=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function hs(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 s=t[r.ref];if(s){o=o||Object.assign({},r),delete o.ref;for(const i of Iu)i in s&&(o[i]=s[i])}return o||r});return{...e,layers:n}}const ms={version:8,sources:{},layers:[]},gs={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"},ys={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"},vs={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"},Du=["minZoom","maxZoom","minPitch","maxPitch","maxBounds","projection","renderWorldCopies"],Fu=["scrollZoom","boxZoom","dragRotate","dragPan","keyboard","doubleClickZoom","touchZoomRotate","touchPitch"];class cn{constructor(t,n,r){this._map=null,this._internalUpdate=!1,this._hoveredFeatures=null,this._propsedCameraUpdate=null,this._styleComponents={},this._onEvent=o=>{const s=this.props[vs[o.type]];s?s(o):o.type==="error"&&console.error(o.error)},this._onCameraEvent=o=>{if(this._internalUpdate)return;o.viewState=this._propsedCameraUpdate||ds(this._map.transform);const s=this.props[ys[o.type]];s&&s(o)},this._onCameraUpdate=o=>this._internalUpdate?o:(this._propsedCameraUpdate=ds(o),ps(o,this.props)),this._onPointerEvent=o=>{(o.type==="mousemove"||o.type==="mouseout")&&this._updateHover(o);const s=this.props[gs[o.type]];s&&(this.props.interactiveLayerIds&&o.type!=="mouseover"&&o.type!=="mouseout"&&(o.features=this._hoveredFeatures||this._queryRenderedFeatures(o.point)),s(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),s=this._updateViewState(t);this._updateStyle(t,n),this._updateStyleComponents(t),this._updateHandlers(t,n),(r||o||s&&!this._map.isMoving())&&this.redraw()}static reuse(t,n){const r=cn.savedMaps.pop();if(!r)return null;const o=r.map,s=o.getContainer();for(n.className=s.className;s.childNodes.length>0;)n.appendChild(s.childNodes[0]);o._container=n;const i=o._resizeObserver;i&&(i.disconnect(),i.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=ms}=n,o={...n,...n.initialViewState,container:t,style:hs(r)},s=o.initialViewState||o.viewState||o;if(Object.assign(o,{center:[s.longitude||0,s.latitude||0],zoom:s.zoom||0,pitch:s.pitch||0,bearing:s.bearing||0}),n.gl){const l=HTMLCanvasElement.prototype.getContext;HTMLCanvasElement.prototype.getContext=()=>(HTMLCanvasElement.prototype.getContext=l,n.gl)}const i=new this._MapClass(o);s.padding&&i.setPadding(s.padding),n.cursor&&(i.getCanvas().style.cursor=n.cursor),i.transformCameraUpdate=this._onCameraUpdate,i.on("style.load",()=>{var l;this._styleComponents={light:i.getLight(),sky:i.getSky(),projection:(l=i.getProjection)==null?void 0:l.call(i),terrain:i.getTerrain()},this._updateStyleComponents(this.props)}),i.on("sourcedata",()=>{this._updateStyleComponents(this.props)});for(const l in gs)i.on(l,this._onPointerEvent);for(const l in ys)i.on(l,this._onCameraEvent);for(const l in vs)i.on(l,this._onEvent);this._map=i}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;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 s=ps(r,t);if(Object.keys(s).length>0)return this._internalUpdate=!0,n.jumpTo(s),this._internalUpdate=!1,!0}return!1}_updateSettings(t,n){const r=this._map;let o=!1;for(const s of Du)if(s in t&&!Ze(t[s],n[s])){o=!0;const i=r[`set${s[0].toUpperCase()}${s.slice(1)}`];i==null||i.call(r,t[s])}return o}_updateStyle(t,n){if(t.cursor!==n.cursor&&(this._map.getCanvas().style.cursor=t.cursor||""),t.mapStyle!==n.mapStyle){const{mapStyle:r=ms,styleDiffing:o=!0}=t,s={diff:o};"localIdeographFontFamily"in t&&(s.localIdeographFontFamily=t.localIdeographFontFamily),this._map.setStyle(hs(r),s)}}_updateStyleComponents({light:t,projection:n,sky:r,terrain:o}){var l,c;const s=this._map,i=this._styleComponents;s.style._loaded&&(t&&!Ze(t,i.light)&&(i.light=t,s.setLight(t)),n&&!Ze(n,i.projection)&&n!==((l=i.projection)==null?void 0:l.type)&&(i.projection=typeof n=="string"?{type:n}:n,(c=s.setProjection)==null||c.call(s,i.projection)),r&&!Ze(r,i.sky)&&(i.sky=r,s.setSky(r)),o!==void 0&&!Ze(o,i.terrain)&&(!o||s.getSource(o.source))&&(i.terrain=o,s.setTerrain(o)))}_updateHandlers(t,n){const r=this._map;for(const o of Fu){const s=t[o]??!0,i=n[o]??!0;Ze(s,i)||(s?r[o].enable(s):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 s=t.type,i=((o=this._hoveredFeatures)==null?void 0:o.length)>0,l=this._queryRenderedFeatures(t.point),c=l.length>0;!c&&i&&(t.type="mouseleave",this._onPointerEvent(t)),this._hoveredFeatures=l,c&&!i&&(t.type="mouseenter",this._onPointerEvent(t)),t.type=s}else this._hoveredFeatures=null}}cn.savedMaps=[];const zu=["setMaxBounds","setMinZoom","setMaxZoom","setMinPitch","setMaxPitch","setRenderWorldCopies","setProjection","setStyle","addSource","removeSource","addLayer","removeLayer","setLayerZoomRange","setFilter","setPaintProperty","setLayoutProperty","setLight","setTerrain","setFog","remove"];function Bu(e){if(!e)return null;const t=e.map,n={getMap:()=>t};for(const r of Uu(t))!(r in n)&&!zu.includes(r)&&(n[r]=t[r].bind(t));return n}function Uu(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 Vu=typeof document<"u"?b.useLayoutEffect:b.useEffect;function qu(e,t){const{RTLTextPlugin:n,maxParallelImageRequests:r,workerCount:o,workerUrl:s}=t;if(n&&e.getRTLTextPluginStatus&&e.getRTLTextPluginStatus()==="unavailable"){const{pluginUrl:i,lazy:l=!0}=typeof n=="string"?{pluginUrl:n}:n;e.setRTLTextPlugin(i,c=>{c&&console.error(c)},l)}r!==void 0&&e.setMaxParallelImageRequests(r),o!==void 0&&e.setWorkerCount(o),s!==void 0&&e.setWorkerUrl(s)}const dn=X.createContext(null);function Wu(e,t){const n=b.useContext(Au),[r,o]=b.useState(null),s=b.useRef(),{current:i}=b.useRef({mapLib:null,map:null});b.useEffect(()=>{const u=e.mapLib;let p=!0,f;return Promise.resolve(u||import("maplibre-gl")).then(h=>{if(!p)return;if(!h)throw new Error("Invalid mapLib");const v="Map"in h?h:h.default;if(!v.Map)throw new Error("Invalid mapLib");qu(v,e),e.reuseMaps&&(f=cn.reuse(e,s.current)),f||(f=new cn(v.Map,e,s.current)),i.map=Bu(f),i.mapLib=v,o(f),n==null||n.onMapMount(i.map,e.id)}).catch(h=>{const{onError:v}=e;v?v({type:"error",target:null,originalEvent:null,error:h}):console.error(h)}),()=>{p=!1,f&&(n==null||n.onMapUnmount(e.id),e.reuseMaps?f.recycle():f.destroy())}},[]),Vu(()=>{r&&r.setProps(e)}),b.useImperativeHandle(t,()=>i.map,[r]);const l=b.useMemo(()=>({position:"relative",width:"100%",height:"100%",...e.style}),[e.style]),c={height:"100%"};return X.createElement("div",{id:e.id,ref:s,style:l},r&&X.createElement(dn.Provider,{value:i},X.createElement("div",{"mapboxgl-children":"",style:c},e.children)))}const Hu=X.forwardRef(Wu),Ku=/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)&&!Ku.test(r)?n[r]=`${o}px`:n[r]=o}}function Di(e,t){if(e===t)return null;const n=bs(e),r=bs(t),o=[];for(const s of r)n.has(s)||o.push(s);for(const s of n)r.has(s)||o.push(s);return o.length===0?null:o}function bs(e){return new Set(e?e.trim().split(/\s+/):[])}b.memo(b.forwardRef((e,t)=>{const{map:n,mapLib:r}=b.useContext(dn),o=b.useRef({props:e}),s=b.useMemo(()=>{let S=!1;X.Children.forEach(e.children,k=>{k&&(S=!0)});const R={...e,element:S?document.createElement("div"):void 0},j=new r.Marker(R);return j.setLngLat([e.longitude,e.latitude]),j.getElement().addEventListener("click",k=>{var _,F;(F=(_=o.current.props).onClick)==null||F.call(_,{type:"click",target:j,originalEvent:k})}),j.on("dragstart",k=>{var F,y;const _=k;_.lngLat=s.getLngLat(),(y=(F=o.current.props).onDragStart)==null||y.call(F,_)}),j.on("drag",k=>{var F,y;const _=k;_.lngLat=s.getLngLat(),(y=(F=o.current.props).onDrag)==null||y.call(F,_)}),j.on("dragend",k=>{var F,y;const _=k;_.lngLat=s.getLngLat(),(y=(F=o.current.props).onDragEnd)==null||y.call(F,_)}),j},[]);b.useEffect(()=>(s.addTo(n.getMap()),()=>{s.remove()}),[]);const{longitude:i,latitude:l,offset:c,style:u,draggable:p=!1,popup:f=null,rotation:h=0,rotationAlignment:v="auto",pitchAlignment:x="auto"}=e;b.useEffect(()=>{bt(s.getElement(),u)},[u]),b.useImperativeHandle(t,()=>s,[]);const d=o.current.props;(s.getLngLat().lng!==i||s.getLngLat().lat!==l)&&s.setLngLat([i,l]),c&&!Nu(s.getOffset(),c)&&s.setOffset(c),s.isDraggable()!==p&&s.setDraggable(p),s.getRotation()!==h&&s.setRotation(h),s.getRotationAlignment()!==v&&s.setRotationAlignment(v),s.getPitchAlignment()!==x&&s.setPitchAlignment(x),s.getPopup()!==f&&s.setPopup(f);const C=Di(d.className,e.className);if(C)for(const S of C)s.toggleClassName(S);return o.current.props=e,mr.createPortal(e.children,s.getElement())}));const Yu=b.memo(b.forwardRef((e,t)=>{const{map:n,mapLib:r}=b.useContext(dn),o=b.useMemo(()=>document.createElement("div"),[]),s=b.useRef({props:e}),i=b.useMemo(()=>{const l={...e},c=new r.Popup(l);return c.setLngLat([e.longitude,e.latitude]),c.once("open",u=>{var p,f;(f=(p=s.current.props).onOpen)==null||f.call(p,u)}),c},[]);if(b.useEffect(()=>{const l=c=>{var u,p;(p=(u=s.current.props).onClose)==null||p.call(u,c)};return i.on("close",l),i.setDOMContent(o).addTo(n.getMap()),()=>{i.off("close",l),i.isOpen()&&i.remove()}},[]),b.useEffect(()=>{bt(i.getElement(),e.style)},[e.style]),b.useImperativeHandle(t,()=>i,[]),i.isOpen()){const l=s.current.props;(i.getLngLat().lng!==e.longitude||i.getLngLat().lat!==e.latitude)&&i.setLngLat([e.longitude,e.latitude]),e.offset&&!Ze(l.offset,e.offset)&&i.setOffset(e.offset),(l.anchor!==e.anchor||l.maxWidth!==e.maxWidth)&&(i.options.anchor=e.anchor,i.setMaxWidth(e.maxWidth));const c=Di(l.className,e.className);if(c)for(const u of c)i.toggleClassName(u);s.current.props=e}return mr.createPortal(e.children,o)}));function Dt(e,t,n,r){const o=b.useContext(dn),s=b.useMemo(()=>e(o),[]);return b.useEffect(()=>{const i=t,l=typeof t=="function"?t:null,{map:c}=o;return c.hasControl(s)||c.addControl(s,i==null?void 0:i.position),()=>{l&&l(o),c.hasControl(s)&&c.removeControl(s)}},[]),s}function Zu(e){const t=Dt(({mapLib:n})=>new n.AttributionControl(e),{position:e.position});return b.useEffect(()=>{bt(t._container,e.style)},[e.style]),null}b.memo(Zu);function Gu(e){const t=Dt(({mapLib:n})=>new n.FullscreenControl({container:e.containerId&&document.getElementById(e.containerId)}),{position:e.position});return b.useEffect(()=>{bt(t._controlContainer,e.style)},[e.style]),null}b.memo(Gu);function Ju(e,t){const n=b.useRef({props:e}),r=Dt(({mapLib:o})=>{const s=new o.GeolocateControl(e),i=s._setupUI;return s._setupUI=()=>{s._container.hasChildNodes()||i()},s.on("geolocate",l=>{var c,u;(u=(c=n.current.props).onGeolocate)==null||u.call(c,l)}),s.on("error",l=>{var c,u;(u=(c=n.current.props).onError)==null||u.call(c,l)}),s.on("outofmaxbounds",l=>{var c,u;(u=(c=n.current.props).onOutOfMaxBounds)==null||u.call(c,l)}),s.on("trackuserlocationstart",l=>{var c,u;(u=(c=n.current.props).onTrackUserLocationStart)==null||u.call(c,l)}),s.on("trackuserlocationend",l=>{var c,u;(u=(c=n.current.props).onTrackUserLocationEnd)==null||u.call(c,l)}),s},{position:e.position});return n.current.props=e,b.useImperativeHandle(t,()=>r,[]),b.useEffect(()=>{bt(r._container,e.style)},[e.style]),null}b.memo(b.forwardRef(Ju));function Xu(e){const t=Dt(({mapLib:n})=>new n.NavigationControl(e),{position:e.position});return b.useEffect(()=>{bt(t._container,e.style)},[e.style]),null}const Qu=b.memo(Xu);function ef(e){const t=Dt(({mapLib:s})=>new s.ScaleControl(e),{position:e.position}),n=b.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),b.useEffect(()=>{bt(t._container,o)},[o]),null}b.memo(ef);function tf(e){const t=Dt(({mapLib:n})=>new n.TerrainControl(e),{position:e.position});return b.useEffect(()=>{bt(t._container,e.style)},[e.style]),null}b.memo(tf);function nf(e){const t=Dt(({mapLib:n})=>new n.LogoControl(e),{position:e.position});return b.useEffect(()=>{bt(t._container,e.style)},[e.style]),null}b.memo(nf);function fr(e,t){if(!e)throw new Error(t)}let rf=0;function of(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 sf(e,t,n){var i,l,c;fr(t.id===n.id,"source id changed"),fr(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 s=t.type;if(s==="geojson")e.setData(t.data);else if(s==="image")e.updateImage({url:t.url,coordinates:t.coordinates});else switch(r){case"coordinates":(i=e.setCoordinates)==null||i.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 af(e){const t=b.useContext(dn).map.getMap(),n=b.useRef(e),[,r]=b.useState(0),o=b.useMemo(()=>e.id||`jsx-source-${rf++}`,[]);b.useEffect(()=>{if(t){const i=()=>setTimeout(()=>r(l=>l+1),0);return t.on("styledata",i),i(),()=>{var l;if(t.off("styledata",i),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 s=t&&t.style&&t.getSource(o);return s?sf(s,e,n.current):s=of(t,o,e),n.current=e,s&&X.Children.map(e.children,i=>i&&b.cloneElement(i,{source:o}))||null}function lf(e,t,n,r){if(fr(n.id===r.id,"layer id changed"),fr(n.type===r.type,"layer type changed"),n.type==="custom"||r.type==="custom")return;const{layout:o={},paint:s={},filter:i,minzoom:l,maxzoom:c,beforeId:u}=n;if(u!==r.beforeId&&e.moveLayer(t,u),o!==r.layout){const p=r.layout||{};for(const f in o)Ze(o[f],p[f])||e.setLayoutProperty(t,f,o[f]);for(const f in p)o.hasOwnProperty(f)||e.setLayoutProperty(t,f,void 0)}if(s!==r.paint){const p=r.paint||{};for(const f in s)Ze(s[f],p[f])||e.setPaintProperty(t,f,s[f]);for(const f in p)s.hasOwnProperty(f)||e.setPaintProperty(t,f,void 0)}Ze(i,r.filter)||e.setFilter(t,i),(l!==r.minzoom||c!==r.maxzoom)&&e.setLayerZoomRange(t,l,c)}function cf(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 uf=0;function ff(e){const t=b.useContext(dn).map.getMap(),n=b.useRef(e),[,r]=b.useState(0),o=b.useMemo(()=>e.id||`jsx-layer-${uf++}`,[]);if(b.useEffect(()=>{if(t){const i=()=>r(l=>l+1);return t.on("styledata",i),i(),()=>{t.off("styledata",i),t.style&&t.style._loaded&&t.getLayer(o)&&t.removeLayer(o)}}},[t]),t&&t.style&&t.getLayer(o))try{lf(t,o,e,n.current)}catch(i){console.warn(i)}else cf(t,o,e);return n.current=e,null}const df="_mapContainer_ivruh_3",pf={mapContainer:df},hf="_FeaturePopUp_1gd6w_2",mf="_title_1gd6w_2",xs={FeaturePopUp:hf,title:mf},gf=({props:e})=>{const{t}=Te.useTranslation();return m.jsx("div",{className:xs.FeaturePopUp,children:e.map(n=>m.jsxs("p",{children:[m.jsxs("span",{className:xs.title,children:[m.jsx(Te.Trans,{i18nKey:n.name,components:{sup:m.jsx("sup",{})}}),": "]}),n.value.toLocaleString("de",{maximumFractionDigits:2})," ",t(n.unit)]}))})},Fi=({initialView:e={latitude:39.4699,longitude:-.3763,zoom:12},maxZoom:t=17,minZoom:n=8,mapStyle:r,firstSymbolLayer:o,cssProps:s={},onClick:i="",interactiveLayers:l=[],sources:c=[],layers:u=[],filters:p,popUpParams:f,onClosePopUp:h,showTexts:v})=>{console.log(p);const x=b.useRef();return b.useEffect(()=>{if(x.current){const d=x.current.getMap();d.getStyle().layers.map(S=>{S.type=="symbol"&&S.id!="professionals"&&(v?d.setLayoutProperty(S.id,"visibility","visible"):d.setLayoutProperty(S.id,"visibility","none"))})}},[v]),b.useEffect(()=>{let d=new wu;return Ao.addProtocol("pmtiles",d.tile),()=>{Ao.removeProtocol("pmtiles")}},[]),m.jsx("div",{className:`${pf.mapContainer}`,style:s&&s,children:m.jsxs(Hu,{initialViewState:e,ref:x,hash:!1,maxZoom:t,minZoom:n,mapStyle:r,onClick:i,interactiveLayerIds:l,children:[c.length&&c.map((d,C)=>m.jsx(af,{...d,children:u.length&&u.map((S,R)=>{if(S.sourceId==d.id)return m.jsx(ff,{...S.layer,beforeId:o,filter:p&&p},R)})},C)),m.jsx(Qu,{position:"bottom-right",visualizePitch:!0}),f&&m.jsx(Yu,{longitude:f.lng,latitude:f.lat,onClose:h,children:m.jsx(gf,{props:f.props})})]})})};Fi.propTypes={initialView:a.shape({latitude:a.number.isRequired,longitude:a.number.isRequired,zoom:a.number.isRequired}),mapStyle:a.string,firstSymbolLayer:a.string,cssProps:a.object,style:a.object,maxZoom:a.number,minZoom:a.number,onClick:a.func,interactiveLayers:a.array,popUp:a.bool,sources:a.arrayOf(a.shape({id:a.string,type:a.string,url:a.string,data:a.object})),layers:a.arrayOf(a.shape({sourceId:a.string,layer:a.shape({id:a.string,type:a.string,sourceLayer:a.string,minZoom:a.number,maxZoom:a.number,paint:a.object})})),showTexts:a.bool,filters:a.array,popUpParams:a.object,onClosePopUp:a.func};const yf="_sectionBar_2vnc3_2",vf="_leftContent_2vnc3_13",bf="_textContainer_2vnc3_19",xf="_title_2vnc3_26",_f="_subtitle_2vnc3_32",Cf="_rightContent_2vnc3_37",At={sectionBar:yf,leftContent:vf,textContainer:bf,title:xf,subtitle:_f,rightContent:Cf},zi=({leftIcon:e,title:t,subtitle:n,rightContent:r,mainColor:o})=>{const{t:s}=Te.useTranslation();return m.jsxs("div",{className:At.sectionBar,children:[m.jsxs("div",{className:At.leftContent,children:[e&&m.jsx("img",{src:e,alt:"Icono",className:At.icon}),m.jsxs("div",{className:At.textContainer,children:[m.jsx("div",{className:At.title,style:o?{color:o}:{},children:s(t)}),n&&m.jsx("div",{className:At.subtitle,children:n})]})]}),m.jsx("div",{className:At.rightContent,children:r})]})};zi.propTypes={leftIcon:a.node.isRequired,title:a.string.isRequired,subtitle:a.string,rightContent:a.node.isRequired,mainColor:a.string};const Sf=Ys.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:Cm,setYear:Zr,setActiveIndicatorKey:Sm,setActiveIndicatorType:Tm,setActiveIndicatorUnit:wm}=Sf.actions,Tf="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",wf="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 xt(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 Bi(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=Bi(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Et(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Bi(e))&&(r&&(r+=" "),r+=t);return r}function _s(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||t(...r)}}function Ef(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((s,i)=>{if(i){const l=t(i);l!==""&&s.push(l),n&&n[i]&&s.push(n[i])}return s},[]).join(" ")}),r}var je={},Gr={exports:{}},Cs;function Ui(){return Cs||(Cs=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 Pn(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 kf=Object.freeze(Object.defineProperty({__proto__:null,default:Pn},Symbol.toStringTag,{value:"Module"})),Rf=kt(kf);function nn(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const Of=Object.freeze(Object.defineProperty({__proto__:null,default:nn},Symbol.toStringTag,{value:"Module"})),jf=kt(Of);var Ss;function $f(){if(Ss)return je;Ss=1;var e=Ui();Object.defineProperty(je,"__esModule",{value:!0}),je.alpha=x,je.blend=F,je.colorChannel=void 0,je.darken=C,je.decomposeColor=i,je.emphasize=k,je.getContrastRatio=v,je.getLuminance=h,je.hexToRgb=o,je.hslToRgb=f,je.lighten=R,je.private_safeAlpha=d,je.private_safeColorChannel=void 0,je.private_safeDarken=S,je.private_safeEmphasize=_,je.private_safeLighten=j,je.recomposeColor=u,je.rgbToHex=p;var t=e(Rf),n=e(jf);function r(y,w=0,T=1){return process.env.NODE_ENV!=="production"&&(y<w||y>T)&&console.error(`MUI: The value provided ${y} is out of range [${w}, ${T}].`),(0,n.default)(y,w,T)}function o(y){y=y.slice(1);const w=new RegExp(`.{1,${y.length>=6?2:1}}`,"g");let T=y.match(w);return T&&T[0].length===1&&(T=T.map($=>$+$)),T?`rgb${T.length===4?"a":""}(${T.map(($,N)=>N<3?parseInt($,16):Math.round(parseInt($,16)/255*1e3)/1e3).join(", ")})`:""}function s(y){const w=y.toString(16);return w.length===1?`0${w}`:w}function i(y){if(y.type)return y;if(y.charAt(0)==="#")return i(o(y));const w=y.indexOf("("),T=y.substring(0,w);if(["rgb","rgba","hsl","hsla","color"].indexOf(T)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${y}\` color.
|
|
52
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,t.default)(9,y));let $=y.substring(w+1,y.length-1),N;if(T==="color"){if($=$.split(" "),N=$.shift(),$.length===4&&$[3].charAt(0)==="/"&&($[3]=$[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 $=$.split(",");return $=$.map(H=>parseFloat(H)),{type:T,values:$,colorSpace:N}}const l=y=>{const w=i(y);return w.values.slice(0,3).map((T,$)=>w.type.indexOf("hsl")!==-1&&$!==0?`${T}%`:T).join(" ")};je.colorChannel=l;const c=(y,w)=>{try{return l(y)}catch{return w&&process.env.NODE_ENV!=="production"&&console.warn(w),y}};je.private_safeColorChannel=c;function u(y){const{type:w,colorSpace:T}=y;let{values:$}=y;return w.indexOf("rgb")!==-1?$=$.map((N,H)=>H<3?parseInt(N,10):N):w.indexOf("hsl")!==-1&&($[1]=`${$[1]}%`,$[2]=`${$[2]}%`),w.indexOf("color")!==-1?$=`${T} ${$.join(" ")}`:$=`${$.join(", ")}`,`${w}(${$})`}function p(y){if(y.indexOf("#")===0)return y;const{values:w}=i(y);return`#${w.map((T,$)=>s($===3?Math.round(255*T):T)).join("")}`}function f(y){y=i(y);const{values:w}=y,T=w[0],$=w[1]/100,N=w[2]/100,H=$*Math.min(N,1-N),U=(se,re=(se+T/30)%12)=>N-H*Math.max(Math.min(re-3,9-re,1),-1);let ce="rgb";const K=[Math.round(U(0)*255),Math.round(U(8)*255),Math.round(U(4)*255)];return y.type==="hsla"&&(ce+="a",K.push(w[3])),u({type:ce,values:K})}function h(y){y=i(y);let w=y.type==="hsl"||y.type==="hsla"?i(f(y)).values:y.values;return w=w.map(T=>(y.type!=="color"&&(T/=255),T<=.03928?T/12.92:((T+.055)/1.055)**2.4)),Number((.2126*w[0]+.7152*w[1]+.0722*w[2]).toFixed(3))}function v(y,w){const T=h(y),$=h(w);return(Math.max(T,$)+.05)/(Math.min(T,$)+.05)}function x(y,w){return y=i(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 d(y,w,T){try{return x(y,w)}catch{return T&&process.env.NODE_ENV!=="production"&&console.warn(T),y}}function C(y,w){if(y=i(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 T=0;T<3;T+=1)y.values[T]*=1-w;return u(y)}function S(y,w,T){try{return C(y,w)}catch{return T&&process.env.NODE_ENV!=="production"&&console.warn(T),y}}function R(y,w){if(y=i(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 T=0;T<3;T+=1)y.values[T]+=(255-y.values[T])*w;else if(y.type.indexOf("color")!==-1)for(let T=0;T<3;T+=1)y.values[T]+=(1-y.values[T])*w;return u(y)}function j(y,w,T){try{return R(y,w)}catch{return T&&process.env.NODE_ENV!=="production"&&console.warn(T),y}}function k(y,w=.15){return h(y)>.5?C(y,w):R(y,w)}function _(y,w,T){try{return k(y,w)}catch{return T&&process.env.NODE_ENV!=="production"&&console.warn(T),y}}function F(y,w,T,$=1){const N=(K,se)=>Math.round((K**(1/$)*(1-T)+se**(1/$)*T)**$),H=i(y),U=i(w),ce=[N(H.values[0],U.values[0]),N(H.values[1],U.values[1]),N(H.values[2],U.values[2])];return u({type:"rgb",values:ce})}return je}var ht=$f();const Pf=X.createContext();process.env.NODE_ENV!=="production"&&(a.node,a.bool);const Mf=()=>{const e=X.useContext(Pf);return e??!1};function Lf(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=>{Lf(n,t)})},e)}function jn(e){return typeof e=="string"}function Af(e,t,n){return e===void 0||jn(e)?t:B({},t,{ownerState:B({},t.ownerState,n)})}function sr(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 Ts(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 Nf(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:s}=e;if(!t){const v=Et(n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),x=B({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),d=B({},n,o,r);return v.length>0&&(d.className=v),Object.keys(x).length>0&&(d.style=x),{props:d,internalRef:void 0}}const i=sr(B({},o,r)),l=Ts(r),c=Ts(o),u=t(i),p=Et(u==null?void 0:u.className,n==null?void 0:n.className,s,o==null?void 0:o.className,r==null?void 0:r.className),f=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),h=B({},u,n,c,l);return p.length>0&&(h.className=p),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:u.ref}}function If(e,t,n){return typeof e=="function"?e(t,n):e}const Df=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Tt(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:s=!1}=e,i=xt(e,Df),l=s?{}:If(r,o),{props:c,internalRef:u}=Nf(B({},i,{externalSlotProps:l})),p=lo(u,l==null?void 0:l.ref,(t=e.additionalProps)==null?void 0:t.ref);return Af(n,B({},c,{ref:p}),o)}function wt(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 Vi(e){if(X.isValidElement(e)||!wt(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Vi(e[n])}),t}function mt(e,t,n={clone:!0}){const r=n.clone?B({},e):e;return wt(e)&&wt(t)&&Object.keys(t).forEach(o=>{X.isValidElement(t[o])?r[o]=t[o]:wt(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&wt(e[o])?r[o]=mt(e[o],t[o],n):n.clone?r[o]=wt(t[o])?Vi(t[o]):t[o]:r[o]=t[o]}),r}const Ff=Object.freeze(Object.defineProperty({__proto__:null,default:mt,isPlainObject:wt},Symbol.toStringTag,{value:"Module"}));var Jn={exports:{}},_e={};/**
|
|
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
|
|
61
|
+
*/var ws;function zf(){if(ws)return _e;ws=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"),s=Symbol.for("react.consumer"),i=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),h=Symbol.for("react.view_transition"),v=Symbol.for("react.client.reference");function x(d){if(typeof d=="object"&&d!==null){var C=d.$$typeof;switch(C){case e:switch(d=d.type,d){case n:case o:case r:case c:case u:case h:return d;default:switch(d=d&&d.$$typeof,d){case i:case l:case f:case p:return d;case s:return d;default:return C}}case t:return C}}}return _e.ContextConsumer=s,_e.ContextProvider=i,_e.Element=e,_e.ForwardRef=l,_e.Fragment=n,_e.Lazy=f,_e.Memo=p,_e.Portal=t,_e.Profiler=o,_e.StrictMode=r,_e.Suspense=c,_e.SuspenseList=u,_e.isContextConsumer=function(d){return x(d)===s},_e.isContextProvider=function(d){return x(d)===i},_e.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===e},_e.isForwardRef=function(d){return x(d)===l},_e.isFragment=function(d){return x(d)===n},_e.isLazy=function(d){return x(d)===f},_e.isMemo=function(d){return x(d)===p},_e.isPortal=function(d){return x(d)===t},_e.isProfiler=function(d){return x(d)===o},_e.isStrictMode=function(d){return x(d)===r},_e.isSuspense=function(d){return x(d)===c},_e.isSuspenseList=function(d){return x(d)===u},_e.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===n||d===o||d===r||d===c||d===u||typeof d=="object"&&d!==null&&(d.$$typeof===f||d.$$typeof===p||d.$$typeof===i||d.$$typeof===s||d.$$typeof===l||d.$$typeof===v||d.getModuleId!==void 0)},_e.typeOf=x,_e}var Ce={};/**
|
|
62
62
|
* @license React
|
|
63
63
|
* react-is.development.js
|
|
64
64
|
*
|
|
@@ -66,21 +66,21 @@ 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
|
|
69
|
+
*/var Es;function Bf(){return Es||(Es=1,process.env.NODE_ENV!=="production"&&function(){function e(d){if(typeof d=="object"&&d!==null){var C=d.$$typeof;switch(C){case t:switch(d=d.type,d){case r:case s:case o:case u:case p:case v:return d;default:switch(d=d&&d.$$typeof,d){case l:case c:case h:case f:return d;case i:return d;default:return C}}case n:return C}}}var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),v=Symbol.for("react.view_transition"),x=Symbol.for("react.client.reference");Ce.ContextConsumer=i,Ce.ContextProvider=l,Ce.Element=t,Ce.ForwardRef=c,Ce.Fragment=r,Ce.Lazy=h,Ce.Memo=f,Ce.Portal=n,Ce.Profiler=s,Ce.StrictMode=o,Ce.Suspense=u,Ce.SuspenseList=p,Ce.isContextConsumer=function(d){return e(d)===i},Ce.isContextProvider=function(d){return e(d)===l},Ce.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===t},Ce.isForwardRef=function(d){return e(d)===c},Ce.isFragment=function(d){return e(d)===r},Ce.isLazy=function(d){return e(d)===h},Ce.isMemo=function(d){return e(d)===f},Ce.isPortal=function(d){return e(d)===n},Ce.isProfiler=function(d){return e(d)===s},Ce.isStrictMode=function(d){return e(d)===o},Ce.isSuspense=function(d){return e(d)===u},Ce.isSuspenseList=function(d){return e(d)===p},Ce.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===r||d===s||d===o||d===u||d===p||typeof d=="object"&&d!==null&&(d.$$typeof===h||d.$$typeof===f||d.$$typeof===l||d.$$typeof===i||d.$$typeof===c||d.$$typeof===x||d.getModuleId!==void 0)},Ce.typeOf=e}()),Ce}var ks;function Uf(){return ks||(ks=1,process.env.NODE_ENV==="production"?Jn.exports=zf():Jn.exports=Bf()),Jn.exports}var Rs=Uf();const Vf=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function qi(e){const t=`${e}`.match(Vf);return t&&t[1]||""}function Wi(e,t=""){return e.displayName||e.name||qi(e)||t}function Os(e,t,n){const r=Wi(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function qf(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Wi(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Rs.ForwardRef:return Os(e,e.render,"ForwardRef");case Rs.Memo:return Os(e,e.type,"memo");default:return}}}const Wf=Object.freeze(Object.defineProperty({__proto__:null,default:qf,getFunctionName:qi},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.":Pn(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Hf=Object.freeze(Object.defineProperty({__proto__:null,default:ut},Symbol.toStringTag,{value:"Module"}));function ir(e){return e&&e.ownerDocument||document}const Hi=typeof window<"u"?X.useLayoutEffect:X.useEffect;function Kf({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=X.useRef(e!==void 0),[s,i]=X.useState(t),l=o?e:s;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 Wa(()=>{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 Hd=new To,Yd={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 Kd(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Yd[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Zd(e){e.metaKey||e.altKey||e.ctrlKey||(yr=!0)}function Xr(){yr=!1}function Gd(){this.visibilityState==="hidden"&&co&&(yr=!0)}function Jd(e){e.addEventListener("keydown",Zd,!0),e.addEventListener("mousedown",Xr,!0),e.addEventListener("pointerdown",Xr,!0),e.addEventListener("touchstart",Xr,!0),e.addEventListener("visibilitychange",Gd,!0)}function Xd(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return yr||Kd(t)}function Qd(){const e=X.useCallback(o=>{o!=null&&Jd(o.ownerDocument)},[]),t=X.useRef(!1);function n(){return t.current?(co=!0,Hd.start(100,()=>{co=!1}),t.current=!1,!0):!1}function r(o){return Xd(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}const ef={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=z({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=z({},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]=z({},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,tf=()=>{let e=Ai;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ai}}},nf=tf(),rf={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=rf[t];return r?`${n}-${r}`:`${nf.generate(e)}-${t}`}function of(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=wo(e,o,n)}),r}function af(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const sf=2;function Ha(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 lf(e,t,n){return(n-t)*e+t}function cf(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 uf(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(cf(t)))}function $i({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(Ha)}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"?af(e,t):!1}const df={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}%`})}},ff=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 mf(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:f,orientation:p="horizontal",rootRef:v,scale:_=ff,step:d=1,shiftStep:x=10,tabIndex:E,value:R}=e,A=X.useRef(void 0),[O,C]=X.useState(-1),[F,y]=X.useState(-1),[T,S]=X.useState(!1),P=X.useRef(0),[N,H]=Wd({controlled:R,default:n??c,name:"Slider"}),V=m&&((j,D,W)=>{const fe=j.nativeEvent||j,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(Ha):[N];Y=Y.map(j=>j==null?c:nn(j,c,l));const ie=a===!0&&d!==null?[...Array(Math.floor((l-c)/d)+1)].map((j,D)=>({value:c+d*D})):a||[],re=ie.map(j=>j.value),{isFocusVisibleRef:we,onBlur:Pe,onFocus:k,ref:M}=Qd(),[Q,q]=X.useState(-1),B=X.useRef(null),ee=lo(M,B),Z=lo(v,ee),K=j=>D=>{var W;const fe=Number(D.currentTarget.getAttribute("data-index"));k(D),we.current===!0&&q(fe),y(fe),j==null||(W=j.onFocus)==null||W.call(j,D)},U=j=>D=>{var W;Pe(D),we.current===!1&&q(-1),y(-1),j==null||(W=j.onBlur)==null||W.call(j,D)},G=(j,D)=>{const W=Number(j.currentTarget.getAttribute("data-index")),fe=Y[W],me=re.indexOf(fe);let de=D;if(ie&&d==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=$i({values:Y,newValue:de,index:W});let rt=W;o||(rt=de.indexOf(Je)),Qn({sliderRef:B,activeIndex:rt})}H(de),q(W),V&&!er(de,N)&&V(j,de,W),f&&f(j,de)},ne=j=>D=>{var W;if(d!==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())}j==null||(W=j.onKeyDown)==null||W.call(j,D)};Wa(()=>{if(r&&B.current.contains(document.activeElement)){var j;(j=document.activeElement)==null||j.blur()}},[r]),r&&O!==-1&&C(-1),r&&Q!==-1&&q(-1);const be=j=>D=>{var W;(W=j.onChange)==null||W.call(j,D),G(D,D.target.valueAsNumber)},$=X.useRef(void 0);let _e=p;i&&p==="horizontal"&&(_e+="-reverse");const ae=({finger:j,move:D=!1})=>{const{current:W}=B,{width:fe,height:me,bottom:de,left:Je}=W.getBoundingClientRect();let rt;_e.indexOf("vertical")===0?rt=(de-j.y)/me:rt=(j.x-Je)/fe,_e.indexOf("-reverse")!==-1&&(rt=1-rt);let pe;if(pe=lf(rt,c,l),d)pe=uf(pe,d,c);else{const ft=Pi(re,pe);pe=re[ft]}pe=nn(pe,c,l);let Ye=0;if(ce){D?Ye=$.current:Ye=Pi(Y,pe),o&&(pe=nn(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),$.current=Ye)}return{newValue:pe,activeIndex:Ye}},se=Jr(j=>{const D=Xn(j,A);if(!D)return;if(P.current+=1,j.type==="mousemove"&&j.buttons===0){Re(j);return}const{newValue:W,activeIndex:fe}=ae({finger:D,move:!0});Qn({sliderRef:B,activeIndex:fe,setActive:C}),H(W),!T&&P.current>sf&&S(!0),V&&!er(W,N)&&V(j,W,fe)}),Re=Jr(j=>{const D=Xn(j,A);if(S(!1),!D)return;const{newValue:W}=ae({finger:D,move:!0});C(-1),j.type==="touchend"&&y(-1),f&&f(j,W),A.current=void 0,qe()}),Ue=Jr(j=>{if(r)return;ji()||j.preventDefault();const D=j.changedTouches[0];D!=null&&(A.current=D.identifier);const W=Xn(j,A);if(W!==!1){const{newValue:me,activeIndex:de}=ae({finger:W});Qn({sliderRef:B,activeIndex:de,setActive:C}),H(me),V&&!er(me,N)&&V(j,me,de)}P.current=0;const fe=ar(B.current);fe.addEventListener("touchmove",se,{passive:!0}),fe.addEventListener("touchend",Re,{passive:!0})}),qe=X.useCallback(()=>{const j=ar(B.current);j.removeEventListener("mousemove",se),j.removeEventListener("mouseup",Re),j.removeEventListener("touchmove",se),j.removeEventListener("touchend",Re)},[Re,se]);X.useEffect(()=>{const{current:j}=B;return j.addEventListener("touchstart",Ue,{passive:ji()}),()=>{j.removeEventListener("touchstart",Ue),qe()}},[qe,Ue]),X.useEffect(()=>{r&&qe()},[r,qe]);const dt=j=>D=>{var W;if((W=j.onMouseDown)==null||W.call(j,D),r||D.defaultPrevented||D.button!==0)return;D.preventDefault();const fe=Xn(D,A);if(fe!==!1){const{newValue:de,activeIndex:Je}=ae({finger:fe});Qn({sliderRef:B,activeIndex:Je,setActive:C}),H(de),V&&!er(de,N)&&V(D,de,Je)}P.current=0;const me=ar(B.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,At=(j={})=>{const D=ir(j),W={onMouseDown:dt(D||{})},fe=z({},D,W);return z({},j,{ref:Z},fe)},pn=j=>D=>{var W;(W=j.onMouseOver)==null||W.call(j,D);const fe=Number(D.currentTarget.getAttribute("data-index"));y(fe)},hn=j=>D=>{var W;(W=j.onMouseLeave)==null||W.call(j,D),y(-1)};return{active:O,axis:_e,axisProps:df,dragging:T,focusedThumbIndex:Q,getHiddenInputProps:(j={})=>{var D;const W=ir(j),fe={onChange:be(W||{}),onFocus:K(W||{}),onBlur:U(W||{}),onKeyDown:ne(W||{})},me=z({},W,fe);return z({tabIndex:E,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":_(l),"aria-valuemin":_(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},j,me,{style:z({},ef,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:At,getThumbProps:(j={})=>{const D=ir(j),W={onMouseOver:pn(D||{}),onMouseLeave:hn(D||{})};return z({},j,D,W)},marks:ie,open:F,range:ce,rootRef:Z,trackLeap:Ct,trackOffset:De,values:Y,getThumbStyle:j=>({pointerEvents:O!==-1&&O!==j?"none":void 0})}}const pf=["values","unit","step"],hf=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)=>z({},n,{[r.key]:r.val}),{})};function Ya(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=_t(e,pf),i=hf(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,v){const _=a.indexOf(v);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(_!==-1&&typeof t[a[_]]=="number"?t[a[_]]:v)-r/100}${n})`}function m(p){return a.indexOf(p)+1<a.length?u(p,a[a.indexOf(p)+1]):l(p)}function f(p){const v=a.indexOf(p);return v===0?l(a[1]):v===a.length-1?c(a[v]):u(p,a[a.indexOf(p)+1]).replace("@media","@media not all and")}return z({keys:a,values:i,up:l,down:c,between:u,only:m,not:f,unit:n},o)}const gf={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},Mi={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||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||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 yf(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function vf(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,f=>{let p=mr(u,o,f);return f===p&&typeof f=="string"&&(p=mr(u,o,`${t}${f==="default"?"":ut(f)}`,f)),n===!1?p:{[n]:p}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Rt}:{},i.filterProps=[t],i}function bf(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const _f={m:"margin",p:"padding"},Cf={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Li={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},xf=bf(e=>{if(e.length>2)if(Li[e])e=Li[e];else return[e];const[t,n]=e.split(""),r=_f[t],o=Cf[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"],Ef=[...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||i(u)},[]);return[l,c]}function Jr(e){const t=X.useRef(e);return Hi(()=>{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 Yf=new wo,Zf={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 Gf(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Zf[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Jf(e){e.metaKey||e.altKey||e.ctrlKey||(yr=!0)}function Xr(){yr=!1}function Xf(){this.visibilityState==="hidden"&&co&&(yr=!0)}function Qf(e){e.addEventListener("keydown",Jf,!0),e.addEventListener("mousedown",Xr,!0),e.addEventListener("pointerdown",Xr,!0),e.addEventListener("touchstart",Xr,!0),e.addEventListener("visibilitychange",Xf,!0)}function ed(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return yr||Gf(t)}function td(){const e=X.useCallback(o=>{o!=null&&Qf(o.ownerDocument)},[]),t=X.useRef(!1);function n(){return t.current?(co=!0,Yf.start(100,()=>{co=!1}),t.current=!1,!0):!1}function r(o){return ed(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}const nd={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]||{},s=t[r];n[r]={},!s||!Object.keys(s)?n[r]=o:!o||!Object.keys(o)?n[r]=s:(n[r]=B({},s),Object.keys(o).forEach(i=>{n[r][i]=uo(o[i],s[i])}))}else n[r]===void 0&&(n[r]=e[r])}),n}const js=e=>e,rd=()=>{let e=js;return{configure(t){e=t},generate(t){return e(t)},reset(){e=js}}},od=rd(),sd={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 Eo(e,t,n="Mui"){const r=sd[t];return r?`${n}-${r}`:`${od.generate(e)}-${t}`}function id(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=Eo(e,o,n)}),r}function ad(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}const ld=2;function Ki(e,t){return e-t}function $s(e,t){var n;const{index:r}=(n=e.reduce((o,s,i)=>{const l=Math.abs(t-s);return o===null||l<o.distance||l===o.distance?{distance:l,index:i}: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 dr(e,t,n){return(e-t)*100/(n-t)}function cd(e,t,n){return(n-t)*e+t}function ud(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 fd(e,t,n){const r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(ud(t)))}function Ps({values:e,newValue:t,index:n}){const r=e.slice();return r[n]=t,r.sort(Ki)}function Qn({sliderRef:e,activeIndex:t,setActive:n}){var r,o;const s=ir(e.current);if(!((r=e.current)!=null&&r.contains(s.activeElement))||Number(s==null||(o=s.activeElement)==null?void 0:o.getAttribute("data-index"))!==t){var i;(i=e.current)==null||i.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"?ad(e,t):!1}const dd={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}%`})}},pd=e=>e;let tr;function Ms(){return tr===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?tr=CSS.supports("touch-action","none"):tr=!0),tr}function hd(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:s=!1,marks:i=!1,max:l=100,min:c=0,name:u,onChange:p,onChangeCommitted:f,orientation:h="horizontal",rootRef:v,scale:x=pd,step:d=1,shiftStep:C=10,tabIndex:S,value:R}=e,j=X.useRef(void 0),[k,_]=X.useState(-1),[F,y]=X.useState(-1),[w,T]=X.useState(!1),$=X.useRef(0),[N,H]=Kf({controlled:R,default:n??c,name:"Slider"}),U=p&&((M,D,W)=>{const de=M.nativeEvent||M,pe=new de.constructor(de.type,de);Object.defineProperty(pe,"target",{writable:!0,value:{value:D,name:u}}),p(pe,D,W)}),ce=Array.isArray(N);let K=ce?N.slice().sort(Ki):[N];K=K.map(M=>M==null?c:nn(M,c,l));const se=i===!0&&d!==null?[...Array(Math.floor((l-c)/d)+1)].map((M,D)=>({value:c+d*D})):i||[],re=se.map(M=>M.value),{isFocusVisibleRef:ke,onBlur:$e,onFocus:O,ref:A}=td(),[Q,q]=X.useState(-1),z=X.useRef(null),ee=lo(A,z),Z=lo(v,ee),Y=M=>D=>{var W;const de=Number(D.currentTarget.getAttribute("data-index"));O(D),ke.current===!0&&q(de),y(de),M==null||(W=M.onFocus)==null||W.call(M,D)},V=M=>D=>{var W;$e(D),ke.current===!1&&q(-1),y(-1),M==null||(W=M.onBlur)==null||W.call(M,D)},G=(M,D)=>{const W=Number(M.currentTarget.getAttribute("data-index")),de=K[W],pe=re.indexOf(de);let fe=D;if(se&&d==null){const Je=re[re.length-1];fe>Je?fe=Je:fe<re[0]?fe=re[0]:fe=fe<de?re[pe-1]:re[pe+1]}if(fe=nn(fe,c,l),ce){o&&(fe=nn(fe,K[W-1]||-1/0,K[W+1]||1/0));const Je=fe;fe=Ps({values:K,newValue:fe,index:W});let rt=W;o||(rt=fe.indexOf(Je)),Qn({sliderRef:z,activeIndex:rt})}H(fe),q(W),U&&!er(fe,N)&&U(M,fe,W),f&&f(M,fe)},ne=M=>D=>{var W;if(d!==null){const de=Number(D.currentTarget.getAttribute("data-index")),pe=K[de];let fe=null;(D.key==="ArrowLeft"||D.key==="ArrowDown")&&D.shiftKey||D.key==="PageDown"?fe=Math.max(pe-C,c):((D.key==="ArrowRight"||D.key==="ArrowUp")&&D.shiftKey||D.key==="PageUp")&&(fe=Math.min(pe+C,l)),fe!==null&&(G(D,fe),D.preventDefault())}M==null||(W=M.onKeyDown)==null||W.call(M,D)};Hi(()=>{if(r&&z.current.contains(document.activeElement)){var M;(M=document.activeElement)==null||M.blur()}},[r]),r&&k!==-1&&_(-1),r&&Q!==-1&&q(-1);const be=M=>D=>{var W;(W=M.onChange)==null||W.call(M,D),G(D,D.target.valueAsNumber)},P=X.useRef(void 0);let xe=h;s&&h==="horizontal"&&(xe+="-reverse");const ie=({finger:M,move:D=!1})=>{const{current:W}=z,{width:de,height:pe,bottom:fe,left:Je}=W.getBoundingClientRect();let rt;xe.indexOf("vertical")===0?rt=(fe-M.y)/pe:rt=(M.x-Je)/de,xe.indexOf("-reverse")!==-1&&(rt=1-rt);let he;if(he=cd(rt,c,l),d)he=fd(he,d,c);else{const dt=$s(re,he);he=re[dt]}he=nn(he,c,l);let Ke=0;if(ce){D?Ke=P.current:Ke=$s(K,he),o&&(he=nn(he,K[Ke-1]||-1/0,K[Ke+1]||1/0));const dt=he;he=Ps({values:K,newValue:he,index:Ke}),o&&D||(Ke=he.indexOf(dt),P.current=Ke)}return{newValue:he,activeIndex:Ke}},ae=Jr(M=>{const D=Xn(M,j);if(!D)return;if($.current+=1,M.type==="mousemove"&&M.buttons===0){Oe(M);return}const{newValue:W,activeIndex:de}=ie({finger:D,move:!0});Qn({sliderRef:z,activeIndex:de,setActive:_}),H(W),!w&&$.current>ld&&T(!0),U&&!er(W,N)&&U(M,W,de)}),Oe=Jr(M=>{const D=Xn(M,j);if(T(!1),!D)return;const{newValue:W}=ie({finger:D,move:!0});_(-1),M.type==="touchend"&&y(-1),f&&f(M,W),j.current=void 0,qe()}),Ve=Jr(M=>{if(r)return;Ms()||M.preventDefault();const D=M.changedTouches[0];D!=null&&(j.current=D.identifier);const W=Xn(M,j);if(W!==!1){const{newValue:pe,activeIndex:fe}=ie({finger:W});Qn({sliderRef:z,activeIndex:fe,setActive:_}),H(pe),U&&!er(pe,N)&&U(M,pe,fe)}$.current=0;const de=ir(z.current);de.addEventListener("touchmove",ae,{passive:!0}),de.addEventListener("touchend",Oe,{passive:!0})}),qe=X.useCallback(()=>{const M=ir(z.current);M.removeEventListener("mousemove",ae),M.removeEventListener("mouseup",Oe),M.removeEventListener("touchmove",ae),M.removeEventListener("touchend",Oe)},[Oe,ae]);X.useEffect(()=>{const{current:M}=z;return M.addEventListener("touchstart",Ve,{passive:Ms()}),()=>{M.removeEventListener("touchstart",Ve),qe()}},[qe,Ve]),X.useEffect(()=>{r&&qe()},[r,qe]);const ft=M=>D=>{var W;if((W=M.onMouseDown)==null||W.call(M,D),r||D.defaultPrevented||D.button!==0)return;D.preventDefault();const de=Xn(D,j);if(de!==!1){const{newValue:fe,activeIndex:Je}=ie({finger:de});Qn({sliderRef:z,activeIndex:Je,setActive:_}),H(fe),U&&!er(fe,N)&&U(D,fe,Je)}$.current=0;const pe=ir(z.current);pe.addEventListener("mousemove",ae,{passive:!0}),pe.addEventListener("mouseup",Oe)},De=dr(ce?K[0]:c,c,l),_t=dr(K[K.length-1],c,l)-De,jt=(M={})=>{const D=sr(M),W={onMouseDown:ft(D||{})},de=B({},D,W);return B({},M,{ref:Z},de)},hn=M=>D=>{var W;(W=M.onMouseOver)==null||W.call(M,D);const de=Number(D.currentTarget.getAttribute("data-index"));y(de)},mn=M=>D=>{var W;(W=M.onMouseLeave)==null||W.call(M,D),y(-1)};return{active:k,axis:xe,axisProps:dd,dragging:w,focusedThumbIndex:Q,getHiddenInputProps:(M={})=>{var D;const W=sr(M),de={onChange:be(W||{}),onFocus:Y(W||{}),onBlur:V(W||{}),onKeyDown:ne(W||{})},pe=B({},W,de);return B({tabIndex:S,"aria-labelledby":t,"aria-orientation":h,"aria-valuemax":x(l),"aria-valuemin":x(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},M,pe,{style:B({},nd,{direction:s?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:jt,getThumbProps:(M={})=>{const D=sr(M),W={onMouseOver:hn(D||{}),onMouseLeave:mn(D||{})};return B({},M,D,W)},marks:se,open:F,range:ce,rootRef:Z,trackLeap:_t,trackOffset:De,values:K,getThumbStyle:M=>({pointerEvents:k!==-1&&k!==M?"none":void 0})}}const md=["values","unit","step"],gd=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 Yi(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=xt(e,md),s=gd(t),i=Object.keys(s);function l(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function c(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function u(h,v){const x=i.indexOf(v);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(x!==-1&&typeof t[i[x]]=="number"?t[i[x]]:v)-r/100}${n})`}function p(h){return i.indexOf(h)+1<i.length?u(h,i[i.indexOf(h)+1]):l(h)}function f(h){const v=i.indexOf(h);return v===0?l(i[1]):v===i.length-1?c(i[v]):u(h,i[i.indexOf(h)+1]).replace("@media","@media not all and")}return B({keys:i,values:s,up:l,down:c,between:u,only:p,not:f,unit:n},o)}const yd={borderRadius:4},Ot=process.env.NODE_ENV!=="production"?a.oneOfType([a.number,a.string,a.object,a.array]):{};function $n(e,t){return t?mt(e,t,{clone:!1}):e}const ko={xs:0,sm:600,md:900,lg:1200,xl:1536},Ls={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 s=r.breakpoints||Ls;return t.reduce((i,l,c)=>(i[s.up(s.keys[c])]=n(t[c]),i),{})}if(typeof t=="object"){const s=r.breakpoints||Ls;return Object.keys(t).reduce((i,l)=>{if(Object.keys(s.values||ko).indexOf(l)!==-1){const c=s.up(l);i[c]=n(t[l],l)}else{const c=l;i[c]=t[c]}return i},{})}return n(t)}function vd(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const s=e.up(o);return r[s]={},r},{}))||{}}function bd(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,s)=>o&&o[s]?o[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function pr(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 Ae(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,s=i=>{if(i[t]==null)return null;const l=i[t],c=i.theme,u=vr(c,r)||{};return vt(i,l,f=>{let h=pr(u,o,f);return f===h&&typeof f=="string"&&(h=pr(u,o,`${t}${f==="default"?"":ut(f)}`,f)),n===!1?h:{[n]:h}})};return s.propTypes=process.env.NODE_ENV!=="production"?{[t]:Ot}:{},s.filterProps=[t],s}function xd(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const _d={m:"margin",p:"padding"},Cd={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},As={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},Sd=xd(e=>{if(e.length>2)if(As[e])e=As[e];else return[e];const[t,n]=e.split(""),r=_d[t],o=Cd[n]||"";return Array.isArray(o)?o.map(s=>r+s):[r+o]}),br=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],xr=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],Td=[...br,...xr];function Dn(e,t,n,r){var o;const s=(o=vr(e,t,!1))!=null?o:n;return typeof s=="number"?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&typeof i!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${i}.`),s*i):Array.isArray(s)?i=>typeof i=="string"?i:(process.env.NODE_ENV!=="production"&&(Number.isInteger(i)?i>s.length-1&&console.error([`MUI: The value provided (${i}) overflows.`,`The supported values are: ${JSON.stringify(s)}.`,`${i} > ${s.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
|
-
`))),i
|
|
74
|
-
`)),()=>{})}function Ka(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 Sf(e,t){return n=>e.reduce((r,o)=>(r[o]=Fn(t,n),r),{})}function Tf(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=xf(n),i=Sf(o,r),a=e[n];return vt(e,a,i)}function Za(e,t){const n=Ka(e.theme);return Object.keys(e).map(r=>Tf(e,t,r,n)).reduce(Pn,{})}function $e(e){return Za(e,br)}$e.propTypes=process.env.NODE_ENV!=="production"?br.reduce((e,t)=>(e[t]=Rt,e),{}):{};$e.filterProps=br;function je(e){return Za(e,_r)}je.propTypes=process.env.NODE_ENV!=="production"?_r.reduce((e,t)=>(e[t]=Rt,e),{}):{};je.filterProps=_r;process.env.NODE_ENV!=="production"&&Ef.reduce((e,t)=>(e[t]=Rt,e),{});function wf(e=8){if(e.mui)return e;const t=Ka({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 kf=lt("border",at),Of=lt("borderTop",at),Rf=lt("borderRight",at),Af=lt("borderBottom",at),Pf=lt("borderLeft",at),$f=lt("borderColor"),jf=lt("borderTopColor"),Mf=lt("borderRightColor"),Lf=lt("borderBottomColor"),Nf=lt("borderLeftColor"),If=lt("outline",at),Df=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(kf,Of,Rf,Af,Pf,$f,jf,Mf,Lf,Nf,xr,If,Df);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 Ff=Le({prop:"gridColumn"}),Bf=Le({prop:"gridRow"}),zf=Le({prop:"gridAutoFlow"}),Vf=Le({prop:"gridAutoColumns"}),Uf=Le({prop:"gridAutoRows"}),qf=Le({prop:"gridTemplateColumns"}),Wf=Le({prop:"gridTemplateRows"}),Hf=Le({prop:"gridTemplateAreas"}),Yf=Le({prop:"gridArea"});Cr(Er,Sr,Tr,Ff,Bf,zf,Vf,Uf,qf,Wf,Hf,Yf);function an(e,t){return t==="grey"?t:e}const Kf=Le({prop:"color",themeKey:"palette",transform:an}),Zf=Le({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:an}),Gf=Le({prop:"backgroundColor",themeKey:"palette",transform:an});Cr(Kf,Zf,Gf);function tt(e){return e<=1&&e!==0?`${e*100}%`:e}const Jf=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 Xf=Le({prop:"minWidth",transform:tt}),Qf=Le({prop:"height",transform:tt}),em=Le({prop:"maxHeight",transform:tt}),tm=Le({prop:"minHeight",transform:tt});Le({prop:"size",cssProperty:"width",transform:tt});Le({prop:"size",cssProperty:"height",transform:tt});const nm=Le({prop:"boxSizing"});Cr(Jf,Oo,Xf,Qf,em,tm,nm);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:an},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:an},backgroundColor:{themeKey:"palette",transform:an},p:{style:je},pt:{style:je},pr:{style:je},pb:{style:je},pl:{style:je},px:{style:je},py:{style:je},padding:{style:je},paddingTop:{style:je},paddingRight:{style:je},paddingBottom:{style:je},paddingLeft:{style:je},paddingX:{style:je},paddingY:{style:je},paddingInline:{style:je},paddingInlineStart:{style:je},paddingInlineEnd:{style:je},paddingBlock:{style:je},paddingBlockStart:{style:je},paddingBlockEnd:{style:je},m:{style:$e},mt:{style:$e},mr:{style:$e},mb:{style:$e},ml:{style:$e},mx:{style:$e},my:{style:$e},margin:{style:$e},marginTop:{style:$e},marginRight:{style:$e},marginBottom:{style:$e},marginLeft:{style:$e},marginX:{style:$e},marginY:{style:$e},marginInline:{style:$e},marginInlineStart:{style:$e},marginInlineEnd:{style:$e},marginBlock:{style:$e},marginBlockStart:{style:$e},marginBlockEnd:{style:$e},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style: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 rm(...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 om(e,t){return typeof e=="function"?e(t):e}function Ga(){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:f}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=vr(o,u)||{};return f?f(a):vt(a,r,_=>{let d=mr(p,m,_);return _===d&&typeof _=="string"&&(d=mr(p,m,`${n}${_==="default"?"":ut(_)}`,_)),c===!1?d:{[c]:d}})}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=yf(i.breakpoints),f=Object.keys(m);let p=m;return Object.keys(u).forEach(v=>{const _=om(u[v],i);if(_!=null)if(typeof _=="object")if(a[v])p=Pn(p,e(v,_,i,a));else{const d=vt({theme:i},_,x=>({[v]:x}));rm(d,_)?p[v]=t({sx:_,theme:i}):p=Pn(p,d)}else p=Pn(p,e(v,_,i,a))}),vf(f,p)}return Array.isArray(o)?o.map(l):l(o)}return t}const wr=Ga();wr.filterProps=["sx"];function Ja(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 im=["breakpoints","palette","spacing","shape"];function Xa(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=_t(e,im),l=Ya(n),c=wf(o);let u=ht({breakpoints:l,direction:"ltr",components:{},palette:z({mode:"light"},r),spacing:c,shape:z({},gf,i)},a);return u.applyStyles=Ja,u=t.reduce((m,f)=>ht(m,f),u),u.unstable_sxConfig=z({},Bn,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(f){return wr({sx:f,theme:this})},u}const am=Object.freeze(Object.defineProperty({__proto__:null,default:Xa,private_createBreakpoints:Ya,unstable_applyStyles:Ja},Symbol.toStringTag,{value:"Module"}));function sm(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 lm(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 cm=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(lm(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=sm(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-",Qa="comm",Ro="rule",Ao="decl",um="@import",es="@keyframes",dm="@layer",fm=Math.abs,kr=String.fromCharCode,mm=Object.assign;function pm(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 ts(e){return e.trim()}function hm(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 gm(e,t){return e.map(t).join("")}var Or=1,un=1,ns=0,Ge=0,Ie=0,mn="";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:un,length:a,return:""}}function Sn(e,t){return mm(Rr("",null,null,"",null,null,0),e,{length:-e.length},t)}function ym(){return Ie}function vm(){return Ie=Ge>0?ze(mn,--Ge):0,un--,Ie===10&&(un=1,Or--),Ie}function nt(){return Ie=Ge<ns?ze(mn,Ge++):0,un++,Ie===10&&(un=1,Or++),Ie}function gt(){return ze(mn,Ge)}function sr(){return Ge}function zn(e,t){return jn(mn,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 rs(e){return Or=un=1,ns=mt(mn=e),Ge=0,[]}function os(e){return mn="",e}function lr(e){return ts(zn(Ge-1,mo(e===91?e+2:e===40?e+1:e)))}function bm(e){for(;(Ie=gt())&&Ie<33;)nt();return Mn(e)>2||Mn(Ie)>3?"":" "}function _m(e,t){for(;--t&&nt()&&!(Ie<48||Ie>102||Ie>57&&Ie<65||Ie>70&&Ie<97););return zn(e,sr()+(t<6&>()==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 Cm(e,t){for(;nt()&&e+Ie!==57;)if(e+Ie===84&>()===47)break;return"/*"+zn(t,Ge-1)+"*"+kr(e===47?e:nt())}function xm(e){for(;!Mn(gt());)nt();return zn(e,Ge)}function Em(e){return os(cr("",null,null,null,[""],e=rs(e),0,[0],e))}function cr(e,t,n,r,o,i,a,l,c){for(var u=0,m=0,f=a,p=0,v=0,_=0,d=1,x=1,E=1,R=0,A="",O=o,C=i,F=r,y=A;x;)switch(_=R,R=nt()){case 40:if(_!=108&&ze(y,f-1)==58){fo(y+=ge(lr(R),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:y+=lr(R);break;case 9:case 10:case 13:case 32:y+=bm(_);break;case 92:y+=_m(sr()-1,7);continue;case 47:switch(gt()){case 42:case 47:nr(Sm(Cm(nt(),sr()),t,n),c);break;default:y+="/"}break;case 123*d:l[u++]=mt(y)*E;case 125*d:case 59:case 0:switch(R){case 0:case 125:x=0;case 59+m:E==-1&&(y=ge(y,/\f/g,"")),v>0&&mt(y)-f&&nr(v>32?Ii(y+";",r,n,f-1):Ii(ge(y," ","")+";",r,n,f-2),c);break;case 59:y+=";";default:if(nr(F=Ni(y,t,n,u,m,o,l,A,O=[],C=[],f),i),R===123)if(m===0)cr(y,t,F,F,O,i,f,l,C);else switch(p===99&&ze(y,3)===110?100:p){case 100:case 108:case 109:case 115:cr(e,F,F,r&&nr(Ni(e,F,F,0,0,o,l,A,o,O=[],f),C),o,C,f,l,r?O:C);break;default:cr(y,F,F,F,[""],C,0,l,C)}}u=m=v=0,d=E=1,A=y="",f=a;break;case 58:f=1+mt(y),v=_;default:if(d<1){if(R==123)--d;else if(R==125&&d++==0&&vm()==125)continue}switch(y+=kr(R),R*d){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=f=mt(A=y+=xm(sr())),R++;break;case 45:_===45&&mt(y)==2&&(d=0)}}return i}function Ni(e,t,n,r,o,i,a,l,c,u,m){for(var f=o-1,p=o===0?i:[""],v=Po(p),_=0,d=0,x=0;_<r;++_)for(var E=0,R=jn(e,f+1,f=fm(d=a[_])),A=e;E<v;++E)(A=ts(d>0?p[E]+" "+R:ge(R,/&\f/g,p[E])))&&(c[x++]=A);return Rr(e,t,n,o===0?Ro:l,c,u,m)}function Sm(e,t,n){return Rr(e,t,n,Qa,kr(ym()),jn(e,2,-2),0)}function Ii(e,t,n,r){return Rr(e,t,n,Ao,jn(e,0,r),jn(e,r+1,-1),r)}function sn(e,t){for(var n="",r=Po(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Tm(e,t,n,r){switch(e.type){case dm:if(e.children.length)break;case um:case Ao:return e.return=e.return||e.value;case Qa:return"";case es:return e.return=e.value+"{"+sn(e.children,r)+"}";case Ro:e.value=e.props.join(",")}return mt(n=sn(e.children,r))?e.return=e.value+"{"+n+"}":""}function wm(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 km(e){return function(t){t.root||(t=t.return)&&e(t)}}var Om=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)},Rm=function(t,n){var r=-1,o=44;do switch(Mn(o)){case 0:o===38&>()===12&&(n[r]=1),t[r]+=Om(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},Am=function(t,n){return os(Rm(rs(t),n))},Di=new WeakMap,Pm=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=Am(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]}}},$m=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function is(e,t){switch(pm(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")?is(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 jm=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Ao:t.return=is(t.value,t.length);break;case es:return sn([Sn(t,{value:ge(t.value,"@","@"+he)})],o);case Ro:if(t.length)return gm(t.props,function(i){switch(hm(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return sn([Sn(t,{props:[ge(i,/:(read-\w+)/,":"+pr+"$1")]})],o);case"::placeholder":return sn([Sn(t,{props:[ge(i,/:(plac\w+)/,":"+he+"input-$1")]}),Sn(t,{props:[ge(i,/:(plac\w+)/,":"+pr+"$1")]}),Sn(t,{props:[ge(i,/:(plac\w+)/,He+"input-$1")]})],o)}return""})}},Mm=[jm],Lm=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(d){var x=d.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(d),d.setAttribute("data-s",""))})}var o=t.stylisPlugins||Mm,i={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(d){for(var x=d.getAttribute("data-emotion").split(" "),E=1;E<x.length;E++)i[x[E]]=!0;l.push(d)});var c,u=[Pm,$m];{var m,f=[Tm,km(function(d){m.insert(d)})],p=wm(u.concat(o,f)),v=function(x){return sn(Em(x),p)};c=function(x,E,R,A){m=R,v(x?x+"{"+E.styles+"}":E.styles),A&&(_.inserted[E.name]=!0)}}var _={key:n,sheet:new cm({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 _.sheet.hydrate(l),_};let po;typeof document=="object"&&(po=Lm({key:"css",prepend:!0}));function as(e){const{injectFirst:t,children:n}=e;return t&&po?h.jsx(on.CacheProvider,{value:po,children:n}):n}process.env.NODE_ENV!=="production"&&(as.propTypes={children:s.node,injectFirst:s.bool});function Nm(e){return e==null||Object.keys(e).length===0}function ss(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(Nm(o)?n:o):t;return h.jsx(on.Global,{styles:r})}process.env.NODE_ENV!=="production"&&(ss.propTypes={defaultTheme:s.object,styles:s.oneOfType([s.array,s.string,s.object,s.func])});/**
|
|
73
|
+
`))),s[i]):typeof s=="function"?s:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${s}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
74
|
+
`)),()=>{})}function Zi(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 wd(e,t){return n=>e.reduce((r,o)=>(r[o]=Fn(t,n),r),{})}function Ed(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=Sd(n),s=wd(o,r),i=e[n];return vt(e,i,s)}function Gi(e,t){const n=Zi(e.theme);return Object.keys(e).map(r=>Ed(e,t,r,n)).reduce($n,{})}function Pe(e){return Gi(e,br)}Pe.propTypes=process.env.NODE_ENV!=="production"?br.reduce((e,t)=>(e[t]=Ot,e),{}):{};Pe.filterProps=br;function Me(e){return Gi(e,xr)}Me.propTypes=process.env.NODE_ENV!=="production"?xr.reduce((e,t)=>(e[t]=Ot,e),{}):{};Me.filterProps=xr;process.env.NODE_ENV!=="production"&&Td.reduce((e,t)=>(e[t]=Ot,e),{});function kd(e=8){if(e.mui)return e;const t=Zi({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(s=>{const i=t(s);return typeof i=="number"?`${i}px`:i}).join(" "));return n.mui=!0,n}function _r(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(s=>{r[s]=o}),r),{}),n=r=>Object.keys(r).reduce((o,s)=>t[s]?$n(o,t[s](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 it(e){return typeof e!="number"?e:`${e}px solid`}function lt(e,t){return Ae({prop:e,themeKey:"borders",transform:t})}const Rd=lt("border",it),Od=lt("borderTop",it),jd=lt("borderRight",it),$d=lt("borderBottom",it),Pd=lt("borderLeft",it),Md=lt("borderColor"),Ld=lt("borderTopColor"),Ad=lt("borderRightColor"),Nd=lt("borderBottomColor"),Id=lt("borderLeftColor"),Dd=lt("outline",it),Fd=lt("outlineColor"),Cr=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};Cr.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Ot}:{};Cr.filterProps=["borderRadius"];_r(Rd,Od,jd,$d,Pd,Md,Ld,Ad,Nd,Id,Cr,Dd,Fd);const Sr=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};Sr.propTypes=process.env.NODE_ENV!=="production"?{gap:Ot}:{};Sr.filterProps=["gap"];const Tr=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};Tr.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Ot}:{};Tr.filterProps=["columnGap"];const wr=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};wr.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Ot}:{};wr.filterProps=["rowGap"];const zd=Ae({prop:"gridColumn"}),Bd=Ae({prop:"gridRow"}),Ud=Ae({prop:"gridAutoFlow"}),Vd=Ae({prop:"gridAutoColumns"}),qd=Ae({prop:"gridAutoRows"}),Wd=Ae({prop:"gridTemplateColumns"}),Hd=Ae({prop:"gridTemplateRows"}),Kd=Ae({prop:"gridTemplateAreas"}),Yd=Ae({prop:"gridArea"});_r(Sr,Tr,wr,zd,Bd,Ud,Vd,qd,Wd,Hd,Kd,Yd);function sn(e,t){return t==="grey"?t:e}const Zd=Ae({prop:"color",themeKey:"palette",transform:sn}),Gd=Ae({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:sn}),Jd=Ae({prop:"backgroundColor",themeKey:"palette",transform:sn});_r(Zd,Gd,Jd);function tt(e){return e<=1&&e!==0?`${e*100}%`:e}const Xd=Ae({prop:"width",transform:tt}),Ro=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const s=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||ko[n];return s?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${s}${e.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:tt(n)}};return vt(e,e.maxWidth,t)}return null};Ro.filterProps=["maxWidth"];const Qd=Ae({prop:"minWidth",transform:tt}),ep=Ae({prop:"height",transform:tt}),tp=Ae({prop:"maxHeight",transform:tt}),np=Ae({prop:"minHeight",transform:tt});Ae({prop:"size",cssProperty:"width",transform:tt});Ae({prop:"size",cssProperty:"height",transform:tt});const rp=Ae({prop:"boxSizing"});_r(Xd,Ro,Qd,ep,tp,np,rp);const zn={border:{themeKey:"borders",transform:it},borderTop:{themeKey:"borders",transform:it},borderRight:{themeKey:"borders",transform:it},borderBottom:{themeKey:"borders",transform:it},borderLeft:{themeKey:"borders",transform:it},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:it},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Cr},color:{themeKey:"palette",transform:sn},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:sn},backgroundColor:{themeKey:"palette",transform:sn},p:{style:Me},pt:{style:Me},pr:{style:Me},pb:{style:Me},pl:{style:Me},px:{style:Me},py:{style:Me},padding:{style:Me},paddingTop:{style:Me},paddingRight:{style:Me},paddingBottom:{style:Me},paddingLeft:{style:Me},paddingX:{style:Me},paddingY:{style:Me},paddingInline:{style:Me},paddingInlineStart:{style:Me},paddingInlineEnd:{style:Me},paddingBlock:{style:Me},paddingBlockStart:{style:Me},paddingBlockEnd:{style:Me},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:Sr},rowGap:{style:wr},columnGap:{style:Tr},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:Ro},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 op(...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 sp(e,t){return typeof e=="function"?e(t):e}function Ji(){function e(n,r,o,s){const i={[n]:r,theme:o},l=s[n];if(!l)return{[n]:r};const{cssProperty:c=n,themeKey:u,transform:p,style:f}=l;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const h=vr(o,u)||{};return f?f(i):vt(i,r,x=>{let d=pr(h,p,x);return x===d&&typeof x=="string"&&(d=pr(h,p,`${n}${x==="default"?"":ut(x)}`,x)),c===!1?d:{[c]:d}})}function t(n){var r;const{sx:o,theme:s={}}=n||{};if(!o)return null;const i=(r=s.unstable_sxConfig)!=null?r:zn;function l(c){let u=c;if(typeof c=="function")u=c(s);else if(typeof c!="object")return c;if(!u)return null;const p=vd(s.breakpoints),f=Object.keys(p);let h=p;return Object.keys(u).forEach(v=>{const x=sp(u[v],s);if(x!=null)if(typeof x=="object")if(i[v])h=$n(h,e(v,x,s,i));else{const d=vt({theme:s},x,C=>({[v]:C}));op(d,x)?h[v]=t({sx:x,theme:s}):h=$n(h,d)}else h=$n(h,e(v,x,s,i))}),bd(f,h)}return Array.isArray(o)?o.map(l):l(o)}return t}const Er=Ji();Er.filterProps=["sx"];function Xi(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 ip=["breakpoints","palette","spacing","shape"];function Qi(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:s={}}=e,i=xt(e,ip),l=Yi(n),c=kd(o);let u=mt({breakpoints:l,direction:"ltr",components:{},palette:B({mode:"light"},r),spacing:c,shape:B({},yd,s)},i);return u.applyStyles=Xi,u=t.reduce((p,f)=>mt(p,f),u),u.unstable_sxConfig=B({},zn,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(f){return Er({sx:f,theme:this})},u}const ap=Object.freeze(Object.defineProperty({__proto__:null,default:Qi,private_createBreakpoints:Yi,unstable_applyStyles:Xi},Symbol.toStringTag,{value:"Module"}));function lp(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 cp(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 up=function(){function e(n){var r=this;this._insertTag=function(o){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,s),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(cp(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var s=lp(o);try{s.insertRule(r,s.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-",hr="-moz-",me="-webkit-",ea="comm",Oo="rule",jo="decl",fp="@import",ta="@keyframes",dp="@layer",pp=Math.abs,kr=String.fromCharCode,hp=Object.assign;function mp(e,t){return Be(e,0)^45?(((t<<2^Be(e,0))<<2^Be(e,1))<<2^Be(e,2))<<2^Be(e,3):0}function na(e){return e.trim()}function gp(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 Be(e,t){return e.charCodeAt(t)|0}function Mn(e,t,n){return e.slice(t,n)}function pt(e){return e.length}function $o(e){return e.length}function nr(e,t){return t.push(e),e}function yp(e,t){return e.map(t).join("")}var Rr=1,un=1,ra=0,Ge=0,Ie=0,pn="";function Or(e,t,n,r,o,s,i){return{value:e,root:t,parent:n,type:r,props:o,children:s,line:Rr,column:un,length:i,return:""}}function Tn(e,t){return hp(Or("",null,null,"",null,null,0),e,{length:-e.length},t)}function vp(){return Ie}function bp(){return Ie=Ge>0?Be(pn,--Ge):0,un--,Ie===10&&(un=1,Rr--),Ie}function nt(){return Ie=Ge<ra?Be(pn,Ge++):0,un++,Ie===10&&(un=1,Rr++),Ie}function gt(){return Be(pn,Ge)}function ar(){return Ge}function Bn(e,t){return Mn(pn,e,t)}function Ln(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 oa(e){return Rr=un=1,ra=pt(pn=e),Ge=0,[]}function sa(e){return pn="",e}function lr(e){return na(Bn(Ge-1,po(e===91?e+2:e===40?e+1:e)))}function xp(e){for(;(Ie=gt())&&Ie<33;)nt();return Ln(e)>2||Ln(Ie)>3?"":" "}function _p(e,t){for(;--t&&nt()&&!(Ie<48||Ie>102||Ie>57&&Ie<65||Ie>70&&Ie<97););return Bn(e,ar()+(t<6&>()==32&&nt()==32))}function po(e){for(;nt();)switch(Ie){case e:return Ge;case 34:case 39:e!==34&&e!==39&&po(Ie);break;case 40:e===41&&po(e);break;case 92:nt();break}return Ge}function Cp(e,t){for(;nt()&&e+Ie!==57;)if(e+Ie===84&>()===47)break;return"/*"+Bn(t,Ge-1)+"*"+kr(e===47?e:nt())}function Sp(e){for(;!Ln(gt());)nt();return Bn(e,Ge)}function Tp(e){return sa(cr("",null,null,null,[""],e=oa(e),0,[0],e))}function cr(e,t,n,r,o,s,i,l,c){for(var u=0,p=0,f=i,h=0,v=0,x=0,d=1,C=1,S=1,R=0,j="",k=o,_=s,F=r,y=j;C;)switch(x=R,R=nt()){case 40:if(x!=108&&Be(y,f-1)==58){fo(y+=ge(lr(R),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:y+=lr(R);break;case 9:case 10:case 13:case 32:y+=xp(x);break;case 92:y+=_p(ar()-1,7);continue;case 47:switch(gt()){case 42:case 47:nr(wp(Cp(nt(),ar()),t,n),c);break;default:y+="/"}break;case 123*d:l[u++]=pt(y)*S;case 125*d:case 59:case 0:switch(R){case 0:case 125:C=0;case 59+p:S==-1&&(y=ge(y,/\f/g,"")),v>0&&pt(y)-f&&nr(v>32?Is(y+";",r,n,f-1):Is(ge(y," ","")+";",r,n,f-2),c);break;case 59:y+=";";default:if(nr(F=Ns(y,t,n,u,p,o,l,j,k=[],_=[],f),s),R===123)if(p===0)cr(y,t,F,F,k,s,f,l,_);else switch(h===99&&Be(y,3)===110?100:h){case 100:case 108:case 109:case 115:cr(e,F,F,r&&nr(Ns(e,F,F,0,0,o,l,j,o,k=[],f),_),o,_,f,l,r?k:_);break;default:cr(y,F,F,F,[""],_,0,l,_)}}u=p=v=0,d=S=1,j=y="",f=i;break;case 58:f=1+pt(y),v=x;default:if(d<1){if(R==123)--d;else if(R==125&&d++==0&&bp()==125)continue}switch(y+=kr(R),R*d){case 38:S=p>0?1:(y+="\f",-1);break;case 44:l[u++]=(pt(y)-1)*S,S=1;break;case 64:gt()===45&&(y+=lr(nt())),h=gt(),p=f=pt(j=y+=Sp(ar())),R++;break;case 45:x===45&&pt(y)==2&&(d=0)}}return s}function Ns(e,t,n,r,o,s,i,l,c,u,p){for(var f=o-1,h=o===0?s:[""],v=$o(h),x=0,d=0,C=0;x<r;++x)for(var S=0,R=Mn(e,f+1,f=pp(d=i[x])),j=e;S<v;++S)(j=na(d>0?h[S]+" "+R:ge(R,/&\f/g,h[S])))&&(c[C++]=j);return Or(e,t,n,o===0?Oo:l,c,u,p)}function wp(e,t,n){return Or(e,t,n,ea,kr(vp()),Mn(e,2,-2),0)}function Is(e,t,n,r){return Or(e,t,n,jo,Mn(e,0,r),Mn(e,r+1,-1),r)}function an(e,t){for(var n="",r=$o(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function Ep(e,t,n,r){switch(e.type){case dp:if(e.children.length)break;case fp:case jo:return e.return=e.return||e.value;case ea:return"";case ta:return e.return=e.value+"{"+an(e.children,r)+"}";case Oo:e.value=e.props.join(",")}return pt(n=an(e.children,r))?e.return=e.value+"{"+n+"}":""}function kp(e){var t=$o(e);return function(n,r,o,s){for(var i="",l=0;l<t;l++)i+=e[l](n,r,o,s)||"";return i}}function Rp(e){return function(t){t.root||(t=t.return)&&e(t)}}var Op=function(t,n,r){for(var o=0,s=0;o=s,s=gt(),o===38&&s===12&&(n[r]=1),!Ln(s);)nt();return Bn(t,Ge)},jp=function(t,n){var r=-1,o=44;do switch(Ln(o)){case 0:o===38&>()===12&&(n[r]=1),t[r]+=Op(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},$p=function(t,n){return sa(jp(oa(t),n))},Ds=new WeakMap,Pp=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&&!Ds.get(r))&&!o){Ds.set(t,!0);for(var s=[],i=$p(n,s),l=r.props,c=0,u=0;c<i.length;c++)for(var p=0;p<l.length;p++,u++)t.props[u]=s[c]?i[c].replace(/&\f/g,l[p]):l[p]+" "+i[c]}}},Mp=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function ia(e,t){switch(mp(e,t)){case 5103:return me+"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 me+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return me+e+hr+e+He+e+e;case 6828:case 4268:return me+e+He+e+e;case 6165:return me+e+He+"flex-"+e+e;case 5187:return me+e+ge(e,/(\w+).+(:[^]+)/,me+"box-$1$2"+He+"flex-$1$2")+e;case 5443:return me+e+He+"flex-item-"+ge(e,/flex-|-self/,"")+e;case 4675:return me+e+He+"flex-line-pack"+ge(e,/align-content|flex-|-self/,"")+e;case 5548:return me+e+He+ge(e,"shrink","negative")+e;case 5292:return me+e+He+ge(e,"basis","preferred-size")+e;case 6060:return me+"box-"+ge(e,"-grow","")+me+e+He+ge(e,"grow","positive")+e;case 4554:return me+ge(e,/([^-])(transform)/g,"$1"+me+"$2")+e;case 6187:return ge(ge(ge(e,/(zoom-|grab)/,me+"$1"),/(image-set)/,me+"$1"),e,"")+e;case 5495:case 3959:return ge(e,/(image-set\([^]*)/,me+"$1$`$1");case 4968:return ge(ge(e,/(.+:)(flex-)?(.*)/,me+"box-pack:$3"+He+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+me+e+e;case 4095:case 3583:case 4068:case 2532:return ge(e,/(.+)-inline(.+)/,me+"$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(pt(e)-1-t>6)switch(Be(e,t+1)){case 109:if(Be(e,t+4)!==45)break;case 102:return ge(e,/(.+:)(.+)-([^]+)/,"$1"+me+"$2-$3$1"+hr+(Be(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~fo(e,"stretch")?ia(ge(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Be(e,t+1)!==115)break;case 6444:switch(Be(e,pt(e)-3-(~fo(e,"!important")&&10))){case 107:return ge(e,":",":"+me)+e;case 101:return ge(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+me+(Be(e,14)===45?"inline-":"")+"box$3$1"+me+"$2$3$1"+He+"$2box$3")+e}break;case 5936:switch(Be(e,t+11)){case 114:return me+e+He+ge(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return me+e+He+ge(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return me+e+He+ge(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return me+e+He+e+e}return e}var Lp=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case jo:t.return=ia(t.value,t.length);break;case ta:return an([Tn(t,{value:ge(t.value,"@","@"+me)})],o);case Oo:if(t.length)return yp(t.props,function(s){switch(gp(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return an([Tn(t,{props:[ge(s,/:(read-\w+)/,":"+hr+"$1")]})],o);case"::placeholder":return an([Tn(t,{props:[ge(s,/:(plac\w+)/,":"+me+"input-$1")]}),Tn(t,{props:[ge(s,/:(plac\w+)/,":"+hr+"$1")]}),Tn(t,{props:[ge(s,/:(plac\w+)/,He+"input-$1")]})],o)}return""})}},Ap=[Lp],Np=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(d){var C=d.getAttribute("data-emotion");C.indexOf(" ")!==-1&&(document.head.appendChild(d),d.setAttribute("data-s",""))})}var o=t.stylisPlugins||Ap,s={},i,l=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(d){for(var C=d.getAttribute("data-emotion").split(" "),S=1;S<C.length;S++)s[C[S]]=!0;l.push(d)});var c,u=[Pp,Mp];{var p,f=[Ep,Rp(function(d){p.insert(d)})],h=kp(u.concat(o,f)),v=function(C){return an(Tp(C),h)};c=function(C,S,R,j){p=R,v(C?C+"{"+S.styles+"}":S.styles),j&&(x.inserted[S.name]=!0)}}var x={key:n,sheet:new up({key:n,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:c};return x.sheet.hydrate(l),x};let ho;typeof document=="object"&&(ho=Np({key:"css",prepend:!0}));function aa(e){const{injectFirst:t,children:n}=e;return t&&ho?m.jsx(on.CacheProvider,{value:ho,children:n}):n}process.env.NODE_ENV!=="production"&&(aa.propTypes={children:a.node,injectFirst:a.bool});function Ip(e){return e==null||Object.keys(e).length===0}function la(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(Ip(o)?n:o):t;return m.jsx(on.Global,{styles:r})}process.env.NODE_ENV!=="production"&&(la.propTypes={defaultTheme:a.object,styles:a.oneOfType([a.array,a.string,a.object,a.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
|
-
*/function
|
|
81
|
-
`)):r.some(
|
|
82
|
-
`))}return
|
|
83
|
-
The color object needs to have a \`main\` property or a \`${
|
|
80
|
+
*/function Dp(e,t){const n=ka(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(s=>s===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}const Fp=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},zp=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:la,StyledEngineProvider:aa,ThemeContext:on.ThemeContext,css:on.css,default:Dp,internal_processStyles:Fp,keyframes:on.keyframes},Symbol.toStringTag,{value:"Module"})),Bp=["sx"],Up=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:zn;return Object.keys(e).forEach(s=>{o[s]?r.systemProps[s]=e[s]:r.otherProps[s]=e[s]}),r};function Vp(e){const{sx:t}=e,n=xt(e,Bp),{systemProps:r,otherProps:o}=Up(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...i)=>{const l=t(...i);return wt(l)?B({},r,l):r}:s=B({},r,t),B({},o,{sx:s})}const qp=Object.freeze(Object.defineProperty({__proto__:null,default:Er,extendSxProp:Vp,unstable_createStyleFunctionSx:Ji,unstable_defaultSxConfig:zn},Symbol.toStringTag,{value:"Module"}));function Wp(e,t){return B({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const An={black:"#000",white:"#fff"},Hp={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"},Kp=["mode","contrastThreshold","tonalOffset"],Fs={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:An.white,default:An.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:An.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:An.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 zs(e,t,n,r){const o=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=ht.lighten(e.main,o):t==="dark"&&(e.dark=ht.darken(e.main,s)))}function Yp(e="light"){return e==="dark"?{main:Xt[200],light:Xt[50],dark:Xt[400]}:{main:Xt[700],light:Xt[400],dark:Xt[800]}}function Zp(e="light"){return e==="dark"?{main:Gt[200],light:Gt[50],dark:Gt[400]}:{main:Gt[500],light:Gt[300],dark:Gt[700]}}function Gp(e="light"){return e==="dark"?{main:Jt[500],light:Jt[300],dark:Jt[700]}:{main:Jt[700],light:Jt[400],dark:Jt[800]}}function Jp(e="light"){return e==="dark"?{main:Qt[400],light:Qt[300],dark:Qt[700]}:{main:Qt[700],light:Qt[500],dark:Qt[900]}}function Xp(e="light"){return e==="dark"?{main:en[400],light:en[300],dark:en[700]}:{main:en[800],light:en[500],dark:en[900]}}function Qp(e="light"){return e==="dark"?{main:wn[400],light:wn[300],dark:wn[700]}:{main:"#ed6c02",light:wn[500],dark:wn[900]}}function eh(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=xt(e,Kp),s=e.primary||Yp(t),i=e.secondary||Zp(t),l=e.error||Gp(t),c=e.info||Jp(t),u=e.success||Xp(t),p=e.warning||Qp(t);function f(d){const C=ht.getContrastRatio(d,Qr.text.primary)>=n?Qr.text.primary:Fs.text.primary;if(process.env.NODE_ENV!=="production"){const S=ht.getContrastRatio(d,C);S<3&&console.error([`MUI: The contrast ratio of ${S}:1 for ${C} on ${d}`,"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
|
+
`))}return C}const h=({color:d,name:C,mainShade:S=500,lightShade:R=300,darkShade:j=700})=>{if(d=B({},d),!d.main&&d[S]&&(d.main=d[S]),!d.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${C?` (${C})`:""} provided to augmentColor(color) is invalid.
|
|
83
|
+
The color object needs to have a \`main\` property or a \`${S}\` property.`:Pn(11,C?` (${C})`:"",S));if(typeof d.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${C?` (${C})`:""} provided to augmentColor(color) is invalid.
|
|
84
84
|
\`color.main\` should be a string, but \`${JSON.stringify(d.main)}\` was provided instead.
|
|
85
85
|
|
|
86
86
|
Did you intend to use one of the following approaches?
|
|
@@ -93,6 +93,6 @@ const theme1 = createTheme({ palette: {
|
|
|
93
93
|
|
|
94
94
|
const theme2 = createTheme({ palette: {
|
|
95
95
|
primary: { main: green[500] },
|
|
96
|
-
} })
|
|
97
|
-
`)),Object.keys(u).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(u).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(
|
|
98
|
-
`))}p[_]={}}}};Object.keys(u.components).forEach(p=>{const v=u.components[p].styleOverrides;v&&p.indexOf("Mui")===0&&f(v,p)})}return u.unstable_sxConfig=z({},Bn,a==null?void 0:a.unstable_sxConfig),u.unstable_sx=function(f){return wr({sx:f,theme:this})},u}const hp=pp(),gp="$$material";var Nt={},eo={exports:{}},qi;function yp(){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 vp(){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 bp=kt(Fm),_p=kt(Id),Cp=kt(qd),xp=kt(Ud),Ep=kt(am),Sp=kt(Um);var Hi;function Tp(){if(Hi)return Nt;Hi=1;var e=za();Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.default=F,Nt.shouldForwardProp=x,Nt.systemDefaultTheme=void 0;var t=e(yp()),n=e(vp()),r=v(bp),o=_p,i=e(Cp),a=e(xp),l=e(Ep),c=e(Sp);const u=["ownerState"],m=["variants"],f=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p(y){if(typeof WeakMap!="function")return null;var T=new WeakMap,S=new WeakMap;return(p=function(P){return P?S:T})(y)}function v(y,T){if(y&&y.__esModule)return y;if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var S=p(T);if(S&&S.has(y))return S.get(y);var P={__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(P,H,V):P[H]=y[H]}return P.default=y,S&&S.set(y,P),P}function _(y){return Object.keys(y).length===0}function d(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)(),R=y=>y&&y.charAt(0).toLowerCase()+y.slice(1);function A({defaultTheme:y,theme:T,themeId:S}){return _(T)?y:T[S]||T}function O(y){return y?(T,S)=>S[y]:null}function C(y,T){let{ownerState:S}=T,P=(0,n.default)(T,u);const N=typeof y=="function"?y((0,t.default)({ownerState:S},P)):y;if(Array.isArray(N))return N.flatMap(H=>C(H,(0,t.default)({ownerState:S},P)));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},P,S)):Object.keys(Y.props).forEach(re=>{(S==null?void 0:S[re])!==Y.props[re]&&P[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},P,S)):Y.style))}),ce}return N}function F(y={}){const{themeId:T,defaultTheme:S=E,rootShouldForwardProp:P=x,slotShouldForwardProp:N=x}=y,H=V=>(0,c.default)((0,t.default)({},V,{theme:A((0,t.default)({},V,{defaultTheme:S,themeId:T}))}));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:Pe=O(R(ie))}=ce,k=(0,n.default)(ce,f),M=re!==void 0?re:ie&&ie!=="Root"&&ie!=="root"||!1,Q=we||!1;let q;process.env.NODE_ENV!=="production"&&Y&&(q=`${Y}-${R(ie||"Root")}`);let B=x;ie==="Root"||ie==="root"?B=P:ie?B=N:d(V)&&(B=void 0);const ee=(0,r.default)(V,(0,t.default)({shouldForwardProp:B,label:q},k)),Z=U=>typeof U=="function"&&U.__emotion_real!==U||(0,o.isPlainObject)(U)?G=>C(U,(0,t.default)({},G,{theme:A({theme:G.theme,defaultTheme:S,themeId:T})})):U,K=(U,...G)=>{let ne=Z(U);const be=G?G.map(Z):[];Y&&Pe&&be.push(ae=>{const se=A((0,t.default)({},ae,{defaultTheme:S,themeId:T}));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}))}),Pe(ae,Ue)}),Y&&!M&&be.push(ae=>{var se;const Re=A((0,t.default)({},ae,{defaultTheme:S,themeId:T})),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 $=be.length-G.length;if(Array.isArray(U)&&$>0){const ae=new Array($).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 wp=Tp();const kp=Gi(wp);function $o(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Op=e=>$o(e)&&e!=="classes",Ft=kp({themeId:gp,defaultTheme:hp,rootShouldForwardProp:Op}),Rp=X.createContext(void 0);process.env.NODE_ENV!=="production"&&(s.node,s.object);function Ap(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 Pp({props:e,name:t}){const n=X.useContext(Rp);return Ap({props:e,name:t,theme:{components:n}})}process.env.NODE_ENV!=="production"&&(s.node,s.object.isRequired);function $p(e){return Pp(e)}const jp=e=>!e||!An(e);function Mp(e){return wo("MuiSlider",e)}const st=of("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"]),Lp=e=>{const{open:t}=e;return{offset:wt(t&&st.valueLabelOpen),circle:st.valueLabelCircle,label:st.valueLabelLabel}};function ls(e){const{children:t,className:n,value:r}=e,o=Lp(e);return t?X.cloneElement(t,{className:wt(t.props.className)},h.jsxs(X.Fragment,{children:[t.props.children,h.jsx("span",{className:wt(o.offset,n),"aria-hidden":!0,children:h.jsx("span",{className:o.circle,children:h.jsx("span",{className:o.label,children:r})})})]})):null}process.env.NODE_ENV!=="production"&&(ls.propTypes={children:s.element.isRequired,className:s.string,value:s.node});const Np=["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 Ip=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}}]}}),Dp=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}}]}),Fp=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:z({},e.vars?{backgroundColor:e.vars.palette.Slider[`${n}Track`],borderColor:e.vars.palette.Slider[`${n}Track`]}:z({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)})))}))]}}),Bp=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}`]:z({},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}`]:z({},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)}`})}}))]}}),zp=Ft(ls,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>z({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"}}]})),Vp=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}}]})),Up=Ft("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>$o(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>z({},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}}]})),qp=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 Sd(u,Mp,a)},Wp=({children:e})=>e,cs=X.forwardRef(function(t,n){var r,o,i,a,l,c,u,m,f,p,v,_,d,x,E,R,A,O,C,F,y,T,S,P;const N=$p({props:t,name:"MuiSlider"}),H=Pd(),{"aria-label":V,"aria-valuetext":ce,"aria-labelledby":Y,component:ie="span",components:re={},componentsProps:we={},color:Pe="primary",classes:k,className:M,disableSwap:Q=!1,disabled:q=!1,getAriaLabel:B,getAriaValueText:ee,marks:Z=!1,max:K=100,min:U=0,orientation:G="horizontal",shiftStep:ne=10,size:be="medium",step:$=1,scale:_e=Yi,slotProps:ae,slots:se,track:Re="normal",valueLabelDisplay:Ue="off",valueLabelFormat:qe=Yi}=N,dt=_t(N,Np),De=z({},N,{isRtl:H,max:K,min:U,classes:k,disabled:q,disableSwap:Q,orientation:G,marks:Z,color:Pe,size:be,step:$,shiftStep:ne,scale:_e,track:Re,valueLabelDisplay:Ue,valueLabelFormat:qe}),{axisProps:Ct,getRootProps:At,getHiddenInputProps:pn,getThumbProps:hn,open:gn,active:Bt,axis:xt,focusedThumbIndex:j,range:D,dragging:W,marks:fe,values:me,trackOffset:de,trackLeap:Je,getThumbStyle:rt}=mf(z({},De,{rootRef:n}));De.marked=fe.length>0&&fe.some(J=>J.label),De.dragging=W,De.focusedThumbIndex=j;const pe=qp(De),Ye=(r=(o=se==null?void 0:se.root)!=null?o:re.Root)!=null?r:Ip,ft=(i=(a=se==null?void 0:se.rail)!=null?a:re.Rail)!=null?i:Dp,yn=(l=(c=se==null?void 0:se.track)!=null?c:re.Track)!=null?l:Fp,yt=(u=(m=se==null?void 0:se.thumb)!=null?m:re.Thumb)!=null?u:Bp,zt=(f=(p=se==null?void 0:se.valueLabel)!=null?p:re.ValueLabel)!=null?f:zp,Pt=(v=(_=se==null?void 0:se.mark)!=null?_:re.Mark)!=null?v:Vp,Vt=(d=(x=se==null?void 0:se.markLabel)!=null?x:re.MarkLabel)!=null?d:Up,Vn=(E=(R=se==null?void 0:se.input)!=null?R:re.Input)!=null?E:"input",Ut=(A=ae==null?void 0:ae.root)!=null?A:we.root,Ar=(O=ae==null?void 0:ae.rail)!=null?O:we.rail,qt=(C=ae==null?void 0:ae.track)!=null?C:we.track,Wt=(F=ae==null?void 0:ae.thumb)!=null?F:we.thumb,vn=(y=ae==null?void 0:ae.valueLabel)!=null?y:we.valueLabel,Pr=(T=ae==null?void 0:ae.mark)!=null?T:we.mark,Un=(S=ae==null?void 0:ae.markLabel)!=null?S:we.markLabel,qn=(P=ae==null?void 0:ae.input)!=null?P:we.input,$r=St({elementType:Ye,getSlotProps:At,externalSlotProps:Ut,externalForwardedProps:dt,additionalProps:z({},jp(Ye)&&{as:ie}),ownerState:z({},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:yn,externalSlotProps:qt,additionalProps:{style:z({},Ct[xt].offset(de),Ct[xt].leap(Je))},ownerState:z({},De,qt==null?void 0:qt.ownerState),className:pe.track}),bn=St({elementType:yt,getSlotProps:hn,externalSlotProps:Wt,ownerState:z({},De,Wt==null?void 0:Wt.ownerState),className:pe.thumb}),g=St({elementType:zt,externalSlotProps:vn,ownerState:z({},De,vn==null?void 0:vn.ownerState),className:pe.valueLabel}),w=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:pn,externalSlotProps:qn,ownerState:De});return h.jsxs(Ye,z({},$r,{children:[h.jsx(ft,z({},jr)),h.jsx(yn,z({},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]),h.jsxs(X.Fragment,{children:[h.jsx(Pt,z({"data-index":oe},w,!An(Pt)&&{markActive:Se},{style:z({},le,w.style),className:wt(w.className,Se&&pe.markActive)})),J.label!=null?h.jsx(Vt,z({"aria-hidden":!0,"data-index":oe},I,!An(Vt)&&{markLabelActive:Se},{style:z({},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"?Wp:zt;return h.jsx(Se,z({},!An(Se)&&{valueLabelFormat:qe,valueLabelDisplay:Ue,value:typeof qe=="function"?qe(_e(J),oe):qe,index:oe,open:gn===oe||Bt===oe||Ue==="on",disabled:q},g,{children:h.jsx(yt,z({"data-index":oe},bn,{className:wt(pe.thumb,bn.className,Bt===oe&&pe.active,j===oe&&pe.focusVisible),style:z({},le,rt(oe),bn.style),children:h.jsx(Vn,z({"data-index":oe,"aria-label":B?B(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"&&(cs.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 Hp="_slider_a19yo_2",Yp="_playButton_a19yo_17",Kp="_hover_a19yo_20",Zp="_sliderOpen_a19yo_28",Gp="_sliderResults_a19yo_32",wn={slider:Hp,playButton:Yp,hover:Kp,sliderOpen:Zp,sliderResults:Gp},us=({onResults:e=!1,defaultYear:t=2025,firstYear:n=2025,lastYear:r=2050,zIndex:o=10,rightBarOpen:i=!1})=>{const[a,l]=b.useState(t),c=kn.useDispatch(),u=(E,R)=>{l(R),c(Zr(R-2e3))},[m,f]=b.useState(!1),p=()=>{f(!0)},v=()=>{f(!1)};((E,R)=>{const A=b.useRef();b.useEffect(()=>{A.current=E},[E]),b.useEffect(()=>{function O(){A.current()}{let C=setInterval(O,R);return()=>clearInterval(C)}},[R])})(()=>{m&&(a!=2050?(l(a+1),c(Zr(a-2e3+1))):(l(2025),c(Zr(25))))},1e3);const d=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 h.jsx(on.ThemeProvider,{theme:d,children:h.jsxs(No.Box,{sx:{width:400},className:`${e?wn.sliderResults:wn.slider} ${i?wn.sliderOpen:""}`,style:{zIndex:o},children:[n,h.jsx(cs,{"aria-label":"TimeSlider",value:a,valueLabelDisplay:"on",step:1,marks:x,min:n,max:r,onChange:u,color:"primary",size:"small"}),r,!m&&h.jsx("button",{className:wn.playButton,onClick:p,children:h.jsx("img",{src:xd,alt:"Play"})}),m&&h.jsx("button",{className:wn.playButton,onClick:v,children:h.jsx("img",{src:Ed,alt:"Pause"})})]})})};us.propTypes={defaultYear:s.number,onResults:s.bool,firstYear:s.number,lastYear:s.number,zIndex:s.number,rightBarOpen:s.bool};const Jp="_TopNavMenuContainer_1j1d1_2",Xp="_topNavOptions_1j1d1_11",Qp="_active_1j1d1_22",no={TopNavMenuContainer:Jp,topNavOptions:Xp,active:Qp},ds=({options:e=[],cssProps:t={}})=>{const{t:n}=Oe.useTranslation(),r=t.textColor||"inherit";return t.borderColor,h.jsx("div",{className:no.TopNavMenuContainer,children:e.map((o,i)=>h.jsx(ks.NavLink,{to:o.url,className:({isActive:a})=>`${no.topNavOptions} ${a?no.active:""}`,style:{color:r},children:n(o.name)},i))})};ds.propTypes={options:s.arrayOf(s.object),cssProps:s.shape({borderColor:s.string.isRequired,textColor:s.string.isRequired})};const e0=Ki.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:t0,setShowUserMenu:n0}=e0.actions,r0="_UserMenuTrigger_uglss_2",o0={UserMenuTrigger:r0},fs=({cssClass:e,loginLocale:t="login"})=>{const n=kn.useDispatch(),r=kn.useSelector(l=>l.userState.user.isLoggedIn),o=kn.useSelector(l=>l.userState.user.username),{t:i}=Oe.useTranslation(),a=()=>{n(r?t0(!0):n0(!0))};return h.jsx("div",{className:`${o0.UserMenuTrigger} link ${e}`,onClick:a,children:r?o:i(t)})};fs.propTypes={onClickLoggedIn:s.func.isRequired,onClickLoggedOut:s.func.isRequired,log:s.bool,name:s.string,cssClass:s.string,loginLocale:s.string};const i0="_header_1w621_2",a0="_leftComponents_1w621_12",s0="_centerComponents_1w621_13",l0="_rightComponents_1w621_14",rr={header:i0,leftComponents:a0,centerComponents:s0,rightComponents:l0},ms=({cssProps:e,leftComponents:t=[],centerComponents:n=[],rightComponents:r=[]})=>h.jsxs("div",{className:rr.header,style:e,children:[h.jsx("div",{className:rr.leftComponents,style:{height:e.height},children:t.map((o,i)=>h.jsx("div",{style:{height:e.height},children:o},i))}),h.jsx("div",{className:rr.centerComponents,style:{height:e.height},children:n.map((o,i)=>h.jsx("div",{style:{height:e.height},children:o},i))}),h.jsx("div",{className:rr.rightComponents,style:{height:e.height},children:r.map((o,i)=>h.jsx("div",{style:{height:e.height},children:o},i))})]});ms.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 c0="_sidebar_1jqo2_2",u0="_open_1jqo2_16",d0="_content_1jqo2_20",f0="_closeButton_1jqo2_26",or={sidebar:c0,open:u0,content:d0,closeButton:f0},ps=({width:e="300px",children:t,showRightBar:n,onCloseBar:r})=>{const o=()=>{r()};return h.jsx("div",{className:`${or.sidebar} ${n?or.open:""}`,style:{width:n?e:0},children:n&&h.jsxs("div",{className:or.content,children:[h.jsx("button",{className:or.closeButton,onClick:o,children:"×"}),t]})})};ps.propTypes={width:s.string,children:s.node,showRightBar:s.bool,onCloseBar:s.func};exports.AmbitSelector=ea;exports.ButtonsList=ta;exports.DropdownList=Ot;exports.EditAmbit=hl;exports.FiltersAmbit=Dl;exports.Graphic=ua;exports.HeaderSection=ms;exports.IndicatorsList=ma;exports.LangSelector=pa;exports.Legend=ha;exports.LogoApp=ga;exports.MapboxMap=va;exports.MaplibreMap=Da;exports.RightSidebar=ps;exports.SectionBar=Fa;exports.TimeSlider=us;exports.Tooltip=yo;exports.TopNavMenu=ds;exports.UserMenuTrigger=fs;
|
|
96
|
+
} });`:Pn(12,C?` (${C})`:"",JSON.stringify(d.main)));return zs(d,"light",R,r),zs(d,"dark",j,r),d.contrastText||(d.contrastText=f(d.main)),d},v={dark:Qr,light:Fs};return process.env.NODE_ENV!=="production"&&(v[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),mt(B({common:B({},An),mode:t,primary:h({color:s,name:"primary"}),secondary:h({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:l,name:"error"}),warning:h({color:p,name:"warning"}),info:h({color:c,name:"info"}),success:h({color:u,name:"success"}),grey:Hp,contrastThreshold:n,getContrastText:f,augmentColor:h,tonalOffset:r},v[t]),o)}const th=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function nh(e){return Math.round(e*1e5)/1e5}const Bs={textTransform:"uppercase"},Us='"Roboto", "Helvetica", "Arial", sans-serif';function rh(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Us,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:i=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:p,pxToRem:f}=n,h=xt(n,th);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 v=o/14,x=f||(S=>`${S/u*v}rem`),d=(S,R,j,k,_)=>B({fontFamily:r,fontWeight:S,fontSize:x(R),lineHeight:j},r===Us?{letterSpacing:`${nh(k/R)}em`}:{},_,p),C={h1:d(s,96,1.167,-1.5),h2:d(s,60,1.2,-.5),h3:d(i,48,1.167,0),h4:d(i,34,1.235,.25),h5:d(i,24,1.334,0),h6:d(l,20,1.6,.15),subtitle1:d(i,16,1.75,.15),subtitle2:d(l,14,1.57,.1),body1:d(i,16,1.5,.15),body2:d(i,14,1.43,.15),button:d(l,14,1.75,.4,Bs),caption:d(i,12,1.66,.4),overline:d(i,12,2.66,1,Bs),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return mt(B({htmlFontSize:u,pxToRem:x,fontFamily:r,fontSize:o,fontWeightLight:s,fontWeightRegular:i,fontWeightMedium:l,fontWeightBold:c},C),h,{clone:!1})}const oh=.2,sh=.14,ih=.12;function Re(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${oh})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${sh})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${ih})`].join(",")}const ah=["none",Re(0,2,1,-1,0,1,1,0,0,1,3,0),Re(0,3,1,-2,0,2,2,0,0,1,5,0),Re(0,3,3,-2,0,3,4,0,0,1,8,0),Re(0,2,4,-1,0,4,5,0,0,1,10,0),Re(0,3,5,-1,0,5,8,0,0,1,14,0),Re(0,3,5,-1,0,6,10,0,0,1,18,0),Re(0,4,5,-2,0,7,10,1,0,2,16,1),Re(0,5,5,-3,0,8,10,1,0,3,14,2),Re(0,5,6,-3,0,9,12,1,0,3,16,2),Re(0,6,6,-3,0,10,14,1,0,4,18,3),Re(0,6,7,-4,0,11,15,1,0,4,20,3),Re(0,7,8,-4,0,12,17,2,0,5,22,4),Re(0,7,8,-4,0,13,19,2,0,5,24,4),Re(0,7,9,-4,0,14,21,2,0,5,26,4),Re(0,8,9,-5,0,15,22,2,0,6,28,5),Re(0,8,10,-5,0,16,24,2,0,6,30,5),Re(0,8,11,-5,0,17,26,2,0,6,32,5),Re(0,9,11,-5,0,18,28,2,0,7,34,6),Re(0,9,12,-6,0,19,29,2,0,7,36,6),Re(0,10,13,-6,0,20,31,3,0,8,38,7),Re(0,10,13,-6,0,21,33,3,0,8,40,7),Re(0,10,14,-6,0,22,35,3,0,8,42,7),Re(0,11,14,-7,0,23,36,3,0,9,44,8),Re(0,11,15,-7,0,24,38,3,0,9,46,8)],lh=["duration","easing","delay"],ch={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)"},uh={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Vs(e){return`${Math.round(e)}ms`}function fh(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function dh(e){const t=B({},ch,e.easing),n=B({},uh,e.duration);return B({getAutoHeightDuration:fh,create:(o=["all"],s={})=>{const{duration:i=n.standard,easing:l=t.easeInOut,delay:c=0}=s,u=xt(s,lh);if(process.env.NODE_ENV!=="production"){const p=h=>typeof h=="string",f=h=>!isNaN(parseFloat(h));!p(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!f(i)&&!p(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),p(l)||console.error('MUI: Argument "easing" must be a string.'),!f(c)&&!p(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof s!="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(p=>`${p} ${typeof i=="string"?i:Vs(i)} ${l} ${typeof c=="string"?c:Vs(c)}`).join(",")}},e,{easing:t,duration:n})}const ph={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},hh=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function mh(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:s={}}=e,i=xt(e,hh);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.":Pn(18));const l=eh(r),c=Qi(e);let u=mt(c,{mixins:Wp(c.breakpoints,n),palette:l,shadows:ah.slice(),typography:rh(l,s),transitions:dh(o),zIndex:B({},ph)});if(u=mt(u,i),u=t.reduce((p,f)=>mt(p,f),u),process.env.NODE_ENV!=="production"){const p=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],f=(h,v)=>{let x;for(x in h){const d=h[x];if(p.indexOf(x)!==-1&&Object.keys(d).length>0){if(process.env.NODE_ENV!=="production"){const C=Eo("",x);console.error([`MUI: The \`${v}\` component increases the CSS specificity of the \`${x}\` internal state.`,"You can not override it like this: ",JSON.stringify(h,null,2),"",`Instead, you need to use the '&.${C}' syntax:`,JSON.stringify({root:{[`&.${C}`]:d}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
98
|
+
`))}h[x]={}}}};Object.keys(u.components).forEach(h=>{const v=u.components[h].styleOverrides;v&&h.indexOf("Mui")===0&&f(v,h)})}return u.unstable_sxConfig=B({},zn,i==null?void 0:i.unstable_sxConfig),u.unstable_sx=function(f){return Er({sx:f,theme:this})},u}const gh=mh(),yh="$$material";var Nt={},eo={exports:{}},qs;function vh(){return qs||(qs=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 s in o)({}).hasOwnProperty.call(o,s)&&(n[s]=o[s])}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:{}},Ws;function bh(){return Ws||(Ws=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var s in n)if({}.hasOwnProperty.call(n,s)){if(r.indexOf(s)!==-1)continue;o[s]=n[s]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(to)),to.exports}const xh=kt(zp),_h=kt(Ff),Ch=kt(Hf),Sh=kt(Wf),Th=kt(ap),wh=kt(qp);var Hs;function Eh(){if(Hs)return Nt;Hs=1;var e=Ui();Object.defineProperty(Nt,"__esModule",{value:!0}),Nt.default=F,Nt.shouldForwardProp=C,Nt.systemDefaultTheme=void 0;var t=e(vh()),n=e(bh()),r=v(xh),o=_h,s=e(Ch),i=e(Sh),l=e(Th),c=e(wh);const u=["ownerState"],p=["variants"],f=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function h(y){if(typeof WeakMap!="function")return null;var w=new WeakMap,T=new WeakMap;return(h=function($){return $?T:w})(y)}function v(y,w){if(y&&y.__esModule)return y;if(y===null||typeof y!="object"&&typeof y!="function")return{default:y};var T=h(w);if(T&&T.has(y))return T.get(y);var $={__proto__:null},N=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var H in y)if(H!=="default"&&Object.prototype.hasOwnProperty.call(y,H)){var U=N?Object.getOwnPropertyDescriptor(y,H):null;U&&(U.get||U.set)?Object.defineProperty($,H,U):$[H]=y[H]}return $.default=y,T&&T.set(y,$),$}function x(y){return Object.keys(y).length===0}function d(y){return typeof y=="string"&&y.charCodeAt(0)>96}function C(y){return y!=="ownerState"&&y!=="theme"&&y!=="sx"&&y!=="as"}const S=Nt.systemDefaultTheme=(0,l.default)(),R=y=>y&&y.charAt(0).toLowerCase()+y.slice(1);function j({defaultTheme:y,theme:w,themeId:T}){return x(w)?y:w[T]||w}function k(y){return y?(w,T)=>T[y]:null}function _(y,w){let{ownerState:T}=w,$=(0,n.default)(w,u);const N=typeof y=="function"?y((0,t.default)({ownerState:T},$)):y;if(Array.isArray(N))return N.flatMap(H=>_(H,(0,t.default)({ownerState:T},$)));if(N&&typeof N=="object"&&Array.isArray(N.variants)){const{variants:H=[]}=N;let ce=(0,n.default)(N,p);return H.forEach(K=>{let se=!0;typeof K.props=="function"?se=K.props((0,t.default)({ownerState:T},$,T)):Object.keys(K.props).forEach(re=>{(T==null?void 0:T[re])!==K.props[re]&&$[re]!==K.props[re]&&(se=!1)}),se&&(Array.isArray(ce)||(ce=[ce]),ce.push(typeof K.style=="function"?K.style((0,t.default)({ownerState:T},$,T)):K.style))}),ce}return N}function F(y={}){const{themeId:w,defaultTheme:T=S,rootShouldForwardProp:$=C,slotShouldForwardProp:N=C}=y,H=U=>(0,c.default)((0,t.default)({},U,{theme:j((0,t.default)({},U,{defaultTheme:T,themeId:w}))}));return H.__mui_systemSx=!0,(U,ce={})=>{(0,r.internal_processStyles)(U,V=>V.filter(G=>!(G!=null&&G.__mui_systemSx)));const{name:K,slot:se,skipVariantsResolver:re,skipSx:ke,overridesResolver:$e=k(R(se))}=ce,O=(0,n.default)(ce,f),A=re!==void 0?re:se&&se!=="Root"&&se!=="root"||!1,Q=ke||!1;let q;process.env.NODE_ENV!=="production"&&K&&(q=`${K}-${R(se||"Root")}`);let z=C;se==="Root"||se==="root"?z=$:se?z=N:d(U)&&(z=void 0);const ee=(0,r.default)(U,(0,t.default)({shouldForwardProp:z,label:q},O)),Z=V=>typeof V=="function"&&V.__emotion_real!==V||(0,o.isPlainObject)(V)?G=>_(V,(0,t.default)({},G,{theme:j({theme:G.theme,defaultTheme:T,themeId:w})})):V,Y=(V,...G)=>{let ne=Z(V);const be=G?G.map(Z):[];K&&$e&&be.push(ie=>{const ae=j((0,t.default)({},ie,{defaultTheme:T,themeId:w}));if(!ae.components||!ae.components[K]||!ae.components[K].styleOverrides)return null;const Oe=ae.components[K].styleOverrides,Ve={};return Object.entries(Oe).forEach(([qe,ft])=>{Ve[qe]=_(ft,(0,t.default)({},ie,{theme:ae}))}),$e(ie,Ve)}),K&&!A&&be.push(ie=>{var ae;const Oe=j((0,t.default)({},ie,{defaultTheme:T,themeId:w})),Ve=Oe==null||(ae=Oe.components)==null||(ae=ae[K])==null?void 0:ae.variants;return _({variants:Ve},(0,t.default)({},ie,{theme:Oe}))}),Q||be.push(H);const P=be.length-G.length;if(Array.isArray(V)&&P>0){const ie=new Array(P).fill("");ne=[...V,...ie],ne.raw=[...V.raw,...ie]}const xe=ee(ne,...be);if(process.env.NODE_ENV!=="production"){let ie;K&&(ie=`${K}${(0,s.default)(se||"")}`),ie===void 0&&(ie=`Styled(${(0,i.default)(U)})`),xe.displayName=ie}return U.muiName&&(xe.muiName=U.muiName),xe};return ee.withConfig&&(Y.withConfig=ee.withConfig),Y}}return Nt}var kh=Eh();const Rh=Gs(kh);function Po(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Oh=e=>Po(e)&&e!=="classes",Ft=Rh({themeId:yh,defaultTheme:gh,rootShouldForwardProp:Oh}),jh=X.createContext(void 0);process.env.NODE_ENV!=="production"&&(a.node,a.object);function $h(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 Ph({props:e,name:t}){const n=X.useContext(jh);return $h({props:e,name:t,theme:{components:n}})}process.env.NODE_ENV!=="production"&&(a.node,a.object.isRequired);function Mh(e){return Ph(e)}const Lh=e=>!e||!jn(e);function Ah(e){return Eo("MuiSlider",e)}const at=id("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"]),Nh=e=>{const{open:t}=e;return{offset:Et(t&&at.valueLabelOpen),circle:at.valueLabelCircle,label:at.valueLabelLabel}};function ca(e){const{children:t,className:n,value:r}=e,o=Nh(e);return t?X.cloneElement(t,{className:Et(t.props.className)},m.jsxs(X.Fragment,{children:[t.props.children,m.jsx("span",{className:Et(o.offset,n),"aria-hidden":!0,children:m.jsx("span",{className:o.circle,children:m.jsx("span",{className:o.label,children:r})})})]})):null}process.env.NODE_ENV!=="production"&&(ca.propTypes={children:a.element.isRequired,className:a.string,value:a.node});const Ih=["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 Ks(e){return e}const Dh=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"},[`&.${at.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${at.dragging}`]:{[`& .${at.thumb}, & .${at.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}}]}}),Fh=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}}]}),zh=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:ht.lighten(e.palette[n].main,.62),borderColor:ht.lighten(e.palette[n].main,.62)},e.applyStyles("dark",{backgroundColor:ht.darken(e.palette[n].main,.5)}),e.applyStyles("dark",{borderColor:ht.darken(e.palette[n].main,.5)})))}))]}}),Bh=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%)"},[`&.${at.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, &.${at.focusVisible}`]:B({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${ht.alpha(e.palette[n].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${at.active}`]:B({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${ht.alpha(e.palette[n].main,.16)}`})}}))]}}),Uh=Ft(ca,{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%"},[`&.${at.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%"},[`&.${at.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"}}]})),Vh=Ft("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Po(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}}]})),qh=Ft("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Po(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}}]})),Wh=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:s,classes:i,color:l,size:c}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",s==="inverted"&&"trackInverted",s===!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 Ef(u,Ah,i)},Hh=({children:e})=>e,ua=X.forwardRef(function(t,n){var r,o,s,i,l,c,u,p,f,h,v,x,d,C,S,R,j,k,_,F,y,w,T,$;const N=Mh({props:t,name:"MuiSlider"}),H=Mf(),{"aria-label":U,"aria-valuetext":ce,"aria-labelledby":K,component:se="span",components:re={},componentsProps:ke={},color:$e="primary",classes:O,className:A,disableSwap:Q=!1,disabled:q=!1,getAriaLabel:z,getAriaValueText:ee,marks:Z=!1,max:Y=100,min:V=0,orientation:G="horizontal",shiftStep:ne=10,size:be="medium",step:P=1,scale:xe=Ks,slotProps:ie,slots:ae,track:Oe="normal",valueLabelDisplay:Ve="off",valueLabelFormat:qe=Ks}=N,ft=xt(N,Ih),De=B({},N,{isRtl:H,max:Y,min:V,classes:O,disabled:q,disableSwap:Q,orientation:G,marks:Z,color:$e,size:be,step:P,shiftStep:ne,scale:xe,track:Oe,valueLabelDisplay:Ve,valueLabelFormat:qe}),{axisProps:_t,getRootProps:jt,getHiddenInputProps:hn,getThumbProps:mn,open:gn,active:zt,axis:Ct,focusedThumbIndex:M,range:D,dragging:W,marks:de,values:pe,trackOffset:fe,trackLeap:Je,getThumbStyle:rt}=hd(B({},De,{rootRef:n}));De.marked=de.length>0&&de.some(J=>J.label),De.dragging=W,De.focusedThumbIndex=M;const he=Wh(De),Ke=(r=(o=ae==null?void 0:ae.root)!=null?o:re.Root)!=null?r:Dh,dt=(s=(i=ae==null?void 0:ae.rail)!=null?i:re.Rail)!=null?s:Fh,yn=(l=(c=ae==null?void 0:ae.track)!=null?c:re.Track)!=null?l:zh,yt=(u=(p=ae==null?void 0:ae.thumb)!=null?p:re.Thumb)!=null?u:Bh,Bt=(f=(h=ae==null?void 0:ae.valueLabel)!=null?h:re.ValueLabel)!=null?f:Uh,$t=(v=(x=ae==null?void 0:ae.mark)!=null?x:re.Mark)!=null?v:Vh,Ut=(d=(C=ae==null?void 0:ae.markLabel)!=null?C:re.MarkLabel)!=null?d:qh,Un=(S=(R=ae==null?void 0:ae.input)!=null?R:re.Input)!=null?S:"input",Vt=(j=ie==null?void 0:ie.root)!=null?j:ke.root,jr=(k=ie==null?void 0:ie.rail)!=null?k:ke.rail,qt=(_=ie==null?void 0:ie.track)!=null?_:ke.track,Wt=(F=ie==null?void 0:ie.thumb)!=null?F:ke.thumb,vn=(y=ie==null?void 0:ie.valueLabel)!=null?y:ke.valueLabel,$r=(w=ie==null?void 0:ie.mark)!=null?w:ke.mark,Vn=(T=ie==null?void 0:ie.markLabel)!=null?T:ke.markLabel,qn=($=ie==null?void 0:ie.input)!=null?$:ke.input,Pr=Tt({elementType:Ke,getSlotProps:jt,externalSlotProps:Vt,externalForwardedProps:ft,additionalProps:B({},Lh(Ke)&&{as:se}),ownerState:B({},De,Vt==null?void 0:Vt.ownerState),className:[he.root,A]}),Mr=Tt({elementType:dt,externalSlotProps:jr,ownerState:De,className:he.rail}),Lr=Tt({elementType:yn,externalSlotProps:qt,additionalProps:{style:B({},_t[Ct].offset(fe),_t[Ct].leap(Je))},ownerState:B({},De,qt==null?void 0:qt.ownerState),className:he.track}),bn=Tt({elementType:yt,getSlotProps:mn,externalSlotProps:Wt,ownerState:B({},De,Wt==null?void 0:Wt.ownerState),className:he.thumb}),g=Tt({elementType:Bt,externalSlotProps:vn,ownerState:B({},De,vn==null?void 0:vn.ownerState),className:he.valueLabel}),E=Tt({elementType:$t,externalSlotProps:$r,ownerState:De,className:he.mark}),I=Tt({elementType:Ut,externalSlotProps:Vn,ownerState:De,className:he.markLabel}),te=Tt({elementType:Un,getSlotProps:hn,externalSlotProps:qn,ownerState:De});return m.jsxs(Ke,B({},Pr,{children:[m.jsx(dt,B({},Mr)),m.jsx(yn,B({},Lr)),de.filter(J=>J.value>=V&&J.value<=Y).map((J,oe)=>{const ue=dr(J.value,V,Y),le=_t[Ct].offset(ue);let we;return Oe===!1?we=pe.indexOf(J.value)!==-1:we=Oe==="normal"&&(D?J.value>=pe[0]&&J.value<=pe[pe.length-1]:J.value<=pe[0])||Oe==="inverted"&&(D?J.value<=pe[0]||J.value>=pe[pe.length-1]:J.value>=pe[0]),m.jsxs(X.Fragment,{children:[m.jsx($t,B({"data-index":oe},E,!jn($t)&&{markActive:we},{style:B({},le,E.style),className:Et(E.className,we&&he.markActive)})),J.label!=null?m.jsx(Ut,B({"aria-hidden":!0,"data-index":oe},I,!jn(Ut)&&{markLabelActive:we},{style:B({},le,I.style),className:Et(he.markLabel,I.className,we&&he.markLabelActive),children:J.label})):null]},oe)}),pe.map((J,oe)=>{const ue=dr(J,V,Y),le=_t[Ct].offset(ue),we=Ve==="off"?Hh:Bt;return m.jsx(we,B({},!jn(we)&&{valueLabelFormat:qe,valueLabelDisplay:Ve,value:typeof qe=="function"?qe(xe(J),oe):qe,index:oe,open:gn===oe||zt===oe||Ve==="on",disabled:q},g,{children:m.jsx(yt,B({"data-index":oe},bn,{className:Et(he.thumb,bn.className,zt===oe&&he.active,M===oe&&he.focusVisible),style:B({},le,rt(oe),bn.style),children:m.jsx(Un,B({"data-index":oe,"aria-label":z?z(oe):U,"aria-valuenow":xe(J),"aria-labelledby":K,"aria-valuetext":ee?ee(xe(J),oe):ce,value:pe[oe]},te))}))}),oe)})]}))});process.env.NODE_ENV!=="production"&&(ua.propTypes={"aria-label":_s(a.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":a.string,"aria-valuetext":_s(a.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:a.node,classes:a.object,className:a.string,color:a.oneOfType([a.oneOf(["primary","secondary","error","info","success","warning"]),a.string]),components:a.shape({Input:a.elementType,Mark:a.elementType,MarkLabel:a.elementType,Rail:a.elementType,Root:a.elementType,Thumb:a.elementType,Track:a.elementType,ValueLabel:a.elementType}),componentsProps:a.shape({input:a.oneOfType([a.func,a.object]),mark:a.oneOfType([a.func,a.object]),markLabel:a.oneOfType([a.func,a.object]),rail:a.oneOfType([a.func,a.object]),root:a.oneOfType([a.func,a.object]),thumb:a.oneOfType([a.func,a.object]),track:a.oneOfType([a.func,a.object]),valueLabel:a.oneOfType([a.func,a.shape({children:a.element,className:a.string,open:a.bool,style:a.object,value:a.number,valueLabelDisplay:a.oneOf(["auto","off","on"])})])}),defaultValue:a.oneOfType([a.arrayOf(a.number),a.number]),disabled:a.bool,disableSwap:a.bool,getAriaLabel:a.func,getAriaValueText:a.func,marks:a.oneOfType([a.arrayOf(a.shape({label:a.node,value:a.number.isRequired})),a.bool]),max:a.number,min:a.number,name:a.string,onChange:a.func,onChangeCommitted:a.func,orientation:a.oneOf(["horizontal","vertical"]),scale:a.func,shiftStep:a.number,size:a.oneOfType([a.oneOf(["small","medium"]),a.string]),slotProps:a.shape({input:a.oneOfType([a.func,a.object]),mark:a.oneOfType([a.func,a.object]),markLabel:a.oneOfType([a.func,a.object]),rail:a.oneOfType([a.func,a.object]),root:a.oneOfType([a.func,a.object]),thumb:a.oneOfType([a.func,a.object]),track:a.oneOfType([a.func,a.object]),valueLabel:a.oneOfType([a.func,a.shape({children:a.element,className:a.string,open:a.bool,style:a.object,value:a.number,valueLabelDisplay:a.oneOf(["auto","off","on"])})])}),slots:a.shape({input:a.elementType,mark:a.elementType,markLabel:a.elementType,rail:a.elementType,root:a.elementType,thumb:a.elementType,track:a.elementType,valueLabel:a.elementType}),step:a.number,sx:a.oneOfType([a.arrayOf(a.oneOfType([a.func,a.object,a.bool])),a.func,a.object]),tabIndex:a.number,track:a.oneOf(["inverted","normal",!1]),value:a.oneOfType([a.arrayOf(a.number),a.number]),valueLabelDisplay:a.oneOf(["auto","off","on"]),valueLabelFormat:a.oneOfType([a.func,a.string])});const Kh="_slider_a19yo_2",Yh="_playButton_a19yo_17",Zh="_hover_a19yo_20",Gh="_sliderOpen_a19yo_28",Jh="_sliderResults_a19yo_32",En={slider:Kh,playButton:Yh,hover:Zh,sliderOpen:Gh,sliderResults:Jh},fa=({onResults:e=!1,defaultYear:t=2025,firstYear:n=2025,lastYear:r=2050,zIndex:o=10,rightBarOpen:s=!1})=>{const[i,l]=b.useState(t),c=kn.useDispatch(),u=(S,R)=>{l(R),c(Zr(R-2e3))},[p,f]=b.useState(!1),h=()=>{f(!0)},v=()=>{f(!1)};((S,R)=>{const j=b.useRef();b.useEffect(()=>{j.current=S},[S]),b.useEffect(()=>{function k(){j.current()}{let _=setInterval(k,R);return()=>clearInterval(_)}},[R])})(()=>{p&&(i!=2050?(l(i+1),c(Zr(i-2e3+1))):(l(2025),c(Zr(25))))},1e3);const d=No.createTheme({palette:{primary:{main:"#605b56"}},components:{MuiSlider:{styleOverrides:{mark:{height:10,backgroundColor:"#605b56"},valueLabel:{backgroundColor:"transparent",color:"#605b56",padding:0,top:3}}}}}),C=[{label:"",value:2025},{label:"",value:2032},{label:"",value:2041},{label:"",value:2050}];return m.jsx(on.ThemeProvider,{theme:d,children:m.jsxs(No.Box,{sx:{width:400},className:`${e?En.sliderResults:En.slider} ${s?En.sliderOpen:""}`,style:{zIndex:o},children:[n,m.jsx(ua,{"aria-label":"TimeSlider",value:i,valueLabelDisplay:"on",step:1,marks:C,min:n,max:r,onChange:u,color:"primary",size:"small"}),r,!p&&m.jsx("button",{className:En.playButton,onClick:h,children:m.jsx("img",{src:Tf,alt:"Play"})}),p&&m.jsx("button",{className:En.playButton,onClick:v,children:m.jsx("img",{src:wf,alt:"Pause"})})]})})};fa.propTypes={defaultYear:a.number,onResults:a.bool,firstYear:a.number,lastYear:a.number,zIndex:a.number,rightBarOpen:a.bool};const Xh="_TopNavMenuContainer_1j1d1_2",Qh="_topNavOptions_1j1d1_11",em="_active_1j1d1_22",no={TopNavMenuContainer:Xh,topNavOptions:Qh,active:em},da=({options:e=[],cssProps:t={}})=>{const{t:n}=Te.useTranslation(),r=t.textColor||"inherit";return t.borderColor,m.jsx("div",{className:no.TopNavMenuContainer,children:e.map((o,s)=>m.jsx(Ra.NavLink,{to:o.url,className:({isActive:i})=>`${no.topNavOptions} ${i?no.active:""}`,style:{color:r},children:n(o.name)},s))})};da.propTypes={options:a.arrayOf(a.object),cssProps:a.shape({borderColor:a.string.isRequired,textColor:a.string.isRequired})};const tm=Ys.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:nm,setShowUserMenu:rm}=tm.actions,om="_UserMenuTrigger_uglss_2",sm={UserMenuTrigger:om},pa=({cssClass:e,loginLocale:t="login"})=>{const n=kn.useDispatch(),r=kn.useSelector(l=>l.userState.user.isLoggedIn),o=kn.useSelector(l=>l.userState.user.username),{t:s}=Te.useTranslation(),i=()=>{n(r?nm(!0):rm(!0))};return m.jsx("div",{className:`${sm.UserMenuTrigger} link ${e}`,onClick:i,children:r?o:s(t)})};pa.propTypes={onClickLoggedIn:a.func.isRequired,onClickLoggedOut:a.func.isRequired,log:a.bool,name:a.string,cssClass:a.string,loginLocale:a.string};const im="_header_1w621_2",am="_leftComponents_1w621_12",lm="_centerComponents_1w621_13",cm="_rightComponents_1w621_14",rr={header:im,leftComponents:am,centerComponents:lm,rightComponents:cm},ha=({cssProps:e,leftComponents:t=[],centerComponents:n=[],rightComponents:r=[]})=>m.jsxs("div",{className:rr.header,style:e,children:[m.jsx("div",{className:rr.leftComponents,style:{height:e.height},children:t.map((o,s)=>m.jsx("div",{style:{height:e.height},children:o},s))}),m.jsx("div",{className:rr.centerComponents,style:{height:e.height},children:n.map((o,s)=>m.jsx("div",{style:{height:e.height},children:o},s))}),m.jsx("div",{className:rr.rightComponents,style:{height:e.height},children:r.map((o,s)=>m.jsx("div",{style:{height:e.height},children:o},s))})]});ha.propTypes={cssProps:a.shape({backgroundColor:a.string.isRequired,height:a.string.isRequired,borderColor:a.string,textColor:a.string}),leftComponents:a.arrayOf(a.node),centerComponents:a.arrayOf(a.node),rightComponents:a.arrayOf(a.node)};const um="_sidebar_1jqo2_2",fm="_open_1jqo2_16",dm="_content_1jqo2_20",pm="_closeButton_1jqo2_26",or={sidebar:um,open:fm,content:dm,closeButton:pm},ma=({width:e="300px",children:t,showRightBar:n,onCloseBar:r})=>{const o=()=>{r()};return m.jsx("div",{className:`${or.sidebar} ${n?or.open:""}`,style:{width:n?e:0},children:n&&m.jsxs("div",{className:or.content,children:[m.jsx("button",{className:or.closeButton,onClick:o,children:"×"}),t]})})};ma.propTypes={width:a.string,children:a.node,showRightBar:a.bool,onCloseBar:a.func};exports.AmbitSelector=ei;exports.ButtonsList=ti;exports.DropdownList=Rt;exports.EditAmbit=gl;exports.FiltersAmbit=ci;exports.Graphic=fi;exports.HeaderSection=ha;exports.IndicatorsList=hi;exports.LangSelector=mi;exports.Legend=gi;exports.LogoApp=yi;exports.MapboxMap=bi;exports.MaplibreMap=Fi;exports.RightSidebar=ma;exports.SectionBar=zi;exports.TimeSlider=fa;exports.Tooltip=yo;exports.TopNavMenu=da;exports.UserMenuTrigger=pa;
|