eurostat-map 4.1.14 → 4.1.17
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/README.md +5 -6
- package/build/732.min.js +2 -0
- package/build/eurostatmap.js +177 -118
- package/build/eurostatmap.min.js +2 -2
- package/build/main.min.js +2 -0
- package/package.json +3 -1
@@ -0,0 +1,2 @@
|
|
1
|
+
/*! /*! eurostat-map v4.1.16 | 2025 Eurostat | EUPL License. See https://github.com/eurostat/eurostat-map/blob/master/LICENSE * / */
|
2
|
+
!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,rotate:80},{text:"ÖSTERREICH",x:465e4,y:2629e3,class:"countries",size:7},{text:"BELGIEN",x:39e5,y:303e4,class:"countries",size:7,rotate:30},{text:"BULGARIEN",x:5567e3,y:2256e3,class:"countries",size:10},{text:"KROATIEN",x:4876e3,y:2455e3,class:"countries",size:7},{text:"ZYPERN",x:6426e3,y:148e4,class:"countries",size:10},{text:"TSCHECHIEN",x:4707e3,y:2885e3,class:"countries",size:7},{text:"DÄNEMARK",x:4316e3,y:3621e3,class:"countries",size:10},{text:"ESTLAND",x:522e4,y:399e4,class:"countries",size:7},{text:"FINNLAND",x:515e4,y:4424e3,class:"countries",size:12},{text:"FRANKREICH",x:3767740,y:2662817,class:"countries",size:12},{text:"DEUTSCHLAND",x:4347284,y:3093276,class:"countries",size:10},{text:"GRIECHENLAND",x:555e4,y:15e5,class:"countries",size:10},{text:"UNGARN",x:502e4,y:263e4,class:"countries",size:10},{text:"ISLAND",x:304e4,y:4833e3,class:"countries",size:10},{text:"IRLAND",x:3136e3,y:3394e3,class:"countries",size:10},{text:"ITALIEN",x:4469967,y:2181963,class:"countries",size:12,rotate:35},{text:"LETTLAND",x:529e4,y:38e5,class:"countries",size:7},{text:"LITAUEN",x:519e4,y:363e4,class:"countries",size:7},{text:"LUX.",x:412e4,y:294e4,class:"countries",size:7},{text:"MALTA",x:4731e3,y:133e4,class:"countries",size:7},{text:"MONT.",x:5073e3,y:2185e3,class:"countries",size:7},{text:"NORDMAZEDONIEN",x:535e4,y:2082e3,class:"countries",size:7},{text:"NIEDERLANDE",x:3977e3,y:3208e3,class:"countries",size:7},{text:"NORWEGEN",x:433e4,y:4147e3,class:"countries",size:12,rotate:-75},{text:"POLEN",x:4964e3,y:3269e3,class:"countries",size:12},{text:"PORTUGAL",x:2836136,y:1956179,class:"countries",size:10,rotate:-75},{text:"RUMÄNIEN",x:5451e3,y:26e5,class:"countries",size:12},{text:"SERBIEN",x:52e5,y:23e5,class:"countries",size:7},{text:"SLOWAKEI",x:504e4,y:2835e3,class:"countries",size:7,rotate:-30},{text:"SLOWENIEN",x:4735e3,y:2522e3,class:"countries",size:7,rotate:-30},{text:"SPANIEN",x:3160096,y:185e4,class:"countries",size:12},{text:"SCHWEDEN",x:467e4,y:418e4,class:"countries",size:12,rotate:-75},{text:"SCHWEIZ",x:42e5,y:2564e3,class:"countries",size:7},{text:"TRUTHAHN",x:651e4,y:21e5,class:"countries",size:12},{text:"VEREINIGTES",x:355e4,y:352e4,class:"countries",size:10},{text:"KÖNIGREICH",x:355e4,y:342e4,class:"countries",size:10}]},IC_32628:{cc:[{text:"ES",x:420468,y:3180647,class:"cc",size:12}],en:[{text:"Canary Islands",x:420468,y:3180647,class:"countries",size:12}],fr:[{text:"Les îles Canaries",x:420468,y:3180647,class:"countries",size:12}],de:[{text:"Kanarische Inseln",x:41e4,y:3180647,class:"countries",size:12}]},GP_32620:{cc:[{text:"FR",x:667e3,y:174e4,class:"cc",size:12}],en:[{text:"Guadeloupe",x:7e5,y:181e4,class:"countries",size:12}]},MQ_32620:{cc:[{text:"FR",x:716521,y:1621322,class:"cc",size:12}],en:[{text:"Martinique",x:716521,y:1621322,class:"countries",size:12}]},GF_32622:{cc:[{text:"FR",x:266852,y:444074,class:"cc",size:12}],en:[{text:"Guyane",x:266852,y:444074,class:"countries",size:12}],de:[{text:"Guayana",x:266852,y:444074,class:"countries",size:12}]},RE_32740:{cc:[{text:"FR",x:348011,y:768e4,class:"cc",size:10}],en:[{text:"Réunion",x:348011,y:768e4,class:"countries",size:10}]},YT_32738:{cc:[{text:"FR",x:516549,y:8593920,class:"cc",size:10}],en:[{text:"Mayotte",x:516549,y:8593920,class:"countries",size:10}]},MT_3035:{cc:[{text:"MT",x:4719755,y:1410701,class:"cc",size:10}],en:[{text:"Malta",x:4719755,y:1410701,class:"countries",size:10}]},PT20_32626:{cc:[{text:"PT",x:397418,y:432e4,class:"cc",size:10}],en:[{text:"Azores",x:397418,y:432e4,class:"countries",size:10}],fr:[{text:"Açores",x:397418,y:4271471,class:"countries",size:10}],de:[{text:"Azoren",x:397418,y:4271471,class:"countries",size:10}]},PT30_32628:{cc:[{text:"PT",x:333586,y:3624e3,class:"cc",size:10,rotate:30}],en:[{text:"Madeira",x:333586,y:3624e3,class:"countries",size:10,rotate:30}],fr:[{text:"Madère",x:333586,y:3624e3,class:"countries",size:10,rotate:30}]},LI_3035:{cc:[{text:"LI",x:4287060,y:266e4,class:"cc",size:12}],en:[{text:"Liechtenstein",x:4287060,y:2679e3,class:"countries",size:7}]},IS_3035:{cc:[{text:"IS",x:3011804,y:496e4,class:"cc",size:12}],en:[{text:"Iceland",x:3011804,y:496e4,class:"countries",size:12}],fr:[{text:"Islande",x:3011804,y:496e4,class:"countries",size:12}],de:[{text:"Island",x:3011804,y:496e4,class:"countries",size:12}]},SJ_SV_3035:{cc:[{text:"NO",x:457e4,y:626e4,class:"cc",size:10}],en:[{text:"Svalbard",x:457e4,y:626e4,class:"countries",size:10}],de:[{text:"Spitzbergen",x:457e4,y:626e4,class:"countries",size:7}]},SJ_JM_3035:{cc:[{text:"NO",x:3647762,y:5420300,class:"cc",size:10}],en:[{text:"Jan Mayen",x:3647762,y:5420300,class:"countries",size:7}]},CARIB_32620:{cc:[{text:"FR",x:7e5,y:181e4,class:"cc",size:10},{text:"FR",x:64e4,y:159e4,class:"cc",size:10},{text:"FR",x:54e4,y:1962e3,class:"cc",size:7}],en:[{text:"Guadeloupe",x:7e5,y:181e4,class:"countries",size:10},{text:"Martinique",x:57e4,y:159e4,class:"countries",size:10},{text:"Saint Martin",x:597e3,y:1962e3,class:"countries",size:7}]},WORLD_54030:{en:[{text:"NORTH ATLANTIC",x:-45,y:25,class:"seas",size:10,letterSpacing:1},{text:"SOUTH ATLANTIC",x:-15,y:-25,class:"seas",size:10,letterSpacing:1},{text:"SOUTH PACIFIC",x:-126,y:-25,class:"seas",size:10,letterSpacing:1},{text:"NORTH",x:-136,y:25,class:"seas",size:10,letterSpacing:1},{text:"PACIFIC",x:-134,y:20,class:"seas",size:10,letterSpacing:1},{text:"INDIAN OCEAN",x:80,y:-25,class:"seas",size:10,letterSpacing:1},{text:"SOUTHERN OCEAN",x:-5,y:-67,class:"seas",size:10,letterSpacing:6}]}},p={AL:{x:515e4,y:2e6},AT:{x:467e4,y:27e5},BE:{x:393e4,y:306e4},BG:{x:5567e3,y:23e5},HR:{x:4657718,y:2400243},CY:{x:6426e3,y:149e4},CH:{x:417e4,y:26e5},CZ:{x:4707e3,y:295e4},DK:{x:4316e3,y:3621e3},EE:{x:522e4,y:405e4},FI:{x:515e4,y:4424e3},FR:{x:3767740,y:2662817},DE:{x:4347284,y:3093276},EL:{x:537e4,y:175e4},HU:{x:502e4,y:267e4},IS:{x:304e4,y:4833e3},IE:{x:3136e3,y:3394e3},IT:{x:45e5,y:2181963},LV:{x:529e4,y:384e4},LT:{x:519e4,y:363e4},LU:{x:412e4,y:294e4},MT:{x:491e4,y:147e4},ME:{x:5073e3,y:223e4},MK:{x:53e5,y:213e4},NL:{x:402e4,y:3208e3},NO:{x:43e5,y:4147e3},PL:{x:4964e3,y:32e5},PT:{x:28e5,y:199e4},RO:{x:5451e3,y:26e5},RS:{x:52e5,y:237e4},SK:{x:504e4,y:286e4},SI:{x:466e4,y:255e4},ES:{x:3160096,y:19e5},SE:{x:463e4,y:4e6},TR:{x:651e4,y:21e5},UK:{x:3558e3,y:325e4},RU:{x:6842086,y:3230517}}},2489:(t,e,a)=>{a.d(e,{A:()=>o});var n=a(1601),r=a.n(n),s=a(6314),i=a.n(s)()(r());i.push([t.id,"/* General text settings */\ntext {\n pointer-events: none;\n}\n\na text {\n pointer-events: all;\n}\n\n/* Main map */\n.em-map {\n font-family: Arial, Helvetica, sans-serif;\n}\n\n/* Coastal margin */\n#em-coast-margin {\n filter: url(#em-coastal-blur);\n stroke-linejoin: round;\n stroke-linecap: round;\n fill: none;\n stroke-width: 5;\n stroke: rgb(161, 198, 237);\n}\n\n/* Title and subtitle styling */\n.em-title,\n.em-inset-title {\n fill: black;\n stroke: none;\n}\n\n.em-title {\n font-size: 21px;\n font-weight: bold;\n}\n\n.em-inset-title {\n font-size: 12px;\n}\n\n.em-subtitle,\n.em-inset-subtitle {\n fill: #848280;\n stroke: none;\n stroke-linejoin: round;\n paint-order: stroke;\n}\n\n.em-subtitle {\n font-size: 18px;\n font-weight: 100;\n}\n\n.em-inset-subtitle {\n font-size: 12px;\n}\n\n.em-source-pretext {\n font-size: 11px;\n transform: translate(-5px, -5px);\n}\n.em-source-dataset-link {\n font-size: 11px;\n fill: #0e47cb;\n cursor: pointer;\n text-decoration: underline;\n transform: translate(-5px, -5px);\n}\n.em-source-dataset-link:hover {\n fill: #082b7a;\n cursor: pointer;\n text-decoration: underline;\n}\n\n.em-frame {\n stroke-width: 0;\n stroke: grey;\n}\n\n.em-insets .em-frame {\n /* this will give a frame to inset maps */\n stroke: grey;\n stroke-width: 0.3px !important;\n}\n\n.em-sea {\n fill: white;\n /* pointer-events: none; */\n}\n.em-scalebar-line {\n stroke: black;\n stroke-width: 0.8px;\n}\n.em-scalebar-label {\n font-size: 9px;\n text-anchor: middle;\n}\n\n/* Bottom text and symbol styling */\n.em-footnote {\n pointer-events: all;\n cursor: default;\n font-size: 11px;\n transform: translate(5px, -5px);\n}\n.em-footnote a {\n fill: #0e47cb;\n text-decoration: underline;\n}\n.em-footnote a:hover {\n fill: #0a328e;\n}\n\n.em-centroid {\n cursor: pointer;\n}\n\n/* Graticule styling */\n.em-graticule {\n stroke: lightgray;\n stroke-width: 1;\n}\n\n.em-flow-link {\n cursor: pointer;\n}\n.em-flow-link-outline {\n cursor: pointer;\n}\n.em-flow-labels {\n font-size: 15px;\n stroke-width: 1px;\n fill: black;\n pointer-events: none;\n}\n.em-flow-labels-halo {\n font-size: 15px;\n stroke-width: 2px;\n fill: white;\n pointer-events: none;\n}\n\n.em-grid-rect,\n.em-grid-hexagon {\n stroke: white;\n}\n",""]);const o=i},2617:(t,e,a)=>{a.d(e,{Y:()=>r});var n=a(183),r=function(t){var e;function a(){e=(0,n.A)("#"+t.div),e.empty()&&(e=(0,n.A)("body").append("div").attr("id",t.div)),e.attr("class","tooltip-eurostat")}return(t=t||{}).containerId=t.containerId||"map",t.div=t.div||"tooltip_eurostat",t.maxWidth=t.maxWidth||"200px",t.fontSize=t.fontSize||"14px",t.background=t.background||"white",t.padding=t.padding||"0px",t.border=t.border||"0px",t.borderRadius=t.borderRadius||"0px",t.boxShadow=t.boxShadow||"0px 0px 0px grey",t.transitionDuration=t.transitionDuration||0,t.xOffset=t.xOffset||30,t.yOffset=t.yOffset||20,a.mouseover=function(t){t&&e.html(t);var n=event.pageX,r=event.pageY;a.ensureTooltipOnScreen(n,r)},a.mousemove=function(t){var e=t.pageX,a=t.pageY;this.ensureTooltipOnScreen(e,a)},a.mouseout=function(){e.style("opacity",0)},a.style=function(t,n){return 1==arguments.length?e.style(t):(e.style(t,n),a)},a.attr=function(t,n){return 1==arguments.length?e.attr(t):(e.attr(t,n),a)},a.ensureTooltipOnScreen=function(a,n){e.style("opacity",1);var r=e.node();r.style.left=a+t.xOffset+"px",r.style.top=n-t.yOffset+"px";var s=document.getElementById(t.containerId).getBoundingClientRect(),i=s.width,o=s.height;if(r.offsetLeft>s.left+i-r.clientWidth){var l=a-r.clientWidth-t.xOffset;if(r.style.left=l+"px",r.offsetLeft+r.clientWidth>a){var c=a-r.clientWidth-t.xOffset;r.style.left=c+"px"}}r.offsetTop+r.clientHeight>s.top+o&&(r.style.top=r.offsetTop-r.clientHeight+"px")},a(),a}},2739:(t,e,a)=>{a.d(e,{T:()=>m});var n=a(2284),r=a(3453),s=a(8622),i=a(8465),o=a(1907),l=a(6502),c=a(9695),u=a(7714),d=a(183),p=a(8701),f=a(6033);function g(t,e){var a="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=function(t,e){if(t){if("string"==typeof t)return h(t,e);var a={}.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?h(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){a&&(t=a);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,i=!0,o=!1;return{s:function(){a=a.call(t)},n:function(){var t=a.next();return i=t.done,t},e:function(t){o=!0,s=t},f:function(){try{i||null==a.return||a.return()}finally{if(o)throw s}}}}function h(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=Array(e);a<e;a++)n[a]=t[a];return n}var m=function(t){var e=c.R(t,!0);function a(t){return"".concat(t,"-").concat(Math.random().toString(36).substr(2,9))}function h(t,a,n){t.append("marker").attr("id",a).attr("markerHeight",7).attr("markerWidth",7).attr("refX",1).attr("refY",1.5).attr("orient","auto").append("path").attr("fill",n).attr("d","M0,0 q0,1,0.5,1.5 q-0.5,0.5,-0.5,1.5 q0.75,-0.75,2,-1.5 q-1.25,-0.75,-2,-1.5Z"),t.append("marker").attr("id",a+"mouseover").attr("markerHeight",7).attr("markerWidth",7).attr("refX",1).attr("refY",1.5).attr("orient","auto").append("path").attr("fill",e.hoverColor_).attr("d","M0,0 q0,1,0.5,1.5 q-0.5,0.5,-0.5,1.5 q0.75,-0.75,2,-1.5 q-1.25,-0.75,-2,-1.5Z")}function m(t,e){var a=t.get(e);if(!a)throw new Error("missing: "+e);return a}function _(t){return[t.source.x1,t.y0]}function x(t){return[t.target.x0,t.y1]}e.strokeWidthScale=(0,l.A)(),e.labelOffsetX=15,e.labelOffsetY=5,e.labelFormatter=function(t){return(0,p.GP)(".2s")(t)},e.tooltip_.textFunction=v,e.flowColor_="#72bb6f",e.flowOverlayColors_=["#bbd7ee","#c7e3c6"],["flowGraph_","flowColor_","flowOverlayColors_"].forEach((function(t){e[t.substring(0,t.length-1)]=function(a){return arguments.length?(e[t]=a,e):e[t]}})),e.updateStyle=function(){var t=e.flowGraph_.links;e.strokeWidthScale=(0,l.A)().domain([0,(0,i.A)(t,(function(t){return t.value}))]).range([2,10]),function(t){var s=e.svg_;!function(t){t.nodes.forEach((function(t){if(!t.x&&!t.y&&e.Geometries.centroidsData){var a=e.Geometries.centroidsData.features.find((function(e){if(t.id==e.properties.id)return e}));if(a){var n=e._projection([a.geometry.coordinates[0],a.geometry.coordinates[1]]);t.x=n[0],t.y=n[1]}else console.error("could not find coordinates for",t.id)}}))}(t);var i=function(t){var a=t.nodes,s=t.links,i=function(t){var e=t.nodes,a=t.links;return{nodes:e.map((function(t){return Object.assign({},t)})),links:a.map((function(t){return Object.assign({},t)}))}}({nodes:a,links:s});return function(t){var e,a=t.nodes,s=t.links,i=g(a.entries());try{for(i.s();!(e=i.n()).done;){var o=(0,r.A)(e.value,2),l=o[0],c=o[1];c.index=l,c.sourceLinks=[],c.targetLinks=[]}}catch(t){i.e(t)}finally{i.f()}var u,d=new Map(a.map((function(t,e){return[S(t,e,a),t]}))),p=g(s.entries());try{for(p.s();!(u=p.n()).done;){var f=(0,r.A)(u.value,2),h=f[0],v=f[1];v.index=h;var _=v.source,x=v.target;"object"!==(0,n.A)(_)&&(_=v.source=m(d,_)),"object"!==(0,n.A)(x)&&(x=v.target=m(d,x)),_.sourceLinks.push(v),x.targetLinks.push(v)}}catch(t){p.e(t)}finally{p.f()}}(i),function(t){var e,a=t.nodes,n=g(a);try{for(n.s();!(e=n.n()).done;){var r=e.value;r.value=Math.max((0,o.A)(r.sourceLinks,(function(t){return t.value})),(0,o.A)(r.targetLinks,(function(t){return t.value})))}}catch(t){n.e(t)}finally{n.f()}}(i),function(t){var e=t.nodes,a=e.length,n=new Set(e),r=new Set,s=0;for(;n.size;){var i,o=g(n);try{for(o.s();!(i=o.n()).done;){var l=i.value;l.depth=s;var c,u=g(l.sourceLinks);try{for(u.s();!(c=u.n()).done;){var d=c.value.target;r.add(d)}}catch(t){u.e(t)}finally{u.f()}}}catch(t){o.e(t)}finally{o.f()}if(++s>a)throw new Error("circular link");n=r,r=new Set}}(i),function(t){var e=t.nodes,a=e.length,n=new Set(e),r=new Set,s=0;for(;n.size;){var i,o=g(n);try{for(o.s();!(i=o.n()).done;){var l=i.value;l.height=s;var c,u=g(l.targetLinks);try{for(u.s();!(c=u.n()).done;){var d=c.value.source;r.add(d)}}catch(t){u.e(t)}finally{u.f()}}}catch(t){o.e(t)}finally{o.f()}if(++s>a)throw new Error("circular link");n=r,r=new Set}}(i),function(t){var a,n=t.nodes,r=g(n);try{for(r.s();!(a=r.n()).done;){var s=a.value,i=e.strokeWidthScale(s.value);s.x0=s.x1=s.x,s.y0=s.y-i/2,s.y1=s.y0+i;var o,l=g(s.sourceLinks);try{for(l.s();!(o=l.n()).done;){var c=o.value;c.width=e.strokeWidthScale(c.value)}}catch(t){l.e(t)}finally{l.f()}}}catch(t){r.e(t)}finally{r.f()}!function(t){var e,a=g(t);try{for(a.s();!(e=a.n()).done;){var n=e.value,r=n.sourceLinks,s=n.targetLinks;r.sort(y),s.sort(b)}}catch(t){a.e(t)}finally{a.f()}}(n)}(i),function(t){var e,a=t.nodes,n=g(a);try{for(n.s();!(e=n.n()).done;){var r,s=e.value,i=s.y0,o=i,l=g(s.sourceLinks);try{for(l.s();!(r=l.n()).done;){var c=r.value;c.y0=i+c.width/2,i+=c.width}}catch(t){l.e(t)}finally{l.f()}var u,d=g(s.targetLinks);try{for(d.s();!(u=d.n()).done;){var p=u.value;p.y1=o+p.width/2,o+=p.width}}catch(t){d.e(t)}finally{d.f()}}}catch(t){n.e(t)}finally{n.f()}}(i),console.log("Sankey Graph:",i),i}(t),l=i.nodes,c=i.links,u=s.append("defs"),p=a("arrow"),v=a("arrow-outline"),_=c.map((function(){return a("gradient")}));h(u,p,e.flowColor_),h(u,v,"#ffffff"),function(t,a,n){t.selectAll("linearGradient").data(n).join("linearGradient").attr("id",(function(t,e){return a[e]})).attr("gradientUnits","userSpaceOnUse").attr("x1",(function(t){return t.source.x1})).attr("x2",(function(t){return t.target.x0})).attr("y1",(function(t){return t.y0})).attr("y2",(function(t){return t.y1})).call((function(t){return t.append("stop").attr("offset","5%").attr("stop-color",e.flowOverlayColors_[0])})).call((function(t){return t.append("stop").attr("offset","50%").attr("stop-color",e.flowColor_)}))}(u,_,c);var x=(0,d.A)("#em-zoom-group-"+e.svgId_).append("g").attr("class","em-flow-container");(function(t,a){var n=[],r=[],s=e.Geometries.geoJSONs.nutsrg.concat(e.Geometries.geoJSONs.cntrg);if(s){a.nodes.forEach((function(t){s.find((function(e){if(t.id==e.properties.id)return e}))?a.links.some((function(e){return e.source==t.id}))?n.push(t.id):r.push(t.id):console.error("could not find geometry for",t.id)}));var i=(0,f.ty)(e);e.svg_.selectAll(i).each((function(){(0,d.A)(this).style("fill",(function(t){return n.includes(t.properties.id)?e.flowOverlayColors_[0]:r.includes(t.properties.id)?e.flowOverlayColors_[1]:void 0}))}))}})(0,t),function(t,a,n,r,s){var i=t.append("g").attr("class","em-flows-group");a.forEach((function(t,a){i.append("path").attr("d",A()(t)).attr("fill","none").attr("stroke","#ffffff").attr("class","em-flow-link-outline").attr("stroke-width",t.width+1.5).attr("marker-end","url(#".concat(r,")")),i.append("path").attr("d",A()(t)).attr("fill","none").attr("class","em-flow-link").attr("stroke","url(#".concat(s[a],")")).attr("stroke-width",t.width).attr("marker-end","url(#".concat(n,")")).on("mouseover",(function(a){var r=e.hoverColor_;(0,d.A)(this).attr("stroke",r),(0,d.A)(this).attr("marker-end","url(#".concat(n+"mouseover",")")),e._tooltip&&e._tooltip.mouseover(e.tooltip_.textFunction(t,e))})).on("mousemove",(function(t){e._tooltip&&e._tooltip.mousemove(t)})).on("mouseout",(function(){(0,d.A)(this).attr("stroke","url(#".concat(s[a],")")),(0,d.A)(this).attr("marker-end","url(#".concat(n,")")),e._tooltip&&e._tooltip.mouseout()}))}))}(x,c,p,v,_),function(t,a){t.append("g").attr("class","em-flow-fill-in-gaps").selectAll("rect").data(a).join("rect").filter((function(t){return t.depth&&t.height})).attr("x",(function(t){return t.x0-.5})).attr("y",(function(t){return t.y0})).attr("width",1).attr("height",(function(t){return t.y1-t.y0})).attr("fill",e.flowColor_)}(x,l),e.labels_&&function(t,a){var n,r=a.filter((function(t){return t.targetLinks&&0===t.sourceLinks.length})),s=t.append("g").attr("class","em-flow-labels");if(null!==(n=e.labels_)&&void 0!==n&&n.shadows){s.append("g").attr("class","em-flow-label-shadow").selectAll("text").data(r).join("text").attr("text-anchor",(function(t){return t.x>t.targetLinks[0].source.x?"start":"end"})).attr("x",(function(t){return t.x>t.targetLinks[0].source.x?t.x+e.labelOffsetX:t.x-e.labelOffsetX})).attr("y",(function(t){return t.y+e.labelOffsetY})).text((function(t){return e.labelFormatter(t.value)}))}var i=s.append("g").attr("class","em-flow-label").selectAll("g").data(r).join("g").attr("transform",(function(t){return"translate(".concat(t.x,", ").concat(t.y,")")}));i.append("text").attr("class","em-label-text").attr("text-anchor",(function(t){return t.x>t.targetLinks[0].source.x?"start":"end"})).attr("x",(function(t){return t.x>t.targetLinks[0].source.x?e.labelOffsetX:-e.labelOffsetX})).attr("y",e.labelOffsetY).text((function(t){return e.labelFormatter(t.value)})),e.labels_.backgrounds&&i.each((function(){var t=(0,d.A)(this).select("text").node().getBBox(),e=5,a=2;(0,d.A)(this).insert("rect","text").attr("class","em-label-background").attr("x",t.x-e).attr("y",t.y-a).attr("width",t.width+2*e).attr("height",t.height+2*a)}))}(x,l);s.node()}(e.flowGraph_)},e.updateClassification=function(){},e.getLegendConstructor=function(){return u.o};var y=function(t,e){return t.target.y-e.target.y},b=function(t,e){return t.source.y-e.source.y};var S=function(t){return t.id},A=function(){return(0,s.pq)().source(_).target(x)};return e},v=function(t,e){var a=[],n="".concat(t.source.id," > ").concat(t.target.id);return a.push('\n <div class="estat-vis-tooltip-bar">\n <b>'.concat(n,"</b>\n </div>\n ")),a.push("<div class='estat-vis-tooltip-text'>\n ".concat(t.target.value,"\n </div>")),a.join("")}},2832:(t,e,a)=>{a.d(e,{Tj:()=>k,vX:()=>z});var n=a(9394),r=a(3837),s=a(6502),i=a(1990),o=a(4660),l=a(1004),c=a(183),u=a(7971),d=a(1955),p=a(9390),f=a(2349),g=a(3608),h=a(9695),m=a(1597),v=a(902),_=a(8233),x=a(1838),y=a(8361),b=a(7233),S=a(6657),A=a(7002),C=a(9185),w=a(6033),k=function(t){var e=h.R(t,!0);function a(t){if(t.svg_&&e.classifierColor_){var a=t.statData("color");t.svg_.selectAll(".em-centroid").attr("ecl",(function(t){var n=a.get(t.properties.id);if(!n)return"nd";var r=n.value;return 0===r||r?+e.classifierColor_(+r):"nd"}))}}function _(t){e.psClassToFillStyle()||e.psClassToFillStyle(T(e.psColorFun_,e.psColors_));var n=t.statData("size").getArray()?t.statData("size"):t.statData();if(t.svg_){var r,s;t.svg_.selectAll(":not(#em-insets-group) g.em-centroid > *").remove(),t._centroidFeatures&&(!function(t){var e=t.svg_?t.svg_.select("#zoomgroup"+t.svgId_):null,a=e.select("#g_ps"),n=t.statData("size").getArray()?t.statData("size"):t.statData();t._centroidFeatures.sort((function(t,e){var a=n.get(t.properties.id),r=n.get(e.properties.id);return a||0==(null==a?void 0:a.value)||r||0==(null==r?void 0:r.value)?!a&&0!=(null==a?void 0:a.value)||!r&&0!=(null==r?void 0:r.value)?!a&&0!=(null==a?void 0:a.value)||r&&0!=!(null!=r&&r.value)?!r&&0!=(null==r?void 0:r.value)||a&&0!=!(null!=a&&a.value)?void 0:1:-1:r.value-a.value:0}));a.selectAll("g.em-centroid").data(t._centroidFeatures).join("g").attr("transform",(function(t){return"translate("+t.properties.centroid[0].toFixed(3)+","+t.properties.centroid[1].toFixed(3)+")"}))}(t),a(t)),s=e.psCustomSVG_?function(t,a){return t.svg().select("#g_ps").selectAll("g.em-centroid").append("g").filter((function(t){var e=a.get(t.properties.id);if(e&&":"!==e.value)return t})).attr("class","ps").html(e.psCustomSVG_).attr("transform",(function(t){var n=a.get(t.properties.id),r=e.classifierSize_(+n.value);if(r)return"translate(".concat(e.psOffset_.x*r,",").concat(e.psOffset_.y*r,") scale(").concat(r,")")}))}(t,n):"bar"==e.psShape_?function(t,a){return t.svg().select("#g_ps").selectAll("g.em-centroid").append("rect").filter((function(t){var e=a.get(t.properties.id);if(e&&":"!==e.value)return t})).attr("width",e.psBarWidth_).attr("height",(function(t){var n=a.get(t.properties.id);return n&&n.value?e.classifierSize_(+n.value):0})).attr("transform",(function(){this.getBoundingClientRect();return"translate(".concat(-this.getAttribute("width")/2)+", -".concat(this.getAttribute("height"),")")}))}(t,n):"circle"==e.psShape_?function(t,a){var n=t.svg().selectAll("g.em-centroid"),r=n.append("circle").attr("r",(function(t){var n=a.get(t.properties.id);return n?e.classifierSize_(n.value):0})).style("fill",(function(t){return t.color||"steelblue"}));e.dorling_&&function(t,a){var n=t.svg().selectAll("g.em-centroid");(0,d.A)(t._centroidFeatures).force("x",(0,p.A)((function(t){return console.log(t.properties.centroid),t.properties.centroid[0]}))).force("y",(0,f.A)((function(t){return t.properties.centroid[1]}))).force("collide",(0,g.A)((function(t){if(t.properties.radius)return t.properties.radius;var n=a.get(t.properties.id),r=n?e.classifierSize_(n.value):0;return t.properties.radius=r,r}))).on("tick",(function(){n.attr("transform",(function(t){return"translate("+t.x+","+t.y+")"}))}))}(t,a);return r}(t,n):"spike"==e.psShape_?function(t,a){var n=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.psSpikeWidth_;return"M".concat(-a/2,",0L0,").concat(-t,"L").concat(a/2,",0")},r=t.svg().selectAll("g.em-centroid"),s=r.append("path").attr("d",(function(t){var r=a.get(t.properties.id),s=r?e.classifierSize_(r.value):0;return n(s)})).style("fill",(function(t){return t.color||"steelblue"})).attr("fill-opacity",t.psFillOpacity_).attr("stroke",t.psStroke_).attr("stroke-width",t.psStrokeWidth_);return s}(t,n):function(t,a){return t.svg().selectAll("g.em-centroid").append("path").filter((function(t){var e=a.get(t.properties.id);if(e&&":"!==e.value)return t})).attr("class","ps").attr("d",(function(t){if(a){var n=a.get(t.properties.id);if(0==n||n){var r=e.classifierSize_(+n.value)||0;if(e.psCustomShape_)return e.psCustomShape_.size(r*r)();var s=z[e.psShape_]||z.circle;return(0,v.Ay)().type(s).size(r*r)()}}}))}(t,n);var i=(0,w.ty)(t),o=t.svg().selectAll(i);"WORLD"!==t.geo_?("mixed"==t.nutsLevel_&&function(t,a,n){var r=t.svg().selectAll("g.em-centroid").style("display",(function(e){var n=a.get(e.properties.id);return!n||!n.value&&0!==n&&0!==n.value?"none":"WORLD"==t.geo_?"block":void 0}));n.style("display",(function(e){var n=a.get(e.properties.id);return!n||!n.value&&0!==n&&0!==n.value?"none":"WORLD"==t.geo_?"block":void 0})),n.style("stroke",(function(t){var e=(0,c.A)(this),n=e.attr("lvl"),r=e.style("stroke"),s=a.get(t.properties.id);if(s&&s.value)return"0"!==n?r||"#777":void 0})).style("stroke-width",(function(t){var n=(0,c.A)(this),r=n.attr("lvl"),s=n.style("stroke-width"),i=a.get(t.properties.id);if(i&&i.value)return"WORLD"==e.geo_&&"0"!==r?s||"#777":void 0}))}(t,n,o),o.style("fill",(function(t){var a=n.get(t.properties.id);return!a||!a.value&&0!==a&&0!==a.value?e.noDataFillStyle_:a&&a.value||a&&0==a.value?":"==a.value?e.noDataFillStyle_:(0,w.hC)("em-nutsrg","fill"):void 0})),o.attr("ecl",(function(t){var e=n.get(t.properties.id);return!e||!e.value&&0!==e&&0!==e.value||(e&&e.value||e&&0==e.value)&&":"==e.value?"nd":void 0}))):o.style("fill",(function(t){var a=n.get(t.properties.id);return!a||!a.value&&0!==a&&0!==a.value||":"==a.value?e.worldFillStyle_:(0,w.hC)("em-nutsrg","fill")})),function(t){t.style("fill-opacity",e.psFillOpacity()).style("stroke",e.psStroke()).style("stroke-width",e.psStrokeWidth()).style("fill",(function(){if(e.classifierColor_){var t=(0,c.A)(this.parentNode).attr("ecl");return t&&"nd"!==t?e.psClassToFillStyle_(t,e.psClasses_):e.noDataFillStyle_||"gray"}return e.psFill_})).attr("fill___",(function(){return(0,c.A)(this).style("fill")}))}(s),x(t),null!==(r=e.labels_)&&void 0!==r&&r.values&&e.updateValuesLabels(t)}return t}e.psShape_="circle",e.psCustomShape_,e.psCustomSVG_,e.psSpikeWidth_=7,e.psOffset_={x:0,y:0},e.psMaxSize_=30,e.psMinSize_=5,e.psBarWidth_=10,e.psMaxValue_=void 0,e.psMinValue_=void 0,e.psSizeScale_=void 0,e.psFill_="#2d50a0",e.psFillOpacity_=1,e.psStroke_="#ffffff",e.psStrokeWidth_=.2,e.psClasses_=5,e.psColors_=null,e.psColorFun_=u.A,e.psClassToFillStyle_=void 0,e.psThreshold_=[0],e.psClassificationMethod_="quantile",e.makeClassifNice_=!0,e.classifierSize_=void 0,e.classifierColor_=void 0,e.tooltip_.textFunction=L,e.dorling_=!1,["psMaxSize_","psMinSize_","psMaxValue_","psMinValue_","psFill_","psFillOpacity_","psStroke_","psStrokeWidth_","classifierSize_","classifierColor_","psShape_","psCustomShape_","psBarWidth_","psClassToFillStyle_","psColorFun_","psSizeScale_","noDataFillStyle_","psThreshold_","psColors_","psCustomSVG_","psOffset_","psClassificationMethod_","psClasses_","dorling_","psSpikeWidth_"].forEach((function(t){e[t.substring(0,t.length-1)]=function(a){return arguments.length?(e[t]=a,e):e[t]}})),t&&["psMaxSize","psMinSize","psFill","psFillOpacity","psStroke","psStrokeWidth","classifierSize","classifierColor","psShape","psCustomShape","psBarWidth","psClassToFillStyle","psColorFun","noDataFillStyle","psThreshold","psColors","psCustomSVG","psOffset","psClassificationMethod","psClasses"].forEach((function(a){null!=t[a]&&e[a](t[a])})),e.psColorFun=function(t){return arguments.length?(e.psColorFun_=t,e.psClassToFillStyle_=T(e.psColorFun_,e.psColors_),e):e.psColorFun_},e.psThreshold=function(t){return arguments.length?(e.psThreshold_=t,e.psClasses(t.length+1),e):e.psThreshold_},e.updateClassification=function(){return function(){e.psSizeScale_||("spike"==e.psShape_?e.psSizeScale_="linear":e.psSizeScale_="sqrt");var t,a=function(t){return(0,n.A)(Array(t).keys())},c=e.statData("size").getArray(),u=e.psMinValue_?e.psMinValue_:e.statData("size").getMin(),d=e.psMaxValue_?e.psMaxValue_:e.statData("size").getMax();t=c?[u,d]:[e.statData().getMin(),e.statData().getMax()];var p="sqrt"==e.psSizeScale_?r.RZ:s.A;if(e.classifierSize(p().domain(t).range([e.psMinSize_,e.psMaxSize_])),e.statData("color").getArray())if("quantile"===e.psClassificationMethod_){var f=e.statData("color").getArray(),g=a(e.psClasses_);e.classifierColor((0,i.A)().domain(f).range(g))}else if("equinter"===e.psClassificationMethod_){var h=e.statData("color").getArray(),m=a(e.psClasses_);e.classifierColor((0,o.A)().domain([u(h),d(h)]).range(m)),e.makeClassifNice_&&e.classifierColor().nice()}else if("threshold"===e.psClassificationMethod_){e.psClasses(e.psThreshold().length+1);var v=a(e.psClasses_);e.classifierColor((0,l.A)().domain(e.psThreshold()).range(v))}}(),e.insetTemplates_&&(0,w.Qv)(e.insetTemplates_,e.svgId_,a),a(e),e};var x=function(t){t.svg().selectAll("g.em-centroid").on("mouseover",(function(t,a){var n=(0,c.A)(this.childNodes[0]);n.attr("fill___",n.style("fill")),n.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(t){var a=(0,c.A)(this.childNodes[0]),n=a.attr("fill___");n&&(a.style("fill",n),e._tooltip&&e._tooltip.mouseout())}))};return e.updateValuesLabels=function(t){t||(t=e),t.svg_.selectAll("g.em-stat-label > *").remove(),t.svg_.selectAll("g.em-stat-label-shadow > *").remove();var a=t.svg_.selectAll("g.em-stat-label"),n=t.statData("size").getArray()?t.statData("size"):t.statData();return a.filter((function(t){var e=n.get(t.properties.id);return!(!e||!e.value&&0!==e&&0!==e.value)})).append("text").text((function(t){var e=n.get(t.properties.id);return!e||!e.value&&0!==e&&0!==e.value?"":":"!==e.value?(0,w.sC)(e.value):void 0})),e.labelShadow_&&t.svg_.selectAll("g.em-stat-label-shadow").filter((function(t){var e=n.get(t.properties.id);return!(!e||!e.value&&0!==e&&0!==e.value)})).append("text").text((function(t){var e=n.get(t.properties.id);return!e||!e.value&&0!==e&&0!==e.value?"":":"!==e.value?(0,w.sC)(e.value):void 0})),e},e.updateStyle=function(){if(_(e),e.insetTemplates_)for(var t in e.insetTemplates_)if(Array.isArray(e.insetTemplates_[t]))for(var a=0;a<e.insetTemplates_[t].length;a++)if(Array.isArray(e.insetTemplates_[t][a]))for(var n=0;n<e.insetTemplates_[t][a].length;n++)e.insetTemplates_[t][a][n].svgId_!==e.svgId_&&_(e.insetTemplates_[t][a][n]);else e.insetTemplates_[t][a].svgId_!==e.svgId_&&_(e.insetTemplates_[t][a]);else e.insetTemplates_[t].svgId_!==e.svgId_&&_(e.insetTemplates_[t]);return e},e.getLegendConstructor=function(){return m.o},e},T=function(t,e){return t=t||u.A,e?function(t,a){return e[t]}:function(e,a){return t(e/(a-1))}},z={cross:_.A,square:x.A,diamond:y.A,triangle:b.A,star:S.A,wye:A.A,circle:C.A},L=function(t,e){var a=[],n=t.properties.na,r=t.properties.id;a.push('\n <div class="estat-vis-tooltip-bar">\n <b>'.concat(n,"</b>").concat(r?" (".concat(r,")"):"","\n </div>\n "));var s=e.statData("size").getArray()?e.statData("size"):e.statData(),i=s.get(t.properties.id);if(!i||0!=i.value&&!i.value)a.push(e.noDataText_);else{var o=s.unitText();a.push('<div class="estat-vis-tooltip-text">'.concat((0,w.sC)(i.value)," ").concat(o||" ","</div>"))}if(e.statData("color").getArray()){var l=e.statData("color").get(t.properties.id);if(!l||0!=l.value&&!l.value)a.push(e.noDataText_);else{var c=e.statData("color").unitText();a.push('<div class="estat-vis-tooltip-text">'.concat((0,w.sC)(l.value)," ").concat(c||" ","</div>"))}}return a.join("")}},2991:(t,e,a)=>{a.d(e,{A:()=>o});var n=a(1601),r=a.n(n),s=a(6314),i=a.n(s)()(r());i.push([t.id,"/* STYLING OF NUTS REGIONS AND BOUNDARIES */\n/* Default region fill */\n.em-cntrg,\n.em-nutsrg,\n.em-worldrg,\n.em-grid-cell {\n fill: #efefef;\n}\n\n.em-nutsrg,\n.em-worldrg,\n.em-grid-cell,\n#em-user-regions {\n cursor: pointer;\n}\n\n/* all boudnaries and regions */\n#g_worldbn,\n#em-nutsbn,\n.em-cntbn,\n.em-worldbn,\n.em-bn-0,\n.em-bn-1,\n.em-bn-2,\n.em-bn-3,\n.em-kosovo-bn,\n.em-bn-d,\n.em-bn-co,\n.em-nutsrg [lvl='3'],\n.em-nutsrg [lvl='2'],\n.em-nutsrg [lvl='1'],\n.em-cntrg,\n.em-nutsrg,\n.em-worldrg,\n.em-grid-cell {\n stroke-linecap: round;\n stroke-linejoin: round;\n}\n\n/* national boundaries */\n.em-cntbn,\n.em-worldbn {\n stroke: #363636;\n stroke-width: 0.9px;\n}\n\n/* NUTS boundaries stroke-width */\n.em-bn-0 {\n stroke: none;\n}\n.em-bn-1,\n.em-bn-2,\n.em-bn-3,\n/* when using MIXED NUTS levels, we add stroke to the regions, then show/hide those that have/dont have data */\n.em-nutsrg [lvl='3'],\n.em-nutsrg [lvl='2'],\n.em-nutsrg [lvl='1'],\n.em-bn-co {\n stroke-width: 0.2;\n}\n\n/* NUTS boundaries stroke color */\n.em-bn-1,\n.em-bn-2,\n.em-bn-3,\n.em-nutsrg [lvl='3'],\n.em-nutsrg [lvl='2'],\n.em-nutsrg [lvl='1'] {\n stroke: #696969;\n}\n\n/* coastal boundaries */\n.em-bn-co {\n stroke: white;\n}\n\n/* kosovo */\n.em-kosovo-bn {\n stroke: #6e6e6e;\n stroke-width: 0.19;\n}\n\n/* disputed */\n.em-bn-d {\n stroke: #6e6e6e;\n stroke-width: 0.2;\n}\n\n/* target non cc/eu/efta borders */\n/* .em-bn-oth:not(.em-bn-co):not(.em-bn-cc):not(.em-bn-eu):not(.em-bn-efta) {\n stroke-width: 0;\n} */\n\n/* dont fill certain elements */\n.em-frame,\n.em-graticule,\n.em-cntbn,\n.em-worldbn,\n.em-bn-0,\n.em-bn-1,\n.em-bn-2,\n.em-bn-3,\n.em-kosovo-bn,\n.em-bn-d,\n.em-bn-co {\n fill: none;\n}\n",""]);const o=i},3126:(t,e,a)=>{a.d(e,{o:()=>c});var n=a(9394),r=a(183),s=a(4984),i=a(5097),o=a(8640),l=a(6033),c=function(t,e){var a=i.o(t);if(a.squareSize=100,a.rotation=0,a.label1="Variable 1",a.label2="Variable 2",a.axisTitleFontSize=(0,l.LF)("em-bivariate-axis-title"),a.breaks1=void 0,a.breaks2=void 0,a.showBreaks=!1,a.yAxisLabelsOffset={x:7,y:0},a.xAxisLabelsOffset={x:0,y:5},a.noData=!0,a.noDataShapeHeight=20,a.noDataShapeWidth=25,a.noDataText="No data",a.boxPadding=a.labelFontSize,a.noDataYOffset=20,a.arrowHeight=15,a.arrowWidth=14,a.arrowPadding=10,e)for(var c in e)a[c]=e[c];function u(t,e,a){var n=(0,l.Gb)(t),s=t.svg_.selectAll(n).selectAll("[ecl1]");s.style("fill","white"),s.filter("[ecl1='".concat(e,"']")).filter("[ecl2='".concat(a,"']")).each((function(){(0,r.A)(this).style("fill",(0,r.A)(this).attr("fill___"))}))}function d(t){var e=(0,l.Gb)(t);t.svg_.selectAll(e).selectAll("[ecl1]").each((function(){(0,r.A)(this).style("fill",(0,r.A)(this).attr("fill___"))}))}return a.update=function(){var e=a.lgg,i=a.map.numberOfClasses(),c=a.squareSize/i,p=0===a.rotation?0:.7071*a.squareSize+a.boxPadding,f=a.axisTitleFontSize+a.arrowPadding;e.selectAll("*").remove(),a.makeBackgroundBox(),a.title&&e.append("text").attr("class","em-legend-title").attr("x",p+f).attr("y",a.boxPadding+a.titleFontSize).text(a.title);for(var g=a.boxPadding+(a.title?a.titleFontSize+a.boxPadding:0),h=e.append("g").attr("class","bivariate-squares-chart").attr("transform","translate(".concat(a.boxPadding+f,",").concat(p+g,") rotate(").concat(a.rotation,") translate(").concat(a.boxPadding,",0)")),m=a.yAxisLabelsOffset.x,v=0;v<i;v++)for(var _=function(){var t=i-v-1,e=i-x-1,n=a.map.classToFillStyle()(t,e);h.append("rect").attr("class","em-bivariate-square").attr("x",m+(i-1-v)*c).attr("y",x*c).attr("width",c).attr("height",c).style("fill",n).on("mouseover",(function(){u(a.map,t,e),a.map.insetTemplates_&&(0,l.Qv)(a.map.insetTemplates_,a.map.svgId,u,t,e),(0,r.A)(this).raise()})).on("mouseout",(function(){d(a.map),a.map.insetTemplates_&&(0,l.Qv)(a.map.insetTemplates_,a.map.svgId,d,t,e)}))},x=0;x<i;x++)_();if(a.breaks1||a.breaks2||!a.showBreaks||(a.breaks1=t.classifier1_.quantiles().map((function(t){return parseFloat(t.toFixed(0))})),a.breaks2=t.classifier2_.quantiles().map((function(t){return parseFloat(t.toFixed(0))}))),a.breaks1)for(var y=0;y<a.breaks1.length;y++){var b=m+c*(y+1),S=a.squareSize+(0,l.LF)("em-bivariate-tick-label");h.append("text").attr("class","em-bivariate-tick-label").attr("x",b+a.xAxisLabelsOffset.x).attr("y",S+a.xAxisLabelsOffset.y).text(a.breaks1[y]),h.append("line").attr("class","em-bivariate-tick").attr("x1",b+a.xAxisLabelsOffset.x).attr("x2",b+a.xAxisLabelsOffset.x).attr("y1",a.squareSize).attr("y2",a.squareSize+5)}if(a.breaks2)for(var A=0;A<a.breaks2.length;A++){var C=m,w=c*(A+2)-c;h.append("text").attr("class","em-bivariate-tick-label").attr("x",C+a.yAxisLabelsOffset.y).attr("y",w-a.yAxisLabelsOffset.x).text((0,n.A)(a.breaks2).reverse()[A]).attr("text-anchor","middle").attr("transform","rotate(-90, ".concat(C,", ").concat(w,")")),h.append("line").attr("class","em-bivariate-tick").attr("x1",C).attr("x2",C-5).attr("y1",w).attr("y2",w)}var k=a.squareSize+a.arrowHeight+a.xAxisLabelsOffset.y;(a.showBreaks||a.breaks1&&a.breaks2)&&(k+=(0,l.LF)("em-bivariate-tick-label")/1.5),h.append("path").attr("class","em-bivariate-axis-arrow").attr("d",(0,o.A)()([[m,k],[m+a.squareSize,k]])).attr("stroke","black").attr("marker-end","url(#arrowhead)");var T=-a.arrowHeight+a.yAxisLabelsOffset.x;if((a.showBreaks||a.breaks1&&a.breaks2)&&(T-=a.labelFontSize/2),h.append("path").attr("class","em-bivariate-axis-arrow").attr("d",(0,o.A)()([[T,a.squareSize],[T,0]])).attr("stroke","black").attr("marker-end","url(#arrowhead)"),h.append("text").attr("class","em-bivariate-axis-title").attr("x",m+a.xAxisLabelsOffset.x).attr("y",k+a.arrowPadding).text(a.label1).attr("dominant-baseline","hanging").attr("alignment-baseline","hanging"),h.append("text").attr("class","em-bivariate-axis-title").attr("x",-a.squareSize).attr("y",T-a.arrowPadding).text(a.label2).style("transform",a.rotation<0?"translate(-51px, 95px) rotate(90deg)":"rotate(-90deg)"),h.append("rect").attr("class","em-bivariate-frame").attr("x",m).attr("y",0).attr("width",a.squareSize).attr("height",a.squareSize).attr("stroke-width",.7),h.append("defs").append("marker").attr("viewBox","0 0 ".concat(a.arrowWidth," ").concat(a.arrowHeight)).attr("id","arrowhead").attr("refX",0).attr("refY",5).attr("markerWidth",a.arrowWidth).attr("markerHeight",a.arrowHeight).attr("orient","auto").append("path").attr("d","M 0 0 L 5 5 L 0 10").attr("marker-units","strokeWidth"),a.noData){var z=0===a.rotation?a.noDataYOffset+a.squareSize/a.map.numberOfClasses_+a.arrowHeight/2:a.noDataYOffset;g=0===a.rotation?g+a.squareSize+z:g+1.4142*a.squareSize+2*a.boxPadding+z,e.append("rect").attr("class","em-bivariate-nodata").attr("x",a.boxPadding+(0==a.rotation?1:15)).attr("y",g+(0==a.rotation?0:-10)).attr("width",a.noDataShapeWidth).attr("height",a.noDataShapeHeight).style("fill",a.map.noDataFillStyle()).on("mouseover",(function(){("mixed"==a.map.nutsLevel_?(0,s.A)("#em-nutsrg"):(0,r.A)("#em-nutsrg")).selectAll("[nd='nd']").style("fill","red")})).on("mouseout",(function(){("mixed"==a.map.nutsLevel_?(0,s.A)("#em-nutsrg"):(0,r.A)("#em-nutsrg")).selectAll("[nd='nd']").style("fill",(function(){return(0,r.A)(this).attr("fill___")})),(0,r.A)(this).style("fill",a.map.noDataFillStyle())})),e.append("text").attr("class","em-bivariate-nodata-label").attr("x",a.boxPadding+a.noDataShapeWidth+5+(0==a.rotation?1:15)).attr("y",g+.5*a.noDataShapeHeight+1+(0==a.rotation?0:-10)).text(a.noDataText)}a.setBoxDimension()},a}},3351:(t,e,a)=>{a.d(e,{I:()=>o});var n=a(9394),r=a(3453),s=a(183),i=a(3004),o=function(t){var e,a,o,l,c=(0,s.A)("#em-zoom-group-"+t.svgId_).append("g").attr("id","em-grid-container"),u=t.width_,d=t.height_,p=t.gridCartogramCellPadding_||0,f=t.gridCartogramContainerPadding_||80,g="hexagon"==t.gridCartogramShape_?"\n ,IS, , , ,NO, ,FI, , , \n , , , , , ,SE, , , , \n , , , , , , , , ,EE, \n ,IE,UK, , ,DK, ,LT,LV, , \n , , , NL ,,DE,PL, , , , \n , , ,BE,LU, ,CZ,SK,UA, , \n , ES,FR,CH,LI,AT,HU,RO,MD, , \n PT ,, , ,IT,SI, ,BA,RS,BG, , \n , , , , , ,HR,ME,MK, , \n , , , , , , ,AL,EL,TR, \n , , , ,MT, , , , ,CY, ":"\n ,IS, , , ,NO,SE,FI, , , , ,\n , , , , , , , ,EE, , , ,\n , , , , , , , ,LV, , , ,\n ,IE,UK, , ,DK, ,LT, , , , ,\n , , , ,NL,DE,PL, , , , , ,\n , , ,BE,LU,CZ,SK,UA, , , , ,\n , ,FR,CH,LI,AT,HU,RO,MD, , , ,\n ,PT,ES, ,IT,SI,HR,RS,BG, , , ,\n , , , , , ,BA,ME,MK, , , , \n , , , , , , ,AL,EL,TR, , , \n , , , ,MT, , , , ,CY, , , ",h=function(t){var e=new Map;return(0,i.fy)(t.trim(),(function(t,a){t.forEach((function(t,n){(t=t.trim())&&e.set(t,[n,a])}))})),e}(t.gridCartogramPositions_||g),m=Array.from(h,(function(e){var a=(0,r.A)(e,2),n=a[0],s=(0,r.A)(a[1],2),i=s[0],o=s[1],l=t.Geometries.geoJSONs.nutsrg.find((function(t){return t.properties.id==n}));return{id:n,col:i,row:o,properties:{id:n,name:l?l.properties.na:""}}}));"hexagon"===t.gridCartogramShape_?(e=Math.max.apply(Math,(0,n.A)(m.map((function(t){return t.col}))))+1,a=Math.max.apply(Math,(0,n.A)(m.map((function(t){return t.row}))))+1,o=Math.min((u-2*f)/(1.5*e),(d-2*f)/(a*Math.sqrt(3))),l=Math.sqrt(3)*o,c.selectAll(".em-grid-cell").data(m).enter().append("g").attr("class","em-grid-cell").attr("transform",(function(t){var e=t.col*(1.5*o+p)+f,a=t.row*(l+p)+(t.col%2==1?(l+p)/2:0)+f;return"translate(".concat(e,", ").concat(a,")")})).each((function(e){var a,n;(0,s.A)(this).append("path").attr("d",(a=o,n=Math.PI/3,Array.from({length:6},(function(t,e){var r=a*Math.cos(n*e),s=a*Math.sin(n*e);return"".concat(0===e?"M":"L").concat(r,",").concat(s)})).join(" ")+" Z")).attr("fill",t.defa).attr("class","em-grid-hexagon"),(0,s.A)(this).append("text").attr("class","em-grid-text").attr("text-anchor","middle").attr("font-size",15).style("pointer-events","none").attr("fill","black").text(e.id).attr("y",5)}))):function(){var e=Math.max.apply(Math,(0,n.A)(m.map((function(t){return t.col}))))+1,a=Math.max.apply(Math,(0,n.A)(m.map((function(t){return t.row}))))+1,r=(u-2*f)/e-p,i=(d-2*f)/a-p,o=Math.min(r,i);c.selectAll(".em-grid-cell").data(m).enter().append("g").attr("class","em-grid-cell").attr("transform",(function(t){return"translate(".concat(t.col*(o+p)+f,", ").concat(t.row*(o+p)+f,")")})).each((function(e){(0,s.A)(this).append("rect").attr("width",o).attr("height",o).attr("fill",t.defa).attr("class","em-grid-rect"),(0,s.A)(this).append("text").attr("class","em-grid-text").attr("text-anchor","middle").attr("font-size",15).style("pointer-events","none").attr("fill","black").text(e.id).attr("x",o/2).attr("y",o/2+5)}))}(),c.each((function(){var t=this.getBBox(),e=(u-t.width)/2-t.x,a=(d-t.height)/2-t.y;c.attr("transform","translate(".concat(e,", ").concat(a,")"))}))}},3604:(t,e,a)=>{a.d(e,{A:()=>o});var n=a(1601),r=a.n(n),s=a(6314),i=a.n(s)()(r());i.push([t.id,".em-legend-background {\n fill: white;\n opacity: 0.7;\n rx: 0;\n ry: 0;\n pointer-events: none;\n}\n.em-legend-label {\n font-size: 15px;\n stroke: none;\n fill: black;\n dominant-baseline: central;\n}\n.em-legend-title {\n font-size: 16px;\n fill: black;\n}\n.em-legend-separator {\n stroke: white;\n stroke-width: 1;\n}\n.em-legend-tick {\n stroke: grey;\n stroke-width: 1;\n}\n.em-bivariate-frame {\n fill: none;\n stroke: black;\n}\n.em-bivariate-nodata {\n stroke: black;\n stroke-width: 0.5;\n cursor: pointer;\n}\n.em-bivariate-axis-title {\n font-size: 15px;\n}\n.em-bivariate-nodata-label {\n font-size: 14px;\n dominant-baseline: middle;\n}\n.em-bivariate-tick {\n stroke: black;\n stroke-width: 1;\n}\n.em-bivariate-tick-label {\n text-anchor: middle;\n font-size: 12px;\n}\n.em-bivariate-square,\n.em-legend-rect {\n cursor: pointer;\n stroke: white;\n}\n\n.em-bivariate-square:hover,\n.em-legend-rect:hover {\n stroke-width: 2;\n stroke: red;\n}\n\n.em-pie-size-legend-line {\n stroke-dasharray: 2;\n stroke: grey;\n}\n\n.em-legend-diverging-line {\n stroke: black;\n}\n",""]);const o=i},3729:(t,e,a)=>{a.d(e,{L:()=>o});var n=a(1371),r=a(1468),s=a(6033),i=a(9475),o=function(t){var e={__data:void 0,_data_:void 0,get:function(t){return t?e._data_?e._data_[t]:void 0:e._data_},getValue:function(t){var a=e.get(t);return a?a.value:void 0},set:function(t,a){e._data_=e._data_||{};var n=e._data_[t];return n?a.value?(n.value=a.value,n.status=a.status):n.value=a:e._data_[t]=a.value?a:{value:a},e},setData:function(t){return e.__data=t,e._data_={},Object.keys(t).forEach((function(a){return e.set(a,t[a])})),e},getArray:function(){if(e._data_)return Object.values(e._data_).map((function(t){return t.value})).filter((function(t){return 0==t||t}))},getUniqueValues:function(){return Object.values(e._data_).map((function(t){return t.value})).filter((function(t,e,a){return a.indexOf(t)===e}))},getMin:function(){if(e._data_)return Object.values(e._data_).map((function(t){return t.value})).filter((function(t){return 0==t||t&&":"!==t})).reduce((function(t,e){return Math.min(t,e)}))},getMax:function(){if(e._data_)return Object.values(e._data_).map((function(t){return t.value})).filter((function(t){return 0==t||t&&":"!==t})).reduce((function(t,e){return Math.max(t,e)}))},isReady:function(){return null!=e._data_},metadata:void 0,unitText_:void 0,retrieveFromRemote:function(t,n,r){return e.eurostatDatasetCode_?a(t,n,r):e.csvURL_&&o(r),e},eurostatDatasetCode_:void 0,filters_:{lastTimePeriod:1},precision_:2},a=function(t,a,r){e._data_=null,function(t,a){return e.filters_.geo||(e.filters_.geoLevel=t+""=="0"?"country":"nuts"+t),(0,n.A)((0,s.F8)(e.eurostatDatasetCode_,e.filters_,a))}(t,a).then((function(t){var a=(0,i.A)(t);e.metadata={label:a.label,href:a.href,source:a.source,updated:a.updated,extension:a.extension},e.metadata.time=a.Dimension("time").id[0],e._data_=(0,s.iE)(a),r&&r()}))};e.getTime=function(){var t=e.filters_.time;return t||(e._data_?e.metadata.time:void 0)},e.csvURL_=void 0,e.geoCol_="geo",e.valueCol_="value";var o=function(t){e._data_=null,(0,r.fu)(e.csvURL_).then((function(a){e._data_=(0,s.m1)(a,e.geoCol_,e.valueCol_),e.metadata={href:e.csvURL_},t&&t()}))};if(["unitText_"].forEach((function(t){e[t.substring(0,t.length-1)]=function(a){return arguments.length?(e[t]=a,e):e[t]}})),t)for(var l in t)e[l+"_"]=t[l];return e}},3772:(t,e,a)=>{a.d(e,{o:()=>d});var n=a(183),r=a(8701),s=a(1392),i=a(6502),o=a(5267),l=a(8465),c=a(5097),u=a(6033),d=function(t,e){var a=c.o(t);if(a.labelType="thresholds",a.ascending=!0,a.shapeWidth=25,a.shapeHeight=20,a.sepLineLength=a.shapeWidth,a.tickLength=4,a.decimals=0,a.labelOffset=3,a.labelFormatter=null,a.labels=null,a.barChart=void 0,a.barChartCounts=void 0,a.barChartLabelFormat=void 0,a.pointOfDivergenceLabel=void 0,a.pointOfDivergence=void 0,a.pointOfDivergencePadding=7,a.divergingLineLength=void 0,a.divergingArrowLength=void 0,a.noData=!0,a.noDataText="No data",e)for(var d in e)a[d]=e[d];function p(){var t=a.map;return t.thresholds_.length>1?t.thresholds_:Array.from({length:t.numberOfClasses_}).map((function(e,n){return t.classifier().invertExtent(n)[a.ascending?0:1]})).slice(1)}function f(){return t.colors_?t.colors_:Array.from({length:t.numberOfClasses_}).map((function(e,a){return t.classToFillStyle()(a,t.numberOfClasses_)}))}function g(){return Object.values(t.statData()._data_).map((function(t){return t.value}))}function h(t){var e=a.lgg.append("g").attr("class","em-legend-divergence-container"),n=a.boxPadding;"ranges"==a.labelType&&(t+=a.pointOfDivergencePadding/2);var r=a.lgg.selectAll(".em-legend-label").nodes().reduce((function(t,e){return Math.max(t,e.getBBox().width)}),0),s=a.divergingLineLength||r+a.boxPadding+a.shapeWidth+10;e.append("line").attr("x1",n).attr("y1",t).attr("x2",n+s).attr("y2",t).attr("class","em-legend-diverging-line");var i=a.pointOfDivergenceLabel.split("|");if(i.length>1){var o=a.divergingArrowLength||30,l=n+s;e.append("defs").append("marker").attr("id","arrowhead").attr("markerWidth",6).attr("markerHeight",6).attr("refX",0).attr("refY",3).attr("orient","auto").append("polygon").attr("points","0 0, ".concat(6," ").concat(3,", 0 ").concat(6)).attr("fill","black"),e.append("line").attr("class","em-legend-diverging-line").attr("x1",l).attr("y1",t).attr("x2",l).attr("y2",t-o).attr("marker-end","url(#arrowhead)"),e.append("line").attr("class","em-legend-diverging-line").attr("x1",l).attr("y1",t).attr("x2",l).attr("y2",t+o).attr("marker-end","url(#arrowhead)"),e.append("text").attr("class","em-legend-label").attr("x",l+10).attr("y",t-o+10).text(i[0]),e.append("text").attr("class","em-legend-label").attr("x",l+10).attr("y",t+o-10).text(i[1])}else e.append("text").attr("class","em-legend-diverging-label em-legend-label").attr("x",n+s+5).attr("y",t).text(a.pointOfDivergenceLabel);"thresholds"==a.labelType&&(i.length>1?a.lgg.selectAll(".em-legend-label-divergence").attr("x",n+s+10):a.lgg.selectAll(".em-legend-label-divergence").remove())}function m(t,e){var a=(0,u.Gb)(t),r=t.svg_.selectAll(a).selectAll("[ecl]");r.style("fill","white"),r.filter("[ecl='"+e+"']").each((function(){(0,n.A)(this).style("fill",(0,n.A)(this).attr("fill___"))}))}function v(t){var e=(0,u.Gb)(t);t.svg_.selectAll(e).selectAll("[ecl]").each((function(){(0,n.A)(this).style("fill",(0,n.A)(this).attr("fill___"))}))}return a.update=function(){var e=a.map,c=a.lgg;if(e.legend_&&Object.assign(a,e.legend_),c.selectAll("*").remove(),a.makeBackgroundBox(),a.title){var d=(0,u.LF)("em-legend-title");c.append("text").attr("class","em-legend-title").attr("x",a.boxPadding).attr("y",a.boxPadding+d).text(a.title)}a.pointOfDivergenceLabel&&!a.pointOfDivergence&&(a.pointOfDivergence=t.numberOfClasses_/2),a.barChart?function(){var t=a.map,e=p(),r=f(),c=g(),d=new Array(t.numberOfClasses_).fill(0);c.forEach((function(e){var a=t.classifier()(e);"number"==typeof a&&a>=0&&a<d.length&&d[a]++}));var h=d.slice().reverse(),_=h.length;r.length!==_&&console.warn("Mismatch between number of colors (".concat(r.length,") and number of bars (").concat(_,")"));var x=a.lgg,y=a.boxPadding+30;a.title&&(y=y+(0,u.LF)("em-legend-title")+8);var b=300,S=300,A={top:20,right:60,bottom:20,left:150},C=(0,s.A)().domain(h.map((function(t,e){return e}))).range([A.top,S-A.bottom]).padding(.1),w=(0,i.A)().domain([0,(0,l.A)(h)]).nice().range([A.left,b-A.right]),k=x.append("g").attr("class","em-legend-barchart").style("transform","translate(0px, 10px)");k.selectAll("rect").data(h).join("rect").attr("y",(function(t,e){return C(e)})).attr("x",A.left).attr("height",C.bandwidth()).attr("width",(function(t){return w(t)-A.left})).attr("ecl",(function(t,e){return e})).attr("fill",(function(t,e){return r[r.length-e-1]})).style("cursor","pointer").on("mouseover",(function(t,e){var s=(0,n.A)(this);s.style("stroke","black");var i=s.attr("ecl"),o=parseInt(i,10),l=r.length-1-o;m(a.map,l),a.map.insetTemplates_&&(0,u.Qv)(a.map.insetTemplates_,a.map.svgId,m,i)})).on("mouseout",(function(t,e){(0,n.A)(this).style("stroke","none"),v(a.map),a.map.insetTemplates_&&(0,u.Qv)(a.map.insetTemplates_,a.map.svgId,v)})),a.barChartCounts&&k.selectAll("text.count-label").data(h).join("text").attr("class","count-label").attr("x",(function(t){return w(t)+5})).attr("y",(function(t,e){return C(e)+C.bandwidth()/2})).attr("text-anchor","start").attr("alignment-baseline","middle").attr("font-size","14px").text((function(t){return t}));k.append("g").attr("transform","translate(".concat(A.left,", 0)")).call((0,o.V4)(C).tickSizeOuter(0).tickSize(0).tickFormat(a.barChartLabelFormat?a.barChartLabelFormat:function(t,a){return 0===a?"> ".concat(e[e.length-1]):a===e.length?"< ".concat(e[0]):"".concat(e[e.length-a-1]," - < ").concat(e[e.length-a]," ")})).selectAll("text").attr("font-size","14px")}():"ranges"==a.labelType?function(){var t=a.map,e=a.lgg,r=p(),s=function(t,e){return 0===e?"> ".concat(r[r.length-1]):e===r.length?"< ".concat(r[0]):"".concat(r[r.length-e-1]," - < ").concat(r[r.length-e]," ")},i=a.labelFormatter||s,o=a.boxPadding;a.title&&(o=o+(0,u.LF)("em-legend-title")+8);for(var l=function(){var r=o+c*a.shapeHeight,s=a.boxPadding,l=a.ascending?t.numberOfClasses()-c-1:c,d=t.classToFillStyle()(l,t.numberOfClasses_),p=e.append("g").attr("class","em-legend-item");a.pointOfDivergenceLabel&&c>=a.pointOfDivergence&&(r+=a.pointOfDivergencePadding),p.append("rect").attr("class","em-legend-rect").attr("x",s).attr("y",r).attr("width",a.shapeWidth).attr("height",a.shapeHeight).style("fill",d).on("mouseover",(function(){(0,n.A)(this).raise(),m(a.map,l),a.map.insetTemplates_&&(0,u.Qv)(a.map.insetTemplates_,a.map.svgId,m,l)})).on("mouseout",(function(){v(a.map),a.map.insetTemplates_&&(0,u.Qv)(a.map.insetTemplates_,a.map.svgId,v,l)})),c>0&&p.append("line").attr("class","em-legend-separator").attr("x1",a.boxPadding).attr("y1",r).attr("x2",a.boxPadding+a.sepLineLength).attr("y2",r),p.append("text").attr("class","em-legend-label").attr("x",a.boxPadding+Math.max(a.shapeWidth,a.sepLineLength+a.tickLength)+a.labelOffset).attr("y",r+a.shapeHeight/2).attr("dominant-baseline","middle").text(a.labels?a.labels[c]:i(t.classifier().invertExtent(l)[a.ascending?0:1],c))},c=0;c<t.numberOfClasses_;c++)l();if(a.pointOfDivergenceLabel)for(var d=0;d<t.numberOfClasses_;d++){var f=o+d*a.shapeHeight;d==a.pointOfDivergence&&h(f)}if(a.noData){var g=e.append("g").attr("class","em-legend-item"),_=o+t.numberOfClasses()*a.shapeHeight+a.boxPadding;a.pointOfDivergence&&(_+=a.pointOfDivergencePadding),g.append("rect").attr("class","em-legend-rect").attr("x",a.boxPadding).attr("y",_).attr("width",a.shapeWidth).attr("height",a.shapeHeight).style("fill",a.map.noDataFillStyle_).on("mouseover",(function(){(0,n.A)(this).raise(),m(t,"nd"),t.insetTemplates_&&(0,u.Qv)(t.insetTemplates_,t.svgId,m,"nd")})).on("mouseout",(function(){v(t),t.insetTemplates_&&(0,u.Qv)(t.insetTemplates_,t.svgId,v)})),g.append("text").attr("class","em-legend-label").attr("x",a.boxPadding+a.shapeWidth+a.labelOffset).attr("y",_+.5*a.shapeHeight).attr("dominant-baseline","middle").text(a.noDataText)}}():function(){var e=a.map,n=a.lgg,s=a.labelFormatter||(0,r.GP)(".".concat(a.decimals,"f")),i=a.boxPadding;a.title&&(i=i+(0,u.LF)("em-legend-title")+8);for(var o=function(){var t=i+l*a.shapeHeight,r=a.boxPadding,o=a.ascending?e.numberOfClasses()-l-1:l,c=e.classToFillStyle()(o,e.numberOfClasses_);if(n.append("rect").attr("class","em-legend-rect").attr("x",r).attr("y",t).attr("width",a.shapeWidth).attr("height",a.shapeHeight).style("fill",c).on("mouseover",(function(){m(a.map,o),a.map.insetTemplates_&&(0,u.Qv)(a.map.insetTemplates_,a.map.svgId,m,o)})).on("mouseout",(function(){v(a.map),a.map.insetTemplates_&&(0,u.Qv)(a.map.insetTemplates_,a.map.svgId,v,o)})),l>0&&n.append("line").attr("class","em-legend-separator").attr("x1",a.boxPadding).attr("y1",t).attr("x2",a.boxPadding+a.sepLineLength).attr("y2",t),l>0&&n.append("line").attr("class","em-legend-tick").attr("x1",a.boxPadding+a.sepLineLength).attr("y1",t).attr("x2",a.boxPadding+a.sepLineLength+a.tickLength).attr("y2",t),l<e.numberOfClasses()-1){var d=n.append("text").attr("class","em-legend-label").attr("x",a.boxPadding+Math.max(a.shapeWidth,a.sepLineLength+a.tickLength)+a.labelOffset).attr("y",t+a.shapeHeight).attr("dominant-baseline","middle").text(a.labels?a.labels[l]:s(e.classifier().invertExtent(o)[a.ascending?0:1]));a.pointOfDivergenceLabel&&l==a.pointOfDivergence-1&&d.attr("class","em-legend-label em-legend-label-divergence")}},l=0;l<e.numberOfClasses_;l++)o();if(a.pointOfDivergenceLabel)for(var c=0;c<t.numberOfClasses_;c++){var d=i+c*a.shapeHeight;c==a.pointOfDivergence&&h(d)}if(a.noData){var p=i+e.numberOfClasses()*a.shapeHeight+a.boxPadding;n.append("rect").attr("class","em-legend-rect").attr("x",a.boxPadding).attr("y",p).attr("width",a.shapeWidth).attr("height",a.shapeHeight).style("fill",a.map.noDataFillStyle_).on("mouseover",(function(){m(a.map,"nd"),a.map.insetTemplates_&&(0,u.Qv)(a.map.insetTemplates_,a.map.svgId,m,"nd")})).on("mouseout",(function(){v(a.map),a.map.insetTemplates_&&(0,u.Qv)(a.map.insetTemplates_,a.map.svgId,v)})),n.append("text").attr("class","em-legend-label").attr("x",a.boxPadding+a.shapeWidth+a.labelOffset).attr("y",p+.5*a.shapeHeight).attr("dominant-baseline","middle").text(a.noDataText)}}(),a.setBoxDimension()},a.labelDecNb=function(t){return console.warn("labelDecNb is now DEPRECATED. Please use decimals instead."),a},a}},3964:(t,e,a)=>{a.d(e,{$:()=>s,N:()=>o});var n=a(183),r=a(8689),s=function(t,e){t.insetBoxPosition_||(t.insetBoxPosition_=[t.width_-t.insetBoxWidth_-2*t.insetBoxPadding_,2*t.insetBoxPadding_]);var a=(0,n.A)("#"+t.svgId_).select("#em-drawing-"+t.svgId_).append("g").attr("id","em-insets-group").attr("class","em-insets").attr("transform","translate("+t.insetBoxPosition_[0]+","+t.insetBoxPosition_[1]+")");"default"===t.insets_&&(t.insets_=l(t.insetBoxWidth_,t.insetBoxPadding_));for(var r=0;r<t.insets_.length;r++){var s=t.insets_[r];if(s.svgId=s.svgId||"inset"+s.geo+Math.random().toString(36).substring(7),0==(0,n.A)("#"+s.svgId).size()){var o=null==s.x?t.insetBoxPadding_:s.x,c=null==s.y?t.insetBoxPadding_+r*(t.insetBoxPadding_+t.insetBoxWidth_):s.y;a.append("g").attr("id","em-inset-"+s.svgId).attr("class","em-inset").attr("transform","translate("+o+","+c+")").append("svg").attr("id",s.svgId)}if(t.insetTemplates_[s.geo]){var u=i(s,t,e);u.buildMapTemplateBase(),t.insetTemplates_[s.geo]=[t.insetTemplates_[s.geo],u]}else{var d=i(s,t,e).buildMapTemplateBase();t.insetTemplates_[s.geo]=d}}return t},i=function(t,e,a){var n=(0,r.P)(t,a);for(var s in(t=t||{}).proj=t.proj||c[t.geo],t.scale=t.scale||e.insetScale_,t.footnote=t.footnote||"",t.showSourceLink=t.showSourceLink||!1,t.zoomExtent=t.zoomExtent||e.insetZoomExtent_,t.width=t.width||e.insetBoxWidth_,t.height=t.height||e.insetBoxWidth_,t.insets=t.insets||[],t.insetTemplates=t.insetTemplates||{},t.callback=t.callback||void 0,["nutsLevel_","nutsYear_","hoverColor_","cntrgFillStyle_","cntbnStroke_","cntbnStrokeWidth_","seaFillStyle_","drawCoastalMargin_","coastalMarginColor_","coastalMarginWidth_","coastalMarginStdDev_","graticuleStroke_","graticuleStrokeWidth_","labelling_","labelFill_","labelValuesFontSize_","labelOpacity_","labelStroke_","labelStrokeWidth_","labelShadowWidth_","labelShadow_","labelShadowColor_","labelShadowsToShow_","labelsToShow_","fontFamily_","lg_","projectionFunction_","filterGeometriesFunction_"].forEach((function(t){n[t]=e[t]})),["stat","statData","legend","legendObj","noDataText","language","transitionDuration","tooltip_","classToText_"].forEach((function(t){n[t]=e[t]})),t)n[s+"_"]=t[s];return n.isInset=!0,n},o=function(t){if(t.insetTemplates_){for(var e in t.insetTemplates_){var a=t.insetTemplates_[e].svgId_,r=(0,n.A)("#"+a);r&&r.html("")}t.insetTemplates_={}}},l=function(t,e){for(var a=[{geo:"IC",x:0,y:0,width:t,height:.3*t},{geo:"CARIB",x:0,y:.3*t+e,width:.5*t,height:t},{geo:"GF",x:.5*t,y:.3*t+e,width:.5*t,height:.75*t},{geo:"YT",x:.5*t,y:1.05*t+e,width:.25*t,height:.25*t},{geo:"RE",x:.75*t,y:1.05*t+e,width:.25*t,height:.25*t},{geo:"PT20",x:0,y:1.3*t+2*e,width:.75*t,height:.25*t},{geo:"PT30",x:.75*t,y:1.3*t+2*e,width:.25*t,height:.25*t},{geo:"MT",x:0,y:1.55*t+3*e,width:.25*t,height:.25*t},{geo:"LI",x:.25*t,y:1.55*t+3*e,width:.25*t,height:.25*t},{geo:"SJ_SV",x:.5*t,y:1.55*t+3*e,width:.25*t,height:.25*t},{geo:"SJ_JM",x:.75*t,y:1.55*t+3*e,width:.25*t,height:.25*t}],n=0;n<a.length;n++)a[n].drawGraticule=!1;return a},c={EUR:"3035",IC:"32628",GP:"32620",MQ:"32620",GF:"32622",RE:"32740",YT:"32738",MT:"3035",PT20:"32626",PT30:"32628",LI:"3035",IS:"3035",SJ_SV:"3035",SJ_JM:"3035",CARIB:"32620",WORLD:"54030"}},4470:(t,e,a)=>{a.d(e,{A:()=>o});var n=a(1601),r=a.n(n),s=a(6314),i=a.n(s)()(r());i.push([t.id,"#em-labels {\n text-anchor: middle;\n stroke-linejoin: round;\n font-family: Arial, Helvetica, sans-serif;\n dominant-baseline: central;\n}\n\n.em-label {\n font-size: 12px;\n}\n.em-label-background {\n fill: #ffffff;\n pointer-events: none;\n}\n.em-label-shadow {\n font-size: 12px;\n stroke-width: 3px;\n stroke: white;\n}\n.em-stat-label {\n font-size: 13px;\n fill: black;\n font-weight: bold;\n}\n.em-stat-label-shadow {\n font-size: 13px;\n stroke-width: 4px;\n stroke: white;\n}\n.em-label-cc {\n font-size: 12px;\n}\n\n.em-label-countries {\n font-size: 12px;\n}\n\n.em-label-seas {\n font-size: 13px;\n fill: #003399;\n letter-spacing: 3px;\n}\n\n.em-flow-labels {\n text-anchor: middle;\n stroke-linejoin: round;\n font-family: Arial, Helvetica, sans-serif;\n dominant-baseline: central;\n}\n.em-flow-label {\n font-size: 13px;\n fill: black;\n font-weight: bold;\n}\n.em-flow-label-shadow {\n font-size: 13px;\n stroke-width: 4px;\n stroke: white;\n}\n",""]);const o=i},4789:(t,e,a)=>{a.d(e,{A:()=>o});var n=a(1601),r=a.n(n),s=a(6314),i=a.n(s)()(r());i.push([t.id,".em-annotation-group {\n /* pointer-events: none; */\n}\n",""]);const o=i},5031:(t,e,a)=>{a.d(e,{T:()=>_});var n=a(183),r=a(2947),s=a(3837),i=a(6502),o=a(1721),l=a(8640),c=a(4439),u=a(8465),d=a(9216),p=a(1454),f=a(5267),g=a(8701),h=a(9695),m=a(3772),v=a(6033),_=function(t){var e=h.R(t,!0);e.sparkLineColor_="black",e.sparkAreaColor_="#41afaa",e.sparkLineWidth_=30,e.sparkLineHeight_=20,e.sparkLineStrokeWidth_=.4,e.sparkLineOpacity_=.6,e.sparkType_="line",e.sparkLineCircleRadius_=0,e.sparkTooltipChart_={width:100,height:50,margin:{left:60,right:40,top:40,bottom:40},circleRadius:1.5},e.showOnlyWhenComplete_=!1,e.sparkPercentageChange_=!1,e.statSpark_=null,e.sparkHeightClassifier_=null,["sparkLineColor_","showOnlyWhenComplete_","sparkType_","sparkLineWidth_","sparkLineHeight_","sparkLineStrokeWidth_","sparkLineOpacity_","sparkLineCircleRadius_","sparkLineAreaColor_","sparkTooltipChart_","sparkPercentageChange_"].forEach((function(t){e[t.substring(0,t.length-1)]=function(a){return arguments.length?(e[t]=a,e):e[t]}})),t&&["sparkLineColor","showOnlyWhenComplete","sparkType","sparkLineWidth","sparkLineHeight","sparkLineStrokeWidth","sparkLineOpacity","sparkLineCircleRadius_","sparkLineAreaColor","sparkTooltipChart_","sparkPercentageChange_"].forEach((function(a){null!=t[a]&&e[a](t[a])})),e.statSpark=function(t,a,n){t.filters=t.filters||{};for(var r=0;r<a.length;r++){var s=a[r];t.filters.time=s;var i={};for(var o in t)i[o]=t[o];for(var l in i.filters={},t.filters)i.filters[l]=t.filters[l];e.stat(s,i),n&&(e.catLabels_=e.catLabels_||{},e.catLabels_[s]=n[r])}return e._statDates=a,e},e._statDates=void 0;var a=function(t){for(var a=[],n=0,r=0;r<e._statDates.length;r++){var s=e._statDates[r],i=e.statData(s).get(t);if(!i||0!=i.value&&!i.value||isNaN(i.value)){if(e.showOnlyWhenComplete())return}else a.push({date:s,value:i.value}),n+=i.value}if(0!=n){for(var o=1;o<a.length;o++){var l=a[o-1].value,c=a[o].value;a[o].percentageChange=0===l?.001:(c-l)/l*100}return a}};function _(t,a,n,r){var s,p=arguments.length>4&&void 0!==arguments[4]&&arguments[4],h=e.domain,m="area"===e.sparkType_?e.widthClassifier_(h[1]):r,v="area"===e.sparkType_?e.heightClassifier_(h[1]):n,_=(0,i.A)().domain([e._statDates[0],e._statDates[e._statDates.length-1]]).range([.5,v-.5]);if(e.sparkPercentageChange_){var x=function(t){return 0===t?.001:t},y=a.filter((function(t){return t.percentageChange>0})).map((function(t){return x(t.percentageChange)})),b=a.filter((function(t){return t.percentageChange<0})).map((function(t){return x(t.percentageChange)})),S=(0,u.A)(y)||1,A=(0,d.A)(b)||-1,C=(0,o.A)().domain([1e-4,S]).range([m/2,0]),w=(0,o.A)().domain([-.01,A]).range([m/2,m]);if(y.length&&b.length||console.log("no data"),s=a.map((function(t){return t.scaledYValue=t.percentageChange<0?w(x(t.percentageChange)):C(x(t.percentageChange)),t.scaledXValue=_(t.date),isNaN(t.scaledYValue)&&(console.error("NaN detected in scaledValue:",t),t.scaledYValue=.01),t})),p){t.append("g").attr("class","axis").attr("transform","translate(0,"+m+")").call((0,f.l7)(_).ticks(e._statDates.length).tickFormat((0,g.GP)(".0f"))).selectAll("text").style("text-anchor","end").attr("dx","-.8em").attr("dy",".15em").attr("transform","rotate(-65)");var k=[1],T=[-.5];t.append("g").attr("class","y-axis-negative").attr("transform","translate(-10, ".concat(0,")")).call((0,f.V4)(w).tickValues(T).tickFormat((0,g.GP)(",.2r"))),t.append("g").attr("class","y-axis-positive").attr("transform","translate(".concat(-10,", 0)")).call((0,f.V4)(C).tickValues(k).tickFormat((0,g.GP)(",.2r"))).append("g").attr("class","tick").attr("transform","translate(0, ".concat(m/2,")")).append("text").attr("fill","currentColor").attr("x",-12).style("text-anchor","middle").text("0"),console.log(k,T)}}else{var z=(0,i.A)().domain(h).range([m-.5,0]);if(s=a.map((function(t){return t.scaledXValue=_(t.date),t.scaledYValue=z(t.value),t})),p){t.append("g").attr("class","axis").attr("transform","translate(0,"+m+")").call((0,f.l7)(_).ticks(e._statDates.length).tickFormat((0,g.GP)(".0f"))).selectAll("text").style("text-anchor","end").attr("dx","-.8em").attr("dy",".15em").attr("transform","rotate(-65)");var L=z.domain(),D=[L[0],((L[0]+L[1])/2).toFixed(1),L[1]];t.append("g").attr("class","axis").call((0,f.V4)(z).tickValues(D).tickFormat((0,g.GP)(",.2r")))}}var F=(0,l.A)().x((function(t,e){return t.scaledXValue})).y((function(t){return t.scaledYValue}));"area"===e.sparkType_&&t.append("path").datum(a).attr("fill","function"==typeof e.sparkAreaColor_?function(t,a){return e.sparkAreaColor_(t,a)}:e.sparkAreaColor_).attr("stroke","function"==typeof e.sparkLineColor_?function(t,a){return e.sparkLineColor_(t,a)}:e.sparkLineColor_).attr("stroke-width","function"==typeof e.sparkLineStrokeWidth_?function(t,a){return e.sparkLineStrokeWidth_(t,a)}:e.sparkLineStrokeWidth_+"px").attr("opacity",e.sparkLineOpacity_).attr("fill-opacity",.3).attr("stroke","none").attr("d",(0,c.A)().x((function(t,e){return t.scaledXValue})).y0(m).y1((function(t){return t.scaledYValue}))).attr("transform",(function(t){return"translate(0,-".concat(m/2,")")})),t.append("path").datum(s).style("fill","none").attr("opacity",e.sparkLineOpacity_).attr("stroke","function"==typeof e.sparkLineColor_?function(t,a){return e.sparkLineColor_(t,a)}:e.sparkLineColor_).attr("stroke-width","function"==typeof e.sparkLineStrokeWidth_?function(t,a){return e.sparkLineStrokeWidth_(t,a)}:e.sparkLineStrokeWidth_+"px").attr("d",F).attr("transform",(function(t){return p?null:"translate(0,".concat((e.sparkPercentageChange_,-t[0].scaledYValue),")")})),t.selectAll("myCircles").data(a).enter().append("circle").style("fill","red").attr("stroke","none").attr("cx",(function(t,e){return t.scaledXValue})).attr("cy",(function(t){return t.scaledYValue})).attr("r",e.sparkLineCircleRadius_).attr("transform",(function(t){return p?null:"translate(0,-".concat(m/2,")")}))}e.updateClassification=function(){if(!e._statDates){e._statDates=Object.keys(e.statData_);var t=e._statDates.indexOf("default");t>-1&&e._statDates.splice(t,1)}var a;return e.domain=e.sparkPercentageChange_?[.001,10]:(a=[],e.svg().selectAll("#g_ps").selectAll("g.em-centroid").data().forEach((function(t){var e=t.properties.id,n=x(e);n&&a.push(n)})),(0,p.A)(a)),e.widthClassifier_=(0,s.RZ)().domain(e.domain).range([0,e.sparkLineWidth_]),e.heightClassifier_=(0,s.RZ)().domain(e.domain).range([0,e.sparkLineHeight_]),e},e.updateStyle=function(){var t=[],r=(e.svg().selectAll("#g_ps").selectAll("g.em-centroid").attr("id",(function(e){return t.push(e.properties.id),"spark_"+e.properties.id})),(0,v.ty)(e));return e.svg().selectAll(r).on("mouseover",(function(t,r){if(a(r.properties.id)){var s=(0,n.A)(this);s.attr("fill___",s.style("fill")),s.style("fill",e.hoverColor_),e._tooltip&&e._tooltip.mouseover(e.tooltip_.textFunction(r,e))}})).on("mousemove",(function(t,n){a(n.properties.id)&&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())})),t.forEach((function(t){var n=e.svg().select("#spark_"+t),r=a(t);r&&_(n,r,e.sparkLineWidth_,e.sparkLineHeight_)})),e};var x=function(t){for(var a,n=0,r=0;r<e._statDates.length;r++){var s=e._statDates[r];if(!(a=e.statData(s).get(t))||0!=a.value&&!a.value||isNaN(a.value)){if(e.showOnlyWhenComplete())return}else a.value>n&&(n=a.value)}if(0!=n)return n};return e.getLegendConstructor=function(){return m.o},e.tooltip_.textFunction=function(t,n){var s=[],i=t.properties.na,o=t.properties.id;s.push('\n <div class="estat-vis-tooltip-bar">\n <b>'.concat(i,"</b>").concat(o?" (".concat(o,")"):"","\n </div>\n "));var l=e.sparkTooltipChart_.height,c=e.sparkTooltipChart_.width,u=e.sparkTooltipChart_.margin,d=a(t.properties.id);if(d){var p=(0,r.A)("div").attr("class","em-tooltip-chart-container");_(p.append("svg").attr("class","em-tooltip-chart-svg").attr("width",c+u.left+u.right).attr("height",l+u.top+u.bottom).append("g").attr("transform","translate(".concat(u.left,", ").concat(u.top,")")),d,c,l,!0),s.push(p.node().outerHTML)}return s.join("")},e}},5097:(t,e,a)=>{a.d(e,{o:()=>s});var n=a(183),r=a(6033),s=function(t){var e={};return e.map=t,e.svgId="legend_"+Math.round(1e16*Math.random()),e.svg=void 0,e.lgg=void 0,e.x=void 0,e.y=void 0,e.boxPadding=7,e.boxOpacity=.7,e.title="",e.titleFontSize=(0,r.LF)("em-legend-title"),e.labelFontSize=(0,r.LF)("em-legend-label"),e.build=function(){e.svg=(0,n.A)("#"+e.svgId),e.svg.selectAll("#em-legend-"+e.svgId).remove(),e.lgg=e.svg.append("g").attr("id","em-legend-"+e.svgId)},e.update=function(){return console.log("Legend update function not implemented"),e},e.makeBackgroundBox=function(){e.lgg.append("rect").attr("id","legendBR").attr("class","em-legend-background").style("opacity",e.boxOpacity)},e.setBoxDimension=function(){var t=e.lgg.node().getBBox({stroke:!0}),a=e.boxPadding;e.svg.select("#legendBR").attr("x",t.x-a).attr("y",t.y-a).attr("width",t.width+2*a).attr("height",t.height+2*a)},e}},5543:(t,e,a)=>{a.d(e,{T:()=>u});var n=a(9394),r=a(183),s=a(106),i=a(5006),o=a(9695),l=a(7740),c=a(6033),u=function(t){var e=o.R(t);function a(t){if(t.svg_){var a=(0,c.ty)(t),n=t.svg().selectAll(a);n.transition().duration(e.transitionDuration()).style("fill",(function(t){var a=(0,r.A)(this).attr("ecl");return a&&"nd"!==a?e.classToFillStyle_[e.classifier().domain()[a]]||e.noDataFillStyle_||"gray":e.noDataFillStyle_||"gray"})).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){e._tooltip&&e._tooltip.mousemove(t)})).on("mouseout",(function(){var t=(0,r.A)(this);t.style("fill",t.attr("fill___")),e._tooltip&&e._tooltip.mouseout()}))})).catch((function(t){})),"mixed"===e.nutsLevel_&&t.svg().selectAll((0,c.ty)(t)).style("display",(function(t){var e=(0,r.A)(this),a=e.attr("ecl"),n=e.attr("lvl");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})),t.labels_&&e.labels_.values&&e.updateValuesLabels(t)}}return e.classToFillStyle_=void 0,e.classToText_=void 0,e.tooltip_.textFunction=d,e.classifier_=void 0,["classToFillStyle_","classToText_","noDataFillStyle_","tooltipText_","classifier_"].forEach((function(t){e[t.substring(0,t.length-1)]=function(a){return arguments.length?(e[t]=a,e):e[t]}})),t&&["classToFillStyle","classToText","noDataFillStyle","tooltipText","classifier"].forEach((function(a){null!=t[a]&&e[a](t[a])})),e.updateClassification=function(){var t=e.statData().getUniqueValues(),a=(0,n.A)(Array(t.length).keys());return e.classifier((0,s.A)().domain(t).range(a)),e.svg().selectAll((0,c.ty)(e)).attr("ecl",(function(t){var a=e.statData().get(t.properties.id);if(!a)return"nd";var n=a.value;return 0==n||n?+e.classifier()(isNaN(n)?n:+n):"nd"})),e},e.updateStyle=function(){if(!e.classToFillStyle()){for(var t={},n=e.classifier().domain(),r=0;r<n.length;r++)t[n[r]]=i.A[r%12];e.classToFillStyle(t)}return e.insetTemplates_&&(0,c.Qv)(e.insetTemplates_,e.svgId_,a),a(e),e},e.getLegendConstructor=function(){return l.o},e},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().get(t.properties.id);if(!n||0!=n.value&&!n.value)return a.push(e.noDataText_),a.join("");var r=n.value;if(e.classToText_){var s=e.classToText_[r];return a.push('\n <div class="estat-vis-tooltip-text">\n <table class="nuts-table">\n <tbody>\n <tr>\n <td>\n '.concat(s||r,"\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n")),a.join("")}return a.push('\n <div class="estat-vis-tooltip-text">\n <table class="nuts-table">\n <tbody>\n <tr>\n <td>\n '.concat(r,"\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n")),a.join("")}},5821:(t,e,a)=>{a.d(e,{Tj:()=>v});var n=a(9394),r=a(183),s=a(9216),i=a(8465),o=a(1990),l=a(4660),c=a(1004),u=a(6041),d=a(3104),p=a(4917),f=a(9695),g=a(3772),h=a(6033),m=a(6740),v=function(t){var e=f.R(t);e.numberOfClasses_=7,e.classificationMethod_="quantile",e.thresholds_=[0],e.colors_=null,e.makeClassifNice_=!0;var a=["#FFEB99","#D1E9B0","#8DD6B9","#58C1C0","#3792B6","#134891","#17256B"];function u(t){var a=function(t){return(0,n.A)(Array(t).keys())},r=function(t){t.attr("ecl",(function(t){var a=e.statData().get(t.properties.id);if(a){var n=a.value;return":"===n||null===n?"nd":null!=n?+e.classifier_(n):void 0}}))};if(function(){var t=e.statData().getArray(),n=a(e.numberOfClasses_);switch(e.classificationMethod_){case"quantile":e.classifier((0,o.A)().domain(t).range(n));break;case"equal-interval":case"equinter":e.classifier((0,l.A)().domain([(0,s.A)(t),(0,i.A)(t)]).range(n)),e.makeClassifNice_&&e.classifier().nice();break;case"threshold":e.numberOfClasses(e.thresholds_.length+1),e.classifier((0,c.A)().domain(e.thresholds_).range(a(e.numberOfClasses_)));break;case"jenks":var r=(0,m.q8)(t,e.numberOfClasses_).slice(1,-1);e.classifier((0,c.A)().domain(r).range(n));break;case"ckmeans":var u=(0,m.ve)(t,e.numberOfClasses_).map((function(t){return t.pop()})).slice(0,-1);e.classifier((0,c.A)().domain(u).range(n))}}(),t.svg_){var u=(0,h.ty)(t);if(r(t.svg().selectAll(u)),"mixed"===t.nutsLevel_)r(t.svg().selectAll("path.em-nutsrg0"))}}function v(t){if(e.filtersDefinitionFunction_?e.classToFillStyle(x()):e.classToFillStyle(_(e.colorFunction(),e.colors_)),t.svg_){var a,n=(0,h.ty)(t),s=t.svg().selectAll(n);s.transition().duration(e.transitionDuration()).style("fill",S).end().then((function(){s.each((function(){var t=(0,r.A)(this);t.attr("fill___",t.style("fill"))})),A(t,s),e.gridCartogram_&&t.svg().selectAll(".em-grid-text").each((function(){var t=(0,r.A)(this.parentNode).style("fill");(0,r.A)(this).attr("fill",(0,h.sg)(t))}))})).catch((function(t){})),"mixed"===e.nutsLevel_&&b(t),null!==(a=e.labels_)&&void 0!==a&&a.values&&e.updateValuesLabels(t)}}e.colorFunction_=function(t){return(0,d.A)(p.A,a)(Math.min(Math.max(0,t),1))},e.classToFillStyle_=void 0,e.classifier_=void 0,e.tooltip_.textFunction=y,["numberOfClasses_","classificationMethod_","thresholds_","makeClassifNice_","colorFunction_","classToFillStyle_","noDataFillStyle_","classifier_","colors_"].forEach((function(t){e[t.substring(0,t.length-1)]=function(a){return arguments.length?(e[t]=a,e):e[t]}})),e.colorFunction=function(t){return arguments.length?(e.colorFunction_=t,e.filtersDefinitionFunction_?e.classToFillStyle(x()):e.classToFillStyle(_(e.colorFunction(),e.colors_)),e):e.colorFunction_},e.threshold=function(t){return arguments.length?(e.thresholds_=t,e.numberOfClasses(t.length+1),e):e.thresholds_},e.filtersDefinitionFunction=function(t){return arguments.length?(e.filtersDefinitionFunction_=t,e.svg()&&e.filtersDefinitionFunction_(e.svg(),e.numberOfClasses_),e):e.filtersDefinitionFunction_},t&&["numberOfClasses","classificationMethod","threshold","makeClassifNice","colorFunction","classToFillStyle","noDataFillStyle","colors_"].forEach((function(a){null!=t[a]&&e[a](t[a])})),e.updateClassification=function(){return e.insetTemplates_&&(0,h.Qv)(e.insetTemplates_,e.svgId_,u),u(e),e},e.updateStyle=function(){return e.insetTemplates_&&(0,h.Qv)(e.insetTemplates_,e.svgId_,v),v(e),e},e.getLegendConstructor=function(){return g.o};var b=function(t){t.svg().selectAll((0,h.ty)(t)).each((function(){var t=(0,r.A)(this),e=t.attr("ecl"),a=t.attr("lvl"),n=t.style("stroke")||"#777",s=t.style("stroke-width")||.2,i=e||"0"===a;t.style("display",i?"block":"none"),e&&"0"!==a&&t.style("stroke",n).style("stroke-width",s)}))},S=function(t){var a=(0,r.A)(this).attr("ecl");if(e.Geometries.userGeometries)return a?"nd"===a?e.noDataFillStyle()||"gray":e.classToFillStyle()(a,e.numberOfClasses_):(0,h.hC)("em-nutsrg","fill");if("WORLD"===e.geo_)return a?"nd"===a?e.noDataFillStyle()||"gray":e.classToFillStyle_(a,e.numberOfClasses_)||e.cntrgFillStyle_:e.cntrgFillStyle_;t.properties.id.slice(0,2);return a?"nd"===a?e.noDataFillStyle()||"gray":e.classToFillStyle()(a,e.numberOfClasses_):(0,h.hC)("em-nutsrg","fill")},A=function(t,a){a.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){e._tooltip&&e._tooltip.mousemove(t)})).on("mouseout",(function(){var t=(0,r.A)(this);t.style("fill",t.attr("fill___")),e._tooltip&&e._tooltip.mouseout()}))};return e},_=function(t,e){return t=t||u.A,e?function(t,a){return e[t]}:function(e,a){return t(e/(a-1))}},x=function(){return function(t){return"url(#pattern_"+t+")"}},y=function(t,e){var a=[],n=t.properties.na||t.properties.name,r=t.properties.id;a.push('\n <div class="estat-vis-tooltip-bar">\n <b>'.concat(n,"</b>").concat(r?" (".concat(r,")"):"","\n </div>\n "));var s=e.statData(),i=s.get(r),o=s.unitText()||"";if(!i||0!==i.value&&!i.value||":"===i.value)return a.push('\n <div class="estat-vis-tooltip-text no-data">\n <table class="nuts-table">\n <tbody>\n <tr><td>'.concat(e.noDataText_,"</td></tr>\n </tbody>\n </table>\n </div>\n ")),a.join("");a.push('\n <div class="estat-vis-tooltip-text">\n <table class="nuts-table">\n <tbody>\n <tr><td>'.concat((0,h.sC)(i.value)," ").concat(o,"</td></tr>\n </tbody>\n </table>\n </div>\n "));var l=i.status;if(l&&e.tooltip_.showFlags){var c="short"===e.tooltip_.showFlags?l:flags[l]||l;a.push(' <span class="status-flag">'.concat(c,"</span>"))}return a.join("")}},6033:(t,e,a)=>{a.d(e,{Ez:()=>x,F8:()=>m,Gb:()=>C,LF:()=>l,Qv:()=>v,Rz:()=>p,Tc:()=>d,d4:()=>b,hC:()=>c,iE:()=>f,m1:()=>g,qk:()=>_,rN:()=>y,sC:()=>h,sg:()=>S,tU:()=>o,ty:()=>A});var n=a(9394),r=a(3453);function s(t,e){var a="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=function(t,e){if(t){if("string"==typeof t)return i(t,e);var a={}.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?i(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){a&&(t=a);var n=0,r=function(){};return{s:r,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,o=!0,l=!1;return{s:function(){a=a.call(t)},n:function(){var t=a.next();return o=t.done,t},e:function(t){l=!0,s=t},f:function(){try{o||null==a.return||a.return()}finally{if(l)throw s}}}}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,n=Array(e);a<e;a++)n[a]=t[a];return n}function o(t,e,a){if(!t.startsWith(".")&&!t.startsWith("#"))throw new Error('Invalid selector: Must start with "." for classes or "#" for IDs.');for(var n=0,r=Array.from(document.styleSheets);n<r.length;n++){var i=r[n];try{var o,l=s(i.cssRules||i.rules);try{for(l.s();!(o=l.n()).done;){var c=o.value;if(c.selectorText===t)return void(c.style[e]=a)}}catch(t){l.e(t)}finally{l.f()}}catch(t){console.warn("Could not access rules in stylesheet:",t)}}var u=document.getElementById("custom-styles");u||((u=document.createElement("style")).id="custom-styles",document.head.appendChild(u));try{u.sheet.insertRule("".concat(t," { ").concat(e,": ").concat(a,"; }"),u.sheet.cssRules.length)}catch(n){console.error("Failed to insert rule: ".concat(t," { ").concat(e,": ").concat(a,"; }"),n)}}var l=function(t){var e=document.createElement("div");e.className=t,e.style.position="absolute",e.style.visibility="hidden",e.style.height="auto",e.style.width="auto",e.style.lineHeight="normal",e.style.fontSize="initial",document.body.appendChild(e);var a=parseFloat(window.getComputedStyle(e).fontSize);return document.body.removeChild(e),a||0},c=function(t,e){var a=document.createElement("div");a.className=t,a.style.position="absolute",a.style.visibility="hidden",a.style.height="auto",a.style.width="auto",a.style.lineHeight="normal",document.body.appendChild(a);var n=window.getComputedStyle(a).getPropertyValue(e);return document.body.removeChild(a),n||null};function u(t){var e=[];(function(){var t,e=[],a=s(document.styleSheets);try{for(a.s();!(t=a.n()).done;){var n=t.value;try{var r,i=s(n.cssRules);try{for(i.s();!(r=i.n()).done;){var o=r.value;e.push(o)}}catch(t){i.e(t)}finally{i.f()}}catch(t){console.warn("Unable to access stylesheet:",n.href,t)}}}catch(t){a.e(t)}finally{a.f()}return e})().forEach((function(a){t.matches(a.selectorText)&&e.push(a.style)}));var a={};return e.forEach((function(t){for(var e=0;e<t.length;e++){var n=t[e];a[n]=t.getPropertyValue(n)}})),a}var d=function(t){t.querySelectorAll("*").forEach((function(t){var e=u(t);Object.keys(e).forEach((function(a){var n=e[a];!t.style.getPropertyValue(a)&&n&&t.style.setProperty(a,n)}))}))},p=function(t){return{type:"Feature",geometry:{type:"MultiPoint",coordinates:[[t[0],t[1]],[t[2],t[3]]]}}},f=function(t){for(var e={},a=t.Dimension("geo").id,n=0;n<a.length;n++)e[a[n]]=t.Data(n);return e},g=function(t,e,a){for(var n={},r=0;r<t.length;r++){var s=t[r],i=s[a];n[s[e]]=i?{value:isNaN(+i)?i:+i,status:""}:{value:":",status:""}}return n},h=function(t){return t.toLocaleString("en").replace(/,/gi," ")},m=function(t,e,a,n){a=a||"en",n=n||"json";var r=[];if(r.push("https://ec.europa.eu/eurostat/api/dissemination/statistics/1.0/data/",t,"?","format=",n,"&lang=",a),e)for(var s in e){var i=e[s];if(Array.isArray(i))for(var o=0;o<i.length;o++)r.push("&",s,"=",i[o]);else r.push("&",s,"=",i)}return r.join("")},v=function(t,e,a){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null;for(var s in t){var i=t[s];Array.isArray(i)?i.forEach((function(t){Array.isArray(t)?t.forEach((function(t){t.svgId_!==e&&a(t,n,r)})):t.svgId_!==e&&a(t,n,r)})):i.svgId_!==e&&a(i,n,r)}};function _(t){var e='<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n'+t.outerHTML,a=new Blob([e],{type:"image/svg+xml;charset=utf-8"});return URL.createObjectURL(a)}function x(t){t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var e=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(location.search);return e?decodeURIComponent(e[1].replace(/\+/g," ")):null}var y=function(t){for(var e,a,s,i,o,l=t.map((function(t){3===(t=t.replace("#","")).length&&(t=t.split("").map((function(t){return t+t})).join(""));var e=parseInt(t,16);return[e>>16&255,e>>8&255,255&e]})),c=(0,n.A)(l[0]),u=function(t){c=c.map((function(e,a){return Math.round(e/255*(l[t][a]/255)*255)}))},d=1;d<l.length;d++)u(d);return e=c,a=(0,r.A)(e,3),s=a[0],i=a[1],o=a[2],"#".concat([s,i,o].map((function(t){return t.toString(16).padStart(2,"0")})).join(""))},b=function(t,e,a,n){t=parseFloat(t,10),e=parseFloat(e,10),a=parseFloat(a,10),n=parseFloat(n,10);return t<0||e<0||a<0||n<0?"":"M"+t+","+e+"L"+(t+a)+","+e+" "+(t+a)+","+(e+n)+" "+t+","+(e+n)+"z"},S=function(t){var e=t.match(/\d+/g);return parseInt(e[0])/255*.2126+parseInt(e[1])/255*.7152+parseInt(e[2])/255*.0722>.5?"black":"white"},A=function(t){return t.Geometries.userGeometries?"#em-user-regions path":t.gridCartogram_?"#em-grid-container .em-grid-cell":"WORLD"===t.geo_?"#em-worldrg path":"#em-nutsrg path"},C=function(t){return t.Geometries.userGeometries?"#em-user-regions":t.gridCartogram_?"#em-grid-container":"WORLD"===t.geo_?"#em-worldrg":"#em-nutsrg"}},6302:(t,e,a)=>{a.d(e,{G:()=>n});var n=function(t,e){if(e.svg_&&(e.svg_.select("#em-stamp").remove(),t)){var a=e.svg_.append("g").attr("id","em-stamp");t.size||(t.size=20),t.x||(t.x=230),t.y||(t.y=100),t.textColor||(t.textColor="#000"),t.stampColor||(t.stampColor="#000"),t.strokeWidth||(t.strokeWidth=1),a.append("circle").attr("r",t.size).attr("cx",t.x).attr("cy",t.y).attr("id","em-stamp-circle").attr("fill","none").attr("stroke",t.stampColor).attr("stroke-width",t.strokeWidth);var n=t.text,l=Math.sqrt(13*s(n.trim())),c=o(r(n.trim()),l),u=i(c,13);a.append("text").attr("text-anchor","middle").attr("fill",t.textColor).attr("id","em-stamp-text").attr("transform","translate(".concat(t.x,",").concat(t.y,") scale(").concat(t.size/u,")")).selectAll("tspan").data(c).enter().append("tspan").attr("x",0).attr("y",(function(t,e){return 13*(e-c.length/2+.8)})).text((function(t){return t.text.replaceAll("¶"," ")}))}},r=function(t){var e=t.split(/\s+/g);return e[e.length-1]||e.pop(),e[0]||e.shift(),e},s=function(t){var e=document.createElementNS("http://www.w3.org/2000/svg","svg"),a=document.createElementNS("http://www.w3.org/2000/svg","text");a.textContent=t,e.appendChild(a),document.body.appendChild(e);var n=a.getComputedTextLength();return document.body.removeChild(e),n+10},i=function(t,e){for(var a=0,n=0,r=t.length;n<r;++n){var s=(Math.abs(n-r/2+.5)+.5)*e,i=t[n].width/2;a=Math.max(a,Math.sqrt(Math.pow(i,2)+Math.pow(s,2)))}return a},o=function(t,e){for(var a,n=1/0,r=[],i=0,o=t.length;i<o;++i){var l=(a?a.text+" ":"")+t[i],c=s(l);(n+c)/2<e?(a.width=n=c,a.text=l):(a={width:n=s(t[i]),text:t[i]},r.push(a))}return r}},6888:(t,e,a)=>{var n=a(5072),r=a.n(n),s=a(7825),i=a.n(s),o=a(7659),l=a.n(o),c=a(5056),u=a.n(c),d=a(540),p=a.n(d),f=a(1113),g=a.n(f),h=a(7211),m={};m.styleTagTransform=g(),m.setAttributes=u(),m.insert=l().bind(null,"head"),m.domAPI=i(),m.insertStyleElement=p();r()(h.A,m),h.A&&h.A.locals&&h.A.locals},6954:(t,e,a)=>{a.r(e),a.d(e,{getDefaultLabels:()=>n.dJ,getFillPatternDefinitionFun:()=>n.Cv,getFillPatternDefinitionFunction:()=>n.HN,map:()=>n.Tj});a(6888);var n=a(8672)},7211:(t,e,a)=>{a.d(e,{A:()=>g});var n=a(1601),r=a.n(n),s=a(6314),i=a.n(s),o=a(2489),l=a(9666),c=a(3604),u=a(4470),d=a(4789),p=a(2991),f=i()(r());f.i(o.A),f.i(l.A),f.i(c.A),f.i(u.A),f.i(d.A),f.i(p.A),f.push([t.id,"\n",""]);const g=f},7714:(t,e,a)=>{a.d(e,{o:()=>r});var n=a(5097);(0,a(8701).Ay)({decimal:".",thousands:" ",grouping:[3],currency:["","€"]});var r=function(t,e){var a=n.o(t);if(e)for(var r in e)if("colorLegend"==r||"sizeLegend"==r){for(var s in a[r])void 0!==e[r][s]&&(a[r][s]=e[r][s]);0==e.colorLegend&&(a.colorLegend=!1)}else a[r]=e[r];return a.update=function(){var t=a.map,e=a.lgg;if(t.legend_)for(var n in t.legend_)if("colorLegend"==n||"sizeLegend"==n)for(var r in a[n])void 0!==t.legend_[n][r]&&(a[n][r]=t.legend_[n][r]);else a[n]=t.legend_[n];e.selectAll("*").remove(),a.makeBackgroundBox(),a.setBoxDimension()},a}},7740:(t,e,a)=>{a.d(e,{o:()=>i});var n=a(183),r=a(5097),s=a(6033),i=function(t,e){var a=r.o(t);if(a.shapeWidth=13,a.shapeHeight=15,a.shapePadding=5,a.labelFontSize=12,a.labelOffset=5,a.noData=!0,a.noDataText="No data",a.order=void 0,e)for(var i in e)a[i]=e[i];function o(t,e){var r="WORLD"===a.geo_?"#em-worldrg":"#em-nutsrg";t.Geometries.userGeometries&&(r="#em-user-regions");var s=t.svg_.selectAll(r).selectAll("[ecl]");s.style("fill","white"),s.filter("[ecl='"+e+"']").each((function(){(0,n.A)(this).style("fill",(0,n.A)(this).attr("fill___"))}))}function l(t){var e="WORLD"===a.geo_?"#em-worldrg":"#em-nutsrg";t.Geometries.userGeometries&&(e="#em-user-regions"),t.svg_.selectAll(e).selectAll("[ecl]").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;t.svg();e.selectAll("*").remove(),a.makeBackgroundBox(),a.title&&e.append("text").attr("class","em-legend-title").attr("x",a.boxPadding).attr("y",a.boxPadding+a.titleFontSize).text(a.title);for(var r=a.order?a.order:t.classifier().domain(),i=function(){var i=r[c],u=t.classifier()(i),d=t.classToFillStyle()[i],p=a.boxPadding+(a.title?a.titleFontSize+a.boxPadding:0)+c*(a.shapeHeight+a.shapePadding);e.append("rect").attr("class","em-legend-rect").attr("x",a.boxPadding).attr("y",p).attr("width",a.shapeWidth).attr("height",a.shapeHeight).style("fill",d).on("mouseover",(function(){(0,n.A)(this).style("fill",t.hoverColor_),o(a.map,u),a.map.insetTemplates_&&(0,s.Qv)(a.map.insetTemplates_,a.svgId_,o,u)})).on("mouseout",(function(){(0,n.A)(this).style("fill",d),l(a.map),a.map.insetTemplates_&&(0,s.Qv)(a.map.insetTemplates_,a.svgId_,l,u)})),e.append("text").attr("class","em-legend-label").attr("x",a.boxPadding+a.shapeWidth+a.labelOffset).attr("y",p+.5*a.shapeHeight).attr("dominant-baseline","middle").text(t.classToText()?t.classToText()[i]:i)},c=0;c<r.length;c++)i();if(a.noData){var u=a.boxPadding+(a.title?a.titleFontSize+a.boxPadding:0)+r.length*(a.shapeHeight+a.shapePadding);e.append("rect").attr("class","em-legend-rect").attr("x",a.boxPadding).attr("y",u).attr("width",a.shapeWidth).attr("height",a.shapeHeight).style("fill",t.noDataFillStyle_).on("mouseover",(function(){o(a.map,"nd"),a.map.insetTemplates_&&(0,s.Qv)(a.map.insetTemplates_,a.svgId_,o,"nd")})).on("mouseout",(function(){l(a.map),a.map.insetTemplates_&&(0,s.Qv)(a.map.insetTemplates_,a.svgId_,l,"nd")})),e.append("text").attr("class","em-legend-label").attr("x",a.boxPadding+a.shapeWidth+a.labelOffset).attr("y",u+.5*a.shapeHeight).attr("dominant-baseline","middle").text(a.noDataText)}a.setBoxDimension()},a}},7747:(t,e,a)=>{a.d(e,{T:()=>u});var n=a(9394),r=a(183),s=a(1990),i=a(1197),o=a(9695),l=a(3126),c=a(6033),u=function(t){var e=o.R(t);function a(t){var a=e.statData("v1").getArray(),r=e.statData("v2").getArray(),i=(0,n.A)(Array(e.numberOfClasses()).keys());e.classifier1_||e.classifier1((0,s.A)().domain(a).range(i)),e.classifier2_||e.classifier2((0,s.A)().domain(r).range(i));var o=(0,c.ty)(t);if(t.svg_){if(t.svg().selectAll(o).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("nd",(function(t){var a=e.statData("v1").get(t.properties.id),n=e.statData("v2").get(t.properties.id);if(a&&n){var r=a.value;return 0!=r&&!r||":"==r||(0!=(r=n.value)&&!r||":"==r)?"nd":""}})),"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)}})),!e.classToFillStyle()){var l=p(e.numberOfClasses(),e.startColor(),e.color1(),e.color2(),e.endColor());e.classToFillStyle(l)}"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)}}))}}function i(t){if(t.svg()){var a=(0,c.ty)(t),n=t.svg().selectAll(a);n.transition().duration(e.transitionDuration()).style("fill",(function(t){var a=(0,r.A)(this).attr("ecl1");if("nd"===a)return e.noDataFillStyle()||"gray";var n=(0,r.A)(this).attr("ecl2");return a||n?"nd"===n?e.noDataFillStyle()||"gray":e.classToFillStyle()(+a,+n):(0,c.hC)("em-nutsrg","fill")})).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_&&d(t)}}return e.numberOfClasses_=3,e.startColor_="#e8e8e8",e.color1_="#73ae80",e.color2_="#6c83b5",e.endColor_="#2a5a5b",e.classToFillStyle_=void 0,e.classifier1_=void 0,e.classifier2_=void 0,e.tooltip_.textFunction=f,["numberOfClasses_","startColor_","color1_","color2_","endColor_","classToFillStyle_","noDataFillStyle_","classifier1_","classifier2_"].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","endColor","classToFillStyle","noDataFillStyle"].forEach((function(a){null!=t[a]&&e[a](t[a])})),e.updateClassification=function(){return e.insetTemplates_&&(0,c.Qv)(e.insetTemplates_,e.svgId_,a),a(e),e},e.updateStyle=function(){return e.insetTemplates_&&(0,c.Qv)(e.insetTemplates_,e.svgId_,i),i(e),e},e.getLegendConstructor=function(){return l.o},e},d=function(t){t.svg().selectAll((0,c.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}))},p=function(t,e,a,n,r){for(var s=[],o=(0,i.Ay)(e,a),l=(0,i.Ay)(n,r),c=0;c<t;c++){for(var u=c/(t-1),d=(0,i.Ay)(o(u),l(u)),p=[],f=0;f<t;f++)p.push(d(f/(t-1)));s.push(p)}return function(t,e){return s[t][e]}},f=function(t,e){var a=[],n=t.properties.na||t.properties.name;t.properties.id?a.push('<div class="estat-vis-tooltip-bar" >'+n+" ("+t.properties.id+") </div>"):a.push('<div class="estat-vis-tooltip-bar" >'+n+"</div>");var r=e.statData("v1").get(t.properties.id),s=e.statData("v1").unitText(),i=e.statData("v2").get(t.properties.id),o=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 '.concat(r&&r.value?(0,c.sC)(r.value):""," ").concat(s&&r&&r.value?s:"","\n ").concat(!r||0!=r.value&&!r.value?e.noDataText_:"","\n </td>\n </tr>\n <tr>\n <td>\n ").concat(i&&i.value?(0,c.sC)(i.value):""," ").concat(o&&i&&i.value?o:"","\n ").concat(!i||0!=i.value&&!i.value?e.noDataText_:"","\n </td>\n </tr>\n </tbody>\n </table>\n </div>\n ")),a.join("")}},8672:(t,e,a)=>{a.d(e,{Cv:()=>m,HN:()=>h,Tj:()=>g,dJ:()=>v});var n=a(5821),r=a(2832),s=a(5543),i=a(7747),o=a(1570),l=a(1149),c=a(9408),u=a(5031),d=a(2739),p=a(9695),f=a(1693),g=function(t,e){return"choropleth"==t||"ch"==t?n.Tj(e):"categorical"==t||"ct"==t?s.T(e):"proportionalSymbol"==t||"ps"==t?r.Tj(e):"bivariateChoropleth"==t||"chbi"==t?i.T(e):"trivariateChoropleth"==t||"chbi"==t?o.T(e):"stripeComposition"==t||"scomp"==t?l.T(e):"pieChart"==t||"pie"==t?c.T(e):"sparkline"==t||"spark"==t||"sparklines"==t?u.T(e):"flow"==t||"flowmap"==t?d.T(e):(console.log("Unexpected map type: "+t),p.R(e,!0,t))},h=function(t){(t=t||{}).shape=t.shape||"circle";var e=t.patternSize||5,a=t.minSize||1,n=t.maxSize||5.5;return t.bckColor=t.bckColor||"white",t.symbColor=t.symbColor||"black",function(r,s){r.selectAll(".em-fill-pattern").remove();for(var i=0;i<s;i++){var o=a+(n-a)*i/(s-1),l=r.append("pattern").attr("class","em-fill-pattern").attr("id","pattern_"+i).attr("x","0").attr("y","0").attr("width",e).attr("height",e).attr("patternUnits","userSpaceOnUse");l.append("rect").attr("x",0).attr("y",0).attr("width",e).attr("height",e).style("stroke","none").style("fill",t.bckColor),"square"==t.shape?l.append("rect").attr("x",0).attr("y",0).attr("width",o).attr("height",o).style("stroke","none").style("fill",t.symbColor):l.append("circle").attr("cx",.5*e).attr("cy",.5*e).attr("r",.5*o).style("stroke","none").style("fill",t.symbColor)}}},m=function(t){return console.warn("getFillPatternDefinitionFun is now DEPRECATED. Please use getFillPatternDefinitionFunction() instead."),h(t)},v=function(){return f.V}},8678:(t,e,a)=>{a.d(e,{o:()=>o});var n=a(3453),r=a(5097),s=a(183),i=a(6033),o=function(t,e){var a=r.o(t);if(a.width=230,a.height=230,a.label1="Variable 1",a.label2="Variable 2",a.label3="Variable 3",a.axisTitleFontSize=(0,i.LF)("em-bivariate-axis-title"),a.showBreaks=!1,a.noData=!0,a.noDataShapeHeight=20,a.noDataShapeWidth=25,a.noDataText="No data",a.boxPadding=60,a.noDataYOffset=20,a.arrowHeight=15,a.arrowWidth=14,a.arrowPadding=10,e)for(var o in e)a[o]=e[o];return a.update=function(){var t=a.lgg;a.map.numberOfClasses();t.selectAll("*").remove(),a.makeBackgroundBox();var e=t.append("g").attr("transform","translate(".concat(a.boxPadding,", ").concat(a.boxPadding,")"));a.title&&e.append("text").attr("class","em-legend-title").attr("x",0).attr("y",a.titleFontSize).text(a.title);var r=[a.label1,a.label2,a.label3];!function(t,e,a){var r=50,o=50,l=30,c=1.2*l,u=r+c,d=o,p=r+c/2,f=o+Math.sqrt(3)*c/2,g=Math.sqrt(Math.pow(l,2)-Math.pow(c/2,2)),h=p,m=o-g,v=p,_=o+g,x=g*Math.sqrt(3)/2,y=g/2,b=(r+p)/2,S=(u+p)/2,A=(o+f)/2,C=[h,b-x,S+x,v,b+x,S-x],w=[m,A+y,A+y,_,A-y,A-y],k=function(t){var e=(0,n.A)(t,6),a=e[0],r=e[1],s=e[2],i=e[3],o=e[4],c=e[5];return"M ".concat(a," ").concat(i,"\n A ").concat(l," ").concat(l," 0 0 1 ").concat(r," ").concat(o,"\n A ").concat(l," ").concat(l," 0 0 0 ").concat(s," ").concat(c,"\n A ").concat(l," ").concat(l," 0 0 1 ").concat(a," ").concat(i)},T=function(t){var e=(0,n.A)(t,6),a=e[0],r=e[1],s=e[2],i=e[3],o=e[4],c=e[5];return"M ".concat(a," ").concat(i,"\n A ").concat(l," ").concat(l," 0 0 0 ").concat(r," ").concat(o,"\n A ").concat(l," ").concat(l," 0 0 0 ").concat(s," ").concat(c,"\n A ").concat(l," ").concat(l," 0 1 1 ").concat(a," ").concat(i)},z=function(t){var e=(0,n.A)(t,6),a=e[0],r=e[1],s=e[2],i=e[3],o=e[4],c=e[5];return"M ".concat(a," ").concat(i,"\n A ").concat(l," ").concat(l," 0 0 1 ").concat(r," ").concat(o,"\n A ").concat(l," ").concat(l," 0 0 1 ").concat(s," ").concat(c,"\n A ").concat(l," ").concat(l," 0 0 1 ").concat(a," ").concat(i)},L=[[1,5,6],[3,4,5],[2,6,4]],D=[[5,4,6]];[[3,5,1],[2,4,3],[1,6,2]].forEach((function(a,n){var r=a.map((function(t){return C[t-1]})).concat(a.map((function(t){return w[t-1]}))),s=T(r);t.append("path").attr("d",s).attr("class","segment").attr("fill",e[n]).attr("opacity",1)})),L.forEach((function(a,n){var r,s=a.map((function(t){return C[t-1]})).concat(a.map((function(t){return w[t-1]}))),o=k(s);0==n?r=(0,i.rN)([e[2],e[0]]):1==n?r=(0,i.rN)([e[1],e[0]]):2==n&&(r=(0,i.rN)([e[1],e[2]])),t.append("path").attr("d",o).attr("class","segment").attr("fill",r).attr("opacity",1)})),D.forEach((function(a,n){var r=a.map((function(t){return C[t-1]})).concat(a.map((function(t){return w[t-1]}))),s=z(r),o=(0,i.rN)(e);t.append("path").attr("d",s).attr("class","segment").attr("fill",o).attr("opacity",1)})),t.selectAll("path.segment").on("mouseover",(function(){(0,s.A)(this).transition().attr("opacity",.8).duration(500)})).on("mouseout",(function(){(0,s.A)(this).transition().attr("opacity",1).duration(500)}));t.append("text").text(a[0]).attr("x",r-l-3).attr("y",r).attr("class","venn-label").attr("text-anchor","end");t.append("text").text(a[1]).attr("x",u+l+3).attr("y",d).attr("class","venn-label"),t.append("text").text(a[2]).attr("x",p).attr("y",f+l+15).attr("class","venn-label").attr("text-anchor","middle")}(e,[a.map.color1_,a.map.color2_,a.map.color3_],r)},a}},8689:(t,e,a)=>{a.d(e,{P:()=>C});var n=a(9394),r=a(4467),s=a(3453),i=a(2284),o=a(6470),l=a(4984),c=a(183),u=a(8701),d=a(4367),p=a(4558),f=a(2874),g=a(1367),h=a(6033),m=a(1650),v=a(1693),_=a(9987),x=a(846),y=a(3964),b=a(6302),S=a(3351);function A(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}(0,u.Ay)({decimal:".",thousands:" ",grouping:[3],currency:["","€"]});var C=function(t,e){var a={};a.updateValuesLabels=v.li,a.svgId_="map",a.svg_=void 0,a.width_=Math.min(795,window.innerWidth),a.height_=0,a.containerId_=void 0,a.gridCartogram_=!1,a.gridCartogramShape_="square",a.gridCartogramContainerPadding_=80,a.gridCartogramCellPadding_=2,a.nutsLevel_=3,a.nutsYear_=2024,a.geo_="EUR",a.proj_="3035",a.projectionFunction_=void 0,a.filterGeometriesFunction_=void 0,a.scale_="20M",a.zoomExtent_=void 0,a.maxBounds_={xMin:-1/0,yMin:-1/0,xMax:1/0,yMax:1/0},a.geometries_=void 0,a.processCentroids_=void 0,a.position_={x:void 0,y:void 0,z:void 0},a.title_="",a.titlePosition_=void 0,a.subtitle_="",a.subtitlePosition_=void 0,a.showScalebar_=!1,a.scalebarPosition_=[],a.scalebarUnits_=" km",a.scalebarTextOffset_=[0,12],a.scalebarMaxWidth_=150,a.scalebarHeight_=90,a.scalebarStrokeWidth_=1,a.scalebarSegmentHeight_=6,a.scalebarTickHeight_=8,a.stamp_=void 0,a.tooltip_={fontSize:"14px",transitionDuration:200,xOffset:0,yOffset:0,textFunction:null,showFlags:!1},a.hoverColor_="red",a.drawCoastalMargin_=!1,a.coastalMarginStdDev_=3,a.drawGraticule_=!1,a.labels_=void 0,a.annotations_=void 0,a.annotationsAdded=!1,a.showSourceLink_=!0,a.footnote_="Administrative boundaries: ©EuroGeographics ©UN-FAO ©INSTAT ©Turkstat",a.footnoteTooltipText_="The designations employed and the presentation of material on this map do not imply the expression of any opinion whatsoever on the part of the European Union concerning the legal status of any country, territory, city or area or of its authorities, or concerning the delimitation of its frontiers or boundaries. Kosovo*: This designation is without prejudice to positions on status, and is in line with UNSCR 1244/1999 and the ICJ Opinion on the Kosovo declaration of independence.",a.nuts2jsonBaseURL_=window.location.hostname.includes("ec.europa.eu")?"https://ec.europa.eu/assets/estat/E/E4/gisco/pub/nuts2json/v2":"https://raw.githubusercontent.com/eurostat/Nuts2json/master/pub/v2",a.noDataFillStyle_="#bcbcbc",a.insets_=[],a.insetTemplates_={},a.insetBoxPosition_=void 0,a.insetBoxPadding_=5,a.insetBoxWidth_=210,a.insetZoomExtent_=null,a.insetScale_="03M";var u=function(t){a[t.substring(0,t.length-1)]=function(e){return arguments.length?(a[t]=e,a):a[t]}};for(var C in a)u(C);(0,_.U)(a),["tooltip_","nuts2jsonBaseURL_"].forEach((function(t){a[t.substring(0,t.length-1)]=function(e){if(!arguments.length)return a[t];if("object"!==(0,i.A)(e)||null===e||Array.isArray(e))a[t]=e;else for(var n in e)a[t][n]=e[n];return a.insetTemplates_&&(0,h.Qv)(a.insetTemplates_,a.svgId_,(function(e,a){e[t.substring(0,t.length-1)](a)}),e),a}})),a.title=function(t){return arguments.length?(a.title_=t,a.svg()&&a.svg().select("#title"+a.geo()).text(t),a):a.title_},a.subtitle=function(t){return arguments.length?(a.subtitle_=t,a.svg()&&a.svg().select("#subtitle"+a.geo()).text(t),a):a.subtitle_},a.insets=function(){return arguments.length?(1==arguments.length&&"default"===arguments[0]?a.insets_="default":1==arguments.length&&!1===arguments[0]?a.insets_=!1:1==arguments.length&&Array.isArray(arguments[0])?a.insets_=arguments[0]:a.insets_=arguments,a):a.insets_},a.drawGraticule=function(t){if(!arguments.length)return a.drawGraticule_;a.drawGraticule_=t;var e=a.svg_?a.svg().select("#em-graticule"):null,n=a.svg_?a.svg_.select("#em-zoom-group-"+a.svgId_):null;return e&&(e._groups[0][0]&&0==t?e.remove():a.Geometries.geoJSONs.graticule&&a._pathFunction&&n&&1==t&&(e.remove(),n.append("g").attr("id","em-graticule").selectAll("path").data(a.Geometries.geoJSONs.graticule).enter().append("path").attr("d",a._pathFunction).attr("class","em-graticule"),a.svg().select("#em-graticule").each((function(){"WORLD"==a.geo_?this.parentNode.insertBefore(this,this.parentNode.childNodes[3]):this.parentNode.insertBefore(this,this.parentNode.childNodes[1])})))),a},a.drawCoastalMargin=function(t){if(!arguments.length)return a.drawCoastalMargin_;if(a.drawCoastalMargin_=t,a.svg_){var e=(0,l.A)("#em-coast-margin"),n=(0,c.A)("#em-coastal-blur"),r=(0,c.A)("#em-zoom-group-"+a.svgId_)||null;if(e._groups[0][0]&&0==t)e.remove();else if(1==t&&a._pathFunction&&r){e.remove(),n.remove(),a.svg_.append("filter").attr("id","em-coastal-blur").attr("x","-200%").attr("y","-200%").attr("width","400%").attr("height","400%").append("feGaussianBlur").attr("in","SourceGraphic").attr("stdDeviation",a.coastalMarginStdDev_);var s=function(t){var e=(0,c.A)("#em-zoom-group-"+t.svgId_).append("g").attr("id","em-coast-margin");t._geom.cntbn&&e.append("g").attr("id","em-coast-margin-cnt").selectAll("path").data(t._geom.cntbn).enter().filter((function(t){return"T"===t.properties.co})).append("path").attr("d",t._pathFunction),t._geom.nutsbn&&e.append("g").attr("id","em-coast-margin-nuts").selectAll("path").data(t._geom.nutsbn).enter().filter((function(t){return"T"===t.properties.co})).append("path").attr("d",t._pathFunction),t._geom.worldbn&&e.append("g").attr("id","em-coast-margin-nuts").selectAll("path").data(t._geom.worldbn).enter().filter((function(t){return"T"===t.properties.COAS_FLAG})).append("path").attr("d",t._pathFunction)};a.insetTemplates_&&a.drawCoastalMargin_&&((0,h.Qv)(a.insetTemplates_,a.svgId_,s),s(a)),(0,l.A)("#em-coast-margin").each((function(){"WORLD"==a.geo_?this.parentNode.insertBefore(this,this.parentNode.childNodes[3]):this.parentNode.insertBefore(this,this.parentNode.childNodes[1])}))}}return a},a.annotations=function(t){return arguments.length?(a.annotations_=t,(0,m.H)(a),a):a.annotations_},a.stamp=function(t){return arguments.length?(a.stamp_=t,(0,b.G)(a.stamp_,a),a):a.stamp_},a.labels=function(t){return arguments.length?(a.labels_=t,(0,v.h7)(a),a):a.labels_},a.Geometries=(0,x.f)(a,e),a.updateGeoMapTemplate=function(t){return a.Geometries.defaultGeoData=null,a.Geometries.allNUTSGeoData=null,a.Geometries.centroidsData=null,a.geometries_?(a.Geometries.setUserGeometries(a.geometries_),a.buildMapTemplate(),t&&t()):a.Geometries.getDefaultGeoData(a.geo_,a.filterGeometriesFunction_,a.nutsLevel_).then((function(){a.buildMapTemplate(),t&&t()})),(0,h.Qv)(a.insetTemplates_,a.svgId_,(function(e){e.updateGeoMapTemplate(t)})),a},a.buildMapTemplateBase=function(){var t=(0,c.A)("#"+a.svgId());0==t.size()&&(t=(0,c.A)("body").append("svg").attr("id",a.svgId())),t.attr("class","em-map"),a.svg_=t,a.containerId_||(a.containerId_=a.svgId_),a.tooltip_.containerId||(a.tooltip_.containerId=a.containerId_),(0,l.A)("#"+a.svgId()+" > *").remove(),"WORLD"==a.geo_.toUpperCase()&&(a.height()||a.height(.55*a.width()),t.attr("width",a.width()).attr("height",a.height()),a.proj_=54030),a.height()||a.height(.85*a.width()),t.attr("width",a.width()).attr("height",a.height()),t.append("defs").attr("class","em-defs").append("clipPath").attr("id",a.svgId_+"-clip-path").append("path").attr("d",(0,h.d4)(0,0,a.width_,a.height_)),a.drawCoastalMargin_&&t.append("filter").attr("id","em-coastal-blur").attr("x","-200%").attr("y","-200%").attr("width","400%").attr("height","400%").append("feGaussianBlur").attr("in","SourceGraphic").attr("stdDeviation",a.coastalMarginStdDev_);var n=t.insert("g",":first-child").attr("id","em-drawing-"+a.svgId_).attr("class","em-drawing-group").attr("clip-path","url(#"+a.svgId_+"-clip-path)");n.append("g").attr("id","em-zoom-group-"+a.svgId_).attr("class","em-zoom-group");return(0,y.N)(a),(0,y.$)(a,e),n.append("rect").attr("id","em-frame-"+a.geo_).attr("class","em-frame").attr("x",0).attr("y",0).attr("width",a.width_).attr("height",a.height_),a.stamp_&&(0,b.G)(a.stamp_,a),a},a.buildMapTemplate=function(){var t,n=a.svg().select("#em-zoom-group-"+a.svgId_);if(n.selectAll("*").remove(),1==a.gridCartogram_?((0,S.I)(a),a.footnote_=!1):(a.position_.x&&a.position_.y||k(),a.position_.z=a.position_.z||T(),z(),D(),a.zoomExtent()&&F(),n.append("rect").attr("id","sea").attr("class","em-sea").attr("x",-5*a.width_).attr("y",-5*a.height_).attr("width",11*a.width_).attr("height",11*a.height_),"WORLD"==a.geo_&&n.append("path").datum({type:"Sphere"}).attr("id","sphere").attr("d",a._pathFunction).attr("class","em-graticule"),a.drawCoastalMargin_&&W(),a.geometries_?a.Geometries.addUserGeometriesToMap(a.geometries_,n,a._pathFunction):a.Geometries.addDefaultGeometriesToMap(n,a.drawGraticule_,a._pathFunction,a.nutsLevel_,a.nutsYear_,a.geo_,a.proj_,a.scale_)),e&&j(a),a.labels_&&(0,v.SY)(a,n),a.annotations_&&((0,m.H)(a),a.annotationsAdded=!0),a.title()){var r=a.isInset?"em-inset-title":"em-title";a.titlePosition()||a.titlePosition([10,(0,h.LF)(r)+(a.isInset?0:10)]),a.svg().append("text").attr("id","title"+a.geo_).attr("class",r).attr("x",a.titlePosition()[0]).attr("y",a.titlePosition()[1]).html(a.title())}if(a.subtitle()){var s=a.isInset?"em-inset-subtitle":"em-subtitle",i=a.isInset?"em-inset-title":"em-title";a.subtitlePosition()||a.subtitlePosition([10,(0,h.LF)(i)+(0,h.LF)(s)+15]),a.svg().append("text").attr("id","subtitle"+a.geo_).attr("class",s).attr("x",a.subtitlePosition()[0]).attr("y",a.subtitlePosition()[1]).html(a.subtitle())}if((a.footnote_&&G(),a.showSourceLink_)&&((t=e?a.stat("size"):a.stat())&&t.eurostatDatasetCode)){var o=t.eurostatDatasetCode,l="https://ec.europa.eu/eurostat/databrowser/view/".concat(o,"/default/table?lang=en"),c=a.svg().append("a").attr("class","em-source-dataset-link").attr("href",l).attr("target","_blank").append("text").attr("class","em-source-dataset-link-text").attr("x",a.width_).attr("y",a.height_).text("EUROSTAT").attr("text-anchor","end").node().getComputedTextLength();a.svg().append("text").attr("class","em-source-pretext").attr("x",a.width_-c-2).attr("y",a.height_).text("Source:").attr("text-anchor","end")}return a.showScalebar_&&(2!==a.scalebarPosition_.length&&(a.scalebarPosition_[0]=15,a.scalebarPosition_[1]=a.height_-50),U()),a};var k=function(){var t,e=w[a.geo_+"_"+a.proj_];e?(a.position_.x=a.position_.x||e.geoCenter[0],a.position_.y=a.position_.y||e.geoCenter[1]):null!==(t=a.Geometries.defaultGeoData)&&void 0!==t&&t.bbox&&(a.position_.x=a.position_.x||.5*(a.Geometries.defaultGeoData.bbox[0]+a.Geometries.defaultGeoData.bbox[2]),a.position_.y=a.position_.y||.5*(a.Geometries.defaultGeoData.bbox[1]+a.Geometries.defaultGeoData.bbox[3])),M()},T=function(){var t,e=w[a.geo_+"_"+a.proj_];return e?800*e.pixelSize/a.width_:null!==(t=a.Geometries.defaultGeoData)&&void 0!==t&&t.bbox?Math.min((a.Geometries.defaultGeoData.bbox[2]-a.Geometries.defaultGeoData.bbox[0])/a.width_,(a.Geometries.defaultGeoData.bbox[3]-a.Geometries.defaultGeoData.bbox[1])/a.height_):100},z=function(){"WORLD"===a.geo_?a._projection=a.projectionFunction_||(0,g.A)().translate([a.width_/2,a.height_/2]).scale((a.width_-20)/(2*Math.PI)):a._projection=a.projectionFunction_||(0,d.A)().reflectY(!0).fitSize([a.width_,a.height_],(0,h.Rz)(L()))},L=function(){var t=.5*a.position_.z*a.width_,e=.5*a.position_.z*a.height_;return[a.position_.x-t,a.position_.y-e,a.position_.x+t,a.position_.y+e]},D=function(){a._pathFunction=(0,p.A)().projection(a._projection)},F=function(){var t=(0,c.A)("#"+a.svgId()),e=o.GS,n=(0,o.s_)().scaleExtent(a.zoomExtent()).on("zoom",(function(t){var n=t.transform;n.k!==e.k?E(t,e):I(t),a.svg_.select("#em-zoom-group-"+a.svgId_).attr("transform",n),e=n}));t.call(n)},E=function(t,e){var n,r,i=t.transform,o=(a.width_/2-i.x)/i.k,l=(a.height_/2-i.y)/i.k,c=a._projection.invert([o,l]),u=(0,s.A)(c,2),d=u[0],p=u[1];a.position_.x=d,a.position_.y=p,a.position_.z=N(i.k/e.k),R(i),null!==(n=a.labels_)&&void 0!==n&&n.values&&P(i),null!==(r=a.labels_)&&void 0!==r&&r.backgrounds&&O(i)},O=function(t){var e=a.svg_.select("#em-zoom-group-"+a.svgId_).selectAll(".em-label-background"),n=t.k,r=[];e.each((function(){var t=(0,c.A)(this),e=parseFloat(t.attr("data-width"))||parseFloat(t.attr("width")),a=parseFloat(t.attr("data-height"))||parseFloat(t.attr("height")),s=parseFloat(t.attr("data-x"))||parseFloat(t.attr("x")),i=parseFloat(t.attr("data-y"))||parseFloat(t.attr("y"));if(e>0&&a>0&&!isNaN(s)&&!isNaN(i)){t.attr("data-width")||(t.attr("data-width",e),t.attr("data-height",a),t.attr("data-x",s),t.attr("data-y",i));var o=e*(1/n),l=a*(1/n),u=s*(1/n),d=i*(1/n);r.push({element:t,targetWidth:o,targetHeight:l,targetX:u,targetY:d})}})),r.forEach((function(t){var e=t.element,a=t.targetWidth,n=t.targetHeight,r=t.targetX,s=t.targetY;e.attr("width",a).attr("height",n).attr("x",r).attr("y",s)}))},P=function(t){var e=a.svg_.select("#em-zoom-group-"+a.svgId_).select("#em-labels").selectAll("*"),n=t.k,r=[];e.each((function(){var t=(0,c.A)(this),e=window.getComputedStyle(this),a=t.attr("font-size"),s=e.fontSize,i=a||s;if(i&&parseFloat(i)>0){var o=parseFloat(t.attr("data-fs"))||parseFloat(a)||parseFloat(s);t.attr("data-fs")||t.attr("data-fs",o);var l=o/n;r.push({element:this,targetFontSize:l})}})),r.forEach((function(t){var e=t.element,a=t.targetFontSize;e.style.setProperty("font-size","".concat(a,"px"),"important")}))},R=function(t){var e=a.svg_.select("#em-zoom-group-"+a.svgId_).selectAll("*"),n=t.k,r=[];e.each((function(){var t=(0,c.A)(this),e=window.getComputedStyle(this),a=t.attr("stroke-width"),s=e.strokeWidth,i=a||s;if(i&&parseFloat(i)>0){var o=parseFloat(t.attr("data-sw"))||parseFloat(a)||parseFloat(s);t.attr("data-sw")||t.attr("data-sw",o);var l=o/n;r.push({element:this,targetStrokeWidth:l})}})),r.forEach((function(t){var e=t.element,a=t.targetStrokeWidth;e.style.setProperty("stroke-width","".concat(a,"px"),"important")}))},N=function(t){var e=L();return(e[2]-e[0])/(a.width_*t)},I=function(t,e){var n=t.transform,r=(a.width_/2-n.x)/n.k,i=(a.height_/2-n.y)/n.k,o=a._projection.invert([r,i]),l=(0,s.A)(o,2),c=l[0],u=l[1];void 0!==a.maxBounds_.xMin&&c<a.maxBounds_.xMin&&(c=a.maxBounds_.xMin,n.x=a.width_/2-a._projection([c,u])[0]*n.k),void 0!==a.maxBounds_.yMin&&u<a.maxBounds_.yMin&&(u=a.maxBounds_.yMin,n.y=a.height_/2-a._projection([c,u])[1]*n.k),void 0!==a.maxBounds_.xMax&&c>a.maxBounds_.xMax&&(c=a.maxBounds_.xMax,n.x=a.width_/2-a._projection([c,u])[0]*n.k),void 0!==a.maxBounds_.yMax&&u>a.maxBounds_.yMax&&(u=a.maxBounds_.yMax,n.y=a.height_/2-a._projection([c,u])[1]*n.k),a.position_.x=c,a.position_.y=u},M=function(){var t=(0,h.Ez)("x"),e=(0,h.Ez)("y"),n=(0,h.Ez)("z");null==t||null==t||isNaN(+t)||(a.position_.x=+t),null==e||null==e||isNaN(+e)||(a.position_.y=+e),null==n||null==n||isNaN(+n)||(a.position_.z=+n)},G=function(){a.svg().append("text").attr("id","em-footnote").attr("class","em-footnote").attr("x",0).attr("y",a.height_).html(a.footnote_).on("mouseover",(function(){a._tooltip.mw___=a._tooltip.style("max-width"),a._tooltip.style("max-width","400px"),a.footnoteTooltipText_&&a._tooltip.mouseover(a.footnoteTooltipText_)})).on("mousemove",(function(t){a.footnoteTooltipText_&&a._tooltip.mousemove(t)})).on("mouseout",(function(t){a.footnoteTooltipText_&&a._tooltip.mouseout(t),a._tooltip.style("max-width",a._tooltip.mw___)}))},W=function(){var t=a.svg().select("#em-zoom-group-"+a.svgId_).append("g").attr("id","em-coast-margin").attr("class","em-coast-margin");a.Geometries.geoJSONs.cntbn&&t.append("g").attr("id","em-coast-margin-cnt").attr("class","em-coast-margin-cnt").selectAll("path").data(a.Geometries.geoJSONs.cntbn).enter().filter((function(t){return"T"===t.properties.co})).append("path").attr("d",a._pathFunction),a.Geometries.geoJSONs.nutsbn&&t.append("g").attr("id","em-coast-margin-nuts").attr("class","em-coast-margin-nuts").selectAll("path").data(a.Geometries.geoJSONs.nutsbn).enter().filter((function(t){return"T"===t.properties.co})).append("path").attr("d",a._pathFunction),a.Geometries.geoJSONs.worldbn&&t.append("g").attr("id","em-coast-margin-world").attr("class","em-coast-margin-world").selectAll("path").data(a.Geometries.geoJSONs.worldbn).enter().filter((function(t){return"T"===t.properties.COAS_FLAG})).append("path").attr("d",a._pathFunction)},j=function(t){var e;t.Geometries.centroidsData?e="mixed"==t.nutsLevel_?[].concat((0,n.A)(t.Geometries.centroidsData[0].features),(0,n.A)(t.Geometries.centroidsData[1].features),(0,n.A)(t.Geometries.centroidsData[2].features),(0,n.A)(t.Geometries.centroidsData[3].features)):t.Geometries.centroidsData.features:"WORLD"==t.geo_&&(e=[],t.Geometries.geoJSONs.worldrg.forEach((function(t){var a=function(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?A(Object(a),!0).forEach((function(e){(0,r.A)(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):A(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}({},t);"FR"==t.properties.id?a.geometry={coordinates:[2.2,46.2],type:"Point"}:a.geometry={coordinates:(0,f.A)(t),type:"Point"},e.push(a)}))),t.processCentroids_&&(e=t.processCentroids_(e)),t._centroidFeatures=e.map((function(e){var a=t._projection(e.geometry.coordinates);return e.properties.centroid=a,e}));t.svg().select("#em-zoom-group-"+t.svgId_).append("g").attr("id","g_ps").selectAll("g").data(t._centroidFeatures).enter().append("g").attr("transform",(function(t){return"translate("+t.properties.centroid[0].toFixed(3)+","+t.properties.centroid[1].toFixed(3)+")"})).attr("class","em-centroid").attr("id",(function(t){return"ps"+t.properties.id}))},U=function(){var t=a.scalebarMaxWidth_,e=a.scalebarTextOffset_[0],n=a.scalebarTextOffset_[1],r=a.position_.z,s=H(t*r),i=s[0]/r,o=s[1],l=a.svg().append("g").attr("class","em-scalebar").attr("transform","translate(".concat(a.scalebarPosition_[0],",").concat(a.scalebarPosition_[1],")")).attr("width",t+20).attr("height",a.scalebarHeight_);l.append("line").attr("class","em-scalebar-line").attr("x1",5).attr("y1",1).attr("x2",i+5).attr("y2",1),l.append("line").attr("class","em-scalebar-line").attr("x1",5).attr("y1",a.scalebarSegmentHeight_).attr("x2",i+5).attr("y2",a.scalebarSegmentHeight_),l.append("line").attr("class","em-scalebar-line").attr("x1",5).attr("y1",1).attr("x2",5).attr("y2",a.scalebarTickHeight_),l.append("text").attr("class","em-scalebar-label").attr("x",5+e).attr("y",a.scalebarTickHeight_+n).text("0");var c={1:4,2:2,5:5}[o],u=i/c;if(u>=15){for(var d=1;d<c;d++)l.append("line").attr("class","em-scalebar-line").attr("x1",5+a.scalebarStrokeWidth_/2+d*u).attr("y1",1).attr("x2",5+a.scalebarStrokeWidth_/2+d*u).attr("y2",a.scalebarTickHeight_),l.append("text").attr("class","em-scalebar-label").attr("x",5+e+d*u).attr("y",a.scalebarTickHeight_+n).text(B(s[0]/c*d));for(var p=-1;p<c;p+=2)if(1==p)l.append("line").attr("class","em-scalebar-line").attr("x1",5+a.scalebarStrokeWidth_-1).attr("y1",a.scalebarSegmentHeight_/2).attr("x2",5+a.scalebarStrokeWidth_/2+p*u).attr("y2",a.scalebarSegmentHeight_/2);else{var f=5+a.scalebarStrokeWidth_/2+(p-1)*u;f>0&&l.append("line").attr("class","em-scalebar-line").attr("x1",f).attr("y1",a.scalebarSegmentHeight_/2).attr("x2",5+a.scalebarStrokeWidth_/2+p*u).attr("y2",a.scalebarSegmentHeight_/2)}}else l.append("line").attr("class","em-scalebar-line").attr("x1",5+a.scalebarStrokeWidth_-1).attr("y1",a.scalebarSegmentHeight_/2).attr("x2",5+a.scalebarStrokeWidth_/2+u*c).attr("y2",a.scalebarSegmentHeight_/2);l.append("line").attr("class","em-scalebar-line").attr("x1",i+5).attr("y1",1).attr("x2",i+5).attr("y2",a.scalebarTickHeight_),l.append("text").attr("class","em-scalebar-label").attr("x",i+5+e).attr("y",a.scalebarTickHeight_+n).text(B(s[0])+a.scalebarUnits_)},H=function(t){var e=Math.pow(10,Math.floor(Math.log(t)/Math.log(10)));return 5*e<=t?[5*e,5]:2*e<=t?[2*e,2]:[e,1]},B=function(t){return t<.01?1e3*t+"mm":t<1?100*t+"cm":t<1e3?1*t+"m":t/1e3};return a},w={EUR_3035:{geoCenter:[497e4,335e4],pixelSize:6800},IC_32628:{geoCenter:[443468,3145647],pixelSize:1e3},GP_32620:{geoCenter:[669498,1784552],pixelSize:130},MQ_32620:{geoCenter:[716521,1621322],pixelSize:130},GF_32622:{geoCenter:[266852,444074],pixelSize:500},RE_32740:{geoCenter:[348011,7661627],pixelSize:130},YT_32738:{geoCenter:[516549,8583920],pixelSize:70},MT_3035:{geoCenter:[4719755,1441701],pixelSize:70},PT20_32626:{geoCenter:[397418,4271471],pixelSize:1500},PT30_32628:{geoCenter:[333586,3622706],pixelSize:150},LI_3035:{geoCenter:[4287060,2672e3],pixelSize:40},IS_3035:{geoCenter:[3011804,496e4],pixelSize:700},SJ_SV_3035:{geoCenter:[457e4,6160156],pixelSize:800},SJ_JM_3035:{geoCenter:[3647762,5408300],pixelSize:100},CARIB_32620:{geoCenter:[636345,1669439],pixelSize:500},WORLD_54030:{geoCenter:[14,17],pixelSize:9e3}}},9408:(t,e,a)=>{a.d(e,{T:()=>p});var n=a(3837),r=a(183),s=a(2130),i=a(2716),o=a(1454),l=a(6406),c=a(9695),u=a(419),d=a(6033),p=function(t){var e=c.R(t,!0);e.pieMinRadius_=5,e.pieMaxRadius_=15,e.pieChartInnerRadius_=0,e.pieStrokeFill_="white",e.pieStrokeWidth_=.3,e.tooltipPieRadius_=40,e.tooltipPieInnerRadius_=0,e.catColors_=void 0,e.catLabels_=void 0,e.pieOtherColor_="#FFCC80",e.pieOtherText_="Other",e.showOnlyWhenComplete_=!1,e.sizeClassifier_=null,e.statPie_=null,["catColors_","catLabels_","showOnlyWhenComplete_","noDataFillStyle_","pieMaxRadius_","pieMinRadius_","pieChartInnerRadius_","pieOtherColor_","pieOtherText_","pieStrokeFill_","pieStrokeWidth_"].forEach((function(t){e[t.substring(0,t.length-1)]=function(a){return arguments.length?(e[t]=a,e):e[t]}})),t&&["catColors","catLabels","showOnlyWhenComplete","noDataFillStyle","pieMaxRadius","pieMinRadius","pieChartInnerRadius","pieOtherColor","pieOtherText","pieStrokeFill","pieStrokeWidth"].forEach((function(a){null!=t[a]&&e[a](t[a])})),e.statCodes_=void 0,e.totalCode__=void 0,e.statPie=function(t,a,n,r,s,i){t.filters=t.filters||{};for(var o=0;o<n.length;o++){var l=n[o];t.filters[a]=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),s&&(e.catColors_=e.catColors_||{},e.catColors_[l]=s[o]),r&&(e.catLabels_=e.catLabels_||{},e.catLabels_[l]=r[o])}if(e.statCodes_=n,i){e.totalCode_=i,t.filters[a]=i;var p={};for(var f in t)p[f]=t[f];for(var g in p.filters={},t.filters)p.filters[g]=t.filters[g];e.stat(i,p),e.catColors_.other=e.pieOtherColor_,e.catLabels_.other=e.pieOtherText_}return e},e.updateClassification=function(){return e.insetTemplates_&&(0,d.Qv)(e.insetTemplates_,e.svgId_,a),a(e),e};var a=function(t){if(!e.statCodes_){e.statCodes_=Object.keys(e.statData_);var a=e.statCodes_.indexOf("default");a>-1&&e.statCodes_.splice(a,1)}var r,s=(r=[],e.svg().selectAll("#g_ps").selectAll("g.em-centroid").data().forEach((function(t){var e=t.properties.id,a=f(e);a&&r.push(a)})),(0,o.A)(r));return isNaN(s[0])||(e.sizeClassifier_=(0,n.RZ)().domain(s).range([e.pieMinRadius_,e.pieMaxRadius_])),e};e.updateStyle=function(){if(!e.catColors_){e.catColors({});for(var t=0;t<e.statCodes_.length;t++)e.catColors_[e.statCodes_[t]]=l.A[t%10]}e.catLabels_=e.catLabels_||{};var a=[];if(e.svg_){var n=e.svg_.selectAll("#g_ps");if(n){n.selectAll("g.em-centroid").append("g").attr("class","em-pie").attr("id",(function(t){return a.push(t),"pie_"+t.properties.id}));var o=(0,d.ty)(e);e.svg().selectAll(o).on("mouseover",(function(t,a){var n=(0,r.A)(this);n.attr("fill___",n.style("fill")),n.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,r.A)(this);t.attr("fill___")&&(t.style("fill",t.attr("fill___")),e._tooltip&&e._tooltip.mouseout())})),function(t){t.forEach((function(t){var a=t.properties.id,n=[],o=p(a);for(var l in o)n.push({code:l,value:o[l]});if(n&&0!=n.length){var c=e.svg().selectAll("#pie_"+a),u=e.sizeClassifier_(f(a)),d=e.pieChartInnerRadius_,g=(0,s.A)().sort(null).value((function(t){return t.value}));c.append("g").attr("stroke",e.pieStrokeFill_).attr("stroke-width",e.pieStrokeWidth_+"px").attr("class","piechart").selectAll("path").data(g(n)).join("path").style("fill",(function(t){return e.catColors_[t.data.code]||"lightgray"})).attr("fill___",(function(t){return e.catColors_[t.data.code]||"lightgray"})).attr("code",(function(t){return t.data.code})).attr("d",(0,i.A)().innerRadius(d).outerRadius(u)).on("mouseover",(function(a,n){var s=(0,r.A)(this);(0,r.A)(s.node().parentNode).style("stroke-width","1px").style("stroke","black"),e._tooltip&&e._tooltip.mouseover(e.tooltip_.textFunction(t,e))})).on("mousemove",(function(t,a){e._tooltip&&e._tooltip.mousemove(t)})).on("mouseout",(function(){var t=(0,r.A)(this);(0,r.A)(t.node().parentNode).style("stroke-width",e.pieStrokeWidth_).style("stroke",e.pieStrokeFill_),e._tooltip&&e._tooltip.mouseout()}))}}))}(a)}}return e};var p=function(t){for(var a={},n=0,r=0;r<e.statCodes_.length;r++){var s=e.statCodes_[r],i=e.statData(s).get(t);if(!i||0!=i.value&&!i.value||isNaN(i.value)){if(e.showOnlyWhenComplete())return}else a[s]=i.value,n+=i.value}if(e.totalCode_){var o=e.statData(e.totalCode_).get(t);o&&(n=o.value)}if(0!=n){for(var l=0;l<e.statCodes_.length;l++)a[e.statCodes_[l]]/=n;if(e.totalCode_){var c=0;for(var u in a)c+=a[u];a.other=1-c}return a}};var f=function(t){var a,n=0;if(e.totalCode_)!(a=e.statData(e.totalCode_).get(t))||0!=a.value&&!a.value||isNaN(a.value)?e.showOnlyWhenComplete()&&(n=void 0):n=a.value;else for(var r=0;r<e.statCodes_.length;r++){var s=e.statCodes_[r];if(!(a=e.statData(s).get(t))||0!=a.value&&!a.value||isNaN(a.value)){if(e.showOnlyWhenComplete())return}else n+=a.value}if(0!=n)return n};return e.getLegendConstructor=function(){return u.o},e.tooltip_.textFunction=function(t,a){var n=(0,r.A)("#tooltip_eurostat");n.html(""),n.selectAll("*").remove(),t.properties.id?n.append("div").attr("class","estat-vis-tooltip-bar").html(t.properties.na+" ("+t.properties.id+")"):n.append("div").attr("class","estat-vis-tooltip-bar").html(t.properties.na);var o=[],l=p(t.properties.id);for(var c in l)o.push({code:c,value:l[c]});if(o&&0!=o.length){var u=150,d=150,g=Math.min(u,d)/2-25,h=n.append("div").attr("class","em-tooltip-piechart-container").append("svg").attr("class","em-tooltip-piechart-svg").attr("viewbox","0, 0, ".concat(u,", ").concat(d)).attr("width",u).attr("height",137.5).append("g").attr("transform","translate(75,75)"),m=(0,s.A)().sort(null).value((function(t){return t.value})),v=(0,i.A)().innerRadius(0).outerRadius(.8*g),_=(0,i.A)().innerRadius(.9*g).outerRadius(.9*g),x=m(o);h.selectAll("allSlices").data(x).enter().append("path").attr("d",v).style("fill",(function(t){return e.catColors()[t.data.code]||"lightgray"})).attr("stroke","white").style("stroke-width","1px").style("opacity",.7),h.selectAll("allPolylines").data(x).enter().append("polyline").attr("stroke","black").style("fill","none").attr("stroke-width",1).attr("points",(function(t){if(t.data.value>.02){var e=v.centroid(t),a=_.centroid(t),n=_.centroid(t),r=t.startAngle+(t.endAngle-t.startAngle)/2;return n[0]=.95*g*(r<Math.PI?1:-1),[e,a,n]}})),h.selectAll("allLabels").data(x).enter().append("text").text((function(t){if(t.data.value>.02){var e=(100*t.data.value).toFixed();if(!isNaN(e))return e+"%"}})).attr("transform",(function(t){var e=_.centroid(t),a=t.startAngle+(t.endAngle-t.startAngle)/2;return e[0]=.99*g*(a<Math.PI?1:-1),"translate("+e+")"})).style("text-anchor",(function(t){return t.startAngle+(t.endAngle-t.startAngle)/2<Math.PI?"start":"end"})).style("font-size","12px");for(var y=n.append("div").attr("class","em-tooltip-piechart-breakdown"),b=0;b<e.statCodes_.length;b++){var S=e.statCodes_[b],A=e.statData(S).get(t.properties.id);if(A&&void 0!==A.value&&null!==A.value){var C="<strong>".concat(e.catLabels_[S],"</strong>: ").concat(A.value.toFixed(),"<br>");y.html(y.html()+C)}}var w=f(t.properties.id);null!=w&&y.html(y.html()+"<strong>Total</strong>: ".concat(w.toFixed(),"<br>"))}else n.append("div").html(e.noDataText())},e}},9666:(t,e,a)=>{a.d(e,{A:()=>o});var n=a(1601),r=a.n(n),s=a(6314),i=a.n(s)()(r());i.push([t.id,".estat-vis-tooltip-text {\n background: #ffffff;\n color: #171a22;\n padding: 4px;\n font-size: 16px;\n}\n.estat-vis-tooltip-bar {\n background: #515560;\n color: #ffffff;\n padding: 6px;\n font-size: 16px;\n}\n.tooltip-eurostat {\n font-family: Arial;\n max-width: 250px;\n overflow: hidden;\n background: white;\n padding: 0px;\n border: 0px;\n border-radius: 0px;\n box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1), 0px 1px 3px rgba(0, 0, 0, 0.08);\n position: absolute;\n font-family: Helvetica, Arial, sans-serif;\n pointer-events: none;\n opacity: 0;\n z-index: 99999999;\n}\n.em-tooltip-piechart-breakdown {\n padding: 10px;\n font-size: 14px;\n}\n.em-tooltip-piechart-container {\n text-align: center;\n}\n",""]);const o=i},9695:(t,e,a)=>{a.d(e,{R:()=>c});var n=a(6033),r=a(8689),s=a(3729),i=a(5097),o=a(183),l=a(2617),c=function(t,e){var a=r.P(t,e);if(a.stat_={default:void 0},a.stat=function(t,e){return arguments.length?2==arguments.length?(a.stat_[t]=e,a):"string"==typeof t||t instanceof String?a.stat_[t]:(a.stat_=t.default?t:{default:t},a):a.stat_.default},a.statData_={default:s.L(),color:s.L(),size:s.L(),v1:s.L(),v2:s.L(),v3:s.L()},a.statData=function(t,e){return arguments.length?1==arguments.length?a.statData_[t]:(a.statData_[t]=e,a):a.statData_.default},a.noDataText_="No data available",a.language_="en",a.transitionDuration_=500,a.tooltip_.textFunction=void 0,a.filtersDefinitionFunction_=void 0,a.callback_=void 0,a.legend_=void 0,a.legendObj_=void 0,["legend_","legendObj_","noDataText_","language_","transitionDuration_","tooltipText_","filtersDefinitionFunction_","callback_"].forEach((function(t){a[t.substring(0,t.length-1)]=function(e){return arguments.length?(a[t]=e,a):a[t]}})),t)for(var c in t)a[c]&&null!=t[c]&&a[c](t[c]);a.legend=function(t){return arguments.length?(a.legend_=t,a.legendObj_&&a.updateLegend(),a):a.legend_},a.updateLegend=function(t){return a.legendObj_&&a.legendObj().update(),a},a.build=function(){return a.projectionFunction_&&a.proj("4326"),a.buildMapTemplateBase(),a.filtersDefinitionFunction_&&a.filtersDefinitionFunction_(a.svg(),a.numberOfClasses_),a.legend()&&a.buildLegend(),a.tooltip_?a._tooltip=l.Y(a.tooltip_):a._tooltip=l.Y(),a.updateGeoData(),a.updateStatData(),a},a.buildLegend=function(){a.legendObj(a.getLegendConstructor()(a,a.legend()));var t=a.legendObj();if(0==(0,o.A)("#"+t.svgId).size()){var e=null==t.x?a.width()-100-t.boxPadding:t.x,n=null==t.y?t.boxPadding:t.y;a.svg().append("g").attr("id",t.svgId).attr("class","em-legend").attr("transform","translate("+e+","+n+")")}t.build()};var d=function(){for(var t in a.stat_)if(!a.statData_[t].isReady())return!1;return!0};return a.updateGeoData=function(){return a.updateGeoMapTemplate((function(){d()&&(a.updateStatValues(),a.callback()&&a.callback()(a))})),a},a.updateStatData=function(){for(var t in a.stat_){if(!a.stat(t)&&a.statData(t).get())return;"default"!=t||a.stat(t)||a.stat(t,{eurostatDatasetCode:"demo_r_d3dens",unitText:"inhab./km²"});var e=s.L(a.stat(t));a.statData(t,e);var n=a.nutsLevel_;"mixed"==a.nutsLevel_&&(n=0),e.retrieveFromRemote(n,a.language(),(function(){a.Geometries.isGeoReady()&&d()&&(a.updateStatValues(),a.callback()&&a.callback()())}))}return a},a.updateStatValues=function(){return a.updateClassification(),a.updateStyle(),a.legendObj()&&a.legendObj().update(),a},a.updateClassification=function(){return console.log("Map updateClassification function not implemented"),a},a.updateStyle=function(){return console.log("Map updateStyle function not implemented"),a},a.getLegendConstructor=function(){return console.log("Map getLegendConstructor function not implemented"),i.o},a.getTime=function(){return a.statData("default").getTime()},a.setFromURL=function(){var t=u();return t.w&&a.width(t.w),t.h&&a.height(t.h),t.x&&t.y&&a.geoCenter([t.x,t.y]),t.z&&a.pixelSize(t.z),t.s&&a.scale(t.s),t.lvl&&a.nutsLevel(t.lvl),t.time&&(a.filters_.time=t.time,delete a.filters_.lastTimePeriod),t.proj&&a.proj(t.proj),t.geo&&a.geo(t.geo),t.ny&&a.nutsYear(t.ny),t.language&&a.language(t.language),t.numberOfClasses&&a.numberOfClasses(+t.numberOfClasses),a},a.exportMapToSVG=function(){var t=a.svg_.node().cloneNode(!0);t.hasAttribute("xmlns")||t.setAttribute("xmlns","http://www.w3.org/2000/svg"),t.hasAttribute("xmlns:xlink")||t.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),document.body.appendChild(t),(0,n.Tc)(t),document.body.removeChild(t);var e=(0,n.qk)(t),r=document.createElement("a");return r.href=e,r.download="eurostatmap.svg",document.body.appendChild(r),r.click(),document.body.removeChild(r),a},a.exportMapToPNG=function(t,e){var r=a.svg_.node().cloneNode(!0);(0,n.Tc)(r);var s=(new XMLSerializer).serializeToString(r),i=new Blob([s],{type:"image/svg+xml;charset=utf-8"}),o=URL.createObjectURL(i);if(t=t||r.getAttribute("width"),e=e||r.getAttribute("height"),!t||!e)throw new Error("SVG width or height attributes are missing or invalid.");var l=new Image;return l.onload=function(){var a=document.createElement("canvas");a.width=parseFloat(t),a.height=parseFloat(e),a.getContext("2d").drawImage(l,0,0,a.width,a.height),a.toBlob((function(t){var e=URL.createObjectURL(t),a=document.createElement("a");a.href=e,a.download="eurostat-map.png",document.body.appendChild(a),a.click(),document.body.removeChild(a),URL.revokeObjectURL(o),URL.revokeObjectURL(e)}),"image/png")},l.src=o,a},a},u=function(){for(var t={},e=["w","h","x","y","z","s","lvl","time","proj","geo","ny","language","sl","numberOfClasses"],a=0;a<e.length;a++)t[e[a]]=getURLParameterByName(e[a]);return t}},9793:(t,e,a)=>{a.d(e,{$:()=>n});var n={"03M":{type:"Topology",arcs:[[[3061,1303],[-152,-59],[-32,-66],[-65,72],[-96,7],[-16,59],[-64,19],[-56,-39],[-120,39],[-184,-19],[-16,26],[32,52],[-16,72],[24,40],[8,183]],[[2885,0],[-8,46],[-65,85],[-40,-7],[-40,40],[0,111],[80,13],[25,46],[72,13],[40,98],[-56,118],[144,196],[-24,79],[88,59],[-24,98],[-8,20],[24,39],[8,52],[48,72],[-88,125]],[[825,2638],[-112,-98],[-72,-7],[-88,-118],[-176,-39],[56,-91],[88,-33],[24,-53],[56,-39],[24,-91],[-56,-46],[24,-105],[-56,-92],[-104,0],[-48,-104],[-16,-40],[-57,7],[-40,-53],[-16,-78],[113,-118],[-97,-65],[-88,-99],[-80,20],[-80,-39],[-24,-13]],[[1098,2304],[-193,66],[24,39],[-16,39],[65,13],[0,33],[-65,79],[-88,65]],[[2308,1689],[-153,-20],[-64,59],[-40,7],[-96,-27],[-104,138],[-8,92],[-32,78],[-64,26],[-32,-59],[-24,0],[-56,86],[-40,137],[-25,65],[-56,0],[-56,46],[-64,-72],[-120,53],[-88,-40],[-88,46]]],transform:{scale:[37.761044752777565,38.54734205626113],translate:[5167020.037451873,2202278.5103255166]},objects:{nutsbn_1:{type:"GeometryCollection",geometries:[{type:"LineString",arcs:[0],properties:{id:1000004,lvl:1,eu:"F",efta:"F",cc:"T",oth:"F",co:"F"}},{type:"LineString",arcs:[1],properties:{id:1000005,lvl:1,eu:"F",efta:"F",cc:"T",oth:"F",co:"F"}},{type:"LineString",arcs:[2],properties:{id:1000001,lvl:1,eu:"F",efta:"F",cc:"T",oth:"F",co:"F"}},{type:"LineString",arcs:[3],properties:{id:1000002,lvl:1,eu:"F",efta:"F",cc:"T",oth:"F",co:"F"}},{type:"LineString",arcs:[4],properties:{id:1000003,lvl:1,eu:"F",efta:"F",cc:"T",oth:"F",co:"F"}}]}}},"10M":{type:"Topology",arcs:[[[962,0],[-29,75],[48,131],[21,35],[11,38],[32,117],[-24,44]],[[1021,440],[-64,-29],[-70,36],[-120,2],[3,121]],[[770,570],[-126,16],[-40,91],[-45,4],[-51,93],[-142,4]],[[275,891],[-131,-99],[30,-36],[24,-31],[-6,-86],[-98,-86],[13,-64],[-27,-38],[-80,-31]],[[366,778],[-37,22],[-54,91]]],transform:{scale:[113.2099448513097,114.12782081303801],translate:[5167020.037451873,2202278.5103255166]},objects:{nutsbn_1:{type:"GeometryCollection",geometries:[{type:"LineString",arcs:[0],properties:{id:1000005,lvl:1,eu:"F",efta:"F",cc:"T",oth:"T",co:"F"}},{type:"LineString",arcs:[1],properties:{id:1000004,lvl:1,eu:"F",efta:"F",cc:"T",oth:"T",co:"F"}},{type:"LineString",arcs:[2],properties:{id:1000003,lvl:1,eu:"F",efta:"F",cc:"T",oth:"T",co:"F"}},{type:"LineString",arcs:[3],properties:{id:1000001,lvl:1,eu:"F",efta:"F",cc:"T",oth:"T",co:"F"}},{type:"LineString",arcs:[4],properties:{id:1000002,lvl:1,eu:"F",efta:"F",cc:"T",oth:"T",co:"F"}}]}}},"20M":{type:"Topology",arcs:[[[536,0],[-24,45],[15,30],[45,92],[-1,44],[-2,37]],[[569,248],[-130,9],[-10,64]],[[429,321],[-64,10],[-78,94],[-83,13]],[[153,502],[-73,-51],[26,-84],[-48,-53],[-3,-52],[-55,-25]],[[204,438],[-51,64]]],transform:{scale:[203.12309601494124,202.56551463031246],translate:[5167020.037451873,2202278.5103255166]},objects:{nutsbn_1:{type:"GeometryCollection",geometries:[{type:"LineString",arcs:[0],properties:{id:1000005,lvl:1,eu:"F",efta:"F",cc:"T",oth:"T",co:"F"}},{type:"LineString",arcs:[1],properties:{id:1000004,lvl:1,eu:"F",efta:"F",cc:"T",oth:"T",co:"F"}},{type:"LineString",arcs:[2],properties:{id:1000003,lvl:1,eu:"F",efta:"F",cc:"T",oth:"T",co:"F"}},{type:"LineString",arcs:[3],properties:{id:1000001,lvl:1,eu:"F",efta:"F",cc:"T",oth:"T",co:"F"}},{type:"LineString",arcs:[4],properties:{id:1000002,lvl:1,eu:"F",efta:"F",cc:"T",oth:"T",co:"F"}}]}}},"60M":{type:"Topology",arcs:[[[310,138],[-36,-2],[-40,42]],[[234,178],[-123,65]],[[84,278],[-84,-147]],[[111,243],[-27,35]],[[292,0],[18,138]]],transform:{scale:[372.84281730215633,364.87611898580536],translate:[5167020.037451873,2202278.5103255166]},objects:{nutsbn_1:{type:"GeometryCollection",geometries:[{type:"LineString",arcs:[0],properties:{id:1000004,lvl:1,eu:"F",efta:"F",cc:"T",oth:"T",co:"F"}},{type:"LineString",arcs:[1],properties:{id:1000003,lvl:1,eu:"F",efta:"F",cc:"T",oth:"T",co:"F"}},{type:"LineString",arcs:[2],properties:{id:1000001,lvl:1,eu:"F",efta:"F",cc:"T",oth:"T",co:"F"}},{type:"LineString",arcs:[3],properties:{id:1000002,lvl:1,eu:"F",efta:"F",cc:"T",oth:"T",co:"F"}},{type:"LineString",arcs:[4],properties:{id:1000005,lvl:1,eu:"F",efta:"F",cc:"T",oth:"T",co:"F"}}]}}}}},9987:(t,e,a)=>{a.d(e,{U:()=>r});var n=a(6033),r=function(t){t.seaFillStyle=function(e){return console.warn("seaFillStyle() is now DEPRECATED, please use the .em-sea CSS class"),(0,n.tU)(".em-sea","fill",e),t},t.cntrgFillStyle=function(e){return console.warn("cntrgFillStyle() is now DEPRECATED, please use the .em-cntrg CSS class"),(0,n.tU)(".em-cntrg","fill",e),t},t.nutsrgFillStyle=function(e){return console.warn("nutsrgFillStyle() is now DEPRECATED, please use the .em-nutsrg CSS class"),(0,n.tU)(".em-nutsrg","fill",e),t},t.nutsbnStroke=function(e){return console.warn("nutsbnStroke() is now DEPRECATED, please use the .bn_0, .bn_1, .bn_2, .bn_3 CSS classes"),e[0]&&(0,n.tU)(".bn_0","stroke",e[0]),e[1]&&(0,n.tU)(".bn_1","stroke",e[1]),e[2]&&(0,n.tU)(".bn_2","stroke",e[2]),e[3]&&(0,n.tU)(".bn_3","stroke",e[3]),t},t.nutsbnStrokeWidth=function(e){return console.warn("nutsbnStrokeWidth() is now DEPRECATED, please use the .bn_0, .bn_1, .bn_2, .bn_3 CSS classes"),e[0]&&(0,n.tU)(".bn_0","stroke-width",e[0]),e[1]&&(0,n.tU)(".bn_1","stroke-width",e[1]),e[2]&&(0,n.tU)(".bn_2","stroke-width",e[2]),e[3]&&(0,n.tU)(".bn_3","stroke-width",e[3]),t},t.graticuleStroke=function(e){return console.warn("graticuleStroke() is now DEPRECATED, please use the .em-graticule CSS class"),(0,n.tU)(".em-graticule","stroke",e),t},t.graticuleStrokeWidth=function(e){return console.warn("graticuleStrokeWidth() is now DEPRECATED, please use the .em-graticule CSS class"),(0,n.tU)(".em-graticule","stroke-width",e),t},t.nutsrgSelFillSty=function(e){return console.warn("nutsrgSelFillSty() is now DEPRECATED, please use hoverColor() instead"),t.hoverColor_=e,t},t.titleFontSize=function(e){return console.warn("map.titleFontSize() is now DEPRECATED. please use the .em-title CSS class"),(0,n.tU)(".em-title","font-size",e),t},t.subtitleFontSize=function(e){return console.warn("map.subtitleFontSize() is now DEPRECATED. please use the .em-subtitle CSS class"),(0,n.tU)(".em-subtitle","font-size",e),t},t.subtitleFontWeight=function(e){return console.warn("map.subtitleFontWeight() is now DEPRECATED. please use the .em-subtitle CSS class"),(0,n.tU)(".em-subtitle","font-weight",e),t},t.titleFill=function(e){return console.warn("map.titleFill() is now DEPRECATED. please use the .em-title CSS class"),(0,n.tU)(".em-title","fill",e),t},t.subtitleFill=function(e){return console.warn("map.subtitleFill() is now DEPRECATED. please use the .em-subtitle CSS class"),(0,n.tU)(".em-subtitle","fill",e),t},t.cntbnStroke=function(e){return console.warn("cntbnStroke() is now DEPRECATED, please use the .em-cntbn .em-bn-eu .em-bn-efta .em-bn-cc .em-bn-oth CSS classes"),e.eu&&(0,n.tU)(".em-bn-eu","stroke",e.eu),e.efta&&(0,n.tU)(".em-bn-efta","stroke",e.efta),e.cc&&(0,n.tU)(".em-bn-cc","stroke",e.cc),e.oth&&(0,n.tU)(".em-bn-oth","stroke",e.oth),e.co&&(0,n.tU)(".em-bn-co","stroke",e.co),t},t.cntbnStrokeWidth=function(e){return console.warn("cntbnStrokeWidth() is now DEPRECATED, please use the .em-cntbn .em-worldbn .em-bn-eu .em-bn-efta .em-bn-cc .em-bn-oth CSS classes"),e.eu&&(0,n.tU)(".em-bn-eu","stroke-width",e.eu),e.efta&&(0,n.tU)(".em-bn-efta","stroke-width",e.efta),e.cc&&(0,n.tU)(".em-bn-cc","stroke-width",e.cc),e.oth&&(0,n.tU)(".em-bn-oth","stroke-width",e.oth),e.co&&(0,n.tU)(".em-bn-co","stroke-width",e.co),t},t.worldStroke=function(e){return console.warn("map.worldStroke() is now DEPRECATED. please use the .em-worldbn .em-bn-co .em-bn-d CSS classes"),(0,n.tU)(".em-worldbn","stroke",e),t},t.worldStrokeWidth=function(e){return console.warn("map.worldStrokeWidth() is now DEPRECATED. please use the .em-worldbn .em-bn-co .em-bn-d CSS classes"),(0,n.tU)(".em-worldbn","stroke-width",e),t},t.worldCoastStroke=function(e){return console.warn("map.worldCoastStroke() is now DEPRECATED. please use the .em-bn-co CSS class"),(0,n.tU)(".em-bn-co","stroke",e),t},t.worldCoastStrokeWidth=function(e){return console.warn("map.worldCoastStrokeWidth() is now DEPRECATED. please use the .em-bn-co CSS class"),(0,n.tU)(".em-bn-co","stroke-width",e),t},t.worldFillStyle=function(e){return console.warn("map.worldFillStyle() is now DEPRECATED. please use the .em-worldrg CSS class"),(0,n.tU)(".em-worldrg","fill",e),t},t.coastalMarginWidth=function(e){return console.warn("map.coastalMarginWidth() is now DEPRECATED. please use the #em-coast-margin CSS rule"),(0,n.tU)("#em-coast-margin","stroke-width",e),t},t.coastalMarginColor=function(e){return console.warn("map.coastalMarginColor() is now DEPRECATED. please use the #em-coast-margin CSS rule"),(0,n.tU)("#em-coast-margin","stroke",e),t},t.fontFamily=function(e){return console.warn("map.fontFamily() is now DEPRECATED. please use the .em-map CSS class"),(0,n.tU)(".em-map","font-family",e),t},t.botTxtFontSize=function(e){return console.warn("map.botTxtFontSize() is now DEPRECATED. please use the .em-footnote CSS class"),(0,n.tU)(".em-footnote","font-size",e),t},t.botTxtFill=function(e){return console.warn("map.botTxtFill() is now DEPRECATED. please use the .em-footnote CSS class"),(0,n.tU)(".em-footnote","fill",e),t},t.scalebarFontSize=function(e){return console.warn("map.scalebarFontSize() is now DEPRECATED. please use the .em-scalebar-label CSS class"),(0,n.tU)(".em-scalebar-label","font-size",e),t},t.frameStroke=function(e){return console.warn("map.frameStroke() is now DEPRECATED. please use the .em-frame CSS class"),(0,n.tU)(".em-frame","stroke",e),t},t.frameStrokeWidth=function(e){return console.warn("map.frameStrokeWidth() is now DEPRECATED. please use the .em-frame CSS class"),(0,n.tU)(".em-frame","stroke-width",e),t},t.psClassifMethod=function(e){return console.warn("psClassifMethod() is now DEPRECATED. please use psClassificationMethod instead"),t.psClassificationMethod_=e,t},t.geoCenter=function(e){return console.warn("map.geoCenter() is now deprecated. Please use map.position({x,y,z}) instead."),t.position_.x=e[0],t.position_.y=e[1],t},t.pixelSize=function(e){return console.warn("map.pixelSize() is now deprecated. Please use the z property in map.position({x,y,z}) instead."),t.position_.z=e,t},t.pixSize=function(e){return console.warn("map.pixelSize() is now deprecated. Please use the z property in map.position({x,y,z}) instead."),t.position_.z=e,t},t.tooltipText=function(e){return console.warn("map.tooltipText() is now deprecated. Please use map.tooltip(config.textFunction) instead. See API reference for details."),t.tooltip_.textFunction=e,t},t.classifMethod=function(e){return console.warn("map.classifMethod() is now DEPRECATED. please use map.classificationMethod() instead."),t.classificationMethod_=e,t},t.threshold=function(e){return console.warn("map.threshold() is now DEPRECATED. please use map.thresholds() instead."),t.thresholds_=e,t},t.clnb=function(e){return console.warn("map.clnb() is now DEPRECATED. please use map.numberOfClasses() instead."),t.numberOfClasses_=e,t},t.nutsLvl=function(e){return console.warn("map.nutsLvl() is now DEPRECATED. please use map.nutsLevel() instead."),t.nutsLevel_=e,t},t.lg=function(e){return console.warn("map.lg() is now DEPRECATED. please use map.language() instead."),t.language_=e,t},t.bottomText=function(e){return console.warn("bottomText is now DEPRECATED. Please use the footnote() method and em-footnote CSS class instead."),t.footnote_=e,t},t.botTxtFontSize=function(e){return console.warn("botTxtFontSize is now DEPRECATED. Please use the em-footnote CSS class instead."),t},t.botTxtFill=function(e){return console.warn("botTxtFill is now DEPRECATED. Please use the em-footnote CSS class instead."),t},t.botTxtPadding=function(e){return console.warn("botTxtPadding is now DEPRECATED. Please use the em-footnote CSS class instead."),t},t.botTxtTooltipTxt=function(e){return console.warn("botTxtTooltipTxt is now DEPRECATED. Please use footnoteTooltipText() instead."),t},t.tooltipShowFlags=function(e){return console.warn("tooltipShowFlags is now DEPRECATED. Please use out.tooltip({showFlags}) instead."),t.tooltip_.showFlags=e,t},t.colorFun=function(e){return console.warn("colorFun is now DEPRECATED. Please use out.colorFunction() instead."),t.colorFunction_=e,t},t.filtersDefinitionFun=function(e){return console.warn("filtersDefinitionFun is now DEPRECATED. Please use out.filtersDefinitionFunction() instead."),t.filtersDefinitionFunction_=e,t},t.labelling=function(e){return console.warn("labelling is now DEPRECATED. Please use out.labels({}) configuration object instead. See documentation for details."),t},t.labelsConfig=function(e){return console.warn("labelsConfig is now DEPRECATED. Please use out.labels({config:yourConfig}) configuration object instead. See documentation for details."),t.labels_=Object.assign(t.labels_||{},{config:e}),t},t.statLabelsPositions=function(e){return console.warn("statLabelsPositions is now DEPRECATED. Please use out.labels({statLabelsPositions:yourPositions}) instead. See documentation for details."),t.labels_=Object.assign(t.labels_||{},{statLabelsPositions:e}),t},t.labelsToShow=function(e){return console.warn("labelsToShow is now DEPRECATED. Please use out.labels({labelFilterFunction:yourFunction(region,map)}) function instead. See documentation for details."),t},t.labelShadowsToShow=function(e){return console.warn("labelShadowsToShow is now DEPRECATED. Please use out.labels({labelFilterFunction:yourFunction(region,map)}) function instead. See documentation for details."),t},t.labelShadow=function(e){return console.warn("labelShadow is now DEPRECATED. Please use out.labels({labelShadow:boolean}) instead. See documentation for details."),t},t.labelShadowWidth=function(e){return console.warn("labelShadow is now DEPRECATED. Please use out.labels({labelShadow:boolean}) instead. See documentation for details."),t},t.labelFilterFunction=function(e){return console.warn("labelFilterFunction is now DEPRECATED. Please use out.labels({labelFilterFunction:yourFunction(region,map)}) instead. See documentation for details."),t},t.labelFill=function(e){return console.warn("map.labelFill() is now DEPRECATED. please use the .em-stat-labels CSS class"),t},t.labelStroke=function(e){return console.warn("map.labelStroke() is now DEPRECATED. please use the .em-stat-labels CSS class"),t},t.labelStrokeWidth=function(e){return console.warn("map.labelStrokeWidth() is now DEPRECATED. please use the .em-stat-labels CSS class"),t},t.labelOpacity=function(e){return console.warn("map.labelOpacity() is now DEPRECATED. please use the .em-stat-labels CSS class"),t},t.labelValuesFontSize=function(e){return console.warn("map.labelValuesFontSize() is now DEPRECATED. please use the .em-stat-labels CSS class"),t},t.labelShadowWidth=function(e){return console.warn("map.labelShadowWidth() is now DEPRECATED. please use the .em-stat-labels-shadows CSS class"),t},t.labelShadowColor=function(e){return console.warn("map.labelShadowColor() is now DEPRECATED. please use the .em-stat-labels-shadows CSS class"),t},t.countriesToShow=function(e){return console.warn("map.countriesToShow() is now DEPRECATED. please use the map.filterGeometriesFunction() function if you wish to filter the default geometries."),t},t.bordersToShow=function(e){return console.warn("map.bordersToShow() is now DEPRECATED. please use the map.filterGeometriesFunction() function if you wish to filter the default geometries."),t}}}},a={};function n(t){var r=a[t];if(void 0!==r)return r.exports;var s=a[t]={id:t,exports:{}};return e[t](s,s.exports,n),s.exports}n.m=e,t=[],n.O=(e,a,r,s)=>{if(!a){var i=1/0;for(u=0;u<t.length;u++){for(var[a,r,s]=t[u],o=!0,l=0;l<a.length;l++)(!1&s||i>=s)&&Object.keys(n.O).every((t=>n.O[t](a[l])))?a.splice(l--,1):(o=!1,s<i&&(i=s));if(o){t.splice(u--,1);var c=r();void 0!==c&&(e=c)}}return e}s=s||0;for(var u=t.length;u>0&&t[u-1][2]>s;u--)t[u]=t[u-1];t[u]=[a,r,s]},n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var a in e)n.o(e,a)&&!n.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t={792:0};n.O.j=e=>0===t[e];var e=(e,a)=>{var r,s,[i,o,l]=a,c=0;if(i.some((e=>0!==t[e]))){for(r in o)n.o(o,r)&&(n.m[r]=o[r]);if(l)var u=l(n)}for(e&&e(a);c<i.length;c++)s=i[c],n.o(t,s)&&t[s]&&t[s][0](),t[s]=0;return n.O(u)},a=self.webpackChunkeurostatmap=self.webpackChunkeurostatmap||[];a.forEach(e.bind(null,0)),a.push=e.bind(null,a.push.bind(a))})(),n.nc=void 0;var r=n.O(void 0,[732],(()=>n(6954)));return r=n.O(r)})()));
|