(function(){"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:document.body;return Array.from(t.querySelectorAll(e))}var HtmlTag=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;_classCallCheck(this,e),this.a=t,this.e=this.n=null}return _createClass(e,[{key:"m",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.e||(this.e=element(t.nodeName),this.t=t,this.h(e)),this.i(n)}},{key:"h",value:function(e){this.e.innerHTML=e,this.n=Array.from(this.e.childNodes)}},{key:"i",value:function(e){for(var t=0;t6&&void 0!==arguments[6]?arguments[6]:[-1],s=current_component;set_current_component(e);var c=t.props||{},u=e.$$={fragment:null,ctx:null,props:i,update:noop$1,not_equal:a,bound:blank_object(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(s?s.$$.context:[]),callbacks:blank_object(),dirty:o},l=!1;if(u.ctx=n?n(e,c,(function(t,n){var r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return u.ctx&&a(u.ctx[t],u.ctx[t]=r)&&(u.bound[t]&&u.bound[t](r),l&&make_dirty(e,t)),n})):[],u.update(),l=!0,run_all(u.before_update),u.fragment=!!r&&r(u.ctx),t.target){if(t.hydrate){var f=children(t.target);u.fragment&&u.fragment.l(f),f.forEach(detach)}else u.fragment&&u.fragment.c();t.intro&&transition_in(e.$$.fragment),mount_component(e,t.target,t.anchor),flush()}set_current_component(s)}var SvelteComponent=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"$destroy",value:function(){destroy_component(this,1),this.$destroy=noop$1}},{key:"$on",value:function(e,t){var n=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return n.push(t),function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}}},{key:"$set",value:function(){}}]),e}(),TAGS=/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,COMMENTS_AND_PHP_TAGS=/|<\?(?:php)?[\s\S]*?\?>/gi,defaultAllowed="

";function purifyHTML(e,t){if(null===e)return null;if(void 0!==e){if((e=String(e)).indexOf("<")<0&&e.indexOf(">")<0)return e;if(e=stripTags(e,t),"undefined"==typeof document)return e;var n=document.createElement("div");n.innerHTML="".concat(e,"");for(var r=n.childNodes[0].querySelectorAll("*"),a=0;a/g)||[]).join("");for(var n=e,r=e;;)if(r=(n=r).replace(COMMENTS_AND_PHP_TAGS,"").replace(TAGS,(function(e,n){return t.indexOf("<"+n.toLowerCase()+">")>-1?e:""})),n===r)return r}var commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getAugmentedNamespace(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach((function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})})),t}var chroma$2={exports:{}},module; /** * chroma.js - JavaScript library for color conversions * * Copyright (c) 2011-2019, Gregor Aisch * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistributions of source code must retain the above copyright notice, this * list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright notice, * this list of conditions and the following disclaimer in the documentation * and/or other materials provided with the distribution. * * 3. The name Gregor Aisch may not be used to endorse or promote products * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * DISCLAIMED. IN NO EVENT SHALL GREGOR AISCH OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * ------------------------------------------------------- * * chroma.js includes colors from colorbrewer2.org, which are released under * the following license: * * Copyright (c) 2002 Cynthia Brewer, Mark Harrower, * and The Pennsylvania State University. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, * software distributed under the License is distributed on an * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, * either express or implied. See the License for the specific * language governing permissions and limitations under the License. * * ------------------------------------------------------ * * Named colors are taken from X11 Color Names. * http://www.w3.org/TR/css3-color/#svg-color * * @preserve */module=chroma$2,module.exports=function(){for(var e=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),en?n:e},t=function(t){t._clipped=!1,t._unclipped=t.slice(0);for(var n=0;n<=3;n++)n<3?((t[n]<0||t[n]>255)&&(t._clipped=!0),t[n]=e(t[n],0,255)):3===n&&(t[n]=e(t[n],0,1));return t},n={},r=0,a=["Boolean","Number","String","Function","Array","Date","RegExp","Undefined","Null"];r=3?Array.prototype.slice.call(e):"object"==o(e[0])&&t?t.split("").filter((function(t){return void 0!==e[0][t]})).map((function(t){return e[0][t]})):e[0]},c=function(e){if(e.length<2)return null;var t=e.length-1;return"string"==o(e[t])?e[t].toLowerCase():null},u=Math.PI,l={clip_rgb:t,limit:e,type:o,unpack:s,last:c,PI:u,TWOPI:2*u,PITHIRD:u/3,DEG2RAD:u/180,RAD2DEG:180/u},f={format:{},autodetect:[]},p=l.last,h=l.clip_rgb,d=l.type,m=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=this;if("object"===d(e[0])&&e[0].constructor&&e[0].constructor===this.constructor)return e[0];var r=p(e),a=!1;if(!r){a=!0,f.sorted||(f.autodetect=f.autodetect.sort((function(e,t){return t.p-e.p})),f.sorted=!0);for(var i=0,o=f.autodetect;i4?e[4]:1;return 1===i?[0,0,0,o]:[n>=1?0:255*(1-n)*(1-i),r>=1?0:255*(1-r)*(1-i),a>=1?0:255*(1-a)*(1-i),o]},x=l.unpack,E=l.type;g.prototype.cmyk=function(){return $(this._rgb)},y.cmyk=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(g,[null].concat(e,["cmyk"])))},f.format.cmyk=w,f.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=x(e,"cmyk"),"array"===E(e)&&4===e.length)return"cmyk"}});var S=l.unpack,A=l.last,T=function(e){return Math.round(100*e)/100},M=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=S(e,"hsla"),r=A(e)||"lsa";return n[0]=T(n[0]||0),n[1]=T(100*n[1])+"%",n[2]=T(100*n[2])+"%","hsla"===r||n.length>3&&n[3]<1?(n[3]=n.length>3?n[3]:1,r="hsla"):n.length=3,r+"("+n.join(",")+")"},O=l.unpack,I=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=(e=O(e,"rgba"))[0],r=e[1],a=e[2];n/=255,r/=255,a/=255;var i,o,s=Math.min(n,r,a),c=Math.max(n,r,a),u=(c+s)/2;return c===s?(i=0,o=Number.NaN):i=u<.5?(c-s)/(c+s):(c-s)/(2-c-s),n==c?o=(r-a)/(c-s):r==c?o=2+(a-n)/(c-s):a==c&&(o=4+(n-r)/(c-s)),(o*=60)<0&&(o+=360),e.length>3&&void 0!==e[3]?[o,i,u,e[3]]:[o,i,u]},P=l.unpack,C=l.last,N=Math.round,D=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=P(e,"rgba"),r=C(e)||"rgb";return"hsl"==r.substr(0,3)?M(I(n),r):(n[0]=N(n[0]),n[1]=N(n[1]),n[2]=N(n[2]),("rgba"===r||n.length>3&&n[3]<1)&&(n[3]=n.length>3?n[3]:1,r="rgba"),r+"("+n.slice(0,"rgb"===r?3:4).join(",")+")")},L=l.unpack,R=Math.round,B=function(){for(var e,t=[],n=arguments.length;n--;)t[n]=arguments[n];var r,a,i,o=(t=L(t,"hsl"))[0],s=t[1],c=t[2];if(0===s)r=a=i=255*c;else{var u=[0,0,0],l=[0,0,0],f=c<.5?c*(1+s):c+s-c*s,p=2*c-f,h=o/360;u[0]=h+1/3,u[1]=h,u[2]=h-1/3;for(var d=0;d<3;d++)u[d]<0&&(u[d]+=1),u[d]>1&&(u[d]-=1),6*u[d]<1?l[d]=p+6*(f-p)*u[d]:2*u[d]<1?l[d]=f:3*u[d]<2?l[d]=p+(f-p)*(2/3-u[d])*6:l[d]=p;r=(e=[R(255*l[0]),R(255*l[1]),R(255*l[2])])[0],a=e[1],i=e[2]}return t.length>3?[r,a,i,t[3]]:[r,a,i,1]},j=/^rgb\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*\)$/,Y=/^rgba\(\s*(-?\d+),\s*(-?\d+)\s*,\s*(-?\d+)\s*,\s*([01]|[01]?\.\d+)\)$/,z=/^rgb\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,F=/^rgba\(\s*(-?\d+(?:\.\d+)?)%,\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,H=/^hsl\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*\)$/,U=/^hsla\(\s*(-?\d+(?:\.\d+)?),\s*(-?\d+(?:\.\d+)?)%\s*,\s*(-?\d+(?:\.\d+)?)%\s*,\s*([01]|[01]?\.\d+)\)$/,W=Math.round,V=function(e){var t;if(e=e.toLowerCase().trim(),f.format.named)try{return f.format.named(e)}catch(e){}if(t=e.match(j)){for(var n=t.slice(1,4),r=0;r<3;r++)n[r]=+n[r];return n[3]=1,n}if(t=e.match(Y)){for(var a=t.slice(1,5),i=0;i<4;i++)a[i]=+a[i];return a}if(t=e.match(z)){for(var o=t.slice(1,4),s=0;s<3;s++)o[s]=W(2.55*o[s]);return o[3]=1,o}if(t=e.match(F)){for(var c=t.slice(1,5),u=0;u<3;u++)c[u]=W(2.55*c[u]);return c[3]=+c[3],c}if(t=e.match(H)){var l=t.slice(1,4);l[1]*=.01,l[2]*=.01;var p=B(l);return p[3]=1,p}if(t=e.match(U)){var h=t.slice(1,4);h[1]*=.01,h[2]*=.01;var d=B(h);return d[3]=+t[4],d}};V.test=function(e){return j.test(e)||Y.test(e)||z.test(e)||F.test(e)||H.test(e)||U.test(e)};var q=V,K=l.type;g.prototype.css=function(e){return D(this._rgb,e)},y.css=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(g,[null].concat(e,["css"])))},f.format.css=q,f.autodetect.push({p:5,test:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if(!t.length&&"string"===K(e)&&q.test(e))return"css"}});var G=l.unpack;f.format.gl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=G(e,"rgba");return n[0]*=255,n[1]*=255,n[2]*=255,n},y.gl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(g,[null].concat(e,["gl"])))},g.prototype.gl=function(){var e=this._rgb;return[e[0]/255,e[1]/255,e[2]/255,e[3]]};var X=l.unpack,J=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r=X(e,"rgb"),a=r[0],i=r[1],o=r[2],s=Math.min(a,i,o),c=Math.max(a,i,o),u=c-s,l=100*u/255,f=s/(255-u)*100;return 0===u?n=Number.NaN:(a===c&&(n=(i-o)/u),i===c&&(n=2+(o-a)/u),o===c&&(n=4+(a-i)/u),(n*=60)<0&&(n+=360)),[n,l,f]},Z=l.unpack,Q=Math.floor,ee=function(){for(var e,t,n,r,a,i,o=[],s=arguments.length;s--;)o[s]=arguments[s];var c,u,l,f=(o=Z(o,"hcg"))[0],p=o[1],h=o[2];h*=255;var d=255*p;if(0===p)c=u=l=h;else{360===f&&(f=0),f>360&&(f-=360),f<0&&(f+=360);var m=Q(f/=60),g=f-m,v=h*(1-p),y=v+d*(1-g),b=v+d*g,_=v+d;switch(m){case 0:c=(e=[_,b,v])[0],u=e[1],l=e[2];break;case 1:c=(t=[y,_,v])[0],u=t[1],l=t[2];break;case 2:c=(n=[v,_,b])[0],u=n[1],l=n[2];break;case 3:c=(r=[v,y,_])[0],u=r[1],l=r[2];break;case 4:c=(a=[b,v,_])[0],u=a[1],l=a[2];break;case 5:c=(i=[_,v,y])[0],u=i[1],l=i[2]}}return[c,u,l,o.length>3?o[3]:1]},te=l.unpack,ne=l.type;g.prototype.hcg=function(){return J(this._rgb)},y.hcg=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(g,[null].concat(e,["hcg"])))},f.format.hcg=ee,f.autodetect.push({p:1,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=te(e,"hcg"),"array"===ne(e)&&3===e.length)return"hcg"}});var re=l.unpack,ae=l.last,ie=Math.round,oe=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=re(e,"rgba"),r=n[0],a=n[1],i=n[2],o=n[3],s=ae(e)||"auto";void 0===o&&(o=1),"auto"===s&&(s=o<1?"rgba":"rgb");var c="000000"+((r=ie(r))<<16|(a=ie(a))<<8|(i=ie(i))).toString(16);c=c.substr(c.length-6);var u="0"+ie(255*o).toString(16);switch(u=u.substr(u.length-2),s.toLowerCase()){case"rgba":return"#"+c+u;case"argb":return"#"+u+c;default:return"#"+c}},se=/^#?([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/,ce=/^#?([A-Fa-f0-9]{8}|[A-Fa-f0-9]{4})$/,ue=function(e){if(e.match(se)){4!==e.length&&7!==e.length||(e=e.substr(1)),3===e.length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]);var t=parseInt(e,16);return[t>>16,t>>8&255,255&t,1]}if(e.match(ce)){5!==e.length&&9!==e.length||(e=e.substr(1)),4===e.length&&(e=(e=e.split(""))[0]+e[0]+e[1]+e[1]+e[2]+e[2]+e[3]+e[3]);var n=parseInt(e,16);return[n>>24&255,n>>16&255,n>>8&255,Math.round((255&n)/255*100)/100]}throw new Error("unknown hex color: "+e)},le=l.type;g.prototype.hex=function(e){return oe(this._rgb,e)},y.hex=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(g,[null].concat(e,["hex"])))},f.format.hex=ue,f.autodetect.push({p:4,test:function(e){for(var t=[],n=arguments.length-1;n-- >0;)t[n]=arguments[n+1];if(!t.length&&"string"===le(e)&&[3,4,5,6,7,8,9].indexOf(e.length)>=0)return"hex"}});var fe=l.unpack,pe=l.TWOPI,he=Math.min,de=Math.sqrt,me=Math.acos,ge=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r=fe(e,"rgb"),a=r[0],i=r[1],o=r[2],s=he(a/=255,i/=255,o/=255),c=(a+i+o)/3,u=c>0?1-s/c:0;return 0===u?n=NaN:(n=(a-i+(a-o))/2,n/=de((a-i)*(a-i)+(a-o)*(i-o)),n=me(n),o>i&&(n=pe-n),n/=pe),[360*n,u,c]},ve=l.unpack,ye=l.limit,be=l.TWOPI,_e=l.PITHIRD,$e=Math.cos,ke=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r,a,i=(e=ve(e,"hsi"))[0],o=e[1],s=e[2];return isNaN(i)&&(i=0),isNaN(o)&&(o=0),i>360&&(i-=360),i<0&&(i+=360),(i/=360)<1/3?r=1-((a=(1-o)/3)+(n=(1+o*$e(be*i)/$e(_e-be*i))/3)):i<2/3?a=1-((n=(1-o)/3)+(r=(1+o*$e(be*(i-=1/3))/$e(_e-be*i))/3)):n=1-((r=(1-o)/3)+(a=(1+o*$e(be*(i-=2/3))/$e(_e-be*i))/3)),[255*(n=ye(s*n*3)),255*(r=ye(s*r*3)),255*(a=ye(s*a*3)),e.length>3?e[3]:1]},we=l.unpack,xe=l.type;g.prototype.hsi=function(){return ge(this._rgb)},y.hsi=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(g,[null].concat(e,["hsi"])))},f.format.hsi=ke,f.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=we(e,"hsi"),"array"===xe(e)&&3===e.length)return"hsi"}});var Ee=l.unpack,Se=l.type;g.prototype.hsl=function(){return I(this._rgb)},y.hsl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(g,[null].concat(e,["hsl"])))},f.format.hsl=B,f.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Ee(e,"hsl"),"array"===Se(e)&&3===e.length)return"hsl"}});var Ae=l.unpack,Te=Math.min,Me=Math.max,Oe=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r,a,i=(e=Ae(e,"rgb"))[0],o=e[1],s=e[2],c=Te(i,o,s),u=Me(i,o,s),l=u-c;return a=u/255,0===u?(n=Number.NaN,r=0):(r=l/u,i===u&&(n=(o-s)/l),o===u&&(n=2+(s-i)/l),s===u&&(n=4+(i-o)/l),(n*=60)<0&&(n+=360)),[n,r,a]},Ie=l.unpack,Pe=Math.floor,Ce=function(){for(var e,t,n,r,a,i,o=[],s=arguments.length;s--;)o[s]=arguments[s];var c,u,l,f=(o=Ie(o,"hsv"))[0],p=o[1],h=o[2];if(h*=255,0===p)c=u=l=h;else{360===f&&(f=0),f>360&&(f-=360),f<0&&(f+=360);var d=Pe(f/=60),m=f-d,g=h*(1-p),v=h*(1-p*m),y=h*(1-p*(1-m));switch(d){case 0:c=(e=[h,y,g])[0],u=e[1],l=e[2];break;case 1:c=(t=[v,h,g])[0],u=t[1],l=t[2];break;case 2:c=(n=[g,h,y])[0],u=n[1],l=n[2];break;case 3:c=(r=[g,v,h])[0],u=r[1],l=r[2];break;case 4:c=(a=[y,g,h])[0],u=a[1],l=a[2];break;case 5:c=(i=[h,g,v])[0],u=i[1],l=i[2]}}return[c,u,l,o.length>3?o[3]:1]},Ne=l.unpack,De=l.type;g.prototype.hsv=function(){return Oe(this._rgb)},y.hsv=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(g,[null].concat(e,["hsv"])))},f.format.hsv=Ce,f.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Ne(e,"hsv"),"array"===De(e)&&3===e.length)return"hsv"}});var Le={Kn:18,Xn:.95047,Yn:1,Zn:1.08883,t0:.137931034,t1:.206896552,t2:.12841855,t3:.008856452},Re=l.unpack,Be=Math.pow,je=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=Re(e,"rgb"),r=n[0],a=n[1],i=n[2],o=Fe(r,a,i),s=o[0],c=o[1],u=116*c-16;return[u<0?0:u,500*(s-c),200*(c-o[2])]},Ye=function(e){return(e/=255)<=.04045?e/12.92:Be((e+.055)/1.055,2.4)},ze=function(e){return e>Le.t3?Be(e,1/3):e/Le.t2+Le.t0},Fe=function(e,t,n){return e=Ye(e),t=Ye(t),n=Ye(n),[ze((.4124564*e+.3575761*t+.1804375*n)/Le.Xn),ze((.2126729*e+.7151522*t+.072175*n)/Le.Yn),ze((.0193339*e+.119192*t+.9503041*n)/Le.Zn)]},He=je,Ue=l.unpack,We=Math.pow,Ve=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n,r,a,i=(e=Ue(e,"lab"))[0],o=e[1],s=e[2];return r=(i+16)/116,n=isNaN(o)?r:r+o/500,a=isNaN(s)?r:r-s/200,r=Le.Yn*Ke(r),n=Le.Xn*Ke(n),a=Le.Zn*Ke(a),[qe(3.2404542*n-1.5371385*r-.4985314*a),qe(-.969266*n+1.8760108*r+.041556*a),qe(.0556434*n-.2040259*r+1.0572252*a),e.length>3?e[3]:1]},qe=function(e){return 255*(e<=.00304?12.92*e:1.055*We(e,1/2.4)-.055)},Ke=function(e){return e>Le.t1?e*e*e:Le.t2*(e-Le.t0)},Ge=Ve,Xe=l.unpack,Je=l.type;g.prototype.lab=function(){return He(this._rgb)},y.lab=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(g,[null].concat(e,["lab"])))},f.format.lab=Ge,f.autodetect.push({p:2,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=Xe(e,"lab"),"array"===Je(e)&&3===e.length)return"lab"}});var Ze=l.unpack,Qe=l.RAD2DEG,et=Math.sqrt,tt=Math.atan2,nt=Math.round,rt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=Ze(e,"lab"),r=n[0],a=n[1],i=n[2],o=et(a*a+i*i),s=(tt(i,a)*Qe+360)%360;return 0===nt(1e4*o)&&(s=Number.NaN),[r,o,s]},at=l.unpack,it=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=at(e,"rgb"),r=n[0],a=n[1],i=n[2],o=He(r,a,i),s=o[0],c=o[1],u=o[2];return rt(s,c,u)},ot=l.unpack,st=l.DEG2RAD,ct=Math.sin,ut=Math.cos,lt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=ot(e,"lch"),r=n[0],a=n[1],i=n[2];return isNaN(i)&&(i=0),[r,ut(i*=st)*a,ct(i)*a]},ft=l.unpack,pt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=(e=ft(e,"lch"))[0],r=e[1],a=e[2],i=lt(n,r,a),o=i[0],s=i[1],c=i[2],u=Ge(o,s,c);return[u[0],u[1],u[2],e.length>3?e[3]:1]},ht=l.unpack,dt=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=ht(e,"hcl").reverse();return pt.apply(void 0,n)},mt=l.unpack,gt=l.type;g.prototype.lch=function(){return it(this._rgb)},g.prototype.hcl=function(){return it(this._rgb).reverse()},y.lch=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(g,[null].concat(e,["lch"])))},y.hcl=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(g,[null].concat(e,["hcl"])))},f.format.lch=pt,f.format.hcl=dt,["lch","hcl"].forEach((function(e){return f.autodetect.push({p:2,test:function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(t=mt(t,e),"array"===gt(t)&&3===t.length)return e}})}));var vt={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflower:"#6495ed",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",laserlemon:"#ffff54",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrod:"#fafad2",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",maroon2:"#7f0000",maroon3:"#b03060",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",purple2:"#7f007f",purple3:"#a020f0",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},yt=l.type;g.prototype.name=function(){for(var e=oe(this._rgb,"rgb"),t=0,n=Object.keys(vt);t0;)t[n]=arguments[n+1];if(!t.length&&"string"===yt(e)&&vt[e.toLowerCase()])return"named"}});var bt=l.unpack,_t=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=bt(e,"rgb");return(n[0]<<16)+(n[1]<<8)+n[2]},$t=l.type,kt=function(e){if("number"==$t(e)&&e>=0&&e<=16777215)return[e>>16,e>>8&255,255&e,1];throw new Error("unknown num color: "+e)},wt=l.type;g.prototype.num=function(){return _t(this._rgb)},y.num=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(g,[null].concat(e,["num"])))},f.format.num=kt,f.autodetect.push({p:5,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(1===e.length&&"number"===wt(e[0])&&e[0]>=0&&e[0]<=16777215)return"num"}});var xt=l.unpack,Et=l.type,St=Math.round;g.prototype.rgb=function(e){return void 0===e&&(e=!0),!1===e?this._rgb.slice(0,3):this._rgb.slice(0,3).map(St)},g.prototype.rgba=function(e){return void 0===e&&(e=!0),this._rgb.slice(0,4).map((function(t,n){return n<3?!1===e?t:St(t):t}))},y.rgb=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(g,[null].concat(e,["rgb"])))},f.format.rgb=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var n=xt(e,"rgba");return void 0===n[3]&&(n[3]=1),n},f.autodetect.push({p:3,test:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];if(e=xt(e,"rgba"),"array"===Et(e)&&(3===e.length||4===e.length&&"number"==Et(e[3])&&e[3]>=0&&e[3]<=1))return"rgb"}});var At=Math.log,Tt=function(e){var t,n,r,a=e/100;return a<66?(t=255,n=-155.25485562709179-.44596950469579133*(n=a-2)+104.49216199393888*At(n),r=a<20?0:.8274096064007395*(r=a-10)-254.76935184120902+115.67994401066147*At(r)):(t=351.97690566805693+.114206453784165*(t=a-55)-40.25366309332127*At(t),n=325.4494125711974+.07943456536662342*(n=a-50)-28.0852963507957*At(n),r=255),[t,n,r,1]},Mt=l.unpack,Ot=Math.round,It=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n,r=Mt(e,"rgb"),a=r[0],i=r[2],o=1e3,s=4e4,c=.4;s-o>c;){var u=Tt(n=.5*(s+o));u[2]/u[0]>=i/a?s=n:o=n}return Ot(n)};g.prototype.temp=g.prototype.kelvin=g.prototype.temperature=function(){return It(this._rgb)},y.temp=y.kelvin=y.temperature=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return new(Function.prototype.bind.apply(g,[null].concat(e,["temp"])))},f.format.temp=f.format.kelvin=f.format.temperature=Tt;var Pt=l.type;g.prototype.alpha=function(e,t){return void 0===t&&(t=!1),void 0!==e&&"number"===Pt(e)?t?(this._rgb[3]=e,this):new g([this._rgb[0],this._rgb[1],this._rgb[2],e],"rgb"):this._rgb[3]},g.prototype.clipped=function(){return this._rgb._clipped||!1},g.prototype.darken=function(e){void 0===e&&(e=1);var t=this,n=t.lab();return n[0]-=Le.Kn*e,new g(n,"lab").alpha(t.alpha(),!0)},g.prototype.brighten=function(e){return void 0===e&&(e=1),this.darken(-e)},g.prototype.darker=g.prototype.darken,g.prototype.brighter=g.prototype.brighten,g.prototype.get=function(e){var t=e.split("."),n=t[0],r=t[1],a=this[n]();if(r){var i=n.indexOf(r);if(i>-1)return a[i];throw new Error("unknown channel "+r+" in mode "+n)}return a};var Ct=l.type,Nt=Math.pow,Dt=1e-7,Lt=20;g.prototype.luminance=function(e){if(void 0!==e&&"number"===Ct(e)){if(0===e)return new g([0,0,0,this._rgb[3]],"rgb");if(1===e)return new g([255,255,255,this._rgb[3]],"rgb");var t=this.luminance(),n="rgb",r=Lt,a=function(t,i){var o=t.interpolate(i,.5,n),s=o.luminance();return Math.abs(e-s)e?a(t,o):a(o,i)},i=(t>e?a(new g([0,0,0]),this):a(this,new g([255,255,255]))).rgb();return new g(i.concat([this._rgb[3]]))}return Rt.apply(void 0,this._rgb.slice(0,3))};var Rt=function(e,t,n){return.2126*(e=Bt(e))+.7152*(t=Bt(t))+.0722*(n=Bt(n))},Bt=function(e){return(e/=255)<=.03928?e/12.92:Nt((e+.055)/1.055,2.4)},jt={},Yt=l.type,zt=function(e,t,n){void 0===n&&(n=.5);for(var r=[],a=arguments.length-3;a-- >0;)r[a]=arguments[a+3];var i=r[0]||"lrgb";if(jt[i]||r.length||(i=Object.keys(jt)[0]),!jt[i])throw new Error("interpolation mode "+i+" is not defined");return"object"!==Yt(e)&&(e=new g(e)),"object"!==Yt(t)&&(t=new g(t)),jt[i](e,t,n).alpha(e.alpha()+n*(t.alpha()-e.alpha()))};g.prototype.mix=g.prototype.interpolate=function(e,t){void 0===t&&(t=.5);for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return zt.apply(void 0,[this,e,t].concat(n))},g.prototype.premultiply=function(e){void 0===e&&(e=!1);var t=this._rgb,n=t[3];return e?(this._rgb=[t[0]*n,t[1]*n,t[2]*n,n],this):new g([t[0]*n,t[1]*n,t[2]*n,n],"rgb")},g.prototype.saturate=function(e){void 0===e&&(e=1);var t=this,n=t.lch();return n[1]+=Le.Kn*e,n[1]<0&&(n[1]=0),new g(n,"lch").alpha(t.alpha(),!0)},g.prototype.desaturate=function(e){return void 0===e&&(e=1),this.saturate(-e)};var Ft=l.type;g.prototype.set=function(e,t,n){void 0===n&&(n=!1);var r=e.split("."),a=r[0],i=r[1],o=this[a]();if(i){var s=a.indexOf(i);if(s>-1){if("string"==Ft(t))switch(t.charAt(0)){case"+":case"-":o[s]+=+t;break;case"*":o[s]*=+t.substr(1);break;case"/":o[s]/=+t.substr(1);break;default:o[s]=+t}else{if("number"!==Ft(t))throw new Error("unsupported value for Color.set");o[s]=t}var c=new g(o,a);return n?(this._rgb=c._rgb,this):c}throw new Error("unknown channel "+i+" in mode "+a)}return o};var Ht=function(e,t,n){var r=e._rgb,a=t._rgb;return new g(r[0]+n*(a[0]-r[0]),r[1]+n*(a[1]-r[1]),r[2]+n*(a[2]-r[2]),"rgb")};jt.rgb=Ht;var Ut=Math.sqrt,Wt=Math.pow,Vt=function(e,t,n){var r=e._rgb,a=r[0],i=r[1],o=r[2],s=t._rgb,c=s[0],u=s[1],l=s[2];return new g(Ut(Wt(a,2)*(1-n)+Wt(c,2)*n),Ut(Wt(i,2)*(1-n)+Wt(u,2)*n),Ut(Wt(o,2)*(1-n)+Wt(l,2)*n),"rgb")};jt.lrgb=Vt;var qt=function(e,t,n){var r=e.lab(),a=t.lab();return new g(r[0]+n*(a[0]-r[0]),r[1]+n*(a[1]-r[1]),r[2]+n*(a[2]-r[2]),"lab")};jt.lab=qt;var Kt=function(e,t,n,r){var a,i,o,s,c,u,l,f,p,h,d,m;return"hsl"===r?(o=e.hsl(),s=t.hsl()):"hsv"===r?(o=e.hsv(),s=t.hsv()):"hcg"===r?(o=e.hcg(),s=t.hcg()):"hsi"===r?(o=e.hsi(),s=t.hsi()):"lch"!==r&&"hcl"!==r||(r="hcl",o=e.hcl(),s=t.hcl()),"h"===r.substr(0,1)&&(c=(a=o)[0],l=a[1],p=a[2],u=(i=s)[0],f=i[1],h=i[2]),isNaN(c)||isNaN(u)?isNaN(c)?isNaN(u)?m=Number.NaN:(m=u,1!=p&&0!=p||"hsv"==r||(d=f)):(m=c,1!=h&&0!=h||"hsv"==r||(d=l)):m=c+n*(u>c&&u-c>180?u-(c+360):u180?u+360-c:u-c),void 0===d&&(d=l+n*(f-l)),new g([m,d,p+n*(h-p)],r)},Gt=function(e,t,n){return Kt(e,t,n,"lch")};jt.lch=Gt,jt.hcl=Gt;var Xt=function(e,t,n){var r=e.num(),a=t.num();return new g(r+n*(a-r),"num")};jt.num=Xt;var Jt=function(e,t,n){return Kt(e,t,n,"hcg")};jt.hcg=Jt;var Zt=function(e,t,n){return Kt(e,t,n,"hsi")};jt.hsi=Zt;var Qt=function(e,t,n){return Kt(e,t,n,"hsl")};jt.hsl=Qt;var en=function(e,t,n){return Kt(e,t,n,"hsv")};jt.hsv=en;var tn=l.clip_rgb,nn=Math.pow,rn=Math.sqrt,an=Math.PI,on=Math.cos,sn=Math.sin,cn=Math.atan2,un=function(e,t,n){void 0===t&&(t="lrgb"),void 0===n&&(n=null);var r=e.length;n||(n=Array.from(new Array(r)).map((function(){return 1})));var a=r/n.reduce((function(e,t){return e+t}));if(n.forEach((function(e,t){n[t]*=a})),e=e.map((function(e){return new g(e)})),"lrgb"===t)return ln(e,n);for(var i=e.shift(),o=i.get(t),s=[],c=0,u=0,l=0;l=360;)d-=360;o[h]=d}else o[h]=o[h]/s[h];return p/=r,new g(o,t).alpha(p>.99999?1:p,!0)},ln=function(e,t){for(var n=e.length,r=[0,0,0,0],a=0;a.9999999&&(r[3]=1),new g(tn(r))},fn=l.type,pn=Math.pow,hn=function(e){var t="rgb",n=y("#ccc"),r=0,a=[0,1],i=[],o=[0,0],s=!1,c=[],u=!1,l=0,f=1,p=!1,h={},d=!0,m=1,g=function(e){if((e=e||["#fff","#000"])&&"string"===fn(e)&&y.brewer&&y.brewer[e.toLowerCase()]&&(e=y.brewer[e.toLowerCase()]),"array"===fn(e)){1===e.length&&(e=[e[0],e[0]]),e=e.slice(0);for(var t=0;t=s[n];)n++;return n-1}return 0},b=function(e){return e},_=function(e){return e},$=function(e,r){var a,u;if(null==r&&(r=!1),isNaN(e)||null===e)return n;u=r?e:s&&s.length>2?v(e)/(s.length-2):f!==l?(e-l)/(f-l):1,u=_(u),r||(u=b(u)),1!==m&&(u=pn(u,m)),u=o[0]+u*(1-o[0]-o[1]),u=Math.min(1,Math.max(0,u));var p=Math.floor(1e4*u);if(d&&h[p])a=h[p];else{if("array"===fn(c))for(var g=0;g=$&&g===i.length-1){a=c[g];break}if(u>$&&u2){var u=e.map((function(t,n){return n/(e.length-1)})),p=e.map((function(e){return(e-l)/(f-l)}));p.every((function(e,t){return u[t]===e}))||(_=function(e){if(e<=0||e>=1)return e;for(var t=0;e>=p[t+1];)t++;var n=(e-p[t])/(p[t+1]-p[t]);return u[t]+n*(u[t+1]-u[t])})}}return a=[l,f],w},w.mode=function(e){return arguments.length?(t=e,k(),w):t},w.range=function(e,t){return g(e),w},w.out=function(e){return u=e,w},w.spread=function(e){return arguments.length?(r=e,w):r},w.correctLightness=function(e){return null==e&&(e=!0),p=e,k(),b=p?function(e){for(var t=$(0,!0).lab()[0],n=$(1,!0).lab()[0],r=t>n,a=$(e,!0).lab()[0],i=t+(n-t)*e,o=a-i,s=0,c=1,u=20;Math.abs(o)>.01&&u-- >0;)r&&(o*=-1),o<0?(s=e,e+=.5*(c-e)):(c=e,e+=.5*(s-e)),a=$(e,!0).lab()[0],o=a-i;return e}:function(e){return e},w},w.padding=function(e){return null!=e?("number"===fn(e)&&(e=[e,e]),o=e,w):o},w.colors=function(t,n){arguments.length<2&&(n="hex");var r=[];if(0===arguments.length)r=c.slice(0);else if(1===t)r=[w(.5)];else if(t>1){var i=a[0],o=a[1]-i;r=dn(0,t,!1).map((function(e){return w(i+e/(t-1)*o)}))}else{e=[];var u=[];if(s&&s.length>2)for(var l=1,f=s.length,p=1<=f;p?lf;p?l++:l--)u.push(.5*(s[l-1]+s[l]));else u=a;r=u.map((function(e){return w(e)}))}return y[n]&&(r=r.map((function(e){return e[n]()}))),r},w.cache=function(e){return null!=e?(d=e,w):d},w.gamma=function(e){return null!=e?(m=e,w):m},w.nodata=function(e){return null!=e?(n=y(e),w):n},w};function dn(e,t,n){for(var r=[],a=ei;a?o++:o--)r.push(o);return r}var mn=function(e){var t,n,r,a,i,o,s;if(2===(e=e.map((function(e){return new g(e)}))).length)t=e.map((function(e){return e.lab()})),i=t[0],o=t[1],a=function(e){var t=[0,1,2].map((function(t){return i[t]+e*(o[t]-i[t])}));return new g(t,"lab")};else if(3===e.length)n=e.map((function(e){return e.lab()})),i=n[0],o=n[1],s=n[2],a=function(e){var t=[0,1,2].map((function(t){return(1-e)*(1-e)*i[t]+2*(1-e)*e*o[t]+e*e*s[t]}));return new g(t,"lab")};else if(4===e.length){var c;r=e.map((function(e){return e.lab()})),i=r[0],o=r[1],s=r[2],c=r[3],a=function(e){var t=[0,1,2].map((function(t){return(1-e)*(1-e)*(1-e)*i[t]+3*(1-e)*(1-e)*e*o[t]+3*(1-e)*e*e*s[t]+e*e*e*c[t]}));return new g(t,"lab")}}else if(5===e.length){var u=mn(e.slice(0,3)),l=mn(e.slice(2,5));a=function(e){return e<.5?u(2*e):l(2*(e-.5))}}return a},gn=function(e){var t=mn(e);return t.scale=function(){return hn(t)},t},vn=function(e,t,n){if(!vn[n])throw new Error("unknown blend mode "+n);return vn[n](e,t)},yn=function(e){return function(t,n){var r=y(n).rgb(),a=y(t).rgb();return y.rgb(e(r,a))}},bn=function(e){return function(t,n){var r=[];return r[0]=e(t[0],n[0]),r[1]=e(t[1],n[1]),r[2]=e(t[2],n[2]),r}},_n=function(e){return e},$n=function(e,t){return e*t/255},kn=function(e,t){return e>t?t:e},wn=function(e,t){return e>t?e:t},xn=function(e,t){return 255*(1-(1-e/255)*(1-t/255))},En=function(e,t){return t<128?2*e*t/255:255*(1-2*(1-e/255)*(1-t/255))},Sn=function(e,t){return 255*(1-(1-t/255)/(e/255))},An=function(e,t){return 255===e||(e=t/255*255/(1-e/255))>255?255:e};vn.normal=yn(bn(_n)),vn.multiply=yn(bn($n)),vn.screen=yn(bn(xn)),vn.overlay=yn(bn(En)),vn.darken=yn(bn(kn)),vn.lighten=yn(bn(wn)),vn.dodge=yn(bn(An)),vn.burn=yn(bn(Sn));for(var Tn=vn,Mn=l.type,On=l.clip_rgb,In=l.TWOPI,Pn=Math.pow,Cn=Math.sin,Nn=Math.cos,Dn=function(e,t,n,r,a){void 0===e&&(e=300),void 0===t&&(t=-1.5),void 0===n&&(n=1),void 0===r&&(r=1),void 0===a&&(a=[0,1]);var i,o=0;"array"===Mn(a)?i=a[1]-a[0]:(i=0,a=[a,a]);var s=function(s){var c=In*((e+120)/360+t*s),u=Pn(a[0]+i*s,r),l=(0!==o?n[0]+s*o:n)*u*(1-u)/2,f=Nn(c),p=Cn(c);return y(On([255*(u+l*(-.14861*f+1.78277*p)),255*(u+l*(-.29227*f-.90649*p)),255*(u+l*(1.97294*f)),1]))};return s.start=function(t){return null==t?e:(e=t,s)},s.rotations=function(e){return null==e?t:(t=e,s)},s.gamma=function(e){return null==e?r:(r=e,s)},s.hue=function(e){return null==e?n:("array"===Mn(n=e)?0==(o=n[1]-n[0])&&(n=n[1]):o=0,s)},s.lightness=function(e){return null==e?a:("array"===Mn(e)?(a=e,i=e[1]-e[0]):(a=[e,e],i=0),s)},s.scale=function(){return y.scale(s)},s.hue(n),s},Ln="0123456789abcdef",Rn=Math.floor,Bn=Math.random,jn=function(){for(var e="#",t=0;t<6;t++)e+=Ln.charAt(Rn(16*Bn()));return new g(e,"hex")},Yn=Math.log,zn=Math.pow,Fn=Math.floor,Hn=Math.abs,Un=function(e,t){void 0===t&&(t=null);var n={min:Number.MAX_VALUE,max:-1*Number.MAX_VALUE,sum:0,values:[],count:0};return"object"===o(e)&&(e=Object.values(e)),e.forEach((function(e){t&&"object"===o(e)&&(e=e[t]),null==e||isNaN(e)||(n.values.push(e),n.sum+=e,en.max&&(n.max=e),n.count+=1)})),n.domain=[n.min,n.max],n.limits=function(e,t){return Wn(n,e,t)},n},Wn=function(e,t,n){void 0===t&&(t="equal"),void 0===n&&(n=7),"array"==o(e)&&(e=Un(e));var r=e.min,a=e.max,i=e.values.sort((function(e,t){return e-t}));if(1===n)return[r,a];var s=[];if("c"===t.substr(0,1)&&(s.push(r),s.push(a)),"e"===t.substr(0,1)){s.push(r);for(var c=1;c 0");var u=Math.LOG10E*Yn(r),l=Math.LOG10E*Yn(a);s.push(r);for(var f=1;f200&&(_=!1)}for(var L={},R=0;Rr?(n+.05)/(r+.05):(r+.05)/(n+.05)},Kn=Math.sqrt,Gn=Math.atan2,Xn=Math.abs,Jn=Math.cos,Zn=Math.PI,Qn=function(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=1),e=new g(e),t=new g(t);for(var a=Array.from(e.lab()),i=a[0],o=a[1],s=a[2],c=Array.from(t.lab()),u=c[0],l=c[1],f=c[2],p=Kn(o*o+s*s),h=Kn(l*l+f*f),d=i<16?.511:.040975*i/(1+.01765*i),m=.0638*p/(1+.0131*p)+.638,v=p<1e-6?0:180*Gn(s,o)/Zn;v<0;)v+=360;for(;v>=360;)v-=360;var y=v>=164&&v<=345?.56+Xn(.2*Jn(Zn*(v+168)/180)):.36+Xn(.4*Jn(Zn*(v+35)/180)),b=p*p*p*p,_=Kn(b/(b+1900)),$=m*(_*y+1-_),k=p-h,w=o-l,x=s-f,E=(i-u)/(n*d),S=k/(r*m);return Kn(E*E+S*S+(w*w+x*x-k*k)/($*$))},er=function(e,t,n){void 0===n&&(n="lab"),e=new g(e),t=new g(t);var r=e.get(n),a=t.get(n),i=0;for(var o in r){var s=(r[o]||0)-(a[o]||0);i+=s*s}return Math.sqrt(i)},tr=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];try{return new(Function.prototype.bind.apply(g,[null].concat(e))),!0}catch(e){return!1}},nr={cool:function(){return hn([y.hsl(180,1,.9),y.hsl(250,.7,.4)])},hot:function(){return hn(["#000","#f00","#ff0","#fff"]).mode("rgb")}},rr={OrRd:["#fff7ec","#fee8c8","#fdd49e","#fdbb84","#fc8d59","#ef6548","#d7301f","#b30000","#7f0000"],PuBu:["#fff7fb","#ece7f2","#d0d1e6","#a6bddb","#74a9cf","#3690c0","#0570b0","#045a8d","#023858"],BuPu:["#f7fcfd","#e0ecf4","#bfd3e6","#9ebcda","#8c96c6","#8c6bb1","#88419d","#810f7c","#4d004b"],Oranges:["#fff5eb","#fee6ce","#fdd0a2","#fdae6b","#fd8d3c","#f16913","#d94801","#a63603","#7f2704"],BuGn:["#f7fcfd","#e5f5f9","#ccece6","#99d8c9","#66c2a4","#41ae76","#238b45","#006d2c","#00441b"],YlOrBr:["#ffffe5","#fff7bc","#fee391","#fec44f","#fe9929","#ec7014","#cc4c02","#993404","#662506"],YlGn:["#ffffe5","#f7fcb9","#d9f0a3","#addd8e","#78c679","#41ab5d","#238443","#006837","#004529"],Reds:["#fff5f0","#fee0d2","#fcbba1","#fc9272","#fb6a4a","#ef3b2c","#cb181d","#a50f15","#67000d"],RdPu:["#fff7f3","#fde0dd","#fcc5c0","#fa9fb5","#f768a1","#dd3497","#ae017e","#7a0177","#49006a"],Greens:["#f7fcf5","#e5f5e0","#c7e9c0","#a1d99b","#74c476","#41ab5d","#238b45","#006d2c","#00441b"],YlGnBu:["#ffffd9","#edf8b1","#c7e9b4","#7fcdbb","#41b6c4","#1d91c0","#225ea8","#253494","#081d58"],Purples:["#fcfbfd","#efedf5","#dadaeb","#bcbddc","#9e9ac8","#807dba","#6a51a3","#54278f","#3f007d"],GnBu:["#f7fcf0","#e0f3db","#ccebc5","#a8ddb5","#7bccc4","#4eb3d3","#2b8cbe","#0868ac","#084081"],Greys:["#ffffff","#f0f0f0","#d9d9d9","#bdbdbd","#969696","#737373","#525252","#252525","#000000"],YlOrRd:["#ffffcc","#ffeda0","#fed976","#feb24c","#fd8d3c","#fc4e2a","#e31a1c","#bd0026","#800026"],PuRd:["#f7f4f9","#e7e1ef","#d4b9da","#c994c7","#df65b0","#e7298a","#ce1256","#980043","#67001f"],Blues:["#f7fbff","#deebf7","#c6dbef","#9ecae1","#6baed6","#4292c6","#2171b5","#08519c","#08306b"],PuBuGn:["#fff7fb","#ece2f0","#d0d1e6","#a6bddb","#67a9cf","#3690c0","#02818a","#016c59","#014636"],Viridis:["#440154","#482777","#3f4a8a","#31678e","#26838f","#1f9d8a","#6cce5a","#b6de2b","#fee825"],Spectral:["#9e0142","#d53e4f","#f46d43","#fdae61","#fee08b","#ffffbf","#e6f598","#abdda4","#66c2a5","#3288bd","#5e4fa2"],RdYlGn:["#a50026","#d73027","#f46d43","#fdae61","#fee08b","#ffffbf","#d9ef8b","#a6d96a","#66bd63","#1a9850","#006837"],RdBu:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#f7f7f7","#d1e5f0","#92c5de","#4393c3","#2166ac","#053061"],PiYG:["#8e0152","#c51b7d","#de77ae","#f1b6da","#fde0ef","#f7f7f7","#e6f5d0","#b8e186","#7fbc41","#4d9221","#276419"],PRGn:["#40004b","#762a83","#9970ab","#c2a5cf","#e7d4e8","#f7f7f7","#d9f0d3","#a6dba0","#5aae61","#1b7837","#00441b"],RdYlBu:["#a50026","#d73027","#f46d43","#fdae61","#fee090","#ffffbf","#e0f3f8","#abd9e9","#74add1","#4575b4","#313695"],BrBG:["#543005","#8c510a","#bf812d","#dfc27d","#f6e8c3","#f5f5f5","#c7eae5","#80cdc1","#35978f","#01665e","#003c30"],RdGy:["#67001f","#b2182b","#d6604d","#f4a582","#fddbc7","#ffffff","#e0e0e0","#bababa","#878787","#4d4d4d","#1a1a1a"],PuOr:["#7f3b08","#b35806","#e08214","#fdb863","#fee0b6","#f7f7f7","#d8daeb","#b2abd2","#8073ac","#542788","#2d004b"],Set2:["#66c2a5","#fc8d62","#8da0cb","#e78ac3","#a6d854","#ffd92f","#e5c494","#b3b3b3"],Accent:["#7fc97f","#beaed4","#fdc086","#ffff99","#386cb0","#f0027f","#bf5b17","#666666"],Set1:["#e41a1c","#377eb8","#4daf4a","#984ea3","#ff7f00","#ffff33","#a65628","#f781bf","#999999"],Set3:["#8dd3c7","#ffffb3","#bebada","#fb8072","#80b1d3","#fdb462","#b3de69","#fccde5","#d9d9d9","#bc80bd","#ccebc5","#ffed6f"],Dark2:["#1b9e77","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],Paired:["#a6cee3","#1f78b4","#b2df8a","#33a02c","#fb9a99","#e31a1c","#fdbf6f","#ff7f00","#cab2d6","#6a3d9a","#ffff99","#b15928"],Pastel2:["#b3e2cd","#fdcdac","#cbd5e8","#f4cae4","#e6f5c9","#fff2ae","#f1e2cc","#cccccc"],Pastel1:["#fbb4ae","#b3cde3","#ccebc5","#decbe4","#fed9a6","#ffffcc","#e5d8bd","#fddaec","#f2f2f2"]},ar=0,ir=Object.keys(rr);ar

";function clean(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return purifyHTML(e,DEFAULT_ALLOWED+t)}function isTransparentColor(e){return"transparent"===e||!chroma$1(e).alpha()}function create_if_block_1$5(e){var t,n=clean(e[0].prepend)+"";return{c:function(){t=element("span"),this.h()},l:function(e){children(t=claim_element(e,"SPAN",{class:!0})).forEach(detach),this.h()},h:function(){attr(t,"class","prepend")},m:function(e,r){insert(e,t,r),t.innerHTML=n},p:function(e,r){1&r&&n!==(n=clean(e[0].prepend)+"")&&(t.innerHTML=n)},d:function(e){e&&detach(t)}}}function create_if_block$9(e){var t,n=clean(e[0].append)+"";return{c:function(){t=element("span"),this.h()},l:function(e){children(t=claim_element(e,"SPAN",{class:!0})).forEach(detach),this.h()},h:function(){attr(t,"class","append")},m:function(e,r){insert(e,t,r),t.innerHTML=n},p:function(e,r){1&r&&n!==(n=clean(e[0].append)+"")&&(t.innerHTML=n)},d:function(e){e&&detach(t)}}}function create_fragment$i(e){var t,n,r,a,i,o,s=e[0].prepend&&create_if_block_1$5(e),c=e[0].component;function u(e){return{props:{props:e[0].props}}}c&&(r=new c(u(e)));var l=e[0].append&&create_if_block$9(e);return{c:function(){s&&s.c(),t=space(),n=element("span"),r&&create_component(r.$$.fragment),a=space(),l&&l.c(),i=empty(),this.h()},l:function(e){s&&s.l(e),t=claim_space(e);var o=children(n=claim_element(e,"SPAN",{class:!0}));r&&claim_component(r.$$.fragment,o),o.forEach(detach),a=claim_space(e),l&&l.l(e),i=empty(),this.h()},h:function(){attr(n,"class","block-inner")},m:function(e,c){s&&s.m(e,c),insert(e,t,c),insert(e,n,c),r&&mount_component(r,n,null),insert(e,a,c),l&&l.m(e,c),insert(e,i,c),o=!0},p:function(e,a){var o=_slicedToArray(a,1)[0];e[0].prepend?s?s.p(e,o):((s=create_if_block_1$5(e)).c(),s.m(t.parentNode,t)):s&&(s.d(1),s=null);var f={};if(1&o&&(f.props=e[0].props),c!==(c=e[0].component)){if(r){group_outros();var p=r;transition_out(p.$$.fragment,1,0,(function(){destroy_component(p,1)})),check_outros()}c?(create_component((r=new c(u(e))).$$.fragment),transition_in(r.$$.fragment,1),mount_component(r,n,null)):r=null}else c&&r.$set(f);e[0].append?l?l.p(e,o):((l=create_if_block$9(e)).c(),l.m(i.parentNode,i)):l&&(l.d(1),l=null)},i:function(e){o||(r&&transition_in(r.$$.fragment,e),o=!0)},o:function(e){r&&transition_out(r.$$.fragment,e),o=!1},d:function(e){s&&s.d(e),e&&detach(t),e&&detach(n),r&&destroy_component(r),e&&detach(a),l&&l.d(e),e&&detach(i)}}}function instance$i(e,t,n){var r=t.block;return e.$set=function(e){"block"in e&&n(0,r=e.block)},[r]}var Block=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=t.call(this)),e,instance$i,create_fragment$i,safe_not_equal,{block:0}),r}return n}(SvelteComponent);function get_each_context$1(e,t,n){var r=e.slice();return r[3]=t[n],r}function create_if_block$8(e){for(var t,n,r=e[2],a=[],i=0;i .dw-chart-menu a{padding:10px;display:block;color:initial;border-bottom:1px solid #ccc}.menu-content > .dw-chart-menu a:hover{background:rgba(0, 0, 0, 0.05)}.menu-content > .dw-chart-menu .block:last-child a{border-bottom:none}",append$1(document.head,e)}function create_if_block$7(e){var t,n,r,a,i,o,s;function c(e,t){return e[3].icon?create_if_block_1$3:create_else_block$2}var u=c(e),l=u(e);return a=new BlocksRegion({props:{id:e[0],name:e[1],blocks:e[2]}}),{c:function(){t=element("div"),l.c(),n=space(),r=element("div"),create_component(a.$$.fragment),this.h()},l:function(e){var i=children(t=claim_element(e,"DIV",{class:!0}));l.l(i),i.forEach(detach),n=claim_space(e);var o=children(r=claim_element(e,"DIV",{class:!0}));claim_component(a.$$.fragment,o),o.forEach(detach),this.h()},h:function(){attr(t,"class","menu container svelte-1lt126s"),toggle_class(t,"ha-menu",!e[3].icon),attr(r,"class","menu-content container svelte-1lt126s"),toggle_class(r,"hidden",!e[4])},m:function(c,u){insert(c,t,u),l.m(t,null),insert(c,n,u),insert(c,r,u),mount_component(a,r,null),i=!0,o||(s=[listen(t,"click",stop_propagation(e[5])),listen(r,"click",stop_propagation(e[7]))],o=!0)},p:function(e,n){u===(u=c(e))&&l?l.p(e,n):(l.d(1),(l=u(e))&&(l.c(),l.m(t,null))),8&n&&toggle_class(t,"ha-menu",!e[3].icon);var i={};1&n&&(i.id=e[0]),2&n&&(i.name=e[1]),4&n&&(i.blocks=e[2]),a.$set(i),16&n&&toggle_class(r,"hidden",!e[4])},i:function(e){i||(transition_in(a.$$.fragment,e),i=!0)},o:function(e){transition_out(a.$$.fragment,e),i=!1},d:function(e){e&&detach(t),l.d(),e&&detach(n),e&&detach(r),destroy_component(a),o=!1,run_all(s)}}}function create_else_block$2(e){var t;return{c:function(){t=element("div"),this.h()},l:function(e){children(t=claim_element(e,"DIV",{class:!0})).forEach(detach),this.h()},h:function(){attr(t,"class","svelte-1lt126s")},m:function(e,n){insert(e,t,n)},p:noop$1,d:function(e){e&&detach(t)}}}function create_if_block_1$3(e){var t,n=e[3].icon+"";return{c:function(){this.h()},l:function(e){this.h()},h:function(){t=new HtmlTag(null)},m:function(e,r){t.m(n,e,r)},p:function(e,r){8&r&&n!==(n=e[3].icon+"")&&t.p(n)},d:function(e){e&&t.d()}}}function create_fragment$g(e){var t,n,r,a,i=e[2].length&&create_if_block$7(e);return{c:function(){i&&i.c(),t=empty()},l:function(e){i&&i.l(e),t=empty()},m:function(o,s){i&&i.m(o,s),insert(o,t,s),n=!0,r||(a=listen(window,"click",e[6]),r=!0)},p:function(e,n){var r=_slicedToArray(n,1)[0];e[2].length?i?(i.p(e,r),4&r&&transition_in(i,1)):((i=create_if_block$7(e)).c(),transition_in(i,1),i.m(t.parentNode,t)):i&&(group_outros(),transition_out(i,1,1,(function(){i=null})),check_outros())},i:function(e){n||(transition_in(i),n=!0)},o:function(e){transition_out(i),n=!1},d:function(e){i&&i.d(e),e&&detach(t),r=!1,a()}}}function instance$g(e,t,n){var r=t.id,a=t.name,i=t.blocks,o=t.props,s=!1;return e.$set=function(e){"id"in e&&n(0,r=e.id),"name"in e&&n(1,a=e.name),"blocks"in e&&n(2,i=e.blocks),"props"in e&&n(3,o=e.props)},[r,a,i,o,s,function(){n(4,s=!s)},function(){n(4,s=!1)},function(t){bubble(e,t)}]}var Menu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),r=t.call(this),document.getElementById("svelte-1lt126s-style")||add_css$3(),init(_assertThisInitialized(r),e,instance$g,create_fragment$g,safe_not_equal,{id:0,name:1,blocks:2,props:3}),r}return n}(SvelteComponent);function create_fragment$f(e){var t;return{c:function(){this.h()},l:function(e){this.h()},h:function(){t=new HtmlTag(null)},m:function(n,r){t.m(e[0],n,r)},p:function(e,n){1&_slicedToArray(n,1)[0]&&t.p(e[0])},i:noop$1,o:noop$1,d:function(e){e&&t.d()}}}function instance$f(e,t,n){var r,a,i=t.props,o=i.purifyHtml;return e.$set=function(e){"props"in e&&n(1,i=e.props)},e.$$.update=function(){2&e.$$.dirty&&n(2,r=i.chart),4&e.$$.dirty&&n(0,a=o(r.title))},[a,i]}var Headline=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=t.call(this)),e,instance$f,create_fragment$f,safe_not_equal,{props:1}),r}return n}(SvelteComponent);function create_fragment$e(e){var t;return{c:function(){this.h()},l:function(e){this.h()},h:function(){t=new HtmlTag(null)},m:function(n,r){t.m(e[0],n,r)},p:function(e,n){1&_slicedToArray(n,1)[0]&&t.p(e[0])},i:noop$1,o:noop$1,d:function(e){e&&t.d()}}}var allowedTags="
";function instance$e(e,t,n){var r,a,i=t.props,o=i.get;return e.$set=function(e){"props"in e&&n(1,i=e.props)},e.$$.update=function(){2&e.$$.dirty&&n(2,r=i.chart),4&e.$$.dirty&&n(0,a=clean(o(r,"metadata.describe.intro"),allowedTags))},[a,i]}var Description=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=t.call(this)),e,instance$e,create_fragment$e,safe_not_equal,{props:1}),r}return n}(SvelteComponent);function create_if_block$6(e){var t,n,r,a,i;function o(e,t){return e[2]?create_if_block_1$2:create_else_block$1}var s=o(e),c=s(e);return{c:function(){t=element("span"),n=text(e[0]),r=text(":"),a=space(),c.c(),i=empty(),this.h()},l:function(o){var s=children(t=claim_element(o,"SPAN",{class:!0}));n=claim_text(s,e[0]),r=claim_text(s,":"),s.forEach(detach),a=claim_space(o),c.l(o),i=empty(),this.h()},h:function(){attr(t,"class","source-caption")},m:function(e,o){insert(e,t,o),append$1(t,n),append$1(t,r),insert(e,a,o),c.m(e,o),insert(e,i,o)},p:function(e,t){1&t&&set_data(n,e[0]),s===(s=o(e))&&c?c.p(e,t):(c.d(1),(c=s(e))&&(c.c(),c.m(i.parentNode,i)))},d:function(e){e&&detach(t),e&&detach(a),c.d(e),e&&detach(i)}}}function create_else_block$1(e){var t;return{c:function(){t=element("span"),this.h()},l:function(e){children(t=claim_element(e,"SPAN",{class:!0})).forEach(detach),this.h()},h:function(){attr(t,"class","source")},m:function(n,r){insert(n,t,r),t.innerHTML=e[1]},p:function(e,n){2&n&&(t.innerHTML=e[1])},d:function(e){e&&detach(t)}}}function create_if_block_1$2(e){var t;return{c:function(){t=element("a"),this.h()},l:function(e){children(t=claim_element(e,"A",{class:!0,target:!0,rel:!0,href:!0})).forEach(detach),this.h()},h:function(){attr(t,"class","source"),attr(t,"target","_blank"),attr(t,"rel","noopener noreferrer"),attr(t,"href",e[2])},m:function(n,r){insert(n,t,r),t.innerHTML=e[1]},p:function(e,n){2&n&&(t.innerHTML=e[1]),4&n&&attr(t,"href",e[2])},d:function(e){e&&detach(t)}}}function create_fragment$d(e){var t,n=e[1]&&create_if_block$6(e);return{c:function(){n&&n.c(),t=empty()},l:function(e){n&&n.l(e),t=empty()},m:function(e,r){n&&n.m(e,r),insert(e,t,r)},p:function(e,r){var a=_slicedToArray(r,1)[0];e[1]?n?n.p(e,a):((n=create_if_block$6(e)).c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},i:noop$1,o:noop$1,d:function(e){n&&n.d(e),e&&detach(t)}}}function instance$d(e,t,n){var r,a,i,o,s,c=t.props,u=c,l=u.__,f=u.get,p=u.purifyHtml;return e.$set=function(e){"props"in e&&n(3,c=e.props)},e.$$.update=function(){var t;8&e.$$.dirty&&n(4,(r=(t=c).chart,a=t.theme,t),r,(n(5,a),n(3,c)));32&e.$$.dirty&&n(0,i=f(a,"data.options.blocks.source.data.caption",l("Source"))),16&e.$$.dirty&&n(1,o=p(f(r,"metadata.describe.source-name"))),16&e.$$.dirty&&n(2,s=f(r,"metadata.describe.source-url"))},[i,o,s,c]}var Source=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=t.call(this)),e,instance$d,create_fragment$d,safe_not_equal,{props:3}),r}return n}(SvelteComponent);function create_if_block$5(e){var t,n=e[4](e[3])+"";return{c:function(){this.h()},l:function(e){this.h()},h:function(){t=new HtmlTag(null)},m:function(e,r){t.m(n,e,r)},p:function(e,r){8&r&&n!==(n=e[4](e[3])+"")&&t.p(n)},d:function(e){e&&t.d()}}}function create_fragment$c(e){var t,n,r,a,i,o,s=e[0].basedOnByline&&create_if_block$5(e);return{c:function(){t=element("span"),n=text(e[1]),r=space(),a=text(e[2]),i=space(),s&&s.c(),o=empty(),this.h()},l:function(c){var u=children(t=claim_element(c,"SPAN",{class:!0}));n=claim_text(u,e[1]),u.forEach(detach),r=claim_space(c),a=claim_text(c,e[2]),i=claim_space(c),s&&s.l(c),o=empty(),this.h()},h:function(){attr(t,"class","byline-caption")},m:function(e,c){insert(e,t,c),append$1(t,n),insert(e,r,c),insert(e,a,c),insert(e,i,c),s&&s.m(e,c),insert(e,o,c)},p:function(e,t){var r=_slicedToArray(t,1)[0];2&r&&set_data(n,e[1]),4&r&&set_data(a,e[2]),e[0].basedOnByline?s?s.p(e,r):((s=create_if_block$5(e)).c(),s.m(o.parentNode,o)):s&&(s.d(1),s=null)},i:noop$1,o:noop$1,d:function(e){e&&detach(t),e&&detach(r),e&&detach(a),e&&detach(i),s&&s.d(e),e&&detach(o)}}}function instance$c(e,t,n){var r,a,i,o,s,c,u,l,f=t.props,p=f,h=p.get,d=p.purifyHtml,m=p.__;return e.$set=function(e){"props"in e&&n(5,f=e.props)},e.$$.update=function(){32&e.$$.dirty&&n(0,r=f.chart),32&e.$$.dirty&&n(6,a=f.theme),32&e.$$.dirty&&n(7,i=f.caption),192&e.$$.dirty&&n(1,o=h(a,"data.options.blocks.byline.data.".concat(i,"Caption"),m("map"===i?"Map:":"table"===i?"Table:":"Chart:"))),1&e.$$.dirty&&n(2,s=h(r,"metadata.describe.byline",!1)),64&e.$$.dirty&&n(8,c=h(a,"data.options.blocks.byline.data.forkCaption",m("footer / based-on"))),5&e.$$.dirty&&n(9,u=r.basedOnByline&&s),769&e.$$.dirty&&n(3,l=(u?"(":"")+c+" "+d(r.basedOnByline)+(u?")":""))},[r,o,s,l,d,f]}var Byline=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=t.call(this)),e,instance$c,create_fragment$c,safe_not_equal,{props:5}),r}return n}(SvelteComponent);function create_fragment$b(e){var t,n=clean(e[1](e[0],"metadata.annotate.notes"),"
")+"";return{c:function(){this.h()},l:function(e){this.h()},h:function(){t=new HtmlTag(null)},m:function(e,r){t.m(n,e,r)},p:function(e,r){1&_slicedToArray(r,1)[0]&&n!==(n=clean(e[1](e[0],"metadata.annotate.notes"),"
")+"")&&t.p(n)},i:noop$1,o:noop$1,d:function(e){e&&t.d()}}}function instance$b(e,t,n){var r,a=t.props,i=a.get;return e.$set=function(e){"props"in e&&n(2,a=e.props)},e.$$.update=function(){4&e.$$.dirty&&n(0,r=a.chart)},[r,i,a]}var Notes=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=t.call(this)),e,instance$b,create_fragment$b,safe_not_equal,{props:2}),r}return n}(SvelteComponent);function create_fragment$a(e){var t,n,r,a,i,o,s,c=e[3](e[2])+"";return{c:function(){t=element("a"),n=text(c),this.h()},l:function(e){var r=children(t=claim_element(e,"A",{class:!0,"aria-label":!0,target:!0,href:!0}));n=claim_text(r,c),r.forEach(detach),this.h()},h:function(){attr(t,"class","dw-data-link"),attr(t,"aria-label",r=e[3](e[2])+": "+e[4](e[0].title,"")),attr(t,"target",a=e[1]?"_blank":"_self"),attr(t,"href",i=e[1]||"javascript:void(0)")},m:function(r,a){insert(r,t,a),append$1(t,n),o||(s=listen(t,"click",e[5]),o=!0)},p:function(e,o){var s=_slicedToArray(o,1)[0];4&s&&c!==(c=e[3](e[2])+"")&&set_data(n,c),5&s&&r!==(r=e[3](e[2])+": "+e[4](e[0].title,""))&&attr(t,"aria-label",r),2&s&&a!==(a=e[1]?"_blank":"_self")&&attr(t,"target",a),2&s&&i!==(i=e[1]||"javascript:void(0)")&&attr(t,"href",i)},i:noop$1,o:noop$1,d:function(e){e&&detach(t),o=!1,s()}}}function instance$a(e,t,n){var r,a,i,o,s,c,u=t.props,l=u,f=l.get,p=l.__,h=l.purifyHtml;return e.$set=function(e){"props"in e&&n(6,u=e.props)},e.$$.update=function(){var t;64&e.$$.dirty&&n(0,(r=(t=u).chart,a=t.dwChart,i=t.teamPublicSettings,o=t.theme,t),r,(n(10,o),n(6,u)));1&e.$$.dirty&&n(1,s=f(r,"externalData")),1024&e.$$.dirty&&n(2,c=f(o,"data.options.blocks.get-the-data.data.caption",p("Get the data")))},[r,s,c,p,h,function(e){var t;!s&&a&&a.dataset&&(!function(e,t){var n=new Blob([e]);if(window.navigator.msSaveOrOpenBlob)window.navigator.msSaveOrOpenBlob(n,t);else{var r=document.createElement("a");r.href=URL.createObjectURL(n),r.download=t,r.click()}}((t={},i.downloadDataLocalized&&(t.numeral=a.vis().libraries().numeral),"\ufeff"+a.dataset().csv(t)),function(){var e="data-".concat(r.id,".csv"),t=f(o,"data.options.blocks.get-the-data.data.filename","").replace(/%custom_(.*?)%/g,(function(e,t){return f(r,"metadata.custom.".concat(t),"")})).replace(/%chart_id%/g,r.id);return t&&".csv"!==t?t:e}()),e.preventDefault())},u]}var GetTheData=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=t.call(this)),e,instance$a,create_fragment$a,safe_not_equal,{props:6}),r}return n}(SvelteComponent);function create_if_block$4(e){var t,n,r,a,i=e[3](e[2])+"";return{c:function(){t=element("a"),n=text(i),this.h()},l:function(e){var r=children(t=claim_element(e,"A",{href:!0}));n=claim_text(r,i),r.forEach(detach),this.h()},h:function(){attr(t,"href","#/edit-in-datawrapper")},m:function(i,o){insert(i,t,o),append$1(t,n),r||(a=listen(t,"click",prevent_default(e[4])),r=!0)},p:function(e,t){4&t&&i!==(i=e[3](e[2])+"")&&set_data(n,i)},d:function(e){e&&detach(t),r=!1,a()}}}function create_fragment$9(e){var t,n=e[0]&&e[1]&&create_if_block$4(e);return{c:function(){n&&n.c(),t=empty()},l:function(e){n&&n.l(e),t=empty()},m:function(e,r){n&&n.m(e,r),insert(e,t,r)},p:function(e,r){var a=_slicedToArray(r,1)[0];e[0]&&e[1]?n?n.p(e,a):((n=create_if_block$4(e)).c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},i:noop$1,o:noop$1,d:function(e){n&&n.d(e),e&&detach(t)}}}function instance$9(e,t,n){var r,a,i,o,s,c,u=t.props,l=u,f=l.get,p=l.__;return e.$set=function(e){"props"in e&&n(5,u=e.props)},e.$$.update=function(){var t;32&e.$$.dirty&&n(6,(r=(t=u).chart,a=t.theme,i=t.config,t),r,(n(7,a),n(5,u)));64&e.$$.dirty&&n(0,o=f(r,"forkable",!1)),64&e.$$.dirty&&n(1,s=f(r,"metadata.publish.blocks.edit-in-datawrapper",!1)),128&e.$$.dirty&&n(2,c=f(a,"data.options.blocks.edit.data.caption","edit-in-datawrapper"))},[o,s,c,p,function(){var e=document.createElement("form");e.setAttribute("method","post"),e.setAttribute("target","_blank"),e.setAttribute("action","//".concat(i.frontendDomain,"/create/"));var t=document.createElement("input");t.setAttribute("type","hidden"),t.setAttribute("name","template"),t.setAttribute("value",r.id),e.appendChild(t),document.body.appendChild(e),e.submit(),document.body.removeChild(e)},u]}var EditInDatawrapper=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=t.call(this)),e,instance$9,create_fragment$9,safe_not_equal,{props:5}),r}return n}(SvelteComponent),document_1$1=globals.document;function add_css$2(){var e=element("style");e.id="svelte-1f8d99s-style",e.textContent=".embed-code.svelte-1f8d99s.svelte-1f8d99s{position:absolute;bottom:35px;left:8px;max-width:350px;border:1px solid #e5e5e5;background:#fff;box-shadow:0px 4px 10px rgba(0, 0, 0, 0.15);border-radius:4px;padding:15px 20px;font-size:14px;z-index:100}.embed-code.svelte-1f8d99s .close.svelte-1f8d99s{width:15px;height:15px;right:10px;top:10px;position:absolute;fill:#4f4f4f;cursor:pointer}.embed-code.svelte-1f8d99s .close.svelte-1f8d99s:hover,.embed-code.svelte-1f8d99s .close.svelte-1f8d99s:focus{fill:#111}.embed-code.svelte-1f8d99s button.svelte-1f8d99s{cursor:pointer;border:1px solid #ccc;border-bottom-color:#b3b3b3;box-shadow:none;border-radius:4px;width:40px;height:30px;box-shadow:0px 1px 2px rgba(0, 0, 0, 0.05), inset 0px 1px 0px rgba(255, 255, 255, 0.05)}.embed-code.svelte-1f8d99s button.svelte-1f8d99s:hover,.embed-code.svelte-1f8d99s button.svelte-1f8d99s:active{background-color:#e6e6e6}.embed-code.svelte-1f8d99s button svg.svelte-1f8d99s{width:20px;height:20px}.embed-code.svelte-1f8d99s button path.svelte-1f8d99s{fill:#4f4f4f}.embed-code.svelte-1f8d99s p.svelte-1f8d99s{margin:0px 0px 12px 0px;width:calc(100% - 30px);font-size:14px;line-height:20px}.embed-code.svelte-1f8d99s div.actions.svelte-1f8d99s{display:flex;justify-content:space-between}input.svelte-1f8d99s.svelte-1f8d99s{width:100%;background:#f5f5f5;border:1px solid #dddddd;box-sizing:border-box;border-radius:4px;padding:4px;font-size:14px;line-height:14px;color:#4f4f4f;margin-right:10px}",append$1(document_1$1.head,e)}function create_if_block$3(e){var t,n,r,a,i,o,s,c,u,l,f,p,h,d,m,g=(e[2].text||"You can copy and paste this code to embed the visualization:")+"";return{c:function(){t=element("div"),n=element("div"),r=svg_element("svg"),a=svg_element("path"),i=space(),o=element("p"),s=space(),c=element("div"),u=element("input"),l=space(),f=element("button"),p=svg_element("svg"),h=svg_element("path"),this.h()},l:function(e){var d=children(t=claim_element(e,"DIV",{class:!0})),m=children(n=claim_element(d,"DIV",{class:!0})),g=children(r=claim_element(m,"svg",{viewBox:!0,xmlns:!0,class:!0},1));children(a=claim_element(g,"path",{d:!0,class:!0},1)).forEach(detach),g.forEach(detach),m.forEach(detach),i=claim_space(d),children(o=claim_element(d,"P",{class:!0})).forEach(detach),s=claim_space(d);var v=children(c=claim_element(d,"DIV",{class:!0}));u=claim_element(v,"INPUT",{type:!0,readonly:!0,value:!0,class:!0}),l=claim_space(v);var y=children(f=claim_element(v,"BUTTON",{class:!0})),b=children(p=claim_element(y,"svg",{viewBox:!0,xmlns:!0,class:!0},1));children(h=claim_element(b,"path",{d:!0,class:!0},1)).forEach(detach),b.forEach(detach),y.forEach(detach),v.forEach(detach),d.forEach(detach),this.h()},h:function(){attr(a,"d","M7 4a.995.995 0 0 0-.707.293l-2 2a.999.999 0 0 0 0 1.414L11.586 15l-7.293\n 7.293a.999.999 0 0 0 0 1.414l2 2a.999.999 0 0 0 1.414 0L15 18.414l7.293\n 7.293a.999.999 0 0 0 1.414 0l2-2a.999.999 0 0 0 0-1.414L18.414\n 15l7.293-7.293a.999.999 0 0 0 0-1.414l-2-2a.999.999 0 0 0-1.414 0L15 11.586\n 7.707 4.293A.996.996 0 0 0 7 4z"),attr(a,"class","svelte-1f8d99s"),attr(r,"viewBox","0 0 30 30"),attr(r,"xmlns","http://www.w3.org/2000/svg"),attr(r,"class","svelte-1f8d99s"),attr(n,"class","close svelte-1f8d99s"),attr(o,"class","svelte-1f8d99s"),attr(u,"type","text"),u.readOnly=!0,u.value=e[3],attr(u,"class","svelte-1f8d99s"),attr(h,"d","M15 0c-1.645 0-3 1.355-3 3H8C6.346 3 5 4.346 5 6v17c0 1.654 1.346 3 3\n 3h14c1.654 0 3-1.346 3-3V6c0-1.654-1.346-3-3-3h-4c0-1.645-1.355-3-3-3zm0\n 2c.564 0 1 .436 1 1 0 .564-.436 1-1 1-.564 0-1-.436-1-1 0-.564.436-1 1-1zM8\n 5h4v1a1 1 0 0 0 1 1h4a1 1 0 0 0 1-1V5h4c.551 0 1 .449 1 1v17c0 .551-.449 1-1\n 1H8c-.551 0-1-.449-1-1V6c0-.551.449-1 1-1zm4 7a1 1 0 1 0 0 2 1 1 0 0 0\n 0-2zm4 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm4 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm8 0a1\n 1 0 1 0 0 2 1 1 0 0 0 0-2zm-16 4a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm16 0a1 1 0 1 0\n 0 2 1 1 0 0 0 0-2zm-16 4a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm16 0a1 1 0 1 0 0 2 1 1\n 0 0 0 0-2zm0 4a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-16 4a1 1 0 1 0 0 2 1 1 0 0 0\n 0-2zm4 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm4 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm4 0a1\n 1 0 1 0 0 2 1 1 0 0 0 0-2zm4 0a1 1 0 1 0 0 2 1 1 0 0 0 0-2z"),attr(h,"class","svelte-1f8d99s"),attr(p,"viewBox","0 0 30 30"),attr(p,"xmlns","http://www.w3.org/2000/svg"),attr(p,"class","svelte-1f8d99s"),attr(f,"class","svelte-1f8d99s"),attr(c,"class","actions svelte-1f8d99s"),attr(t,"class","embed-code svelte-1f8d99s")},m:function(v,y){insert(v,t,y),append$1(t,n),append$1(n,r),append$1(r,a),append$1(t,i),append$1(t,o),o.innerHTML=g,append$1(t,s),append$1(t,c),append$1(c,u),e[8](u),append$1(c,l),append$1(c,f),append$1(f,p),append$1(p,h),d||(m=[listen(n,"click",e[5]),listen(f,"click",e[6])],d=!0)},p:function(e,t){4&t&&g!==(g=(e[2].text||"You can copy and paste this code to embed the visualization:")+"")&&(o.innerHTML=g),8&t&&u.value!==e[3]&&(u.value=e[3])},d:function(n){n&&detach(t),e[8](null),d=!1,run_all(m)}}}function create_fragment$8(e){var t,n,r,a,i,o,s=(e[2].caption||e[4]("Embed"))+"",c=!e[0]&&create_if_block$3(e);return{c:function(){t=element("a"),n=text(s),r=space(),c&&c.c(),a=empty(),this.h()},l:function(e){var i=children(t=claim_element(e,"A",{href:!0,class:!0}));n=claim_text(i,s),i.forEach(detach),r=claim_space(e),c&&c.l(e),a=empty(),this.h()},h:function(){attr(t,"href","#embed"),attr(t,"class","chart-action-embed")},m:function(s,u){insert(s,t,u),append$1(t,n),insert(s,r,u),c&&c.m(s,u),insert(s,a,u),i||(o=listen(t,"click",e[5]),i=!0)},p:function(e,t){var r=_slicedToArray(t,1)[0];4&r&&s!==(s=(e[2].caption||e[4]("Embed"))+"")&&set_data(n,s),e[0]?c&&(c.d(1),c=null):c?c.p(e,r):((c=create_if_block$3(e)).c(),c.m(a.parentNode,a))},i:noop$1,o:noop$1,d:function(e){e&&detach(t),e&&detach(r),c&&c.d(e),e&&detach(a),i=!1,o()}}}function instance$8(e,t,n){var r,a,i,o,s,c=t.props,u=c,l=u.get,f=u.__,p=!0;return e.$set=function(e){"props"in e&&n(7,c=e.props)},e.$$.update=function(){var t;128&e.$$.dirty&&n(9,(a=(t=c).chart,i=t.theme,t),a,(n(10,i),n(7,c)));1024&e.$$.dirty&&n(2,o=l(i,"data.options.blocks.embed.data",{})),512&e.$$.dirty&&n(3,s=l(a,"metadata.publish.embed-codes.embed-method-responsive","\x3c!-- embed code will be here after publishing --\x3e"))},[p,r,o,s,f,function(e){e.preventDefault(),n(0,p=!p)},function(){r.focus(),r.select(),document.execCommand("copy")},c,function(e){binding_callbacks[e?"unshift":"push"]((function(){n(1,r=e)}))}]}var Embed=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),r=t.call(this),document_1$1.getElementById("svelte-1f8d99s-style")||add_css$2(),init(_assertThisInitialized(r),e,instance$8,create_fragment$8,safe_not_equal,{props:7}),r}return n}(SvelteComponent);function create_if_block_1$1(e){var t,n,r,a;return{c:function(){t=element("img"),this.h()},l:function(e){t=claim_element(e,"IMG",{height:!0,src:!0,alt:!0}),this.h()},h:function(){attr(t,"height",n=e[0].height),t.src!==(r=e[0].imgSrc)&&attr(t,"src",r),attr(t,"alt",a=e[2].title)},m:function(e,n){insert(e,t,n)},p:function(e,i){1&i&&n!==(n=e[0].height)&&attr(t,"height",n),1&i&&t.src!==(r=e[0].imgSrc)&&attr(t,"src",r),4&i&&a!==(a=e[2].title)&&attr(t,"alt",a)},d:function(e){e&&detach(t)}}}function create_if_block$2(e){var t,n=e[1](e[0].text)+"";return{c:function(){t=element("span"),this.h()},l:function(e){children(t=claim_element(e,"SPAN",{class:!0})).forEach(detach),this.h()},h:function(){attr(t,"class","logo-text")},m:function(e,r){insert(e,t,r),t.innerHTML=n},p:function(e,r){3&r&&n!==(n=e[1](e[0].text)+"")&&(t.innerHTML=n)},d:function(e){e&&detach(t)}}}function create_fragment$7(e){var t,n,r=e[0].imgSrc&&create_if_block_1$1(e),a=e[0].text&&create_if_block$2(e);return{c:function(){r&&r.c(),t=space(),a&&a.c(),n=empty()},l:function(e){r&&r.l(e),t=claim_space(e),a&&a.l(e),n=empty()},m:function(e,i){r&&r.m(e,i),insert(e,t,i),a&&a.m(e,i),insert(e,n,i)},p:function(e,i){var o=_slicedToArray(i,1)[0];e[0].imgSrc?r?r.p(e,o):((r=create_if_block_1$1(e)).c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),e[0].text?a?a.p(e,o):((a=create_if_block$2(e)).c(),a.m(n.parentNode,n)):a&&(a.d(1),a=null)},i:noop$1,o:noop$1,d:function(e){r&&r.d(e),e&&detach(t),a&&a.d(e),e&&detach(n)}}}function instance$7(e,t,n){var r=t.logo,a=t.purifyHtml,i=t.theme;return e.$set=function(e){"logo"in e&&n(0,r=e.logo),"purifyHtml"in e&&n(1,a=e.purifyHtml),"theme"in e&&n(2,i=e.theme)},[r,a,i]}var LogoInner=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=t.call(this)),e,instance$7,create_fragment$7,safe_not_equal,{logo:0,purifyHtml:1,theme:2}),r}return n}(SvelteComponent);function create_else_block(e){var t,n;return t=new LogoInner({props:{logo:e[0],purifyHtml:e[2],theme:e[1]}}),{c:function(){create_component(t.$$.fragment)},l:function(e){claim_component(t.$$.fragment,e)},m:function(e,r){mount_component(t,e,r),n=!0},p:function(e,n){var r={};1&n&&(r.logo=e[0]),2&n&&(r.theme=e[1]),t.$set(r)},i:function(e){n||(transition_in(t.$$.fragment,e),n=!0)},o:function(e){transition_out(t.$$.fragment,e),n=!1},d:function(e){destroy_component(t,e)}}}function create_if_block$1(e){var t,n,r,a,i;return n=new LogoInner({props:{logo:e[0],purifyHtml:e[2],theme:e[1]}}),{c:function(){t=element("a"),create_component(n.$$.fragment),this.h()},l:function(e){var r=children(t=claim_element(e,"A",{href:!0,title:!0,target:!0,rel:!0}));claim_component(n.$$.fragment,r),r.forEach(detach),this.h()},h:function(){attr(t,"href",r=e[0].url),attr(t,"title",a=e[0].linkTitle||e[0].url),attr(t,"target","_blank"),attr(t,"rel","noopener noreferrer")},m:function(e,r){insert(e,t,r),mount_component(n,t,null),i=!0},p:function(e,o){var s={};1&o&&(s.logo=e[0]),2&o&&(s.theme=e[1]),n.$set(s),(!i||1&o&&r!==(r=e[0].url))&&attr(t,"href",r),(!i||1&o&&a!==(a=e[0].linkTitle||e[0].url))&&attr(t,"title",a)},i:function(e){i||(transition_in(n.$$.fragment,e),i=!0)},o:function(e){transition_out(n.$$.fragment,e),i=!1},d:function(e){e&&detach(t),destroy_component(n)}}}function create_fragment$6(e){var t,n,r,a,i=[create_if_block$1,create_else_block],o=[];function s(e,t){return e[0].url?0:1}return t=s(e),n=o[t]=i[t](e),{c:function(){n.c(),r=empty()},l:function(e){n.l(e),r=empty()},m:function(e,n){o[t].m(e,n),insert(e,r,n),a=!0},p:function(e,a){var c=_slicedToArray(a,1)[0],u=t;(t=s(e))===u?o[t].p(e,c):(group_outros(),transition_out(o[u],1,1,(function(){o[u]=null})),check_outros(),(n=o[t])||(n=o[t]=i[t](e)).c(),transition_in(n,1),n.m(r.parentNode,r))},i:function(e){a||(transition_in(n),a=!0)},o:function(e){transition_out(n),a=!1},d:function(e){o[t].d(e),e&&detach(r)}}}function instance$6(e,t,n){var r,a,i,o,s=t.props,c=s,u=c.get,l=c.purifyHtml;return e.$set=function(e){"props"in e&&n(3,s=e.props)},e.$$.update=function(){var t;8&e.$$.dirty&&n(4,(a=(t=s).chart,i=t.theme,o=t.logoId,t),a,(n(1,i),n(3,s)),(n(5,o),n(3,s)));if(51&e.$$.dirty){var c=u(a,"metadata.publish.blocks.logo"),l=u(i,"data.options.blocks.logo.data.options",[]),f=o||c.id;n(0,r=l.find((function(e){return e.id===f}))),f&&r||n(0,r=l[0]||{})}},[r,i,l,s]}var Logo=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=t.call(this)),e,instance$6,create_fragment$6,safe_not_equal,{props:3}),r}return n}(SvelteComponent);function create_fragment$5(e){var t;return{c:function(){t=element("div"),this.h()},l:function(e){children(t=claim_element(e,"DIV",{class:!0,style:!0})).forEach(detach),this.h()},h:function(){attr(t,"class","export-rect"),set_style(t,"width",px(e[0])),set_style(t,"height",px(e[1])),set_style(t,"background",e[2])},m:function(e,n){insert(e,t,n)},p:function(e,n){var r=_slicedToArray(n,1)[0];1&r&&set_style(t,"width",px(e[0])),2&r&&set_style(t,"height",px(e[1])),4&r&&set_style(t,"background",e[2])},i:noop$1,o:noop$1,d:function(e){e&&detach(t)}}}function px(e){return"string"==typeof e?e:e+"px"}function instance$5(e,t,n){var r,a,i,o,s,c=t.props,u=c.get;return e.$set=function(e){"props"in e&&n(3,c=e.props)},e.$$.update=function(){8&e.$$.dirty&&n(4,r=c.theme),16&e.$$.dirty&&n(5,a=u(r,"data.options.blocks.rectangle.data",{})),32&e.$$.dirty&&n(0,i=u(a,"width",50)),32&e.$$.dirty&&n(1,o=u(a,"height",5)),32&e.$$.dirty&&n(2,s=u(a,"background","red"))},[i,o,s,c]}var Rectangle=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=t.call(this)),e,instance$5,create_fragment$5,safe_not_equal,{props:3}),r}return n}(SvelteComponent);function estimateTextWidth(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:14,n=t/14;return e.split("").reduce((function(e,t){return e+(CHAR_W[t]||CHAR_W.a)}),0)*n}var CHAR_W={a:9,A:10,b:9,B:10,c:8,C:10,d:9,D:11,e:9,E:9,f:5,F:8,g:9,G:11,h:9,H:11,i:4,I:4,j:4,J:4,k:8,K:9,l:4,L:8,m:14,M:12,n:9,N:10,o:9,O:11,p:9,P:8,q:9,Q:11,r:6,R:10,s:7,S:9,t:5,T:9,u:9,U:10,v:8,V:10,w:11,W:14,x:8,X:10,y:8,Y:9,z:7,Z:10,".":4,"!":4,"|":4,",":4,":":5,";":5,"-":5,"+":12," ":4};function add_css$1(){var e=element("style");e.id="svelte-111z7el-style",e.textContent="div.svelte-111z7el{position:fixed;opacity:0.182;font-weight:700;font-size:0;white-space:nowrap;left:-100px;top:0px;right:-100px;line-height:100vh;bottom:0;text-align:center;pointer-events:none;transform-origin:middle center}",append$1(document.head,e)}function create_fragment$4(e){var t,n,r,a,i=e[6](e[2])+"";return add_render_callback(e[8]),{c:function(){t=element("div"),n=element("span"),this.h()},l:function(e){var r=children(t=claim_element(e,"DIV",{class:!0,style:!0,"data-rotate":!0}));children(n=claim_element(r,"SPAN",{})).forEach(detach),r.forEach(detach),this.h()},h:function(){attr(t,"class","watermark noscript svelte-111z7el"),set_style(t,"transform","rotate("+e[3]+"rad)"),set_style(t,"font-size",e[5]),attr(t,"data-rotate",e[4])},m:function(o,s){insert(o,t,s),append$1(t,n),n.innerHTML=i,r||(a=listen(window,"resize",e[8]),r=!0)},p:function(e,r){var a=_slicedToArray(r,1)[0];4&a&&i!==(i=e[6](e[2])+"")&&(n.innerHTML=i),8&a&&set_style(t,"transform","rotate("+e[3]+"rad)"),32&a&&set_style(t,"font-size",e[5]),16&a&&attr(t,"data-rotate",e[4])},i:noop$1,o:noop$1,d:function(e){e&&detach(t),r=!1,a()}}}function instance$4(e,t,n){var r,a,i,o,s,c,u,l,f,p,h,d,m=t.props,g=m,v=g.get,y=g.purifyHtml;return e.$set=function(e){"props"in e&&n(7,m=e.props)},e.$$.update=function(){var t;128&e.$$.dirty&&n(9,(i=(t=m).chart,o=t.theme,t),i,(n(10,o),n(7,m)));1024&e.$$.dirty&&n(11,s=v(o,"data.options.watermark.monospace",!1)),1024&e.$$.dirty&&n(12,c=v(o,"data.options.watermark.custom-field")),5632&e.$$.dirty&&n(2,u=!!v(o,"data.options.watermark")&&(c?v(i,"metadata.custom.".concat(c),""):v(o,"data.options.watermark.text","CONFIDENTIAL"))),3&e.$$.dirty&&n(3,l=-Math.atan(a/r)),8&e.$$.dirty&&n(4,f=180*l/Math.PI),3&e.$$.dirty&&n(13,p=Math.sqrt(r*r+a*a)),2052&e.$$.dirty&&n(14,h=s?20*u.length:estimateTextWidth(u,20)),24576&e.$$.dirty&&n(5,d="".concat(Math.round(.75*p/h*20),"px"))},[r,a,u,l,f,d,y,m,function(){n(0,r=window.innerWidth),n(1,a=window.innerHeight)}]}var Watermark=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),r=t.call(this),document.getElementById("svelte-111z7el-style")||add_css$1(),init(_assertThisInitialized(r),e,instance$4,create_fragment$4,safe_not_equal,{props:7}),r}return n}(SvelteComponent);function create_fragment$3(e){var t;return{c:function(){t=element("hr"),this.h()},l:function(e){t=claim_element(e,"HR",{class:!0,style:!0}),this.h()},h:function(){attr(t,"class","dw-line"),set_style(t,"border","0"),set_style(t,"border-bottom",e[0]),set_style(t,"margin",e[1])},m:function(e,n){insert(e,t,n)},p:function(e,n){var r=_slicedToArray(n,1)[0];1&r&&set_style(t,"border-bottom",e[0]),2&r&&set_style(t,"margin",e[1])},i:noop$1,o:noop$1,d:function(e){e&&detach(t)}}}function instance$3(e,t,n){var r,a,i,o,s=t.props,c=s.get;return e.$set=function(e){"props"in e&&n(2,s=e.props)},e.$$.update=function(){4&e.$$.dirty&&n(3,r=s.theme),12&e.$$.dirty&&n(4,a=c(r,"data.options.blocks.".concat(s.id,".data"),{})),16&e.$$.dirty&&n(0,i=c(a,"border","1px solid #cccccc")),16&e.$$.dirty&&n(1,o=c(a,"margin","0px"))},[i,o,s]}var HorizontalRule=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=t.call(this)),e,instance$3,create_fragment$3,safe_not_equal,{props:2}),r}return n}(SvelteComponent);function add_css(){var e=element("style");e.id="svelte-eczzvz-style",e.textContent="svg.svelte-eczzvz{width:100%;overflow-x:hidden}",append$1(document.head,e)}function create_fragment$2(e){var t,n,r,a;return{c:function(){t=svg_element("svg"),n=svg_element("line"),this.h()},l:function(e){var r=children(t=claim_element(e,"svg",{style:!0,class:!0},1));children(n=claim_element(r,"line",{style:!0,x1:!0,y1:!0,x2:!0,y2:!0},1)).forEach(detach),r.forEach(detach),this.h()},h:function(){set_style(n,"stroke",e[3]),set_style(n,"stroke-width",e[4]),set_style(n,"stroke-dasharray",e[5]),set_style(n,"stroke-linecap",e[6]),attr(n,"x1","0"),attr(n,"y1",r=e[4]/2),attr(n,"x2",e[1]),attr(n,"y2",a=e[4]/2),set_style(t,"height",Math.max(e[4],1)+"px"),set_style(t,"margin",e[2]),attr(t,"class","svelte-eczzvz")},m:function(r,a){insert(r,t,a),append$1(t,n),e[8](t)},p:function(e,i){var o=_slicedToArray(i,1)[0];8&o&&set_style(n,"stroke",e[3]),16&o&&set_style(n,"stroke-width",e[4]),32&o&&set_style(n,"stroke-dasharray",e[5]),64&o&&set_style(n,"stroke-linecap",e[6]),16&o&&r!==(r=e[4]/2)&&attr(n,"y1",r),2&o&&attr(n,"x2",e[1]),16&o&&a!==(a=e[4]/2)&&attr(n,"y2",a),16&o&&set_style(t,"height",Math.max(e[4],1)+"px"),4&o&&set_style(t,"margin",e[2])},i:noop$1,o:noop$1,d:function(n){n&&detach(t),e[8](null)}}}function instance$2(e,t,n){var r,a,i,o,s,c,u,l,f=t.props,p=f.get,h=0;return onMount((function(){n(1,h=r.getBoundingClientRect().width)})),"undefined"!=typeof window&&window.addEventListener("resize",(function(){n(1,h=r.getBoundingClientRect().width)})),e.$set=function(e){"props"in e&&n(7,f=e.props)},e.$$.update=function(){128&e.$$.dirty&&n(9,a=f.theme),640&e.$$.dirty&&n(10,i=p(a,"data.options.blocks.".concat(f.id,".data"),{})),1024&e.$$.dirty&&n(2,o=p(i,"margin","0px")),1024&e.$$.dirty&&n(3,s=p(i,"color","#000000")),1024&e.$$.dirty&&n(4,c=p(i,"width",1)),1024&e.$$.dirty&&n(5,u=p(i,"strokeDasharray","none")),1024&e.$$.dirty&&n(6,l=p(i,"strokeLinecap","butt"))},[r,h,o,s,c,u,l,f,function(e){binding_callbacks[e?"unshift":"push"]((function(){n(0,r=e)}))}]}var SvgRule=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),r=t.call(this),document.getElementById("svelte-eczzvz-style")||add_css(),init(_assertThisInitialized(r),e,instance$2,create_fragment$2,safe_not_equal,{props:7}),r}return n}(SvelteComponent),VERSION="1.13.1",root="object"==typeof self&&self.self===self&&self||"object"==typeof global&&global.global===global&&global||Function("return this")()||{},ArrayProto=Array.prototype,ObjProto=Object.prototype,SymbolProto="undefined"!=typeof Symbol?Symbol.prototype:null,push=ArrayProto.push,slice$1=ArrayProto.slice,toString=ObjProto.toString,hasOwnProperty=ObjProto.hasOwnProperty,supportsArrayBuffer="undefined"!=typeof ArrayBuffer,supportsDataView="undefined"!=typeof DataView,nativeIsArray=Array.isArray,nativeKeys=Object.keys,nativeCreate=Object.create,nativeIsView=supportsArrayBuffer&&ArrayBuffer.isView,_isNaN=isNaN,_isFinite=isFinite,hasEnumBug=!{toString:null}.propertyIsEnumerable("toString"),nonEnumerableProps=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],MAX_ARRAY_INDEX=Math.pow(2,53)-1;function restArguments(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),a=0;a=0&&n<=MAX_ARRAY_INDEX}}function shallowProperty(e){return function(t){return null==t?void 0:t[e]}}var getByteLength=shallowProperty("byteLength"),isBufferLike=createSizePropertyCheck(getByteLength),typedArrayPattern=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;function isTypedArray(e){return nativeIsView?nativeIsView(e)&&!isDataView$1(e):isBufferLike(e)&&typedArrayPattern.test(toString.call(e))}var isTypedArray$1=supportsArrayBuffer?isTypedArray:constant(!1),getLength=shallowProperty("length");function emulatedSet(e){for(var t={},n=e.length,r=0;r":">",'"':""","'":"'","`":"`"},escape=createEscaper(escapeMap),unescapeMap=invert(escapeMap),unescape=createEscaper(unescapeMap),templateSettings=_$1.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},noMatch=/(.)^/,escapes={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},escapeRegExp=/\\|'|\r|\n|\u2028|\u2029/g;function escapeChar(e){return"\\"+escapes[e]}var bareIdentifier=/^\s*(\w|\$)+\s*$/;function template(e,t,n){!t&&n&&(t=n),t=defaults({},t,_$1.templateSettings);var r=RegExp([(t.escape||noMatch).source,(t.interpolate||noMatch).source,(t.evaluate||noMatch).source].join("|")+"|$","g"),a=0,i="__p+='";e.replace(r,(function(t,n,r,o,s){return i+=e.slice(a,s).replace(escapeRegExp,escapeChar),a=s+t.length,n?i+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?i+="'+\n((__t=("+r+"))==null?'':__t)+\n'":o&&(i+="';\n"+o+"\n__p+='"),t})),i+="';\n";var o,s=t.variable;if(s){if(!bareIdentifier.test(s))throw new Error("variable is not a bare identifier: "+s)}else i="with(obj||{}){\n"+i+"}\n",s="obj";i="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+i+"return __p;\n";try{o=new Function(s,"_",i)}catch(e){throw e.source=i,e}var c=function(e){return o.call(this,e,_$1)};return c.source="function("+s+"){\n"+i+"}",c}function result(e,t,n){var r=(t=toPath(t)).length;if(!r)return isFunction$1(n)?n.call(e):n;for(var a=0;a1)flatten$1(s,t-1,n,r),a=r.length;else for(var c=0,u=s.length;ct?(r&&(clearTimeout(r),r=null),s=u,o=e.apply(a,i),r||(a=i=null)):r||!1===n.trailing||(r=setTimeout(c,l)),o};return u.cancel=function(){clearTimeout(r),s=0,r=a=i=null},u}function debounce(e,t,n){var r,a,i,o,s,c=function(){var u=now()-a;t>u?r=setTimeout(c,t-u):(r=null,n||(o=e.apply(s,i)),r||(i=s=null))},u=restArguments((function(u){return s=this,i=u,a=now(),r||(r=setTimeout(c,t),n&&(o=e.apply(s,i))),o}));return u.cancel=function(){clearTimeout(r),r=i=s=null},u}function wrap(e,t){return partial(t,e)}function negate(e){return function(){return!e.apply(this,arguments)}}function compose(){var e=arguments,t=e.length-1;return function(){for(var n=t,r=e[t].apply(this,arguments);n--;)r=e[n].call(this,r);return r}}function after(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function before(e,t){var n;return function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=null),n}}var once=partial(before,2);function findKey(e,t,n){t=cb(t,n);for(var r,a=keys(e),i=0,o=a.length;i0?0:a-1;i>=0&&i0?o=i>=0?i:Math.max(i+s,o):s=i>=0?Math.min(i+1,s):i+s+1;else if(n&&i&&s)return r[i=n(r,a)]===a?i:-1;if(a!=a)return(i=t(slice$1.call(r,o,s),isNaN$1))>=0?i+o:-1;for(i=e>0?o:s-1;i>=0&&i0?0:o-1;for(a||(r=t[i?i[s]:s],s+=e);s>=0&&s=3;return t(e,optimizeCb(n,a,4),r,i)}}var reduce=createReduce(1),reduceRight=createReduce(-1);function filter(e,t,n){var r=[];return t=cb(t,n),each(e,(function(e,n,a){t(e,n,a)&&r.push(e)})),r}function reject(e,t,n){return filter(e,negate(cb(t)),n)}function every(e,t,n){t=cb(t,n);for(var r=!isArrayLike(e)&&keys(e),a=(r||e).length,i=0;i=0}var invoke=restArguments((function(e,t,n){var r,a;return isFunction$1(t)?a=t:(t=toPath(t),r=t.slice(0,-1),t=t[t.length-1]),map(e,(function(e){var i=a;if(!i){if(r&&r.length&&(e=deepGet(e,r)),null==e)return;i=e[t]}return null==i?i:i.apply(e,n)}))}));function pluck(e,t){return map(e,property(t))}function where(e,t){return filter(e,matcher(t))}function max$1(e,t,n){var r,a,i=-1/0,o=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,c=(e=isArrayLike(e)?e:values(e)).length;si&&(i=r);else t=cb(t,n),each(e,(function(e,n,r){((a=t(e,n,r))>o||a===-1/0&&i===-1/0)&&(i=e,o=a)}));return i}function min$1(e,t,n){var r,a,i=1/0,o=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e)for(var s=0,c=(e=isArrayLike(e)?e:values(e)).length;sr||void 0===n)return 1;if(n1&&(r=optimizeCb(r,t[1])),t=allKeys(e)):(r=keyInObj,t=flatten$1(t,!1,!1),e=Object(e));for(var a=0,i=t.length;a1&&(n=t[1])):(t=map(flatten$1(t,!1,!1),String),r=function(e,n){return!contains$1(t,n)}),pick(e,r,n)}));function initial(e,t,n){return slice$1.call(e,0,Math.max(0,e.length-(null==t||n?1:t)))}function first(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[0]:initial(e,e.length-t)}function rest(e,t,n){return slice$1.call(e,null==t||n?1:t)}function last(e,t,n){return null==e||e.length<1?null==t||n?void 0:[]:null==t||n?e[e.length-1]:rest(e,Math.max(0,e.length-t))}function compact(e){return filter(e,Boolean)}function flatten(e,t){return flatten$1(e,t,!1)}var difference=restArguments((function(e,t){return t=flatten$1(t,!0,!0),filter(e,(function(e){return!contains$1(t,e)}))})),without=restArguments((function(e,t){return difference(e,t)}));function uniq(e,t,n,r){isBoolean(t)||(r=n,n=t,t=!1),null!=n&&(n=cb(n,r));for(var a=[],i=[],o=0,s=getLength(e);o=this.expression.length?this.newToken(TEOF,"EOF"):this.isWhitespace()||this.isComment()?this.next():this.isRadixInteger()||this.isNumber()||this.isOperator()||this.isString()||this.isParen()||this.isBracket()||this.isComma()||this.isSemicolon()||this.isNamedOp()||this.isConst()||this.isName()?this.current:void this.parseError('Unknown character "'+this.expression.charAt(this.pos)+'"')},TokenStream.prototype.isString=function(){var e=!1,t=this.pos,n=this.expression.charAt(t);if("'"===n||'"'===n)for(var r=this.expression.indexOf(n,t+1);r>=0&&this.pos"9")))break}if(t>e){var r=this.expression.substring(e,t);if(r in this.consts)return this.current=this.newToken(TNUMBER,this.consts[r]),this.pos+=r.length,!0}return!1},TokenStream.prototype.isNamedOp=function(){for(var e=this.pos,t=e;t"9")))break}if(t>e){var r=this.expression.substring(e,t);if(this.isOperatorEnabled(r)&&(r in this.binaryOps||r in this.unaryOps||r in this.ternaryOps))return this.current=this.newToken(TOP,r),this.pos+=r.length,!0}return!1},TokenStream.prototype.isName=function(){for(var e=this.pos,t=e,n=!1;t"9"))break}else n=!0}if(n){var a=this.expression.substring(e,t);return this.current=this.newToken(TNAME,a),this.pos+=a.length,!0}return!1},TokenStream.prototype.isWhitespace=function(){for(var e=!1,t=this.expression.charAt(this.pos);!(" "!==t&&"\t"!==t&&"\n"!==t&&"\r"!==t||(e=!0,this.pos++,this.pos>=this.expression.length));)t=this.expression.charAt(this.pos);return e};var codePointPattern=/^[0-9a-f]{4}$/i;TokenStream.prototype.unescape=function(e){var t=e.indexOf("\\");if(t<0)return e;for(var n=e.substring(0,t);t>=0;){var r=e.charAt(++t);switch(r){case"'":n+="'";break;case'"':n+='"';break;case"\\":n+="\\";break;case"/":n+="/";break;case"b":n+="\b";break;case"f":n+="\f";break;case"n":n+="\n";break;case"r":n+="\r";break;case"t":n+="\t";break;case"u":var a=e.substring(t+1,t+5);codePointPattern.test(a)||this.parseError("Illegal escape sequence: \\u"+a),n+=String.fromCharCode(parseInt(a,16)),t+=4;break;default:throw this.parseError('Illegal escape sequence: "\\'+r+'"')}++t;var i=e.indexOf("\\",t);n+=e.substring(t,i<0?e.length:i),t=i}return n},TokenStream.prototype.isComment=function(){return"/"===this.expression.charAt(this.pos)&&"*"===this.expression.charAt(this.pos+1)&&(this.pos=this.expression.indexOf("*/",this.pos)+2,1===this.pos&&(this.pos=this.expression.length),!0)},TokenStream.prototype.isRadixInteger=function(){var e,t,n=this.pos;if(n>=this.expression.length-2||"0"!==this.expression.charAt(n))return!1;if(++n,"x"===this.expression.charAt(n))e=16,t=/^[0-9a-f]$/i,++n;else{if("b"!==this.expression.charAt(n))return!1;e=2,t=/^[01]$/i,++n}for(var r=!1,a=n;n="0"&&e<="9"||!i&&"."===e);)"."===e?i=!0:o=!0,n++,t=o;if(t&&(a=n),"e"===e||"E"===e){n++;for(var s=!0,c=!1;n="0"&&e<="9"))break;c=!0,s=!1}else s=!1;n++}c||(n=a)}return t?(this.current=this.newToken(TNUMBER,parseFloat(this.expression.substring(r,n))),this.pos=n):this.pos=a,t},TokenStream.prototype.isOperator=function(){var e=this.pos,t=this.expression.charAt(this.pos);if("+"===t||"-"===t||"*"===t||"/"===t||"%"===t||"^"===t||"?"===t||":"===t||"."===t)this.current=this.newToken(TOP,t);else if("∙"===t||"•"===t)this.current=this.newToken(TOP,"*");else if(">"===t)"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(TOP,">="),this.pos++):this.current=this.newToken(TOP,">");else if("<"===t)"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(TOP,"<="),this.pos++):this.current=this.newToken(TOP,"<");else if("|"===t){if("|"!==this.expression.charAt(this.pos+1))return!1;this.current=this.newToken(TOP,"||"),this.pos++}else if("="===t)"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(TOP,"=="),this.pos++):this.current=this.newToken(TOP,t);else{if("!"!==t)return!1;"="===this.expression.charAt(this.pos+1)?(this.current=this.newToken(TOP,"!="),this.pos++):this.current=this.newToken(TOP,t)}return this.pos++,!!this.isOperatorEnabled(this.current.value)||(this.pos=e,!1)},TokenStream.prototype.isOperatorEnabled=function(e){return this.parser.isOperatorEnabled(e)},TokenStream.prototype.getCoordinates=function(){var e,t=0,n=-1;do{t++,e=this.pos-n,n=this.expression.indexOf("\n",n+1)}while(n>=0&&n=",">","in"];ParserState.prototype.parseComparison=function(e){for(this.parseAddSub(e);this.accept(TOP,COMPARISON_OPERATORS);){var t=this.current;this.parseAddSub(e),e.push(binaryInstruction(t.value))}};var ADD_SUB_OPERATORS=["+","-","||"];ParserState.prototype.parseAddSub=function(e){for(this.parseTerm(e);this.accept(TOP,ADD_SUB_OPERATORS);){var t=this.current;this.parseTerm(e),e.push(binaryInstruction(t.value))}};var TERM_OPERATORS=["*","/","%"];function add(e,t){return Number(e)+Number(t)}function sub(e,t){return e-t}function mul(e,t){return e*t}function div(e,t){return e/t}function mod(e,t){return e%t}function equal(e,t){return e===t}function notEqual(e,t){return e!==t}function greaterThan(e,t){return e>t}function lessThan(e,t){return e=t}function lessThanEqual(e,t){return e<=t}function andOperator(e,t){return Boolean(e&&t)}function orOperator(e,t){return Boolean(e||t)}function log10(e){return Math.log(e)*Math.LOG10E}function neg(e){return-e}function not(e){return!e}function trunc(e){return e<0?Math.ceil(e):Math.floor(e)}function random(e){return Math.random()*(e||1)}function stringOrArrayLength(e){return Array.isArray(e)?e.length:String(e).length}function condition(e,t,n){return e?t:n}function roundTo(e,t){return void 0===t||0==+t?Math.round(e):(e=+e,t=-+t,isNaN(e)||"number"!=typeof t||t%1!=0?NaN:(e=e.toString().split("e"),+((e=(e=Math.round(+(e[0]+"e"+(e[1]?+e[1]-t:-t)))).toString().split("e"))[0]+"e"+(e[1]?+e[1]+t:t))))}function arrayIndex(e,t){return e[0|t]}function max(e){return 1===arguments.length&&Array.isArray(e)?Math.max.apply(Math,e):Math.max.apply(Math,arguments)}function min(e){return 1===arguments.length&&Array.isArray(e)?Math.min.apply(Math,e):Math.min.apply(Math,arguments)}function arrayMap(e,t){if("function"!=typeof e)throw new Error("First argument to map is not a function");if(!Array.isArray(t))throw new Error("Second argument to map is not an array");return t.map((function(t,n){return e(t,n)}))}function arrayFold(e,t,n){if("function"!=typeof e)throw new Error("First argument to fold is not a function");if(!Array.isArray(n))throw new Error("Second argument to fold is not an array");return n.reduce((function(t,n,r){return e(t,n,r)}),t)}function arrayFilter(e,t){if("function"!=typeof e)throw new Error("First argument to filter is not a function");if(!Array.isArray(t))throw new Error("Second argument to filter is not an array");return t.filter((function(t,n){return e(t,n)}))}function sign(e){return(e>0)-(e<0)||+e}function log1p(e){return Math.log(1+e)}function log2(e){return Math.log(e)/Math.LN2}function sum(e){if(!Array.isArray(e))throw new Error("Sum argument is not an array");return e.reduce((function(e,t){return e+Number(t)}),0)}function evaluate(e,t,n){var r,a,i,o,s,c,u=[];if(isExpressionEvaluator(e))return resolveExpression(e,n);for(var l=e.length,f=0;f0;)s.unshift(resolveExpression(u.pop(),n));if(!(o=u.pop()).apply||!o.call)throw new Error(o+" is not a function");u.push(o.apply(void 0,s))}else if(h===IFUNDEF)u.push(function(){for(var e=u.pop(),r=[],a=p.value;a-- >0;)r.unshift(u.pop());var i=u.pop(),o=function(){for(var a=Object.assign({},n),i=0,o=r.length;i0;)s.unshift(u.pop());u.push(s)}}if(u.length>1)throw new Error("invalid Expression (parity)");return 0===u[0]?0:resolveExpression(u[0],n)}function createExpressionEvaluator(e,t,n){return isExpressionEvaluator(e)?e:{type:IEXPREVAL,value:function(n){return evaluate(e.value,t,n)}}}function isExpressionEvaluator(e){return e&&e.type===IEXPREVAL}function resolveExpression(e,t){return isExpressionEvaluator(e)?e.value(t):e}function Expression(e,t){this.tokens=e,this.parser=t,this.unaryOps=t.unaryOps,this.binaryOps=t.binaryOps,this.ternaryOps=t.ternaryOps,this.functions=t.functions}function trim$1(e){return e.trim()}function Parser(e){this.options=e||{},this.unaryOps={SIN:Math.sin,COS:Math.cos,TAN:Math.tan,ASIN:Math.asin,ACOS:Math.acos,ATAN:Math.atan,SQRT:Math.sqrt,LOG:Math.log,LOG2:Math.log2||log2,LN:Math.log,LOG10:Math.log10||log10,LG:Math.log10||log10,LOG1P:Math.log1p||log1p,ABS:Math.abs,CEIL:Math.ceil,FLOOR:Math.floor,ISNULL:function(e){return null===e},TRUNC:Math.trunc||trunc,"-":neg,"+":Number,EXP:Math.exp,NOT:not,LENGTH:stringOrArrayLength,"!":not,SIGN:Math.sign||sign,TEXT:function(e){return t(e)?e.toISOString():String(e)},NUMBER:Number},this.binaryOps={"+":add,"-":sub,"*":mul,"/":div,"%":mod,"^":Math.pow,"==":equal,"!=":notEqual,">":greaterThan,"<":lessThan,">=":greaterThanEqual,"<=":lessThanEqual,and:andOperator,or:orOperator,in:function(e,t){return Array.isArray(t)?t.includes(e):String(t).includes(e)},"[":arrayIndex},this.ternaryOps={"?":condition};var t=function(e){return e instanceof Date&&!isNaN(e)},n=function(e){if(t(e))return e;try{var n=new Date(e);return t(n)?n:null}catch(e){return null}};function r(e){return(1===arguments.length&&Array.isArray(e)?e:Array.from(arguments)).slice(0).filter((function(e){return!isNaN(e)&&Number.isFinite(e)}))}var a=/\w*/g,i=/\w\S*/g,o=/[\\^$*+?.()|[\]{}]/g;try{a=new RegExp("\\p{L}*","ug"),i=new RegExp("[\\p{L}\\p{N}]\\S*","ug")}catch(e){}this.functions={IF:condition,RANDOM:random,MIN:function(){var e=r.apply(this,arguments);return min(e)},MAX:function(){return max(r.apply(this,arguments))},SUM:function(){return sum(r.apply(this,arguments))},MEAN:function(){var e=r.apply(this,arguments);return sum(e)/e.length},MEDIAN:function(){var e=r.apply(this,arguments).sort((function(e,t){return e-t})),t=Math.floor(e.length/2);return e.length%2==1?e[t]:.5*(e[t-1]+e[t])},POW:Math.pow,ATAN2:Math.atan2,ROUND:roundTo,CONCAT:function(){return Array.from(arguments).join("")},TRIM:trim$1,SUBSTR:function(e,t,n){return e.substr(t,n)},REPLACE:function(e,t,n){return e.replace(new RegExp(String(t).replace(o,"\\$&"),"g"),n)},REPLACE_REGEX:function(e,t,n){return e.replace(new RegExp(t,"g"),n)},SPLIT:function(e,t){return String(e).split(t)},LOWER:function(e){return String(e).toLowerCase()},UPPER:function(e){return String(e).toUpperCase()},PROPER:function(e){return String(e).replace(a,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}))},TITLE:function(e){return String(e).replace(i,(function(e){return e.charAt(0).toUpperCase()+e.substr(1).toLowerCase()}))},SORT:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!Array.isArray(e))throw new Error("First argument to SORT is not an array");return e.slice(0).sort((function(e,r){return((e="string"==typeof n?e[n]:"function"==typeof n?n(e):e)>(r="string"==typeof n?r[n]:"function"==typeof n?n(r):r)?1:e2&&void 0!==arguments[2]?arguments[2]:null;if(!Array.isArray(e))throw new Error("First argument to JOIN is not an array");return n?[e.slice(0,e.length-1).join(t),e[e.length-1]].join(n):e.join(t)},MAP:arrayMap,FOLD:arrayFold,FILTER:arrayFilter,PLUCK:function(e,t){if(!Array.isArray(e))throw new Error("First argument to PLUCK is not an array");return e.map((function(e){return Object.prototype.hasOwnProperty.call(e,t)?e[t]:null}))},INDEXOF:function(e,t){return Array.isArray(e)||(e=String(e)),e.indexOf(t)},FIND:function(e,t){if(!Array.isArray(e))throw new Error("First argument to FIND is not an array");if("function"!=typeof t)throw new Error("Second argument to FIND is not a function");for(var n=e.length,r=0;r1&&(arguments[1]=arguments[1]-1),_construct(Date,Array.prototype.slice.call(arguments))},YEAR:function(e){return(e=n(e))?e.getFullYear():null},MONTH:function(e){return(e=n(e))?e.getMonth()+1:null},DAY:function(e){return(e=n(e))?e.getDate():null},WEEKDAY:function(e){return(e=n(e))?e.getDay():null},HOURS:function(e){return(e=n(e))?e.getHours():null},MINUTES:function(e){return(e=n(e))?e.getMinutes():null},SECONDS:function(e){return(e=n(e))?e.getSeconds():null},DATEDIFF:function(e,t){return e=n(e),t=n(t),e&&t?(t.getTime()-e.getTime())/864e5:null},TIMEDIFF:function(e,t){return e=n(e),t=n(t),e&&t?(t.getTime()-e.getTime())/1e3:null}},this.unaryOps.LOWER=this.functions.LOWER,this.unaryOps.UPPER=this.functions.UPPER,this.unaryOps.PROPER=this.functions.PROPER,this.unaryOps.TITLE=this.functions.TITLE,this.unaryOps.TRIM=this.functions.TRIM,this.unaryOps.YEAR=this.functions.YEAR,this.unaryOps.MONTH=this.functions.MONTH,this.unaryOps.DAY=this.functions.DAY,this.unaryOps.WEEKDAY=this.functions.WEEKDAY,this.unaryOps.HOURS=this.functions.HOURS,this.unaryOps.MINUTES=this.functions.MINUTES,this.unaryOps.SECONDS=this.functions.SECONDS,this.consts={E:Math.E,PI:Math.PI,TRUE:!0,FALSE:!1,NA:Number.NaN,NULL:Number.NaN}}ParserState.prototype.parseTerm=function(e){for(this.parseFactor(e);this.accept(TOP,TERM_OPERATORS);){var t=this.current;this.parseFactor(e),e.push(binaryInstruction(t.value))}},ParserState.prototype.parseFactor=function(e){var t=this.tokens.unaryOps;if(this.save(),this.accept(TOP,(function(e){return e.value in t}))){if("-"!==this.current.value&&"+"!==this.current.value){if(this.nextToken.type===TPAREN&&"("===this.nextToken.value)return this.restore(),void this.parseExponential(e);if(this.nextToken.type===TSEMICOLON||this.nextToken.type===TCOMMA||this.nextToken.type===TEOF||this.nextToken.type===TPAREN&&")"===this.nextToken.value)return this.restore(),void this.parseAtom(e)}var n=this.current;this.parseFactor(e),e.push(unaryInstruction(n.value))}else this.parseExponential(e)},ParserState.prototype.parseExponential=function(e){for(this.parsePostfixExpression(e);this.accept(TOP,"^");)this.parseFactor(e),e.push(binaryInstruction("^"))},ParserState.prototype.parsePostfixExpression=function(e){for(this.parseFunctionCall(e);this.accept(TOP,"!");)e.push(unaryInstruction("!"))},ParserState.prototype.parseFunctionCall=function(e){var t=this.tokens.unaryOps;if(this.accept(TOP,(function(e){return e.value in t}))){var n=this.current;this.parseAtom(e),e.push(unaryInstruction(n.value))}else for(this.parseMemberExpression(e);this.accept(TPAREN,"(");)if(this.accept(TPAREN,")"))e.push(new Instruction(IFUNCALL,0));else{var r=this.parseArgumentList(e);e.push(new Instruction(IFUNCALL,r))}},ParserState.prototype.parseArgumentList=function(e){for(var t=0;!this.accept(TPAREN,")");)for(this.parseExpression(e),++t;this.accept(TCOMMA);)this.parseExpression(e),++t;return t},ParserState.prototype.parseMemberExpression=function(e){for(this.parseAtom(e);this.accept(TOP,".")||this.accept(TBRACKET,"[");){var t=this.current;if("."===t.value){if(!this.allowMemberAccess)throw new Error('unexpected ".", member access is not permitted');this.expect(TNAME),e.push(new Instruction(IMEMBER,this.current.value))}else{if("["!==t.value)throw new Error("unexpected symbol: "+t.value);if(!this.tokens.isOperatorEnabled("["))throw new Error('unexpected "[]", arrays are disabled');this.parseExpression(e),this.expect(TBRACKET,"]"),e.push(binaryInstruction("["))}}},Expression.prototype.evaluate=function(e){return e=e||{},evaluate(this.tokens,this,e)},Expression.prototype.variables=function(){return(this.tokens||[]).filter((function(e){return"IVAR"===e.type})).map((function(e){return e.value}))},Parser.prototype.parse=function(e){var t=[],n=new ParserState(this,new TokenStream(this,e),{allowMemberAccess:!0});return n.parseExpression(t),n.expect(TEOF,"EOF"),new Expression(t,this)},Parser.prototype.evaluate=function(e,t){return this.parse(e).evaluate(t)};var sharedParser=new Parser;Parser.parse=function(e){return sharedParser.parse(e)},Parser.evaluate=function(e,t){return sharedParser.parse(e).evaluate(t)},Parser.keywords=["ABS","ACOS","ACOSH","and","ASIN","ASINH","ATAN","ATAN2","ATANH","CBRT","CEIL","CONCAT","COS","COSH","DATEDIFF","DAY","E","EVERY","EXP","EXPM1","FIND","FLOOR","HOURS","IF","in","INDEXOF","ISNULL","JOIN","LENGTH","LN","LOG","LOG10","LOG1P","LOG2","LOWER","MAP","MAX","MEAN","MEDIAN","MIN","MINUTES","MONTH","NOT","NOT","or","PI","PLUCK","POW","PROPER","RANDOM","RANGE","REPLACE","REPLACE_REGEX","ROUND","SECONDS","SIGN","SIN","SINH","SLICE","SOME","SORT","SPLIT","SQRT","SUBSTR","SUM","TAN","TANH","TIMEDIFF","TITLE","TRIM","TRUNC","UPPER","WEEKDAY","YEAR"];var optionNameMap={"+":"add","-":"subtract","*":"multiply","/":"divide","%":"remainder","^":"power","!":"factorial","<":"comparison",">":"comparison","<=":"comparison",">=":"comparison","==":"comparison","!=":"comparison","||":"concatenate",AND:"logical",OR:"logical",NOT:"logical",IN:"logical","?":"conditional",":":"conditional","=":"assignment","[":"array","()=":"fndef"};function getOptionName(e){return Object.prototype.hasOwnProperty.call(optionNameMap,e)?optionNameMap[e]:e}function width(e){var t=parseFloat(getComputedStyle(e,null).width.replace("px",""));return isNaN(t)?0:t}function domReady(e){/complete|interactive|loaded/.test(document.readyState)?e():window.addEventListener("DOMContentLoaded",(function(){e()}))}function postEvent(e){return function(t,n){if(window.parent&&window.parent.postMessage){var r={source:"datawrapper",chartId:e,type:t,data:n};window.parent.postMessage(r,"*")}}}Parser.prototype.isOperatorEnabled=function(e){var t=getOptionName(e),n=this.options.operators||{};return!(t in n)||!!n[t]};var fontfaceobserver_standalone={exports:{}};!function(e){!function(){function t(e,t){document.addEventListener?e.addEventListener("scroll",t,!1):e.attachEvent("scroll",t)}function n(e){this.a=document.createElement("div"),this.a.setAttribute("aria-hidden","true"),this.a.appendChild(document.createTextNode(e)),this.b=document.createElement("span"),this.c=document.createElement("span"),this.h=document.createElement("span"),this.f=document.createElement("span"),this.g=-1,this.b.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.c.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.f.style.cssText="max-width:none;display:inline-block;position:absolute;height:100%;width:100%;overflow:scroll;font-size:16px;",this.h.style.cssText="display:inline-block;width:200%;height:200%;font-size:16px;max-width:none;",this.b.appendChild(this.h),this.c.appendChild(this.f),this.a.appendChild(this.b),this.a.appendChild(this.c)}function r(e,t){e.a.style.cssText="max-width:none;min-width:20px;min-height:20px;display:inline-block;overflow:hidden;position:absolute;width:auto;margin:0;padding:0;top:-999px;white-space:nowrap;font-synthesis:none;font:"+t+";"}function a(e){var t=e.a.offsetWidth,n=t+100;return e.f.style.width=n+"px",e.c.scrollLeft=n,e.b.scrollLeft=e.b.scrollWidth+100,e.g!==t&&(e.g=t,!0)}function i(e,n){function r(){var e=i;a(e)&&e.a.parentNode&&n(e.g)}var i=e;t(e.b,r),t(e.c,r),a(e)}function o(e,t){var n=t||{};this.family=e,this.style=n.style||"normal",this.weight=n.weight||"normal",this.stretch=n.stretch||"normal"}var s=null,c=null,u=null,l=null;function f(){return null===l&&(l=!!document.fonts),l}function p(){if(null===u){var e=document.createElement("div");try{e.style.font="condensed 100px sans-serif"}catch(e){}u=""!==e.style.font}return u}function h(e,t){return[e.style,e.weight,p()?e.stretch:"","100px",t].join(" ")}o.prototype.load=function(e,t){var a=this,o=e||"BESbswy",u=0,l=t||3e3,p=(new Date).getTime();return new Promise((function(e,t){if(f()&&!function(){if(null===c)if(f()&&/Apple/.test(window.navigator.vendor)){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))(?:\.([0-9]+))/.exec(window.navigator.userAgent);c=!!e&&603>parseInt(e[1],10)}else c=!1;return c}()){var d=new Promise((function(e,t){!function n(){(new Date).getTime()-p>=l?t(Error(l+"ms timeout exceeded")):document.fonts.load(h(a,'"'+a.family+'"'),o).then((function(t){1<=t.length?e():setTimeout(n,25)}),t)}()})),m=new Promise((function(e,t){u=setTimeout((function(){t(Error(l+"ms timeout exceeded"))}),l)}));Promise.race([m,d]).then((function(){clearTimeout(u),e(a)}),t)}else!function(e){document.body?e():document.addEventListener?document.addEventListener("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t),e()})):document.attachEvent("onreadystatechange",(function t(){"interactive"!=document.readyState&&"complete"!=document.readyState||(document.detachEvent("onreadystatechange",t),e())}))}((function(){function c(){var t;(t=-1!=g&&-1!=v||-1!=g&&-1!=y||-1!=v&&-1!=y)&&((t=g!=v&&g!=y&&v!=y)||(null===s&&(t=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent),s=!!t&&(536>parseInt(t[1],10)||536===parseInt(t[1],10)&&11>=parseInt(t[2],10))),t=s&&(g==b&&v==b&&y==b||g==_&&v==_&&y==_||g==$&&v==$&&y==$)),t=!t),t&&(k.parentNode&&k.parentNode.removeChild(k),clearTimeout(u),e(a))}var f=new n(o),d=new n(o),m=new n(o),g=-1,v=-1,y=-1,b=-1,_=-1,$=-1,k=document.createElement("div");k.dir="ltr",r(f,h(a,"sans-serif")),r(d,h(a,"serif")),r(m,h(a,"monospace")),k.appendChild(f.a),k.appendChild(d.a),k.appendChild(m.a),document.body.appendChild(k),b=f.a.offsetWidth,_=d.a.offsetWidth,$=m.a.offsetWidth,function e(){if((new Date).getTime()-p>=l)k.parentNode&&k.parentNode.removeChild(k),t(Error(l+"ms timeout exceeded"));else{var n=document.hidden;!0!==n&&void 0!==n||(g=f.a.offsetWidth,v=d.a.offsetWidth,y=m.a.offsetWidth,c()),u=setTimeout(e,50)}}(),i(f,(function(e){g=e,c()})),r(f,h(a,'"'+a.family+'",sans-serif')),i(d,(function(e){v=e,c()})),r(d,h(a,'"'+a.family+'",serif')),i(m,(function(e){y=e,c()})),r(m,h(a,'"'+a.family+'",monospace'))}))}))},e.exports=o}()}(fontfaceobserver_standalone);var FontFaceObserver=fontfaceobserver_standalone.exports;function observeFonts(e,t){var n=new Set(Array.isArray(e)?[]:Object.keys(e).filter((function(t){return"font"===e[t].type})));Object.keys(t.fontFamilies||{}).forEach((function(e){t.fontFamilies[e].forEach((function(t){n.has(t.name)&&(n.delete(t.name),n.add({family:e,props:{weight:t.weight||400,style:t.style||"normal"}}))}))}));var r=[];return n.forEach((function(e){var t="string"==typeof e?new FontFaceObserver(e):new FontFaceObserver(e.family,e.props);r.push(t.load(null,5e3))})),Promise.all(r)}var emotionCssCreateInstance_cjs={exports:{}},emotionCssCreateInstance_cjs_prod={};function sheetForTag(e){if(e.sheet)return e.sheet;for(var t=0;t0?charat(characters,--position):0,column--,10===character&&(column=1,line--),character}function next(){return character=position2||token(character)>3?"":" "}function escaping(e,t){for(;--t&&next()&&!(character<48||character>102||character>57&&character<65||character>70&&character<97););return slice(e,caret()+(t<6&&32==peek()&&32==next()))}function delimiter(e){for(;next();)switch(character){case e:return position;case 34:case 39:return delimiter(34===e||39===e?e:character);case 40:41===e&&delimiter(e);break;case 92:next()}return position}function commenter(e,t){for(;next()&&e+character!==57&&(e+character!==84||47!==peek()););return"/*"+slice(t,position-1)+"*"+from(47===e?e:next())}function identifier(e){for(;!token(peek());)next();return slice(e,position)}function compile(e){return dealloc(parse("",null,null,null,[""],e=alloc(e),0,[0],e))}function parse(e,t,n,r,a,i,o,s,c){for(var u=0,l=0,f=o,p=0,h=0,d=0,m=1,g=1,v=1,y=0,b="",_=a,$=i,k=r,w=b;g;)switch(d=y,y=next()){case 34:case 39:case 91:case 40:w+=delimit(y);break;case 9:case 10:case 13:case 32:w+=whitespace(d);break;case 92:w+=escaping(caret()-1,7);continue;case 47:switch(peek()){case 42:case 47:append(comment(commenter(next(),caret()),t,n),c);break;default:w+="/"}break;case 123*m:s[u++]=strlen(w)*v;case 125*m:case 59:case 0:switch(y){case 0:case 125:g=0;case 59+l:h>0&&strlen(w)-f&&append(h>32?declaration(w+";",r,n,f-1):declaration(replace(w," ","")+";",r,n,f-2),c);break;case 59:w+=";";default:if(append(k=ruleset(w,t,n,u,l,a,s,b,_=[],$=[],f),i),123===y)if(0===l)parse(w,t,k,k,_,i,f,s,$);else switch(p){case 100:case 109:case 115:parse(e,k,k,r&&append(ruleset(e,k,k,0,0,a,s,b,a,_=[],f),$),a,$,f,s,r?_:$);break;default:parse(w,k,k,k,[""],$,f,s,$)}}u=l=h=0,m=v=1,b=w="",f=o;break;case 58:f=1+strlen(w),h=d;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==prev())continue;switch(w+=from(y),y*m){case 38:v=l>0?1:(w+="\f",-1);break;case 44:s[u++]=(strlen(w)-1)*v,v=1;break;case 64:45===peek()&&(w+=delimit(next())),p=peek(),l=strlen(b=w+=identifier(caret())),y++;break;case 45:45===d&&2==strlen(w)&&(m=0)}}return i}function ruleset(e,t,n,r,a,i,o,s,c,u,l){for(var f=a-1,p=0===a?i:[""],h=sizeof(p),d=0,m=0,g=0;d0?p[v]+" "+y:replace(y,/&\f/g,p[v])))&&(c[g++]=b);return node(e,t,n,0===a?RULESET:s,c,u,l)}function comment(e,t,n){return node(e,t,n,COMMENT,from(char()),substr(e,2,-2),0)}function declaration(e,t,n,r){return node(e,t,n,DECLARATION,substr(e,0,r),substr(e,r+1,-1),r)}function prefix(e,t){switch(hash(e,t)){case 5103:return WEBKIT+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return WEBKIT+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return WEBKIT+e+MOZ+e+MS+e+e;case 6828:case 4268:return WEBKIT+e+MS+e+e;case 6165:return WEBKIT+e+MS+"flex-"+e+e;case 5187:return WEBKIT+e+replace(e,/(\w+).+(:[^]+)/,WEBKIT+"box-$1$2"+MS+"flex-$1$2")+e;case 5443:return WEBKIT+e+MS+"flex-item-"+replace(e,/flex-|-self/,"")+e;case 4675:return WEBKIT+e+MS+"flex-line-pack"+replace(e,/align-content|flex-|-self/,"")+e;case 5548:return WEBKIT+e+MS+replace(e,"shrink","negative")+e;case 5292:return WEBKIT+e+MS+replace(e,"basis","preferred-size")+e;case 6060:return WEBKIT+"box-"+replace(e,"-grow","")+WEBKIT+e+MS+replace(e,"grow","positive")+e;case 4554:return WEBKIT+replace(e,/([^-])(transform)/g,"$1"+WEBKIT+"$2")+e;case 6187:return replace(replace(replace(e,/(zoom-|grab)/,WEBKIT+"$1"),/(image-set)/,WEBKIT+"$1"),e,"")+e;case 5495:case 3959:return replace(e,/(image-set\([^]*)/,WEBKIT+"$1$`$1");case 4968:return replace(replace(e,/(.+:)(flex-)?(.*)/,WEBKIT+"box-pack:$3"+MS+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+WEBKIT+e+e;case 4095:case 3583:case 4068:case 2532:return replace(e,/(.+)-inline(.+)/,WEBKIT+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(strlen(e)-1-t>6)switch(charat(e,t+1)){case 109:if(45!==charat(e,t+4))break;case 102:return replace(e,/(.+:)(.+)-([^]+)/,"$1"+WEBKIT+"$2-$3$1"+MOZ+(108==charat(e,t+3)?"$3":"$2-$3"))+e;case 115:return~indexof(e,"stretch")?prefix(replace(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==charat(e,t+1))break;case 6444:switch(charat(e,strlen(e)-3-(~indexof(e,"!important")&&10))){case 107:return replace(e,":",":"+WEBKIT)+e;case 101:return replace(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+WEBKIT+(45===charat(e,14)?"inline-":"")+"box$3$1"+WEBKIT+"$2$3$1"+MS+"$2box$3")+e}break;case 5936:switch(charat(e,t+11)){case 114:return WEBKIT+e+MS+replace(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return WEBKIT+e+MS+replace(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return WEBKIT+e+MS+replace(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return WEBKIT+e+MS+e+e}return e}function serialize$1(e,t){for(var n="",r=sizeof(e),a=0;a=4;++r,a-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(a){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}var unitlessKeys={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hyphenateRegex=/[A-Z]|^ms/g,animationRegex=/_EMO_([^_]+?)_([^]*?)_EMO_/g,isCustomProperty=function(e){return 45===e.charCodeAt(1)},isProcessableValue=function(e){return null!=e&&"boolean"!=typeof e},processStyleName=memoize((function(e){return isCustomProperty(e)?e:e.replace(hyphenateRegex,"-$&").toLowerCase()})),processStyleValue=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(animationRegex,(function(e,t,n){return cursor={name:t,styles:n,next:cursor},t}))}return 1===unitlessKeys[e]||isCustomProperty(e)||"number"!=typeof t||0===t?t:t+"px"};function handleInterpolation(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return cursor={name:n.name,styles:n.styles,next:cursor},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)cursor={name:r.name,styles:r.styles,next:cursor},r=r.next;return n.styles+";"}return createStringFromObject(e,t,n);case"function":if(void 0!==e){var a=cursor,i=n(e);return cursor=a,handleInterpolation(e,t,i)}}if(null==t)return n;var o=t[n];return void 0!==o?o:n}function createStringFromObject(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!t)return e;for(var r=Array.isArray(t)?t:t.split("."),a=e,i=0;i1&&void 0!==arguments[1]?arguments[1]:null;return new Promise((function(n,r){var a=document.createElement("script");a.src=e,a.onload=function(){t&&t(),n()},a.onerror=r,document.body.appendChild(a)}))}function loadStylesheet(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"string"==typeof e&&(e={src:e}),e.parentElement&&"function"==typeof e.parentElement.appendChild||(e.parentElement=document.head),new Promise((function(n,r){var a=document.createElement("link");a.rel="stylesheet",a.href=e.src,a.onload=function(){t&&t(),n()},a.onerror=r,e.parentElement.appendChild(a)}))}var chroma=chroma$2.exports,MAX_ITER=10,EPS=.01,invertColor=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.8,a=chroma(e),i=a.lab()[0],o=chroma(n).lab()[0],s=chroma(t).lab()[0],c=computeContrast(e,n);if(Math.abs(c-1)i,l=u?h(s,100,MAX_ITER):h(0,s,MAX_ITER),f=l.lab()[0],p=100*Math.pow(f/100,r);return l.set("lab.l",p).hex();function h(n,r,a){var i=.5*(n+r),o=chroma(e).set("lab.l",i),l=computeContrast(t,o);if(Math.abs(l-c)s,p=f&&u||!f&&u;return p&&l>c||!p&&l=.3&&(vis.initDarkMode((function(t){var n=t?themeDataDark:themeDataLight;Object.keys(theme.data).forEach((function(e){"_computed"!==e&&delete theme.data[e],n[e]&&$$invalidate(0,theme.data[e]=n[e],theme)})),(isPreview||!isAutoDark||isAutoDark&&!e)&&r(t);t&&set(theme.data,"colors.palette",get(themeDataLight,"colors.palette",[]));outerContainer.classList.toggle("is-dark-mode",t),dwChart.render(isIframe,outerContainer)}),initDarkModeColormap({themeDataDark:themeDataDark,themeDataLight:themeDataLight})),isStyleDark&&vis.darkMode(!0)),!isPreview&&isAutoDark){var n=window.matchMedia("(prefers-color-scheme: dark)");e||r(n.matches),n.addEventListener("change",(function(t){!function(t){e||r(t);vis.darkMode(t)}(t.matches)}))}function r(e){var t=document.getElementById("css-light"),n=document.getElementById("css-dark");(e?t:n).setAttribute("media","--disabled--"),(e?n:t).removeAttribute("media")}$$invalidate(0,theme.data._computed=theme._computed,theme),dwChart.render(isIframe,outerContainer),observeFonts(theme.fonts,theme.data.typography).then((function(){return dwChart.render(isIframe,outerContainer)})).catch((function(){return dwChart.render(isIframe,outerContainer)})),/iP(hone|od|ad)/.test(navigator.platform)&&(window.onload=dwChart.render(isIframe,outerContainer)),isIframe&&function(e){var t;function n(){clearTimeout(t),t=setTimeout((function(){dwChart.vis().fire("resize"),dwChart.render(isIframe,outerContainer)}),200)}var r=width(e),a="fixed"===dwChart.getHeightMode()?function(){var t=width(e);r!==t&&(r=t,n())}:n;window.addEventListener("resize",a)}(target)}))}))}))}))}})),loadBlocks=_async$1((function(e){function t(e){return origin&&0!==e.indexOf("http")?"".concat(origin,"/").concat(e):e}return _invokeIgnored((function(){if(e.length)return _await$1(Promise.all(e.map((function(e){return new Promise((function(n){var r=[loadScript(t(e.source.js))];e.source.css&&r.push(loadStylesheet({src:t(e.source.css),parentElement:styleHolder})),Promise.all(r).then(n).catch((function(e){var t=e.target?e.target.getAttribute("src")||e.target.getAttribute("href"):null;t?console.warn("could not load ",t):console.error("Unknown error",e),n()}))}))}))),(function(){e.forEach((function(e){e.blocks.forEach((function(e){if(!dw.block.has(e.component))return console.warn("component ".concat(e.component," from chart block ").concat(e.id," not found"));pluginBlocks.push(_objectSpread2(_objectSpread2({},e),{},{component:dw.block(e.component)}))}))})),$$invalidate(34,pluginBlocks)}))}))})),chart=$$props.chart,_$$props$visualizatio=$$props.visualization,visualization=void 0===_$$props$visualizatio?{}:_$$props$visualizatio,_$$props$teamPublicSe=$$props.teamPublicSettings,teamPublicSettings=void 0===_$$props$teamPublicSe?{}:_$$props$teamPublicSe,_$$props$theme=$$props.theme,theme=void 0===_$$props$theme?{}:_$$props$theme,_$$props$themeDataDar=$$props.themeDataDark,themeDataDark=void 0===_$$props$themeDataDar?{}:_$$props$themeDataDar,_$$props$themeDataLig=$$props.themeDataLight,themeDataLight=void 0===_$$props$themeDataLig?{}:_$$props$themeDataLig,_$$props$locales=$$props.locales,locales=void 0===_$$props$locales?{}:_$$props$locales,_$$props$textDirectio=$$props.textDirection,textDirection=void 0===_$$props$textDirectio?"ltr":_$$props$textDirectio,translations=$$props.translations,_$$props$blocks=$$props.blocks,blocks=void 0===_$$props$blocks?{}:_$$props$blocks,_$$props$chartAfterBo=$$props.chartAfterBodyHTML,chartAfterBodyHTML=void 0===_$$props$chartAfterBo?"":_$$props$chartAfterBo,isIframe=$$props.isIframe,isPreview=$$props.isPreview,assets=$$props.assets,styleHolder=$$props.styleHolder,origin=$$props.origin,externalDataUrl=$$props.externalDataUrl,outerContainer=$$props.outerContainer,_$$props$isStyleTrans=$$props.isStyleTransparent,isStyleTransparent=void 0!==_$$props$isStyleTrans&&_$$props$isStyleTrans,_$$props$isStylePlain=$$props.isStylePlain,isStylePlain=void 0!==_$$props$isStylePlain&&_$$props$isStylePlain,_$$props$isStyleStati=$$props.isStyleStatic,isStyleStatic=void 0!==_$$props$isStyleStati&&_$$props$isStyleStati,_$$props$isStyleDark=$$props.isStyleDark,isStyleDark=void 0!==_$$props$isStyleDark&&_$$props$isStyleDark,_$$props$isAutoDark=$$props.isAutoDark,isAutoDark=void 0!==_$$props$isAutoDark&&_$$props$isAutoDark,_$$props$forceLogo=$$props.forceLogo,forceLogo=void 0===_$$props$forceLogo?"auto":_$$props$forceLogo,_$$props$logoId=$$props.logoId,logoId=void 0===_$$props$logoId?null:_$$props$logoId,_$$props$frontendDoma=$$props.frontendDomain,frontendDomain=void 0===_$$props$frontendDoma?"app.datawrapper.de":_$$props$frontendDoma,target,dwChart,vis,datasetName="dataset.".concat(get(chart.metadata,"data.json")?"json":"csv"),coreBlocks=[{id:"headline",tag:"h1",region:"header",priority:10,test:function(e){var t=e.chart;return t.title&&!get(t,"metadata.describe.hide-title")},component:Headline},{id:"description",tag:"p",region:"header",priority:20,test:function(e){return get(e.chart,"metadata.describe.intro")},component:Description},{id:"notes",region:"aboveFooter",priority:10,test:function(e){return get(e.chart,"metadata.annotate.notes")},component:Notes},{id:"byline",region:"footerLeft",test:function(e){var t=e.chart;return get(t,"metadata.describe.byline",!1)||t.basedOnByline},priority:10,component:Byline},{id:"source",region:"footerLeft",test:function(e){return get(e.chart,"metadata.describe.source-name")},priority:20,component:Source},{id:"get-the-data",region:"footerLeft",test:function(e){var t=e.chart,n=e.isStyleStatic;return get(t,"metadata.publish.blocks.get-the-data")&&!n&&"locator-map"!==t.type},priority:30,component:GetTheData},{id:"edit",region:"footerLeft",test:function(e){var t=e.chart,n=e.isStyleStatic;return get(t,"forkable")&&get(t,"metadata.publish.blocks.edit-in-datawrapper",!1)&&!n},priority:31,component:EditInDatawrapper},{id:"embed",region:"footerLeft",test:function(e){var t=e.chart,n=e.isStyleStatic;return get(t,"metadata.publish.blocks.embed")&&!n},priority:40,component:Embed},{id:"logo",region:"footerRight",test:function(e){var t=e.chart,n=e.theme,r=get(t,"metadata.publish.blocks.logo",{enabled:!1}),a=get(n,"data.options.blocks.logo.data.options",[]),i=logoId||r.id,o=a.find((function(e){return e.id===i}));return i&&o||(o=a[0]||{}),!(!o.imgSrc&&!o.text)&&("on"===forceLogo||"off"!==forceLogo&&(isObject(r)?r.enabled:r))},priority:10,component:Logo},{id:"rectangle",region:"header",test:function(e){return!!get(e.theme,"data.options.blocks.rectangle")},priority:1,component:Rectangle},{id:"watermark",region:"afterBody",test:function(e){var t=e.theme,n=get(t,"data.options.watermark.custom-field");return!!get(t,"data.options.watermark")&&(n?get(chart,"metadata.custom.".concat(n),""):get(t,"data.options.watermark.text","CONFIDENTIAL"))},priority:1,component:Watermark},hr(0,"hr"),hr(1,"hr"),hr(2,"hr"),hr(0,"svg-rule"),hr(1,"svg-rule"),hr(2,"svg-rule")];function hr(e,t){var n="".concat(t).concat(e||"");return{id:n,region:"header",test:function(e){return!!get(e.theme,"data.options.blocks.".concat(n))},priority:0,component:"hr"===t?HorizontalRule:SvgRule}}var pluginBlocks=[],regions,menu;function getBlocks(e,t,n){return e.filter((function(e){return e.region===t})).filter((function(e){return!e.test||e.test(_objectSpread2(_objectSpread2({},e.props),n))})).filter((function(e){return void 0===e.visible||e.visible})).sort(byPriority)}function applyThemeBlockConfig(e,t,n){return e.map((function(e){e.props=_objectSpread2(_objectSpread2(_objectSpread2({},e.data||{}),n),{},{config:{frontendDomain:frontendDomain},id:e.id}),e.component.test&&(e.test=e.component.test);var r=get(t,"data.options.blocks",{})[e.id];return r?_objectSpread2(_objectSpread2({},e),r):e}))}var caption=getCaption(visualization.id),contentBelowChart,ariaDescription,allBlocks,blockProps;function __(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;ra?0:1-(t-n)/(a-n))*(1.05-1));i=function(e,t,n,r){var a=10,i=.01,o=chroma$1.mix(t,e,n,"rgb");if(chroma$1.contrast(o,t)-r>-i||!n)return n;return s(n,1,a);function s(n,a,o){var c=(n+a)/2,u=chroma$1.mix(t,e,c,"rgb"),l=chroma$1.contrast(u,t);return Math.abs(l-r)

