eurostat-map
Version:
Reusable library to quickly create and customise web maps showing Eurostat data directly retrieved from Eurostat database.
2 lines • 201 kB
JavaScript
/*! /*! eurostat-map v4.1.16 | 2025 Eurostat | EUPL License. See https://github.com/eurostat/eurostat-map/blob/master/LICENSE * / */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.eurostatmap=e():t.eurostatmap=e()}(self,(()=>(()=>{"use strict";var t,e={419:(t,e,a)=>{a.d(e,{o:()=>o});var n=a(183),r=a(8465),s=a(5097),i=a(6033),o=function(t,e){var a=s.o(t);if(a.legendSpacing=15,a.sizeLegend={title:null,titlePadding:30,values:null},a.colorLegend={title:null,labelOffset:5,shapeWidth:25,shapeHeight:20,shapePadding:5,noData:!0,noDataText:"No data"},a._sizeLegendHeight=0,e)for(var o in e)if("colorLegend"==o||"sizeLegend"==o)for(var l in a[o])void 0!==e[o][l]&&(a[o][l]=e[o][l]);else a[o]=e[o];function c(t,e){var a=t.svg_.selectAll(".piechart").selectAll("path[code]");a.style("fill","white"),a.filter("path[code='"+e+"']").each((function(){(0,n.A)(this).style("fill",(0,n.A)(this).attr("fill___"))}))}function u(t){t.svg_.selectAll(".piechart").selectAll("path[code]").each((function(){(0,n.A)(this).style("fill",(0,n.A)(this).attr("fill___"))}))}return a.update=function(){var t=a.map,e=a.lgg;e.selectAll("*").remove(),a.makeBackgroundBox(),t.sizeClassifier_&&function(t,e,n){var s=t.sizeClassifier_.domain();n.values||(n.values=[Math.floor(s[1]),Math.floor(s[0])]);var i=t.sizeClassifier_((0,r.A)(n.values)),o=e.append("g").attr("class","em-pie-size-legend");!n.title&&a.title&&(n.title=a.title);var l=0;n.title&&(o.append("text").attr("class","em-legend-title").attr("x",0).attr("y",a.boxPadding+a.titleFontSize).text(n.title),l=a.titleFontSize+a.boxPadding+n.titlePadding);var c=l+a.boxPadding+2*i,u=o.selectAll("g").data(n.values).join("g").attr("class","em-pie-size-legend-item").attr("transform","translate(".concat(i+a.boxPadding,", ").concat(c,")"));u.append("circle").attr("class","em-pie-size-legend-circle").style("fill","none").attr("stroke","black").attr("cy",(function(e){return-t.sizeClassifier_(e)})).attr("r",t.sizeClassifier_),u.append("text").attr("class","em-legend-label").attr("y",(function(e){return-2*t.sizeClassifier_(e)-a.labelFontSize-2})).attr("x",30).attr("dy","1.2em").attr("xml:space","preserve").text((function(t){return t.toLocaleString("en").replace(/,/gi," ")})),u.append("line").attr("class","em-pie-size-legend-line").attr("x1",2).attr("x2",30).attr("y1",(function(e){return-2*t.sizeClassifier_(e)})).attr("y2",(function(e){return-2*t.sizeClassifier_(e)})),a._sizeLegendHeight=c}(t,e,a.sizeLegend),function(t,e,n){var r=e.append("g").attr("class","em-pie-color-legend");n.title&&r.append("text").attr("class","em-legend-title").attr("x",a.boxPadding).attr("y",a._sizeLegendHeight+a.legendSpacing+a.boxPadding+a.titleFontSize).text(n.title);var s=0,o=t.catColors(),l=function(e){var l=a._sizeLegendHeight+a.legendSpacing+a.boxPadding+(n.title?a.titleFontSize+a.boxPadding:0)+s*(n.shapeHeight+n.shapePadding);t.catColors()[e];r.append("rect").attr("class","em-legend-rect").attr("x",a.boxPadding).attr("y",l).attr("width",n.shapeWidth).attr("height",n.shapeHeight).style("fill",o[e]).attr("stroke","black").attr("stroke-width",.5).on("mouseover",(function(){c(a.map,e),a.map.insetTemplates_&&(0,i.Qv)(a.map.insetTemplates_,a.map.svgId,c,e)})).on("mouseout",(function(){u(a.map),a.map.insetTemplates_&&(0,i.Qv)(a.map.insetTemplates_,a.map.svgId,u,e)})),r.append("text").attr("class","em-legend-label").attr("x",a.boxPadding+n.shapeWidth+n.labelOffset).attr("y",l+.5*n.shapeHeight).attr("dominant-baseline","middle").text(t.catLabels()[e]||e),s++};for(var d in o)l(d);if(n.noData){var p=a._sizeLegendHeight+a.legendSpacing+a.boxPadding+(n.title?a.titleFontSize+a.boxPadding:0)+s*(n.shapeHeight+n.shapePadding);r.append("rect").attr("class","em-legend-rect").attr("x",a.boxPadding).attr("y",p).attr("width",n.shapeWidth).attr("height",n.shapeHeight).style("fill",t.noDataFillStyle()).on("mouseover",(function(){c(a.map,"nd"),a.map.insetTemplates_&&(0,i.Qv)(a.map.insetTemplates_,a.map.svgId,c,"nd")})).on("mouseout",(function(){u(a.map),a.map.insetTemplates_&&(0,i.Qv)(a.map.insetTemplates_,a.map.svgId,u,"nd")})),r.append("text").attr("class","em-legend-label").attr("x",a.boxPadding+n.shapeWidth+n.labelOffset).attr("y",p+.5*n.shapeHeight).text(n.noDataText)}}(t,e,a.colorLegend),a.setBoxDimension()},a}},846:(t,e,a)=>{a.d(e,{f:()=>l});var n=a(1371),r=a(658),s=a(6033),i=a(9793),o=a(1992),l=function(t,e){var a={defaultGeoData:void 0,allNUTSGeoData:void 0,geoJSONs:{mixed:{rg0:void 0,rg1:void 0,rg2:void 0,rg3:void 0},cntbn:void 0,cntrg:void 0,nutsbn:void 0,nutsrg:void 0,gra:void 0,worldrg:void 0,worldbn:void 0,kosovo:void 0},userGeometries:void 0,statisticalRegions:void 0,centroidsData:void 0,getDefaultGeoData:function(t,n,s){var i=a.getDefaultGeoDataPromise();return Promise.all(i).then((function(i){return n&&(i=n(i)),a.allNUTSGeoData=i,a.defaultGeoData=i[0],e&&(a.centroidsData="mixed"===s?[i[4],i[5],i[6],i[7]]:i[1]),"WORLD"===t?(a.geoJSONs.worldrg=(0,r.A)(a.defaultGeoData,a.defaultGeoData.objects.CNTR_RG_20M_2020_4326).features,a.geoJSONs.worldbn=(0,r.A)(a.defaultGeoData,a.defaultGeoData.objects.CNTR_BN_20M_2020_4326).features,a.geoJSONs.kosovo=(0,r.A)(a.defaultGeoData,a.defaultGeoData.objects.NUTS_BN_20M_2021_RS_XK_border).features,a.geoJSONs.graticule=[(0,o.A)().step([30,30])()]):(a.geoJSONs.graticule=(0,r.A)(a.defaultGeoData,a.defaultGeoData.objects.gra).features,a.geoJSONs.nutsrg=(0,r.A)(a.defaultGeoData,a.defaultGeoData.objects.nutsrg).features,a.geoJSONs.nutsbn=(0,r.A)(a.defaultGeoData,a.defaultGeoData.objects.nutsbn).features,a.geoJSONs.cntrg=(0,r.A)(a.defaultGeoData,a.defaultGeoData.objects.cntrg).features,a.geoJSONs.cntbn=(0,r.A)(a.defaultGeoData,a.defaultGeoData.objects.cntbn).features),i})).catch((function(t){return Promise.reject(t)}))},getDefaultGeoDataPromise:function(){var a=[0,1,2,3],r=[],s=function(t,e,a,n,r,s){var i=arguments.length>6&&void 0!==arguments[6]&&arguments[6],o="".concat(t,"/").concat(e);return a&&"EUR"!==a&&"WORLD"!==a&&(o+="/".concat(a)),o+="/".concat(n),!i&&r&&(o+="/".concat(r)),o+="/".concat(i?"nutspt_":"").concat(s,".json")};return"mixed"===t.nutsLevel_&&"WORLD"!==t.geo_?(a.forEach((function(e){return r.push((0,n.A)(s(t.nuts2jsonBaseURL_,t.nutsYear_,t.geo_,t.proj_,t.scale_,e)))})),e&&a.forEach((function(e){return r.push((0,n.A)(s(t.nuts2jsonBaseURL_,t.nutsYear_,t.geo_,t.proj_,t.scale_,e,!0)))}))):"WORLD"===t.geo_?r.push((0,n.A)("https://raw.githubusercontent.com/eurostat/eurostat-map/master/src/assets/topojson/WORLD_4326.json")):(r.push((0,n.A)(s(t.nuts2jsonBaseURL_,t.nutsYear_,t.geo_,t.proj_,t.scale_,t.nutsLevel_))),e&&r.push((0,n.A)(s(t.nuts2jsonBaseURL_,t.nutsYear_,t.geo_,t.proj_,t.scale_,t.nutsLevel_,!0)))),r},isGeoReady:function(){if(!a.defaultGeoData&&!a.userGeometries)return!1;var e=!0;return(0,s.Qv)(t.insetTemplates_,null,(function(t){t.Geometries.isGeoReady()||(e=!1)})),e},setUserGeometries:function(t){var e=this;this.userGeometries=t,t.forEach((function(t){t.statisticalRegions&&(e.statisticalRegions=t)}))},addDefaultGeometriesToMap:function(t,e,n,s,o,l,c,u){if(this.geoJSONs.graticule&&e&&t.append("g").attr("id","em-graticule").attr("class","em-graticule").selectAll("path").data(this.geoJSONs.graticule).enter().append("path").attr("d",n),this.geoJSONs.cntrg&&t.append("g").attr("id","em-cntrg").attr("class","em-cntrg").selectAll("path").data(this.geoJSONs.cntrg).enter().append("path").attr("d",n),this.geoJSONs.worldrg&&t.append("g").attr("id","em-worldrg").attr("class","em-worldrg").selectAll("path").data(this.geoJSONs.worldrg).enter().append("path").attr("d",n),this.geoJSONs.nutsrg)if("mixed"==s){if(this.geoJSONs.mixed.rg0=this.geoJSONs.nutsrg,this.geoJSONs.mixed.rg1=(0,r.A)(a.allNUTSGeoData[1],a.allNUTSGeoData[1].objects.nutsrg).features,this.geoJSONs.mixed.rg2=(0,r.A)(a.allNUTSGeoData[2],a.allNUTSGeoData[2].objects.nutsrg).features,this.geoJSONs.mixed.rg3=(0,r.A)(a.allNUTSGeoData[3],a.allNUTSGeoData[3].objects.nutsrg).features,[this.geoJSONs.mixed.rg0,this.geoJSONs.mixed.rg1,this.geoJSONs.mixed.rg2,this.geoJSONs.mixed.rg3].forEach((function(e,a){t.append("g").attr("id","em-nutsrg").attr("class","em-nutsrg").selectAll("path").data(e).enter().append("path").attr("d",n).attr("lvl",a)})),"EUR"==l&&"3035"==c&&("2016"==o||"2021"==o)){var d=(0,r.A)(i.$[u],"nutsbn_1").features;t.append("g").attr("id","em-kosovo-bn").attr("class","em-kosovo-bn em-bn-cc").selectAll("path").data(d).enter().append("path").attr("d",n)}}else t.append("g").attr("id","em-nutsrg").attr("class","em-nutsrg").selectAll("path").data(this.geoJSONs.nutsrg).enter().append("path").attr("d",n);if(this.geoJSONs.cntbn&&t.append("g").attr("id","em-cntbn").attr("class","em-cntbn").selectAll("path").data(this.geoJSONs.cntbn).enter().append("path").filter((function(t){return"T"==t.properties.eu||"T"==t.properties.efta||"T"==t.properties.cc||"T"==t.properties.oth||"T"==t.properties.co?t:void 0})).attr("d",n).attr("id",(function(t){return"em-bn-"+t.properties.id})).attr("class",(function(t){var e=[];return"T"===t.properties.eu&&e.push("em-bn-eu"),"T"===t.properties.efta&&e.push("em-bn-efta"),"T"===t.properties.cc&&e.push("em-bn-cc"),"T"===t.properties.oth&&e.push("em-bn-oth"),"T"===t.properties.co&&e.push("em-bn-co"),e.join(" ")})),this.geoJSONs.nutsbn&&(this.geoJSONs.nutsbn.sort((function(t,e){return e.properties.lvl-t.properties.lvl})),t.append("g").attr("id","em-nutsbn").attr("class","em-nutsbn").selectAll("path").data(this.geoJSONs.nutsbn).enter().filter((function(t){return"T"==t.properties.eu||"T"==t.properties.efta||"T"==t.properties.cc||"T"==t.properties.oth||"T"==t.properties.co?t:void 0})).append("path").attr("d",n).attr("class",(function(t){var e=t.properties;return e.id>1e5?"em-kosovo-bn":"T"===e.co?"em-bn-co":["em-bn-"+e.lvl].join(" ")})),"EUR"==l&&"3035"==c&&("2016"==o||"2021"==o))){var p=(0,r.A)(i.$[u],"nutsbn_1").features;t.append("g").attr("id","em-kosovo-bn").attr("class","em-kosovo-bn").selectAll("path").data(p).enter().append("path").attr("d",n)}this.geoJSONs.worldbn&&t.append("g").attr("id","em-worldbn").attr("class","em-worldbn").selectAll("path").data(this.geoJSONs.worldbn).enter().append("path").attr("d",n).attr("class",(function(t){return t.properties.POL_STAT>0?"em-bn-d":"T"===t.properties.COAS_FLAG?"em-bn-co":"em-worldbn"})),this.geoJSONs.kosovo&&t.append("g").attr("id","em-kosovo-bn").attr("class","em-kosovo-bn").selectAll("path").data(this.geoJSONs.kosovo).enter().append("path").attr("d",n)},addUserGeometriesToMap:function(t,e,a){t.forEach((function(t){var n=e.append("g").attr("id",t.statisticalRegions?"em-user-regions":"").attr("class",t.class?t.class:"").selectAll("path").data(t.features).enter().append("path").attr("d",a);"function"==typeof t.onEach&&t.onEach(n)}))}};return a}},900:(t,e,a)=>{a.d(e,{o:()=>s});var n=a(183),r=a(5097),s=function(t,e){var a=r.o(t);if(a.shapeWidth=25,a.shapeHeight=20,a.shapePadding=5,a.labelFontSize=12,a.labelOffset=5,a.noData=!0,a.noDataText="No data",e)for(var s in e)a[s]=e[s];return a.update=function(){var t=a.map,e=t.svg(),r=a.lgg;r.selectAll("*").remove(),a.makeBackgroundBox(),a.title&&r.append("text").attr("class","em-legnd-title").attr("x",a.boxPadding).attr("y",a.boxPadding+a.titleFontSize).text(a.title);var s=0,i=t.catColors(),o=function(o){var l=a.boxPadding+(a.title?a.titleFontSize+a.boxPadding:0)+s*(a.shapeHeight+a.shapePadding),c=t.catColors()[o]||"lightgray";r.append("rect").attr("class","em-legend-rect").attr("x",a.boxPadding).attr("y",l).attr("width",a.shapeWidth).attr("height",a.shapeHeight).style("fill",i[o]).attr("stroke","black").attr("stroke-width",.5).on("mouseover",(function(){e.selectAll("pattern").selectAll("rect[code='"+o+"']").style("fill",t.hoverColor()),(0,n.A)(this).style("fill",t.hoverColor())})).on("mouseout",(function(){e.selectAll("pattern").selectAll("rect[code='"+o+"']").style("fill",c),(0,n.A)(this).style("fill",c)})),r.append("text").attr("class","em-legend-label").attr("x",a.boxPadding+a.shapeWidth+a.labelOffset).attr("y",l+.5*a.shapeHeight).text(t.catLabels()[o]||o).on("mouseover",(function(){e.selectAll("pattern").selectAll("rect[code='"+o+"']").style("fill",t.hoverColor())})).on("mouseout",(function(){var a=t.catColors()[o]||"lightgray";e.selectAll("pattern").selectAll("rect[code='"+o+"']").style("fill",a)})),s++};for(var l in i)o(l);if(a.noData){var c=a.boxPadding+(a.title?a.titleFontSize+a.boxPadding:0)+s*(a.shapeHeight+a.shapePadding);r.append("rect").attr("class","em-legend-rect").attr("x",a.boxPadding).attr("y",c).attr("width",a.shapeWidth).attr("height",a.shapeHeight).style("fill",t.noDataFillStyle()).on("mouseover",(function(){e.select("#em-nutsrg").selectAll("[nd='nd']").style("fill",t.hoverColor()),(0,n.A)(this).style("fill",t.hoverColor())})).on("mouseout",(function(){e.select("#em-nutsrg").selectAll("[nd='nd']").style("fill",(function(e){t.noDataFillStyle()}));(0,n.A)(this).style("fill",t.noDataFillStyle())})),r.append("text").attr("class","em-legend-label").attr("x",a.boxPadding+a.shapeWidth+a.labelOffset).attr("y",c+.5*a.shapeHeight).text(a.noDataText).on("mouseover",(function(){e.select("#em-nutsrg").selectAll("[nd='nd']").style("fill",t.hoverColor())})).on("mouseout",(function(){e.select("#em-nutsrg").selectAll("[nd='nd']").style("fill",(function(e){t.noDataFillStyle()}))}))}a.setBoxDimension()},a}},1149:(t,e,a)=>{a.d(e,{T:()=>u});var n=a(183),r=a(2130),s=a(2716),i=a(6406),o=a(9695),l=a(900),c=a(6033),u=function(t){var e=o.R(t);e.stripeWidth_=50,e.stripeOrientation_=0,e.catColors_=void 0,e.catLabels_=void 0,e.showOnlyWhenComplete_=!1,e.pieChartRadius_=40,e.pieChartInnerRadius_=15,["stripeWidth_","stripeOrientation_","catColors_","catLabels_","showOnlyWhenComplete_","noDataFillStyle_","pieChartRadius_","pieChartInnerRadius_"].forEach((function(t){e[t.substring(0,t.length-1)]=function(a){return arguments.length?(e[t]=a,e):e[t]}})),t&&["stripeWidth","stripeOrientation","catColors","catLabels","showOnlyWhenComplete","noDataFillStyle","pieChartRadius","pieChartInnerRadius"].forEach((function(a){null!=t[a]&&e[a](t[a])})),e.statComp=function(t,n,r,s,i){t.filters=t.filters||{};for(var o=0;o<r.length;o++){var l=r[o];t.filters[n]=l;var c={};for(var u in t)c[u]=t[u];for(var d in c.filters={},t.filters)c.filters[d]=t.filters[d];e.stat(l,c),i&&(e.catColors_=e.catColors_||{},e.catColors_[l]=i[o]),s&&(e.catLabels_=e.catLabels_||{},e.catLabels_[l]=s[o])}return a=r,e};var a=void 0,u=function(t){for(var n={},r=0,s=0;s<a.length;s++){var i=a[s],o=e.statData(i).get(t);if(!o||0!=o.value&&!o.value||isNaN(o.value)){if(e.showOnlyWhenComplete())return}else n[i]=o.value,r+=o.value}if(0!=r){for(var l=0;l<a.length;l++)n[a[l]]/=r;return n}};return e.updateClassification=function(){if(!a){var t=(a=Object.keys(e.statData_)).indexOf("default");t>-1&&a.splice(t,1)}return e},e.updateStyle=function(){if(!e.catColors()){e.catColors({});for(var t=0;t<a.length;t++)e.catColors()[a[t]]=i.A[t%10]}e.catLabels_=e.catLabels_||{},e.svg().selectAll((0,c.ty)(e)).style("fill",(function(t){var a=t.properties.id,n=u(a);if(!n)return e.noDataFillStyle()||"gray";var r=e.svg().append("pattern").attr("id","pattern_"+a).attr("x","0").attr("y","0").attr("width",e.stripeWidth()).attr("height",1).attr("patternUnits","userSpaceOnUse");e.stripeOrientation()&&r.attr("patternTransform","rotate("+e.stripeOrientation()+")"),r.append("rect").attr("x",0).attr("y",0).attr("width",e.stripeWidth()).attr("height",1).style("stroke","none").style("fill","lightgray");var s=0;for(var i in n){var o=n[i];if(o){o*=e.stripeWidth();var l=e.catColors()[i]||"lightgray";r.append("rect").attr("x",s).attr("y",0).attr("height",1).style("stroke","none").attr("code",i).style("fill",l).transition().duration(e.transitionDuration()).attr("width",o),s+=o}}return"url(#pattern_"+a+")"})).attr("nd",(function(t){return u(t.properties.id)?"":"nd"}));var r=(0,c.ty)(e);return e.svg().selectAll(r).on("mouseover",(function(t,a){var r=(0,n.A)(this);r.attr("fill___",r.style("fill")),r.style("fill",e.hoverColor_),e._tooltip&&e._tooltip.mouseover(e.tooltip_.textFunction(a,e))})).on("mousemove",(function(t,a){e._tooltip&&e._tooltip.mousemove(t)})).on("mouseout",(function(){var t=(0,n.A)(this);t.style("fill");t.attr("fill___")&&(t.style("fill",t.attr("fill___")),e._tooltip&&e._tooltip.mouseout())})),e},e.getLegendConstructor=function(){return l.o},e.tooltip_.textFunction=function(t,a){var i=(0,n.A)("#tooltip_eurostat");i.html(""),i.selectAll("*").remove();var o=t.properties.na||t.properties.name;t.properties.id?i.append("div").html("<b>"+o+"</b> ("+t.properties.id+") <br>"):i.append("div").html("<b>"+o+"</b><br>");var l=[],c=u(t.properties.id);for(var d in c)l.push({code:d,value:c[d]});if(l&&0!=l.length){var p=e.pieChartRadius(),f=e.pieChartInnerRadius(),g=i.append("svg").attr("viewBox",[-p,-p,2*p,2*p]).attr("width",2*p),h=(0,r.A)().sort(null).value((function(t){return t.value}));g.append("g").attr("stroke","darkgray").selectAll("path").data(h(l)).join("path").style("fill",(function(t){return e.catColors()[t.data.code]||"lightgray"})).attr("d",(0,s.A)().innerRadius(f).outerRadius(p))}else i.append("div").html(e.noDataText())},e}},1570:(t,e,a)=>{a.d(e,{T:()=>c});var n=a(9394),r=a(183),s=a(1990),i=a(9695),o=a(8678),l=a(6033),c=function(t){var e=i.R(t);function a(t){var a=e.statData("v1").getArray(),i=e.statData("v2").getArray(),o=e.statData("v3").getArray(),u=(0,n.A)(Array(7).keys());e.classifier1_||e.classifier1((0,s.A)().domain(a).range(u)),e.classifier2_||e.classifier2((0,s.A)().domain(i).range(u)),e.classifier3_||e.classifier3((0,s.A)().domain(o).range(u));var d=(0,l.ty)(t);if(t.svg_){if(t.svg().selectAll(d).attr("ecl1",(function(t){var a=e.statData("v1").get(t.properties.id);if(a){var n=a.value;return 0!=n&&!n||":"==n?"nd":+e.classifier1_(+n)}})).attr("ecl2",(function(t){var a=e.statData("v2").get(t.properties.id);if(a){var n=a.value;return 0!=n&&!n||":"==n?"nd":+e.classifier2_(+n)}})).attr("ecl3",(function(t){var a=e.statData("v3").get(t.properties.id);if(a){var n=a.value;return 0!=n&&!n||":"==n?"nd":+e.classifier3_(+n)}})).attr("regionClass",(function(t){var e=(0,r.A)(this).attr("ecl1"),a=(0,r.A)(this).attr("ecl2"),n=(0,r.A)(this).attr("ecl3");return"nd"===e||"nd"===a||"nd"===n?"nd":!e||a||n?e||!a||n?e||a||!n?e&&a&&!n?4:e&&!a&&n?5:!e&&a&&n?6:e&&a&&n?7:void 0:3:2:1})),"mixed"==t.nutsLevel_&&t.svg().selectAll("path.em-nutsrg0").attr("ecl1",(function(t){var a=e.statData("v1").get(t.properties.id);if(a){var n=a.value;return 0!=n&&!n||":"==n?"nd":+e.classifier1_(+n)}})).attr("ecl2",(function(t){var a=e.statData("v2").get(t.properties.id);if(a){var n=a.value;return 0!=n&&!n||":"==n?"nd":+e.classifier2_(+n)}})).attr("ecl3",(function(t){var a=e.statData("v3").get(t.properties.id);if(a){var n=a.value;return 0!=n&&!n||":"==n?"nd":+e.classifier3_(+n)}})),!e.classToFillStyle()){var p=c(e.color1(),e.color2(),e.color3());e.classToFillStyle(p)}"mixed"==e.nutsLevel_&&t.svg_.selectAll("path.em-nutsrg0").attr("ecl1",(function(t){var a=e.statData("v2").get(t.properties.id);if(a){var n=a.value;return 0!=n&&!n||":"==n?"nd":+e.classifier1_(+n)}})).attr("ecl2",(function(t){var a=e.statData("v2").get(t.properties.id);if(a){var n=a.value;return 0!=n&&!n||":"==n?"nd":+e.classifier2_(+n)}})).attr("ecl3",(function(t){var a=e.statData("v3").get(t.properties.id);if(a){var n=a.value;return 0!=n&&!n||":"==n?"nd":+e.classifier3_(+n)}}))}}e.numberOfClasses_=3,e.startColor_="#e8e8e8",e.color1_="#09F8FF",e.color2_="#F5D300",e.color3_="#FF1493",e.endColor_="#2a5a5b",e.classToFillStyle_=void 0,e.classifier1_=void 0,e.classifier2_=void 0,e.classifier3_=void 0,e.tooltip_.textFunction=d,["numberOfClasses_","startColor_","color1_","color2_","color3_","endColor_","classToFillStyle_","noDataFillStyle_","classifier1_","classifier2_","classifier3_"].forEach((function(t){e[t.substring(0,t.length-1)]=function(a){return arguments.length?(e[t]=a,e):e[t]}})),t&&["numberOfClasses","startColor","color1","color2","color3","endColor","classToFillStyle","noDataFillStyle"].forEach((function(a){null!=t[a]&&e[a](t[a])})),e.updateClassification=function(){return e.insetTemplates_&&(0,l.Qv)(e.insetTemplates_,e.svgId_,a),a(e),e};var c=function(t,e,a){var n=[(0,l.rN)([t,e]),(0,l.rN)([e,a]),(0,l.rN)([t,a]),(0,l.rN)([t,e,a])],r=[t,e,a,n[0],n[1],n[2],n[3]];return function(t){return t>=1&&t<=7?r[t-1]:null}};function p(t){if(t.svg()){var a=(0,l.ty)(t),n=t.svg().selectAll(a);n.transition().duration(e.transitionDuration()).style("fill",(function(t){var a=(0,r.A)(this).attr("ecl1"),n=(0,r.A)(this).attr("ecl2"),s=(0,r.A)(this).attr("ecl3");if("nd"===a)return e.noDataFillStyle()||"gray";if("nd"===n)return e.noDataFillStyle()||"gray";if("nd"===s)return e.noDataFillStyle()||"gray";if(!a&&!n&&!s)return(0,l.hC)("em-nutsrg","fill");var i=(0,r.A)(this).attr("regionClass");return e.classToFillStyle_(i)})).end().then((function(){n.each((function(){var t=(0,r.A)(this);t.attr("fill___",t.style("fill"))})),n.on("mouseover",(function(a,n){(0,r.A)(this).style("fill",t.hoverColor_),e._tooltip&&e._tooltip.mouseover(e.tooltip_.textFunction(n,e))})).on("mousemove",(function(t,a){e._tooltip&&e._tooltip.mousemove(t)})).on("mouseout",(function(){var t=(0,r.A)(this);t.attr("fill___")&&(t.style("fill",t.attr("fill___")),e._tooltip&&e._tooltip.mouseout())}))}),(function(t){})),"mixed"==e.nutsLevel_&&u(t)}}return e.updateStyle=function(){return e.insetTemplates_&&(0,l.Qv)(e.insetTemplates_,e.svgId_,p),p(e),e},e.getLegendConstructor=function(){return o.o},e},u=function(t){t.svg().selectAll((0,l.ty)(t)).style("display",(function(t){var e=(0,r.A)(this),a=e.attr("ecl"),n=e.attr("lvl");t.properties.id.slice(0,2);return a||"0"===n?"block":"none"})).style("stroke",(function(){var t=(0,r.A)(this),e=t.attr("lvl"),a=t.attr("ecl"),n=t.style("stroke");return a&&"0"!==e?n||"#777":null})).style("stroke-width",(function(){var t=(0,r.A)(this),e=t.attr("lvl"),a=t.attr("ecl"),n=t.style("stroke-width");return a&&"0"!==e?n||.2:null}))},d=function(t,e){var a=[];t.properties.id?a.push('<div class="estat-vis-tooltip-bar" >'+t.properties.na+" ("+t.properties.id+") </div>"):a.push('<div class="estat-vis-tooltip-bar" >'+t.properties.na+"</div>");var n=e.statData("v1").get(t.properties.id),r=e.statData("v1").unitText(),s=e.statData("v2").get(t.properties.id),i=e.statData("v2").unitText(),o=e.statData("v3").get(t.properties.id),c=e.statData("v2").unitText();return a.push('\n <div class="estat-vis-tooltip-text" style="background: #ffffff;color: #171a22;padding: 4px;font-size:15px;">\n <table class="nuts-table">\n <tbody>\n <tr>\n <td>\n Variable 1: '.concat(n&&n.value?(0,l.sC)(n.value):""," ").concat(r&&n&&n.value?r:"","\n ").concat(!n||0!=n.value&&!n.value?e.noDataText_:"","\n </td>\n </tr>\n <tr>\n <td>\n Variable 2: ").concat(s&&s.value?(0,l.sC)(s.value):""," ").concat(i&&s&&s.value?i:"","\n ").concat(!s||0!=s.value&&!s.value?e.noDataText_:"","\n </td>\n </tr>\n <tr>\n <td>\n Variable 3: ").concat(o&&o.value?(0,l.sC)(o.value):""," ").concat(c&&o&&o.value?c:"","\n ").concat(!o||0!=o.value&&!o.value?e.noDataText_:"","\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n ")),a.join("")}},1597:(t,e,a)=>{a.d(e,{o:()=>u});var n=a(183),r=a(5097),s=a(2832),i=a(902),o=a(6033),l=a(8701),c=a(8465);(0,l.Ay)({decimal:".",thousands:" ",grouping:[3],currency:["","€"]});var u=function(t,e){var a=r.o(t);if(a.ascending=!1,a.legendSpacing=35,a.labelFontSize=12,a.noDataShapeWidth=25,a.noDataShapeHeight=20,a.sizeLegend={title:null,titleFontSize:12,titlePadding:5,values:void 0,cellNb:3,shapePadding:5,shapeOffset:{x:0,y:0},shapeFill:"white",shapeStroke:null,labelOffset:{x:5,y:0},decimals:0,labelFormatter:void 0,_totalBarsHeight:0,_totalD3SymbolsHeight:0,noData:!1,noDataText:"No data"},a.colorLegend={title:null,titleFontSize:12,titlePadding:10,marginTop:30,shapeWidth:25,shapeHeight:20,shapePadding:1,labelOffset:{x:5,y:0},decimals:0,labelFormatter:void 0,noData:!0,noDataText:"No data",sepLineLength:24,sepLineStroke:"black",sepLineStrokeWidth:1,tickLength:5},e)for(var l in e)if("colorLegend"==l||"sizeLegend"==l){for(var u in a[l])void 0!==e[l][u]&&(a[l][u]=e[l][u]);0==e.colorLegend&&(a.colorLegend=!1)}else a[l]=e[l];function d(t,e,n,r){var s=a.map;n.append("rect").attr("class","em-legend-rect").style("fill",s.noDataFillStyle()).attr("width",a.colorLegend?a.colorLegend.shapeWidth:a.noDataShapeWidth).attr("height",a.colorLegend?a.colorLegend.shapeHeight:a.noDataShapeHeight).on("mouseover",(function(){p(a.map,"nd"),a.map.insetTemplates_&&(0,o.Qv)(a.map.insetTemplates_,a.map.svgId,p,"nd")})).on("mouseout",(function(){f(a.map),a.map.insetTemplates_&&(0,o.Qv)(a.map.insetTemplates_,a.map.svgId,f,"nd")})),n.append("text").attr("class","em-legend-label").attr("x",a.colorLegend?a.colorLegend.shapeWidth+a.colorLegend.labelOffset.x:a.noDataShapeWidth+5).attr("y",a.colorLegend?a.colorLegend.shapeHeight/2:a.noDataShapeHeight/2).text(r)}function p(t,e){var r="WORLD"===a.geo_?"#em-worldrg":"#em-nutsrg";t.Geometries.userGeometries&&(r="#em-user-regions");var s=t.selectAll(r).selectAll("[ecl='"+e+"']");s.style("fill",t.hoverColor()),s.attr("fill___",(function(){(0,n.A)(this).style("fill")}))}function f(t,e){var r="WORLD"===a.geo_?"#em-worldrg":"#em-nutsrg";t.Geometries.userGeometries&&(r="#em-user-regions"),t.selectAll(r).selectAll("[ecl='"+e+"']").style("fill",(function(){(0,n.A)(this).attr("fill___")}))}function g(t,e,n,r,s){var i="triangle"==a.map.psShape_||"diamond"==a.map.psShape_?n:n/2;0==a.sizeLegend._totalD3SymbolsHeight&&(a.sizeLegend._totalD3SymbolsHeight+=i+a.boxPadding);var o=t.classifierSize_(t.classifierSize_.domain()[1]),l=o,c=(a.sizeLegend.title?a.titleFontSize+a.sizeLegend.titlePadding:0)+a.sizeLegend._totalD3SymbolsHeight+(a.sizeLegend.shapePadding*r-1);a.sizeLegend._totalD3SymbolsHeight+=n;var u=a._sizeLegendNode.append("g").attr("transform","translate(".concat(l,",").concat(c,")")).attr("class","em-size-legend-item"),d=v().size(n*n)();u.append("g").style("fill",(function(e){return t.classifierColor_?a.sizeLegend.shapeFill:t.psFill_})).style("fill-opacity",t.psFillOpacity()).style("stroke",a.sizeLegend.shapeStroke?a.sizeLegend.shapeStroke:t.psStroke()).style("stroke-width",t.psStrokeWidth()).append("path").attr("d",d).attr("transform",(function(){return"translate(".concat(a.sizeLegend.shapeOffset.x,",").concat(a.sizeLegend.shapeOffset.y,")")}));var p=o/2+a.sizeLegend.labelOffset.x;u.append("text").attr("class","em-legend-label").attr("x",p).attr("y",0).text(s(e))}function h(t,e,n,r,s){var i,o=a.boxPadding;if(t.customSymbols.prevSymb||(i=a.boxPadding+(a.sizeLegend.title?a.titleFontSize+a.sizeLegend.titlePadding:0)+20,t.customSymbols.initialTranslateY=i,t.customSymbols.prevScale=n),t.customSymbols.prevSymb){var l=t.customSymbols.prevSymb.node().getBBox();t.customSymbols.nodeHeights=t.customSymbols.nodeHeights+l.height*t.customSymbols.prevScale,i=t.customSymbols.initialTranslateY+t.customSymbols.nodeHeights+a.sizeLegend.shapePadding*(r-1),t.customSymbols.prevScale=n}var c=a._sizeLegendNode.append("g").attr("transform","translate(".concat(o,",").concat(i,")")).attr("class","em-size-legend-item");t.customSymbols.prevSymb=c.append("g").attr("class","em-size-legend-symbol").style("fill",(function(e){return t.classifierColor_?a.sizeLegend.shapeFill:t.psFill_})).style("fill-opacity",t.psFillOpacity()).style("stroke",a.sizeLegend.shapeStroke?a.sizeLegend.shapeStroke:t.psStroke()).style("stroke-width",t.psStrokeWidth()).attr("stroke","black").attr("stroke-width",.5).append("g").html(a.map.psCustomSVG_).attr("transform",(function(){return a.map.psCustomSVG_?"translate(".concat(a.sizeLegend.shapeOffset.x,",").concat(a.sizeLegend.shapeOffset.y,") scale(").concat(n,")"):"translate(".concat(a.sizeLegend.shapeOffset.x,",").concat(a.sizeLegend.shapeOffset.y,")")}));var u=o+t.classifierSize_(t.classifierSize_.domain()[0])+a.sizeLegend.labelOffset.x,d=a.sizeLegend.shapeOffset.y/2+1;c.append("text").attr("class","em-legend-label").attr("x",u).attr("y",d).text(s(e))}function m(t,e,n,r,s){var i=a.boxPadding,o=a.boxPadding+(a.sizeLegend.title?a.titleFontSize+a.sizeLegend.titlePadding:0)+a.sizeLegend._totalBarsHeight+10;a.sizeLegend._totalBarsHeight+=n+10;var l=v().size(n*n)(),c=a._sizeLegendNode.append("g").attr("transform","translate(".concat(i,",").concat(o,")")).attr("class","em-size-legend-item");c.append("g").style("fill",(function(e){return t.classifierColor_?a.sizeLegend.shapeFill:t.psFill_})).style("fill-opacity",t.psFillOpacity()).style("stroke",a.sizeLegend.shapeStroke?a.sizeLegend.shapeStroke:t.psStroke()).style("stroke-width",t.psStrokeWidth()).attr("stroke","black").attr("stroke-width",.5).append("path").attr("d",l).attr("transform",(function(){return a.map.psCustomSVG_?"translate(".concat(a.sizeLegend.shapeOffset.x,",").concat(a.sizeLegend.shapeOffset.y,") scale(").concat(n,")"):"translate(".concat(a.sizeLegend.shapeOffset.x,",").concat(a.sizeLegend.shapeOffset.y,")")}));var u=i+a.map.psBarWidth_+a.sizeLegend.labelOffset.x,d=n/2+a.sizeLegend.labelOffset.y;c.append("text").attr("class","em-legend-label").attr("x",u).attr("y",d).text(s(e))}function v(){var t;if(a.map.psCustomSVG_)t=a.map.psCustomSVG_;else if(a.map.psCustomShape_)t=a.map.psCustomShape_;else if("bar"==a.map.psShape_){t=(0,i.Ay)().type({draw:function(t,e){var n=Math.sqrt(e);t.moveTo(0,0),t.lineTo(0,n),t.lineTo(a.map.psBarWidth_,n),t.lineTo(a.map.psBarWidth_,0),t.lineTo(0,0),t.closePath()}})}else{var e=s.vX[a.map.psShape_]||s.vX.circle;t=(0,i.Ay)().type(e)}return t}function p(t,e){var a=t.svg_.selectAll("#g_ps").selectAll("[ecl]");a.each((function(t,e){(0,n.A)(this.childNodes[0]).style("fill","white")})),a.filter("[ecl='"+e+"']").each((function(t,e){var a=(0,n.A)(this.childNodes[0]);a.style("fill",a.attr("fill___"))}))}function f(t){t.svg_.selectAll("#g_ps").selectAll("[ecl]").each((function(t,e){var a=(0,n.A)(this.childNodes[0]);a.style("fill",a.attr("fill___"))}))}return a.update=function(){var e=a.map,n=a.lgg;if(e.legend_)for(var r in e.legend_)if("colorLegend"==r||"sizeLegend"==r)for(var s in a[r])void 0!==e.legend_[r][s]&&(a[r][s]=e.legend_[r][s]);else a[r]=e.legend_[r];n.selectAll("*").remove(),a.makeBackgroundBox(),a.sizeLegend._totalBarsHeight=0,a.sizeLegend._totalD3SymbolsHeight=0,a._sizeLegendNode=n.append("g").attr("class","size-legend-container"),e.classifierSize_&&function(e){if(!e.psCustomSVG_&&"circle"==e.psShape_){if(function(t){var e=t.classifierSize_.domain();a.sizeLegend.values?a._sizeLegendValues=a.sizeLegend.values:a._sizeLegendValues=[Math.floor(e[1]),Math.floor(e[1]/2),Math.floor(e[0])];!a.sizeLegend.title&&a.title&&(a.sizeLegend.title=a.title);a.sizeLegend.title&&a._sizeLegendNode.append("text").attr("class","em-legend-title").attr("x",a.boxPadding).attr("y",a.boxPadding+a.titleFontSize).text(a.sizeLegend.title);var n=t.classifierSize_((0,c.A)(a._sizeLegendValues)),r=a.boxPadding+n,s=a.boxPadding+2*n+(a.sizeLegend.title?a.titleFontSize+a.sizeLegend.titlePadding:0)+20,i=a._sizeLegendNode.append("g").attr("transform","translate(".concat(r,",").concat(s,")")).attr("class","circle-legend").attr("text-anchor","right").style("fill","black").selectAll("g").data(a._sizeLegendValues).join("g").attr("class","em-legend-item");i.append("circle").attr("class","em-legend-circle").style("fill","none").attr("stroke","black").attr("cy",(function(e){return-t.classifierSize_(e)})).attr("r",t.classifierSize_),i.append("text").attr("class","em-legend-label").attr("y",(function(e,a){return-1-2*t.classifierSize_(e)})).attr("x",n+5).text((function(t){return t.toLocaleString("en").replace(/,/gi," ")})),i.append("line").style("stroke-dasharray",2).style("stroke","grey").attr("x1",2).attr("y1",(function(e,a){return-1-2*t.classifierSize_(e)})).attr("x2",n+5).attr("y2",(function(e,a){return-1-2*t.classifierSize_(e)}))}(e,a.sizeLegend),a.sizeLegend.noData){var n=a._sizeLegendNode.node().getBBox().height+25,r=a.boxPadding;d(r,n,a._sizeLegendNode.append("g").attr("transform","translate(".concat(r,",").concat(n,")")).attr("class","em-legend-rect"),a.sizeLegend.noDataText)}return}if("spike"==e.psShape_)return void function(t){var e=function(e){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.psSpikeWidth_;return"M".concat(-a/2,",0L0,").concat(-e,"L").concat(a/2,",0")},n=t.classifierSize_(t.classifierSize_.domain()[1]),r=a._sizeLegendNode.append("g").attr("id","em-spike-legend").attr("fill","black").attr("text-anchor","middle").style("font-size","11px").selectAll().data(t.classifierSize_.ticks(4).slice(1)).join("g").attr("transform",(function(t,e){return"translate(".concat(25*e+a.boxPadding,",").concat(n+15+a.boxPadding," )")}));r.append("path").attr("fill",t.psFill_).attr("fill-opacity",t.psFillOpacity_).attr("stroke",t.psStroke_).attr("stroke-width",t.psStrokeWidth_).attr("d",(function(a){return e(t.classifierSize_(a))})),r.append("text").attr("dy","1em").text(t.classifierSize_.tickFormat(4,"s"))}(e,a.sizeLegend);var s=a.sizeLegend.labelFormatter||o.sC;a.sizeLegend.title&&a._sizeLegendNode.append("text").attr("class","em-legend-title").attr("x",a.boxPadding).attr("y",a.boxPadding+a.titleFontSize).text(a.sizeLegend.title);var i=e.classifierSize_.domain(),l=i[1];a.sizeLegend.values&&(a.sizeLegend.cellNb=a.sizeLegend.values.length);e.customSymbols={nodeHeights:0};for(var u=1;u<a.sizeLegend.cellNb+1;u++){var p=a.ascending?a.sizeLegend.cellNb-u+1:u,f=a.sizeLegend.values?a.sizeLegend.values[p-1]:l/p,v=e.classifierSize_(f);"bar"==e.psShape_?m(t,f,v,u,s):"custom"==e.psShape_||e.psCustomSVG_?h(t,f,v,u,s):g(t,f,v,u,s)}if(a.sizeLegend.noData){var _=a._sizeLegendNode.node().getBBox().height;a.colorLegend&&(_+=a.colorLegend.shapeHeight+5);var x=a.boxPadding;d(x,_,a._sizeLegendNode.append("g").attr("transform","translate(".concat(x,",").concat(_,")")).attr("class","em-legend-rect"),a.sizeLegend.noDataText)}}(e,a.sizeLegend),a._colorLegendNode=n.append("g").attr("class","color-legend-container"),a._colorLegendNode.attr("transform","translate(0,".concat(a._sizeLegendNode.node().getBBox().height,")")),e.classifierColor_&&a.colorLegend&&function(t){var e=a.colorLegend.labelFormatter||o.sC;t.svg();a.colorLegend.title&&a._colorLegendNode.append("text").attr("class","em-legend-title").attr("x",a.boxPadding).attr("y",a.titleFontSize+a.colorLegend.marginTop).text(a.colorLegend.title);for(var n=a.boxPadding,r=t.psClasses_,s=function(){var s=a.titleFontSize+a.colorLegend.titlePadding+a.colorLegend.marginTop+i*a.colorLegend.shapeHeight,l=a.ascending?i:r-i-1,c=a._colorLegendNode.append("g").attr("transform","translate(".concat(n,",").concat(s,")")).attr("class","em-legend-item");c.append("rect").attr("class","em-legend-rect").style("fill",t.psClassToFillStyle()(l,r)).attr("width",a.colorLegend.shapeWidth).attr("height",a.colorLegend.shapeHeight).on("mouseover",(function(){p(a.map,l),a.map.insetTemplates_&&(0,o.Qv)(a.map.insetTemplates_,a.map.svgId,p,l)})).on("mouseout",(function(){f(a.map),a.map.insetTemplates_&&(0,o.Qv)(a.map.insetTemplates_,a.map.svgId,f,l)})),i>0&&c.append("line").attr("class","em-legend-separator").attr("x1",0).attr("y1",0).attr("x2",0+a.colorLegend.sepLineLength).attr("y2",0),i>0&&c.append("line").attr("class","em-legend-tick").attr("x1",a.colorLegend.shapeWidth).attr("y1",0).attr("x2",a.colorLegend.sepLineLength+a.colorLegend.tickLength).attr("y2",0),i<r-1&&c.append("text").attr("class","em-legend-label").attr("x",a.colorLegend.sepLineLength+a.colorLegend.tickLength+a.colorLegend.labelOffset.x).attr("y",a.colorLegend.shapeHeight).text((function(n){return e(t.classifierColor_.invertExtent(a.ascending?l+1:l-1)[a.ascending?0:1])}))},i=0;i<r;i++)s();if(a.colorLegend.noData){var l=a.titleFontSize+a.colorLegend.marginTop+r*a.colorLegend.shapeHeight+20,c=a._colorLegendNode.append("g").attr("transform","translate(".concat(n,",").concat(l,")")).attr("class","em-legend-item");d(n,l,c,a.colorLegend.noDataText)}}(e,a.colorLegend),a.setBoxDimension()},a}},1650:(t,e,a)=>{a.d(e,{H:()=>o});var n=a(4467),r=a(8408);function s(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function i(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?s(Object(a),!0).forEach((function(e){(0,n.A)(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):s(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function o(t){if(t.svg_){var e=t.svg_.select("#em-zoom-group-"+t.svgId_);e.selectAll(".em-annotation-group").remove();var a=t.annotations_;if(a){var n={annotationLabel:r.Wt,annotationCallout:r.Oc,annotationCalloutRect:r.mR,annotationCalloutCircle:r.Mp,annotationXYThreshold:r.Ox},s=a.annotations.map((function(t){var e=n[t.type]||r.Wt;return i(i({},t),{},{type:e})})),o=(0,r.w7)().type(r.Wt).annotations(s).editMode(a.editMode);e.append("g").attr("class","em-annotation-group").call(o)}}}},1693:(t,e,a)=>{a.d(e,{SY:()=>s,V:()=>d,h7:()=>i,li:()=>o});var n=a(183),r=a(6033),s=function(t,e){var a,n;t.labels_.config||(t.labels_.config=d),t.labels_.statLabelsPositions||(t.labels_.statLabelsPositions=p);var r=e.select("#em-labels"),s=r.empty()?e.append("g").attr("id","em-labels"):r;null!==(a=t.labels_)&&void 0!==a&&a.values&&u(t,s);var i=(null===(n=t.labels_)||void 0===n?void 0:n.labels)||d["".concat(t.geo,"_").concat(t.proj_,".cc")];if(i){var o,l=s.append("g").attr("class","em-label-shadows").attr("text-anchor","middle"),c=s.append("g").attr("class","em-labels").attr("text-anchor","middle");if(null!==(o=t.labels_)&&void 0!==o&&o.shadows)l.selectAll("text").data(i).enter().append("text").attr("id",(function(t){return"em-label-shadow-"+t.text.replace(/\s+/g,"-")})).attr("class",(function(t){return"em-label-shadow em-label-shadow-"+t.class})).attr("x",(function(e){return e.rotate?0:t._projection([e.x,e.y])[0]})).attr("y",(function(e){return e.rotate?0:t._projection([e.x,e.y])[1]})).attr("dy",-7).attr("transform",(function(e){if(e.rotate){var a=t._projection([e.x,e.y]),n=a[0],r=a[1];return"translate(".concat(n,",").concat(r,") rotate(").concat(e.rotate,")")}return"rotate(0)"})).text((function(t){return t.text}));c.selectAll("text").data(i).enter().append("text").attr("id",(function(t){return"em-label-"+t.text.replace(/\s+/g,"-")})).attr("class",(function(t){return"em-label em-label-"+t.class})).attr("x",(function(e){return e.rotate?0:t._projection([e.x,e.y])[0]})).attr("y",(function(e){return e.rotate?0:t._projection([e.x,e.y])[1]})).attr("dy",-7).attr("transform",(function(e){if(e.rotate){var a=t._projection([e.x,e.y]),n=a[0],r=a[1];return"translate(".concat(n,",").concat(r,") rotate(").concat(e.rotate,")")}return"rotate(0)"})).text((function(t){return t.text}))}},i=function(t){if(t.svg_){var e=t.svg_.selectAll("#em-labels > *");if(e&&e.remove(),t.labels_){var a=t.labels_,n=t.svg_.select("#em-zoom-group-"+t.svgId_);s(t,n),a.values&&t.updateValuesLabels&&t.updateValuesLabels(t);t.insetTemplates_&&(0,r.Qv)(t.insetTemplates_,t.svgId_,(function(t){if(a){var e=t.svg_.select("#em-zoom-group-"+t.svgId_);s(t,e),a.values&&t.updateValuesLabels&&t.updateValuesLabels(t)}}))}}},o=function(t){var e,a,r;if(t){t.svg_.selectAll("g.em-stat-label > *").remove(),t.svg_.selectAll("g.em-stat-label-shadow > *").remove();var s=t.svg_.selectAll("g.em-stat-label"),i=(t.svg_.select("#em-labels"),null!==(e=t.labels_)&&void 0!==e&&e.statLabelsFilterFunction?null===(a=t.labels_)||void 0===a?void 0:a.statLabelsFilterFunction:c),o=t.statData();return s.filter((function(e){return i(e,t)})).each((function(e){var a=(0,n.A)(this),r=l(e,o);t.labels_.backgrounds&&function(t,e){var a=5,n=2,r=e.append("text").attr("visibility","hidden").text(t).node().getBBox(),s=r.width,i=r.height;e.select('text[visibility="hidden"]').remove();var o=-s/2-a,l=-i/2-n;e.append("rect").attr("x",o).attr("y",l).attr("width",s+2*a).attr("height",i+2*n).attr("class","em-label-background")}(r,a),a.append("text").text(r).attr("class","em-stat-label-text")})),null!==(r=t.labels_)&&void 0!==r&&r.shadows&&t.svg_.selectAll("g.em-stat-label-shadow").filter((function(e){return i(e,t)})).append("text").text((function(t){return l(t,o)})),t}console.warn("No map specified")},l=function(t,e){if(e&&null!=e&&e.get){var a=e.get(t.properties.id);if(!a||!a.value&&0!==a&&0!==a.value)return"";if(":"!==a.value)return(0,r.sC)(a.value)}},c=function(t,e){var a=e.statData().get(t.properties.id);return!(!a||!a.value&&0!==a&&0!==a.value)},u=function(t,e){var a,n=e.append("g").attr("class","em-stat-labels-shadows").attr("text-anchor","middle"),r=e.append("g").attr("class","em-stat-labels").attr("text-anchor","middle"),s=[];t.Geometries.geoJSONs.nutsrg?s="mixed"==t.nutsLevel_?t.Geometries.geoJSONs.mixed.rg0.concat(t.Geometries.geoJSONs.mixed.rg1,t.Geometries.geoJSONs.mixed.rg2,t.Geometries.geoJSONs.mixed.rg3):t.Geometries.geoJSONs.nutsrg:t.Geometries.userGeometries&&(s=t.Geometries.statisticalRegions.features),t.processCentroids_&&(centroidFeatures=t.processCentroids_(centroidFeatures)),r.selectAll("g").data(s).enter().append("g").attr("transform",(function(e){if(t.labels_.statLabelsPositions[e.properties.id]){var a=t._projection([t.labels_.statLabelsPositions[e.properties.id].x,t.labels_.statLabelsPositions[e.properties.id].y]),n=a[0].toFixed(3),r=a[1].toFixed(3);return"translate(".concat(n,",").concat(r,")")}var s=t._pathFunction.centroid(e);return t.labels_.processValueLabelCentroids&&(s=t.labels_.processValueLabelCentroids(e,s)),"translate("+s+")"})).attr("class","em-stat-label"),null!==(a=t.labels_)&&void 0!==a&&a.shadows&&n.selectAll("g").data(s).enter().append("g").attr("transform",(function(e){if(t.labels_.statLabelsPositions[e.properties.id]){var a=t._projection([t.labels_.statLabelsPositions[e.properties.id].x,t.labels_.statLabelsPositions[e.properties.id].y]),n=a[0].toFixed(3),r=a[1].toFixed(3);return"translate(".concat(n,",").concat(r,")")}var s=t._pathFunction.centroid(e);return t.labels_.processValueLabelCentroids&&(s=t.labels_.processValueLabelCentroids(e,s)),"translate("+s+")"})).attr("class","em-stat-label-shadow")},d={EUR_3035:{cc:[{text:"AL",x:51e5,y:206e4,class:"cc",size:7},{text:"AT",x:467e4,y:2629e3,class:"cc",size:18},{text:"BE",x:393e4,y:301e4,class:"cc",size:17},{text:"BG",x:5567e3,y:22e5,class:"cc",size:22},{text:"HR",x:4876e3,y:2455e3,class:"cc",size:10},{text:"CY",x:6426e3,y:148e4,class:"cc",size:10},{text:"CZ",x:4707e3,y:2885e3,class:"cc",size:18},{text:"DK",x:4316e3,y:3621e3,class:"cc",size:20},{text:"EE",x:522e4,y:399e4,class:"cc",size:12},{text:"FI",x:515e4,y:4424e3,class:"cc",size:20},{text:"FR",x:3767740,y:2662817,class:"cc",size:22},{text:"DE",x:4347284,y:3093276,class:"cc",size:22},{text:"EL",x:537e4,y:175e4,class:"cc",size:22},{text:"HU",x:502e4,y:263e4,class:"cc",size:17},{text:"IS",x:304e4,y:4833e3,class:"cc",size:10},{text:"IE",x:3136e3,y:3394e3,class:"cc",size:17},{text:"IT",x:4469967,y:2181963,class:"cc",size:22},{text:"LV",x:529e4,y:38e5,class:"cc",size:12},{text:"LT",x:519e4,y:363e4,class:"cc",size:12},{text:"LU",x:412e4,y:294e4,class:"cc",size:12},{text:"MT",x:4731e3,y:13e5,class:"cc",size:10},{text:"ME",x:5073e3,y:2185e3,class:"cc",size:7},{text:"MK",x:53e5,y:208e4,class:"cc",size:10},{text:"NL",x:402e4,y:3208e3,class:"cc",size:17},{text:"NO",x:43e5,y:4147e3,class:"cc",size:20},{text:"PL",x:4964e3,y:32e5,class:"cc",size:22},{text:"PT",x:28e5,y:199e4,class:"cc",size:18},{text:"RO",x:5451e3,y:26e5,class:"cc",size:22},{text:"RS",x:52e5,y:23e5,class:"cc",size:10},{text:"SK",x:504e4,y:2835e3,class:"cc",size:12},{text:"SI",x:4655e3,y:248e4,class:"cc",size:10},{text:"ES",x:3160096,y:19e5,class:"cc",size:22},{text:"SE",x:463e4,y:4e6,class:"cc",size:20},{text:"CH",x:42e5,y:2564e3,class:"cc",size:16},{text:"TR",x:651e4,y:21e5,class:"cc",size:22},{text:"UK",x:3558e3,y:325e4,class:"cc",size:17}],en:[{text:"MEDITERRANEAN SEA",x:5472e3,y:12e5,class:"seas",size:12,letterSpacing:7},{text:"ATLANTIC OCEAN",x:282e4,y:254e4,class:"seas",size:12,letterSpacing:2},{text:"NORTH SEA",x:3915e3,y:37e5,class:"seas",size:12},{text:"BALTIC SEA",x:49e5,y:3672e3,class:"seas",size:10,rotate:-50},{text:"NORWEGIAN SEA",x:385e4,y:48e5,class:"seas",size:12,letterSpacing:1},{text:"BLACK SEA",x:63e5,y:25e5,class:"seas",size:12,letterSpacing:4},{text:"ALBANIA",cc:"AL",x:51e5,y:206e4,class:"countries",size:7,rotate:80},{text:"AUSTRIA",cc:"AT",x:467e4,y:2629e3,class:"countries",size:10},{text:"BELGIUM",cc:"BE",x:39e5,y:303e4,class:"countries",size:7,rotate:30},{text:"BULGARIA",cc:"BG",x:5567e3,y:2256e3,class:"countries",size:12},{text:"CROATIA",cc:"HR",x:4876e3,y:2455e3,class:"countries",size:7},{text:"CYPRUS",cc:"CY",x:6426e3,y:148e4,class:"countries",size:10},{text:"CZECHIA",cc:"CZ",x:4707e3,y:2885e3,class:"countries",size:12},{text:"DENMARK",cc:"DK",x:4316e3,y:3621e3,class:"countries",size:10},{text:"ESTONIA",cc:"EE",x:522e4,y:399e4,class:"countries",size:7},{text:"FINLAND",cc:"FI",x:515e4,y:4424e3,class:"countries",size:12},{text:"FRANCE",cc:"FR",x:3767740,y:2662817,class:"countries",size:12},{text:"GERMANY",cc:"DE",x:4347284,y:3093276,class:"countries",size:12},{text:"GREECE",cc:"EL",x:547e4,y:186e4,class:"countries",size:12},{text:"HUNGARY",cc:"HU",x:502e4,y:263e4,class:"countries",size:10},{text:"ICELAND",cc:"IS",x:304e4,y:4833e3,class:"countries",size:10},{text:"IRELAND",cc:"IE",x:3136e3,y:3394e3,class:"countries",size:10},{text:"ITALY",cc:"IT",x:4469967,y:2181963,class:"countries",size:12},{text:"LATVIA",cc:"LV",x:529e4,y:38e5,class:"countries",size:7},{text:"LITHUANIA",cc:"LT",x:519e4,y:363e4,class:"countries",size:7},{text:"LUX.",cc:"LU",x:412e4,y:294e4,class:"countries",size:7},{text:"MALTA",cc:"MT",x:4731e3,y:133e4,class:"countries",size:7},{text:"MONT.",cc:"ME",x:5073e3,y:2185e3,class:"countries",size:7},{text:"N. MACEDONIA",cc:"MK",x:53e5,y:2082e3,class:"countries",size:7},{text:"NETHERLANDS",cc:"NL",x:3977e3,y:3208e3,class:"countries",size:7},{text:"NORWAY",cc:"NO",x:433e4,y:4147e3,class:"countries",size:12,rotate:-75},{text:"POLAND",cc:"PL",x:4964e3,y:3269e3,class:"countries",size:12},{text:"PORTUGAL",cc:"PT",x:283e4,y:199e4,class:"countries",size:10,rotate:-75},{text:"ROMANIA",cc:"RO",x:5451e3,y:26e5,class:"countries",size:12},{text:"SERBIA",cc:"RS",x:52e5,y:23e5,class:"countries",size:7},{text:"SLOVAKIA",cc:"SK",x:504e4,y:2835e3,class:"countries",size:7,rotate:-30},{text:"SLOVENIA",cc:"SI",x:4735e3,y:2522e3,class:"countries",size:7,rotate:-30},{text:"SPAIN",cc:"ES",x:3160096,y:185e4,class:"countries",size:12},{text:"SWEDEN",cc:"SE",x:463e4,y:41e5,class:"countries",size:12,rotate:-75},{text:"SWITZERLAND",cc:"CH",x:42e5,y:2564e3,class:"countries",size:7},{text:"TURKEY",cc:"TR",x:651e4,y:21e5,class:"countries",size:12},{text:"U.K.",cc:"UK",x:3558e3,y:325e4,class:"countries",size:12}],fr:[{text:"MER MÉDITERRANÉE",x:5472e3,y:1242e3,class:"seas",size:12},{text:"OCÈAN ATLANTIQUE",x:282e4,y:254e4,class:"seas",size:12},{text:"MER DU NORD",x:3915e3,y:37e5,class:"seas",size:12},{text:"MER BALTIQUE",x:49e5,y:3672e3,class:"seas",size:10,rotate:-50},{text:"MER DE NORVÈGE",x:385e4,y:48e5,class:"seas",size:12},{text:"MER NOIRE",x:6265e3,y:2472e3,class:"seas",size:12},{text:"ALBANIE",x:51e5,y:206e4,class:"countries",size:7,rotate:80},{text:"AUTRICHE",x:467e4,y:2629e3,class:"countries",size:10},{text:"BELGIQUE",x:39e5,y:303e4,class:"countries",size:7,rotate:30},{text:"BULGARIE",x:5567e3,y:2256e3,class:"countries",size:12},{text:"CROATIE",x:4876e3,y:2455e3,class:"countries",size:7},{text:"CHYPRE",x:6426e3,y:148e4,class:"countries",size:10},{text:"TCHÉQUIE",x:4707e3,y:2885e3,class:"countries",size:12},{text:"DANEMARK",x:4316e3,y:3621e3,class:"countries",size:10},{text:"ESTONIE",x:522e4,y:399e4,class:"countries",size:10},{text:"FINLANDE",x:5125e3,y:4424e3,class:"countries",size:12},{text:"FRANCE",x:3767740,y:2662817,class:"countries",size:12},{text:"ALLEMAGNE",x:4347284,y:3093276,class:"countries",size:12},{text:"GRÈCE",x:542e4,y:186e4,class:"countries",size:12},{text:"HONGRIE",x:502e4,y:2654e3,class:"countries",size:10},{text:"ISLANDE",x:304e4,y:4833e3,class:"countries",size:10},{text:"IRLANDE",x:3136e3,y:3394e3,class:"countries",size:10},{text:"ITALIE",x:45e5,y:2181963,class:"countries",size:12},{text:"LETTONIE",x:529e4,y:3776e3,class:"countries",size:10},{text:"LITUANIE",x:519e4,y:363e4,class:"countries",size:10},{text:"LUX.",x:412e4,y:294e4,class:"countries",size:7},{text:"MALTE",x:4731e3,y:1335e3,class:"countries",size:7},{text:"MONT.",x:5073e3,y:2185e3,class:"countries",size:7},{text:"MAC. DU NORD",x:53e5,y:2082e3,class:"countries",size:7},{text:"PAYS-BAS",x:3977e3,y:3208e3,class:"countries",size:7},{text:"NORVEGE",x:433e4,y:4147e3,class:"countries",size:12,rotate:-75},{text:"POLOGNE",x:4964e3,y:3269e3,class:"countries",size:12},{text:"PORTUGAL",x:2836136,y:1956179,class:"countries",size:10,rotate:-75},{text:"ROUMANIE",x:5451e3,y:26e5,class:"countries",size:12},{text:"SERBIE",x:52e5,y:23e5,class:"countries",size:7},{text:"SLOVAQUIE",x:504e4,y:2835e3,class:"countries",size:7,rotate:-30},{text:"SLOVÉNIE",x:4735e3,y:2522e3,class:"countries",size:7,rotate:-35},{text:"ESPAGNE",x:3160096,y:185e4,class:"countries",size:12},{text:"SUÈDE",x:47e5,y:4401e3,class:"countries",size:12,rotate:-75},{text:"SUISSE",x:42e5,y:2564e3,class:"countries",size:7},{text:"TURQUIE",x:651e4,y:21e5,class:"countries",size:12},{text:"ROYAUME-UNI",x:3558e3,y:325e4,class:"countries",size:10}],de:[{text:"MITTELMEER",x:5472e3,y:12e5,class:"seas",size:12,letterSpacing:7},{text:"ATLANTISCHER OZEAN",x:282e4,y:254e4,class:"seas",size:12},{text:"NORDSEE",x:3915e3,y:37e5,class:"seas",size:12},{text:"OSTSEE",x:49e5,y:3672e3,class:"seas",size:10,rotate:-50},{text:"NORWEGISCHE MEER",x:385e4,y:48e5,class:"seas",size:12},{text:"SCHWARZE MEER",x:63e5,y:25e5,class:"seas",size:12,letterSpacing:1},{text:"ALBANIEN",x:51e5,y:206e4,class:"countries",size:7,ro