")),512&$$self.$$.dirty[0]&&purifyHTML(get(chart,"metadata.publish.custom-css",""),""),536875521&$$self.$$.dirty[0]|6&$$self.$$.dirty[1]&&$$invalidate(37,blockProps={__:__,purifyHtml:clean,get:get,teamPublicSettings:teamPublicSettings,theme:theme,chart:chart,dwChart:dwChart,vis:vis,caption:caption,logoId:logoId}),1&$$self.$$.dirty[0]|72&$$self.$$.dirty[1]&&$$invalidate(36,allBlocks=applyThemeBlockConfig([].concat(coreBlocks,pluginBlocks),theme,blockProps)),521&$$self.$$.dirty[0]|32&$$self.$$.dirty[1]&&$$invalidate(5,regions={header:getBlocks(allBlocks,"header",{chart:chart,theme:theme,isStyleStatic:isStyleStatic}),aboveFooter:getBlocks(allBlocks,"aboveFooter",{chart:chart,theme:theme,isStyleStatic:isStyleStatic}),footerLeft:getBlocks(allBlocks,"footerLeft",{chart:chart,theme:theme,isStyleStatic:isStyleStatic}),footerCenter:getBlocks(allBlocks,"footerCenter",{chart:chart,theme:theme,isStyleStatic:isStyleStatic}),footerRight:getBlocks(allBlocks,"footerRight",{chart:chart,theme:theme,isStyleStatic:isStyleStatic}),belowFooter:getBlocks(allBlocks,"belowFooter",{chart:chart,theme:theme,isStyleStatic:isStyleStatic}),afterBody:getBlocks(allBlocks,"afterBody",{chart:chart,theme:theme,isStyleStatic:isStyleStatic}),menu:getBlocks(allBlocks,"menu",{chart:chart,theme:theme,isStyleStatic:isStyleStatic})}),1&$$self.$$.dirty[0]&&$$invalidate(6,menu=get(theme,"data.options.menu",{})),36&$$self.$$.dirty[0]&&$$invalidate(7,contentBelowChart=!isStylePlain&&(regions.aboveFooter.length||regions.footerLeft.length||regions.footerCenter.length||regions.footerRight.length||regions.belowFooter.length||regions.afterBody.length))},[theme,chartAfterBodyHTML,isStylePlain,isStyleStatic,target,regions,menu,contentBelowChart,ariaDescription,chart,locales,visualization,teamPublicSettings,themeDataDark,themeDataLight,textDirection,translations,blocks,isIframe,isPreview,assets,styleHolder,origin,externalDataUrl,outerContainer,isStyleTransparent,isStyleDark,isAutoDark,forceLogo,logoId,frontendDomain,div0_binding]}var Visualization=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=t.call(this)),e,instance$1,create_fragment$1,safe_not_equal,{chart:9,visualization:11,teamPublicSettings:12,theme:0,themeDataDark:13,themeDataLight:14,locales:10,textDirection:15,translations:16,blocks:17,chartAfterBodyHTML:1,isIframe:18,isPreview:19,assets:20,styleHolder:21,origin:22,externalDataUrl:23,outerContainer:24,isStyleTransparent:25,isStylePlain:2,isStyleStatic:3,isStyleDark:26,isAutoDark:27,forceLogo:28,logoId:29,frontendDomain:30},[-1,-1]),r}return n}(SvelteComponent);function _await(e,t,n){return n?t?t(e):e:(e&&e.then||(e=Promise.resolve(e)),t?e.then(t):e)}var document_1=globals.document;function _async(e){return function(){for(var t=[],n=0;n",e[22],"")+"";return document_1.title=t=purifyHTML(e[0].title,""),s=new Visualization({props:{chart:e[0],visualization:e[1],teamPublicSettings:e[2],theme:e[3],themeDataDark:e[13],themeDataLight:e[14],locales:e[4],translations:e[6],blocks:e[7],chartAfterBodyHTML:e[8],isIframe:!0,isPreview:e[9],assets:e[10],externalDataUrl:e[11],isStylePlain:e[16],isStyleStatic:e[17],isStyleTransparent:e[15],isStyleDark:e[18],isAutoDark:e[19],forceLogo:e[20],logoId:e[21],outerContainer:e[12],textDirection:e[5]}}),{c:function(){n=element("meta"),i=empty(),o=space(),create_component(s.$$.fragment),this.h()},l:function(e){var t=query_selector_all('[data-svelte="svelte-ewafez"]',document_1.head);n=claim_element(t,"META",{name:!0,content:!0}),i=empty(),t.forEach(detach),o=claim_space(e),claim_component(s.$$.fragment,e),this.h()},h:function(){attr(n,"name","description"),attr(n,"content",r=get(e[0],"metadata.describe.intro")),a=new HtmlTag(null)},m:function(e,t){append$1(document_1.head,n),a.m(u,document_1.head),append$1(document_1.head,i),insert(e,o,t),mount_component(s,e,t),c=!0},p:function(e,i){var o=_slicedToArray(i,1)[0];(!c||1&o)&&t!==(t=purifyHTML(e[0].title,""))&&(document_1.title=t),(!c||1&o&&r!==(r=get(e[0],"metadata.describe.intro")))&&attr(n,"content",r),(!c||4194304&o)&&u!==(u="<".concat("style",">",e[22],"")+"")&&a.p(u);var l={};1&o&&(l.chart=e[0]),2&o&&(l.visualization=e[1]),4&o&&(l.teamPublicSettings=e[2]),8&o&&(l.theme=e[3]),8192&o&&(l.themeDataDark=e[13]),16384&o&&(l.themeDataLight=e[14]),16&o&&(l.locales=e[4]),64&o&&(l.translations=e[6]),128&o&&(l.blocks=e[7]),256&o&&(l.chartAfterBodyHTML=e[8]),512&o&&(l.isPreview=e[9]),1024&o&&(l.assets=e[10]),2048&o&&(l.externalDataUrl=e[11]),65536&o&&(l.isStylePlain=e[16]),131072&o&&(l.isStyleStatic=e[17]),32768&o&&(l.isStyleTransparent=e[15]),262144&o&&(l.isStyleDark=e[18]),524288&o&&(l.isAutoDark=e[19]),1048576&o&&(l.forceLogo=e[20]),2097152&o&&(l.logoId=e[21]),4096&o&&(l.outerContainer=e[12]),32&o&&(l.textDirection=e[5]),s.$set(l)},i:function(e){c||(transition_in(s.$$.fragment,e),c=!0)},o:function(e){transition_out(s.$$.fragment,e),c=!1},d:function(e){detach(n),detach(i),e&&a.d(),e&&detach(o),destroy_component(s,e)}}}function instance(e,t,n){var r,a=t.chart,i=void 0===a?{}:a,o=t.visualization,s=void 0===o?{}:o,c=t.teamPublicSettings,u=void 0===c?{}:c,l=t.theme,f=void 0===l?{}:l,p=t.locales,h=void 0===p?{}:p,d=t.textDirection,m=void 0===d?"ltr":d,g=t.translations,v=t.blocks,y=void 0===v?{}:v,b=t.chartAfterBodyHTML,_=void 0===b?"":b,$=t.isPreview,k=t.assets,w=t.externalDataUrl,x=t.outerContainer,E=t.themeDataDark,S=void 0===E?{}:E,A=t.themeDataLight,T=void 0===A?{}:A,M=t.isStyleTransparent,O=void 0!==M&&M,I=t.isStylePlain,P=void 0!==I&&I,C=t.isStyleStatic,N=void 0!==C&&C,D=t.isStyleDark,L=void 0!==D&&D,R=t.isAutoDark,B=void 0!==R&&R,j=t.forceLogo,Y=void 0===j?"auto":j,z=t.logoId,F=void 0===z?null:z;return window.__dwUpdate=function(e){Object.assign(i,e.chart),n(0,i)},onMount(_async((function(){return document.body.classList.toggle("plain",P),document.body.classList.toggle("static",N),document.body.classList.toggle("png-export",N),document.body.classList.toggle("transparent",O),N&&(document.body.style["pointer-events"]="none"),_await()}))),e.$set=function(e){"chart"in e&&n(0,i=e.chart),"visualization"in e&&n(1,s=e.visualization),"teamPublicSettings"in e&&n(2,u=e.teamPublicSettings),"theme"in e&&n(3,f=e.theme),"locales"in e&&n(4,h=e.locales),"textDirection"in e&&n(5,m=e.textDirection),"translations"in e&&n(6,g=e.translations),"blocks"in e&&n(7,y=e.blocks),"chartAfterBodyHTML"in e&&n(8,_=e.chartAfterBodyHTML),"isPreview"in e&&n(9,$=e.isPreview),"assets"in e&&n(10,k=e.assets),"externalDataUrl"in e&&n(11,w=e.externalDataUrl),"outerContainer"in e&&n(12,x=e.outerContainer),"themeDataDark"in e&&n(13,S=e.themeDataDark),"themeDataLight"in e&&n(14,T=e.themeDataLight),"isStyleTransparent"in e&&n(15,O=e.isStyleTransparent),"isStylePlain"in e&&n(16,P=e.isStylePlain),"isStyleStatic"in e&&n(17,N=e.isStyleStatic),"isStyleDark"in e&&n(18,L=e.isStyleDark),"isAutoDark"in e&&n(19,B=e.isAutoDark),"forceLogo"in e&&n(20,Y=e.forceLogo),"logoId"in e&&n(21,F=e.logoId)},e.$$.update=function(){1&e.$$.dirty&&n(22,r=purifyHTML(get(i,"metadata.publish.custom-css",""),""))},[i,s,u,f,h,m,g,y,_,$,k,w,x,S,T,O,P,N,L,B,Y,F,r]}var VisualizationIframe=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),init(_assertThisInitialized(r=t.call(this)),e,instance,create_fragment,safe_not_equal,{chart:0,visualization:1,teamPublicSettings:2,theme:3,locales:4,textDirection:5,translations:6,blocks:7,chartAfterBodyHTML:8,isPreview:9,assets:10,externalDataUrl:11,outerContainer:12,themeDataDark:13,themeDataLight:14,isStyleTransparent:15,isStylePlain:16,isStyleStatic:17,isStyleDark:18,isAutoDark:19,forceLogo:20,logoId:21}),r}return n}(SvelteComponent);function render(){var e=document.getElementById("__svelte-dw");new VisualizationIframe({target:e,props:_objectSpread2(_objectSpread2({},window.__DW_SVELTE_PROPS__),{},{outerContainer:e}),hydrate:!0})}render()})();