function _classCallCheck2(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties(e,t){for(var n=0;n=t.length)return{done:true};return{done:false,value:t[i++]}},e:function e(t){throw t},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r=true,o=false,s;return{s:function e(){n=t[Symbol.iterator]()},n:function e(){var t=n.next();r=t.done;return t},e:function e(t){o=true;s=t},f:function e(){try{if(!r&&n["return"]!=null)n["return"]()}finally{if(o)throw s}}}}function _unsupportedIterableToArray2(e,t){if(!e)return;if(typeof e==="string")return _arrayLikeToArray2(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray2(e,t)}function _arrayLikeToArray2(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,i=new Array(t);n0?de:fe)(t)};var pe=Math.min;var ve=function e(t){return t>0?pe(ge(t),9007199254740991):0};var me=Math.max;var ye=Math.min;var _e=function e(t,n){var i=ge(t);return i<0?me(i+n,0):ye(i,n)};var be=function e(s){return function(e,t,n){var i=m(e);var a=ve(i.length);var r=_e(n,a);var o;if(s&&t!=t)while(a>r){o=i[r++];if(o!=o)return true}else for(;a>r;r++){if((s||r in i)&&i[r]===t)return s||r||0}return!s&&-1}};var we={includes:be(true),indexOf:be(false)};var xe=we.indexOf;var ke=function e(t,n){var i=m(t);var a=0;var r=[];var o;for(o in i){!x(X,o)&&x(i,o)&&r.push(o)}while(n.length>a){if(x(i,o=n[a++])){~xe(r,o)||r.push(o)}}return r};var Se=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];var Ce=Se.concat("length","prototype");var Ee=Object.getOwnPropertyNames||function e(t){return ke(t,Ce)};var Ae={f:Ee};var Re=Object.getOwnPropertySymbols;var Me={f:Re};var Te=ce("Reflect","ownKeys")||function e(t){var n=Ae.f(T(t));var i=Me.f;return i?n.concat(i(t)):n};var Be=function e(t,n){var i=Te(n);var a=P.f;var r=M.f;for(var o=0;ol;l++){if(_||l in r){c=r[l];f=o(c,l,a);if(d){if(g)h[l]=f;else if(f)switch(d){case 3:return true;case 5:return c;case 6:return l;case 2:Qe.call(h,c)}else if(m)return false}}}return y?-1:v||m?m:h}};var tt={forEach:et(0),map:et(1),filter:et(2),some:et(3),every:et(4),find:et(5),findIndex:et(6)};var nt=Object.keys||function e(t){return ke(t,Se)};var it=d?Object.defineProperties:function e(t,n){T(t);var i=nt(n);var a=i.length;var r=0;var o;while(a>r){P.f(t,o=i[r++],n[o])}return t};var at=ce("document","documentElement");var rt=">";var ot="<";var st="prototype";var lt="script";var ut=Y("IE_PROTO");var ht=function e(){};var ct=function e(t){return ot+lt+rt+t+ot+"/"+lt+rt};var ft=function e(t){t.write(ct(""));t.close();var n=t.parentWindow.Object;t=null;return n};var dt=function e(){var t=C("iframe");var n="java"+lt+":";var i;t.style.display="none";at.appendChild(t);t.src=String(n);i=t.contentWindow.document;i.open();i.write(ct("document.F=Object"));i.close();return i.F};var gt;var pt=function e(){try{gt=document.domain&&new ActiveXObject("htmlfile")}catch(e){}pt=gt?ft(gt):dt();var t=Se.length;while(t--){delete pt[st][Se[t]]}return pt()};X[ut]=true;var vt=Object.create||function e(t,n){var i;if(t!==null){ht[st]=T(t);i=new ht;ht[st]=null;i[ut]=t}else i=pt();return n===undefined?i:it(i,n)};var mt=$e("unscopables");var yt=Array.prototype;if(yt[mt]==undefined){P.f(yt,mt,{configurable:true,value:vt(null)})}var _t=function e(t){yt[mt][t]=true};var bt=Object.defineProperty;var wt={};var xt=function e(t){throw t};var kt=function e(t,n){if(x(wt,t))return wt[t];if(!n)n={};var i=[][t];var a=x(n,"ACCESSORS")?n.ACCESSORS:false;var r=x(n,0)?n[0]:xt;var o=x(n,1)?n[1]:undefined;return wt[t]=!!i&&!s(function(){if(a&&!d)return true;var e={length:-1};if(a)bt(e,1,{enumerable:true,get:xt});else e[1]=1;i.call(e,r,o)})};var St=tt.find;var Ct="find";var Et=true;var At=kt(Ct);if(Ct in[])Array(1)[Ct](function(){Et=false});je({target:"Array",proto:true,forced:Et||!At},{find:function e(t){return St(this,t,arguments.length>1?arguments[1]:undefined)}});_t(Ct);var Rt=we.includes;var Mt=kt("indexOf",{ACCESSORS:true,1:0});je({target:"Array",proto:true,forced:!Mt},{includes:function e(t){return Rt(this,t,arguments.length>1?arguments[1]:undefined)}});_t("includes");var Tt=Object.assign;var Bt=Object.defineProperty;var Nt=!Tt||s(function(){if(d&&Tt({b:1},Tt(Bt({},"a",{enumerable:true,get:function e(){Bt(this,"b",{value:3,enumerable:false})}}),{b:2})).b!==1)return true;var e={};var t={};var n=Symbol();var i="abcdefghijklmnopqrst";e[n]=7;i.split("").forEach(function(e){t[e]=e});return Tt({},e)[n]!=7||nt(Tt({},t)).join("")!=i})?function e(t,n){var i=Ge(t);var a=arguments.length;var r=1;var o=Me.f;var s=g.f;while(a>r){var l=b(arguments[r++]);var u=o?nt(l).concat(o(l)):nt(l);var h=u.length;var c=0;var f;while(h>c){f=u[c++];if(!d||s.call(l,f))i[f]=l[f]}}return i}:Tt;je({target:"Object",stat:true,forced:Object.assign!==Nt},{assign:Nt});var Pt=$e("match");var Dt=function e(t){var n;return y(t)&&((n=t[Pt])!==undefined?!!n:c(t)=="RegExp")};var Ot=function e(t){if(Dt(t)){throw TypeError("The method doesn't accept regular expressions")}return t};var zt=$e("match");var Ft=function e(t){var n=/./;try{"/./"[t](n)}catch(e){try{n[zt]=false;return"/./"[t](n)}catch(e){}}return false};je({target:"String",proto:true,forced:!Ft("includes")},{includes:function e(t){return!!~String(v(this)).indexOf(Ot(t),arguments.length>1?arguments[1]:undefined)}});var Lt=M.f;var It="".startsWith;var jt=Math.min;var Ht=Ft("startsWith");var Vt=!Ht&&!!function(){var e=Lt(String.prototype,"startsWith");return e&&!e.writable}();je({target:"String",proto:true,forced:!Vt&&!Ht},{startsWith:function e(t){var n=String(v(this));Ot(t);var i=ve(jt(arguments.length>1?arguments[1]:undefined,n.length));var a=String(t);return It?It.call(n,a,i):n.slice(i,i+a.length)===a}});if(typeof window!=="undefined"){(function(){try{if(typeof SVGElement==="undefined"||Boolean(SVGElement.prototype.innerHTML)){return}}catch(e){return}function n(e){switch(e.nodeType){case 1:return a(e);case 3:return t(e);case 8:return i(e)}}function t(e){return e.textContent.replace(/&/g,"&").replace(//g,">")}function i(e){return"\x3c!--"+e.nodeValue+"--\x3e"}function a(e){var t="";t+="<"+e.tagName;if(e.hasAttributes()){[].forEach.call(e.attributes,function(e){t+=" "+e.name+'="'+e.value+'"'})}t+=">";if(e.hasChildNodes()){[].forEach.call(e.childNodes,function(e){t+=n(e)})}t+="";return t}Object.defineProperty(SVGElement.prototype,"innerHTML",{get:function e(){var t="";[].forEach.call(this.childNodes,function(e){t+=n(e)});return t},set:function e(t){while(this.firstChild){this.removeChild(this.firstChild)}try{var n=new DOMParser;n.async=false;var i=""+t+"";var a=n.parseFromString(i,"text/xml").documentElement;[].forEach.call(a.childNodes,function(e){this.appendChild(this.ownerDocument.importNode(e,true))}.bind(this))}catch(e){throw new Error("Error parsing markup string")}}});Object.defineProperty(SVGElement.prototype,"innerSVG",{get:function e(){return this.innerHTML},set:function e(t){this.innerHTML=t}})})()}});(function(e,t){(typeof exports==="undefined"?"undefined":_typeof2(exports))==="object"&&typeof module!=="undefined"?t(exports):typeof define==="function"&&define.amd?define("d3plus-network",["exports"],t):(e=typeof globalThis!=="undefined"?globalThis:e||self,t(e.d3plus={}))})(this,function(e){function k(e,t){return et?1:e>=t?0:NaN}function S(o){if(o.length===1)o=t(o);return{left:function e(t,n,i,a){if(i==null)i=0;if(a==null)a=t.length;while(i>>1;if(o(t[r],n)<0)i=r+1;else a=r}return i},right:function e(t,n,i,a){if(i==null)i=0;if(a==null)a=t.length;while(i>>1;if(o(t[r],n)>0)a=r;else i=r+1}return i}}}function t(n){return function(e,t){return k(n(e),t)}}var n=S(k);var u=n.right;function h(e){return e===null?NaN:+e}function i(e,t){var n=e.length,i=0,a=-1,r=0,o,s,l=0;if(t==null){while(++a1)return l/(i-1)}function ze(e,t){var n=i(e,t);return n?Math.sqrt(n):n}function Fe(e,t){var n=e.length,i=-1,a,r,o;if(t==null){while(++i=a){r=o=a;while(++ia)r=a;if(o=a){r=o=a;while(++ia)r=a;if(o0)return[e];if(i=t0){e=Math.ceil(e/s);t=Math.floor(t/s);o=new Array(r=Math.ceil(t-e+1));while(++a=0?(r>=o?10:r>=s?5:r>=l?2:1)*Math.pow(10,a):-Math.pow(10,-a)/(r>=o?10:r>=s?5:r>=l?2:1)}function C(e,t,n){var i=Math.abs(t-e)/Math.max(0,n),a=Math.pow(10,Math.floor(Math.log(i)/Math.LN10)),r=i/a;if(r>=o)a*=10;else if(r>=s)a*=5;else if(r>=l)a*=2;return t=1)return+n(e[i-1],i-1,e);var i,a=(i-1)*t,r=Math.floor(a),o=+n(e[r],r,e),s=+n(e[r+1],r+1,e);return o+(s-o)*(a-r)}function me(e,t){var n=e.length,i=-1,a,r;if(t==null){while(++i=a){r=a;while(++ir){r=a}}}}}else{while(++i=a){r=a;while(++ir){r=a}}}}}return r}function a(e,t){var n=e.length,i=n,a=-1,r,o=0;if(t==null){while(++a=0){o=e[t];n=o.length;while(--n>=0){r[--a]=o[n]}}return r}function je(e,t){var n=e.length,i=-1,a,r;if(t==null){while(++i=a){r=a;while(++ia){r=a}}}}}else{while(++i=a){r=a;while(++ia){r=a}}}}}return r}function O(e,t){var n=e.length,i=-1,a,r=0;if(t==null){while(++i=f.length){if(d!=null)e.sort(d);return g!=null?g(e):e}var t=-1,r=e.length,o=f[n++],s,l,u=E(),h,c=i();while(++tf.length)return e;var i,a=r[n-1];if(g!=null&&n>=f.length)i=e.entries();else i=[],e.each(function(e,t){i.push({key:t,values:o(e,n)})});return a!=null?i.sort(function(e,t){return a(e.key,t.key)}):i}return n={object:function e(t){return p(t,0,v,m)},map:function e(t){return p(t,0,y,_)},entries:function e(t){return o(p(t,0,y,_),0)},key:function e(t){f.push(t);return n},sortKeys:function e(t){r[f.length-1]=t;return n},sortValues:function e(t){d=t;return n},rollup:function e(t){g=t;return n}}}function v(){return{}}function m(e,t,n){e[t]=n}function y(){return E()}function _(e,t,n){e.set(t,n)}function d(){}var g=E.prototype;d.prototype={constructor:d,has:g.has,add:function e(t){t+="";this[r+t]=t;return this},remove:g.remove,clear:g.clear,values:g.keys,size:g.size,empty:g.empty,each:g.each};function p(e){var t=[];for(var n in e){t.push(n)}return t}function b(e){return function(){return e}}function w(){return(Math.random()-.5)*1e-6}function x(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return A(this.cover(t,n),t,n,e)}function A(e,t,n,i){if(isNaN(t)||isNaN(n))return e;var a,r=e._root,o={data:i},s=e._x0,l=e._y0,u=e._x1,h=e._y1,c,f,d,g,p,v,m,y;if(!r)return e._root=o,e;while(r.length){if(p=t>=(c=(s+u)/2))s=c;else u=c;if(v=n>=(f=(l+h)/2))l=f;else h=f;if(a=r,!(r=r[m=v<<1|p]))return a[m]=o,e}d=+e._x.call(null,r.data);g=+e._y.call(null,r.data);if(t===d&&n===g)return o.next=r,a?a[m]=o:e._root=o,e;do{a=a?a[m]=new Array(4):e._root=new Array(4);if(p=t>=(c=(s+u)/2))s=c;else u=c;if(v=n>=(f=(l+h)/2))l=f;else h=f}while((m=v<<1|p)===(y=(g>=f)<<1|d>=c));return a[y]=r,a[m]=o,e}function R(e){var t,n,i=e.length,a,r,o=new Array(i),s=new Array(i),l=Infinity,u=Infinity,h=-Infinity,c=-Infinity;for(n=0;nh)h=a;if(rc)c=r}if(l>h||u>c)return this;this.cover(l,u).cover(h,c);for(n=0;ne||e>=a||i>t||t>=r){u=(th||(s=g.y0)>c||(l=g.x1)=m)<<1|e>=v){g=f[f.length-1];f[f.length-1]=f[f.length-1-p];f[f.length-1-p]=g}}else{var y=e-+this._x.call(null,d.data),_=t-+this._y.call(null,d.data),b=y*y+_*_;if(b=(f=(o+l)/2))o=f;else l=f;if(p=c>=(d=(s+u)/2))s=d;else u=d;if(!(t=n,n=n[v=p<<1|g]))return this;if(!n.length)break;if(t[v+1&3]||t[v+2&3]||t[v+3&3])i=t,m=v}while(n.data!==e){if(!(a=n,n=n.next))return this}if(r=n.next)delete n.next;if(a)return r?a.next=r:delete a.next,this;if(!t)return this._root=r,this;r?t[v]=r:delete t[v];if((n=t[0]||t[1]||t[2]||t[3])&&n===(t[3]||t[2]||t[1]||t[0])&&!n.length){if(i)i[m]=n;else this._root=n}return this}function z(e){for(var t=0,n=e.length;t=0)t=e.slice(n+1),e=e.slice(0,n);if(e&&!i.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}})}ne.prototype=te.prototype={constructor:ne,on:function e(t,n){var i=this._,a=ie(t+"",i),r,o=-1,s=a.length;if(arguments.length<2){while(++o0)for(var i=new Array(r),a=0,r,o;a=0)e._call.call(null,t);e=e._next}--oe}function Ce(){de=(fe=pe.now())+ge;oe=se=0;try{Se()}finally{oe=0;Ae();de=0}}function Ee(){var e=pe.now(),t=e-fe;if(t>ue)ge-=t,fe=e}function Ae(){var e,t=he,n,i=Infinity;while(t){if(t._call){if(i>t._time)i=t._time;e=t,t=t._next}else{n=t._next,t._next=null;t=e?e._next=n:he=n}}ce=e;Re(i)}function Re(e){if(oe)return;if(se)se=clearTimeout(se);var t=e-de;if(t>24){if(e1?(n==null?h.remove(t):h.set(t,d(n)),r):h.get(t)},find:function e(t,n,i){var a=0,r=c.length,o,s,l,u,h;if(i==null)i=Infinity;else i*=i;for(a=0;a1?(i.on(t,n),r):i.on(t)}}}function Oe(){var a,l,u,i=b(-30),h,c=1,f=Infinity,d=.81;function t(e){var t,n=a.length,i=W(a,Te,Be).visitAfter(r);for(u=e,t=0;t=f)return;if(e.data!==l||e.next){if(a===0)a=w(),s+=a*a;if(r===0)r=w(),s+=r*r;if(s1&&Ge(e[n[i-2]],e[n[i-1]],e[a])<=0){--i}n[i++]=a}return n.slice(0,i)}function Ke(e){if((n=e.length)<3)return null;var t,n,i=new Array(n),a=new Array(n);for(t=0;t=0;--t){u.push(e[i[r[t]][2]])}for(t=+s;tr!==s>r&&a<(o-l)*(r-u)/(s-u)+l)h=!h;o=l,s=u}return h}function Ye(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Xe(e,t){switch(arguments.length){case 0:break;case 1:this.interpolator(e);break;default:this.interpolator(t).domain(e);break}return this}var $e=Array.prototype;var Ze=$e.map;var Je=$e.slice;var Qe={name:"implicit"};function et(){var r=E(),o=[],i=[],a=Qe;function s(e){var t=e+"",n=r.get(t);if(!n){if(a!==Qe)return a;r.set(t,n=o.push(e))}return i[(n-1)%i.length]}s.domain=function(e){if(!arguments.length)return o.slice();o=[],r=E();var t=-1,n=e.length,i,a;while(++t>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1)):(t=dt.exec(e))?xt(parseInt(t[1],16)):(t=gt.exec(e))?new Et(t[1],t[2],t[3],1):(t=pt.exec(e))?new Et(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=vt.exec(e))?kt(t[1],t[2],t[3],t[4]):(t=mt.exec(e))?kt(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=yt.exec(e))?Rt(t[1],t[2]/100,t[3]/100,1):(t=_t.exec(e))?Rt(t[1],t[2]/100,t[3]/100,t[4]):bt.hasOwnProperty(e)?xt(bt[e]):e==="transparent"?new Et(NaN,NaN,NaN,0):null}function xt(e){return new Et(e>>16&255,e>>8&255,e&255,1)}function kt(e,t,n,i){if(i<=0)e=t=n=NaN;return new Et(e,t,n,i)}function St(e){if(!(e instanceof ot))e=wt(e);if(!e)return new Et;e=e.rgb();return new Et(e.r,e.g,e.b,e.opacity)}function Ct(e,t,n,i){return arguments.length===1?St(e):new Et(e,t,n,i==null?1:i)}function Et(e,t,n,i){this.r=+e;this.g=+t;this.b=+n;this.opacity=+i}at(Et,Ct,rt(ot,{brighter:function e(t){t=t==null?lt:Math.pow(lt,t);return new Et(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function e(t){t=t==null?st:Math.pow(st,t);return new Et(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function e(){return this},displayable:function e(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function e(){return"#"+At(this.r)+At(this.g)+At(this.b)},toString:function e(){var t=this.opacity;t=isNaN(t)?1:Math.max(0,Math.min(1,t));return(t===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(t===1?")":", "+t+")")}}));function At(e){e=Math.max(0,Math.min(255,Math.round(e)||0));return(e<16?"0":"")+e.toString(16)}function Rt(e,t,n,i){if(i<=0)e=t=n=NaN;else if(n<=0||n>=1)e=t=NaN;else if(t<=0)e=NaN;return new Bt(e,t,n,i)}function Mt(e){if(e instanceof Bt)return new Bt(e.h,e.s,e.l,e.opacity);if(!(e instanceof ot))e=wt(e);if(!e)return new Bt;if(e instanceof Bt)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,a=Math.min(t,n,i),r=Math.max(t,n,i),o=NaN,s=r-a,l=(r+a)/2;if(s){if(t===r)o=(n-i)/s+(n0&&l<1?0:o}return new Bt(o,s,l,e.opacity)}function Tt(e,t,n,i){return arguments.length===1?Mt(e):new Bt(e,t,n,i==null?1:i)}function Bt(e,t,n,i){this.h=+e;this.s=+t;this.l=+n;this.opacity=+i}at(Bt,Tt,rt(ot,{brighter:function e(t){t=t==null?lt:Math.pow(lt,t);return new Bt(this.h,this.s,this.l*t,this.opacity)},darker:function e(t){t=t==null?st:Math.pow(st,t);return new Bt(this.h,this.s,this.l*t,this.opacity)},rgb:function e(){var t=this.h%360+(this.h<0)*360,n=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,a=i+(i<.5?i:1-i)*n,r=2*i-a;return new Et(Nt(t>=240?t-240:t+120,r,a),Nt(t,r,a),Nt(t<120?t+240:t-120,r,a),this.opacity)},displayable:function e(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));function Nt(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var Pt=Math.PI/180;var Dt=180/Math.PI;var Ot=18,zt=.96422,Ft=1,Lt=.82521,It=4/29,jt=6/29,Ht=3*jt*jt,Vt=jt*jt*jt;function Gt(e){if(e instanceof Wt)return new Wt(e.l,e.a,e.b,e.opacity);if(e instanceof Jt){if(isNaN(e.h))return new Wt(e.l,0,0,e.opacity);var t=e.h*Pt;return new Wt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}if(!(e instanceof Et))e=St(e);var n=Xt(e.r),i=Xt(e.g),a=Xt(e.b),r=Kt((.2225045*n+.7168786*i+.0606169*a)/Ft),o,s;if(n===i&&i===a)o=s=r;else{o=Kt((.4360747*n+.3850649*i+.1430804*a)/zt);s=Kt((.0139322*n+.0971045*i+.7141733*a)/Lt)}return new Wt(116*r-16,500*(o-r),200*(r-s),e.opacity)}function Ut(e,t,n,i){return arguments.length===1?Gt(e):new Wt(e,t,n,i==null?1:i)}function Wt(e,t,n,i){this.l=+e;this.a=+t;this.b=+n;this.opacity=+i}at(Wt,Ut,rt(ot,{brighter:function e(t){return new Wt(this.l+Ot*(t==null?1:t),this.a,this.b,this.opacity)},darker:function e(t){return new Wt(this.l-Ot*(t==null?1:t),this.a,this.b,this.opacity)},rgb:function e(){var t=(this.l+16)/116,n=isNaN(this.a)?t:t+this.a/500,i=isNaN(this.b)?t:t-this.b/200;n=zt*qt(n);t=Ft*qt(t);i=Lt*qt(i);return new Et(Yt(3.1338561*n-1.6168667*t-.4906146*i),Yt(-.9787684*n+1.9161415*t+.033454*i),Yt(.0719453*n-.2289914*t+1.4052427*i),this.opacity)}}));function Kt(e){return e>Vt?Math.pow(e,1/3):e/Ht+It}function qt(e){return e>jt?e*e*e:Ht*(e-It)}function Yt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Xt(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function $t(e){if(e instanceof Jt)return new Jt(e.h,e.c,e.l,e.opacity);if(!(e instanceof Wt))e=Gt(e);if(e.a===0&&e.b===0)return new Jt(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Dt;return new Jt(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Zt(e,t,n,i){return arguments.length===1?$t(e):new Jt(e,t,n,i==null?1:i)}function Jt(e,t,n,i){this.h=+e;this.c=+t;this.l=+n;this.opacity=+i}at(Jt,Zt,rt(ot,{brighter:function e(t){return new Jt(this.h,this.c,this.l+Ot*(t==null?1:t),this.opacity)},darker:function e(t){return new Jt(this.h,this.c,this.l-Ot*(t==null?1:t),this.opacity)},rgb:function e(){return Gt(this).rgb()}}));var Qt=-.14861,en=+1.78277,tn=-.29227,nn=-.90649,an=+1.97294,rn=an*nn,on=an*en,sn=en*tn-nn*Qt;function ln(e){if(e instanceof hn)return new hn(e.h,e.s,e.l,e.opacity);if(!(e instanceof Et))e=St(e);var t=e.r/255,n=e.g/255,i=e.b/255,a=(sn*i+rn*t-on*n)/(sn+rn-on),r=i-a,o=(an*(n-a)-tn*r)/nn,s=Math.sqrt(o*o+r*r)/(an*a*(1-a)),l=s?Math.atan2(o,r)*Dt-120:NaN;return new hn(l<0?l+360:l,s,a,e.opacity)}function un(e,t,n,i){return arguments.length===1?ln(e):new hn(e,t,n,i==null?1:i)}function hn(e,t,n,i){this.h=+e;this.s=+t;this.l=+n;this.opacity=+i}at(hn,un,rt(ot,{brighter:function e(t){t=t==null?lt:Math.pow(lt,t);return new hn(this.h,this.s,this.l*t,this.opacity)},darker:function e(t){t=t==null?st:Math.pow(st,t);return new hn(this.h,this.s,this.l*t,this.opacity)},rgb:function e(){var t=isNaN(this.h)?0:(this.h+120)*Pt,n=+this.l,i=isNaN(this.s)?0:this.s*n*(1-n),a=Math.cos(t),r=Math.sin(t);return new Et(255*(n+i*(Qt*a+en*r)),255*(n+i*(tn*a+nn*r)),255*(n+i*(an*a)),this.opacity)}}));function cn(e){return function(){return e}}function fn(t,n){return function(e){return t+e*n}}function dn(t,n,i){return t=Math.pow(t,i),n=Math.pow(n,i)-t,i=1/i,function(e){return Math.pow(t+e*n,i)}}function gn(n){return(n=+n)===1?pn:function(e,t){return t-e?dn(e,t,n):cn(isNaN(e)?t:e)}}function pn(e,t){var n=t-e;return n?fn(e,n):cn(isNaN(e)?t:e)}var vn=function e(t){var o=gn(t);function n(t,e){var n=o((t=Ct(t)).r,(e=Ct(e)).r),i=o(t.g,e.g),a=o(t.b,e.b),r=pn(t.opacity,e.opacity);return function(e){t.r=n(e);t.g=i(e);t.b=a(e);t.opacity=r(e);return t+""}}n.gamma=e;return n}(1);function mn(e,t){var n=t?t.length:0,i=e?Math.min(n,e.length):0,a=new Array(i),r=new Array(n),o;for(o=0;ot){r=i.slice(t,r);if(s[o])s[o]+=r;else s[++o]=r}if((n=n[0])===(a=a[0])){if(s[o])s[o]+=a;else s[++o]=a}else{s[++o]=null;l.push({i:o,x:_n(n,a)})}t=xn.lastIndex}if(t180)t+=360;else if(t-e>180)e+=360;i.push({i:n.push(u(n)+"rotate(",null,a)-2,x:_n(e,t)})}else if(t){n.push(u(n)+"rotate("+t+a)}}function h(e,t,n,i){if(e!==t){i.push({i:n.push(u(n)+"skewX(",null,a)-2,x:_n(e,t)})}else if(t){n.push(u(n)+"skewX("+t+a)}}function c(e,t,n,i,a,r){if(e!==n||t!==i){var o=a.push(u(a)+"scale(",null,",",null,")");r.push({i:o-4,x:_n(e,n)},{i:o-2,x:_n(t,i)})}else if(n!==1||i!==1){a.push(u(a)+"scale("+n+","+i+")")}}return function(e,t){var a=[],r=[];e=n(e),t=n(t);i(e.translateX,e.translateY,t.translateX,t.translateY,a,r);o(e.rotate,t.rotate,a,r);h(e.skewX,t.skewX,a,r);c(e.scaleX,e.scaleY,t.scaleX,t.scaleY,a,r);e=t=null;return function(e){var t=-1,n=r.length,i;while(++tn)i=t,t=n,n=i;return function(e){return Math.max(t,Math.min(n,e))}}function ei(e,t,n){var i=e[0],a=e[1],r=t[0],o=t[1];if(a2?ti:ei;u=h=null;return f}function f(e){return isNaN(e=+e)?o:(u||(u=l(t.map(a),n,i)))(a(s(e)))}f.invert=function(e){return s(r((h||(h=l(n,t.map(a),_n)))(e)))};f.domain=function(e){return arguments.length?(t=Ze.call(e,Xn),s===Zn||(s=Qn(t)),c()):t.slice()};f.range=function(e){return arguments.length?(n=Je.call(e),c()):n.slice()};f.rangeRound=function(e){return n=Je.call(e),i=An,c()};f.clamp=function(e){return arguments.length?(s=e?Qn(t):Zn,f):s!==Zn};f.interpolate=function(e){return arguments.length?(i=e,c()):i};f.unknown=function(e){return arguments.length?(o=e,f):o};return function(e,t){a=e,r=t;return c()}}function ai(e,t){return ii()(e,t)}function ri(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function oi(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,i=e.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+e.slice(n+1)]}function si(e){return e=oi(Math.abs(e)),e?e[1]:NaN}function li(s,l){return function(e,t){var n=e.length,i=[],a=0,r=s[0],o=0;while(n>0&&r>0){if(o+r+1>t)r=Math.max(1,t-o);i.push(e.substring(n-=r,n+r));if((o+=r+1)>t)break;r=s[a=(a+1)%s.length]}return i.reverse().join(l)}}function ui(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}var hi=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ci(e){if(!(t=hi.exec(e)))throw new Error("invalid format: "+e);var t;return new fi({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}ci.prototype=fi.prototype;function fi(e){this.fill=e.fill===undefined?" ":e.fill+"";this.align=e.align===undefined?">":e.align+"";this.sign=e.sign===undefined?"-":e.sign+"";this.symbol=e.symbol===undefined?"":e.symbol+"";this.zero=!!e.zero;this.width=e.width===undefined?undefined:+e.width;this.comma=!!e.comma;this.precision=e.precision===undefined?undefined:+e.precision;this.trim=!!e.trim;this.type=e.type===undefined?"":e.type+""}fi.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===undefined?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===undefined?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function di(e){e:for(var t=e.length,n=1,i=-1,a;n0)i=0;break}}return i>0?e.slice(0,i)+e.slice(a+1):e}var gi;function pi(e,t){var n=oi(e,t);if(!n)return e+"";var i=n[0],a=n[1],r=a-(gi=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=i.length;return r===o?i:r>o?i+new Array(r-o+1).join("0"):r>0?i.slice(0,r)+"."+i.slice(r):"0."+new Array(1-r).join("0")+oi(e,Math.max(0,t+r-1))[0]}function vi(e,t){var n=oi(e,t);if(!n)return e+"";var i=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+i:i.length>a+1?i.slice(0,a+1)+"."+i.slice(a+1):i+new Array(a-i.length+2).join("0")}var mi={"%":function e(t,n){return(t*100).toFixed(n)},b:function e(t){return Math.round(t).toString(2)},c:function e(t){return t+""},d:ri,e:function e(t,n){return t.toExponential(n)},f:function e(t,n){return t.toFixed(n)},g:function e(t,n){return t.toPrecision(n)},o:function e(t){return Math.round(t).toString(8)},p:function e(t,n){return vi(t*100,n)},r:vi,s:pi,X:function e(t){return Math.round(t).toString(16).toUpperCase()},x:function e(t){return Math.round(t).toString(16)}};function yi(e){return e}var _i=Array.prototype.map,bi=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function wi(e){var x=e.grouping===undefined||e.thousands===undefined?yi:li(_i.call(e.grouping,Number),e.thousands+""),i=e.currency===undefined?"":e.currency[0]+"",a=e.currency===undefined?"":e.currency[1]+"",k=e.decimal===undefined?".":e.decimal+"",S=e.numerals===undefined?yi:ui(_i.call(e.numerals,String)),r=e.percent===undefined?"%":e.percent+"",C=e.minus===undefined?"-":e.minus+"",E=e.nan===undefined?"NaN":e.nan+"";function o(e){e=ci(e);var u=e.fill,h=e.align,c=e.sign,t=e.symbol,f=e.zero,d=e.width,g=e.comma,p=e.precision,v=e.trim,m=e.type;if(m==="n")g=true,m="g";else if(!mi[m])p===undefined&&(p=12),v=true,m="g";if(f||u==="0"&&h==="=")f=true,u="0",h="=";var y=t==="$"?i:t==="#"&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",_=t==="$"?a:/[%p]/.test(m)?r:"";var b=mi[m],w=/[defgprs%]/.test(m);p=p===undefined?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p));function n(e){var t=y,n=_,i,a,r;if(m==="c"){n=b(e)+n;e=""}else{e=+e;var o=e<0||1/e<0;e=isNaN(e)?E:b(Math.abs(e),p);if(v)e=di(e);if(o&&+e===0&&c!=="+")o=false;t=(o?c==="("?c:C:c==="-"||c==="("?"":c)+t;n=(m==="s"?bi[8+gi/3]:"")+n+(o&&c==="("?")":"");if(w){i=-1,a=e.length;while(++ir||r>57){n=(r===46?k+e.slice(i+1):e.slice(i))+n;e=e.slice(0,i);break}}}}if(g&&!f)e=x(e,Infinity);var s=t.length+e.length+n.length,l=s>1)+t+e+n+l.slice(s);break;default:e=l+t+e+n;break}return S(e)}n.toString=function(){return e+""};return n}function t(e,t){var n=o((e=ci(e),e.type="f",e)),i=Math.max(-8,Math.min(8,Math.floor(si(t)/3)))*3,a=Math.pow(10,-i),r=bi[8+i/3];return function(e){return n(a*e)+r}}return{format:o,formatPrefix:t}}var xi;var ki;var Si;Ci({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});function Ci(e){xi=wi(e);ki=xi.format;Si=xi.formatPrefix;return xi}function Ei(e){return Math.max(0,-si(Math.abs(e)))}function Ai(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(si(t)/3)))*3-si(Math.abs(e)))}function Ri(e,t){e=Math.abs(e),t=Math.abs(t)-e;return Math.max(0,si(t)-si(e))+1}function Mi(e,t,n,i){var a=C(e,t,n),r;i=ci(i==null?",f":i);switch(i.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));if(i.precision==null&&!isNaN(r=Ai(a,o)))i.precision=r;return Si(i,o)}case"":case"e":case"g":case"p":case"r":{if(i.precision==null&&!isNaN(r=Ri(a,Math.max(Math.abs(e),Math.abs(t)))))i.precision=r-(i.type==="e");break}case"f":case"%":{if(i.precision==null&&!isNaN(r=Ei(a)))i.precision=r-(i.type==="%")*2;break}}return ki(i)}function Ti(s){var l=s.domain;s.ticks=function(e){var t=l();return ve(t[0],t[t.length-1],e==null?10:e)};s.tickFormat=function(e,t){var n=l();return Mi(n[0],n[n.length-1],e==null?10:e,t)};s.nice=function(e){if(e==null)e=10;var t=l(),n=0,i=t.length-1,a=t[n],r=t[i],o;if(r0){a=Math.floor(a/o)*o;r=Math.ceil(r/o)*o;o=c(a,r,e)}else if(o<0){a=Math.ceil(a*o)/o;r=Math.floor(r*o)/o;o=c(a,r,e)}if(o>0){t[n]=Math.floor(a/o)*o;t[i]=Math.ceil(r/o)*o;l(t)}else if(o<0){t[n]=Math.ceil(a*o)/o;t[i]=Math.floor(r*o)/o;l(t)}return s};return s}function Bi(){var e=ai(Zn,Zn);e.copy=function(){return ni(e,Bi())};Ye.apply(e,arguments);return Ti(e)}function Ni(t){var n;function i(e){return isNaN(e=+e)?n:e}i.invert=i;i.domain=i.range=function(e){return arguments.length?(t=Ze.call(e,Xn),i):t.slice()};i.unknown=function(e){return arguments.length?(n=e,i):n};i.copy=function(){return Ni(t).unknown(n)};t=arguments.length?Ze.call(t,Xn):[0,1];return Ti(i)}function Pi(e,t){e=e.slice();var n=0,i=e.length-1,a=e[n],r=e[i],o;if(r0)for(;ri)break;c.push(u)}}else for(;r=1;--l){u=s*l;if(ui)break;c.push(u)}}}else{c=ve(r,o,Math.min(o-r,h)).map(p)}return a?c.reverse():c};t.tickFormat=function(e,n){if(n==null)n=d===10?".0e":",";if(typeof n!=="function")n=ki(n);if(e===Infinity)return n;if(e==null)e=10;var i=Math.max(1,d*e/t.ticks().length);return function(e){var t=e/p(Math.round(g(e)));if(t*d0?i[t-1]:a[0],t=a?[r[a-1],i]:[r[t-1],r[t]]};s.unknown=function(e){return arguments.length?(t=e,s):s};s.thresholds=function(){return r.slice()};s.copy=function(){return ta().domain([n,i]).range(o).unknown(t)};return Ye.apply(Ti(s),arguments)}function na(){var n=[.5],i=[0,1],t,a=1;function r(e){return e<=e?i[u(n,e,0,a)]:t}r.domain=function(e){return arguments.length?(n=Je.call(e),a=Math.min(n.length,i.length-1),r):n.slice()};r.range=function(e){return arguments.length?(i=Je.call(e),a=Math.min(n.length,i.length-1),r):i.slice()};r.invertExtent=function(e){var t=i.indexOf(e);return[n[t-1],n[t]]};r.unknown=function(e){return arguments.length?(t=e,r):t};r.copy=function(){return na().domain(n).range(i).unknown(t)};return Ye.apply(r,arguments)}var ia=new Date,aa=new Date;function ra(r,o,n,i){function s(e){return r(e=new Date(+e)),e}s.floor=s;s.ceil=function(e){return r(e=new Date(e-1)),o(e,1),r(e),e};s.round=function(e){var t=s(e),n=s.ceil(e);return e-t0))return i;do{i.push(a=new Date(+e)),o(e,n),r(e)}while(a=e)while(r(e),!n(e)){e.setTime(e-1)}},function(e,t){if(e>=e){if(t<0)while(++t<=0){while(o(e,-1),!n(e)){}}else while(--t>=0){while(o(e,+1),!n(e)){}}}})};if(n){s.count=function(e,t){ia.setTime(+e),aa.setTime(+t);r(ia),r(aa);return Math.floor(n(ia,aa))};s.every=function(t){t=Math.floor(t);return!isFinite(t)||!(t>0)?null:!(t>1)?s:s.filter(i?function(e){return i(e)%t===0}:function(e){return s.count(0,e)%t===0})}}return s}var oa=ra(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});oa.every=function(n){n=Math.floor(n);if(!isFinite(n)||!(n>0))return null;if(!(n>1))return oa;return ra(function(e){e.setTime(Math.floor(e/n)*n)},function(e,t){e.setTime(+e+t*n)},function(e,t){return(t-e)/n})};var sa=1e3;var la=6e4;var ua=36e5;var ha=864e5;var ca=6048e5;var fa=ra(function(e){e.setTime(Math.floor(e/sa)*sa)},function(e,t){e.setTime(+e+t*sa)},function(e,t){return(t-e)/sa},function(e){return e.getUTCSeconds()});var da=ra(function(e){e.setTime(Math.floor(e/la)*la)},function(e,t){e.setTime(+e+t*la)},function(e,t){return(t-e)/la},function(e){return e.getMinutes()});var ga=ra(function(e){var t=e.getTimezoneOffset()*la%ua;if(t<0)t+=ua;e.setTime(Math.floor((+e-t)/ua)*ua+t)},function(e,t){e.setTime(+e+t*ua)},function(e,t){return(t-e)/ua},function(e){return e.getHours()});var pa=ra(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*la)/ha},function(e){return e.getDate()-1});function va(t){return ra(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7);e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t*7)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*la)/ca})}var ma=va(0);var ya=va(1);var _a=va(2);var ba=va(3);var wa=va(4);var xa=va(5);var ka=va(6);var Sa=ra(function(e){e.setDate(1);e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12},function(e){return e.getMonth()});var Ca=ra(function(e){e.setMonth(0,1);e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});Ca.every=function(n){return!isFinite(n=Math.floor(n))||!(n>0)?null:ra(function(e){e.setFullYear(Math.floor(e.getFullYear()/n)*n);e.setMonth(0,1);e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t*n)})};var Ea=ra(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*la)},function(e,t){return(t-e)/la},function(e){return e.getUTCMinutes()});var Aa=ra(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+t*ua)},function(e,t){return(t-e)/ua},function(e){return e.getUTCHours()});var Ra=ra(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/ha},function(e){return e.getUTCDate()-1});function Ma(t){return ra(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7);e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t*7)},function(e,t){return(t-e)/ca})}var Ta=Ma(0);var Ba=Ma(1);var Na=Ma(2);var Pa=Ma(3);var Da=Ma(4);var Oa=Ma(5);var za=Ma(6);var Fa=ra(function(e){e.setUTCDate(1);e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12},function(e){return e.getUTCMonth()});var La=ra(function(e){e.setUTCMonth(0,1);e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});La.every=function(n){return!isFinite(n=Math.floor(n))||!(n>0)?null:ra(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/n)*n);e.setUTCMonth(0,1);e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t*n)})};function Ia(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);t.setFullYear(e.y);return t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function ja(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));t.setUTCFullYear(e.y);return t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Ha(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Va(e){var i=e.dateTime,a=e.date,r=e.time,t=e.periods,n=e.days,o=e.shortDays,s=e.months,l=e.shortMonths;var u=Xa(t),h=$a(t),c=Xa(n),f=$a(n),d=Xa(o),g=$a(o),p=Xa(s),v=$a(s),m=Xa(l),y=$a(l);var _={a:P,A:D,b:O,B:z,c:null,d:mr,e:mr,f:xr,g:Pr,G:Or,H:yr,I:_r,j:br,L:wr,m:kr,M:Sr,p:F,q:L,Q:ao,s:ro,S:Cr,u:Er,U:Ar,V:Mr,w:Tr,W:Br,x:null,X:null,y:Nr,Y:Dr,Z:zr,"%":io};var b={a:I,A:j,b:H,B:V,c:null,d:Fr,e:Fr,f:Vr,g:Qr,G:to,H:Lr,I:Ir,j:jr,L:Hr,m:Gr,M:Ur,p:G,q:U,Q:ao,s:ro,S:Wr,u:Kr,U:qr,V:Xr,w:$r,W:Zr,x:null,X:null,y:Jr,Y:eo,Z:no,"%":io};var w={a:E,A:A,b:R,B:M,c:T,d:sr,e:sr,f:dr,g:ir,G:nr,H:ur,I:ur,j:lr,L:fr,m:or,M:hr,p:C,q:rr,Q:pr,s:vr,S:cr,u:Ja,U:Qa,V:er,w:Za,W:tr,x:B,X:N,y:ir,Y:nr,Z:ar,"%":gr};_.x=x(a,_);_.X=x(r,_);_.c=x(i,_);b.x=x(a,b);b.X=x(r,b);b.c=x(i,b);function x(l,u){return function(e){var t=[],n=-1,i=0,a=l.length,r,o,s;if(!(e instanceof Date))e=new Date(+e);while(++n53)return null;if(!("w"in t))t.w=1;if("Z"in t){i=ja(Ha(t.y,0,1)),a=i.getUTCDay();i=a>4||a===0?Ba.ceil(i):Ba(i);i=Ra.offset(i,(t.V-1)*7);t.y=i.getUTCFullYear();t.m=i.getUTCMonth();t.d=i.getUTCDate()+(t.w+6)%7}else{i=Ia(Ha(t.y,0,1)),a=i.getDay();i=a>4||a===0?ya.ceil(i):ya(i);i=pa.offset(i,(t.V-1)*7);t.y=i.getFullYear();t.m=i.getMonth();t.d=i.getDate()+(t.w+6)%7}}else if("W"in t||"U"in t){if(!("w"in t))t.w="u"in t?t.u%7:"W"in t?1:0;a="Z"in t?ja(Ha(t.y,0,1)).getUTCDay():Ia(Ha(t.y,0,1)).getDay();t.m=0;t.d="W"in t?(t.w+6)%7+t.W*7-(a+5)%7:t.w+t.U*7-(a+6)%7}if("Z"in t){t.H+=t.Z/100|0;t.M+=t.Z%100;return ja(t)}return Ia(t)}}function S(e,t,n,i){var a=0,r=t.length,o=n.length,s,l;while(a=o)return-1;s=t.charCodeAt(a++);if(s===37){s=t.charAt(a++);l=w[s in Ga?t.charAt(a++):s];if(!l||(i=l(e,n,i))<0)return-1}else if(s!=n.charCodeAt(i++)){return-1}}return i}function C(e,t,n){var i=u.exec(t.slice(n));return i?(e.p=h[i[0].toLowerCase()],n+i[0].length):-1}function E(e,t,n){var i=d.exec(t.slice(n));return i?(e.w=g[i[0].toLowerCase()],n+i[0].length):-1}function A(e,t,n){var i=c.exec(t.slice(n));return i?(e.w=f[i[0].toLowerCase()],n+i[0].length):-1}function R(e,t,n){var i=m.exec(t.slice(n));return i?(e.m=y[i[0].toLowerCase()],n+i[0].length):-1}function M(e,t,n){var i=p.exec(t.slice(n));return i?(e.m=v[i[0].toLowerCase()],n+i[0].length):-1}function T(e,t,n){return S(e,i,t,n)}function B(e,t,n){return S(e,a,t,n)}function N(e,t,n){return S(e,r,t,n)}function P(e){return o[e.getDay()]}function D(e){return n[e.getDay()]}function O(e){return l[e.getMonth()]}function z(e){return s[e.getMonth()]}function F(e){return t[+(e.getHours()>=12)]}function L(e){return 1+~~(e.getMonth()/3)}function I(e){return o[e.getUTCDay()]}function j(e){return n[e.getUTCDay()]}function H(e){return l[e.getUTCMonth()]}function V(e){return s[e.getUTCMonth()]}function G(e){return t[+(e.getUTCHours()>=12)]}function U(e){return 1+~~(e.getUTCMonth()/3)}return{format:function e(t){var n=x(t+="",_);n.toString=function(){return t};return n},parse:function e(t){var n=k(t+="",false);n.toString=function(){return t};return n},utcFormat:function e(t){var n=x(t+="",b);n.toString=function(){return t};return n},utcParse:function e(t){var n=k(t+="",true);n.toString=function(){return t};return n}}}var Ga={"-":"",_:" ",0:"0"},Ua=/^\s*\d+/,Wa=/^%/,Ka=/[\\^$*+?|[\]().{}]/g;function qa(e,t,n){var i=e<0?"-":"",a=(i?-e:e)+"",r=a.length;return i+(r68?1900:2e3),n+i[0].length):-1}function ar(e,t,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function rr(e,t,n){var i=Ua.exec(t.slice(n,n+1));return i?(e.q=i[0]*3-3,n+i[0].length):-1}function or(e,t,n){var i=Ua.exec(t.slice(n,n+2));return i?(e.m=i[0]-1,n+i[0].length):-1}function sr(e,t,n){var i=Ua.exec(t.slice(n,n+2));return i?(e.d=+i[0],n+i[0].length):-1}function lr(e,t,n){var i=Ua.exec(t.slice(n,n+3));return i?(e.m=0,e.d=+i[0],n+i[0].length):-1}function ur(e,t,n){var i=Ua.exec(t.slice(n,n+2));return i?(e.H=+i[0],n+i[0].length):-1}function hr(e,t,n){var i=Ua.exec(t.slice(n,n+2));return i?(e.M=+i[0],n+i[0].length):-1}function cr(e,t,n){var i=Ua.exec(t.slice(n,n+2));return i?(e.S=+i[0],n+i[0].length):-1}function fr(e,t,n){var i=Ua.exec(t.slice(n,n+3));return i?(e.L=+i[0],n+i[0].length):-1}function dr(e,t,n){var i=Ua.exec(t.slice(n,n+6));return i?(e.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function gr(e,t,n){var i=Wa.exec(t.slice(n,n+1));return i?n+i[0].length:-1}function pr(e,t,n){var i=Ua.exec(t.slice(n));return i?(e.Q=+i[0],n+i[0].length):-1}function vr(e,t,n){var i=Ua.exec(t.slice(n));return i?(e.s=+i[0],n+i[0].length):-1}function mr(e,t){return qa(e.getDate(),t,2)}function yr(e,t){return qa(e.getHours(),t,2)}function _r(e,t){return qa(e.getHours()%12||12,t,2)}function br(e,t){return qa(1+pa.count(Ca(e),e),t,3)}function wr(e,t){return qa(e.getMilliseconds(),t,3)}function xr(e,t){return wr(e,t)+"000"}function kr(e,t){return qa(e.getMonth()+1,t,2)}function Sr(e,t){return qa(e.getMinutes(),t,2)}function Cr(e,t){return qa(e.getSeconds(),t,2)}function Er(e){var t=e.getDay();return t===0?7:t}function Ar(e,t){return qa(ma.count(Ca(e)-1,e),t,2)}function Rr(e){var t=e.getDay();return t>=4||t===0?wa(e):wa.ceil(e)}function Mr(e,t){e=Rr(e);return qa(wa.count(Ca(e),e)+(Ca(e).getDay()===4),t,2)}function Tr(e){return e.getDay()}function Br(e,t){return qa(ya.count(Ca(e)-1,e),t,2)}function Nr(e,t){return qa(e.getFullYear()%100,t,2)}function Pr(e,t){e=Rr(e);return qa(e.getFullYear()%100,t,2)}function Dr(e,t){return qa(e.getFullYear()%1e4,t,4)}function Or(e,t){var n=e.getDay();e=n>=4||n===0?wa(e):wa.ceil(e);return qa(e.getFullYear()%1e4,t,4)}function zr(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+qa(t/60|0,"0",2)+qa(t%60,"0",2)}function Fr(e,t){return qa(e.getUTCDate(),t,2)}function Lr(e,t){return qa(e.getUTCHours(),t,2)}function Ir(e,t){return qa(e.getUTCHours()%12||12,t,2)}function jr(e,t){return qa(1+Ra.count(La(e),e),t,3)}function Hr(e,t){return qa(e.getUTCMilliseconds(),t,3)}function Vr(e,t){return Hr(e,t)+"000"}function Gr(e,t){return qa(e.getUTCMonth()+1,t,2)}function Ur(e,t){return qa(e.getUTCMinutes(),t,2)}function Wr(e,t){return qa(e.getUTCSeconds(),t,2)}function Kr(e){var t=e.getUTCDay();return t===0?7:t}function qr(e,t){return qa(Ta.count(La(e)-1,e),t,2)}function Yr(e){var t=e.getUTCDay();return t>=4||t===0?Da(e):Da.ceil(e)}function Xr(e,t){e=Yr(e);return qa(Da.count(La(e),e)+(La(e).getUTCDay()===4),t,2)}function $r(e){return e.getUTCDay()}function Zr(e,t){return qa(Ba.count(La(e)-1,e),t,2)}function Jr(e,t){return qa(e.getUTCFullYear()%100,t,2)}function Qr(e,t){e=Yr(e);return qa(e.getUTCFullYear()%100,t,2)}function eo(e,t){return qa(e.getUTCFullYear()%1e4,t,4)}function to(e,t){var n=e.getUTCDay();e=n>=4||n===0?Da(e):Da.ceil(e);return qa(e.getUTCFullYear()%1e4,t,4)}function no(){return"+0000"}function io(){return"%"}function ao(e){return+e}function ro(e){return Math.floor(+e/1e3)}var oo;var so;var lo;uo({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function uo(e){oo=Va(e);so=oo.format;oo.parse;lo=oo.utcFormat;oo.utcParse;return oo}var ho=1e3,co=ho*60,fo=co*60,go=fo*24,po=go*7,vo=go*30,mo=go*365;function yo(e){return new Date(e)}function _o(e){return e instanceof Date?+e:+new Date(+e)}function bo(o,t,n,i,a,r,s,l,u){var h=ai(Zn,Zn),c=h.invert,f=h.domain;var d=u(".%L"),g=u(":%S"),p=u("%I:%M"),v=u("%I %p"),m=u("%a %d"),y=u("%b %d"),_=u("%B"),b=u("%Y");var w=[[s,1,ho],[s,5,5*ho],[s,15,15*ho],[s,30,30*ho],[r,1,co],[r,5,5*co],[r,15,15*co],[r,30,30*co],[a,1,fo],[a,3,3*fo],[a,6,6*fo],[a,12,12*fo],[i,1,go],[i,2,2*go],[n,1,po],[t,1,vo],[t,3,3*vo],[o,1,mo]];function x(e){return(s(e)=0&&(t=e.slice(0,n))!=="xmlns")e=e.slice(n+1);return Io.hasOwnProperty(t)?{space:Io[t],local:e}:e}function Ho(n){return function(){var e=this.ownerDocument,t=this.namespaceURI;return t===Lo&&e.documentElement.namespaceURI===Lo?e.createElement(n):e.createElementNS(t,n)}}function Vo(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Go(e){var t=jo(e);return(t.local?Vo:Ho)(t)}function Uo(){}function Wo(e){return e==null?Uo:function(){return this.querySelector(e)}}function Ko(e){if(typeof e!=="function")e=Wo(e);for(var t=this._groups,n=t.length,i=new Array(n),a=0;a=_)_=y+1;while(!(w=v[_])&&++_=0;){if(o=i[a]){if(r&&o.compareDocumentPosition(r)^4)r.parentNode.insertBefore(o,r);r=o}}}return this}function hs(n){if(!n)n=cs;function e(e,t){return e&&t?n(e.__data__,t.__data__):!e-!t}for(var t=this._groups,i=t.length,a=new Array(i),r=0;rt?1:e>=t?0:NaN}function fs(){var e=arguments[0];arguments[0]=this;e.apply(null,arguments);return this}function ds(){var e=new Array(this.size()),t=-1;this.each(function(){e[++t]=this});return e}function gs(){for(var e=this._groups,t=0,n=e.length;t1?this.each((t==null?Es:typeof t==="function"?Rs:As)(e,t,n==null?"":n)):Ts(this.node(),e)}function Ts(e,t){return e.style.getPropertyValue(t)||Cs(e).getComputedStyle(e,null).getPropertyValue(t)}function Bs(e){return function(){delete this[e]}}function Ns(e,t){return function(){this[e]=t}}function Ps(t,n){return function(){var e=n.apply(this,arguments);if(e==null)delete this[t];else this[t]=e}}function Ds(e,t){return arguments.length>1?this.each((t==null?Bs:typeof t==="function"?Ps:Ns)(e,t)):this.node()[e]}function Os(e){return e.trim().split(/^|\s+/)}function zs(e){return e.classList||new Fs(e)}function Fs(e){this._node=e;this._names=Os(e.getAttribute("class")||"")}Fs.prototype={add:function e(t){var n=this._names.indexOf(t);if(n<0){this._names.push(t);this._node.setAttribute("class",this._names.join(" "))}},remove:function e(t){var n=this._names.indexOf(t);if(n>=0){this._names.splice(n,1);this._node.setAttribute("class",this._names.join(" "))}},contains:function e(t){return this._names.indexOf(t)>=0}};function Ls(e,t){var n=zs(e),i=-1,a=t.length;while(++i=0)t=e.slice(n+1),e=e.slice(0,n);return{type:e,name:t}})}function ml(r){return function(){var e=this.__on;if(!e)return;for(var t=0,n=-1,i=e.length,a;tIl)throw new Error("too late; already scheduled");return n}function Yl(e,t){var n=Xl(e,t);if(n.state>Vl)throw new Error("too late; already running");return n}function Xl(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function $l(r,o,s){var l=r.__transition,u;l[o]=s;s.timer=ke(e,0,s.time);function e(e){s.state=jl;s.timer.restart(h,s.delay,s.time);if(s.delay<=e)h(e-s.delay)}function h(e){var t,n,i,a;if(s.state!==jl)return f();for(t in l){a=l[t];if(a.name!==s.name)continue;if(a.state===Vl)return Me(h);if(a.state===Gl){a.state=Wl;a.timer.stop();a.on.call("interrupt",r,r.__data__,a.index,a.group);delete l[t]}else if(+tHl&&i.state=0)e=e.slice(0,t);return!e||e==="start"})}function Au(n,i,a){var r,o,s=Eu(i)?ql:Yl;return function(){var e=s(this,n),t=e.on;if(t!==r)(o=(r=t).copy()).on(i,a);e.on=o}}function Ru(e,t){var n=this._id;return arguments.length<2?Xl(this.node(),n).on.on(e):this.each(Au(n,e,t))}function Mu(n){return function(){var e=this.parentNode;for(var t in this.__transition){if(+t!==n)return}if(e)e.removeChild(this)}}function Tu(){return this.on("end.remove",Mu(this._id))}function Bu(e){var t=this._name,n=this._id;if(typeof e!=="function")e=Wo(e);for(var i=this._groups,a=i.length,r=new Array(a),o=0;oi?(i+a)/2:Math.min(0,i)||Math.max(0,a),o>r?(r+o)/2:Math.min(0,r)||Math.max(0,o))}function bh(){var s=gh,c=ph,d=_h,r=mh,t=yh,o=[0,Infinity],g=[[-Infinity,-Infinity],[Infinity,Infinity]],l=250,f=qn,n=te("start","zoom","end"),p,u,h=500,v=150,m=0;function y(e){e.property("__zoom",vh).on("wheel.zoom",a).on("mousedown.zoom",S).on("dblclick.zoom",C).filter(t).on("touchstart.zoom",E).on("touchmove.zoom",A).on("touchend.zoom touchcancel.zoom",R).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}y.transform=function(e,t,n){var i=e.selection?e.selection():e;i.property("__zoom",vh);if(e!==i){x(e,t,n)}else{i.interrupt().each(function(){k(this,arguments).start().zoom(null,typeof t==="function"?t.apply(this,arguments):t).end()})}};y.scaleBy=function(e,n,t){y.scaleTo(e,function(){var e=this.__zoom.k,t=typeof n==="function"?n.apply(this,arguments):n;return e*t},t)};y.scaleTo=function(e,r,o){y.transform(e,function(){var e=c.apply(this,arguments),t=this.__zoom,n=o==null?w(e):typeof o==="function"?o.apply(this,arguments):o,i=t.invert(n),a=typeof r==="function"?r.apply(this,arguments):r;return d(b(_(t,a),n,i),e,g)},o)};y.translateBy=function(e,t,n){y.transform(e,function(){return d(this.__zoom.translate(typeof t==="function"?t.apply(this,arguments):t,typeof n==="function"?n.apply(this,arguments):n),c.apply(this,arguments),g)})};y.translateTo=function(e,i,a,r){y.transform(e,function(){var e=c.apply(this,arguments),t=this.__zoom,n=r==null?w(e):typeof r==="function"?r.apply(this,arguments):r;return d(hh.translate(n[0],n[1]).scale(t.k).translate(typeof i==="function"?-i.apply(this,arguments):-i,typeof a==="function"?-a.apply(this,arguments):-a),e,g)},r)};function _(e,t){t=Math.max(o[0],Math.min(o[1],t));return t===e.k?e:new uh(t,e.x,e.y)}function b(e,t,n){var i=t[0]-n[0]*e.k,a=t[1]-n[1]*e.k;return i===e.x&&a===e.y?e:new uh(e.k,i,a)}function w(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,u,h){e.on("start.zoom",function(){k(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){k(this,arguments).end()}).tween("zoom",function(){var e=this,t=arguments,i=k(e,t),n=c.apply(e,t),a=h==null?w(n):typeof h==="function"?h.apply(e,t):h,r=Math.max(n[1][0]-n[0][0],n[1][1]-n[0][1]),o=e.__zoom,s=typeof u==="function"?u.apply(e,t):u,l=f(o.invert(a).concat(r/o.k),s.invert(a).concat(r/s.k));return function(e){if(e===1)e=s;else{var t=l(e),n=r/t[2];e=new uh(n,a[0]-t[0]*n,a[1]-t[1]*n)}i.zoom(null,e)}})}function k(e,t,n){return!n&&e.__zooming||new i(e,t)}function i(e,t){this.that=e;this.args=t;this.active=0;this.extent=c.apply(e,t);this.taps=0}i.prototype={start:function e(){if(++this.active===1){this.that.__zooming=this;this.emit("start")}return this},zoom:function e(t,n){if(this.mouse&&t!=="mouse")this.mouse[1]=n.invert(this.mouse[0]);if(this.touch0&&t!=="touch")this.touch0[1]=n.invert(this.touch0[0]);if(this.touch1&&t!=="touch")this.touch1[1]=n.invert(this.touch1[0]);this.that.__zoom=n;this.emit("zoom");return this},end:function e(){if(--this.active===0){delete this.that.__zooming;this.emit("end")}return this},emit:function e(t){bl(new lh(y,t,this.that.__zoom),n.apply,n,[t,this.that,this.args])}};function a(){if(!s.apply(this,arguments))return;var e=k(this,arguments),t=this.__zoom,n=Math.max(o[0],Math.min(o[1],t.k*Math.pow(2,r.apply(this,arguments)))),i=Bl(this);if(e.wheel){if(e.mouse[0][0]!==i[0]||e.mouse[0][1]!==i[1]){e.mouse[1]=t.invert(e.mouse[0]=i)}clearTimeout(e.wheel)}else if(t.k===n)return;else{e.mouse=[i,t.invert(i)];Zl(this);e.start()}dh();e.wheel=setTimeout(a,v);e.zoom("mouse",d(b(_(t,n),e.mouse[0],e.mouse[1]),e.extent,g));function a(){e.wheel=null;e.end()}}function S(){if(u||!s.apply(this,arguments))return;var n=k(this,arguments,true),e=Rl(fl.view).on("mousemove.zoom",r,true).on("mouseup.zoom",o,true),t=Bl(this),i=fl.clientX,a=fl.clientY;Ol(fl.view);fh();n.mouse=[t,this.__zoom.invert(t)];Zl(this);n.start();function r(){dh();if(!n.moved){var e=fl.clientX-i,t=fl.clientY-a;n.moved=e*e+t*t>m}n.zoom("mouse",d(b(n.that.__zoom,n.mouse[0]=Bl(n.that),n.mouse[1]),n.extent,g))}function o(){e.on("mousemove.zoom mouseup.zoom",null);zl(fl.view,n.moved);dh();n.end()}}function C(){if(!s.apply(this,arguments))return;var e=this.__zoom,t=Bl(this),n=e.invert(t),i=e.k*(fl.shiftKey?.5:2),a=d(b(_(e,i),t,n),c.apply(this,arguments),g);dh();if(l>0)Rl(this).transition().duration(l).call(x,a,t);else Rl(this).call(y.transform,a)}function E(){if(!s.apply(this,arguments))return;var e=fl.touches,t=e.length,n=k(this,arguments,fl.changedTouches.length===t),i,a,r,o;fh();for(a=0;a1&&arguments[1]!==undefined?arguments[1]:{};for(var n in t){if({}.hasOwnProperty.call(t,n))e.attr(n,t[n])}}var Ah={language:"Afar",location:null,id:4096,tag:"aa",version:"Release 10"};var Rh={language:"Afrikaans",location:null,id:54,tag:"af",version:"Release 7"};var Mh={language:"Aghem",location:null,id:4096,tag:"agq",version:"Release 10"};var Th={language:"Akan",location:null,id:4096,tag:"ak",version:"Release 10"};var Bh={language:"Albanian",location:null,id:28,tag:"sq",version:"Release 7"};var Nh={language:"Alsatian",location:null,id:132,tag:"gsw",version:"Release 7"};var Ph={language:"Amharic",location:null,id:94,tag:"am",version:"Release 7"};var Dh={language:"Arabic",location:null,id:1,tag:"ar",version:"Release 7"};var Oh={language:"Armenian",location:null,id:43,tag:"hy",version:"Release 7"};var zh={language:"Assamese",location:null,id:77,tag:"as",version:"Release 7"};var Fh={language:"Asturian",location:null,id:4096,tag:"ast",version:"Release 10"};var Lh={language:"Asu",location:null,id:4096,tag:"asa",version:"Release 10"};var Ih={language:"Azerbaijani (Latin)",location:null,id:44,tag:"az",version:"Release 7"};var jh={language:"Bafia",location:null,id:4096,tag:"ksf",version:"Release 10"};var Hh={language:"Bamanankan",location:null,id:4096,tag:"bm",version:"Release 10"};var Vh={language:"Bangla",location:null,id:69,tag:"bn",version:"Release 7"};var Gh={language:"Basaa",location:null,id:4096,tag:"bas",version:"Release 10"};var Uh={language:"Bashkir",location:null,id:109,tag:"ba",version:"Release 7"};var Wh={language:"Basque",location:null,id:45,tag:"eu",version:"Release 7"};var Kh={language:"Belarusian",location:null,id:35,tag:"be",version:"Release 7"};var qh={language:"Bemba",location:null,id:4096,tag:"bem",version:"Release 10"};var Yh={language:"Bena",location:null,id:4096,tag:"bez",version:"Release 10"};var Xh={language:"Blin",location:null,id:4096,tag:"byn",version:"Release 10"};var $h={language:"Bodo",location:null,id:4096,tag:"brx",version:"Release 10"};var Zh={language:"Bosnian (Latin)",location:null,id:30746,tag:"bs",version:"Release 7"};var Jh={language:"Breton",location:null,id:126,tag:"br",version:"Release 7"};var Qh={language:"Bulgarian",location:null,id:2,tag:"bg",version:"Release 7"};var ec={language:"Burmese",location:null,id:85,tag:"my",version:"Release 8.1"};var tc={language:"Catalan",location:null,id:3,tag:"ca",version:"Release 7"};var nc={language:"Cebuano",location:null,id:4096,tag:"ceb",version:"Release 10.5"};var ic={language:"Central Kurdish",location:null,id:146,tag:"ku",version:"Release 8"};var ac={language:"Chakma",location:null,id:4096,tag:"ccp",version:"Release 10.5"};var rc={language:"Cherokee",location:null,id:92,tag:"chr",version:"Release 8"};var oc={language:"Chiga",location:null,id:4096,tag:"cgg",version:"Release 10"};var sc={language:"Chinese (Simplified)",location:null,id:30724,tag:"zh",version:"Windows 7"};var lc={language:"Congo Swahili",location:null,id:4096,tag:"swc",version:"Release 10"};var uc={language:"Cornish",location:null,id:4096,tag:"kw",version:"Release 10"};var hc={language:"Corsican",location:null,id:131,tag:"co",version:"Release 7"};var cc={language:"Czech",location:null,id:5,tag:"cs",version:"Release 7"};var fc={language:"Danish",location:null,id:6,tag:"da",version:"Release 7"};var dc={language:"Dari",location:null,id:140,tag:"prs",version:"Release 7"};var gc={language:"Divehi",location:null,id:101,tag:"dv",version:"Release 7"};var pc={language:"Duala",location:null,id:4096,tag:"dua",version:"Release 10"};var vc={language:"Dutch",location:null,id:19,tag:"nl",version:"Release 7"};var mc={language:"Dzongkha",location:null,id:4096,tag:"dz",version:"Release 10"};var yc={language:"Embu",location:null,id:4096,tag:"ebu",version:"Release 10"};var _c={language:"English",location:null,id:9,tag:"en",version:"Release 7"};var bc={language:"Esperanto",location:null,id:4096,tag:"eo",version:"Release 10"};var wc={language:"Estonian",location:null,id:37,tag:"et",version:"Release 7"};var xc={language:"Ewe",location:null,id:4096,tag:"ee",version:"Release 10"};var kc={language:"Ewondo",location:null,id:4096,tag:"ewo",version:"Release 10"};var Sc={language:"Faroese",location:null,id:56,tag:"fo",version:"Release 7"};var Cc={language:"Filipino",location:null,id:100,tag:"fil",version:"Release 7"};var Ec={language:"Finnish",location:null,id:11,tag:"fi",version:"Release 7"};var Ac={language:"French",location:null,id:12,tag:"fr",version:"Release 7"};var Rc={language:"Frisian",location:null,id:98,tag:"fy",version:"Release 7"};var Mc={language:"Friulian",location:null,id:4096,tag:"fur",version:"Release 10"};var Tc={language:"Fulah",location:null,id:103,tag:"ff",version:"Release 8"};var Bc={language:"Galician",location:null,id:86,tag:"gl",version:"Release 7"};var Nc={language:"Ganda",location:null,id:4096,tag:"lg",version:"Release 10"};var Pc={language:"Georgian",location:null,id:55,tag:"ka",version:"Release 7"};var Dc={language:"German",location:null,id:7,tag:"de",version:"Release 7"};var Oc={language:"Greek",location:null,id:8,tag:"el",version:"Release 7"};var zc={language:"Greenlandic",location:null,id:111,tag:"kl",version:"Release 7"};var Fc={language:"Guarani",location:null,id:116,tag:"gn",version:"Release 8.1"};var Lc={language:"Gujarati",location:null,id:71,tag:"gu",version:"Release 7"};var Ic={language:"Gusii",location:null,id:4096,tag:"guz",version:"Release 10"};var jc={language:"Hausa (Latin)",location:null,id:104,tag:"ha",version:"Release 7"};var Hc={language:"Hawaiian",location:null,id:117,tag:"haw",version:"Release 8"};var Vc={language:"Hebrew",location:null,id:13,tag:"he",version:"Release 7"};var Gc={language:"Hindi",location:null,id:57,tag:"hi",version:"Release 7"};var Uc={language:"Hungarian",location:null,id:14,tag:"hu",version:"Release 7"};var Wc={language:"Icelandic",location:null,id:15,tag:"is",version:"Release 7"};var Kc={language:"Igbo",location:null,id:112,tag:"ig",version:"Release 7"};var qc={language:"Indonesian",location:null,id:33,tag:"id",version:"Release 7"};var Yc={language:"Interlingua",location:null,id:4096,tag:"ia",version:"Release 10"};var Xc={language:"Inuktitut (Latin)",location:null,id:93,tag:"iu",version:"Release 7"};var $c={language:"Irish",location:null,id:60,tag:"ga",version:"Windows 7"};var Zc={language:"Italian",location:null,id:16,tag:"it",version:"Release 7"};var Jc={language:"Japanese",location:null,id:17,tag:"ja",version:"Release 7"};var Qc={language:"Javanese",location:null,id:4096,tag:"jv",version:"Release 8.1"};var ef={language:"Jola-Fonyi",location:null,id:4096,tag:"dyo",version:"Release 10"};var tf={language:"Kabuverdianu",location:null,id:4096,tag:"kea",version:"Release 10"};var nf={language:"Kabyle",location:null,id:4096,tag:"kab",version:"Release 10"};var af={language:"Kako",location:null,id:4096,tag:"kkj",version:"Release 10"};var rf={language:"Kalenjin",location:null,id:4096,tag:"kln",version:"Release 10"};var of={language:"Kamba",location:null,id:4096,tag:"kam",version:"Release 10"};var sf={language:"Kannada",location:null,id:75,tag:"kn",version:"Release 7"};var lf={language:"Kashmiri",location:null,id:96,tag:"ks",version:"Release 10"};var uf={language:"Kazakh",location:null,id:63,tag:"kk",version:"Release 7"};var hf={language:"Khmer",location:null,id:83,tag:"km",version:"Release 7"};var cf={language:"K'iche",location:null,id:134,tag:"quc",version:"Release 10"};var ff={language:"Kikuyu",location:null,id:4096,tag:"ki",version:"Release 10"};var df={language:"Kinyarwanda",location:null,id:135,tag:"rw",version:"Release 7"};var gf={language:"Kiswahili",location:null,id:65,tag:"sw",version:"Release 7"};var pf={language:"Konkani",location:null,id:87,tag:"kok",version:"Release 7"};var vf={language:"Korean",location:null,id:18,tag:"ko",version:"Release 7"};var mf={language:"Koyra Chiini",location:null,id:4096,tag:"khq",version:"Release 10"};var yf={language:"Koyraboro Senni",location:null,id:4096,tag:"ses",version:"Release 10"};var _f={language:"Kwasio",location:null,id:4096,tag:"nmg",version:"Release 10"};var bf={language:"Kyrgyz",location:null,id:64,tag:"ky",version:"Release 7"};var wf={language:"Lakota",location:null,id:4096,tag:"lkt",version:"Release 10"};var xf={language:"Langi",location:null,id:4096,tag:"lag",version:"Release 10"};var kf={language:"Lao",location:null,id:84,tag:"lo",version:"Release 7"};var Sf={language:"Latvian",location:null,id:38,tag:"lv",version:"Release 7"};var Cf={language:"Lingala",location:null,id:4096,tag:"ln",version:"Release 10"};var Ef={language:"Lithuanian",location:null,id:39,tag:"lt",version:"Release 7"};var Af={language:"Low German",location:null,id:4096,tag:"nds",version:"Release 10.2"};var Rf={language:"Lower Sorbian",location:null,id:31790,tag:"dsb",version:"Windows 7"};var Mf={language:"Luba-Katanga",location:null,id:4096,tag:"lu",version:"Release 10"};var Tf={language:"Luo",location:null,id:4096,tag:"luo",version:"Release 10"};var Bf={language:"Luxembourgish",location:null,id:110,tag:"lb",version:"Release 7"};var Nf={language:"Luyia",location:null,id:4096,tag:"luy",version:"Release 10"};var Pf={language:"Macedonian",location:null,id:47,tag:"mk",version:"Release 7"};var Df={language:"Machame",location:null,id:4096,tag:"jmc",version:"Release 10"};var Of={language:"Makhuwa-Meetto",location:null,id:4096,tag:"mgh",version:"Release 10"};var zf={language:"Makonde",location:null,id:4096,tag:"kde",version:"Release 10"};var Ff={language:"Malagasy",location:null,id:4096,tag:"mg",version:"Release 8.1"};var Lf={language:"Malay",location:null,id:62,tag:"ms",version:"Release 7"};var If={language:"Malayalam",location:null,id:76,tag:"ml",version:"Release 7"};var jf={language:"Maltese",location:null,id:58,tag:"mt",version:"Release 7"};var Hf={language:"Manx",location:null,id:4096,tag:"gv",version:"Release 10"};var Vf={language:"Maori",location:null,id:129,tag:"mi",version:"Release 7"};var Gf={language:"Mapudungun",location:null,id:122,tag:"arn",version:"Release 7"};var Uf={language:"Marathi",location:null,id:78,tag:"mr",version:"Release 7"};var Wf={language:"Masai",location:null,id:4096,tag:"mas",version:"Release 10"};var Kf={language:"Meru",location:null,id:4096,tag:"mer",version:"Release 10"};var qf={language:"Meta'",location:null,id:4096,tag:"mgo",version:"Release 10"};var Yf={language:"Mohawk",location:null,id:124,tag:"moh",version:"Release 7"};var Xf={language:"Mongolian (Cyrillic)",location:null,id:80,tag:"mn",version:"Release 7"};var $f={language:"Morisyen",location:null,id:4096,tag:"mfe",version:"Release 10"};var Zf={language:"Mundang",location:null,id:4096,tag:"mua",version:"Release 10"};var Jf={language:"N'ko",location:null,id:4096,tag:"nqo",version:"Release 8.1"};var Qf={language:"Nama",location:null,id:4096,tag:"naq",version:"Release 10"};var ed={language:"Nepali",location:null,id:97,tag:"ne",version:"Release 7"};var td={language:"Ngiemboon",location:null,id:4096,tag:"nnh",version:"Release 10"};var nd={language:"Ngomba",location:null,id:4096,tag:"jgo",version:"Release 10"};var id={language:"North Ndebele",location:null,id:4096,tag:"nd",version:"Release 10"};var ad={language:"Norwegian (Bokmal)",location:null,id:20,tag:"no",version:"Release 7"};var rd={language:"Norwegian (Bokmal)",location:null,id:31764,tag:"nb",version:"Release 7"};var od={language:"Norwegian (Nynorsk)",location:null,id:30740,tag:"nn",version:"Release 7"};var sd={language:"Nuer",location:null,id:4096,tag:"nus",version:"Release 10"};var ld={language:"Nyankole",location:null,id:4096,tag:"nyn",version:"Release 10"};var ud={language:"Occitan",location:null,id:130,tag:"oc",version:"Release 7"};var hd={language:"Odia",location:null,id:72,tag:"or",version:"Release 7"};var cd={language:"Oromo",location:null,id:114,tag:"om",version:"Release 8.1"};var fd={language:"Ossetian",location:null,id:4096,tag:"os",version:"Release 10"};var dd={language:"Pashto",location:null,id:99,tag:"ps",version:"Release 7"};var gd={language:"Persian",location:null,id:41,tag:"fa",version:"Release 7"};var pd={language:"Polish",location:null,id:21,tag:"pl",version:"Release 7"};var vd={language:"Portuguese",location:null,id:22,tag:"pt",version:"Release 7"};var md={language:"Punjabi",location:null,id:70,tag:"pa",version:"Release 7"};var yd={language:"Quechua",location:null,id:107,tag:"quz",version:"Release 7"};var _d={language:"Ripuarian",location:null,id:4096,tag:"ksh",version:"Release 10"};var bd={language:"Romanian",location:null,id:24,tag:"ro",version:"Release 7"};var wd={language:"Romansh",location:null,id:23,tag:"rm",version:"Release 7"};var xd={language:"Rombo",location:null,id:4096,tag:"rof",version:"Release 10"};var kd={language:"Rundi",location:null,id:4096,tag:"rn",version:"Release 10"};var Sd={language:"Russian",location:null,id:25,tag:"ru",version:"Release 7"};var Cd={language:"Rwa",location:null,id:4096,tag:"rwk",version:"Release 10"};var Ed={language:"Saho",location:null,id:4096,tag:"ssy",version:"Release 10"};var Ad={language:"Sakha",location:null,id:133,tag:"sah",version:"Release 7"};var Rd={language:"Samburu",location:null,id:4096,tag:"saq",version:"Release 10"};var Md={language:"Sami (Inari)",location:null,id:28731,tag:"smn",version:"Windows 7"};var Td={language:"Sami (Lule)",location:null,id:31803,tag:"smj",version:"Windows 7"};var Bd={language:"Sami (Northern)",location:null,id:59,tag:"se",version:"Release 7"};var Nd={language:"Sami (Skolt)",location:null,id:29755,tag:"sms",version:"Windows 7"};var Pd={language:"Sami (Southern)",location:null,id:30779,tag:"sma",version:"Windows 7"};var Dd={language:"Sango",location:null,id:4096,tag:"sg",version:"Release 10"};var Od={language:"Sangu",location:null,id:4096,tag:"sbp",version:"Release 10"};var zd={language:"Sanskrit",location:null,id:79,tag:"sa",version:"Release 7"};var Fd={language:"Scottish Gaelic",location:null,id:145,tag:"gd",version:"Windows 7"};var Ld={language:"Sena",location:null,id:4096,tag:"seh",version:"Release 10"};var Id={language:"Serbian (Latin)",location:null,id:31770,tag:"sr",version:"Release 7"};var jd={language:"Sesotho sa Leboa",location:null,id:108,tag:"nso",version:"Release 7"};var Hd={language:"Setswana",location:null,id:50,tag:"tn",version:"Release 7"};var Vd={language:"Shambala",location:null,id:4096,tag:"ksb",version:"Release 10"};var Gd={language:"Shona",location:null,id:4096,tag:"sn",version:"Release 8.1"};var Ud={language:"Sindhi",location:null,id:89,tag:"sd",version:"Release 8"};var Wd={language:"Sinhala",location:null,id:91,tag:"si",version:"Release 7"};var Kd={language:"Slovak",location:null,id:27,tag:"sk",version:"Release 7"};var qd={language:"Slovenian",location:null,id:36,tag:"sl",version:"Release 7"};var Yd={language:"Soga",location:null,id:4096,tag:"xog",version:"Release 10"};var Xd={language:"Somali",location:null,id:119,tag:"so",version:"Release 8.1"};var $d={language:"Sotho",location:null,id:48,tag:"st",version:"Release 8.1"};var Zd={language:"South Ndebele",location:null,id:4096,tag:"nr",version:"Release 10"};var Jd={language:"Spanish",location:null,id:10,tag:"es",version:"Release 7"};var Qd={language:"Standard Moroccan Tamazight",location:null,id:4096,tag:"zgh",version:"Release 8.1"};var eg={language:"Swati",location:null,id:4096,tag:"ss",version:"Release 10"};var tg={language:"Swedish",location:null,id:29,tag:"sv",version:"Release 7"};var ng={language:"Syriac",location:null,id:90,tag:"syr",version:"Release 7"};var ig={language:"Tachelhit",location:null,id:4096,tag:"shi",version:"Release 10"};var ag={language:"Taita",location:null,id:4096,tag:"dav",version:"Release 10"};var rg={language:"Tajik (Cyrillic)",location:null,id:40,tag:"tg",version:"Release 7"};var og={language:"Tamazight (Latin)",location:null,id:95,tag:"tzm",version:"Release 7"};var sg={language:"Tamil",location:null,id:73,tag:"ta",version:"Release 7"};var lg={language:"Tasawaq",location:null,id:4096,tag:"twq",version:"Release 10"};var ug={language:"Tatar",location:null,id:68,tag:"tt",version:"Release 7"};var hg={language:"Telugu",location:null,id:74,tag:"te",version:"Release 7"};var cg={language:"Teso",location:null,id:4096,tag:"teo",version:"Release 10"};var fg={language:"Thai",location:null,id:30,tag:"th",version:"Release 7"};var dg={language:"Tibetan",location:null,id:81,tag:"bo",version:"Release 7"};var gg={language:"Tigre",location:null,id:4096,tag:"tig",version:"Release 10"};var pg={language:"Tigrinya",location:null,id:115,tag:"ti",version:"Release 8"};var vg={language:"Tongan",location:null,id:4096,tag:"to",version:"Release 10"};var mg={language:"Tsonga",location:null,id:49,tag:"ts",version:"Release 8.1"};var yg={language:"Turkish",location:null,id:31,tag:"tr",version:"Release 7"};var _g={language:"Turkmen",location:null,id:66,tag:"tk",version:"Release 7"};var bg={language:"Ukrainian",location:null,id:34,tag:"uk",version:"Release 7"};var wg={language:"Upper Sorbian",location:null,id:46,tag:"hsb",version:"Release 7"};var xg={language:"Urdu",location:null,id:32,tag:"ur",version:"Release 7"};var kg={language:"Uyghur",location:null,id:128,tag:"ug",version:"Release 7"};var Sg={language:"Uzbek (Latin)",location:null,id:67,tag:"uz",version:"Release 7"};var Cg={language:"Vai",location:null,id:4096,tag:"vai",version:"Release 10"};var Eg={language:"Venda",location:null,id:51,tag:"ve",version:"Release 10"};var Ag={language:"Vietnamese",location:null,id:42,tag:"vi",version:"Release 7"};var Rg={language:"Volapük",location:null,id:4096,tag:"vo",version:"Release 10"};var Mg={language:"Vunjo",location:null,id:4096,tag:"vun",version:"Release 10"};var Tg={language:"Walser",location:null,id:4096,tag:"wae",version:"Release 10"};var Bg={language:"Welsh",location:null,id:82,tag:"cy",version:"Release 7"};var Ng={language:"Wolaytta",location:null,id:4096,tag:"wal",version:"Release 10"};var Pg={language:"Wolof",location:null,id:136,tag:"wo",version:"Release 7"};var Dg={language:"Xhosa",location:null,id:52,tag:"xh",version:"Release 7"};var Og={language:"Yangben",location:null,id:4096,tag:"yav",version:"Release 10"};var zg={language:"Yi",location:null,id:120,tag:"ii",version:"Release 7"};var Fg={language:"Yoruba",location:null,id:106,tag:"yo",version:"Release 7"};var Lg={language:"Zarma",location:null,id:4096,tag:"dje",version:"Release 10"};var Ig={language:"Zulu",location:null,id:53,tag:"zu",version:"Release 7"};var jg={aa:Ah,"aa-dj":{language:"Afar",location:"Djibouti",id:4096,tag:"aa-DJ",version:"Release 10"},"aa-er":{language:"Afar",location:"Eritrea",id:4096,tag:"aa-ER",version:"Release 10"},"aa-et":{language:"Afar",location:"Ethiopia",id:4096,tag:"aa-ET",version:"Release 10"},af:Rh,"af-na":{language:"Afrikaans",location:"Namibia",id:4096,tag:"af-NA",version:"Release 10"},"af-za":{language:"Afrikaans",location:"South Africa",id:1078,tag:"af-ZA",version:"Release B"},agq:Mh,"agq-cm":{language:"Aghem",location:"Cameroon",id:4096,tag:"agq-CM",version:"Release 10"},ak:Th,"ak-gh":{language:"Akan",location:"Ghana",id:4096,tag:"ak-GH",version:"Release 10"},sq:Bh,"sq-al":{language:"Albanian",location:"Albania",id:1052,tag:"sq-AL",version:"Release B"},"sq-mk":{language:"Albanian",location:"North Macedonia",id:4096,tag:"sq-MK",version:"Release 10"},gsw:Nh,"gsw-fr":{language:"Alsatian",location:"France",id:1156,tag:"gsw-FR",version:"Release V"},"gsw-li":{language:"Alsatian",location:"Liechtenstein",id:4096,tag:"gsw-LI",version:"Release 10"},"gsw-ch":{language:"Alsatian",location:"Switzerland",id:4096,tag:"gsw-CH",version:"Release 10"},am:Ph,"am-et":{language:"Amharic",location:"Ethiopia",id:1118,tag:"am-ET",version:"Release V"},ar:Dh,"ar-dz":{language:"Arabic",location:"Algeria",id:5121,tag:"ar-DZ",version:"Release B"},"ar-bh":{language:"Arabic",location:"Bahrain",id:15361,tag:"ar-BH",version:"Release B"},"ar-td":{language:"Arabic",location:"Chad",id:4096,tag:"ar-TD",version:"Release 10"},"ar-km":{language:"Arabic",location:"Comoros",id:4096,tag:"ar-KM",version:"Release 10"},"ar-dj":{language:"Arabic",location:"Djibouti",id:4096,tag:"ar-DJ",version:"Release 10"},"ar-eg":{language:"Arabic",location:"Egypt",id:3073,tag:"ar-EG",version:"Release B"},"ar-er":{language:"Arabic",location:"Eritrea",id:4096,tag:"ar-ER",version:"Release 10"},"ar-iq":{language:"Arabic",location:"Iraq",id:2049,tag:"ar-IQ",version:"Release B"},"ar-il":{language:"Arabic",location:"Israel",id:4096,tag:"ar-IL",version:"Release 10"},"ar-jo":{language:"Arabic",location:"Jordan",id:11265,tag:"ar-JO",version:"Release B"},"ar-kw":{language:"Arabic",location:"Kuwait",id:13313,tag:"ar-KW",version:"Release B"},"ar-lb":{language:"Arabic",location:"Lebanon",id:12289,tag:"ar-LB",version:"Release B"},"ar-ly":{language:"Arabic",location:"Libya",id:4097,tag:"ar-LY",version:"Release B"},"ar-mr":{language:"Arabic",location:"Mauritania",id:4096,tag:"ar-MR",version:"Release 10"},"ar-ma":{language:"Arabic",location:"Morocco",id:6145,tag:"ar-MA",version:"Release B"},"ar-om":{language:"Arabic",location:"Oman",id:8193,tag:"ar-OM",version:"Release B"},"ar-ps":{language:"Arabic",location:"Palestinian Authority",id:4096,tag:"ar-PS",version:"Release 10"},"ar-qa":{language:"Arabic",location:"Qatar",id:16385,tag:"ar-QA",version:"Release B"},"ar-sa":{language:"Arabic",location:"Saudi Arabia",id:1025,tag:"ar-SA",version:"Release B"},"ar-so":{language:"Arabic",location:"Somalia",id:4096,tag:"ar-SO",version:"Release 10"},"ar-ss":{language:"Arabic",location:"South Sudan",id:4096,tag:"ar-SS",version:"Release 10"},"ar-sd":{language:"Arabic",location:"Sudan",id:4096,tag:"ar-SD",version:"Release 10"},"ar-sy":{language:"Arabic",location:"Syria",id:10241,tag:"ar-SY",version:"Release B"},"ar-tn":{language:"Arabic",location:"Tunisia",id:7169,tag:"ar-TN",version:"Release B"},"ar-ae":{language:"Arabic",location:"U.A.E.",id:14337,tag:"ar-AE",version:"Release B"},"ar-001":{language:"Arabic",location:"World",id:4096,tag:"ar-001",version:"Release 10"},"ar-ye":{language:"Arabic",location:"Yemen",id:9217,tag:"ar-YE",version:"Release B"},hy:Oh,"hy-am":{language:"Armenian",location:"Armenia",id:1067,tag:"hy-AM",version:"Release C"},as:zh,"as-in":{language:"Assamese",location:"India",id:1101,tag:"as-IN",version:"Release V"},ast:Fh,"ast-es":{language:"Asturian",location:"Spain",id:4096,tag:"ast-ES",version:"Release 10"},asa:Lh,"asa-tz":{language:"Asu",location:"Tanzania",id:4096,tag:"asa-TZ",version:"Release 10"},"az-cyrl":{language:"Azerbaijani (Cyrillic)",location:null,id:29740,tag:"az-Cyrl",version:"Windows 7"},"az-cyrl-az":{language:"Azerbaijani (Cyrillic)",location:"Azerbaijan",id:2092,tag:"az-Cyrl-AZ",version:"Release C"},az:Ih,"az-latn":{language:"Azerbaijani (Latin)",location:null,id:30764,tag:"az-Latn",version:"Windows 7"},"az-latn-az":{language:"Azerbaijani (Latin)",location:"Azerbaijan",id:1068,tag:"az-Latn-AZ",version:"Release C"},ksf:jh,"ksf-cm":{language:"Bafia",location:"Cameroon",id:4096,tag:"ksf-CM",version:"Release 10"},bm:Hh,"bm-latn-ml":{language:"Bamanankan (Latin)",location:"Mali",id:4096,tag:"bm-Latn-ML",version:"Release 10"},bn:Vh,"bn-bd":{language:"Bangla",location:"Bangladesh",id:2117,tag:"bn-BD",version:"Release V"},"bn-in":{language:"Bangla",location:"India",id:1093,tag:"bn-IN",version:"Release E1"},bas:Gh,"bas-cm":{language:"Basaa",location:"Cameroon",id:4096,tag:"bas-CM",version:"Release 10"},ba:Uh,"ba-ru":{language:"Bashkir",location:"Russia",id:1133,tag:"ba-RU",version:"Release V"},eu:Wh,"eu-es":{language:"Basque",location:"Spain",id:1069,tag:"eu-ES",version:"Release B"},be:Kh,"be-by":{language:"Belarusian",location:"Belarus",id:1059,tag:"be-BY",version:"Release B"},bem:qh,"bem-zm":{language:"Bemba",location:"Zambia",id:4096,tag:"bem-ZM",version:"Release 10"},bez:Yh,"bez-tz":{language:"Bena",location:"Tanzania",id:4096,tag:"bez-TZ",version:"Release 10"},byn:Xh,"byn-er":{language:"Blin",location:"Eritrea",id:4096,tag:"byn-ER",version:"Release 10"},brx:$h,"brx-in":{language:"Bodo",location:"India",id:4096,tag:"brx-IN",version:"Release 10"},"bs-cyrl":{language:"Bosnian (Cyrillic)",location:null,id:25626,tag:"bs-Cyrl",version:"Windows 7"},"bs-cyrl-ba":{language:"Bosnian (Cyrillic)",location:"Bosnia and Herzegovina",id:8218,tag:"bs-Cyrl-BA",version:"Release E1"},"bs-latn":{language:"Bosnian (Latin)",location:null,id:26650,tag:"bs-Latn",version:"Windows 7"},bs:Zh,"bs-latn-ba":{language:"Bosnian (Latin)",location:"Bosnia and Herzegovina",id:5146,tag:"bs-Latn-BA",version:"Release E1"},br:Jh,"br-fr":{language:"Breton",location:"France",id:1150,tag:"br-FR",version:"Release V"},bg:Qh,"bg-bg":{language:"Bulgarian",location:"Bulgaria",id:1026,tag:"bg-BG",version:"Release B"},my:ec,"my-mm":{language:"Burmese",location:"Myanmar",id:1109,tag:"my-MM",version:"Release 8.1"},ca:tc,"ca-ad":{language:"Catalan",location:"Andorra",id:4096,tag:"ca-AD",version:"Release 10"},"ca-fr":{language:"Catalan",location:"France",id:4096,tag:"ca-FR",version:"Release 10"},"ca-it":{language:"Catalan",location:"Italy",id:4096,tag:"ca-IT",version:"Release 10"},"ca-es":{language:"Catalan",location:"Spain",id:1027,tag:"ca-ES",version:"Release B"},ceb:nc,"ceb-latn":{language:"Cebuan (Latin)",location:null,id:4096,tag:"ceb-Latn",version:"Release 10.5"},"ceb-latn-ph":{language:"Cebuan (Latin)",location:"Philippines",id:4096,tag:"ceb-Latn-PH",version:"Release 10.5"},"tzm-latn-":{language:"Central Atlas Tamazight (Latin)",location:"Morocco",id:4096,tag:"tzm-Latn-",version:"Release 10"},ku:ic,"ku-arab":{language:"Central Kurdish",location:null,id:31890,tag:"ku-Arab",version:"Release 8"},"ku-arab-iq":{language:"Central Kurdish",location:"Iraq",id:1170,tag:"ku-Arab-IQ",version:"Release 8"},ccp:ac,"ccp-cakm":{language:"Chakma",location:"Chakma",id:4096,tag:"ccp-Cakm",version:"Release 10.5"},"ccp-cakm-":{language:"Chakma",location:"India",id:4096,tag:"ccp-Cakm-",version:"Release 10.5"},"cd-ru":{language:"Chechen",location:"Russia",id:4096,tag:"cd-RU",version:"Release 10.1"},chr:rc,"chr-cher":{language:"Cherokee",location:null,id:31836,tag:"chr-Cher",version:"Release 8"},"chr-cher-us":{language:"Cherokee",location:"United States",id:1116,tag:"chr-Cher-US",version:"Release 8"},cgg:oc,"cgg-ug":{language:"Chiga",location:"Uganda",id:4096,tag:"cgg-UG",version:"Release 10"},"zh-hans":{language:"Chinese (Simplified)",location:null,id:4,tag:"zh-Hans",version:"Release A"},zh:sc,"zh-cn":{language:"Chinese (Simplified)",location:"People's Republic of China",id:2052,tag:"zh-CN",version:"Release A"},"zh-sg":{language:"Chinese (Simplified)",location:"Singapore",id:4100,tag:"zh-SG",version:"Release A"},"zh-hant":{language:"Chinese (Traditional)",location:null,id:31748,tag:"zh-Hant",version:"Release A"},"zh-hk":{language:"Chinese (Traditional)",location:"Hong Kong S.A.R.",id:3076,tag:"zh-HK",version:"Release A"},"zh-mo":{language:"Chinese (Traditional)",location:"Macao S.A.R.",id:5124,tag:"zh-MO",version:"Release D"},"zh-tw":{language:"Chinese (Traditional)",location:"Taiwan",id:1028,tag:"zh-TW",version:"Release A"},"cu-ru":{language:"Church Slavic",location:"Russia",id:4096,tag:"cu-RU",version:"Release 10.1"},swc:lc,"swc-cd":{language:"Congo Swahili",location:"Congo DRC",id:4096,tag:"swc-CD",version:"Release 10"},kw:uc,"kw-gb":{language:"Cornish",location:"United Kingdom",id:4096,tag:"kw-GB",version:"Release 10"},co:hc,"co-fr":{language:"Corsican",location:"France",id:1155,tag:"co-FR",version:"Release V"},"hr,":{language:"Croatian",location:null,id:26,tag:"hr,",version:"Release 7"},"hr-hr":{language:"Croatian",location:"Croatia",id:1050,tag:"hr-HR",version:"Release A"},"hr-ba":{language:"Croatian (Latin)",location:"Bosnia and Herzegovina",id:4122,tag:"hr-BA",version:"Release E1"},cs:cc,"cs-cz":{language:"Czech",location:"Czech Republic",id:1029,tag:"cs-CZ",version:"Release A"},da:fc,"da-dk":{language:"Danish",location:"Denmark",id:1030,tag:"da-DK",version:"Release A"},"da-gl":{language:"Danish",location:"Greenland",id:4096,tag:"da-GL",version:"Release 10"},prs:dc,"prs-af":{language:"Dari",location:"Afghanistan",id:1164,tag:"prs-AF",version:"Release V"},dv:gc,"dv-mv":{language:"Divehi",location:"Maldives",id:1125,tag:"dv-MV",version:"Release D"},dua:pc,"dua-cm":{language:"Duala",location:"Cameroon",id:4096,tag:"dua-CM",version:"Release 10"},nl:vc,"nl-aw":{language:"Dutch",location:"Aruba",id:4096,tag:"nl-AW",version:"Release 10"},"nl-be":{language:"Dutch",location:"Belgium",id:2067,tag:"nl-BE",version:"Release A"},"nl-bq":{language:"Dutch",location:"Bonaire, Sint Eustatius and Saba",id:4096,tag:"nl-BQ",version:"Release 10"},"nl-cw":{language:"Dutch",location:"Curaçao",id:4096,tag:"nl-CW",version:"Release 10"},"nl-nl":{language:"Dutch",location:"Netherlands",id:1043,tag:"nl-NL",version:"Release A"},"nl-sx":{language:"Dutch",location:"Sint Maarten",id:4096,tag:"nl-SX",version:"Release 10"},"nl-sr":{language:"Dutch",location:"Suriname",id:4096,tag:"nl-SR",version:"Release 10"},dz:mc,"dz-bt":{language:"Dzongkha",location:"Bhutan",id:3153,tag:"dz-BT",version:"Release 10"},ebu:yc,"ebu-ke":{language:"Embu",location:"Kenya",id:4096,tag:"ebu-KE",version:"Release 10"},en:_c,"en-as":{language:"English",location:"American Samoa",id:4096,tag:"en-AS",version:"Release 10"},"en-ai":{language:"English",location:"Anguilla",id:4096,tag:"en-AI",version:"Release 10"},"en-ag":{language:"English",location:"Antigua and Barbuda",id:4096,tag:"en-AG",version:"Release 10"},"en-au":{language:"English",location:"Australia",id:3081,tag:"en-AU",version:"Release A"},"en-at":{language:"English",location:"Austria",id:4096,tag:"en-AT",version:"Release 10.1"},"en-bs":{language:"English",location:"Bahamas",id:4096,tag:"en-BS",version:"Release 10"},"en-bb":{language:"English",location:"Barbados",id:4096,tag:"en-BB",version:"Release 10"},"en-be":{language:"English",location:"Belgium",id:4096,tag:"en-BE",version:"Release 10"},"en-bz":{language:"English",location:"Belize",id:10249,tag:"en-BZ",version:"Release B"},"en-bm":{language:"English",location:"Bermuda",id:4096,tag:"en-BM",version:"Release 10"},"en-bw":{language:"English",location:"Botswana",id:4096,tag:"en-BW",version:"Release 10"},"en-io":{language:"English",location:"British Indian Ocean Territory",id:4096,tag:"en-IO",version:"Release 10"},"en-vg":{language:"English",location:"British Virgin Islands",id:4096,tag:"en-VG",version:"Release 10"},"en-bi":{language:"English",location:"Burundi",id:4096,tag:"en-BI",version:"Release 10.1"},"en-cm":{language:"English",location:"Cameroon",id:4096,tag:"en-CM",version:"Release 10"},"en-ca":{language:"English",location:"Canada",id:4105,tag:"en-CA",version:"Release A"},"en-029":{language:"English",location:"Caribbean",id:9225,tag:"en-029",version:"Release B"},"en-ky":{language:"English",location:"Cayman Islands",id:4096,tag:"en-KY",version:"Release 10"},"en-cx":{language:"English",location:"Christmas Island",id:4096,tag:"en-CX",version:"Release 10"},"en-cc":{language:"English",location:"Cocos [Keeling] Islands",id:4096,tag:"en-CC",version:"Release 10"},"en-ck":{language:"English",location:"Cook Islands",id:4096,tag:"en-CK",version:"Release 10"},"en-cy":{language:"English",location:"Cyprus",id:4096,tag:"en-CY",version:"Release 10.1"},"en-dk":{language:"English",location:"Denmark",id:4096,tag:"en-DK",version:"Release 10.1"},"en-dm":{language:"English",location:"Dominica",id:4096,tag:"en-DM",version:"Release 10"},"en-er":{language:"English",location:"Eritrea",id:4096,tag:"en-ER",version:"Release 10"},"en-150":{language:"English",location:"Europe",id:4096,tag:"en-150",version:"Release 10"},"en-fk":{language:"English",location:"Falkland Islands",id:4096,tag:"en-FK",version:"Release 10"},"en-fi":{language:"English",location:"Finland",id:4096,tag:"en-FI",version:"Release 10.1"},"en-fj":{language:"English",location:"Fiji",id:4096,tag:"en-FJ",version:"Release 10"},"en-gm":{language:"English",location:"Gambia",id:4096,tag:"en-GM",version:"Release 10"},"en-de":{language:"English",location:"Germany",id:4096,tag:"en-DE",version:"Release 10.1"},"en-gh":{language:"English",location:"Ghana",id:4096,tag:"en-GH",version:"Release 10"},"en-gi":{language:"English",location:"Gibraltar",id:4096,tag:"en-GI",version:"Release 10"},"en-gd":{language:"English",location:"Grenada",id:4096,tag:"en-GD",version:"Release 10"},"en-gu":{language:"English",location:"Guam",id:4096,tag:"en-GU",version:"Release 10"},"en-gg":{language:"English",location:"Guernsey",id:4096,tag:"en-GG",version:"Release 10"},"en-gy":{language:"English",location:"Guyana",id:4096,tag:"en-GY",version:"Release 10"},"en-hk":{language:"English",location:"Hong Kong",id:15369,tag:"en-HK",version:"Release 8.1"},"en-in":{language:"English",location:"India",id:16393,tag:"en-IN",version:"Release V"},"en-ie":{language:"English",location:"Ireland",id:6153,tag:"en-IE",version:"Release A"},"en-im":{language:"English",location:"Isle of Man",id:4096,tag:"en-IM",version:"Release 10"},"en-il":{language:"English",location:"Israel",id:4096,tag:"en-IL",version:"Release 10.1"},"en-jm":{language:"English",location:"Jamaica",id:8201,tag:"en-JM",version:"Release B"},"en-je":{language:"English",location:"Jersey",id:4096,tag:"en-JE",version:"Release 10"},"en-ke":{language:"English",location:"Kenya",id:4096,tag:"en-KE",version:"Release 10"},"en-ki":{language:"English",location:"Kiribati",id:4096,tag:"en-KI",version:"Release 10"},"en-ls":{language:"English",location:"Lesotho",id:4096,tag:"en-LS",version:"Release 10"},"en-lr":{language:"English",location:"Liberia",id:4096,tag:"en-LR",version:"Release 10"},"en-mo":{language:"English",location:"Macao SAR",id:4096,tag:"en-MO",version:"Release 10"},"en-mg":{language:"English",location:"Madagascar",id:4096,tag:"en-MG",version:"Release 10"},"en-mw":{language:"English",location:"Malawi",id:4096,tag:"en-MW",version:"Release 10"},"en-my":{language:"English",location:"Malaysia",id:17417,tag:"en-MY",version:"Release V"},"en-mt":{language:"English",location:"Malta",id:4096,tag:"en-MT",version:"Release 10"},"en-mh":{language:"English",location:"Marshall Islands",id:4096,tag:"en-MH",version:"Release 10"},"en-mu":{language:"English",location:"Mauritius",id:4096,tag:"en-MU",version:"Release 10"},"en-fm":{language:"English",location:"Micronesia",id:4096,tag:"en-FM",version:"Release 10"},"en-ms":{language:"English",location:"Montserrat",id:4096,tag:"en-MS",version:"Release 10"},"en-na":{language:"English",location:"Namibia",id:4096,tag:"en-NA",version:"Release 10"},"en-nr":{language:"English",location:"Nauru",id:4096,tag:"en-NR",version:"Release 10"},"en-nl":{language:"English",location:"Netherlands",id:4096,tag:"en-NL",version:"Release 10.1"},"en-nz":{language:"English",location:"New Zealand",id:5129,tag:"en-NZ",version:"Release A"},"en-ng":{language:"English",location:"Nigeria",id:4096,tag:"en-NG",version:"Release 10"},"en-nu":{language:"English",location:"Niue",id:4096,tag:"en-NU",version:"Release 10"},"en-nf":{language:"English",location:"Norfolk Island",id:4096,tag:"en-NF",version:"Release 10"},"en-mp":{language:"English",location:"Northern Mariana Islands",id:4096,tag:"en-MP",version:"Release 10"},"en-pk":{language:"English",location:"Pakistan",id:4096,tag:"en-PK",version:"Release 10"},"en-pw":{language:"English",location:"Palau",id:4096,tag:"en-PW",version:"Release 10"},"en-pg":{language:"English",location:"Papua New Guinea",id:4096,tag:"en-PG",version:"Release 10"},"en-pn":{language:"English",location:"Pitcairn Islands",id:4096,tag:"en-PN",version:"Release 10"},"en-pr":{language:"English",location:"Puerto Rico",id:4096,tag:"en-PR",version:"Release 10"},"en-ph":{language:"English",location:"Republic of the Philippines",id:13321,tag:"en-PH",version:"Release C"},"en-rw":{language:"English",location:"Rwanda",id:4096,tag:"en-RW",version:"Release 10"},"en-kn":{language:"English",location:"Saint Kitts and Nevis",id:4096,tag:"en-KN",version:"Release 10"},"en-lc":{language:"English",location:"Saint Lucia",id:4096,tag:"en-LC",version:"Release 10"},"en-vc":{language:"English",location:"Saint Vincent and the Grenadines",id:4096,tag:"en-VC",version:"Release 10"},"en-ws":{language:"English",location:"Samoa",id:4096,tag:"en-WS",version:"Release 10"},"en-sc":{language:"English",location:"Seychelles",id:4096,tag:"en-SC",version:"Release 10"},"en-sl":{language:"English",location:"Sierra Leone",id:4096,tag:"en-SL",version:"Release 10"},"en-sg":{language:"English",location:"Singapore",id:18441,tag:"en-SG",version:"Release V"},"en-sx":{language:"English",location:"Sint Maarten",id:4096,tag:"en-SX",version:"Release 10"},"en-si":{language:"English",location:"Slovenia",id:4096,tag:"en-SI",version:"Release 10.1"},"en-sb":{language:"English",location:"Solomon Islands",id:4096,tag:"en-SB",version:"Release 10"},"en-za":{language:"English",location:"South Africa",id:7177,tag:"en-ZA",version:"Release B"},"en-ss":{language:"English",location:"South Sudan",id:4096,tag:"en-SS",version:"Release 10"},"en-sh":{language:"English",location:"St Helena, Ascension, Tristan da Cunha",id:4096,tag:"en-SH",version:"Release 10"},"en-sd":{language:"English",location:"Sudan",id:4096,tag:"en-SD",version:"Release 10"},"en-sz":{language:"English",location:"Swaziland",id:4096,tag:"en-SZ",version:"Release 10"},"en-se":{language:"English",location:"Sweden",id:4096,tag:"en-SE",version:"Release 10.1"},"en-ch":{language:"English",location:"Switzerland",id:4096,tag:"en-CH",version:"Release 10.1"},"en-tz":{language:"English",location:"Tanzania",id:4096,tag:"en-TZ",version:"Release 10"},"en-tk":{language:"English",location:"Tokelau",id:4096,tag:"en-TK",version:"Release 10"},"en-to":{language:"English",location:"Tonga",id:4096,tag:"en-TO",version:"Release 10"},"en-tt":{language:"English",location:"Trinidad and Tobago",id:11273,tag:"en-TT",version:"Release B"},"en-tc":{language:"English",location:"Turks and Caicos Islands",id:4096,tag:"en-TC",version:"Release 10"},"en-tv":{language:"English",location:"Tuvalu",id:4096,tag:"en-TV",version:"Release 10"},"en-ug":{language:"English",location:"Uganda",id:4096,tag:"en-UG",version:"Release 10"},"en-ae":{language:"English",location:"United Arab Emirates",id:19465,tag:"en-AE",version:"Release 10.5"},"en-gb":{language:"English",location:"United Kingdom",id:2057,tag:"en-GB",version:"Release A"},"en-us":{language:"English",location:"United States",id:1033,tag:"en-US",version:"Release A"},"en-um":{language:"English",location:"US Minor Outlying Islands",id:4096,tag:"en-UM",version:"Release 10"},"en-vi":{language:"English",location:"US Virgin Islands",id:4096,tag:"en-VI",version:"Release 10"},"en-vu":{language:"English",location:"Vanuatu",id:4096,tag:"en-VU",version:"Release 10"},"en-001":{language:"English",location:"World",id:4096,tag:"en-001",version:"Release 10"},"en-zm":{language:"English",location:"Zambia",id:4096,tag:"en-ZM",version:"Release 10"},"en-zw":{language:"English",location:"Zimbabwe",id:12297,tag:"en-ZW",version:"Release C"},eo:bc,"eo-001":{language:"Esperanto",location:"World",id:4096,tag:"eo-001",version:"Release 10"},et:wc,"et-ee":{language:"Estonian",location:"Estonia",id:1061,tag:"et-EE",version:"Release B"},ee:xc,"ee-gh":{language:"Ewe",location:"Ghana",id:4096,tag:"ee-GH",version:"Release 10"},"ee-tg":{language:"Ewe",location:"Togo",id:4096,tag:"ee-TG",version:"Release 10"},ewo:kc,"ewo-cm":{language:"Ewondo",location:"Cameroon",id:4096,tag:"ewo-CM",version:"Release 10"},fo:Sc,"fo-dk":{language:"Faroese",location:"Denmark",id:4096,tag:"fo-DK",version:"Release 10.1"},"fo-fo":{language:"Faroese",location:"Faroe Islands",id:1080,tag:"fo-FO",version:"Release B"},fil:Cc,"fil-ph":{language:"Filipino",location:"Philippines",id:1124,tag:"fil-PH",version:"Release E2"},fi:Ec,"fi-fi":{language:"Finnish",location:"Finland",id:1035,tag:"fi-FI",version:"Release A"},fr:Ac,"fr-dz":{language:"French",location:"Algeria",id:4096,tag:"fr-DZ",version:"Release 10"},"fr-be":{language:"French",location:"Belgium",id:2060,tag:"fr-BE",version:"Release A"},"fr-bj":{language:"French",location:"Benin",id:4096,tag:"fr-BJ",version:"Release 10"},"fr-bf":{language:"French",location:"Burkina Faso",id:4096,tag:"fr-BF",version:"Release 10"},"fr-bi":{language:"French",location:"Burundi",id:4096,tag:"fr-BI",version:"Release 10"},"fr-cm":{language:"French",location:"Cameroon",id:11276,tag:"fr-CM",version:"Release 8.1"},"fr-ca":{language:"French",location:"Canada",id:3084,tag:"fr-CA",version:"Release A"},"fr-cf":{language:"French",location:"Central African Republic",id:4096,tag:"fr-CF",version:"Release10"},"fr-td":{language:"French",location:"Chad",id:4096,tag:"fr-TD",version:"Release 10"},"fr-km":{language:"French",location:"Comoros",id:4096,tag:"fr-KM",version:"Release 10"},"fr-cg":{language:"French",location:"Congo",id:4096,tag:"fr-CG",version:"Release 10"},"fr-cd":{language:"French",location:"Congo, DRC",id:9228,tag:"fr-CD",version:"Release 8.1"},"fr-ci":{language:"French",location:"Côte d'Ivoire",id:12300,tag:"fr-CI",version:"Release 8.1"},"fr-dj":{language:"French",location:"Djibouti",id:4096,tag:"fr-DJ",version:"Release 10"},"fr-gq":{language:"French",location:"Equatorial Guinea",id:4096,tag:"fr-GQ",version:"Release 10"},"fr-fr":{language:"French",location:"France",id:1036,tag:"fr-FR",version:"Release A"},"fr-gf":{language:"French",location:"French Guiana",id:4096,tag:"fr-GF",version:"Release 10"},"fr-pf":{language:"French",location:"French Polynesia",id:4096,tag:"fr-PF",version:"Release 10"},"fr-ga":{language:"French",location:"Gabon",id:4096,tag:"fr-GA",version:"Release 10"},"fr-gp":{language:"French",location:"Guadeloupe",id:4096,tag:"fr-GP",version:"Release 10"},"fr-gn":{language:"French",location:"Guinea",id:4096,tag:"fr-GN",version:"Release 10"},"fr-ht":{language:"French",location:"Haiti",id:15372,tag:"fr-HT",version:"Release 8.1"},"fr-lu":{language:"French",location:"Luxembourg",id:5132,tag:"fr-LU",version:"Release A"},"fr-mg":{language:"French",location:"Madagascar",id:4096,tag:"fr-MG",version:"Release 10"},"fr-ml":{language:"French",location:"Mali",id:13324,tag:"fr-ML",version:"Release 8.1"},"fr-mq":{language:"French",location:"Martinique",id:4096,tag:"fr-MQ",version:"Release 10"},"fr-mr":{language:"French",location:"Mauritania",id:4096,tag:"fr-MR",version:"Release 10"},"fr-mu":{language:"French",location:"Mauritius",id:4096,tag:"fr-MU",version:"Release 10"},"fr-yt":{language:"French",location:"Mayotte",id:4096,tag:"fr-YT",version:"Release 10"},"fr-ma":{language:"French",location:"Morocco",id:14348,tag:"fr-MA",version:"Release 8.1"},"fr-nc":{language:"French",location:"New Caledonia",id:4096,tag:"fr-NC",version:"Release 10"},"fr-ne":{language:"French",location:"Niger",id:4096,tag:"fr-NE",version:"Release 10"},"fr-mc":{language:"French",location:"Principality of Monaco",id:6156,tag:"fr-MC",version:"Release A"},"fr-re":{language:"French",location:"Reunion",id:8204,tag:"fr-RE",version:"Release 8.1"},"fr-rw":{language:"French",location:"Rwanda",id:4096,tag:"fr-RW",version:"Release 10"},"fr-bl":{language:"French",location:"Saint Barthélemy",id:4096,tag:"fr-BL",version:"Release 10"},"fr-mf":{language:"French",location:"Saint Martin",id:4096,tag:"fr-MF",version:"Release 10"},"fr-pm":{language:"French",location:"Saint Pierre and Miquelon",id:4096,tag:"fr-PM",version:"Release 10"},"fr-sn":{language:"French",location:"Senegal",id:10252,tag:"fr-SN",version:"Release 8.1"},"fr-sc":{language:"French",location:"Seychelles",id:4096,tag:"fr-SC",version:"Release 10"},"fr-ch":{language:"French",location:"Switzerland",id:4108,tag:"fr-CH",version:"Release A"},"fr-sy":{language:"French",location:"Syria",id:4096,tag:"fr-SY",version:"Release 10"},"fr-tg":{language:"French",location:"Togo",id:4096,tag:"fr-TG",version:"Release 10"},"fr-tn":{language:"French",location:"Tunisia",id:4096,tag:"fr-TN",version:"Release 10"},"fr-vu":{language:"French",location:"Vanuatu",id:4096,tag:"fr-VU",version:"Release 10"},"fr-wf":{language:"French",location:"Wallis and Futuna",id:4096,tag:"fr-WF",version:"Release 10"},fy:Rc,"fy-nl":{language:"Frisian",location:"Netherlands",id:1122,tag:"fy-NL",version:"Release E2"},fur:Mc,"fur-it":{language:"Friulian",location:"Italy",id:4096,tag:"fur-IT",version:"Release 10"},ff:Tc,"ff-latn":{language:"Fulah (Latin)",location:null,id:31847,tag:"ff-Latn",version:"Release 8"},"ff-latn-bf":{language:"Fulah (Latin)",location:"Burkina Faso",id:4096,tag:"ff-Latn-BF",version:"Release 10.4"},"ff-cm":{language:"Fulah",location:"Cameroon",id:4096,tag:"ff-CM",version:"Release 10"},"ff-latn-cm":{language:"Fulah (Latin)",location:"Cameroon",id:4096,tag:"ff-Latn-CM",version:"Release 10.4"},"ff-latn-gm":{language:"Fulah (Latin)",location:"Gambia",id:4096,tag:"ff-Latn-GM",version:"Release 10.4"},"ff-latn-gh":{language:"Fulah (Latin)",location:"Ghana",id:4096,tag:"ff-Latn-GH",version:"Release 10.4"},"ff-gn":{language:"Fulah",location:"Guinea",id:4096,tag:"ff-GN",version:"Release 10"},"ff-latn-gn":{language:"Fulah (Latin)",location:"Guinea",id:4096,tag:"ff-Latn-GN",version:"Release 10.4"},"ff-latn-gw":{language:"Fulah (Latin)",location:"Guinea-Bissau",id:4096,tag:"ff-Latn-GW",version:"Release 10.4"},"ff-latn-lr":{language:"Fulah (Latin)",location:"Liberia",id:4096,tag:"ff-Latn-LR",version:"Release 10.4"},"ff-mr":{language:"Fulah",location:"Mauritania",id:4096,tag:"ff-MR",version:"Release 10"},"ff-latn-mr":{language:"Fulah (Latin)",location:"Mauritania",id:4096,tag:"ff-Latn-MR",version:"Release 10.4"},"ff-latn-ne":{language:"Fulah (Latin)",location:"Niger",id:4096,tag:"ff-Latn-NE",version:"Release 10.4"},"ff-ng":{language:"Fulah",location:"Nigeria",id:4096,tag:"ff-NG",version:"Release 10"},"ff-latn-ng":{language:"Fulah (Latin)",location:"Nigeria",id:4096,tag:"ff-Latn-NG",version:"Release 10.4"},"ff-latn-sn":{language:"Fulah",location:"Senegal",id:2151,tag:"ff-Latn-SN",version:"Release 8"},"ff-latn-sl":{language:"Fulah (Latin)",location:"Sierra Leone",id:4096,tag:"ff-Latn-SL",version:"Release 10.4"},gl:Bc,"gl-es":{language:"Galician",location:"Spain",id:1110,tag:"gl-ES",version:"Release D"},lg:Nc,"lg-ug":{language:"Ganda",location:"Uganda",id:4096,tag:"lg-UG",version:"Release 10"},ka:Pc,"ka-ge":{language:"Georgian",location:"Georgia",id:1079,tag:"ka-GE",version:"Release C"},de:Dc,"de-at":{language:"German",location:"Austria",id:3079,tag:"de-AT",version:"Release A"},"de-be":{language:"German",location:"Belgium",id:4096,tag:"de-BE",version:"Release 10"},"de-de":{language:"German",location:"Germany",id:1031,tag:"de-DE",version:"Release A"},"de-it":{language:"German",location:"Italy",id:4096,tag:"de-IT",version:"Release 10.2"},"de-li":{language:"German",location:"Liechtenstein",id:5127,tag:"de-LI",version:"Release B"},"de-lu":{language:"German",location:"Luxembourg",id:4103,tag:"de-LU",version:"Release B"},"de-ch":{language:"German",location:"Switzerland",id:2055,tag:"de-CH",version:"Release A"},el:Oc,"el-cy":{language:"Greek",location:"Cyprus",id:4096,tag:"el-CY",version:"Release 10"},"el-gr":{language:"Greek",location:"Greece",id:1032,tag:"el-GR",version:"Release A"},kl:zc,"kl-gl":{language:"Greenlandic",location:"Greenland",id:1135,tag:"kl-GL",version:"Release V"},gn:Fc,"gn-py":{language:"Guarani",location:"Paraguay",id:1140,tag:"gn-PY",version:"Release 8.1"},gu:Lc,"gu-in":{language:"Gujarati",location:"India",id:1095,tag:"gu-IN",version:"Release D"},guz:Ic,"guz-ke":{language:"Gusii",location:"Kenya",id:4096,tag:"guz-KE",version:"Release 10"},ha:jc,"ha-latn":{language:"Hausa (Latin)",location:null,id:31848,tag:"ha-Latn",version:"Windows 7"},"ha-latn-gh":{language:"Hausa (Latin)",location:"Ghana",id:4096,tag:"ha-Latn-GH",version:"Release 10"},"ha-latn-ne":{language:"Hausa (Latin)",location:"Niger",id:4096,tag:"ha-Latn-NE",version:"Release 10"},"ha-latn-ng":{language:"Hausa (Latin)",location:"Nigeria",id:1128,tag:"ha-Latn-NG",version:"Release V"},haw:Hc,"haw-us":{language:"Hawaiian",location:"United States",id:1141,tag:"haw-US",version:"Release 8"},he:Vc,"he-il":{language:"Hebrew",location:"Israel",id:1037,tag:"he-IL",version:"Release B"},hi:Gc,"hi-in":{language:"Hindi",location:"India",id:1081,tag:"hi-IN",version:"Release C"},hu:Uc,"hu-hu":{language:"Hungarian",location:"Hungary",id:1038,tag:"hu-HU",version:"Release A"},is:Wc,"is-is":{language:"Icelandic",location:"Iceland",id:1039,tag:"is-IS",version:"Release A"},ig:Kc,"ig-ng":{language:"Igbo",location:"Nigeria",id:1136,tag:"ig-NG",version:"Release V"},id:qc,"id-id":{language:"Indonesian",location:"Indonesia",id:1057,tag:"id-ID",version:"Release B"},ia:Yc,"ia-fr":{language:"Interlingua",location:"France",id:4096,tag:"ia-FR",version:"Release 10"},"ia-001":{language:"Interlingua",location:"World",id:4096,tag:"ia-001",version:"Release 10"},iu:Xc,"iu-latn":{language:"Inuktitut (Latin)",location:null,id:31837,tag:"iu-Latn",version:"Windows 7"},"iu-latn-ca":{language:"Inuktitut (Latin)",location:"Canada",id:2141,tag:"iu-Latn-CA",version:"Release E2"},"iu-cans":{language:"Inuktitut (Syllabics)",location:null,id:30813,tag:"iu-Cans",version:"Windows 7"},"iu-cans-ca":{language:"Inuktitut (Syllabics)",location:"Canada",id:1117,tag:"iu-Cans-CA",version:"Release V"},ga:$c,"ga-ie":{language:"Irish",location:"Ireland",id:2108,tag:"ga-IE",version:"Release E2"},it:Zc,"it-it":{language:"Italian",location:"Italy",id:1040,tag:"it-IT",version:"Release A"},"it-sm":{language:"Italian",location:"San Marino",id:4096,tag:"it-SM",version:"Release 10"},"it-ch":{language:"Italian",location:"Switzerland",id:2064,tag:"it-CH",version:"Release A"},"it-va":{language:"Italian",location:"Vatican City",id:4096,tag:"it-VA",version:"Release 10.3"},ja:Jc,"ja-jp":{language:"Japanese",location:"Japan",id:1041,tag:"ja-JP",version:"Release A"},jv:Qc,"jv-latn":{language:"Javanese",location:"Latin",id:4096,tag:"jv-Latn",version:"Release 8.1"},"jv-latn-id":{language:"Javanese",location:"Latin, Indonesia",id:4096,tag:"jv-Latn-ID",version:"Release 8.1"},dyo:ef,"dyo-sn":{language:"Jola-Fonyi",location:"Senegal",id:4096,tag:"dyo-SN",version:"Release 10"},kea:tf,"kea-cv":{language:"Kabuverdianu",location:"Cabo Verde",id:4096,tag:"kea-CV",version:"Release 10"},kab:nf,"kab-dz":{language:"Kabyle",location:"Algeria",id:4096,tag:"kab-DZ",version:"Release 10"},kkj:af,"kkj-cm":{language:"Kako",location:"Cameroon",id:4096,tag:"kkj-CM",version:"Release 10"},kln:rf,"kln-ke":{language:"Kalenjin",location:"Kenya",id:4096,tag:"kln-KE",version:"Release 10"},kam:of,"kam-ke":{language:"Kamba",location:"Kenya",id:4096,tag:"kam-KE",version:"Release 10"},kn:sf,"kn-in":{language:"Kannada",location:"India",id:1099,tag:"kn-IN",version:"Release D"},ks:lf,"ks-arab":{language:"Kashmiri",location:"Perso-Arabic",id:1120,tag:"ks-Arab",version:"Release 10"},"ks-arab-in":{language:"Kashmiri",location:"Perso-Arabic",id:4096,tag:"ks-Arab-IN",version:"Release 10"},kk:uf,"kk-kz":{language:"Kazakh",location:"Kazakhstan",id:1087,tag:"kk-KZ",version:"Release C"},km:hf,"km-kh":{language:"Khmer",location:"Cambodia",id:1107,tag:"km-KH",version:"Release V"},quc:cf,"quc-latn-gt":{language:"K'iche",location:"Guatemala",id:1158,tag:"quc-Latn-GT",version:"Release 10"},ki:ff,"ki-ke":{language:"Kikuyu",location:"Kenya",id:4096,tag:"ki-KE",version:"Release 10"},rw:df,"rw-rw":{language:"Kinyarwanda",location:"Rwanda",id:1159,tag:"rw-RW",version:"Release V"},sw:gf,"sw-ke":{language:"Kiswahili",location:"Kenya",id:1089,tag:"sw-KE",version:"Release C"},"sw-tz":{language:"Kiswahili",location:"Tanzania",id:4096,tag:"sw-TZ",version:"Release 10"},"sw-ug":{language:"Kiswahili",location:"Uganda",id:4096,tag:"sw-UG",version:"Release 10"},kok:pf,"kok-in":{language:"Konkani",location:"India",id:1111,tag:"kok-IN",version:"Release C"},ko:vf,"ko-kr":{language:"Korean",location:"Korea",id:1042,tag:"ko-KR",version:"Release A"},"ko-kp":{language:"Korean",location:"North Korea",id:4096,tag:"ko-KP",version:"Release 10.1"},khq:mf,"khq-ml":{language:"Koyra Chiini",location:"Mali",id:4096,tag:"khq-ML",version:"Release 10"},ses:yf,"ses-ml":{language:"Koyraboro Senni",location:"Mali",id:4096,tag:"ses-ML",version:"Release 10"},nmg:_f,"nmg-cm":{language:"Kwasio",location:"Cameroon",id:4096,tag:"nmg-CM",version:"Release 10"},ky:bf,"ky-kg":{language:"Kyrgyz",location:"Kyrgyzstan",id:1088,tag:"ky-KG",version:"Release D"},"ku-arab-ir":{language:"Kurdish",location:"Perso-Arabic, Iran",id:4096,tag:"ku-Arab-IR",version:"Release 10.1"},lkt:wf,"lkt-us":{language:"Lakota",location:"United States",id:4096,tag:"lkt-US",version:"Release 10"},lag:xf,"lag-tz":{language:"Langi",location:"Tanzania",id:4096,tag:"lag-TZ",version:"Release 10"},lo:kf,"lo-la":{language:"Lao",location:"Lao P.D.R.",id:1108,tag:"lo-LA",version:"Release V"},lv:Sf,"lv-lv":{language:"Latvian",location:"Latvia",id:1062,tag:"lv-LV",version:"Release B"},ln:Cf,"ln-ao":{language:"Lingala",location:"Angola",id:4096,tag:"ln-AO",version:"Release 10"},"ln-cf":{language:"Lingala",location:"Central African Republic",id:4096,tag:"ln-CF",version:"Release 10"},"ln-cg":{language:"Lingala",location:"Congo",id:4096,tag:"ln-CG",version:"Release 10"},"ln-cd":{language:"Lingala",location:"Congo DRC",id:4096,tag:"ln-CD",version:"Release 10"},lt:Ef,"lt-lt":{language:"Lithuanian",location:"Lithuania",id:1063,tag:"lt-LT",version:"Release B"},nds:Af,"nds-de":{language:"Low German",location:"Germany",id:4096,tag:"nds-DE",version:"Release 10.2"},"nds-nl":{language:"Low German",location:"Netherlands",id:4096,tag:"nds-NL",version:"Release 10.2"},dsb:Rf,"dsb-de":{language:"Lower Sorbian",location:"Germany",id:2094,tag:"dsb-DE",version:"Release V"},lu:Mf,"lu-cd":{language:"Luba-Katanga",location:"Congo DRC",id:4096,tag:"lu-CD",version:"Release 10"},luo:Tf,"luo-ke":{language:"Luo",location:"Kenya",id:4096,tag:"luo-KE",version:"Release 10"},lb:Bf,"lb-lu":{language:"Luxembourgish",location:"Luxembourg",id:1134,tag:"lb-LU",version:"Release E2"},luy:Nf,"luy-ke":{language:"Luyia",location:"Kenya",id:4096,tag:"luy-KE",version:"Release 10"},mk:Pf,"mk-mk":{language:"Macedonian",location:"North Macedonia",id:1071,tag:"mk-MK",version:"Release C"},jmc:Df,"jmc-tz":{language:"Machame",location:"Tanzania",id:4096,tag:"jmc-TZ",version:"Release 10"},mgh:Of,"mgh-mz":{language:"Makhuwa-Meetto",location:"Mozambique",id:4096,tag:"mgh-MZ",version:"Release 10"},kde:zf,"kde-tz":{language:"Makonde",location:"Tanzania",id:4096,tag:"kde-TZ",version:"Release 10"},mg:Ff,"mg-mg":{language:"Malagasy",location:"Madagascar",id:4096,tag:"mg-MG",version:"Release 8.1"},ms:Lf,"ms-bn":{language:"Malay",location:"Brunei Darussalam",id:2110,tag:"ms-BN",version:"Release C"},"ms-my":{language:"Malay",location:"Malaysia",id:1086,tag:"ms-MY",version:"Release C"},ml:If,"ml-in":{language:"Malayalam",location:"India",id:1100,tag:"ml-IN",version:"Release E1"},mt:jf,"mt-mt":{language:"Maltese",location:"Malta",id:1082,tag:"mt-MT",version:"Release E1"},gv:Hf,"gv-im":{language:"Manx",location:"Isle of Man",id:4096,tag:"gv-IM",version:"Release 10"},mi:Vf,"mi-nz":{language:"Maori",location:"New Zealand",id:1153,tag:"mi-NZ",version:"Release E1"},arn:Gf,"arn-cl":{language:"Mapudungun",location:"Chile",id:1146,tag:"arn-CL",version:"Release E2"},mr:Uf,"mr-in":{language:"Marathi",location:"India",id:1102,tag:"mr-IN",version:"Release C"},mas:Wf,"mas-ke":{language:"Masai",location:"Kenya",id:4096,tag:"mas-KE",version:"Release 10"},"mas-tz":{language:"Masai",location:"Tanzania",id:4096,tag:"mas-TZ",version:"Release 10"},"mzn-ir":{language:"Mazanderani",location:"Iran",id:4096,tag:"mzn-IR",version:"Release 10.1"},mer:Kf,"mer-ke":{language:"Meru",location:"Kenya",id:4096,tag:"mer-KE",version:"Release 10"},mgo:qf,"mgo-cm":{language:"Meta'",location:"Cameroon",id:4096,tag:"mgo-CM",version:"Release 10"},moh:Yf,"moh-ca":{language:"Mohawk",location:"Canada",id:1148,tag:"moh-CA",version:"Release E2"},mn:Xf,"mn-cyrl":{language:"Mongolian (Cyrillic)",location:null,id:30800,tag:"mn-Cyrl",version:"Windows 7"},"mn-mn":{language:"Mongolian (Cyrillic)",location:"Mongolia",id:1104,tag:"mn-MN",version:"Release D"},"mn-mong":{language:"Mongolian (Traditional Mongolian)",location:null,id:31824,tag:"mn-Mong",version:"Windows 7"},"mn-mong-cn":{language:"Mongolian (Traditional Mongolian)",location:"People's Republic of China",id:2128,tag:"mn-Mong-CN",version:"Windows V"},"mn-mong-mn":{language:"Mongolian (Traditional Mongolian)",location:"Mongolia",id:3152,tag:"mn-Mong-MN",version:"Windows 7"},mfe:$f,"mfe-mu":{language:"Morisyen",location:"Mauritius",id:4096,tag:"mfe-MU",version:"Release 10"},mua:Zf,"mua-cm":{language:"Mundang",location:"Cameroon",id:4096,tag:"mua-CM",version:"Release 10"},nqo:Jf,"nqo-gn":{language:"N'ko",location:"Guinea",id:4096,tag:"nqo-GN",version:"Release 8.1"},naq:Qf,"naq-na":{language:"Nama",location:"Namibia",id:4096,tag:"naq-NA",version:"Release 10"},ne:ed,"ne-in":{language:"Nepali",location:"India",id:2145,tag:"ne-IN",version:"Release 8.1"},"ne-np":{language:"Nepali",location:"Nepal",id:1121,tag:"ne-NP",version:"Release E2"},nnh:td,"nnh-cm":{language:"Ngiemboon",location:"Cameroon",id:4096,tag:"nnh-CM",version:"Release 10"},jgo:nd,"jgo-cm":{language:"Ngomba",location:"Cameroon",id:4096,tag:"jgo-CM",version:"Release 10"},"lrc-iq":{language:"Northern Luri",location:"Iraq",id:4096,tag:"lrc-IQ",version:"Release 10.1"},"lrc-ir":{language:"Northern Luri",location:"Iran",id:4096,tag:"lrc-IR",version:"Release 10.1"},nd:id,"nd-zw":{language:"North Ndebele",location:"Zimbabwe",id:4096,tag:"nd-ZW",version:"Release 10"},no:ad,nb:rd,"nb-no":{language:"Norwegian (Bokmal)",location:"Norway",id:1044,tag:"nb-NO",version:"Release A"},nn:od,"nn-no":{language:"Norwegian (Nynorsk)",location:"Norway",id:2068,tag:"nn-NO",version:"Release A"},"nb-sj":{language:"Norwegian Bokmål",location:"Svalbard and Jan Mayen",id:4096,tag:"nb-SJ",version:"Release 10"},nus:sd,"nus-sd":{language:"Nuer",location:"Sudan",id:4096,tag:"nus-SD",version:"Release 10"},"nus-ss":{language:"Nuer",location:"South Sudan",id:4096,tag:"nus-SS",version:"Release 10.1"},nyn:ld,"nyn-ug":{language:"Nyankole",location:"Uganda",id:4096,tag:"nyn-UG",version:"Release 10"},oc:ud,"oc-fr":{language:"Occitan",location:"France",id:1154,tag:"oc-FR",version:"Release V"},or:hd,"or-in":{language:"Odia",location:"India",id:1096,tag:"or-IN",version:"Release V"},om:cd,"om-et":{language:"Oromo",location:"Ethiopia",id:1138,tag:"om-ET",version:"Release 8.1"},"om-ke":{language:"Oromo",location:"Kenya",id:4096,tag:"om-KE",version:"Release 10"},os:fd,"os-ge":{language:"Ossetian",location:"Cyrillic, Georgia",id:4096,tag:"os-GE",version:"Release 10"},"os-ru":{language:"Ossetian",location:"Cyrillic, Russia",id:4096,tag:"os-RU",version:"Release 10"},ps:dd,"ps-af":{language:"Pashto",location:"Afghanistan",id:1123,tag:"ps-AF",version:"Release E2"},"ps-pk":{language:"Pashto",location:"Pakistan",id:4096,tag:"ps-PK",version:"Release 10.5"},fa:gd,"fa-af":{language:"Persian",location:"Afghanistan",id:4096,tag:"fa-AF",version:"Release 10"},"fa-ir":{language:"Persian",location:"Iran",id:1065,tag:"fa-IR",version:"Release B"},pl:pd,"pl-pl":{language:"Polish",location:"Poland",id:1045,tag:"pl-PL",version:"Release A"},pt:vd,"pt-ao":{language:"Portuguese",location:"Angola",id:4096,tag:"pt-AO",version:"Release 8.1"},"pt-br":{language:"Portuguese",location:"Brazil",id:1046,tag:"pt-BR",version:"Release A"},"pt-cv":{language:"Portuguese",location:"Cabo Verde",id:4096,tag:"pt-CV",version:"Release 10"},"pt-gq":{language:"Portuguese",location:"Equatorial Guinea",id:4096,tag:"pt-GQ",version:"Release 10.2"},"pt-gw":{language:"Portuguese",location:"Guinea-Bissau",id:4096,tag:"pt-GW",version:"Release 10"},"pt-lu":{language:"Portuguese",location:"Luxembourg",id:4096,tag:"pt-LU",version:"Release 10.2"},"pt-mo":{language:"Portuguese",location:"Macao SAR",id:4096,tag:"pt-MO",version:"Release 10"},"pt-mz":{language:"Portuguese",location:"Mozambique",id:4096,tag:"pt-MZ",version:"Release 10"},"pt-pt":{language:"Portuguese",location:"Portugal",id:2070,tag:"pt-PT",version:"Release A"},"pt-st":{language:"Portuguese",location:"São Tomé and Príncipe",id:4096,tag:"pt-ST",version:"Release 10"},"pt-ch":{language:"Portuguese",location:"Switzerland",id:4096,tag:"pt-CH",version:"Release 10.2"},"pt-tl":{language:"Portuguese",location:"Timor-Leste",id:4096,tag:"pt-TL",version:"Release 10"},"prg-001":{language:"Prussian",location:null,id:4096,tag:"prg-001",version:"Release 10.1"},"qps-ploca":{language:"Pseudo Language",location:"Pseudo locale for east Asian/complex script localization testing",id:1534,tag:"qps-ploca",version:"Release 7"},"qps-ploc":{language:"Pseudo Language",location:"Pseudo locale used for localization testing",id:1281,tag:"qps-ploc",version:"Release 7"},"qps-plocm":{language:"Pseudo Language",location:"Pseudo locale used for localization testing of mirrored locales",id:2559,tag:"qps-plocm",version:"Release 7"},pa:md,"pa-arab":{language:"Punjabi",location:null,id:31814,tag:"pa-Arab",version:"Release 8"},"pa-in":{language:"Punjabi",location:"India",id:1094,tag:"pa-IN",version:"Release D"},"pa-arab-pk":{language:"Punjabi",location:"Islamic Republic of Pakistan",id:2118,tag:"pa-Arab-PK",version:"Release 8"},quz:yd,"quz-bo":{language:"Quechua",location:"Bolivia",id:1131,tag:"quz-BO",version:"Release E1"},"quz-ec":{language:"Quechua",location:"Ecuador",id:2155,tag:"quz-EC",version:"Release E1"},"quz-pe":{language:"Quechua",location:"Peru",id:3179,tag:"quz-PE",version:"Release E1"},ksh:_d,"ksh-de":{language:"Ripuarian",location:"Germany",id:4096,tag:"ksh-DE",version:"Release 10"},ro:bd,"ro-md":{language:"Romanian",location:"Moldova",id:2072,tag:"ro-MD",version:"Release 8.1"},"ro-ro":{language:"Romanian",location:"Romania",id:1048,tag:"ro-RO",version:"Release A"},rm:wd,"rm-ch":{language:"Romansh",location:"Switzerland",id:1047,tag:"rm-CH",version:"Release E2"},rof:xd,"rof-tz":{language:"Rombo",location:"Tanzania",id:4096,tag:"rof-TZ",version:"Release 10"},rn:kd,"rn-bi":{language:"Rundi",location:"Burundi",id:4096,tag:"rn-BI",version:"Release 10"},ru:Sd,"ru-by":{language:"Russian",location:"Belarus",id:4096,tag:"ru-BY",version:"Release 10"},"ru-kz":{language:"Russian",location:"Kazakhstan",id:4096,tag:"ru-KZ",version:"Release 10"},"ru-kg":{language:"Russian",location:"Kyrgyzstan",id:4096,tag:"ru-KG",version:"Release 10"},"ru-md":{language:"Russian",location:"Moldova",id:2073,tag:"ru-MD",version:"Release 10"},"ru-ru":{language:"Russian",location:"Russia",id:1049,tag:"ru-RU",version:"Release A"},"ru-ua":{language:"Russian",location:"Ukraine",id:4096,tag:"ru-UA",version:"Release 10"},rwk:Cd,"rwk-tz":{language:"Rwa",location:"Tanzania",id:4096,tag:"rwk-TZ",version:"Release 10"},ssy:Ed,"ssy-er":{language:"Saho",location:"Eritrea",id:4096,tag:"ssy-ER",version:"Release 10"},sah:Ad,"sah-ru":{language:"Sakha",location:"Russia",id:1157,tag:"sah-RU",version:"Release V"},saq:Rd,"saq-ke":{language:"Samburu",location:"Kenya",id:4096,tag:"saq-KE",version:"Release 10"},smn:Md,"smn-fi":{language:"Sami (Inari)",location:"Finland",id:9275,tag:"smn-FI",version:"Release E1"},smj:Td,"smj-no":{language:"Sami (Lule)",location:"Norway",id:4155,tag:"smj-NO",version:"Release E1"},"smj-se":{language:"Sami (Lule)",location:"Sweden",id:5179,tag:"smj-SE",version:"Release E1"},se:Bd,"se-fi":{language:"Sami (Northern)",location:"Finland",id:3131,tag:"se-FI",version:"Release E1"},"se-no":{language:"Sami (Northern)",location:"Norway",id:1083,tag:"se-NO",version:"Release E1"},"se-se":{language:"Sami (Northern)",location:"Sweden",id:2107,tag:"se-SE",version:"Release E1"},sms:Nd,"sms-fi":{language:"Sami (Skolt)",location:"Finland",id:8251,tag:"sms-FI",version:"Release E1"},sma:Pd,"sma-no":{language:"Sami (Southern)",location:"Norway",id:6203,tag:"sma-NO",version:"Release E1"},"sma-se":{language:"Sami (Southern)",location:"Sweden",id:7227,tag:"sma-SE",version:"Release E1"},sg:Dd,"sg-cf":{language:"Sango",location:"Central African Republic",id:4096,tag:"sg-CF",version:"Release 10"},sbp:Od,"sbp-tz":{language:"Sangu",location:"Tanzania",id:4096,tag:"sbp-TZ",version:"Release 10"},sa:zd,"sa-in":{language:"Sanskrit",location:"India",id:1103,tag:"sa-IN",version:"Release C"},gd:Fd,"gd-gb":{language:"Scottish Gaelic",location:"United Kingdom",id:1169,tag:"gd-GB",version:"Release 7"},seh:Ld,"seh-mz":{language:"Sena",location:"Mozambique",id:4096,tag:"seh-MZ",version:"Release 10"},"sr-cyrl":{language:"Serbian (Cyrillic)",location:null,id:27674,tag:"sr-Cyrl",version:"Windows 7"},"sr-cyrl-ba":{language:"Serbian (Cyrillic)",location:"Bosnia and Herzegovina",id:7194,tag:"sr-Cyrl-BA",version:"Release E1"},"sr-cyrl-me":{language:"Serbian (Cyrillic)",location:"Montenegro",id:12314,tag:"sr-Cyrl-ME",version:"Release 7"},"sr-cyrl-rs":{language:"Serbian (Cyrillic)",location:"Serbia",id:10266,tag:"sr-Cyrl-RS",version:"Release 7"},"sr-cyrl-cs":{language:"Serbian (Cyrillic)",location:"Serbia and Montenegro (Former)",id:3098,tag:"sr-Cyrl-CS",version:"Release B"},"sr-latn":{language:"Serbian (Latin)",location:null,id:28698,tag:"sr-Latn",version:"Windows 7"},sr:Id,"sr-latn-ba":{language:"Serbian (Latin)",location:"Bosnia and Herzegovina",id:6170,tag:"sr-Latn-BA",version:"Release E1"},"sr-latn-me":{language:"Serbian (Latin)",location:"Montenegro",id:11290,tag:"sr-Latn-ME",version:"Release 7"},"sr-latn-rs":{language:"Serbian (Latin)",location:"Serbia",id:9242,tag:"sr-Latn-RS",version:"Release 7"},"sr-latn-cs":{language:"Serbian (Latin)",location:"Serbia and Montenegro (Former)",id:2074,tag:"sr-Latn-CS",version:"Release B"},nso:jd,"nso-za":{language:"Sesotho sa Leboa",location:"South Africa",id:1132,tag:"nso-ZA",version:"Release E1"},tn:Hd,"tn-bw":{language:"Setswana",location:"Botswana",id:2098,tag:"tn-BW",version:"Release 8"},"tn-za":{language:"Setswana",location:"South Africa",id:1074,tag:"tn-ZA",version:"Release E1"},ksb:Vd,"ksb-tz":{language:"Shambala",location:"Tanzania",id:4096,tag:"ksb-TZ",version:"Release 10"},sn:Gd,"sn-latn":{language:"Shona",location:"Latin",id:4096,tag:"sn-Latn",version:"Release 8.1"},"sn-latn-zw":{language:"Shona",location:"Zimbabwe",id:4096,tag:"sn-Latn-ZW",version:"Release 8.1"},sd:Ud,"sd-arab":{language:"Sindhi",location:null,id:31833,tag:"sd-Arab",version:"Release 8"},"sd-arab-pk":{language:"Sindhi",location:"Islamic Republic of Pakistan",id:2137,tag:"sd-Arab-PK",version:"Release 8"},si:Wd,"si-lk":{language:"Sinhala",location:"Sri Lanka",id:1115,tag:"si-LK",version:"Release V"},sk:Kd,"sk-sk":{language:"Slovak",location:"Slovakia",id:1051,tag:"sk-SK",version:"Release A"},sl:qd,"sl-si":{language:"Slovenian",location:"Slovenia",id:1060,tag:"sl-SI",version:"Release A"},xog:Yd,"xog-ug":{language:"Soga",location:"Uganda",id:4096,tag:"xog-UG",version:"Release 10"},so:Xd,"so-dj":{language:"Somali",location:"Djibouti",id:4096,tag:"so-DJ",version:"Release 10"},"so-et":{language:"Somali",location:"Ethiopia",id:4096,tag:"so-ET",version:"Release 10"},"so-ke":{language:"Somali",location:"Kenya",id:4096,tag:"so-KE",version:"Release 10"},"so-so":{language:"Somali",location:"Somalia",id:1143,tag:"so-SO",version:"Release 8.1"},st:$d,"st-za":{language:"Sotho",location:"South Africa",id:1072,tag:"st-ZA",version:"Release 8.1"},nr:Zd,"nr-za":{language:"South Ndebele",location:"South Africa",id:4096,tag:"nr-ZA",version:"Release 10"},"st-ls":{language:"Southern Sotho",location:"Lesotho",id:4096,tag:"st-LS",version:"Release 10"},es:Jd,"es-ar":{language:"Spanish",location:"Argentina",id:11274,tag:"es-AR",version:"Release B"},"es-bz":{language:"Spanish",location:"Belize",id:4096,tag:"es-BZ",version:"Release 10.3"},"es-ve":{language:"Spanish",location:"Bolivarian Republic of Venezuela",id:8202,tag:"es-VE",version:"Release B"},"es-bo":{language:"Spanish",location:"Bolivia",id:16394,tag:"es-BO",version:"Release B"},"es-br":{language:"Spanish",location:"Brazil",id:4096,tag:"es-BR",version:"Release 10.2"},"es-cl":{language:"Spanish",location:"Chile",id:13322,tag:"es-CL",version:"Release B"},"es-co":{language:"Spanish",location:"Colombia",id:9226,tag:"es-CO",version:"Release B"},"es-cr":{language:"Spanish",location:"Costa Rica",id:5130,tag:"es-CR",version:"Release B"},"es-cu":{language:"Spanish",location:"Cuba",id:23562,tag:"es-CU",version:"Release 10"},"es-do":{language:"Spanish",location:"Dominican Republic",id:7178,tag:"es-DO",version:"Release B"},"es-ec":{language:"Spanish",location:"Ecuador",id:12298,tag:"es-EC",version:"Release B"},"es-sv":{language:"Spanish",location:"El Salvador",id:17418,tag:"es-SV",version:"Release B"},"es-gq":{language:"Spanish",location:"Equatorial Guinea",id:4096,tag:"es-GQ",version:"Release 10"},"es-gt":{language:"Spanish",location:"Guatemala",id:4106,tag:"es-GT",version:"Release B"},"es-hn":{language:"Spanish",location:"Honduras",id:18442,tag:"es-HN",version:"Release B"},"es-419":{language:"Spanish",location:"Latin America",id:22538,tag:"es-419",version:"Release 8.1"},"es-mx":{language:"Spanish",location:"Mexico",id:2058,tag:"es-MX",version:"Release A"},"es-ni":{language:"Spanish",location:"Nicaragua",id:19466,tag:"es-NI",version:"Release B"},"es-pa":{language:"Spanish",location:"Panama",id:6154,tag:"es-PA",version:"Release B"},"es-py":{language:"Spanish",location:"Paraguay",id:15370,tag:"es-PY",version:"Release B"},"es-pe":{language:"Spanish",location:"Peru",id:10250,tag:"es-PE",version:"Release B"},"es-ph":{language:"Spanish",location:"Philippines",id:4096,tag:"es-PH",version:"Release 10"},"es-pr":{language:"Spanish",location:"Puerto Rico",id:20490,tag:"es-PR",version:"Release B"},"es-es_tradnl":{language:"Spanish",location:"Spain",id:1034,tag:"es-ES_tradnl",version:"Release A"},"es-es":{language:"Spanish",location:"Spain",id:3082,tag:"es-ES",version:"Release A"},"es-us":{language:"Spanish",location:"UnitedStates",id:21514,tag:"es-US",version:"Release V"},"es-uy":{language:"Spanish",location:"Uruguay",id:14346,tag:"es-UY",version:"Release B"},zgh:Qd,"zgh-tfng-ma":{language:"Standard Moroccan Tamazight",location:"Morocco",id:4096,tag:"zgh-Tfng-MA",version:"Release 8.1"},"zgh-tfng":{language:"Standard Moroccan Tamazight",location:"Tifinagh",id:4096,tag:"zgh-Tfng",version:"Release 8.1"},ss:eg,"ss-za":{language:"Swati",location:"South Africa",id:4096,tag:"ss-ZA",version:"Release 10"},"ss-sz":{language:"Swati",location:"Swaziland",id:4096,tag:"ss-SZ",version:"Release 10"},sv:tg,"sv-ax":{language:"Swedish",location:"Åland Islands",id:4096,tag:"sv-AX",version:"Release 10"},"sv-fi":{language:"Swedish",location:"Finland",id:2077,tag:"sv-FI",version:"Release B"},"sv-se":{language:"Swedish",location:"Sweden",id:1053,tag:"sv-SE",version:"Release A"},syr:ng,"syr-sy":{language:"Syriac",location:"Syria",id:1114,tag:"syr-SY",version:"Release D"},shi:ig,"shi-tfng":{language:"Tachelhit",location:"Tifinagh",id:4096,tag:"shi-Tfng",version:"Release 10"},"shi-tfng-ma":{language:"Tachelhit",location:"Tifinagh, Morocco",id:4096,tag:"shi-Tfng-MA",version:"Release 10"},"shi-latn":{language:"Tachelhit (Latin)",location:null,id:4096,tag:"shi-Latn",version:"Release 10"},"shi-latn-ma":{language:"Tachelhit (Latin)",location:"Morocco",id:4096,tag:"shi-Latn-MA",version:"Release 10"},dav:ag,"dav-ke":{language:"Taita",location:"Kenya",id:4096,tag:"dav-KE",version:"Release 10"},tg:rg,"tg-cyrl":{language:"Tajik (Cyrillic)",location:null,id:31784,tag:"tg-Cyrl",version:"Windows 7"},"tg-cyrl-tj":{language:"Tajik (Cyrillic)",location:"Tajikistan",id:1064,tag:"tg-Cyrl-TJ",version:"Release V"},tzm:og,"tzm-latn":{language:"Tamazight (Latin)",location:null,id:31839,tag:"tzm-Latn",version:"Windows 7"},"tzm-latn-dz":{language:"Tamazight (Latin)",location:"Algeria",id:2143,tag:"tzm-Latn-DZ",version:"Release V"},ta:sg,"ta-in":{language:"Tamil",location:"India",id:1097,tag:"ta-IN",version:"Release C"},"ta-my":{language:"Tamil",location:"Malaysia",id:4096,tag:"ta-MY",version:"Release 10"},"ta-sg":{language:"Tamil",location:"Singapore",id:4096,tag:"ta-SG",version:"Release 10"},"ta-lk":{language:"Tamil",location:"Sri Lanka",id:2121,tag:"ta-LK",version:"Release 8"},twq:lg,"twq-ne":{language:"Tasawaq",location:"Niger",id:4096,tag:"twq-NE",version:"Release 10"},tt:ug,"tt-ru":{language:"Tatar",location:"Russia",id:1092,tag:"tt-RU",version:"Release D"},te:hg,"te-in":{language:"Telugu",location:"India",id:1098,tag:"te-IN",version:"Release D"},teo:cg,"teo-ke":{language:"Teso",location:"Kenya",id:4096,tag:"teo-KE",version:"Release 10"},"teo-ug":{language:"Teso",location:"Uganda",id:4096,tag:"teo-UG",version:"Release 10"},th:fg,"th-th":{language:"Thai",location:"Thailand",id:1054,tag:"th-TH",version:"Release B"},bo:dg,"bo-in":{language:"Tibetan",location:"India",id:4096,tag:"bo-IN",version:"Release 10"},"bo-cn":{language:"Tibetan",location:"People's Republic of China",id:1105,tag:"bo-CN",version:"Release V"},tig:gg,"tig-er":{language:"Tigre",location:"Eritrea",id:4096,tag:"tig-ER",version:"Release 10"},ti:pg,"ti-er":{language:"Tigrinya",location:"Eritrea",id:2163,tag:"ti-ER",version:"Release 8"},"ti-et":{language:"Tigrinya",location:"Ethiopia",id:1139,tag:"ti-ET",version:"Release 8"},to:vg,"to-to":{language:"Tongan",location:"Tonga",id:4096,tag:"to-TO",version:"Release 10"},ts:mg,"ts-za":{language:"Tsonga",location:"South Africa",id:1073,tag:"ts-ZA",version:"Release 8.1"},tr:yg,"tr-cy":{language:"Turkish",location:"Cyprus",id:4096,tag:"tr-CY",version:"Release 10"},"tr-tr":{language:"Turkish",location:"Turkey",id:1055,tag:"tr-TR",version:"Release A"},tk:_g,"tk-tm":{language:"Turkmen",location:"Turkmenistan",id:1090,tag:"tk-TM",version:"Release V"},uk:bg,"uk-ua":{language:"Ukrainian",location:"Ukraine",id:1058,tag:"uk-UA",version:"Release B"},hsb:wg,"hsb-de":{language:"Upper Sorbian",location:"Germany",id:1070,tag:"hsb-DE",version:"Release V"},ur:xg,"ur-in":{language:"Urdu",location:"India",id:2080,tag:"ur-IN",version:"Release 8.1"},"ur-pk":{language:"Urdu",location:"Islamic Republic of Pakistan",id:1056,tag:"ur-PK",version:"Release C"},ug:kg,"ug-cn":{language:"Uyghur",location:"People's Republic of China",id:1152,tag:"ug-CN",version:"Release V"},"uz-arab":{language:"Uzbek",location:"Perso-Arabic",id:4096,tag:"uz-Arab",version:"Release 10"},"uz-arab-af":{language:"Uzbek",location:"Perso-Arabic, Afghanistan",id:4096,tag:"uz-Arab-AF",version:"Release 10"},"uz-cyrl":{language:"Uzbek (Cyrillic)",location:null,id:30787,tag:"uz-Cyrl",version:"Windows 7"},"uz-cyrl-uz":{language:"Uzbek (Cyrillic)",location:"Uzbekistan",id:2115,tag:"uz-Cyrl-UZ",version:"Release C"},uz:Sg,"uz-latn":{language:"Uzbek (Latin)",location:null,id:31811,tag:"uz-Latn",version:"Windows7"},"uz-latn-uz":{language:"Uzbek (Latin)",location:"Uzbekistan",id:1091,tag:"uz-Latn-UZ",version:"Release C"},vai:Cg,"vai-vaii":{language:"Vai",location:null,id:4096,tag:"vai-Vaii",version:"Release 10"},"vai-vaii-lr":{language:"Vai",location:"Liberia",id:4096,tag:"vai-Vaii-LR",version:"Release 10"},"vai-latn-lr":{language:"Vai (Latin)",location:"Liberia",id:4096,tag:"vai-Latn-LR",version:"Release 10"},"vai-latn":{language:"Vai (Latin)",location:null,id:4096,tag:"vai-Latn",version:"Release 10"},"ca-es-":{language:"Valencian",location:"Spain",id:2051,tag:"ca-ES-",version:"Release 8"},ve:Eg,"ve-za":{language:"Venda",location:"South Africa",id:1075,tag:"ve-ZA",version:"Release 10"},vi:Ag,"vi-vn":{language:"Vietnamese",location:"Vietnam",id:1066,tag:"vi-VN",version:"Release B"},vo:Rg,"vo-001":{language:"Volapük",location:"World",id:4096,tag:"vo-001",version:"Release 10"},vun:Mg,"vun-tz":{language:"Vunjo",location:"Tanzania",id:4096,tag:"vun-TZ",version:"Release 10"},wae:Tg,"wae-ch":{language:"Walser",location:"Switzerland",id:4096,tag:"wae-CH",version:"Release 10"},cy:Bg,"cy-gb":{language:"Welsh",location:"United Kingdom",id:1106,tag:"cy-GB",version:"ReleaseE1"},wal:Ng,"wal-et":{language:"Wolaytta",location:"Ethiopia",id:4096,tag:"wal-ET",version:"Release 10"},wo:Pg,"wo-sn":{language:"Wolof",location:"Senegal",id:1160,tag:"wo-SN",version:"Release V"},xh:Dg,"xh-za":{language:"Xhosa",location:"South Africa",id:1076,tag:"xh-ZA",version:"Release E1"},yav:Og,"yav-cm":{language:"Yangben",location:"Cameroon",id:4096,tag:"yav-CM",version:"Release 10"},ii:zg,"ii-cn":{language:"Yi",location:"People's Republic of China",id:1144,tag:"ii-CN",version:"Release V"},yo:Fg,"yo-bj":{language:"Yoruba",location:"Benin",id:4096,tag:"yo-BJ",version:"Release 10"},"yo-ng":{language:"Yoruba",location:"Nigeria",id:1130,tag:"yo-NG",version:"Release V"},dje:Lg,"dje-ne":{language:"Zarma",location:"Niger",id:4096,tag:"dje-NE",version:"Release 10"},zu:Ig,"zu-za":{language:"Zulu",location:"South Africa",id:1077,tag:"zu-ZA",version:"Release E1"}};var Hg={name:"Abkhazian",names:["Abkhazian"],"iso639-2":"abk","iso639-1":"ab"};var Vg={name:"Achinese",names:["Achinese"],"iso639-2":"ace","iso639-1":null};var Gg={name:"Acoli",names:["Acoli"],"iso639-2":"ach","iso639-1":null};var Ug={name:"Adangme",names:["Adangme"],"iso639-2":"ada","iso639-1":null};var Wg={name:"Adygei",names:["Adyghe","Adygei"],"iso639-2":"ady","iso639-1":null};var Kg={name:"Adyghe",names:["Adyghe","Adygei"],"iso639-2":"ady","iso639-1":null};var qg={name:"Afar",names:["Afar"],"iso639-2":"aar","iso639-1":"aa"};var Yg={name:"Afrihili",names:["Afrihili"],"iso639-2":"afh","iso639-1":null};var Xg={name:"Afrikaans",names:["Afrikaans"],"iso639-2":"afr","iso639-1":"af"};var $g={name:"Ainu",names:["Ainu"],"iso639-2":"ain","iso639-1":null};var Zg={name:"Akan",names:["Akan"],"iso639-2":"aka","iso639-1":"ak"};var Jg={name:"Akkadian",names:["Akkadian"],"iso639-2":"akk","iso639-1":null};var Qg={name:"Albanian",names:["Albanian"],"iso639-2":"alb/sqi","iso639-1":"sq"};var ep={name:"Alemannic",names:["Swiss German","Alemannic","Alsatian"],"iso639-2":"gsw","iso639-1":null};var tp={name:"Aleut",names:["Aleut"],"iso639-2":"ale","iso639-1":null};var np={name:"Alsatian",names:["Swiss German","Alemannic","Alsatian"],"iso639-2":"gsw","iso639-1":null};var ip={name:"Amharic",names:["Amharic"],"iso639-2":"amh","iso639-1":"am"};var ap={name:"Angika",names:["Angika"],"iso639-2":"anp","iso639-1":null};var rp={name:"Arabic",names:["Arabic"],"iso639-2":"ara","iso639-1":"ar"};var op={name:"Aragonese",names:["Aragonese"],"iso639-2":"arg","iso639-1":"an"};var sp={name:"Arapaho",names:["Arapaho"],"iso639-2":"arp","iso639-1":null};var lp={name:"Arawak",names:["Arawak"],"iso639-2":"arw","iso639-1":null};var up={name:"Armenian",names:["Armenian"],"iso639-2":"arm/hye","iso639-1":"hy"};var hp={name:"Aromanian",names:["Aromanian","Arumanian","Macedo-Romanian"],"iso639-2":"rup","iso639-1":null};var cp={name:"Arumanian",names:["Aromanian","Arumanian","Macedo-Romanian"],"iso639-2":"rup","iso639-1":null};var fp={name:"Assamese",names:["Assamese"],"iso639-2":"asm","iso639-1":"as"};var dp={name:"Asturian",names:["Asturian","Bable","Leonese","Asturleonese"],"iso639-2":"ast","iso639-1":null};var gp={name:"Asturleonese",names:["Asturian","Bable","Leonese","Asturleonese"],"iso639-2":"ast","iso639-1":null};var pp={name:"Avaric",names:["Avaric"],"iso639-2":"ava","iso639-1":"av"};var vp={name:"Avestan",names:["Avestan"],"iso639-2":"ave","iso639-1":"ae"};var mp={name:"Awadhi",names:["Awadhi"],"iso639-2":"awa","iso639-1":null};var yp={name:"Aymara",names:["Aymara"],"iso639-2":"aym","iso639-1":"ay"};var _p={name:"Azerbaijani",names:["Azerbaijani"],"iso639-2":"aze","iso639-1":"az"};var bp={name:"Bable",names:["Asturian","Bable","Leonese","Asturleonese"],"iso639-2":"ast","iso639-1":null};var wp={name:"Balinese",names:["Balinese"],"iso639-2":"ban","iso639-1":null};var xp={name:"Baluchi",names:["Baluchi"],"iso639-2":"bal","iso639-1":null};var kp={name:"Bambara",names:["Bambara"],"iso639-2":"bam","iso639-1":"bm"};var Sp={name:"Basa",names:["Basa"],"iso639-2":"bas","iso639-1":null};var Cp={name:"Bashkir",names:["Bashkir"],"iso639-2":"bak","iso639-1":"ba"};var Ep={name:"Basque",names:["Basque"],"iso639-2":"baq/eus","iso639-1":"eu"};var Ap={name:"Bedawiyet",names:["Beja","Bedawiyet"],"iso639-2":"bej","iso639-1":null};var Rp={name:"Beja",names:["Beja","Bedawiyet"],"iso639-2":"bej","iso639-1":null};var Mp={name:"Belarusian",names:["Belarusian"],"iso639-2":"bel","iso639-1":"be"};var Tp={name:"Bemba",names:["Bemba"],"iso639-2":"bem","iso639-1":null};var Bp={name:"Bengali",names:["Bengali"],"iso639-2":"ben","iso639-1":"bn"};var Np={name:"Bhojpuri",names:["Bhojpuri"],"iso639-2":"bho","iso639-1":null};var Pp={name:"Bikol",names:["Bikol"],"iso639-2":"bik","iso639-1":null};var Dp={name:"Bilin",names:["Blin","Bilin"],"iso639-2":"byn","iso639-1":null};var Op={name:"Bini",names:["Bini","Edo"],"iso639-2":"bin","iso639-1":null};var zp={name:"Bislama",names:["Bislama"],"iso639-2":"bis","iso639-1":"bi"};var Fp={name:"Blin",names:["Blin","Bilin"],"iso639-2":"byn","iso639-1":null};var Lp={name:"Bliss",names:["Blissymbols","Blissymbolics","Bliss"],"iso639-2":"zbl","iso639-1":null};var Ip={name:"Blissymbolics",names:["Blissymbols","Blissymbolics","Bliss"],"iso639-2":"zbl","iso639-1":null};var jp={name:"Blissymbols",names:["Blissymbols","Blissymbolics","Bliss"],"iso639-2":"zbl","iso639-1":null};var Hp={name:"Bosnian",names:["Bosnian"],"iso639-2":"bos","iso639-1":"bs"};var Vp={name:"Braj",names:["Braj"],"iso639-2":"bra","iso639-1":null};var Gp={name:"Breton",names:["Breton"],"iso639-2":"bre","iso639-1":"br"};var Up={name:"Buginese",names:["Buginese"],"iso639-2":"bug","iso639-1":null};var Wp={name:"Bulgarian",names:["Bulgarian"],"iso639-2":"bul","iso639-1":"bg"};var Kp={name:"Buriat",names:["Buriat"],"iso639-2":"bua","iso639-1":null};var qp={name:"Burmese",names:["Burmese"],"iso639-2":"bur/mya","iso639-1":"my"};var Yp={name:"Caddo",names:["Caddo"],"iso639-2":"cad","iso639-1":null};var Xp={name:"Castilian",names:["Spanish","Castilian"],"iso639-2":"spa","iso639-1":"es"};var $p={name:"Catalan",names:["Catalan","Valencian"],"iso639-2":"cat","iso639-1":"ca"};var Zp={name:"Cebuano",names:["Cebuano"],"iso639-2":"ceb","iso639-1":null};var Jp={name:"Chagatai",names:["Chagatai"],"iso639-2":"chg","iso639-1":null};var Qp={name:"Chamorro",names:["Chamorro"],"iso639-2":"cha","iso639-1":"ch"};var ev={name:"Chechen",names:["Chechen"],"iso639-2":"che","iso639-1":"ce"};var tv={name:"Cherokee",names:["Cherokee"],"iso639-2":"chr","iso639-1":null};var nv={name:"Chewa",names:["Chichewa","Chewa","Nyanja"],"iso639-2":"nya","iso639-1":"ny"};var iv={name:"Cheyenne",names:["Cheyenne"],"iso639-2":"chy","iso639-1":null};var av={name:"Chibcha",names:["Chibcha"],"iso639-2":"chb","iso639-1":null};var rv={name:"Chichewa",names:["Chichewa","Chewa","Nyanja"],"iso639-2":"nya","iso639-1":"ny"};var ov={name:"Chinese",names:["Chinese"],"iso639-2":"chi/zho","iso639-1":"zh"};var sv={name:"Chipewyan",names:["Chipewyan","Dene Suline"],"iso639-2":"chp","iso639-1":null};var lv={name:"Choctaw",names:["Choctaw"],"iso639-2":"cho","iso639-1":null};var uv={name:"Chuang",names:["Zhuang","Chuang"],"iso639-2":"zha","iso639-1":"za"};var hv={name:"Chuukese",names:["Chuukese"],"iso639-2":"chk","iso639-1":null};var cv={name:"Chuvash",names:["Chuvash"],"iso639-2":"chv","iso639-1":"cv"};var fv={name:"Coptic",names:["Coptic"],"iso639-2":"cop","iso639-1":null};var dv={name:"Cornish",names:["Cornish"],"iso639-2":"cor","iso639-1":"kw"};var gv={name:"Corsican",names:["Corsican"],"iso639-2":"cos","iso639-1":"co"};var pv={name:"Cree",names:["Cree"],"iso639-2":"cre","iso639-1":"cr"};var vv={name:"Creek",names:["Creek"],"iso639-2":"mus","iso639-1":null};var mv={name:"Croatian",names:["Croatian"],"iso639-2":"hrv","iso639-1":"hr"};var yv={name:"Czech",names:["Czech"],"iso639-2":"cze/ces","iso639-1":"cs"};var _v={name:"Dakota",names:["Dakota"],"iso639-2":"dak","iso639-1":null};var bv={name:"Danish",names:["Danish"],"iso639-2":"dan","iso639-1":"da"};var wv={name:"Dargwa",names:["Dargwa"],"iso639-2":"dar","iso639-1":null};var xv={name:"Delaware",names:["Delaware"],"iso639-2":"del","iso639-1":null};var kv={name:"Dhivehi",names:["Divehi","Dhivehi","Maldivian"],"iso639-2":"div","iso639-1":"dv"};var Sv={name:"Dimili",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var Cv={name:"Dimli",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var Ev={name:"Dinka",names:["Dinka"],"iso639-2":"din","iso639-1":null};var Av={name:"Divehi",names:["Divehi","Dhivehi","Maldivian"],"iso639-2":"div","iso639-1":"dv"};var Rv={name:"Dogri",names:["Dogri"],"iso639-2":"doi","iso639-1":null};var Mv={name:"Dogrib",names:["Dogrib"],"iso639-2":"dgr","iso639-1":null};var Tv={name:"Duala",names:["Duala"],"iso639-2":"dua","iso639-1":null};var Bv={name:"Dutch",names:["Dutch","Flemish"],"iso639-2":"dut/nld","iso639-1":"nl"};var Nv={name:"Dyula",names:["Dyula"],"iso639-2":"dyu","iso639-1":null};var Pv={name:"Dzongkha",names:["Dzongkha"],"iso639-2":"dzo","iso639-1":"dz"};var Dv={name:"Edo",names:["Bini","Edo"],"iso639-2":"bin","iso639-1":null};var Ov={name:"Efik",names:["Efik"],"iso639-2":"efi","iso639-1":null};var zv={name:"Ekajuk",names:["Ekajuk"],"iso639-2":"eka","iso639-1":null};var Fv={name:"Elamite",names:["Elamite"],"iso639-2":"elx","iso639-1":null};var Lv={name:"English",names:["English"],"iso639-2":"eng","iso639-1":"en"};var Iv={name:"Erzya",names:["Erzya"],"iso639-2":"myv","iso639-1":null};var jv={name:"Esperanto",names:["Esperanto"],"iso639-2":"epo","iso639-1":"eo"};var Hv={name:"Estonian",names:["Estonian"],"iso639-2":"est","iso639-1":"et"};var Vv={name:"Ewe",names:["Ewe"],"iso639-2":"ewe","iso639-1":"ee"};var Gv={name:"Ewondo",names:["Ewondo"],"iso639-2":"ewo","iso639-1":null};var Uv={name:"Fang",names:["Fang"],"iso639-2":"fan","iso639-1":null};var Wv={name:"Fanti",names:["Fanti"],"iso639-2":"fat","iso639-1":null};var Kv={name:"Faroese",names:["Faroese"],"iso639-2":"fao","iso639-1":"fo"};var qv={name:"Fijian",names:["Fijian"],"iso639-2":"fij","iso639-1":"fj"};var Yv={name:"Filipino",names:["Filipino","Pilipino"],"iso639-2":"fil","iso639-1":null};var Xv={name:"Finnish",names:["Finnish"],"iso639-2":"fin","iso639-1":"fi"};var $v={name:"Flemish",names:["Dutch","Flemish"],"iso639-2":"dut/nld","iso639-1":"nl"};var Zv={name:"Fon",names:["Fon"],"iso639-2":"fon","iso639-1":null};var Jv={name:"French",names:["French"],"iso639-2":"fre/fra","iso639-1":"fr"};var Qv={name:"Friulian",names:["Friulian"],"iso639-2":"fur","iso639-1":null};var em={name:"Fulah",names:["Fulah"],"iso639-2":"ful","iso639-1":"ff"};var tm={name:"Ga",names:["Ga"],"iso639-2":"gaa","iso639-1":null};var nm={name:"Gaelic",names:["Gaelic","Scottish Gaelic"],"iso639-2":"gla","iso639-1":"gd"};var im={name:"Galician",names:["Galician"],"iso639-2":"glg","iso639-1":"gl"};var am={name:"Ganda",names:["Ganda"],"iso639-2":"lug","iso639-1":"lg"};var rm={name:"Gayo",names:["Gayo"],"iso639-2":"gay","iso639-1":null};var om={name:"Gbaya",names:["Gbaya"],"iso639-2":"gba","iso639-1":null};var sm={name:"Geez",names:["Geez"],"iso639-2":"gez","iso639-1":null};var lm={name:"Georgian",names:["Georgian"],"iso639-2":"geo/kat","iso639-1":"ka"};var um={name:"German",names:["German"],"iso639-2":"ger/deu","iso639-1":"de"};var hm={name:"Gikuyu",names:["Kikuyu","Gikuyu"],"iso639-2":"kik","iso639-1":"ki"};var cm={name:"Gilbertese",names:["Gilbertese"],"iso639-2":"gil","iso639-1":null};var fm={name:"Gondi",names:["Gondi"],"iso639-2":"gon","iso639-1":null};var dm={name:"Gorontalo",names:["Gorontalo"],"iso639-2":"gor","iso639-1":null};var gm={name:"Gothic",names:["Gothic"],"iso639-2":"got","iso639-1":null};var pm={name:"Grebo",names:["Grebo"],"iso639-2":"grb","iso639-1":null};var vm={name:"Greenlandic",names:["Kalaallisut","Greenlandic"],"iso639-2":"kal","iso639-1":"kl"};var mm={name:"Guarani",names:["Guarani"],"iso639-2":"grn","iso639-1":"gn"};var ym={name:"Gujarati",names:["Gujarati"],"iso639-2":"guj","iso639-1":"gu"};var _m={name:"Haida",names:["Haida"],"iso639-2":"hai","iso639-1":null};var bm={name:"Haitian",names:["Haitian","Haitian Creole"],"iso639-2":"hat","iso639-1":"ht"};var wm={name:"Hausa",names:["Hausa"],"iso639-2":"hau","iso639-1":"ha"};var xm={name:"Hawaiian",names:["Hawaiian"],"iso639-2":"haw","iso639-1":null};var km={name:"Hebrew",names:["Hebrew"],"iso639-2":"heb","iso639-1":"he"};var Sm={name:"Herero",names:["Herero"],"iso639-2":"her","iso639-1":"hz"};var Cm={name:"Hiligaynon",names:["Hiligaynon"],"iso639-2":"hil","iso639-1":null};var Em={name:"Hindi",names:["Hindi"],"iso639-2":"hin","iso639-1":"hi"};var Am={name:"Hittite",names:["Hittite"],"iso639-2":"hit","iso639-1":null};var Rm={name:"Hmong",names:["Hmong","Mong"],"iso639-2":"hmn","iso639-1":null};var Mm={name:"Hungarian",names:["Hungarian"],"iso639-2":"hun","iso639-1":"hu"};var Tm={name:"Hupa",names:["Hupa"],"iso639-2":"hup","iso639-1":null};var Bm={name:"Iban",names:["Iban"],"iso639-2":"iba","iso639-1":null};var Nm={name:"Icelandic",names:["Icelandic"],"iso639-2":"ice/isl","iso639-1":"is"};var Pm={name:"Ido",names:["Ido"],"iso639-2":"ido","iso639-1":"io"};var Dm={name:"Igbo",names:["Igbo"],"iso639-2":"ibo","iso639-1":"ig"};var Om={name:"Iloko",names:["Iloko"],"iso639-2":"ilo","iso639-1":null};var zm={name:"Indonesian",names:["Indonesian"],"iso639-2":"ind","iso639-1":"id"};var Fm={name:"Ingush",names:["Ingush"],"iso639-2":"inh","iso639-1":null};var Lm={name:"Interlingue",names:["Interlingue","Occidental"],"iso639-2":"ile","iso639-1":"ie"};var Im={name:"Inuktitut",names:["Inuktitut"],"iso639-2":"iku","iso639-1":"iu"};var jm={name:"Inupiaq",names:["Inupiaq"],"iso639-2":"ipk","iso639-1":"ik"};var Hm={name:"Irish",names:["Irish"],"iso639-2":"gle","iso639-1":"ga"};var Vm={name:"Italian",names:["Italian"],"iso639-2":"ita","iso639-1":"it"};var Gm={name:"Japanese",names:["Japanese"],"iso639-2":"jpn","iso639-1":"ja"};var Um={name:"Javanese",names:["Javanese"],"iso639-2":"jav","iso639-1":"jv"};var Wm={name:"Jingpho",names:["Kachin","Jingpho"],"iso639-2":"kac","iso639-1":null};var Km={name:"Kabardian",names:["Kabardian"],"iso639-2":"kbd","iso639-1":null};var qm={name:"Kabyle",names:["Kabyle"],"iso639-2":"kab","iso639-1":null};var Ym={name:"Kachin",names:["Kachin","Jingpho"],"iso639-2":"kac","iso639-1":null};var Xm={name:"Kalaallisut",names:["Kalaallisut","Greenlandic"],"iso639-2":"kal","iso639-1":"kl"};var $m={name:"Kalmyk",names:["Kalmyk","Oirat"],"iso639-2":"xal","iso639-1":null};var Zm={name:"Kamba",names:["Kamba"],"iso639-2":"kam","iso639-1":null};var Jm={name:"Kannada",names:["Kannada"],"iso639-2":"kan","iso639-1":"kn"};var Qm={name:"Kanuri",names:["Kanuri"],"iso639-2":"kau","iso639-1":"kr"};var ey={name:"Kapampangan",names:["Pampanga","Kapampangan"],"iso639-2":"pam","iso639-1":null};var ty={name:"Karelian",names:["Karelian"],"iso639-2":"krl","iso639-1":null};var ny={name:"Kashmiri",names:["Kashmiri"],"iso639-2":"kas","iso639-1":"ks"};var iy={name:"Kashubian",names:["Kashubian"],"iso639-2":"csb","iso639-1":null};var ay={name:"Kawi",names:["Kawi"],"iso639-2":"kaw","iso639-1":null};var ry={name:"Kazakh",names:["Kazakh"],"iso639-2":"kaz","iso639-1":"kk"};var oy={name:"Khasi",names:["Khasi"],"iso639-2":"kha","iso639-1":null};var sy={name:"Khotanese",names:["Khotanese","Sakan"],"iso639-2":"kho","iso639-1":null};var ly={name:"Kikuyu",names:["Kikuyu","Gikuyu"],"iso639-2":"kik","iso639-1":"ki"};var uy={name:"Kimbundu",names:["Kimbundu"],"iso639-2":"kmb","iso639-1":null};var hy={name:"Kinyarwanda",names:["Kinyarwanda"],"iso639-2":"kin","iso639-1":"rw"};var cy={name:"Kirdki",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var fy={name:"Kirghiz",names:["Kirghiz","Kyrgyz"],"iso639-2":"kir","iso639-1":"ky"};var dy={name:"Kirmanjki",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var gy={name:"Klingon",names:["Klingon","tlhIngan-Hol"],"iso639-2":"tlh","iso639-1":null};var py={name:"Komi",names:["Komi"],"iso639-2":"kom","iso639-1":"kv"};var vy={name:"Kongo",names:["Kongo"],"iso639-2":"kon","iso639-1":"kg"};var my={name:"Konkani",names:["Konkani"],"iso639-2":"kok","iso639-1":null};var yy={name:"Korean",names:["Korean"],"iso639-2":"kor","iso639-1":"ko"};var _y={name:"Kosraean",names:["Kosraean"],"iso639-2":"kos","iso639-1":null};var by={name:"Kpelle",names:["Kpelle"],"iso639-2":"kpe","iso639-1":null};var wy={name:"Kuanyama",names:["Kuanyama","Kwanyama"],"iso639-2":"kua","iso639-1":"kj"};var xy={name:"Kumyk",names:["Kumyk"],"iso639-2":"kum","iso639-1":null};var ky={name:"Kurdish",names:["Kurdish"],"iso639-2":"kur","iso639-1":"ku"};var Sy={name:"Kurukh",names:["Kurukh"],"iso639-2":"kru","iso639-1":null};var Cy={name:"Kutenai",names:["Kutenai"],"iso639-2":"kut","iso639-1":null};var Ey={name:"Kwanyama",names:["Kuanyama","Kwanyama"],"iso639-2":"kua","iso639-1":"kj"};var Ay={name:"Kyrgyz",names:["Kirghiz","Kyrgyz"],"iso639-2":"kir","iso639-1":"ky"};var Ry={name:"Ladino",names:["Ladino"],"iso639-2":"lad","iso639-1":null};var My={name:"Lahnda",names:["Lahnda"],"iso639-2":"lah","iso639-1":null};var Ty={name:"Lamba",names:["Lamba"],"iso639-2":"lam","iso639-1":null};var By={name:"Lao",names:["Lao"],"iso639-2":"lao","iso639-1":"lo"};var Ny={name:"Latin",names:["Latin"],"iso639-2":"lat","iso639-1":"la"};var Py={name:"Latvian",names:["Latvian"],"iso639-2":"lav","iso639-1":"lv"};var Dy={name:"Leonese",names:["Asturian","Bable","Leonese","Asturleonese"],"iso639-2":"ast","iso639-1":null};var Oy={name:"Letzeburgesch",names:["Luxembourgish","Letzeburgesch"],"iso639-2":"ltz","iso639-1":"lb"};var zy={name:"Lezghian",names:["Lezghian"],"iso639-2":"lez","iso639-1":null};var Fy={name:"Limburgan",names:["Limburgan","Limburger","Limburgish"],"iso639-2":"lim","iso639-1":"li"};var Ly={name:"Limburger",names:["Limburgan","Limburger","Limburgish"],"iso639-2":"lim","iso639-1":"li"};var Iy={name:"Limburgish",names:["Limburgan","Limburger","Limburgish"],"iso639-2":"lim","iso639-1":"li"};var jy={name:"Lingala",names:["Lingala"],"iso639-2":"lin","iso639-1":"ln"};var Hy={name:"Lithuanian",names:["Lithuanian"],"iso639-2":"lit","iso639-1":"lt"};var Vy={name:"Lojban",names:["Lojban"],"iso639-2":"jbo","iso639-1":null};var Gy={name:"Lozi",names:["Lozi"],"iso639-2":"loz","iso639-1":null};var Uy={name:"Luiseno",names:["Luiseno"],"iso639-2":"lui","iso639-1":null};var Wy={name:"Lunda",names:["Lunda"],"iso639-2":"lun","iso639-1":null};var Ky={name:"Lushai",names:["Lushai"],"iso639-2":"lus","iso639-1":null};var qy={name:"Luxembourgish",names:["Luxembourgish","Letzeburgesch"],"iso639-2":"ltz","iso639-1":"lb"};var Yy={name:"Macedonian",names:["Macedonian"],"iso639-2":"mac/mkd","iso639-1":"mk"};var Xy={name:"Madurese",names:["Madurese"],"iso639-2":"mad","iso639-1":null};var $y={name:"Magahi",names:["Magahi"],"iso639-2":"mag","iso639-1":null};var Zy={name:"Maithili",names:["Maithili"],"iso639-2":"mai","iso639-1":null};var Jy={name:"Makasar",names:["Makasar"],"iso639-2":"mak","iso639-1":null};var Qy={name:"Malagasy",names:["Malagasy"],"iso639-2":"mlg","iso639-1":"mg"};var e_={name:"Malay",names:["Malay"],"iso639-2":"may/msa","iso639-1":"ms"};var t_={name:"Malayalam",names:["Malayalam"],"iso639-2":"mal","iso639-1":"ml"};var n_={name:"Maldivian",names:["Divehi","Dhivehi","Maldivian"],"iso639-2":"div","iso639-1":"dv"};var i_={name:"Maltese",names:["Maltese"],"iso639-2":"mlt","iso639-1":"mt"};var a_={name:"Manchu",names:["Manchu"],"iso639-2":"mnc","iso639-1":null};var r_={name:"Mandar",names:["Mandar"],"iso639-2":"mdr","iso639-1":null};var o_={name:"Mandingo",names:["Mandingo"],"iso639-2":"man","iso639-1":null};var s_={name:"Manipuri",names:["Manipuri"],"iso639-2":"mni","iso639-1":null};var l_={name:"Manx",names:["Manx"],"iso639-2":"glv","iso639-1":"gv"};var u_={name:"Maori",names:["Maori"],"iso639-2":"mao/mri","iso639-1":"mi"};var h_={name:"Mapuche",names:["Mapudungun","Mapuche"],"iso639-2":"arn","iso639-1":null};var c_={name:"Mapudungun",names:["Mapudungun","Mapuche"],"iso639-2":"arn","iso639-1":null};var f_={name:"Marathi",names:["Marathi"],"iso639-2":"mar","iso639-1":"mr"};var d_={name:"Mari",names:["Mari"],"iso639-2":"chm","iso639-1":null};var g_={name:"Marshallese",names:["Marshallese"],"iso639-2":"mah","iso639-1":"mh"};var p_={name:"Marwari",names:["Marwari"],"iso639-2":"mwr","iso639-1":null};var v_={name:"Masai",names:["Masai"],"iso639-2":"mas","iso639-1":null};var m_={name:"Mende",names:["Mende"],"iso639-2":"men","iso639-1":null};var y_={name:"Micmac",names:["Mi'kmaq","Micmac"],"iso639-2":"mic","iso639-1":null};var __={name:"Minangkabau",names:["Minangkabau"],"iso639-2":"min","iso639-1":null};var b_={name:"Mirandese",names:["Mirandese"],"iso639-2":"mwl","iso639-1":null};var w_={name:"Mohawk",names:["Mohawk"],"iso639-2":"moh","iso639-1":null};var x_={name:"Moksha",names:["Moksha"],"iso639-2":"mdf","iso639-1":null};var k_={name:"Moldavian",names:["Romanian","Moldavian","Moldovan"],"iso639-2":"rum/ron","iso639-1":"ro"};var S_={name:"Moldovan",names:["Romanian","Moldavian","Moldovan"],"iso639-2":"rum/ron","iso639-1":"ro"};var C_={name:"Mong",names:["Hmong","Mong"],"iso639-2":"hmn","iso639-1":null};var E_={name:"Mongo",names:["Mongo"],"iso639-2":"lol","iso639-1":null};var A_={name:"Mongolian",names:["Mongolian"],"iso639-2":"mon","iso639-1":"mn"};var R_={name:"Montenegrin",names:["Montenegrin"],"iso639-2":"cnr","iso639-1":null};var M_={name:"Mossi",names:["Mossi"],"iso639-2":"mos","iso639-1":null};var T_={name:"Nauru",names:["Nauru"],"iso639-2":"nau","iso639-1":"na"};var B_={name:"Navaho",names:["Navajo","Navaho"],"iso639-2":"nav","iso639-1":"nv"};var N_={name:"Navajo",names:["Navajo","Navaho"],"iso639-2":"nav","iso639-1":"nv"};var P_={name:"Ndonga",names:["Ndonga"],"iso639-2":"ndo","iso639-1":"ng"};var D_={name:"Neapolitan",names:["Neapolitan"],"iso639-2":"nap","iso639-1":null};var O_={name:"Nepali",names:["Nepali"],"iso639-2":"nep","iso639-1":"ne"};var z_={name:"Newari",names:["Nepal Bhasa","Newari"],"iso639-2":"new","iso639-1":null};var F_={name:"Nias",names:["Nias"],"iso639-2":"nia","iso639-1":null};var L_={name:"Niuean",names:["Niuean"],"iso639-2":"niu","iso639-1":null};var I_={name:"Nogai",names:["Nogai"],"iso639-2":"nog","iso639-1":null};var j_={name:"Norwegian",names:["Norwegian"],"iso639-2":"nor","iso639-1":"no"};var H_={name:"Nuosu",names:["Sichuan Yi","Nuosu"],"iso639-2":"iii","iso639-1":"ii"};var V_={name:"Nyamwezi",names:["Nyamwezi"],"iso639-2":"nym","iso639-1":null};var G_={name:"Nyanja",names:["Chichewa","Chewa","Nyanja"],"iso639-2":"nya","iso639-1":"ny"};var U_={name:"Nyankole",names:["Nyankole"],"iso639-2":"nyn","iso639-1":null};var W_={name:"Nyoro",names:["Nyoro"],"iso639-2":"nyo","iso639-1":null};var K_={name:"Nzima",names:["Nzima"],"iso639-2":"nzi","iso639-1":null};var q_={name:"Occidental",names:["Interlingue","Occidental"],"iso639-2":"ile","iso639-1":"ie"};var Y_={name:"Oirat",names:["Kalmyk","Oirat"],"iso639-2":"xal","iso639-1":null};var X_={name:"Ojibwa",names:["Ojibwa"],"iso639-2":"oji","iso639-1":"oj"};var $_={name:"Oriya",names:["Oriya"],"iso639-2":"ori","iso639-1":"or"};var Z_={name:"Oromo",names:["Oromo"],"iso639-2":"orm","iso639-1":"om"};var J_={name:"Osage",names:["Osage"],"iso639-2":"osa","iso639-1":null};var Q_={name:"Ossetian",names:["Ossetian","Ossetic"],"iso639-2":"oss","iso639-1":"os"};var eb={name:"Ossetic",names:["Ossetian","Ossetic"],"iso639-2":"oss","iso639-1":"os"};var tb={name:"Pahlavi",names:["Pahlavi"],"iso639-2":"pal","iso639-1":null};var nb={name:"Palauan",names:["Palauan"],"iso639-2":"pau","iso639-1":null};var ib={name:"Pali",names:["Pali"],"iso639-2":"pli","iso639-1":"pi"};var ab={name:"Pampanga",names:["Pampanga","Kapampangan"],"iso639-2":"pam","iso639-1":null};var rb={name:"Pangasinan",names:["Pangasinan"],"iso639-2":"pag","iso639-1":null};var ob={name:"Panjabi",names:["Panjabi","Punjabi"],"iso639-2":"pan","iso639-1":"pa"};var sb={name:"Papiamento",names:["Papiamento"],"iso639-2":"pap","iso639-1":null};var lb={name:"Pashto",names:["Pushto","Pashto"],"iso639-2":"pus","iso639-1":"ps"};var ub={name:"Pedi",names:["Pedi","Sepedi","Northern Sotho"],"iso639-2":"nso","iso639-1":null};var hb={name:"Persian",names:["Persian"],"iso639-2":"per/fas","iso639-1":"fa"};var cb={name:"Phoenician",names:["Phoenician"],"iso639-2":"phn","iso639-1":null};var fb={name:"Pilipino",names:["Filipino","Pilipino"],"iso639-2":"fil","iso639-1":null};var db={name:"Pohnpeian",names:["Pohnpeian"],"iso639-2":"pon","iso639-1":null};var gb={name:"Polish",names:["Polish"],"iso639-2":"pol","iso639-1":"pl"};var pb={name:"Portuguese",names:["Portuguese"],"iso639-2":"por","iso639-1":"pt"};var vb={name:"Punjabi",names:["Panjabi","Punjabi"],"iso639-2":"pan","iso639-1":"pa"};var mb={name:"Pushto",names:["Pushto","Pashto"],"iso639-2":"pus","iso639-1":"ps"};var yb={name:"Quechua",names:["Quechua"],"iso639-2":"que","iso639-1":"qu"};var _b={name:"Rajasthani",names:["Rajasthani"],"iso639-2":"raj","iso639-1":null};var bb={name:"Rapanui",names:["Rapanui"],"iso639-2":"rap","iso639-1":null};var wb={name:"Rarotongan",names:["Rarotongan","Cook Islands Maori"],"iso639-2":"rar","iso639-1":null};var xb={name:"Romanian",names:["Romanian","Moldavian","Moldovan"],"iso639-2":"rum/ron","iso639-1":"ro"};var kb={name:"Romansh",names:["Romansh"],"iso639-2":"roh","iso639-1":"rm"};var Sb={name:"Romany",names:["Romany"],"iso639-2":"rom","iso639-1":null};var Cb={name:"Rundi",names:["Rundi"],"iso639-2":"run","iso639-1":"rn"};var Eb={name:"Russian",names:["Russian"],"iso639-2":"rus","iso639-1":"ru"};var Ab={name:"Sakan",names:["Khotanese","Sakan"],"iso639-2":"kho","iso639-1":null};var Rb={name:"Samoan",names:["Samoan"],"iso639-2":"smo","iso639-1":"sm"};var Mb={name:"Sandawe",names:["Sandawe"],"iso639-2":"sad","iso639-1":null};var Tb={name:"Sango",names:["Sango"],"iso639-2":"sag","iso639-1":"sg"};var Bb={name:"Sanskrit",names:["Sanskrit"],"iso639-2":"san","iso639-1":"sa"};var Nb={name:"Santali",names:["Santali"],"iso639-2":"sat","iso639-1":null};var Pb={name:"Sardinian",names:["Sardinian"],"iso639-2":"srd","iso639-1":"sc"};var Db={name:"Sasak",names:["Sasak"],"iso639-2":"sas","iso639-1":null};var Ob={name:"Scots",names:["Scots"],"iso639-2":"sco","iso639-1":null};var zb={name:"Selkup",names:["Selkup"],"iso639-2":"sel","iso639-1":null};var Fb={name:"Sepedi",names:["Pedi","Sepedi","Northern Sotho"],"iso639-2":"nso","iso639-1":null};var Lb={name:"Serbian",names:["Serbian"],"iso639-2":"srp","iso639-1":"sr"};var Ib={name:"Serer",names:["Serer"],"iso639-2":"srr","iso639-1":null};var jb={name:"Shan",names:["Shan"],"iso639-2":"shn","iso639-1":null};var Hb={name:"Shona",names:["Shona"],"iso639-2":"sna","iso639-1":"sn"};var Vb={name:"Sicilian",names:["Sicilian"],"iso639-2":"scn","iso639-1":null};var Gb={name:"Sidamo",names:["Sidamo"],"iso639-2":"sid","iso639-1":null};var Ub={name:"Siksika",names:["Siksika"],"iso639-2":"bla","iso639-1":null};var Wb={name:"Sindhi",names:["Sindhi"],"iso639-2":"snd","iso639-1":"sd"};var Kb={name:"Sinhala",names:["Sinhala","Sinhalese"],"iso639-2":"sin","iso639-1":"si"};var qb={name:"Sinhalese",names:["Sinhala","Sinhalese"],"iso639-2":"sin","iso639-1":"si"};var Yb={name:"Slovak",names:["Slovak"],"iso639-2":"slo/slk","iso639-1":"sk"};var Xb={name:"Slovenian",names:["Slovenian"],"iso639-2":"slv","iso639-1":"sl"};var $b={name:"Sogdian",names:["Sogdian"],"iso639-2":"sog","iso639-1":null};var Zb={name:"Somali",names:["Somali"],"iso639-2":"som","iso639-1":"so"};var Jb={name:"Soninke",names:["Soninke"],"iso639-2":"snk","iso639-1":null};var Qb={name:"Spanish",names:["Spanish","Castilian"],"iso639-2":"spa","iso639-1":"es"};var ew={name:"Sukuma",names:["Sukuma"],"iso639-2":"suk","iso639-1":null};var tw={name:"Sumerian",names:["Sumerian"],"iso639-2":"sux","iso639-1":null};var nw={name:"Sundanese",names:["Sundanese"],"iso639-2":"sun","iso639-1":"su"};var iw={name:"Susu",names:["Susu"],"iso639-2":"sus","iso639-1":null};var aw={name:"Swahili",names:["Swahili"],"iso639-2":"swa","iso639-1":"sw"};var rw={name:"Swati",names:["Swati"],"iso639-2":"ssw","iso639-1":"ss"};var ow={name:"Swedish",names:["Swedish"],"iso639-2":"swe","iso639-1":"sv"};var sw={name:"Syriac",names:["Syriac"],"iso639-2":"syr","iso639-1":null};var lw={name:"Tagalog",names:["Tagalog"],"iso639-2":"tgl","iso639-1":"tl"};var uw={name:"Tahitian",names:["Tahitian"],"iso639-2":"tah","iso639-1":"ty"};var hw={name:"Tajik",names:["Tajik"],"iso639-2":"tgk","iso639-1":"tg"};var cw={name:"Tamashek",names:["Tamashek"],"iso639-2":"tmh","iso639-1":null};var fw={name:"Tamil",names:["Tamil"],"iso639-2":"tam","iso639-1":"ta"};var dw={name:"Tatar",names:["Tatar"],"iso639-2":"tat","iso639-1":"tt"};var gw={name:"Telugu",names:["Telugu"],"iso639-2":"tel","iso639-1":"te"};var pw={name:"Tereno",names:["Tereno"],"iso639-2":"ter","iso639-1":null};var vw={name:"Tetum",names:["Tetum"],"iso639-2":"tet","iso639-1":null};var mw={name:"Thai",names:["Thai"],"iso639-2":"tha","iso639-1":"th"};var yw={name:"Tibetan",names:["Tibetan"],"iso639-2":"tib/bod","iso639-1":"bo"};var _w={name:"Tigre",names:["Tigre"],"iso639-2":"tig","iso639-1":null};var bw={name:"Tigrinya",names:["Tigrinya"],"iso639-2":"tir","iso639-1":"ti"};var ww={name:"Timne",names:["Timne"],"iso639-2":"tem","iso639-1":null};var xw={name:"Tiv",names:["Tiv"],"iso639-2":"tiv","iso639-1":null};var kw={name:"Tlingit",names:["Tlingit"],"iso639-2":"tli","iso639-1":null};var Sw={name:"Tokelau",names:["Tokelau"],"iso639-2":"tkl","iso639-1":null};var Cw={name:"Tsimshian",names:["Tsimshian"],"iso639-2":"tsi","iso639-1":null};var Ew={name:"Tsonga",names:["Tsonga"],"iso639-2":"tso","iso639-1":"ts"};var Aw={name:"Tswana",names:["Tswana"],"iso639-2":"tsn","iso639-1":"tn"};var Rw={name:"Tumbuka",names:["Tumbuka"],"iso639-2":"tum","iso639-1":null};var Mw={name:"Turkish",names:["Turkish"],"iso639-2":"tur","iso639-1":"tr"};var Tw={name:"Turkmen",names:["Turkmen"],"iso639-2":"tuk","iso639-1":"tk"};var Bw={name:"Tuvalu",names:["Tuvalu"],"iso639-2":"tvl","iso639-1":null};var Nw={name:"Tuvinian",names:["Tuvinian"],"iso639-2":"tyv","iso639-1":null};var Pw={name:"Twi",names:["Twi"],"iso639-2":"twi","iso639-1":"tw"};var Dw={name:"Udmurt",names:["Udmurt"],"iso639-2":"udm","iso639-1":null};var Ow={name:"Ugaritic",names:["Ugaritic"],"iso639-2":"uga","iso639-1":null};var zw={name:"Uighur",names:["Uighur","Uyghur"],"iso639-2":"uig","iso639-1":"ug"};var Fw={name:"Ukrainian",names:["Ukrainian"],"iso639-2":"ukr","iso639-1":"uk"};var Lw={name:"Umbundu",names:["Umbundu"],"iso639-2":"umb","iso639-1":null};var Iw={name:"Undetermined",names:["Undetermined"],"iso639-2":"und","iso639-1":null};var jw={name:"Urdu",names:["Urdu"],"iso639-2":"urd","iso639-1":"ur"};var Hw={name:"Uyghur",names:["Uighur","Uyghur"],"iso639-2":"uig","iso639-1":"ug"};var Vw={name:"Uzbek",names:["Uzbek"],"iso639-2":"uzb","iso639-1":"uz"};var Gw={name:"Vai",names:["Vai"],"iso639-2":"vai","iso639-1":null};var Uw={name:"Valencian",names:["Catalan","Valencian"],"iso639-2":"cat","iso639-1":"ca"};var Ww={name:"Venda",names:["Venda"],"iso639-2":"ven","iso639-1":"ve"};var Kw={name:"Vietnamese",names:["Vietnamese"],"iso639-2":"vie","iso639-1":"vi"};var qw={name:"Votic",names:["Votic"],"iso639-2":"vot","iso639-1":null};var Yw={name:"Walloon",names:["Walloon"],"iso639-2":"wln","iso639-1":"wa"};var Xw={name:"Waray",names:["Waray"],"iso639-2":"war","iso639-1":null};var $w={name:"Washo",names:["Washo"],"iso639-2":"was","iso639-1":null};var Zw={name:"Welsh",names:["Welsh"],"iso639-2":"wel/cym","iso639-1":"cy"};var Jw={name:"Wolaitta",names:["Wolaitta","Wolaytta"],"iso639-2":"wal","iso639-1":null};var Qw={name:"Wolaytta",names:["Wolaitta","Wolaytta"],"iso639-2":"wal","iso639-1":null};var ex={name:"Wolof",names:["Wolof"],"iso639-2":"wol","iso639-1":"wo"};var tx={name:"Xhosa",names:["Xhosa"],"iso639-2":"xho","iso639-1":"xh"};var nx={name:"Yakut",names:["Yakut"],"iso639-2":"sah","iso639-1":null};var ix={name:"Yao",names:["Yao"],"iso639-2":"yao","iso639-1":null};var ax={name:"Yapese",names:["Yapese"],"iso639-2":"yap","iso639-1":null};var rx={name:"Yiddish",names:["Yiddish"],"iso639-2":"yid","iso639-1":"yi"};var ox={name:"Yoruba",names:["Yoruba"],"iso639-2":"yor","iso639-1":"yo"};var sx={name:"Zapotec",names:["Zapotec"],"iso639-2":"zap","iso639-1":null};var lx={name:"Zaza",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var ux={name:"Zazaki",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var hx={name:"Zenaga",names:["Zenaga"],"iso639-2":"zen","iso639-1":null};var cx={name:"Zhuang",names:["Zhuang","Chuang"],"iso639-2":"zha","iso639-1":"za"};var fx={name:"Zulu",names:["Zulu"],"iso639-2":"zul","iso639-1":"zu"};var dx={name:"Zuni",names:["Zuni"],"iso639-2":"zun","iso639-1":null};var gx={Abkhazian:Hg,Achinese:Vg,Acoli:Gg,Adangme:Ug,Adygei:Wg,Adyghe:Kg,Afar:qg,Afrihili:Yg,Afrikaans:Xg,"Afro-Asiatic languages":{name:"Afro-Asiatic languages",names:["Afro-Asiatic languages"],"iso639-2":"afa","iso639-1":null},Ainu:$g,Akan:Zg,Akkadian:Jg,Albanian:Qg,Alemannic:ep,Aleut:tp,"Algonquian languages":{name:"Algonquian languages",names:["Algonquian languages"],"iso639-2":"alg","iso639-1":null},Alsatian:np,"Altaic languages":{name:"Altaic languages",names:["Altaic languages"],"iso639-2":"tut","iso639-1":null},Amharic:ip,Angika:ap,"Apache languages":{name:"Apache languages",names:["Apache languages"],"iso639-2":"apa","iso639-1":null},Arabic:rp,Aragonese:op,Arapaho:sp,Arawak:lp,Armenian:up,Aromanian:hp,"Artificial languages":{name:"Artificial languages",names:["Artificial languages"],"iso639-2":"art","iso639-1":null},Arumanian:cp,Assamese:fp,Asturian:dp,Asturleonese:gp,"Athapascan languages":{name:"Athapascan languages",names:["Athapascan languages"],"iso639-2":"ath","iso639-1":null},"Australian languages":{name:"Australian languages",names:["Australian languages"],"iso639-2":"aus","iso639-1":null},"Austronesian languages":{name:"Austronesian languages",names:["Austronesian languages"],"iso639-2":"map","iso639-1":null},Avaric:pp,Avestan:vp,Awadhi:mp,Aymara:yp,Azerbaijani:_p,Bable:bp,Balinese:wp,"Baltic languages":{name:"Baltic languages",names:["Baltic languages"],"iso639-2":"bat","iso639-1":null},Baluchi:xp,Bambara:kp,"Bamileke languages":{name:"Bamileke languages",names:["Bamileke languages"],"iso639-2":"bai","iso639-1":null},"Banda languages":{name:"Banda languages",names:["Banda languages"],"iso639-2":"bad","iso639-1":null},"Bantu languages":{name:"Bantu languages",names:["Bantu languages"],"iso639-2":"bnt","iso639-1":null},Basa:Sp,Bashkir:Cp,Basque:Ep,"Batak languages":{name:"Batak languages",names:["Batak languages"],"iso639-2":"btk","iso639-1":null},Bedawiyet:Ap,Beja:Rp,Belarusian:Mp,Bemba:Tp,Bengali:Bp,"Berber languages":{name:"Berber languages",names:["Berber languages"],"iso639-2":"ber","iso639-1":null},Bhojpuri:Np,"Bihari languages":{name:"Bihari languages",names:["Bihari languages"],"iso639-2":"bih","iso639-1":"bh"},Bikol:Pp,Bilin:Dp,Bini:Op,Bislama:zp,Blin:Fp,Bliss:Lp,Blissymbolics:Ip,Blissymbols:jp,"Bokmål, Norwegian":{name:"Bokmål, Norwegian",names:["Bokmål, Norwegian","Norwegian Bokmål"],"iso639-2":"nob","iso639-1":"nb"},Bosnian:Hp,Braj:Vp,Breton:Gp,Buginese:Up,Bulgarian:Wp,Buriat:Kp,Burmese:qp,Caddo:Yp,Castilian:Xp,Catalan:$p,"Caucasian languages":{name:"Caucasian languages",names:["Caucasian languages"],"iso639-2":"cau","iso639-1":null},Cebuano:Zp,"Celtic languages":{name:"Celtic languages",names:["Celtic languages"],"iso639-2":"cel","iso639-1":null},"Central American Indian languages":{name:"Central American Indian languages",names:["Central American Indian languages"],"iso639-2":"cai","iso639-1":null},"Central Khmer":{name:"Central Khmer",names:["Central Khmer"],"iso639-2":"khm","iso639-1":"km"},Chagatai:Jp,"Chamic languages":{name:"Chamic languages",names:["Chamic languages"],"iso639-2":"cmc","iso639-1":null},Chamorro:Qp,Chechen:ev,Cherokee:tv,Chewa:nv,Cheyenne:iv,Chibcha:av,Chichewa:rv,Chinese:ov,"Chinook jargon":{name:"Chinook jargon",names:["Chinook jargon"],"iso639-2":"chn","iso639-1":null},Chipewyan:sv,Choctaw:lv,Chuang:uv,"Church Slavic":{name:"Church Slavic",names:["Church Slavic","Old Slavonic","Church Slavonic","Old Bulgarian","Old Church Slavonic"],"iso639-2":"chu","iso639-1":"cu"},"Church Slavonic":{name:"Church Slavonic",names:["Church Slavic","Old Slavonic","Church Slavonic","Old Bulgarian","Old Church Slavonic"],"iso639-2":"chu","iso639-1":"cu"},Chuukese:hv,Chuvash:cv,"Classical Nepal Bhasa":{name:"Classical Nepal Bhasa",names:["Classical Newari","Old Newari","Classical Nepal Bhasa"],"iso639-2":"nwc","iso639-1":null},"Classical Newari":{name:"Classical Newari",names:["Classical Newari","Old Newari","Classical Nepal Bhasa"],"iso639-2":"nwc","iso639-1":null},"Classical Syriac":{name:"Classical Syriac",names:["Classical Syriac"],"iso639-2":"syc","iso639-1":null},"Cook Islands Maori":{name:"Cook Islands Maori",names:["Rarotongan","Cook Islands Maori"],"iso639-2":"rar","iso639-1":null},Coptic:fv,Cornish:dv,Corsican:gv,Cree:pv,Creek:vv,"Creoles and pidgins":{name:"Creoles and pidgins",names:["Creoles and pidgins"],"iso639-2":"crp","iso639-1":null},"Creoles and pidgins, English based":{name:"Creoles and pidgins, English based",names:["Creoles and pidgins, English based"],"iso639-2":"cpe","iso639-1":null},"Creoles and pidgins, French-based":{name:"Creoles and pidgins, French-based",names:["Creoles and pidgins, French-based"],"iso639-2":"cpf","iso639-1":null},"Creoles and pidgins, Portuguese-based":{name:"Creoles and pidgins, Portuguese-based",names:["Creoles and pidgins, Portuguese-based"],"iso639-2":"cpp","iso639-1":null},"Crimean Tatar":{name:"Crimean Tatar",names:["Crimean Tatar","Crimean Turkish"],"iso639-2":"crh","iso639-1":null},"Crimean Turkish":{name:"Crimean Turkish",names:["Crimean Tatar","Crimean Turkish"],"iso639-2":"crh","iso639-1":null},Croatian:mv,"Cushitic languages":{name:"Cushitic languages",names:["Cushitic languages"],"iso639-2":"cus","iso639-1":null},Czech:yv,Dakota:_v,Danish:bv,Dargwa:wv,Delaware:xv,"Dene Suline":{name:"Dene Suline",names:["Chipewyan","Dene Suline"],"iso639-2":"chp","iso639-1":null},Dhivehi:kv,Dimili:Sv,Dimli:Cv,Dinka:Ev,Divehi:Av,Dogri:Rv,Dogrib:Mv,"Dravidian languages":{name:"Dravidian languages",names:["Dravidian languages"],"iso639-2":"dra","iso639-1":null},Duala:Tv,Dutch:Bv,"Dutch, Middle (ca.1050-1350)":{name:"Dutch, Middle (ca.1050-1350)",names:["Dutch, Middle (ca.1050-1350)"],"iso639-2":"dum","iso639-1":null},Dyula:Nv,Dzongkha:Pv,"Eastern Frisian":{name:"Eastern Frisian",names:["Eastern Frisian"],"iso639-2":"frs","iso639-1":null},Edo:Dv,Efik:Ov,"Egyptian (Ancient)":{name:"Egyptian (Ancient)",names:["Egyptian (Ancient)"],"iso639-2":"egy","iso639-1":null},Ekajuk:zv,Elamite:Fv,English:Lv,"English, Middle (1100-1500)":{name:"English, Middle (1100-1500)",names:["English, Middle (1100-1500)"],"iso639-2":"enm","iso639-1":null},"English, Old (ca.450-1100)":{name:"English, Old (ca.450-1100)",names:["English, Old (ca.450-1100)"],"iso639-2":"ang","iso639-1":null},Erzya:Iv,Esperanto:jv,Estonian:Hv,Ewe:Vv,Ewondo:Gv,Fang:Uv,Fanti:Wv,Faroese:Kv,Fijian:qv,Filipino:Yv,Finnish:Xv,"Finno-Ugrian languages":{name:"Finno-Ugrian languages",names:["Finno-Ugrian languages"],"iso639-2":"fiu","iso639-1":null},Flemish:$v,Fon:Zv,French:Jv,"French, Middle (ca.1400-1600)":{name:"French, Middle (ca.1400-1600)",names:["French, Middle (ca.1400-1600)"],"iso639-2":"frm","iso639-1":null},"French, Old (842-ca.1400)":{name:"French, Old (842-ca.1400)",names:["French, Old (842-ca.1400)"],"iso639-2":"fro","iso639-1":null},Friulian:Qv,Fulah:em,Ga:tm,Gaelic:nm,"Galibi Carib":{name:"Galibi Carib",names:["Galibi Carib"],"iso639-2":"car","iso639-1":null},Galician:im,Ganda:am,Gayo:rm,Gbaya:om,Geez:sm,Georgian:lm,German:um,"German, Low":{name:"German, Low",names:["Low German","Low Saxon","German, Low","Saxon, Low"],"iso639-2":"nds","iso639-1":null},"German, Middle High (ca.1050-1500)":{name:"German, Middle High (ca.1050-1500)",names:["German, Middle High (ca.1050-1500)"],"iso639-2":"gmh","iso639-1":null},"German, Old High (ca.750-1050)":{name:"German, Old High (ca.750-1050)",names:["German, Old High (ca.750-1050)"],"iso639-2":"goh","iso639-1":null},"Germanic languages":{name:"Germanic languages",names:["Germanic languages"],"iso639-2":"gem","iso639-1":null},Gikuyu:hm,Gilbertese:cm,Gondi:fm,Gorontalo:dm,Gothic:gm,Grebo:pm,"Greek, Ancient (to 1453)":{name:"Greek, Ancient (to 1453)",names:["Greek, Ancient (to 1453)"],"iso639-2":"grc","iso639-1":null},"Greek, Modern (1453-)":{name:"Greek, Modern (1453-)",names:["Greek, Modern (1453-)"],"iso639-2":"gre/ell","iso639-1":"el"},Greenlandic:vm,Guarani:mm,Gujarati:ym,"Gwich'in":{name:"Gwich'in",names:["Gwich'in"],"iso639-2":"gwi","iso639-1":null},Haida:_m,Haitian:bm,"Haitian Creole":{name:"Haitian Creole",names:["Haitian","Haitian Creole"],"iso639-2":"hat","iso639-1":"ht"},Hausa:wm,Hawaiian:xm,Hebrew:km,Herero:Sm,Hiligaynon:Cm,"Himachali languages":{name:"Himachali languages",names:["Himachali languages","Western Pahari languages"],"iso639-2":"him","iso639-1":null},Hindi:Em,"Hiri Motu":{name:"Hiri Motu",names:["Hiri Motu"],"iso639-2":"hmo","iso639-1":"ho"},Hittite:Am,Hmong:Rm,Hungarian:Mm,Hupa:Tm,Iban:Bm,Icelandic:Nm,Ido:Pm,Igbo:Dm,"Ijo languages":{name:"Ijo languages",names:["Ijo languages"],"iso639-2":"ijo","iso639-1":null},Iloko:Om,"Imperial Aramaic (700-300 BCE)":{name:"Imperial Aramaic (700-300 BCE)",names:["Official Aramaic (700-300 BCE)","Imperial Aramaic (700-300 BCE)"],"iso639-2":"arc","iso639-1":null},"Inari Sami":{name:"Inari Sami",names:["Inari Sami"],"iso639-2":"smn","iso639-1":null},"Indic languages":{name:"Indic languages",names:["Indic languages"],"iso639-2":"inc","iso639-1":null},"Indo-European languages":{name:"Indo-European languages",names:["Indo-European languages"],"iso639-2":"ine","iso639-1":null},Indonesian:zm,Ingush:Fm,"Interlingua (International Auxiliary Language Association)":{name:"Interlingua (International Auxiliary Language Association)",names:["Interlingua (International Auxiliary Language Association)"],"iso639-2":"ina","iso639-1":"ia"},Interlingue:Lm,Inuktitut:Im,Inupiaq:jm,"Iranian languages":{name:"Iranian languages",names:["Iranian languages"],"iso639-2":"ira","iso639-1":null},Irish:Hm,"Irish, Middle (900-1200)":{name:"Irish, Middle (900-1200)",names:["Irish, Middle (900-1200)"],"iso639-2":"mga","iso639-1":null},"Irish, Old (to 900)":{name:"Irish, Old (to 900)",names:["Irish, Old (to 900)"],"iso639-2":"sga","iso639-1":null},"Iroquoian languages":{name:"Iroquoian languages",names:["Iroquoian languages"],"iso639-2":"iro","iso639-1":null},Italian:Vm,Japanese:Gm,Javanese:Um,Jingpho:Wm,"Judeo-Arabic":{name:"Judeo-Arabic",names:["Judeo-Arabic"],"iso639-2":"jrb","iso639-1":null},"Judeo-Persian":{name:"Judeo-Persian",names:["Judeo-Persian"],"iso639-2":"jpr","iso639-1":null},Kabardian:Km,Kabyle:qm,Kachin:Ym,Kalaallisut:Xm,Kalmyk:$m,Kamba:Zm,Kannada:Jm,Kanuri:Qm,Kapampangan:ey,"Kara-Kalpak":{name:"Kara-Kalpak",names:["Kara-Kalpak"],"iso639-2":"kaa","iso639-1":null},"Karachay-Balkar":{name:"Karachay-Balkar",names:["Karachay-Balkar"],"iso639-2":"krc","iso639-1":null},Karelian:ty,"Karen languages":{name:"Karen languages",names:["Karen languages"],"iso639-2":"kar","iso639-1":null},Kashmiri:ny,Kashubian:iy,Kawi:ay,Kazakh:ry,Khasi:oy,"Khoisan languages":{name:"Khoisan languages",names:["Khoisan languages"],"iso639-2":"khi","iso639-1":null},Khotanese:sy,Kikuyu:ly,Kimbundu:uy,Kinyarwanda:hy,Kirdki:cy,Kirghiz:fy,Kirmanjki:dy,Klingon:gy,Komi:py,Kongo:vy,Konkani:my,Korean:yy,Kosraean:_y,Kpelle:by,"Kru languages":{name:"Kru languages",names:["Kru languages"],"iso639-2":"kro","iso639-1":null},Kuanyama:wy,Kumyk:xy,Kurdish:ky,Kurukh:Sy,Kutenai:Cy,Kwanyama:Ey,Kyrgyz:Ay,Ladino:Ry,Lahnda:My,Lamba:Ty,"Land Dayak languages":{name:"Land Dayak languages",names:["Land Dayak languages"],"iso639-2":"day","iso639-1":null},Lao:By,Latin:Ny,Latvian:Py,Leonese:Dy,Letzeburgesch:Oy,Lezghian:zy,Limburgan:Fy,Limburger:Ly,Limburgish:Iy,Lingala:jy,Lithuanian:Hy,Lojban:Vy,"Low German":{name:"Low German",names:["Low German","Low Saxon","German, Low","Saxon, Low"],"iso639-2":"nds","iso639-1":null},"Low Saxon":{name:"Low Saxon",names:["Low German","Low Saxon","German, Low","Saxon, Low"],"iso639-2":"nds","iso639-1":null},"Lower Sorbian":{name:"Lower Sorbian",names:["Lower Sorbian"],"iso639-2":"dsb","iso639-1":null},Lozi:Gy,"Luba-Katanga":{name:"Luba-Katanga",names:["Luba-Katanga"],"iso639-2":"lub","iso639-1":"lu"},"Luba-Lulua":{name:"Luba-Lulua",names:["Luba-Lulua"],"iso639-2":"lua","iso639-1":null},Luiseno:Uy,"Lule Sami":{name:"Lule Sami",names:["Lule Sami"],"iso639-2":"smj","iso639-1":null},Lunda:Wy,"Luo (Kenya and Tanzania)":{name:"Luo (Kenya and Tanzania)",names:["Luo (Kenya and Tanzania)"],"iso639-2":"luo","iso639-1":null},Lushai:Ky,Luxembourgish:qy,"Macedo-Romanian":{name:"Macedo-Romanian",names:["Aromanian","Arumanian","Macedo-Romanian"],"iso639-2":"rup","iso639-1":null},Macedonian:Yy,Madurese:Xy,Magahi:$y,Maithili:Zy,Makasar:Jy,Malagasy:Qy,Malay:e_,Malayalam:t_,Maldivian:n_,Maltese:i_,Manchu:a_,Mandar:r_,Mandingo:o_,Manipuri:s_,"Manobo languages":{name:"Manobo languages",names:["Manobo languages"],"iso639-2":"mno","iso639-1":null},Manx:l_,Maori:u_,Mapuche:h_,Mapudungun:c_,Marathi:f_,Mari:d_,Marshallese:g_,Marwari:p_,Masai:v_,"Mayan languages":{name:"Mayan languages",names:["Mayan languages"],"iso639-2":"myn","iso639-1":null},Mende:m_,"Mi'kmaq":{name:"Mi'kmaq",names:["Mi'kmaq","Micmac"],"iso639-2":"mic","iso639-1":null},Micmac:y_,Minangkabau:__,Mirandese:b_,Mohawk:w_,Moksha:x_,Moldavian:k_,Moldovan:S_,"Mon-Khmer languages":{name:"Mon-Khmer languages",names:["Mon-Khmer languages"],"iso639-2":"mkh","iso639-1":null},Mong:C_,Mongo:E_,Mongolian:A_,Montenegrin:R_,Mossi:M_,"Multiple languages":{name:"Multiple languages",names:["Multiple languages"],"iso639-2":"mul","iso639-1":null},"Munda languages":{name:"Munda languages",names:["Munda languages"],"iso639-2":"mun","iso639-1":null},"N'Ko":{name:"N'Ko",names:["N'Ko"],"iso639-2":"nqo","iso639-1":null},"Nahuatl languages":{name:"Nahuatl languages",names:["Nahuatl languages"],"iso639-2":"nah","iso639-1":null},Nauru:T_,Navaho:B_,Navajo:N_,"Ndebele, North":{name:"Ndebele, North",names:["Ndebele, North","North Ndebele"],"iso639-2":"nde","iso639-1":"nd"},"Ndebele, South":{name:"Ndebele, South",names:["Ndebele, South","South Ndebele"],"iso639-2":"nbl","iso639-1":"nr"},Ndonga:P_,Neapolitan:D_,"Nepal Bhasa":{name:"Nepal Bhasa",names:["Nepal Bhasa","Newari"],"iso639-2":"new","iso639-1":null},Nepali:O_,Newari:z_,Nias:F_,"Niger-Kordofanian languages":{name:"Niger-Kordofanian languages",names:["Niger-Kordofanian languages"],"iso639-2":"nic","iso639-1":null},"Nilo-Saharan languages":{name:"Nilo-Saharan languages",names:["Nilo-Saharan languages"],"iso639-2":"ssa","iso639-1":null},Niuean:L_,"No linguistic content":{name:"No linguistic content",names:["No linguistic content","Not applicable"],"iso639-2":"zxx","iso639-1":null},Nogai:I_,"Norse, Old":{name:"Norse, Old",names:["Norse, Old"],"iso639-2":"non","iso639-1":null},"North American Indian languages":{name:"North American Indian languages",names:["North American Indian languages"],"iso639-2":"nai","iso639-1":null},"North Ndebele":{name:"North Ndebele",names:["Ndebele, North","North Ndebele"],"iso639-2":"nde","iso639-1":"nd"},"Northern Frisian":{name:"Northern Frisian",names:["Northern Frisian"],"iso639-2":"frr","iso639-1":null},"Northern Sami":{name:"Northern Sami",names:["Northern Sami"],"iso639-2":"sme","iso639-1":"se"},"Northern Sotho":{name:"Northern Sotho",names:["Pedi","Sepedi","Northern Sotho"],"iso639-2":"nso","iso639-1":null},Norwegian:j_,"Norwegian Bokmål":{name:"Norwegian Bokmål",names:["Bokmål, Norwegian","Norwegian Bokmål"],"iso639-2":"nob","iso639-1":"nb"},"Norwegian Nynorsk":{name:"Norwegian Nynorsk",names:["Norwegian Nynorsk","Nynorsk, Norwegian"],"iso639-2":"nno","iso639-1":"nn"},"Not applicable":{name:"Not applicable",names:["No linguistic content","Not applicable"],"iso639-2":"zxx","iso639-1":null},"Nubian languages":{name:"Nubian languages",names:["Nubian languages"],"iso639-2":"nub","iso639-1":null},Nuosu:H_,Nyamwezi:V_,Nyanja:G_,Nyankole:U_,"Nynorsk, Norwegian":{name:"Nynorsk, Norwegian",names:["Norwegian Nynorsk","Nynorsk, Norwegian"],"iso639-2":"nno","iso639-1":"nn"},Nyoro:W_,Nzima:K_,Occidental:q_,"Occitan (post 1500)":{name:"Occitan (post 1500)",names:["Occitan (post 1500)"],"iso639-2":"oci","iso639-1":"oc"},"Occitan, Old (to 1500)":{name:"Occitan, Old (to 1500)",names:["Provençal, Old (to 1500)","Occitan, Old (to 1500)"],"iso639-2":"pro","iso639-1":null},"Official Aramaic (700-300 BCE)":{name:"Official Aramaic (700-300 BCE)",names:["Official Aramaic (700-300 BCE)","Imperial Aramaic (700-300 BCE)"],"iso639-2":"arc","iso639-1":null},Oirat:Y_,Ojibwa:X_,"Old Bulgarian":{name:"Old Bulgarian",names:["Church Slavic","Old Slavonic","Church Slavonic","Old Bulgarian","Old Church Slavonic"],"iso639-2":"chu","iso639-1":"cu"},"Old Church Slavonic":{name:"Old Church Slavonic",names:["Church Slavic","Old Slavonic","Church Slavonic","Old Bulgarian","Old Church Slavonic"],"iso639-2":"chu","iso639-1":"cu"},"Old Newari":{name:"Old Newari",names:["Classical Newari","Old Newari","Classical Nepal Bhasa"],"iso639-2":"nwc","iso639-1":null},"Old Slavonic":{name:"Old Slavonic",names:["Church Slavic","Old Slavonic","Church Slavonic","Old Bulgarian","Old Church Slavonic"],"iso639-2":"chu","iso639-1":"cu"},Oriya:$_,Oromo:Z_,Osage:J_,Ossetian:Q_,Ossetic:eb,"Otomian languages":{name:"Otomian languages",names:["Otomian languages"],"iso639-2":"oto","iso639-1":null},Pahlavi:tb,Palauan:nb,Pali:ib,Pampanga:ab,Pangasinan:rb,Panjabi:ob,Papiamento:sb,"Papuan languages":{name:"Papuan languages",names:["Papuan languages"],"iso639-2":"paa","iso639-1":null},Pashto:lb,Pedi:ub,Persian:hb,"Persian, Old (ca.600-400 B.C.)":{name:"Persian, Old (ca.600-400 B.C.)",names:["Persian, Old (ca.600-400 B.C.)"],"iso639-2":"peo","iso639-1":null},"Philippine languages":{name:"Philippine languages",names:["Philippine languages"],"iso639-2":"phi","iso639-1":null},Phoenician:cb,Pilipino:fb,Pohnpeian:db,Polish:gb,Portuguese:pb,"Prakrit languages":{name:"Prakrit languages",names:["Prakrit languages"],"iso639-2":"pra","iso639-1":null},"Provençal, Old (to 1500)":{name:"Provençal, Old (to 1500)",names:["Provençal, Old (to 1500)","Occitan, Old (to 1500)"],"iso639-2":"pro","iso639-1":null},Punjabi:vb,Pushto:mb,Quechua:yb,Rajasthani:_b,Rapanui:bb,Rarotongan:wb,"Reserved for local use":{name:"Reserved for local use",names:["Reserved for local use"],"iso639-2":"qaa-qtz","iso639-1":null},"Romance languages":{name:"Romance languages",names:["Romance languages"],"iso639-2":"roa","iso639-1":null},Romanian:xb,Romansh:kb,Romany:Sb,Rundi:Cb,Russian:Eb,Sakan:Ab,"Salishan languages":{name:"Salishan languages",names:["Salishan languages"],"iso639-2":"sal","iso639-1":null},"Samaritan Aramaic":{name:"Samaritan Aramaic",names:["Samaritan Aramaic"],"iso639-2":"sam","iso639-1":null},"Sami languages":{name:"Sami languages",names:["Sami languages"],"iso639-2":"smi","iso639-1":null},Samoan:Rb,Sandawe:Mb,Sango:Tb,Sanskrit:Bb,Santali:Nb,Sardinian:Pb,Sasak:Db,"Saxon, Low":{name:"Saxon, Low",names:["Low German","Low Saxon","German, Low","Saxon, Low"],"iso639-2":"nds","iso639-1":null},Scots:Ob,"Scottish Gaelic":{name:"Scottish Gaelic",names:["Gaelic","Scottish Gaelic"],"iso639-2":"gla","iso639-1":"gd"},Selkup:zb,"Semitic languages":{name:"Semitic languages",names:["Semitic languages"],"iso639-2":"sem","iso639-1":null},Sepedi:Fb,Serbian:Lb,Serer:Ib,Shan:jb,Shona:Hb,"Sichuan Yi":{name:"Sichuan Yi",names:["Sichuan Yi","Nuosu"],"iso639-2":"iii","iso639-1":"ii"},Sicilian:Vb,Sidamo:Gb,"Sign Languages":{name:"Sign Languages",names:["Sign Languages"],"iso639-2":"sgn","iso639-1":null},Siksika:Ub,Sindhi:Wb,Sinhala:Kb,Sinhalese:qb,"Sino-Tibetan languages":{name:"Sino-Tibetan languages",names:["Sino-Tibetan languages"],"iso639-2":"sit","iso639-1":null},"Siouan languages":{name:"Siouan languages",names:["Siouan languages"],"iso639-2":"sio","iso639-1":null},"Skolt Sami":{name:"Skolt Sami",names:["Skolt Sami"],"iso639-2":"sms","iso639-1":null},"Slave (Athapascan)":{name:"Slave (Athapascan)",names:["Slave (Athapascan)"],"iso639-2":"den","iso639-1":null},"Slavic languages":{name:"Slavic languages",names:["Slavic languages"],"iso639-2":"sla","iso639-1":null},Slovak:Yb,Slovenian:Xb,Sogdian:$b,Somali:Zb,"Songhai languages":{name:"Songhai languages",names:["Songhai languages"],"iso639-2":"son","iso639-1":null},Soninke:Jb,"Sorbian languages":{name:"Sorbian languages",names:["Sorbian languages"],"iso639-2":"wen","iso639-1":null},"Sotho, Northern":{name:"Sotho, Northern",names:["Pedi","Sepedi","Northern Sotho"],"iso639-2":"nso","iso639-1":null},"Sotho, Southern":{name:"Sotho, Southern",names:["Sotho, Southern"],"iso639-2":"sot","iso639-1":"st"},"South American Indian languages":{name:"South American Indian languages",names:["South American Indian languages"],"iso639-2":"sai","iso639-1":null},"South Ndebele":{name:"South Ndebele",names:["Ndebele, South","South Ndebele"],"iso639-2":"nbl","iso639-1":"nr"},"Southern Altai":{name:"Southern Altai",names:["Southern Altai"],"iso639-2":"alt","iso639-1":null},"Southern Sami":{name:"Southern Sami",names:["Southern Sami"],"iso639-2":"sma","iso639-1":null},Spanish:Qb,"Sranan Tongo":{name:"Sranan Tongo",names:["Sranan Tongo"],"iso639-2":"srn","iso639-1":null},"Standard Moroccan Tamazight":{name:"Standard Moroccan Tamazight",names:["Standard Moroccan Tamazight"],"iso639-2":"zgh","iso639-1":null},Sukuma:ew,Sumerian:tw,Sundanese:nw,Susu:iw,Swahili:aw,Swati:rw,Swedish:ow,"Swiss German":{name:"Swiss German",names:["Swiss German","Alemannic","Alsatian"],"iso639-2":"gsw","iso639-1":null},Syriac:sw,Tagalog:lw,Tahitian:uw,"Tai languages":{name:"Tai languages",names:["Tai languages"],"iso639-2":"tai","iso639-1":null},Tajik:hw,Tamashek:cw,Tamil:fw,Tatar:dw,Telugu:gw,Tereno:pw,Tetum:vw,Thai:mw,Tibetan:yw,Tigre:_w,Tigrinya:bw,Timne:ww,Tiv:xw,"tlhIngan-Hol":{name:"tlhIngan-Hol",names:["Klingon","tlhIngan-Hol"],"iso639-2":"tlh","iso639-1":null},Tlingit:kw,"Tok Pisin":{name:"Tok Pisin",names:["Tok Pisin"],"iso639-2":"tpi","iso639-1":null},Tokelau:Sw,"Tonga (Nyasa)":{name:"Tonga (Nyasa)",names:["Tonga (Nyasa)"],"iso639-2":"tog","iso639-1":null},"Tonga (Tonga Islands)":{name:"Tonga (Tonga Islands)",names:["Tonga (Tonga Islands)"],"iso639-2":"ton","iso639-1":"to"},Tsimshian:Cw,Tsonga:Ew,Tswana:Aw,Tumbuka:Rw,"Tupi languages":{name:"Tupi languages",names:["Tupi languages"],"iso639-2":"tup","iso639-1":null},Turkish:Mw,"Turkish, Ottoman (1500-1928)":{name:"Turkish, Ottoman (1500-1928)",names:["Turkish, Ottoman (1500-1928)"],"iso639-2":"ota","iso639-1":null},Turkmen:Tw,Tuvalu:Bw,Tuvinian:Nw,Twi:Pw,Udmurt:Dw,Ugaritic:Ow,Uighur:zw,Ukrainian:Fw,Umbundu:Lw,"Uncoded languages":{name:"Uncoded languages",names:["Uncoded languages"],"iso639-2":"mis","iso639-1":null},Undetermined:Iw,"Upper Sorbian":{name:"Upper Sorbian",names:["Upper Sorbian"],"iso639-2":"hsb","iso639-1":null},Urdu:jw,Uyghur:Hw,Uzbek:Vw,Vai:Gw,Valencian:Uw,Venda:Ww,Vietnamese:Kw,"Volapük":{name:"Volapük",names:["Volapük"],"iso639-2":"vol","iso639-1":"vo"},Votic:qw,"Wakashan languages":{name:"Wakashan languages",names:["Wakashan languages"],"iso639-2":"wak","iso639-1":null},Walloon:Yw,Waray:Xw,Washo:$w,Welsh:Zw,"Western Frisian":{name:"Western Frisian",names:["Western Frisian"],"iso639-2":"fry","iso639-1":"fy"},"Western Pahari languages":{name:"Western Pahari languages",names:["Himachali languages","Western Pahari languages"],"iso639-2":"him","iso639-1":null},Wolaitta:Jw,Wolaytta:Qw,Wolof:ex,Xhosa:tx,Yakut:nx,Yao:ix,Yapese:ax,Yiddish:rx,Yoruba:ox,"Yupik languages":{name:"Yupik languages",names:["Yupik languages"],"iso639-2":"ypk","iso639-1":null},"Zande languages":{name:"Zande languages",names:["Zande languages"],"iso639-2":"znd","iso639-1":null},Zapotec:sx,Zaza:lx,Zazaki:ux,Zenaga:hx,Zhuang:cx,Zulu:fx,Zuni:dx};function px(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}var vx=[];var mx=Object.keys(gx);Object.keys(jg).map(function(e){var t=jg[e];var n=mx.find(function(e){return e.toLowerCase()===t.language.toLowerCase()});if(t.location&&n){var i;vx.push((i={},px(i,"name",t.language),px(i,"location",t.location),px(i,"tag",t.tag),px(i,"lcid",t.id),px(i,"iso639-2",gx[n]["iso639-2"]),px(i,"iso639-1",gx[n]["iso639-1"]),i))}});var yx={ar:"ar-SA",ca:"ca-ES",da:"da-DK",en:"en-US",ko:"ko-KR",pa:"pa-IN",pt:"pt-BR",sv:"sv-SE"};function _x(t){if(typeof t!=="string"||t.length===5)return t;if(yx[t])return yx[t];var e=vx.filter(function(e){return e["iso639-1"]===t});if(!e.length)return t;else if(e.length===1)return e[0].tag;else if(e.find(function(e){return e.tag==="".concat(t,"-").concat(t.toUpperCase())}))return"".concat(t,"-").concat(t.toUpperCase());else return e[0].tag}function bx(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}function wx(){return"".concat(bx()).concat(bx(),"-").concat(bx(),"-").concat(bx(),"-").concat(bx(),"-").concat(bx()).concat(bx()).concat(bx())}var xx="D3PLUS-COMMON-RESET";var kx={and:"y",Back:"Atrás","Click to Expand":"Clic para Ampliar","Click to Hide":"Clic para Ocultar","Click to Highlight":"Clic para Resaltar","Click to Reset":"Clic para Restablecer",Download:"Descargar","Loading Visualization":"Cargando Visualización","No Data Available":"Datos No Disponibles","Powered by D3plus":"Funciona con D3plus",Share:"Porcentaje","Shift+Click to Hide":"Mayús+Clic para Ocultar",Total:"Total",Values:"Valores"};var Sx={"es-ES":kx};function Cx(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function Ex(e,t){for(var n=0;n1&&arguments[1]!==undefined?arguments[1]:i._locale;var n=Sx[t];return n&&n[e]?n[e]:e};this._uuid=wx()}Ax(e,[{key:"config",value:function n(e){var i=this;if(!this._configDefault){var n={};Mx(this.__proto__).forEach(function(e){var t=i[e]();if(t!==i)n[e]=kh(t)?Ch({},t):t});this._configDefault=n}if(arguments.length){for(var t in e){if({}.hasOwnProperty.call(e,t)&&t in this){var a=e[t];if(a===xx){if(t==="on")this._on=this._configDefault[t];else this[t](this._configDefault[t])}else{Rx(a,this._configDefault[t]);this[t](a)}}}return this}else{var r={};Mx(this.__proto__).forEach(function(e){r[e]=i[e]()});return r}}},{key:"locale",value:function e(t){return arguments.length?(this._locale=_x(t),this):this._locale}},{key:"on",value:function e(t,n){return arguments.length===2?(this._on[t]=n,this):arguments.length?typeof t==="string"?this._on[t]:(this._on=Object.assign({},this._on,t),this):this._on}},{key:"parent",value:function e(t){return arguments.length?(this._parent=t,this):this._parent}},{key:"translate",value:function e(t){return arguments.length?(this._translate=t,this):this._translate}},{key:"shapeConfig",value:function e(t){return arguments.length?(this._shapeConfig=Ch(this._shapeConfig,t),this):this._shapeConfig}}]);return e}();function Bx(n){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];if(!e||!(e instanceof Array)||!e.length)return undefined;return e.reduce(function(e,t){return Math.abs(t-n)0&&arguments[0]!==undefined?arguments[0]:this._shapeConfig;var a=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"shape";var t=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var n={duration:this._duration,on:{}};var o=function e(a){return function(e,t,n){var i;while(e.__d3plus__){if(i)e.__d3plusParent__=i;i=e;t=e.i;e=e.data||e.feature}return a.bind(r)(e,t,n||i)}};var s=function e(t,n){for(var i in n){if({}.hasOwnProperty.call(n,i)&&!i.includes(".")||i.includes(".".concat(a))){t.on[i]=o(n[i])}}};var l=function t(e){return e.map(function(e){if(e instanceof Array)return t(e);else if(Nx(e)==="object")return i({},e);else if(typeof e==="function")return o(e);else return e})};var i=function e(t,n){for(var i in n){if({}.hasOwnProperty.call(n,i)){if(i==="on")s(t,n[i]);else if(typeof n[i]==="function"){t[i]=o(n[i])}else if(n[i]instanceof Array){t[i]=l(n[i])}else if(Nx(n[i])==="object"){t[i]={on:{}};e(t[i],n[i])}else t[i]=n[i]}}};i(n,e);if(this._on)s(n,this._on);if(t&&e[t]){i(n,e[t]);if(e[t].on)s(n,e[t].on)}return n}function Dx(t){return function e(){return t}}function Ox(e,t){t=Object.assign({},{condition:true,enter:{},exit:{},parent:Rl("body"),transition:eh().duration(0),update:{}},t);var n=/\.([^#]+)/g.exec(e),i=/#([^\.]+)/g.exec(e),a=/^([^.^#]+)/g.exec(e)[1];var r=t.parent.selectAll(e.includes(":")?e.split(":")[1]:e).data(t.condition?[null]:[]);var o=r.enter().append(a).call(Eh,t.enter);if(i)o.attr("id",i[1]);if(n)o.attr("class",n[1]);r.exit().transition(t.transition).call(Eh,t.exit).remove();var s=o.merge(r);s.transition(t.transition).call(Eh,t.update);return s}function zx(e){return e.filter(function(e,t,n){return n.indexOf(e)===t})}function Fx(a){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var e=zx(_e(a.map(function(e){return p(e)}))),o={};e.forEach(function(t){var e;if(r[t])e=r[t](a,function(e){return e[t]});else{var n=a.map(function(e){return e[t]});var i=n.map(function(e){return e||e===false?e.constructor:e}).filter(function(e){return e!==void 0});if(!i.length)e=undefined;else if(i.indexOf(Array)>=0){e=_e(n.map(function(e){return e instanceof Array?e:[e]}));e=zx(e);if(e.length===1)e=e[0]}else if(i.indexOf(String)>=0){e=zx(n);if(e.length===1)e=e[0]}else if(i.indexOf(Number)>=0)e=O(n);else if(i.indexOf(Object)>=0){e=zx(n.filter(function(e){return e}));if(e.length===1)e=e[0];else e=Fx(e)}else{e=zx(n.filter(function(e){return e!==void 0}));if(e.length===1)e=e[0]}}o[t]=e});return o}function Lx(e){var a;if(typeof e==="number")a=[e];else a=e.split(/\s+/);if(a.length===1)a=[a[0],a[0],a[0],a[0]];else if(a.length===2)a=a.concat(a);else if(a.length===3)a.push(a[1]);return["top","right","bottom","left"].reduce(function(e,t,n){var i=parseFloat(a[n]);e[t]=i||0;return e},{})}function Ix(){if("-webkit-transform"in document.body.style)return"-webkit-";else if("-moz-transform"in document.body.style)return"-moz-";else if("-ms-transform"in document.body.style)return"-ms-";else if("-o-transform"in document.body.style)return"-o-";else return""}function jx(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};for(var n in t){if({}.hasOwnProperty.call(t,n))e.style(n,t[n])}}function Hx(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function Vx(e,t){for(var n=0;n>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?fk(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?fk(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=ek.exec(e))?new pk(t[1],t[2],t[3],1):(t=tk.exec(e))?new pk(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=nk.exec(e))?fk(t[1],t[2],t[3],t[4]):(t=ik.exec(e))?fk(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=ak.exec(e))?_k(t[1],t[2]/100,t[3]/100,1):(t=rk.exec(e))?_k(t[1],t[2]/100,t[3]/100,t[4]):ok.hasOwnProperty(e)?ck(ok[e]):e==="transparent"?new pk(NaN,NaN,NaN,0):null}function ck(e){return new pk(e>>16&255,e>>8&255,e&255,1)}function fk(e,t,n,i){if(i<=0)e=t=n=NaN;return new pk(e,t,n,i)}function dk(e){if(!(e instanceof qx))e=hk(e);if(!e)return new pk;e=e.rgb();return new pk(e.r,e.g,e.b,e.opacity)}function gk(e,t,n,i){return arguments.length===1?dk(e):new pk(e,t,n,i==null?1:i)}function pk(e,t,n,i){this.r=+e;this.g=+t;this.b=+n;this.opacity=+i}Wx(pk,gk,Kx(qx,{brighter:function e(t){t=t==null?Xx:Math.pow(Xx,t);return new pk(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function e(t){t=t==null?Yx:Math.pow(Yx,t);return new pk(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function e(){return this},displayable:function e(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:vk,formatHex:vk,formatRgb:mk,toString:mk}));function vk(){return"#"+yk(this.r)+yk(this.g)+yk(this.b)}function mk(){var e=this.opacity;e=isNaN(e)?1:Math.max(0,Math.min(1,e));return(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function yk(e){e=Math.max(0,Math.min(255,Math.round(e)||0));return(e<16?"0":"")+e.toString(16)}function _k(e,t,n,i){if(i<=0)e=t=n=NaN;else if(n<=0||n>=1)e=t=NaN;else if(t<=0)e=NaN;return new xk(e,t,n,i)}function bk(e){if(e instanceof xk)return new xk(e.h,e.s,e.l,e.opacity);if(!(e instanceof qx))e=hk(e);if(!e)return new xk;if(e instanceof xk)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,a=Math.min(t,n,i),r=Math.max(t,n,i),o=NaN,s=r-a,l=(r+a)/2;if(s){if(t===r)o=(n-i)/s+(n0&&l<1?0:o}return new xk(o,s,l,e.opacity)}function wk(e,t,n,i){return arguments.length===1?bk(e):new xk(e,t,n,i==null?1:i)}function xk(e,t,n,i){this.h=+e;this.s=+t;this.l=+n;this.opacity=+i}Wx(xk,wk,Kx(qx,{brighter:function e(t){t=t==null?Xx:Math.pow(Xx,t);return new xk(this.h,this.s,this.l*t,this.opacity)},darker:function e(t){t=t==null?Yx:Math.pow(Yx,t);return new xk(this.h,this.s,this.l*t,this.opacity)},rgb:function e(){var t=this.h%360+(this.h<0)*360,n=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,a=i+(i<.5?i:1-i)*n,r=2*i-a;return new pk(kk(t>=240?t-240:t+120,r,a),kk(t,r,a),kk(t<120?t+240:t-120,r,a),this.opacity)},displayable:function e(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function e(){var t=this.opacity;t=isNaN(t)?1:Math.max(0,Math.min(1,t));return(t===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(t===1?")":", "+t+")")}}));function kk(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}function Sk(e,t,n){e.prototype=t.prototype=n;n.constructor=e}function Ck(e,t){var n=Object.create(e.prototype);for(var i in t){n[i]=t[i]}return n}function Ek(){}var Ak=.7;var Rk=1/Ak;var Mk="\\s*([+-]?\\d+)\\s*",Tk="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",Bk="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Nk=/^#([0-9a-f]{3,8})$/,Pk=new RegExp("^rgb\\("+[Mk,Mk,Mk]+"\\)$"),Dk=new RegExp("^rgb\\("+[Bk,Bk,Bk]+"\\)$"),Ok=new RegExp("^rgba\\("+[Mk,Mk,Mk,Tk]+"\\)$"),zk=new RegExp("^rgba\\("+[Bk,Bk,Bk,Tk]+"\\)$"),Fk=new RegExp("^hsl\\("+[Tk,Bk,Bk]+"\\)$"),Lk=new RegExp("^hsla\\("+[Tk,Bk,Bk,Tk]+"\\)$");var Ik={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Sk(Ek,Gk,{copy:function e(t){return Object.assign(new this.constructor,this,t)},displayable:function e(){return this.rgb().displayable()},hex:jk,formatHex:jk,formatHsl:Hk,formatRgb:Vk,toString:Vk});function jk(){return this.rgb().formatHex()}function Hk(){return Qk(this).formatHsl()}function Vk(){return this.rgb().formatRgb()}function Gk(e){var t,n;e=(e+"").trim().toLowerCase();return(t=Nk.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Uk(t):n===3?new Yk(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Wk(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Wk(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Pk.exec(e))?new Yk(t[1],t[2],t[3],1):(t=Dk.exec(e))?new Yk(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Ok.exec(e))?Wk(t[1],t[2],t[3],t[4]):(t=zk.exec(e))?Wk(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Fk.exec(e))?Jk(t[1],t[2]/100,t[3]/100,1):(t=Lk.exec(e))?Jk(t[1],t[2]/100,t[3]/100,t[4]):Ik.hasOwnProperty(e)?Uk(Ik[e]):e==="transparent"?new Yk(NaN,NaN,NaN,0):null}function Uk(e){return new Yk(e>>16&255,e>>8&255,e&255,1)}function Wk(e,t,n,i){if(i<=0)e=t=n=NaN;return new Yk(e,t,n,i)}function Kk(e){if(!(e instanceof Ek))e=Gk(e);if(!e)return new Yk;e=e.rgb();return new Yk(e.r,e.g,e.b,e.opacity)}function qk(e,t,n,i){return arguments.length===1?Kk(e):new Yk(e,t,n,i==null?1:i)}function Yk(e,t,n,i){this.r=+e;this.g=+t;this.b=+n;this.opacity=+i}Sk(Yk,qk,Ck(Ek,{brighter:function e(t){t=t==null?Rk:Math.pow(Rk,t);return new Yk(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function e(t){t=t==null?Ak:Math.pow(Ak,t);return new Yk(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function e(){return this},displayable:function e(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:Xk,formatHex:Xk,formatRgb:$k,toString:$k}));function Xk(){return"#"+Zk(this.r)+Zk(this.g)+Zk(this.b)}function $k(){var e=this.opacity;e=isNaN(e)?1:Math.max(0,Math.min(1,e));return(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function Zk(e){e=Math.max(0,Math.min(255,Math.round(e)||0));return(e<16?"0":"")+e.toString(16)}function Jk(e,t,n,i){if(i<=0)e=t=n=NaN;else if(n<=0||n>=1)e=t=NaN;else if(t<=0)e=NaN;return new tS(e,t,n,i)}function Qk(e){if(e instanceof tS)return new tS(e.h,e.s,e.l,e.opacity);if(!(e instanceof Ek))e=Gk(e);if(!e)return new tS;if(e instanceof tS)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,a=Math.min(t,n,i),r=Math.max(t,n,i),o=NaN,s=r-a,l=(r+a)/2;if(s){if(t===r)o=(n-i)/s+(n0&&l<1?0:o}return new tS(o,s,l,e.opacity)}function eS(e,t,n,i){return arguments.length===1?Qk(e):new tS(e,t,n,i==null?1:i)}function tS(e,t,n,i){this.h=+e;this.s=+t;this.l=+n;this.opacity=+i}Sk(tS,eS,Ck(Ek,{brighter:function e(t){t=t==null?Rk:Math.pow(Rk,t);return new tS(this.h,this.s,this.l*t,this.opacity)},darker:function e(t){t=t==null?Ak:Math.pow(Ak,t);return new tS(this.h,this.s,this.l*t,this.opacity)},rgb:function e(){var t=this.h%360+(this.h<0)*360,n=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,a=i+(i<.5?i:1-i)*n,r=2*i-a;return new Yk(nS(t>=240?t-240:t+120,r,a),nS(t,r,a),nS(t<120?t+240:t-120,r,a),this.opacity)},displayable:function e(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function e(){var t=this.opacity;t=isNaN(t)?1:Math.max(0,Math.min(1,t));return(t===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(t===1?")":", "+t+")")}}));function nS(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var iS={dark:"#444444",light:"#f7f7f7",missing:"#cccccc",off:"#b22200",on:"#224f20",scale:et().range(["#b22200","#282f6b","#eace3f","#b35c1e","#224f20","#5f487c","#759143","#419391","#993c88","#e89c89","#ffee8d","#afd5e8","#f7ba77","#a5c697","#c5b5e5","#d1d392","#bbefd0","#e099cf"])};function aS(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return e in t?t[e]:e in iS?iS[e]:iS.missing}function rS(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if([null,void 0].indexOf(e)>=0)return aS("missing",t);else if(e===true)return aS("on",t);else if(e===false)return aS("off",t);var n=Gk(e);if(!n)return aS("scale",t)(e);return e.toString()}function oS(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};e=qk(e);var n=(e.r*299+e.g*587+e.b*114)/1e3;return n>=128?aS("dark",t):aS("light",t)}function sS(e){e=eS(e);if(e.l>.45){if(e.s>.8)e.s=.8;e.l=.45}return e.toString()}function lS(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:.5;e=eS(e);t*=1-e.l;e.l+=t;e.s-=t;return e.toString()}var uS=Math.PI,hS=2*uS,cS=1e-6,fS=hS-cS;function dS(){this._x0=this._y0=this._x1=this._y1=null;this._=""}function gS(){return new dS}dS.prototype=gS.prototype={constructor:dS,moveTo:function e(t,n){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)},closePath:function e(){if(this._x1!==null){this._x1=this._x0,this._y1=this._y0;this._+="Z"}},lineTo:function e(t,n){this._+="L"+(this._x1=+t)+","+(this._y1=+n)},quadraticCurveTo:function e(t,n,i,a){this._+="Q"+ +t+","+ +n+","+(this._x1=+i)+","+(this._y1=+a)},bezierCurveTo:function e(t,n,i,a,r,o){this._+="C"+ +t+","+ +n+","+ +i+","+ +a+","+(this._x1=+r)+","+(this._y1=+o)},arcTo:function e(t,n,i,a,r){t=+t,n=+n,i=+i,a=+a,r=+r;var o=this._x1,s=this._y1,l=i-t,u=a-n,h=o-t,c=s-n,f=h*h+c*c;if(r<0)throw new Error("negative radius: "+r);if(this._x1===null){this._+="M"+(this._x1=t)+","+(this._y1=n)}else if(!(f>cS));else if(!(Math.abs(c*l-u*h)>cS)||!r){this._+="L"+(this._x1=t)+","+(this._y1=n)}else{var d=i-o,g=a-s,p=l*l+u*u,v=d*d+g*g,m=Math.sqrt(p),y=Math.sqrt(f),_=r*Math.tan((uS-Math.acos((p+f-v)/(2*m*y)))/2),b=_/y,w=_/m;if(Math.abs(b-1)>cS){this._+="L"+(t+b*h)+","+(n+b*c)}this._+="A"+r+","+r+",0,0,"+ +(c*d>h*g)+","+(this._x1=t+w*l)+","+(this._y1=n+w*u)}},arc:function e(t,n,i,a,r,o){t=+t,n=+n,i=+i;var s=i*Math.cos(a),l=i*Math.sin(a),u=t+s,h=n+l,c=1^o,f=o?a-r:r-a;if(i<0)throw new Error("negative radius: "+i);if(this._x1===null){this._+="M"+u+","+h}else if(Math.abs(this._x1-u)>cS||Math.abs(this._y1-h)>cS){this._+="L"+u+","+h}if(!i)return;if(f<0)f=f%hS+hS;if(f>fS){this._+="A"+i+","+i+",0,1,"+c+","+(t-s)+","+(n-l)+"A"+i+","+i+",0,1,"+c+","+(this._x1=u)+","+(this._y1=h)}else if(f>cS){this._+="A"+i+","+i+",0,"+ +(f>=uS)+","+c+","+(this._x1=t+i*Math.cos(r))+","+(this._y1=n+i*Math.sin(r))}},rect:function e(t,n,i,a){this._+="M"+(this._x0=this._x1=+t)+","+(this._y0=this._y1=+n)+"h"+ +i+"v"+ +a+"h"+-i+"Z"},toString:function e(){return this._}};function pS(t){return function e(){return t}}var vS=Math.abs;var mS=Math.atan2;var yS=Math.cos;var _S=Math.max;var bS=Math.min;var wS=Math.sin;var xS=Math.sqrt;var kS=1e-12;var SS=Math.PI;var CS=SS/2;var ES=2*SS;function AS(e){return e>1?0:e<-1?SS:Math.acos(e)}function RS(e){return e>=1?CS:e<=-1?-CS:Math.asin(e)}function MS(e){return e.innerRadius}function TS(e){return e.outerRadius}function BS(e){return e.startAngle}function NS(e){return e.endAngle}function PS(e){return e&&e.padAngle}function DS(e,t,n,i,a,r,o,s){var l=n-e,u=i-t,h=o-a,c=s-r,f=c*l-h*u;if(f*fT*T+B*B)S=E,C=A;return{cx:S,cy:C,x01:-h,y01:-c,x11:S*(a/w-1),y11:C*(a/w-1)}}function zS(){var L=MS,I=TS,j=pS(0),H=null,V=BS,G=NS,U=PS,W=null;function t(){var e,t,n=+L.apply(this,arguments),i=+I.apply(this,arguments),a=V.apply(this,arguments)-CS,r=G.apply(this,arguments)-CS,o=vS(r-a),s=r>a;if(!W)W=e=gS();if(ikS))W.moveTo(0,0);else if(o>ES-kS){W.moveTo(i*yS(a),i*wS(a));W.arc(0,0,i,a,r,!s);if(n>kS){W.moveTo(n*yS(r),n*wS(r));W.arc(0,0,n,r,a,s)}}else{var l=a,u=r,h=a,c=r,f=o,d=o,g=U.apply(this,arguments)/2,p=g>kS&&(H?+H.apply(this,arguments):xS(n*n+i*i)),v=bS(vS(i-n)/2,+j.apply(this,arguments)),m=v,y=v,_,b;if(p>kS){var w=RS(p/n*wS(g)),x=RS(p/i*wS(g));if((f-=w*2)>kS)w*=s?1:-1,h+=w,c-=w;else f=0,h=c=(a+r)/2;if((d-=x*2)>kS)x*=s?1:-1,l+=x,u-=x;else d=0,l=u=(a+r)/2}var k=i*yS(l),S=i*wS(l),C=n*yS(c),E=n*wS(c);if(v>kS){var A=i*yS(u),R=i*wS(u),M=n*yS(h),T=n*wS(h),B;if(okS))W.moveTo(k,S);else if(y>kS){_=OS(M,T,k,S,i,y,s);b=OS(A,R,C,E,i,y,s);W.moveTo(_.cx+_.x01,_.cy+_.y01);if(ykS)||!(f>kS))W.lineTo(C,E);else if(m>kS){_=OS(C,E,A,R,n,-m,s);b=OS(k,S,M,T,n,-m,s);W.lineTo(_.cx+_.x01,_.cy+_.y01);if(m=n;--i){m.point(l[i],u[i])}m.lineEnd();m.areaEnd()}}if(o){l[t]=+h(r,t,e),u[t]=+f(r,t,e);m.point(c?+c(r,t,e):l[t],d?+d(r,t,e):u[t])}}if(s)return m=null,s+""||null}function e(){return HS().defined(g).curve(v).context(p)}t.x=function(e){return arguments.length?(h=typeof e==="function"?e:pS(+e),c=null,t):h};t.x0=function(e){return arguments.length?(h=typeof e==="function"?e:pS(+e),t):h};t.x1=function(e){return arguments.length?(c=e==null?null:typeof e==="function"?e:pS(+e),t):c};t.y=function(e){return arguments.length?(f=typeof e==="function"?e:pS(+e),d=null,t):f};t.y0=function(e){return arguments.length?(f=typeof e==="function"?e:pS(+e),t):f};t.y1=function(e){return arguments.length?(d=e==null?null:typeof e==="function"?e:pS(+e),t):d};t.lineX0=t.lineY0=function(){return e().x(h).y(f)};t.lineY1=function(){return e().x(h).y(d)};t.lineX1=function(){return e().x(c).y(f)};t.defined=function(e){return arguments.length?(g=typeof e==="function"?e:pS(!!e),t):g};t.curve=function(e){return arguments.length?(v=e,p!=null&&(m=v(p)),t):v};t.context=function(e){return arguments.length?(e==null?p=m=null:m=v(p=e),t):p};return t}function GS(e,t){return te?1:t>=e?0:NaN}function US(e){return e}function WS(){var g=US,p=GS,v=null,m=pS(0),y=pS(ES),_=pS(0);function t(n){var e,t=n.length,i,a,r=0,o=new Array(t),s=new Array(t),l=+m.apply(this,arguments),u=Math.min(ES,Math.max(-ES,y.apply(this,arguments)-l)),h,c=Math.min(Math.abs(u)/t,_.apply(this,arguments)),f=c*(u<0?-1:1),d;for(e=0;e0){r+=d}}if(p!=null)o.sort(function(e,t){return p(s[e],s[t])});else if(v!=null)o.sort(function(e,t){return v(n[e],n[t])});for(e=0,a=r?(u-t*f)/r:0;e0?d*a:0)+f,s[i]={data:n[i],index:e,value:d,startAngle:l,endAngle:h,padAngle:c}}return s}t.value=function(e){return arguments.length?(g=typeof e==="function"?e:pS(+e),t):g};t.sortValues=function(e){return arguments.length?(p=e,v=null,t):p};t.sort=function(e){return arguments.length?(v=e,p=null,t):v};t.startAngle=function(e){return arguments.length?(m=typeof e==="function"?e:pS(+e),t):m};t.endAngle=function(e){return arguments.length?(y=typeof e==="function"?e:pS(+e),t):y};t.padAngle=function(e){return arguments.length?(_=typeof e==="function"?e:pS(+e),t):_};return t}var KS=YS(LS);function qS(e){this._curve=e}qS.prototype={areaStart:function e(){this._curve.areaStart()},areaEnd:function e(){this._curve.areaEnd()},lineStart:function e(){this._curve.lineStart()},lineEnd:function e(){this._curve.lineEnd()},point:function e(t,n){this._curve.point(n*Math.sin(t),n*-Math.cos(t))}};function YS(t){function e(e){return new qS(t(e))}e._curve=t;return e}function XS(e){var t=e.curve;e.angle=e.x,delete e.x;e.radius=e.y,delete e.y;e.curve=function(e){return arguments.length?t(YS(e)):t()._curve};return e}function $S(){return XS(HS().curve(KS))}function ZS(){var e=VS().curve(KS),t=e.curve,n=e.lineX0,i=e.lineX1,a=e.lineY0,r=e.lineY1;e.angle=e.x,delete e.x;e.startAngle=e.x0,delete e.x0;e.endAngle=e.x1,delete e.x1;e.radius=e.y,delete e.y;e.innerRadius=e.y0,delete e.y0;e.outerRadius=e.y1,delete e.y1;e.lineStartAngle=function(){return XS(n())},delete e.lineX0;e.lineEndAngle=function(){return XS(i())},delete e.lineX1;e.lineInnerRadius=function(){return XS(a())},delete e.lineY0;e.lineOuterRadius=function(){return XS(r())},delete e.lineY1;e.curve=function(e){return arguments.length?t(YS(e)):t()._curve};return e}function JS(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}var QS=Array.prototype.slice;function eC(e){return e.source}function tC(e){return e.target}function nC(a){var r=eC,o=tC,s=IS,l=jS,u=null;function t(){var e,t=QS.call(arguments),n=r.apply(this,t),i=o.apply(this,t);if(!u)u=e=gS();a(u,+s.apply(this,(t[0]=n,t)),+l.apply(this,t),+s.apply(this,(t[0]=i,t)),+l.apply(this,t));if(e)return u=null,e+""||null}t.source=function(e){return arguments.length?(r=e,t):r};t.target=function(e){return arguments.length?(o=e,t):o};t.x=function(e){return arguments.length?(s=typeof e==="function"?e:pS(+e),t):s};t.y=function(e){return arguments.length?(l=typeof e==="function"?e:pS(+e),t):l};t.context=function(e){return arguments.length?(u=e==null?null:e,t):u};return t}function iC(e,t,n,i,a){e.moveTo(t,n);e.bezierCurveTo(t=(t+i)/2,n,t,a,i,a)}function aC(e,t,n,i,a){e.moveTo(t,n);e.bezierCurveTo(t,n=(n+a)/2,i,n,i,a)}function rC(e,t,n,i,a){var r=JS(t,n),o=JS(t,n=(n+a)/2),s=JS(i,n),l=JS(i,a);e.moveTo(r[0],r[1]);e.bezierCurveTo(o[0],o[1],s[0],s[1],l[0],l[1])}function oC(){return nC(iC)}function sC(){return nC(aC)}function lC(){var e=nC(rC);e.angle=e.x,delete e.x;e.radius=e.y,delete e.y;return e}var uC={draw:function e(t,n){var i=Math.sqrt(n/SS);t.moveTo(i,0);t.arc(0,0,i,0,ES)}};var hC={draw:function e(t,n){var i=Math.sqrt(n/5)/2;t.moveTo(-3*i,-i);t.lineTo(-i,-i);t.lineTo(-i,-3*i);t.lineTo(i,-3*i);t.lineTo(i,-i);t.lineTo(3*i,-i);t.lineTo(3*i,i);t.lineTo(i,i);t.lineTo(i,3*i);t.lineTo(-i,3*i);t.lineTo(-i,i);t.lineTo(-3*i,i);t.closePath()}};var cC=Math.sqrt(1/3),fC=cC*2;var dC={draw:function e(t,n){var i=Math.sqrt(n/fC),a=i*cC;t.moveTo(0,-i);t.lineTo(a,0);t.lineTo(0,i);t.lineTo(-a,0);t.closePath()}};var gC=.8908130915292852,pC=Math.sin(SS/10)/Math.sin(7*SS/10),vC=Math.sin(ES/10)*pC,mC=-Math.cos(ES/10)*pC;var yC={draw:function e(t,n){var i=Math.sqrt(n*gC),a=vC*i,r=mC*i;t.moveTo(0,-i);t.lineTo(a,r);for(var o=1;o<5;++o){var s=ES*o/5,l=Math.cos(s),u=Math.sin(s);t.lineTo(u*i,-l*i);t.lineTo(l*a-u*r,u*a+l*r)}t.closePath()}};var _C={draw:function e(t,n){var i=Math.sqrt(n),a=-i/2;t.rect(a,a,i,i)}};var bC=Math.sqrt(3);var wC={draw:function e(t,n){var i=-Math.sqrt(n/(bC*3));t.moveTo(0,i*2);t.lineTo(-bC*i,-i);t.lineTo(bC*i,-i);t.closePath()}};var xC=-.5,kC=Math.sqrt(3)/2,SC=1/Math.sqrt(12),CC=(SC/2+1)*3;var EC={draw:function e(t,n){var i=Math.sqrt(n/CC),a=i/2,r=i*SC,o=a,s=i*SC+i,l=-o,u=s;t.moveTo(a,r);t.lineTo(o,s);t.lineTo(l,u);t.lineTo(xC*a-kC*r,kC*a+xC*r);t.lineTo(xC*o-kC*s,kC*o+xC*s);t.lineTo(xC*l-kC*u,kC*l+xC*u);t.lineTo(xC*a+kC*r,xC*r-kC*a);t.lineTo(xC*o+kC*s,xC*s-kC*o);t.lineTo(xC*l+kC*u,xC*u-kC*l);t.closePath()}};var AC=[uC,hC,dC,_C,yC,wC,EC];function RC(){var t=pS(uC),n=pS(64),i=null;function a(){var e;if(!i)i=e=gS();t.apply(this,arguments).draw(i,+n.apply(this,arguments));if(e)return i=null,e+""||null}a.type=function(e){return arguments.length?(t=typeof e==="function"?e:pS(e),a):t};a.size=function(e){return arguments.length?(n=typeof e==="function"?e:pS(+e),a):n};a.context=function(e){return arguments.length?(i=e==null?null:e,a):i};return a}function MC(){}function TC(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function BC(e){this._context=e}BC.prototype={areaStart:function e(){this._line=0},areaEnd:function e(){this._line=NaN},lineStart:function e(){this._x0=this._x1=this._y0=this._y1=NaN;this._point=0},lineEnd:function e(){switch(this._point){case 3:TC(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function e(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:TC(this,t,n);break}this._x0=this._x1,this._x1=t;this._y0=this._y1,this._y1=n}};function NC(e){return new BC(e)}function PC(e){this._context=e}PC.prototype={areaStart:MC,areaEnd:MC,lineStart:function e(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN;this._point=0},lineEnd:function e(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2);this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3);this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3);this._context.closePath();break}case 3:{this.point(this._x2,this._y2);this.point(this._x3,this._y3);this.point(this._x4,this._y4);break}}},point:function e(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;this._x2=t,this._y2=n;break;case 1:this._point=2;this._x3=t,this._y3=n;break;case 2:this._point=3;this._x4=t,this._y4=n;this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+n)/6);break;default:TC(this,t,n);break}this._x0=this._x1,this._x1=t;this._y0=this._y1,this._y1=n}};function DC(e){return new PC(e)}function OC(e){this._context=e}OC.prototype={areaStart:function e(){this._line=0},areaEnd:function e(){this._line=NaN},lineStart:function e(){this._x0=this._x1=this._y0=this._y1=NaN;this._point=0},lineEnd:function e(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function e(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var i=(this._x0+4*this._x1+t)/6,a=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(i,a):this._context.moveTo(i,a);break;case 3:this._point=4;default:TC(this,t,n);break}this._x0=this._x1,this._x1=t;this._y0=this._y1,this._y1=n}};function zC(e){return new OC(e)}function FC(e,t){this._basis=new BC(e);this._beta=t}FC.prototype={lineStart:function e(){this._x=[];this._y=[];this._basis.lineStart()},lineEnd:function e(){var t=this._x,n=this._y,i=t.length-1;if(i>0){var a=t[0],r=n[0],o=t[i]-a,s=n[i]-r,l=-1,u;while(++l<=i){u=l/i;this._basis.point(this._beta*t[l]+(1-this._beta)*(a+u*o),this._beta*n[l]+(1-this._beta)*(r+u*s))}}this._x=this._y=null;this._basis.lineEnd()},point:function e(t,n){this._x.push(+t);this._y.push(+n)}};var LC=function t(n){function e(e){return n===1?new BC(e):new FC(e,n)}e.beta=function(e){return t(+e)};return e}(.85);function IC(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function jC(e,t){this._context=e;this._k=(1-t)/6}jC.prototype={areaStart:function e(){this._line=0},areaEnd:function e(){this._line=NaN},lineStart:function e(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._point=0},lineEnd:function e(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:IC(this,this._x1,this._y1);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function e(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;this._x1=t,this._y1=n;break;case 2:this._point=3;default:IC(this,t,n);break}this._x0=this._x1,this._x1=this._x2,this._x2=t;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var HC=function t(n){function e(e){return new jC(e,n)}e.tension=function(e){return t(+e)};return e}(0);function VC(e,t){this._context=e;this._k=(1-t)/6}VC.prototype={areaStart:MC,areaEnd:MC,lineStart:function e(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN;this._point=0},lineEnd:function e(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3);this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3);this._context.closePath();break}case 3:{this.point(this._x3,this._y3);this.point(this._x4,this._y4);this.point(this._x5,this._y5);break}}},point:function e(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;this._x3=t,this._y3=n;break;case 1:this._point=2;this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3;this._x5=t,this._y5=n;break;default:IC(this,t,n);break}this._x0=this._x1,this._x1=this._x2,this._x2=t;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var GC=function t(n){function e(e){return new VC(e,n)}e.tension=function(e){return t(+e)};return e}(0);function UC(e,t){this._context=e;this._k=(1-t)/6}UC.prototype={areaStart:function e(){this._line=0},areaEnd:function e(){this._line=NaN},lineStart:function e(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._point=0},lineEnd:function e(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function e(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:IC(this,t,n);break}this._x0=this._x1,this._x1=this._x2,this._x2=t;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var WC=function t(n){function e(e){return new UC(e,n)}e.tension=function(e){return t(+e)};return e}(0);function KC(e,t,n){var i=e._x1,a=e._y1,r=e._x2,o=e._y2;if(e._l01_a>kS){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);i=(i*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l;a=(a*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>kS){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,h=3*e._l23_a*(e._l23_a+e._l12_a);r=(r*u+e._x1*e._l23_2a-t*e._l12_2a)/h;o=(o*u+e._y1*e._l23_2a-n*e._l12_2a)/h}e._context.bezierCurveTo(i,a,r,o,e._x2,e._y2)}function qC(e,t){this._context=e;this._alpha=t}qC.prototype={areaStart:function e(){this._line=0},areaEnd:function e(){this._line=NaN},lineStart:function e(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function e(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function e(t,n){t=+t,n=+n;if(this._point){var i=this._x2-t,a=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+a*a,this._alpha))}switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;default:KC(this,t,n);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a;this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a;this._x0=this._x1,this._x1=this._x2,this._x2=t;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var YC=function t(n){function e(e){return n?new qC(e,n):new jC(e,0)}e.alpha=function(e){return t(+e)};return e}(.5);function XC(e,t){this._context=e;this._alpha=t}XC.prototype={areaStart:MC,areaEnd:MC,lineStart:function e(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN;this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function e(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3);this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3);this._context.closePath();break}case 3:{this.point(this._x3,this._y3);this.point(this._x4,this._y4);this.point(this._x5,this._y5);break}}},point:function e(t,n){t=+t,n=+n;if(this._point){var i=this._x2-t,a=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+a*a,this._alpha))}switch(this._point){case 0:this._point=1;this._x3=t,this._y3=n;break;case 1:this._point=2;this._context.moveTo(this._x4=t,this._y4=n);break;case 2:this._point=3;this._x5=t,this._y5=n;break;default:KC(this,t,n);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a;this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a;this._x0=this._x1,this._x1=this._x2,this._x2=t;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var $C=function t(n){function e(e){return n?new XC(e,n):new VC(e,0)}e.alpha=function(e){return t(+e)};return e}(.5);function ZC(e,t){this._context=e;this._alpha=t}ZC.prototype={areaStart:function e(){this._line=0},areaEnd:function e(){this._line=NaN},lineStart:function e(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function e(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function e(t,n){t=+t,n=+n;if(this._point){var i=this._x2-t,a=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(i*i+a*a,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:KC(this,t,n);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a;this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a;this._x0=this._x1,this._x1=this._x2,this._x2=t;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var JC=function t(n){function e(e){return n?new ZC(e,n):new UC(e,0)}e.alpha=function(e){return t(+e)};return e}(.5);function QC(e){this._context=e}QC.prototype={areaStart:MC,areaEnd:MC,lineStart:function e(){this._point=0},lineEnd:function e(){if(this._point)this._context.closePath()},point:function e(t,n){t=+t,n=+n;if(this._point)this._context.lineTo(t,n);else this._point=1,this._context.moveTo(t,n)}};function eE(e){return new QC(e)}function tE(e){return e<0?-1:1}function nE(e,t,n){var i=e._x1-e._x0,a=t-e._x1,r=(e._y1-e._y0)/(i||a<0&&-0),o=(n-e._y1)/(a||i<0&&-0),s=(r*a+o*i)/(i+a);return(tE(r)+tE(o))*Math.min(Math.abs(r),Math.abs(o),.5*Math.abs(s))||0}function iE(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function aE(e,t,n){var i=e._x0,a=e._y0,r=e._x1,o=e._y1,s=(r-i)/3;e._context.bezierCurveTo(i+s,a+s*t,r-s,o-s*n,r,o)}function rE(e){this._context=e}rE.prototype={areaStart:function e(){this._line=0},areaEnd:function e(){this._line=NaN},lineStart:function e(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN;this._point=0},lineEnd:function e(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:aE(this,this._t0,iE(this,this._t0));break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function e(t,n){var i=NaN;t=+t,n=+n;if(t===this._x1&&n===this._y1)return;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;break;case 2:this._point=3;aE(this,iE(this,i=nE(this,t,n)),i);break;default:aE(this,this._t0,i=nE(this,t,n));break}this._x0=this._x1,this._x1=t;this._y0=this._y1,this._y1=n;this._t0=i}};function oE(e){this._context=new sE(e)}(oE.prototype=Object.create(rE.prototype)).point=function(e,t){rE.prototype.point.call(this,t,e)};function sE(e){this._context=e}sE.prototype={moveTo:function e(t,n){this._context.moveTo(n,t)},closePath:function e(){this._context.closePath()},lineTo:function e(t,n){this._context.lineTo(n,t)},bezierCurveTo:function e(t,n,i,a,r,o){this._context.bezierCurveTo(n,t,a,i,o,r)}};function lE(e){return new rE(e)}function uE(e){return new oE(e)}function hE(e){this._context=e}hE.prototype={areaStart:function e(){this._line=0},areaEnd:function e(){this._line=NaN},lineStart:function e(){this._x=[];this._y=[]},lineEnd:function e(){var t=this._x,n=this._y,i=t.length;if(i){this._line?this._context.lineTo(t[0],n[0]):this._context.moveTo(t[0],n[0]);if(i===2){this._context.lineTo(t[1],n[1])}else{var a=cE(t),r=cE(n);for(var o=0,s=1;s=0;--t){a[t]=(o[t]-a[t+1])/r[t]}r[n-1]=(e[n]+a[n-1])/2;for(t=0;t=0)this._t=1-this._t,this._line=1-this._line},point:function e(t,n){t=+t,n=+n;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break;case 1:this._point=2;default:{if(this._t<=0){this._context.lineTo(this._x,n);this._context.lineTo(t,n)}else{var i=this._x*(1-this._t)+t*this._t;this._context.lineTo(i,this._y);this._context.lineTo(i,n)}break}}this._x=t,this._y=n}};function gE(e){return new dE(e,.5)}function pE(e){return new dE(e,0)}function vE(e){return new dE(e,1)}function mE(e,t){if(!((o=e.length)>1))return;for(var n=1,i,a,r=e[t[0]],o,s=r.length;n=0){n[t]=t}return n}function _E(e,t){return e[t]}function bE(){var c=pS([]),f=yE,d=mE,g=_E;function t(e){var t=c.apply(this,arguments),n,i=e.length,a=t.length,r=new Array(a),o;for(n=0;n0))return;for(var n,i,a=0,r=e[0].length,o;a0))return;for(var n,i=0,a,r,o,s,l,u=e[t[0]].length;i0){a[0]=o,a[1]=o+=r}else if(r<0){a[1]=s,a[0]=s+=r}else{a[0]=0,a[1]=r}}}}function kE(e,t){if(!((a=e.length)>0))return;for(var n=0,i=e[t[0]],a,r=i.length;n0)||!((r=(a=e[t[0]]).length)>0))return;for(var n=0,i=1,a,r,o;ir)r=a,n=t}return n}function AE(e){var n=e.map(RE);return yE(e).sort(function(e,t){return n[e]-n[t]})}function RE(e){var t=0,n=-1,i=e.length,a;while(++n]+>/g,""),"text/html");return t.documentElement?t.documentElement.textContent:e}function DE(e,t){t=Object.assign({"font-size":10,"font-family":"sans-serif","font-style":"normal","font-weight":400,"font-variant":"normal"},t);var n=document.createElement("canvas").getContext("2d");var i=[];i.push(t["font-style"]);i.push(t["font-variant"]);i.push(t["font-weight"]);i.push(typeof t["font-size"]==="string"?t["font-size"]:"".concat(t["font-size"],"px"));i.push(t["font-family"]);n.font=i.join(" ");if(e instanceof Array)return e.map(function(e){return n.measureText(PE(e)).width});return n.measureText(PE(e)).width}function OE(e){return e.toString().replace(/^\s+|\s+$/g,"")}function zE(e){return e.toString().replace(/\s+$/,"")}var FE="abcdefghiABCDEFGHI_!@#$%^&*()_+1234567890",LE={},IE=32;var jE,HE,VE,GE;var UE=function e(t){if(!jE){jE=DE(FE,{"font-family":"DejaVuSans","font-size":IE});HE=DE(FE,{"font-family":"-apple-system","font-size":IE});VE=DE(FE,{"font-family":"monospace","font-size":IE});GE=DE(FE,{"font-family":"sans-serif","font-size":IE})}if(!(t instanceof Array))t=t.split(",");t=t.map(function(e){return OE(e)});for(var n=0;n",")","}","]",".","!","?","/","u00BB","u300B","u3009"].concat(JE);var tA="က-ဪဿ-၉ၐ-ၕ";var nA="぀-ゟ゠-ヿ＀-+--}⦅-゚㐀-䶿";var iA="㐀-龿";var aA="ກ-ຮະ-ໄ່-໋ໍ-ໝ";var rA=tA+iA+nA+aA;var oA=new RegExp("(\\".concat(JE.join("|\\"),")*[^\\s|\\").concat(JE.join("|\\"),"]*(\\").concat(JE.join("|\\"),")*"),"g");var sA=new RegExp("[".concat(rA,"]"));var lA=new RegExp("(\\".concat(QE.join("|\\"),")*[").concat(rA,"](\\").concat(eA.join("|\\"),"|\\").concat(ZE.join("|\\"),")*|[a-z0-9]+"),"gi");function uA(e){if(!sA.test(e))return KE(e).match(oA).filter(function(e){return e.length});return _e(KE(e).match(oA).map(function(e){if(sA.test(e))return e.match(lA);return[e]}))}function hA(){var d="sans-serif",g=10,p=400,v=200,m,y=null,_=false,b=uA,w=200;function t(e){e=KE(e);if(m===void 0)m=Math.ceil(g*1.4);var t=b(e);var n={"font-family":d,"font-size":g,"font-weight":p,"line-height":m};var i=1,a="",r=false,o=0;var s=[],l=DE(t,n),u=DE(" ",n);for(var h=0;hw){if(!h&&!_){r=true;break}if(s.length>=i)s[i-1]=zE(s[i-1]);i++;if(m*i>v||f>w&&!_||y&&i>y){r=true;break}o=0;s.push(c)}else if(!h)s[0]=c;else s[i-1]+=c;a+=c;o+=f;o+=c.match(/[\s]*$/g)[0].length*u}return{lines:s,sentence:e,truncated:r,widths:DE(s,n),words:t}}t.fontFamily=function(e){return arguments.length?(d=e,t):d};t.fontSize=function(e){return arguments.length?(g=e,t):g};t.fontWeight=function(e){return arguments.length?(p=e,t):p};t.height=function(e){return arguments.length?(v=e,t):v};t.lineHeight=function(e){return arguments.length?(m=e,t):m};t.maxLines=function(e){return arguments.length?(y=e,t):y};t.overflow=function(e){return arguments.length?(_=e,t):_};t.split=function(e){return arguments.length?(b=e,t):b};t.width=function(e){return arguments.length?(w=e,t):w};return t}function cA(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){cA=function e(t){return typeof t}}else{cA=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return cA(e)}function fA(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function dA(e,t){for(var n=0;ny&&(g>s||a&&g>y*r)){if(a){h=DE(b,f);var x=1.165+p/g*.1,k=p*g,S=me(h),C=O(h,function(e){return e*s})*x;if(S>p||C>k){var E=Math.sqrt(k/C),A=p/S;var R=je([E,A]);o=Math.floor(o*R)}var M=Math.floor(g*.8);if(o>M)o=M}w()}if(u.length){var T=l*s;var B=P._rotate(t,n);var N=B===0?_==="top"?0:_==="middle"?g/2-T/2:g-T:0;N-=s*.1;e.push({aH:P._ariaHidden(t,n),data:t,i:n,lines:u,fC:P._fontColor(t,n),fStroke:P._fontStroke(t,n),fSW:P._fontStrokeWidth(t,n),fF:f["font-family"],fO:P._fontOpacity(t,n),fW:f["font-weight"],id:P._id(t,n),tA:P._textAnchor(t,n),vA:P._verticalAlign(t,n),widths:c.widths,fS:o,lH:s,w:p,h:g,r:B,x:P._x(t,n)+d.left,y:P._y(t,n)+N+d.top})}return e},[]),function(e){return P._id(e.data,e.i)});var a=eh().duration(this._duration);if(this._duration===0){n.exit().remove()}else{n.exit().transition().delay(this._duration).remove();n.exit().selectAll("text").transition(a).attr("opacity",0).style("opacity",0)}function i(e){e.attr("transform",function(e,t){var n=D._rotateAnchor(e,t);return"translate(".concat(e.x,", ").concat(e.y,") rotate(").concat(e.r,", ").concat(n[0],", ").concat(n[1],")")})}var r=n.enter().append("g").attr("class","d3plus-textBox").attr("id",function(e){return"d3plus-textBox-".concat(YE(e.id))}).call(i).merge(n);var o=WE();r.order().style("pointer-events",function(e){return P._pointerEvents(e.data,e.i)}).each(function(n){function e(e){e[D._html?"html":"text"](function(e){return zE(e).replace(/&([^\;&]*)/g,function(e,t){return t==="amp"?e:"&".concat(t)}).replace(/<([^A-z^/]+)/g,function(e,t){return"<".concat(t)}).replace(/<$/g,"<").replace(/(<[^>^\/]+>)([^<^>]+)$/g,function(e,t,n){return"".concat(t).concat(n).concat(t.replace("<","]+)(<\/[^>]+>)/g,function(e,t,n){return"".concat(n.replace("]*>([^<^>]+)<\/[^>]+>/g,function(e,t,n){var i=D._html[t]?''):"";return"".concat(i.length?i:"").concat(n).concat(i.length?"":"")})})}function t(e){e.attr("aria-hidden",n.aH).attr("dir",o?"rtl":"ltr").attr("fill",n.fC).attr("stroke",n.fStroke).attr("stroke-width",n.fSW).attr("text-anchor",n.tA).attr("font-family",n.fF).style("font-family",n.fF).attr("font-size","".concat(n.fS,"px")).style("font-size","".concat(n.fS,"px")).attr("font-weight",n.fW).style("font-weight",n.fW).attr("x","".concat(n.tA==="middle"?n.w/2:o?n.tA==="start"?n.w:0:n.tA==="end"?n.w:2*Math.sin(Math.PI*n.r/180),"px")).attr("y",function(e,t){return n.r===0||n.vA==="top"?"".concat((t+1)*n.lH-(n.lH-n.fS),"px"):n.vA==="middle"?"".concat((n.h+n.fS)/2-(n.lH-n.fS)+(t-n.lines.length/2+.5)*n.lH,"px"):"".concat(n.h-2*(n.lH-n.fS)-(n.lines.length-(t+1))*n.lH+2*Math.cos(Math.PI*n.r/180),"px")})}var i=Rl(this).selectAll("text").data(n.lines);if(D._duration===0){i.call(e).call(t);i.exit().remove();i.enter().append("text").attr("dominant-baseline","alphabetic").style("baseline-shift","0%").attr("unicode-bidi","bidi-override").call(e).call(t).attr("opacity",n.fO).style("opacity",n.fO)}else{i.call(e).transition(a).call(t);i.exit().transition(a).attr("opacity",0).remove();i.enter().append("text").attr("dominant-baseline","alphabetic").style("baseline-shift","0%").attr("opacity",0).style("opacity",0).call(e).call(t).merge(i).transition(a).delay(D._delay).call(t).attr("opacity",n.fO).style("opacity",n.fO)}}).transition(a).call(i);var s=Object.keys(this._on),l=s.reduce(function(e,n){e[n]=function(e,t){return P._on[n](e.data,t)};return e},{});for(var u=0;u0&&arguments[0]!==undefined?arguments[0]:"g";AA(this,n);a=t.call(this);a._activeOpacity=.25;a._activeStyle={stroke:function e(t,n){var i=a._fill(t,n);if(["transparent","none"].includes(i))i=a._stroke(t,n);return hk(i).darker(1)},"stroke-width":function e(t,n){var i=a._strokeWidth(t,n)||1;return i*3}};a._ariaLabel=Dx("");a._backgroundImage=Dx(false);a._backgroundImageClass=new Ux;a._data=[];a._duration=600;a._fill=Dx("black");a._fillOpacity=Dx(1);a._hoverOpacity=.5;a._hoverStyle={stroke:function e(t,n){var i=a._fill(t,n);if(["transparent","none"].includes(i))i=a._stroke(t,n);return hk(i).darker(.5)},"stroke-width":function e(t,n){var i=a._strokeWidth(t,n)||1;return i*2}};a._id=function(e,t){return e.id!==void 0?e.id:t};a._label=Dx(false);a._labelClass=new kA;a._labelConfig={fontColor:function e(t,n){return oS(a._fill(t,n))},fontSize:12,padding:5};a._name="Shape";a._opacity=Dx(1);a._pointerEvents=Dx("visiblePainted");a._role=Dx("presentation");a._rotate=Dx(0);a._rx=Dx(0);a._ry=Dx(0);a._scale=Dx(1);a._shapeRendering=Dx("geometricPrecision");a._stroke=function(e,t){return hk(a._fill(e,t)).darker(1)};a._strokeDasharray=Dx("0");a._strokeLinecap=Dx("butt");a._strokeOpacity=Dx(1);a._strokeWidth=Dx(0);a._tagName=e;a._textAnchor=Dx("start");a._vectorEffect=Dx("non-scaling-stroke");a._verticalAlign=Dx("top");a._x=wh("x",0);a._y=wh("y",0);return a}MA(n,[{key:"_aes",value:function e(){return{}}},{key:"_applyEvents",value:function e(t){var o=this;var s=Object.keys(this._on);var n=function e(r){t.on(s[r],function(e,t){if(!o._on[s[r]])return;if(e.i!==void 0)t=e.i;if(e.nested&&e.values){var n=function e(t,n){if(o._discrete==="x")return[o._x(t,n),i[1]];else if(o._discrete==="y")return[i[0],o._y(t,n)];else return[o._x(t,n),o._y(t,n)]};var i=Bl(o._select.node()),a=e.values.map(function(e){return CA(i,n(e,t))});t=a.indexOf(je(a));e=e.values[t]}o._on[s[r]].bind(o)(e,t)})};for(var i=0;i *, g.d3plus-").concat(this._name,"-active > *")).each(function(e){if(e&&e.parentNode)e.parentNode.appendChild(this);else this.parentNode.removeChild(this)});this._group=Ox("g.d3plus-".concat(this._name,"-group"),{parent:this._select});var r=this._update=Ox("g.d3plus-".concat(this._name,"-shape"),{parent:this._group,update:{opacity:this._active?this._activeOpacity:1}}).selectAll(".d3plus-".concat(this._name)).data(i,a);r.order();if(this._duration){r.transition(this._transition).call(this._applyTransform.bind(this))}else{r.call(this._applyTransform.bind(this))}var o=this._enter=r.enter().append(this._tagName).attr("class",function(e,t){return"d3plus-Shape d3plus-".concat(n._name," d3plus-id-").concat(YE(n._nestWrapper(n._id)(e,t)))}).call(this._applyTransform.bind(this)).attr("aria-label",this._ariaLabel).attr("role",this._role).attr("opacity",this._nestWrapper(this._opacity));var s=o.merge(r);var l=s.attr("shape-rendering",this._nestWrapper(this._shapeRendering));if(this._duration){l=l.attr("pointer-events","none").transition(this._transition).transition().delay(100).attr("pointer-events",this._pointerEvents)}l.attr("opacity",this._nestWrapper(this._opacity));var u=this._exit=r.exit();if(this._duration)u.transition().delay(this._duration).remove();else u.remove();this._renderImage();this._renderLabels();this._hoverGroup=Ox("g.d3plus-".concat(this._name,"-hover"),{parent:this._group});this._activeGroup=Ox("g.d3plus-".concat(this._name,"-active"),{parent:this._group});var h=this._group.selectAll(".d3plus-HitArea").data(this._hitArea&&Object.keys(this._on).length?i:[],a);h.order().call(this._applyTransform.bind(this));var c=this._name==="Line";c&&this._path.curve(NE["curve".concat(this._curve.charAt(0).toUpperCase()).concat(this._curve.slice(1))]).defined(this._defined).x(this._x).y(this._y);var f=h.enter().append(c?"path":"rect").attr("class",function(e,t){return"d3plus-HitArea d3plus-id-".concat(YE(n._nestWrapper(n._id)(e,t)))}).attr("fill","black").attr("stroke","black").attr("pointer-events","painted").attr("opacity",0).call(this._applyTransform.bind(this));var d=this;var g=h.merge(f).each(function(e){var t=d._data.indexOf(e);var n=d._hitArea(e,t,d._aes(e,t));return n&&!(d._name==="Line"&&parseFloat(d._strokeWidth(e,t))>10)?Rl(this).call(Eh,n):Rl(this).remove()});h.exit().remove();this._applyEvents(this._hitArea?g:s);setTimeout(function(){if(n._active)n._renderActive();else if(n._hover)n._renderHover();if(t)t()},this._duration+100);return this}},{key:"active",value:function e(t){if(!arguments.length||t===undefined)return this._active;this._active=t;if(this._group){this._renderActive()}return this}},{key:"activeOpacity",value:function e(t){return arguments.length?(this._activeOpacity=t,this):this._activeOpacity}},{key:"activeStyle",value:function e(t){return arguments.length?(this._activeStyle=Ch({},this._activeStyle,t),this):this._activeStyle}},{key:"ariaLabel",value:function e(t){return t!==undefined?(this._ariaLabel=typeof t==="function"?t:Dx(t),this):this._ariaLabel}},{key:"backgroundImage",value:function e(t){return arguments.length?(this._backgroundImage=typeof t==="function"?t:Dx(t),this):this._backgroundImage}},{key:"data",value:function e(t){return arguments.length?(this._data=t,this):this._data}},{key:"discrete",value:function e(t){return arguments.length?(this._discrete=t,this):this._discrete}},{key:"duration",value:function e(t){return arguments.length?(this._duration=t,this):this._duration}},{key:"fill",value:function e(t){return arguments.length?(this._fill=typeof t==="function"?t:Dx(t),this):this._fill}},{key:"fillOpacity",value:function e(t){return arguments.length?(this._fillOpacity=typeof t==="function"?t:Dx(t),this):this._fillOpacity}},{key:"hover",value:function e(t){if(!arguments.length||t===void 0)return this._hover;this._hover=t;if(this._group){this._renderHover()}return this}},{key:"hoverStyle",value:function e(t){return arguments.length?(this._hoverStyle=Ch({},this._hoverStyle,t),this):this._hoverStyle}},{key:"hoverOpacity",value:function e(t){return arguments.length?(this._hoverOpacity=t,this):this._hoverOpacity}},{key:"hitArea",value:function e(t){return arguments.length?(this._hitArea=typeof t==="function"?t:Dx(t),this):this._hitArea}},{key:"id",value:function e(t){return arguments.length?(this._id=t,this):this._id}},{key:"label",value:function e(t){return arguments.length?(this._label=typeof t==="function"?t:Dx(t),this):this._label}},{key:"labelBounds",value:function e(t){return arguments.length?(this._labelBounds=typeof t==="function"?t:Dx(t),this):this._labelBounds}},{key:"labelConfig",value:function e(t){return arguments.length?(this._labelConfig=Ch(this._labelConfig,t),this):this._labelConfig}},{key:"opacity",value:function e(t){return arguments.length?(this._opacity=typeof t==="function"?t:Dx(t),this):this._opacity}},{key:"pointerEvents",value:function e(t){return arguments.length?(this._pointerEvents=typeof t==="function"?t:Dx(t),this):this._pointerEvents}},{key:"role",value:function e(t){return t!==undefined?(this._role=typeof t==="function"?t:Dx(t),this):this._role}},{key:"rotate",value:function e(t){return arguments.length?(this._rotate=typeof t==="function"?t:Dx(t),this):this._rotate}},{key:"rx",value:function e(t){return arguments.length?(this._rx=typeof t==="function"?t:Dx(t),this):this._rx}},{key:"ry",value:function e(t){return arguments.length?(this._ry=typeof t==="function"?t:Dx(t),this):this._ry}},{key:"scale",value:function e(t){return arguments.length?(this._scale=typeof t==="function"?t:Dx(t),this):this._scale}},{key:"select",value:function e(t){return arguments.length?(this._select=Rl(t),this):this._select}},{key:"shapeRendering",value:function e(t){return arguments.length?(this._shapeRendering=typeof t==="function"?t:Dx(t),this):this._shapeRendering}},{key:"sort",value:function e(t){return arguments.length?(this._sort=t,this):this._sort}},{key:"stroke",value:function e(t){return arguments.length?(this._stroke=typeof t==="function"?t:Dx(t),this):this._stroke}},{key:"strokeDasharray",value:function e(t){return arguments.length?(this._strokeDasharray=typeof t==="function"?t:Dx(t),this):this._strokeDasharray}},{key:"strokeLinecap",value:function e(t){return arguments.length?(this._strokeLinecap=typeof t==="function"?t:Dx(t),this):this._strokeLinecap}},{key:"strokeOpacity",value:function e(t){return arguments.length?(this._strokeOpacity=typeof t==="function"?t:Dx(t),this):this._strokeOpacity}},{key:"strokeWidth",value:function e(t){return arguments.length?(this._strokeWidth=typeof t==="function"?t:Dx(t),this):this._strokeWidth}},{key:"textAnchor",value:function e(t){return arguments.length?(this._textAnchor=typeof t==="function"?t:Dx(t),this):this._textAnchor}},{key:"vectorEffect",value:function e(t){return arguments.length?(this._vectorEffect=typeof t==="function"?t:Dx(t),this):this._vectorEffect}},{key:"verticalAlign",value:function e(t){return arguments.length?(this._verticalAlign=typeof t==="function"?t:Dx(t),this):this._verticalAlign}},{key:"x",value:function e(t){return arguments.length?(this._x=typeof t==="function"?t:Dx(t),this):this._x}},{key:"y",value:function e(t){return arguments.length?(this._y=typeof t==="function"?t:Dx(t),this):this._y}}]);return n}(Tx);function LA(e,t){var a=[];var r=[];function o(e,t){if(e.length===1){a.push(e[0]);r.push(e[0])}else{var n=Array(e.length-1);for(var i=0;i=3){t.x1=e[1][0];t.y1=e[1][1]}t.x=e[e.length-1][0];t.y=e[e.length-1][1];if(e.length===4){t.type="C"}else if(e.length===3){t.type="Q"}else{t.type="L"}return t}function jA(e,t){t=t||2;var n=[];var i=e;var a=1/t;for(var r=0;r0){i-=1}else if(i0){i-=1}}}e[i]=(e[i]||0)+1;return e},[]);var a=i.reduce(function(e,t,n){if(n===r.length-1){var i=UA(t,Object.assign({},r[r.length-1]));if(i[0].type==="M"){i.forEach(function(e){e.type="L"})}return e.concat(i)}return e.concat(qA(r[n],r[n+1],t))},[]);a.unshift(r[0]);return a}function XA(e){var t=(e||"").match(VA)||[];var n=[];var i;var a;for(var r=0;rg.length){g=YA(g,p,t)}else if(p.length0){for(var n=0;ne.length)t=e.length;for(var n=0,i=new Array(t);nMath.max(e[0],t[0])+i||oMath.max(e[1],t[1])+i)}function rR(e,t,n,i){var a=ZA(e,t,n,i);if(!a)return false;return aR(e,t,a)&&aR(n,i,a)}function oR(e,t){var n=-1;var i=e.length;var a=t.length;var r=e[i-1];while(++ne.length)t=e.length;for(var n=0,i=new Array(t);n2&&arguments[2]!==undefined?arguments[2]:0;var i=1e-9;t=[t[0]+i*Math.cos(n),t[1]+i*Math.sin(n)];var a=t,r=sR(a,2),o=r[0],s=r[1];var l=[o+Math.cos(n),s+Math.sin(n)];var u=0;if(Math.abs(l[0]-o)t[u]){if(_2&&arguments[2]!==undefined?arguments[2]:[0,0];var i=Math.cos(t),a=Math.sin(t),r=e[0]-n[0],o=e[1]-n[1];return[i*r-a*o+n[0],a*r+i*o+n[1]]}var pR=function e(t,n){var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:[0,0];return t.map(function(e){return gR(e,n,i)})};function vR(e,t,n){var i=t[0],a=t[1];var r=n[0]-i,o=n[1]-a;if(r!==0||o!==0){var s=((e[0]-i)*r+(e[1]-a)*o)/(r*r+o*o);if(s>1){i=n[0];a=n[1]}else if(s>0){i+=r*s;a+=o*s}}r=e[0]-i;o=e[1]-a;return r*r+o*o}function mR(e,t){var n,i=e[0];var a=[i];for(var r=1,o=e.length;rt){a.push(n);i=n}}if(i!==n)a.push(n);return a}function yR(e,t,n,i,a){var r,o=i;for(var s=t+1;so){r=s;o=l}}if(o>i){if(r-t>1)yR(e,t,r,i,a);a.push(e[r]);if(n-r>1)yR(e,r,n,i,a)}}function _R(e,t){var n=e.length-1;var i=[e[0]];yR(e,0,n,t,i);i.push(e[n]);return i}var bR=function e(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;if(t.length<=2)return t;var a=n*n;t=i?t:mR(t,a);t=_R(t,a);return t};function wR(e,t){return ER(e)||CR(e,t)||kR(e,t)||xR()}function xR(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function kR(e,t){if(!e)return;if(typeof e==="string")return SR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return SR(e,t)}function SR(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,i=new Array(t);n1&&arguments[1]!==undefined?arguments[1]:{};if(e.length<3){if(t.verbose)console.error("polygon has to have at least 3 points",e);return null}var n=[];t=Object.assign({angle:Le(-90,90+RR,RR),cache:true,maxAspectRatio:15,minAspectRatio:1,minHeight:0,minWidth:0,nTries:20,tolerance:.02,verbose:false},t);var i=t.angle instanceof Array?t.angle:typeof t.angle==="number"?[t.angle]:typeof t.angle==="string"&&!isNaN(t.angle)?[Number(t.angle)]:[];var a=t.aspectRatio instanceof Array?t.aspectRatio:typeof t.aspectRatio==="number"?[t.aspectRatio]:typeof t.aspectRatio==="string"&&!isNaN(t.aspectRatio)?[Number(t.aspectRatio)]:[];var r=t.origin&&t.origin instanceof Array?t.origin[0]instanceof Array?t.origin:[t.origin]:[];var o;if(t.cache){o=_e(e).join(",");o+="-".concat(t.minAspectRatio);o+="-".concat(t.maxAspectRatio);o+="-".concat(t.minHeight);o+="-".concat(t.minWidth);o+="-".concat(i.join(","));o+="-".concat(r.join(","));if(MR[o])return MR[o]}var s=Math.abs(He(e));if(s===0){if(t.verbose)console.error("polygon has 0 area",e);return null}var l=Fe(e,function(e){return e[0]}),u=wR(l,2),h=u[0],c=u[1];var f=Fe(e,function(e){return e[1]}),d=wR(f,2),g=d[0],p=d[1];var v=Math.min(c-h,p-g)*t.tolerance;if(v>0)e=bR(e,v);if(t.events)n.push({type:"simplify",poly:e});var m=Fe(e,function(e){return e[0]});var y=wR(m,2);h=y[0];c=y[1];var _=Fe(e,function(e){return e[1]});var b=wR(_,2);g=b[0];p=b[1];var w=c-h,x=p-g;var k=Math.min(w,x)/50;if(!r.length){var S=Ve(e);if(!isFinite(S[0])){if(t.verbose)console.error("cannot find centroid",e);return null}if(qe(e,S))r.push(S);var C=t.nTries;while(C){var E=Math.random()*w+h;var A=Math.random()*x+g;var R=[E,A];if(qe(e,R)){r.push(R)}C--}}if(t.events)n.push({type:"origins",points:r});var M=0;var T=null;for(var B=0;B=k)n.push({type:"aRatio",aRatio:ue});while(ce-he>=k){var fe=(he+ce)/2;var de=fe/ue;var ge=wR(K,2),pe=ge[0],ve=ge[1];var me=[[pe-fe/2,ve-de/2],[pe+fe/2,ve-de/2],[pe+fe/2,ve+de/2],[pe-fe/2,ve+de/2]];me=pR(me,P,K);var ye=oR(me,e);if(ye){M=fe*de;me.push(me[0]);T={area:M,cx:pe,cy:ve,width:fe,height:de,angle:-N,points:me};he=fe}else{ce=fe}if(t.events)n.push({type:"rectangle",areaFraction:fe*de/s,cx:pe,cy:ve,width:fe,height:de,angle:N,insidePoly:ye})}}}}}if(t.cache){MR[o]=T}return t.events?Object.assign(T||{},{events:n}):T}function BR(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){BR=function e(t){return typeof t}}else{BR=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return BR(e)}function NR(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function PR(e,t){for(var n=0;nr[0][1])o=o.reverse();o.push(o[0]);return{points:o}}},{key:"_dataFilter",value:function e(i){var a=this;var t=X().key(this._id).entries(i).map(function(e){e.data=Fx(e.values);e.i=i.indexOf(e.values[0]);var t=Fe(e.values.map(a._x).concat(e.values.map(a._x0)).concat(a._x1?e.values.map(a._x1):[]));e.xR=t;e.width=t[1]-t[0];e.x=t[0]+e.width/2;var n=Fe(e.values.map(a._y).concat(e.values.map(a._y0)).concat(a._y1?e.values.map(a._y1):[]));e.yR=n;e.height=n[1]-n[0];e.y=n[0]+e.height/2;e.nested=true;e.translate=[e.x,e.y];e.__d3plusShape__=true;return e});t.key=function(e){return e.key};return t}},{key:"render",value:function e(t){var n=this;OR(GR(r.prototype),"render",this).call(this,t);var i=this._path=VS().defined(this._defined).curve(NE["curve".concat(this._curve.charAt(0).toUpperCase()).concat(this._curve.slice(1))]).x(this._x).x0(this._x0).x1(this._x1).y(this._y).y0(this._y0).y1(this._y1);var a=VS().defined(function(e){return e}).curve(NE["curve".concat(this._curve.charAt(0).toUpperCase()).concat(this._curve.slice(1))]).x(this._x).y(this._y).x0(function(e,t){return n._x1?n._x0(e,t)+(n._x1(e,t)-n._x0(e,t))/2:n._x0(e,t)}).x1(function(e,t){return n._x1?n._x0(e,t)+(n._x1(e,t)-n._x0(e,t))/2:n._x0(e,t)}).y0(function(e,t){return n._y1?n._y0(e,t)+(n._y1(e,t)-n._y0(e,t))/2:n._y0(e,t)}).y1(function(e,t){return n._y1?n._y0(e,t)+(n._y1(e,t)-n._y0(e,t))/2:n._y0(e,t)});this._enter.append("path").attr("transform",function(e){return"translate(".concat(-e.xR[0]-e.width/2,", ").concat(-e.yR[0]-e.height/2,")")}).attr("d",function(e){return a(e.values)}).call(this._applyStyle.bind(this)).transition(this._transition).attrTween("d",function(e){return $A(Rl(this).attr("d"),i(e.values))});this._update.select("path").transition(this._transition).attr("transform",function(e){return"translate(".concat(-e.xR[0]-e.width/2,", ").concat(-e.yR[0]-e.height/2,")")}).attrTween("d",function(e){return $A(Rl(this).attr("d"),i(e.values))}).call(this._applyStyle.bind(this));this._exit.select("path").transition(this._transition).attrTween("d",function(e){return $A(Rl(this).attr("d"),a(e.values))});return this}},{key:"curve",value:function e(t){return arguments.length?(this._curve=t,this):this._curve}},{key:"defined",value:function e(t){return arguments.length?(this._defined=t,this):this._defined}},{key:"x",value:function e(t){if(!arguments.length)return this._x;this._x=typeof t==="function"?t:Dx(t);this._x0=this._x;return this}},{key:"x0",value:function e(t){if(!arguments.length)return this._x0;this._x0=typeof t==="function"?t:Dx(t);this._x=this._x0;return this}},{key:"x1",value:function e(t){return arguments.length?(this._x1=typeof t==="function"||t===null?t:Dx(t),this):this._x1}},{key:"y",value:function e(t){if(!arguments.length)return this._y;this._y=typeof t==="function"?t:Dx(t);this._y0=this._y;return this}},{key:"y0",value:function e(t){if(!arguments.length)return this._y0;this._y0=typeof t==="function"?t:Dx(t);this._y=this._y0;return this}},{key:"y1",value:function e(t){return arguments.length?(this._y1=typeof t==="function"||t===null?t:Dx(t),this):this._y1}}]);return r}(FA);function WR(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){WR=function e(t){return typeof t}}else{WR=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return WR(e)}function KR(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function qR(e,t){for(var n=0;n=e.initialLength)break}}if(n.length>1&&n.length%2)n.pop();n[n.length-1]+=e.initialLength-O(n);if(n.length%2===0)n.push(0);e.initialStrokeArray=n.join(" ")}this._path.curve(NE["curve".concat(this._curve.charAt(0).toUpperCase()).concat(this._curve.slice(1))]).defined(this._defined).x(this._x).y(this._y);var a=this._enter.append("path").attr("transform",function(e){return"translate(".concat(-e.xR[0]-e.width/2,", ").concat(-e.yR[0]-e.height/2,")")}).attr("d",function(e){return n._path(e.values)}).call(this._applyStyle.bind(this));var r=this._update.select("path").attr("stroke-dasharray",function(e){return o._strokeDasharray(e.values[0],o._data.indexOf(e.values[0]))});if(this._duration){a.each(i).attr("stroke-dasharray",function(e){return"".concat(e.initialStrokeArray," ").concat(e.initialLength)}).attr("stroke-dashoffset",function(e){return e.initialLength}).transition(this._transition).attr("stroke-dashoffset",0);r=r.transition(this._transition).attrTween("d",function(e){return $A(Rl(this).attr("d"),o._path(e.values))});this._exit.selectAll("path").each(i).attr("stroke-dasharray",function(e){return"".concat(e.initialStrokeArray," ").concat(e.initialLength)}).transition(this._transition).attr("stroke-dashoffset",function(e){return-e.initialLength})}else{r=r.attr("d",function(e){return o._path(e.values)})}r.attr("transform",function(e){return"translate(".concat(-e.xR[0]-e.width/2,", ").concat(-e.yR[0]-e.height/2,")")}).call(this._applyStyle.bind(this));return this}},{key:"_aes",value:function e(t,n){var i=this;return{points:t.values.map(function(e){return[i._x(e,n),i._y(e,n)]})}}},{key:"curve",value:function e(t){return arguments.length?(this._curve=t,this):this._curve}},{key:"defined",value:function e(t){return arguments.length?(this._defined=t,this):this._defined}}]);return s}(FA);function qM(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){qM=function e(t){return typeof t}}else{qM=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return qM(e)}function YM(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function XM(e,t){for(var n=0;nme(e))a.upperLimit=me(e)}else if(t[1]==="extent")a.upperLimit=me(e);else if(typeof t[1]==="number")a.upperLimit=Ie(e,t[1]);var n=a.third-a.first;if(a.orient==="vertical"){a.height=n;a.width=r._rectWidth(a.data,a.i);a.x=r._x(a.data,a.i);a.y=a.first+n/2}else if(a.orient==="horizontal"){a.height=r._rectWidth(a.data,a.i);a.width=n;a.x=a.first+n/2;a.y=r._y(a.data,a.i)}a.values.forEach(function(e,t){var n=a.orient==="vertical"?r._y(e,t):r._x(e,t);if(na.upperLimit){var i={};i.__d3plus__=true;i.data=e;i.i=t;i.outlier=r._outlier(e,t);if(a.orient==="vertical"){i.x=a.x;i.y=n;o.push(i)}else if(a.orient==="horizontal"){i.y=a.y;i.x=n;o.push(i)}}});a.__d3plus__=true;return a});this._box=(new NM).data(t).x(function(e){return e.x}).y(function(e){return e.y}).select(Ox("g.d3plus-Box",{parent:this._select}).node()).config(Px.bind(this)(this._rectConfig,"shape")).render();this._median=(new NM).data(t).x(function(e){return e.orient==="vertical"?e.x:e.median}).y(function(e){return e.orient==="vertical"?e.median:e.y}).height(function(e){return e.orient==="vertical"?1:e.height}).width(function(e){return e.orient==="vertical"?e.width:1}).select(Ox("g.d3plus-Box-Median",{parent:this._select}).node()).config(Px.bind(this)(this._medianConfig,"shape")).render();var h=[];t.forEach(function(e,t){var n=e.x;var i=e.y;var a=e.first-e.lowerLimit;var r=e.upperLimit-e.third;if(e.orient==="vertical"){var o=i-e.height/2;var s=i+e.height/2;h.push({__d3plus__:true,data:e,i:t,x:n,y:o,length:a,orient:"top"},{__d3plus__:true,data:e,i:t,x:n,y:s,length:r,orient:"bottom"})}else if(e.orient==="horizontal"){var l=n+e.width/2;var u=n-e.width/2;h.push({__d3plus__:true,data:e,i:t,x:l,y:i,length:r,orient:"right"},{__d3plus__:true,data:e,i:t,x:u,y:i,length:a,orient:"left"})}});this._whisker=(new rT).data(h).select(Ox("g.d3plus-Box-Whisker",{parent:this._select}).node()).config(Px.bind(this)(this._whiskerConfig,"shape")).render();this._whiskerEndpoint=[];X().key(function(e){return e.outlier}).entries(o).forEach(function(e){var t=e.key;r._whiskerEndpoint.push((new mT[t]).data(e.values).select(Ox("g.d3plus-Box-Outlier-".concat(t),{parent:r._select}).node()).config(Px.bind(r)(r._outlierConfig,"shape",t)).render())});return this}},{key:"active",value:function e(t){if(this._box)this._box.active(t);if(this._median)this._median.active(t);if(this._whisker)this._whisker.active(t);if(this._whiskerEndpoint)this._whiskerEndpoint.forEach(function(e){return e.active(t)})}},{key:"data",value:function e(t){return arguments.length?(this._data=t,this):this._data}},{key:"hover",value:function e(t){if(this._box)this._box.hover(t);if(this._median)this._median.hover(t);if(this._whisker)this._whisker.hover(t);if(this._whiskerEndpoint)this._whiskerEndpoint.forEach(function(e){return e.hover(t)})}},{key:"medianConfig",value:function e(t){return arguments.length?(this._medianConfig=Ch(this._medianConfig,t),this):this._medianConfig}},{key:"orient",value:function e(t){return arguments.length?(this._orient=typeof t==="function"?t:Dx(t),this):this._orient}},{key:"outlier",value:function e(t){return arguments.length?(this._outlier=typeof t==="function"?t:Dx(t),this):this._outlier}},{key:"outlierConfig",value:function e(t){return arguments.length?(this._outlierConfig=Ch(this._outlierConfig,t),this):this._outlierConfig}},{key:"rectConfig",value:function e(t){return arguments.length?(this._rectConfig=Ch(this._rectConfig,t),this):this._rectConfig}},{key:"rectWidth",value:function e(t){return arguments.length?(this._rectWidth=typeof t==="function"?t:Dx(t),this):this._rectWidth}},{key:"select",value:function e(t){return arguments.length?(this._select=Rl(t),this):this._select}},{key:"whiskerConfig",value:function e(t){return arguments.length?(this._whiskerConfig=Ch(this._whiskerConfig,t),this):this._whiskerConfig}},{key:"whiskerMode",value:function e(t){return arguments.length?(this._whiskerMode=t instanceof Array?t:[t,t],this):this._whiskerMode}},{key:"x",value:function e(t){return arguments.length?(this._x=typeof t==="function"?t:wh(t),this):this._x}},{key:"y",value:function e(t){return arguments.length?(this._y=typeof t==="function"?t:wh(t),this):this._y}}]);return n}(Tx);var _T=Math.PI;var bT=function e(t,n){var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"circle";if(t<0)t=_T*2+t;if(i==="square"){var a=45*(_T/180);var r=0,o=0;if(t<_T/2){var s=Math.tan(t);r+=t1&&arguments[1]!==undefined?arguments[1]:20;var i=[],a=/([MLA])([^MLAZ]+)/gi;var r=a.exec(t);while(r!==null){if(["M","L"].includes(r[1]))i.push(r[2].split(",").map(Number));else if(r[1]==="A"){var o=r[2].split(",").map(Number);var s=o.slice(o.length-2,o.length),l=i[i.length-1],u=o[0],h=CA(l,s);var c=Math.acos((u*u+u*u-h*h)/(2*u*u));if(o[2])c=wT*2-c;var f=c/(c/(wT*2)*(u*wT*2)/n);var d=Math.atan2(-l[1],-l[0])-wT;var g=f;while(g1&&arguments[1]!==undefined?arguments[1]:"data";return t.reduce(function(e,t){var n=[];if(Array.isArray(t)){n=t}else{if(t[i]){n=t[i]}else{console.warn('d3plus-viz: Please implement a "dataFormat" callback to concat the arrays manually (consider using the d3plus.dataConcat method in your callback). Currently unable to concatenate (using key: "'.concat(i,'") the following response:'),t)}}return e.concat(n)},[])};function IT(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){IT=function e(t){return typeof t}}else{IT=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return IT(e)}var jT=function e(t){return typeof t==="string"||IT(t)==="object"&&t.url&&t.headers};function HT(a,e){var r,o=te("beforesend","progress","load","error"),s,l=E(),u=new XMLHttpRequest,h=null,c=null,i,f,d=0;if(typeof XDomainRequest!=="undefined"&&!("withCredentials"in u)&&/^(http(s)?:)?\/\//.test(a))u=new XDomainRequest;"onload"in u?u.onload=u.onerror=u.ontimeout=t:u.onreadystatechange=function(e){u.readyState>3&&t(e)};function t(e){var t=u.status,n;if(!t&>(u)||t>=200&&t<300||t===304){if(i){try{n=i.call(r,u)}catch(e){o.call("error",r,e);return}}else{n=u}o.call("load",r,n)}else{o.call("error",r,e)}}u.onprogress=function(e){o.call("progress",r,e)};r={header:function e(t,n){t=(t+"").toLowerCase();if(arguments.length<2)return l.get(t);if(n==null)l.remove(t);else l.set(t,n+"");return r},mimeType:function e(t){if(!arguments.length)return s;s=t==null?null:t+"";return r},responseType:function e(t){if(!arguments.length)return f;f=t;return r},timeout:function e(t){if(!arguments.length)return d;d=+t;return r},user:function e(t){return arguments.length<1?h:(h=t==null?null:t+"",r)},password:function e(t){return arguments.length<1?c:(c=t==null?null:t+"",r)},response:function e(t){i=t;return r},get:function e(t,n){return r.send("GET",t,n)},post:function e(t,n){return r.send("POST",t,n)},send:function e(t,n,i){u.open(t,a,true,h,c);if(s!=null&&!l.has("accept"))l.set("accept",s+",*/*");if(u.setRequestHeader)l.each(function(e,t){u.setRequestHeader(t,e)});if(s!=null&&u.overrideMimeType)u.overrideMimeType(s);if(f!=null)u.responseType=f;if(d>0)u.timeout=d;if(i==null&&typeof n==="function")i=n,n=null;if(i!=null&&i.length===1)i=VT(i);if(i!=null)r.on("error",i).on("load",function(e){i(null,e)});o.call("beforesend",r,u);u.send(n==null?null:n);return r},abort:function e(){u.abort();return r},on:function e(){var t=o.on.apply(o,arguments);return t===o?r:t}};if(e!=null){if(typeof e!=="function")throw new Error("invalid callback: "+e);return r.get(e)}return r}function VT(n){return function(e,t){n(e==null?t:null)}}function GT(e){var t=e.responseType;return t&&t!=="text"?e.response:e.responseText}function UT(i,a){return function(e,t){var n=HT(e).mimeType(i).response(a);if(t!=null){if(typeof t!=="function")throw new Error("invalid callback: "+t);return n.get(t)}return n}}var WT=UT("application/json",function(e){return JSON.parse(e.responseText)});var KT=UT("text/plain",function(e){return e.responseText});var qT={},YT={},XT=34,$T=10,ZT=13;function JT(e){return new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+'] || ""'}).join(",")+"}")}function QT(n,i){var a=JT(n);return function(e,t){return i(a(e),t,n)}}function eB(e){var n=Object.create(null),i=[];e.forEach(function(e){for(var t in e){if(!(t in n)){i.push(n[t]=t)}}});return i}function tB(e,t){var n=e+"",i=n.length;return i9999?"+"+tB(e,6):tB(e,4)}function iB(e){var t=e.getUTCHours(),n=e.getUTCMinutes(),i=e.getUTCSeconds(),a=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":nB(e.getUTCFullYear())+"-"+tB(e.getUTCMonth()+1,2)+"-"+tB(e.getUTCDate(),2)+(a?"T"+tB(t,2)+":"+tB(n,2)+":"+tB(i,2)+"."+tB(a,3)+"Z":i?"T"+tB(t,2)+":"+tB(n,2)+":"+tB(i,2)+"Z":n||t?"T"+tB(t,2)+":"+tB(n,2)+"Z":"")}function aB(i){var t=new RegExp('["'+i+"\n\r]"),c=i.charCodeAt(0);function e(e,n){var i,a,t=r(e,function(e,t){if(i)return i(e,t-1);a=e,i=n?QT(e,n):JT(e)});t.columns=a||[];return t}function r(i,e){var t=[],a=i.length,r=0,n=0,o,s=a<=0,l=false;if(i.charCodeAt(a-1)===$T)--a;if(i.charCodeAt(a-1)===ZT)--a;function u(){if(s)return YT;if(l)return l=false,qT;var e,t=r,n;if(i.charCodeAt(t)===XT){while(r++=a)s=true;else if((n=i.charCodeAt(r++))===$T)l=true;else if(n===ZT){l=true;if(i.charCodeAt(r)===$T)++r}return i.slice(t+1,e-1).replace(/""/g,'"')}while(r1&&arguments[1]!==undefined?arguments[1]:"data";var a=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"headers";return t[n].map(function(i){return t[a].reduce(function(e,t,n){return e[t]=i[n],e},{})})};function gB(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){gB=function e(t){return typeof t}}else{gB=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return gB(e)}function pB(r,o,s,l){var u=this;var h;var c=function e(t){var n=t.slice(t.length-4);switch(n){case".csv":return cB;case".tsv":return fB;case".txt":return KT;default:return WT}};var f=function e(t,n,i){if(n!==WT&&!t&&i&&i instanceof Array){i.forEach(function(e){for(var t in e){if(!isNaN(e[t]))e[t]=parseFloat(e[t]);else if(e[t].toLowerCase()==="false")e[t]=false;else if(e[t].toLowerCase()==="true")e[t]=true;else if(e[t].toLowerCase()==="null")e[t]=null;else if(e[t].toLowerCase()==="undefined")e[t]=undefined}})}return i};var d=function e(t){return t.reduce(function(e,t){return t?e+1:e},0)};var g=function e(t,n){return n.indexOf(t)};if(!(r instanceof Array))r=[r];var e=r.find(jT);var p=new Array(r.length);var v=[];if(e){r.forEach(function(e,t){if(jT(e))v.push(e);else p[t]=e})}else{p[0]=r}var m=d(p);v.forEach(function(e){var t={},i=e;if(gB(e)==="object"){i=e.url;t=e.headers}h=c(i);var n=h(i);for(var a in t){if({}.hasOwnProperty.call(t,a)){n.header(a,t[a])}}n.get(function(e,t){t=e?[]:t;if(t&&!(t instanceof Array)&&t.data&&t.headers)t=dB(t);t=f(e,h,t);p[g(i,r)]=t;if(d(p)-m===v.length){t=d(p)===1?p[0]:p;if(u._cache)u._lrucache.set("".concat(s,"_").concat(i),t);if(o){var n=o(d(p)===1?p[0]:p);if(s==="data"&&!(n instanceof Array)){t=n.data;delete n.data;u.config(n)}else t=n}else if(s==="data"){t=LT(p,"data")}if(s&&"_".concat(s)in u)u["_".concat(s)]=t;if(l)l(e,t)}})});if(v.length===0){p=p.map(function(e){if(e&&!(e instanceof Array)&&e.data&&e.headers)e=dB(e);return e});var t=d(p)===1?p[0]:p;if(o){var n=o(d(p)===1?p[0]:p);if(s==="data"&&!(n instanceof Array)){t=n.data;delete n.data;this.config(n)}else t=n}else if(s==="data"){t=LT(p,"data")}if(s&&"_".concat(s)in this)this["_".concat(s)]=t;if(l)l(null,t)}}function vB(e,t,n){if(!(e instanceof Array))e=[e];var i=e.find(jT);if(i){var a=this._queue.find(function(e){return e[3]==="data"});var r=[pB.bind(this),e,t,"data"];if(a)this._queue[this._queue.indexOf(a)]=r;else this._queue.push(r)}else{this["_".concat(n)]=e}}function mB(e){return function(){return e}}function yB(e,t,n){this.target=e;this.type=t;this.selection=n}function _B(){fl.stopImmediatePropagation()}function bB(){fl.preventDefault();fl.stopImmediatePropagation()}var wB={name:"drag"},xB={name:"space"},kB={name:"handle"},SB={name:"center"};function CB(e){return[+e[0],+e[1]]}function EB(e){return[CB(e[0]),CB(e[1])]}function AB(t){return function(e){return Pl(e,fl.touches,t)}}var RB={name:"x",handles:["w","e"].map(zB),input:function e(t,n){return t==null?null:[[+t[0],n[0][1]],[+t[1],n[1][1]]]},output:function e(t){return t&&[t[0][0],t[1][0]]}};var MB={name:"y",handles:["n","s"].map(zB),input:function e(t,n){return t==null?null:[[n[0][0],+t[0]],[n[1][0],+t[1]]]},output:function e(t){return t&&[t[0][1],t[1][1]]}};var TB={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(zB),input:function e(t){return t==null?null:EB(t)},output:function e(t){return t}};var BB={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"};var NB={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"};var PB={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"};var DB={overlay:+1,selection:+1,n:null,e:+1,s:null,w:-1,nw:-1,ne:+1,se:+1,sw:-1};var OB={overlay:+1,selection:+1,n:-1,e:null,s:+1,w:null,nw:-1,ne:-1,se:+1,sw:+1};function zB(e){return{type:e}}function FB(){return!fl.ctrlKey&&!fl.button}function LB(){var e=this.ownerSVGElement||this;if(e.hasAttribute("viewBox")){e=e.viewBox.baseVal;return[[e.x,e.y],[e.x+e.width,e.y+e.height]]}return[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function IB(){return navigator.maxTouchPoints||"ontouchstart"in this}function jB(e){while(!e.__brush){if(!(e=e.parentNode))return}return e.__brush}function HB(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function VB(){return UB(RB)}function GB(){return UB(TB)}function UB(L){var t=LB,I=FB,i=IB,j=true,n=te("start","brush","end"),a=6,H;function r(e){var t=e.property("__brush",h).selectAll(".overlay").data([zB("overlay")]);t.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",BB.overlay).merge(t).each(function(){var e=jB(this).extent;Rl(this).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1])});e.selectAll(".selection").data([zB("selection")]).enter().append("rect").attr("class","selection").attr("cursor",BB.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var n=e.selectAll(".handle").data(L.handles,function(e){return e.type});n.exit().remove();n.enter().append("rect").attr("class",function(e){return"handle handle--"+e.type}).attr("cursor",function(e){return BB[e.type]});e.each(V).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",s).filter(i).on("touchstart.brush",s).on("touchmove.brush",l).on("touchend.brush touchcancel.brush",u).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}r.move=function(e,s){if(e.selection){e.on("start.brush",function(){G(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){G(this,arguments).end()}).tween("brush",function(){var t=this,n=t.__brush,i=G(t,arguments),e=n.selection,a=L.input(typeof s==="function"?s.apply(this,arguments):s,n.extent),r=En(e,a);function o(e){n.selection=e===1&&a===null?null:r(e);V.call(t);i.brush()}return e!==null&&a!==null?o:o(1)})}else{e.each(function(){var e=this,t=arguments,n=e.__brush,i=L.input(typeof s==="function"?s.apply(e,t):s,n.extent),a=G(e,t).beforestart();Zl(e);n.selection=i===null?null:i;V.call(e);a.start().brush().end()})}};r.clear=function(e){r.move(e,null)};function V(){var e=Rl(this),t=jB(this).selection;if(t){e.selectAll(".selection").style("display",null).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1]);e.selectAll(".handle").style("display",null).attr("x",function(e){return e.type[e.type.length-1]==="e"?t[1][0]-a/2:t[0][0]-a/2}).attr("y",function(e){return e.type[0]==="s"?t[1][1]-a/2:t[0][1]-a/2}).attr("width",function(e){return e.type==="n"||e.type==="s"?t[1][0]-t[0][0]+a:a}).attr("height",function(e){return e.type==="e"||e.type==="w"?t[1][1]-t[0][1]+a:a})}else{e.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}}function G(e,t,n){return!n&&e.__brush.emitter||new o(e,t)}function o(e,t){this.that=e;this.args=t;this.state=e.__brush;this.active=0}o.prototype={beforestart:function e(){if(++this.active===1)this.state.emitter=this,this.starting=true;return this},start:function e(){if(this.starting)this.starting=false,this.emit("start");else this.emit("brush");return this},brush:function e(){this.emit("brush");return this},end:function e(){if(--this.active===0)delete this.state.emitter,this.emit("end");return this},emit:function e(t){bl(new yB(r,t,L.output(this.state.selection)),n.apply,n,[t,this.that,this.args])}};function s(){if(H&&!fl.touches)return;if(!I.apply(this,arguments))return;var t=this,n=fl.target.__data__.type,i=(j&&fl.metaKey?n="overlay":n)==="selection"?wB:j&&fl.altKey?SB:kB,a=L===MB?null:DB[n],r=L===RB?null:OB[n],o=jB(t),e=o.extent,s=o.selection,l=e[0][0],u,h,c=e[0][1],f,d,g=e[1][0],p,v,m=e[1][1],y,_,b=0,w=0,x,k=a&&r&&j&&fl.shiftKey,S,C,E=fl.touches?AB(fl.changedTouches[0].identifier):Bl,A=E(t),R=A,M=G(t,arguments,true).beforestart();if(n==="overlay"){if(s)x=true;o.selection=s=[[u=L===MB?l:A[0],f=L===RB?c:A[1]],[p=L===MB?g:u,y=L===RB?m:f]]}else{u=s[0][0];f=s[0][1];p=s[1][0];y=s[1][1]}h=u;d=f;v=p;_=y;var T=Rl(t).attr("pointer-events","none");var B=T.selectAll(".overlay").attr("cursor",BB[n]);if(fl.touches){M.moved=P;M.ended=O}else{var N=Rl(fl.view).on("mousemove.brush",P,true).on("mouseup.brush",O,true);if(j)N.on("keydown.brush",z,true).on("keyup.brush",F,true);Ol(fl.view)}_B();Zl(t);V.call(t);M.start();function P(){var e=E(t);if(k&&!S&&!C){if(Math.abs(e[0]-R[0])>Math.abs(e[1]-R[1]))C=true;else S=true}R=e;x=true;bB();D()}function D(){var e;b=R[0]-A[0];w=R[1]-A[1];switch(i){case xB:case wB:{if(a)b=Math.max(l-u,Math.min(g-p,b)),h=u+b,v=p+b;if(r)w=Math.max(c-f,Math.min(m-y,w)),d=f+w,_=y+w;break}case kB:{if(a<0)b=Math.max(l-u,Math.min(g-u,b)),h=u+b,v=p;else if(a>0)b=Math.max(l-p,Math.min(g-p,b)),h=u,v=p+b;if(r<0)w=Math.max(c-f,Math.min(m-f,w)),d=f+w,_=y;else if(r>0)w=Math.max(c-y,Math.min(m-y,w)),d=f,_=y+w;break}case SB:{if(a)h=Math.max(l,Math.min(g,u-b*a)),v=Math.max(l,Math.min(g,p+b*a));if(r)d=Math.max(c,Math.min(m,f-w*r)),_=Math.max(c,Math.min(m,y+w*r));break}}if(v0)u=h-b;if(r<0)y=_-w;else if(r>0)f=d-w;i=xB;B.attr("cursor",BB.selection);D()}break}default:return}bB()}function F(){switch(fl.keyCode){case 16:{if(k){S=C=k=false;D()}break}case 18:{if(i===SB){if(a<0)p=v;else if(a>0)u=h;if(r<0)y=_;else if(r>0)f=d;i=kB;D()}break}case 32:{if(i===xB){if(fl.altKey){if(a)p=v-b*a,u=h+b*a;if(r)y=_-w*r,f=d+w*r;i=SB}else{if(a<0)p=v;else if(a>0)u=h;if(r<0)y=_;else if(r>0)f=d;i=kB}B.attr("cursor",BB[n]);D()}break}default:return}bB()}}function l(){G(this,arguments).moved()}function u(){G(this,arguments).ended()}function h(){var e=this.__brush||{selection:null};e.extent=EB(t.apply(this,arguments));e.dim=L;return e}r.extent=function(e){return arguments.length?(t=typeof e==="function"?e:mB(EB(e)),r):t};r.filter=function(e){return arguments.length?(I=typeof e==="function"?e:mB(!!e),r):I};r.touchable=function(e){return arguments.length?(i=typeof e==="function"?e:mB(!!e),r):i};r.handleSize=function(e){return arguments.length?(a=+e,r):a};r.keyModifiers=function(e){return arguments.length?(j=!!e,r):j};r.on=function(){var e=n.on.apply(n,arguments);return e===n?r:e};return r}function WB(e,t,n){e.prototype=t.prototype=n;n.constructor=e}function KB(e,t){var n=Object.create(e.prototype);for(var i in t){n[i]=t[i]}return n}function qB(){}var YB=.7;var XB=1/YB;var $B="\\s*([+-]?\\d+)\\s*",ZB="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",JB="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",QB=/^#([0-9a-f]{3,8})$/,eN=new RegExp("^rgb\\("+[$B,$B,$B]+"\\)$"),tN=new RegExp("^rgb\\("+[JB,JB,JB]+"\\)$"),nN=new RegExp("^rgba\\("+[$B,$B,$B,ZB]+"\\)$"),iN=new RegExp("^rgba\\("+[JB,JB,JB,ZB]+"\\)$"),aN=new RegExp("^hsl\\("+[ZB,JB,JB]+"\\)$"),rN=new RegExp("^hsla\\("+[ZB,JB,JB,ZB]+"\\)$");var oN={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};WB(qB,hN,{copy:function e(t){return Object.assign(new this.constructor,this,t)},displayable:function e(){return this.rgb().displayable()},hex:sN,formatHex:sN,formatHsl:lN,formatRgb:uN,toString:uN});function sN(){return this.rgb().formatHex()}function lN(){return bN(this).formatHsl()}function uN(){return this.rgb().formatRgb()}function hN(e){var t,n;e=(e+"").trim().toLowerCase();return(t=QB.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?cN(t):n===3?new pN(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?fN(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?fN(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=eN.exec(e))?new pN(t[1],t[2],t[3],1):(t=tN.exec(e))?new pN(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=nN.exec(e))?fN(t[1],t[2],t[3],t[4]):(t=iN.exec(e))?fN(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=aN.exec(e))?_N(t[1],t[2]/100,t[3]/100,1):(t=rN.exec(e))?_N(t[1],t[2]/100,t[3]/100,t[4]):oN.hasOwnProperty(e)?cN(oN[e]):e==="transparent"?new pN(NaN,NaN,NaN,0):null}function cN(e){return new pN(e>>16&255,e>>8&255,e&255,1)}function fN(e,t,n,i){if(i<=0)e=t=n=NaN;return new pN(e,t,n,i)}function dN(e){if(!(e instanceof qB))e=hN(e);if(!e)return new pN;e=e.rgb();return new pN(e.r,e.g,e.b,e.opacity)}function gN(e,t,n,i){return arguments.length===1?dN(e):new pN(e,t,n,i==null?1:i)}function pN(e,t,n,i){this.r=+e;this.g=+t;this.b=+n;this.opacity=+i}WB(pN,gN,KB(qB,{brighter:function e(t){t=t==null?XB:Math.pow(XB,t);return new pN(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function e(t){t=t==null?YB:Math.pow(YB,t);return new pN(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function e(){return this},displayable:function e(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:vN,formatHex:vN,formatRgb:mN,toString:mN}));function vN(){return"#"+yN(this.r)+yN(this.g)+yN(this.b)}function mN(){var e=this.opacity;e=isNaN(e)?1:Math.max(0,Math.min(1,e));return(e===1?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(e===1?")":", "+e+")")}function yN(e){e=Math.max(0,Math.min(255,Math.round(e)||0));return(e<16?"0":"")+e.toString(16)}function _N(e,t,n,i){if(i<=0)e=t=n=NaN;else if(n<=0||n>=1)e=t=NaN;else if(t<=0)e=NaN;return new xN(e,t,n,i)}function bN(e){if(e instanceof xN)return new xN(e.h,e.s,e.l,e.opacity);if(!(e instanceof qB))e=hN(e);if(!e)return new xN;if(e instanceof xN)return e;e=e.rgb();var t=e.r/255,n=e.g/255,i=e.b/255,a=Math.min(t,n,i),r=Math.max(t,n,i),o=NaN,s=r-a,l=(r+a)/2;if(s){if(t===r)o=(n-i)/s+(n0&&l<1?0:o}return new xN(o,s,l,e.opacity)}function wN(e,t,n,i){return arguments.length===1?bN(e):new xN(e,t,n,i==null?1:i)}function xN(e,t,n,i){this.h=+e;this.s=+t;this.l=+n;this.opacity=+i}WB(xN,wN,KB(qB,{brighter:function e(t){t=t==null?XB:Math.pow(XB,t);return new xN(this.h,this.s,this.l*t,this.opacity)},darker:function e(t){t=t==null?YB:Math.pow(YB,t);return new xN(this.h,this.s,this.l*t,this.opacity)},rgb:function e(){var t=this.h%360+(this.h<0)*360,n=isNaN(t)||isNaN(this.s)?0:this.s,i=this.l,a=i+(i<.5?i:1-i)*n,r=2*i-a;return new pN(kN(t>=240?t-240:t+120,r,a),kN(t,r,a),kN(t<120?t+240:t-120,r,a),this.opacity)},displayable:function e(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function e(){var t=this.opacity;t=isNaN(t)?1:Math.max(0,Math.min(1,t));return(t===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(t===1?")":", "+t+")")}}));function kN(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var SN=[].slice;var CN={};function EN(e){this._size=e;this._call=this._error=null;this._tasks=[];this._data=[];this._waiting=this._active=this._ended=this._start=0}EN.prototype=NN.prototype={constructor:EN,defer:function e(t){if(typeof t!=="function")throw new Error("invalid callback");if(this._call)throw new Error("defer after await");if(this._error!=null)return this;var n=SN.call(arguments,1);n.push(t);++this._waiting,this._tasks.push(n);AN(this);return this},abort:function e(){if(this._error==null)TN(this,new Error("abort"));return this},await:function e(n){if(typeof n!=="function")throw new Error("invalid callback");if(this._call)throw new Error("multiple await");this._call=function(e,t){n.apply(null,[e].concat(t))};BN(this);return this},awaitAll:function e(t){if(typeof t!=="function")throw new Error("invalid callback");if(this._call)throw new Error("multiple await");this._call=t;BN(this);return this}};function AN(t){if(!t._start){try{RN(t)}catch(e){if(t._tasks[t._ended+t._active-1])TN(t,e);else if(!t._data)throw e}}}function RN(e){while(e._start=e._waiting&&e._active=0){if(i=e._tasks[n]){e._tasks[n]=null;if(i.abort){try{i.abort()}catch(t){}}}}e._active=NaN;BN(e)}function BN(e){if(!e._active&&e._call){var t=e._data;e._data=undefined;e._call(e._error,t)}}function NN(e){if(e==null)e=Infinity;else if(!((e=+e)>=1))throw new Error("invalid concurrency");return new EN(e)}var PN=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function DN(e,t,i){return i={path:t,exports:{},require:function e(t,n){return ON(t,n===undefined||n===null?i.path:n)}},e(i,i.exports),i.exports}function ON(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var zN=DN(function(n){(function(e,t){{n.exports=t()}})((typeof window==="undefined"?"undefined":_typeof2(window))==="object"?window:PN,function(){var a=void 0;function t(e){if(!(this instanceof t))return new t(e);this._LRUCacheState=new n(e)}var e=t.prototype;e.get=function(e){var t=this._LRUCacheState;var n=t.hash[e];if(!n)return;o(t.linkedList,n);return t.data[e]};e.set=function(e,t){var n=this._LRUCacheState;var i=n.hash[e];if(t===a)return this;if(!i){n.hash[e]=new r(e);n.linkedList.length+=1;i=n.hash[e]}o(n.linkedList,i);n.data[e]=t;if(n.linkedList.length>n.capacity)this.remove(n.linkedList.end.key);return this};e.update=function(e,t){if(this.has(e))this.set(e,t(this.get(e)));return this};e.remove=function(e){var t=this._LRUCacheState;var n=t.hash[e];if(!n)return this;if(n===t.linkedList.head)t.linkedList.head=n.p;if(n===t.linkedList.end)t.linkedList.end=n.n;s(n.n,n.p);delete t.hash[e];delete t.data[e];t.linkedList.length-=1;return this};e.removeAll=function(){this._LRUCacheState=new n(this._LRUCacheState.capacity);return this};e.info=function(){var e=this._LRUCacheState;return{capacity:e.capacity,length:e.linkedList.length}};e.keys=function(){var e=[];var t=this._LRUCacheState.linkedList.head;while(t){e.push(t.key);t=t.p}return e};e.has=function(e){return!!this._LRUCacheState.hash[e]};e.staleKey=function(){return this._LRUCacheState.linkedList.end&&this._LRUCacheState.linkedList.end.key};e.popStale=function(){var e=this.staleKey();if(!e)return null;var t=[e,this._LRUCacheState.data[e]];this.remove(e);return t};function n(e){this.capacity=e>0?+e:Number.MAX_SAFE_INTEGER||Number.MAX_VALUE;this.data=Object.create?Object.create(null):{};this.hash=Object.create?Object.create(null):{};this.linkedList=new i}function i(){this.length=0;this.head=null;this.end=null}function r(e){this.key=e;this.p=null;this.n=null}function o(e,t){if(t===e.head)return;if(!e.end){e.end=t}else if(e.end===t){e.end=t.n}s(t.n,t.p);s(t,e.head);e.head=t;e.head.n=null}function s(e,t){if(e===t)return;if(e)e.p=t;if(t)t.n=e}return t})});var FN={"en-GB":{separator:"",suffixes:["y","z","a","f","p","n","µ","m","","k","M","B","T","q","Q","Z","Y"],grouping:[3],delimiters:{thousands:",",decimal:"."},currency:["£",""]},"en-US":{separator:"",suffixes:["y","z","a","f","p","n","µ","m","","k","M","B","T","q","Q","Z","Y"],grouping:[3],delimiters:{thousands:",",decimal:"."},currency:["$",""]},"es-CL":{separator:"",suffixes:["y","z","a","f","p","n","µ","m","","k","M","MM","B","T","Q","Z","Y"],grouping:[3],delimiters:{thousands:".",decimal:","},currency:["$",""]},"es-MX":{separator:"",suffixes:["y","z","a","f","p","n","µ","m","","k","M","MM","B","T","Q","Z","Y"],grouping:[3],delimiters:{thousands:",",decimal:"."},currency:["$",""]},"es-ES":{separator:"",suffixes:["y","z","a","f","p","n","µ","m","","k","mm","b","t","q","Q","Z","Y"],grouping:[3],delimiters:{thousands:".",decimal:","},currency:["€",""]},"et-EE":{separator:" ",suffixes:["y","z","a","f","p","n","µ","m","","tuhat","miljonit","miljardit","triljonit","q","Q","Z","Y"],grouping:[3],delimiters:{thousands:" ",decimal:","},currency:["","eurot"]},"fr-FR":{suffixes:["y","z","a","f","p","n","µ","m","","k","m","b","t","q","Q","Z","Y"],grouping:[3],delimiters:{thousands:" ",decimal:","},currency:["€",""]}};function LN(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){LN=function e(t){return typeof t}}else{LN=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return LN(e)}var IN=function e(t,n){return parseFloat(Math.round(t*Math.pow(10,n))/Math.pow(10,n)).toFixed(n)};function jN(e,t,n){var i=0;if(e){if(e<0)e*=-1;i=1+Math.floor(1e-12+Math.log(e)/Math.LN10);i=Math.max(-24,Math.min(24,Math.floor((i-1)/3)*3))}var a=n[8+i/3];return{number:IN(a.scale(e),t),symbol:a.symbol}}function HN(e,t){var n=Math.pow(10,Math.abs(8-t)*3);return{scale:t>8?function(e){return e/n}:function(e){return e*n},symbol:e}}function VN(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"en-US";var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:undefined;if(isFinite(e))e*=1;else return"N/A";var i=e<0;var a=e.toString().split(".")[0].replace("-","").length,r=LN(t)==="object"?t:FN[t]||FN["en-US"],o=r.suffixes.map(HN);var s=r.delimiters.decimal||".",l=r.separator||"",u=r.delimiters.thousands||",";var h=wi({currency:r.currency||["$",""],decimal:s,grouping:r.grouping||[3],thousands:u});var c;if(n)c=h.format(n)(e);else if(e===0)c="0";else if(a>=3){var f=jN(h.format(".3r")(e),2,o);var d=parseFloat(f.number).toString().replace(".",s);var g=f.symbol;c="".concat(d).concat(l).concat(g)}else if(a===3)c=h.format(",f")(e);else if(e<1&&e>-1)c=h.format(".2g")(e);else c=h.format(".3g")(e);return"".concat(i&&c.charAt(0)!=="-"?"-":"").concat(c).replace(/(\.[0]*[1-9]*)[0]*$/g,"$1").replace(/\.[0]*$/g,"")}function GN(e){if(e.constructor===Date)return e;else if(e.constructor===Number&&"".concat(e).length>5&&e%1===0)return new Date(e);var t="".concat(e);var n=new RegExp(/^\d{1,2}[./-]\d{1,2}[./-](-*\d{1,4})$/g).exec(t),i=new RegExp(/^[A-z]{1,3} [A-z]{1,3} \d{1,2} (-*\d{1,4}) \d{1,2}:\d{1,2}:\d{1,2} [A-z]{1,3}-*\d{1,4} \([A-z]{1,3}\)/g).exec(t);if(n){var a=n[1];if(a.indexOf("-")===0)t=t.replace(a,a.substr(1));var r=new Date(t);r.setFullYear(a);return r}else if(i){var o=i[1];if(o.indexOf("-")===0)t=t.replace(o,o.substr(1));var s=new Date(t);s.setFullYear(o);return s}else if(!t.includes("/")&&!t.includes(" ")&&(!t.includes("-")||!t.indexOf("-"))){var l=new Date("".concat(t,"/01/01"));l.setFullYear(e);return l}else return new Date(t)}var UN={"de-DE":{dateTime:"%A, der %e. %B %Y, %X",date:"%d.%m.%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],shortDays:["So","Mo","Di","Mi","Do","Fr","Sa"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],shortMonths:["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"]},"en-GB":{dateTime:"%a %e %b %X %Y",date:"%d/%m/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},"en-US":{dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]},"es-ES":{dateTime:"%A, %e de %B de %Y, %X",date:"%d/%m/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],shortDays:["dom","lun","mar","mié","jue","vie","sáb"],months:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],shortMonths:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"]},"es-MX":{dateTime:"%x, %X",date:"%d/%m/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"],shortDays:["dom","lun","mar","mié","jue","vie","sáb"],months:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],shortMonths:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"]},"fr-FR":{dateTime:"%A, le %e %B %Y, %X",date:"%d/%m/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],shortDays:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],months:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],shortMonths:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."]},"it-IT":{dateTime:"%A %e %B %Y, %X",date:"%d/%m/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"],shortDays:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],shortMonths:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"]},"pt-BR":{dateTime:"%A, %e de %B de %Y. %X",date:"%d/%m/%Y",time:"%H:%M:%S",periods:["AM","PM"],days:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"],shortDays:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],shortMonths:["Jan","Fev","Mar","Abr","Mai","Jun","Jul","Ago","Set","Out","Nov","Dez"]}};function WN(e,t,n){if(t in e){Object.defineProperty(e,t,{value:n,enumerable:true,configurable:true,writable:true})}else{e[t]=n}return e}function KN(e){return $N(e)||XN(e)||YN(e)||qN()}function qN(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function YN(e,t){if(!e)return;if(typeof e==="string")return ZN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor)n=e.constructor.name;if(n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ZN(e,t)}function XN(e){if(typeof Symbol!=="undefined"&&Symbol.iterator in Object(e))return Array.from(e)}function $N(e){if(Array.isArray(e))return ZN(e)}function ZN(e,t){if(t==null||t>e.length)t=e.length;for(var n=0,i=new Array(t);nt[1]?n.reverse():n}},{key:"_getPosition",value:function e(t){return t<0&&this._d3ScaleNegative?this._d3ScaleNegative(t):this._d3Scale(t)}},{key:"_getRange",value:function e(){var t=[];if(this._d3ScaleNegative)t=this._d3ScaleNegative.range();if(this._d3Scale)t=t.concat(this._d3Scale.range());return t[0]>t[1]?Fe(t).reverse():Fe(t)}},{key:"_getTicks",value:function e(){var t=Qi().domain([10,400]).range([10,50]);var n=[];if(this._d3ScaleNegative){var i=this._d3ScaleNegative.range();var a=i[1]-i[0];n=this._d3ScaleNegative.ticks(Math.floor(a/t(a)))}if(this._d3Scale){var r=this._d3Scale.range();var o=r[1]-r[0];n=n.concat(this._d3Scale.ticks(Math.floor(o/t(o))))}return n}},{key:"_gridPosition",value:function e(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var i=this._position,a=i.height,r=i.x,o=i.y,s=i.opposite,l=this._margin[s],u=["top","left"].includes(this._orient)?this._outerBounds[o]+this._outerBounds[a]-l:this._outerBounds[o]+l,h=n?this._lastScale||this._getPosition.bind(this):this._getPosition.bind(this),c=["top","left"].includes(this._orient)?l:-l,f=this._scale==="band"?this._d3Scale.bandwidth()/2:0,d=function e(t){return h(t.id)+f};t.call(Eh,this._gridConfig).attr("".concat(r,"1"),d).attr("".concat(r,"2"),d).attr("".concat(o,"1"),u).attr("".concat(o,"2"),n?u:u+c)}},{key:"render",value:function e(t){var d=this,n;if(this._select===void 0){this.select(Rl("body").append("svg").attr("width","".concat(this._width,"px")).attr("height","".concat(this._height,"px")).node())}var i=this._timeLocale||UN[this._locale]||UN["en-US"];uo(i).format();var s=so("%a %d"),l=so("%I %p"),u=so(".%L"),h=so("%I:%M"),c=so("%b"),f=so(":%S"),g=so("%b %d"),p=so("%Y");var a=this._position,r=a.width,v=a.height,m=a.x,y=a.y,_=a.horizontal,b=a.opposite,o="d3plus-Axis-clip-".concat(this._uuid),w=["top","left"].includes(this._orient),x=this._padding,k=this._select,C=[x,this["_".concat(r)]-x],S=eh().duration(this._duration);var E=this._shape==="Circle"?this._shapeConfig.r:this._shape==="Rect"?this._shapeConfig[r]:this._shapeConfig.strokeWidth;var A=typeof E!=="function"?function(){return E}:E;var R=this._margin={top:0,right:0,bottom:0,left:0};var M,T,B;var N=this._tickFormat?this._tickFormat:function(e){if(d._scale==="time"){return(fa(e)=1e3?i[d._tickUnit+8]:"";var r=e/Math.pow(10,3*d._tickUnit);var o=VN(r,t,",.".concat(r.toString().length,"r"));return"".concat(o).concat(n).concat(a)}else{return VN(e,d._locale)}};function P(){var a=this;var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this._range;T=e?e.slice():[undefined,undefined];var t=C[0],n=C[1];if(this._range){if(this._range[0]!==undefined)t=this._range[0];if(this._range[this._range.length-1]!==undefined)n=this._range[this._range.length-1]}if(T[0]===undefined||T[0]n)T[1]=n;var i=n-t;if(this._scale==="ordinal"&&this._domain.length>T.length){if(e===this._range){var r=this._domain.length+1;T=Le(r).map(function(e){return T[0]+i*(e/(r-1))}).slice(1,r);T=T.map(function(e){return e-T[0]/2})}else{var o=this._domain.length;var s=T[1]-T[0];T=Le(o).map(function(e){return T[0]+s*(e/(o-1))})}}else if(e===this._range){var l=Qi().domain([10,400]).range([10,50]);var u=this._scale==="time"?this._domain.map(GN):this._domain;var h=ve(u[0],u[1],Math.floor(i/l(i)));B=(this._ticks?this._scale==="time"?this._ticks.map(GN):this._ticks:h).slice();M=(this._labels?this._scale==="time"?this._labels.map(GN):this._labels:h).slice();var c=M.length;if(c){var f=Math.ceil(i/c/2);T=[T[0]+f,T[1]-f]}}var d="scale".concat(this._scale.charAt(0).toUpperCase()).concat(this._scale.slice(1));this._d3Scale=Fo[d]().domain(this._scale==="time"?this._domain.map(GN):this._domain).range(T);if(this._d3Scale.padding)this._d3Scale.padding(this._scalePadding);if(this._d3Scale.paddingInner)this._d3Scale.paddingInner(this._paddingInner);if(this._d3Scale.paddingOuter)this._d3Scale.paddingOuter(this._paddingOuter);this._d3ScaleNegative=null;if(this._scale==="log"){var g=this._d3Scale.domain();if(g[0]===0){g[0]=Math.abs(g[g.length-1])<=1?1e-6:1;if(g[g.length-1]<0)g[0]*=-1}else if(g[g.length-1]===0){g[g.length-1]=Math.abs(g[0])<=1?1e-6:1;if(g[0]<0)g[g.length-1]*=-1}var p=this._d3Scale.range();if(g[0]<0&&g[g.length-1]<0){this._d3ScaleNegative=this._d3Scale.copy().domain(g).range(p);this._d3Scale=null}else if(g[0]>0&&g[g.length-1]>0){this._d3Scale.domain(g).range(p)}else{var v=Gi().domain([1,g[g[1]>0?1:0]]).range([0,1]);var m=v(Math.abs(g[g[1]<0?1:0]));var y=m/(m+1)*(p[1]-p[0]);if(g[0]>0)y=p[1]-p[0]-y;this._d3ScaleNegative=this._d3Scale.copy();(g[0]<0?this._d3Scale:this._d3ScaleNegative).domain([Math.sign(g[1]),g[1]]).range([p[0]+y,p[1]]);(g[0]<0?this._d3ScaleNegative:this._d3Scale).domain([g[0],Math.sign(g[0])]).range([p[0],p[0]+y])}}B=(this._ticks?this._scale==="time"?this._ticks.map(GN):this._ticks:(this._d3Scale?this._d3Scale.ticks:this._d3ScaleNegative.ticks)?this._getTicks():this._domain).slice();M=(this._labels?this._scale==="time"?this._labels.map(GN):this._labels:(this._d3Scale?this._d3Scale.ticks:this._d3ScaleNegative.ticks)?this._getTicks():B).slice();if(this._scale==="log"){var _=M.filter(function(e,t){return!t||t===M.length-1||Math.abs(e).toString().charAt(0)==="1"&&(a._d3Scale?e!==-1:e!==1)});if(_.length>2){M=_}else if(M.length>=10){M=M.filter(function(e){return e%5===0||N(e).substr(-1)==="1"})}if(M.includes(-1)&&M.includes(1)&&M.some(function(e){return e>10||e<10})){M.splice(M.indexOf(-1),1)}}if(this._scale==="time"){B=B.map(Number);M=M.map(Number)}B=B.sort(function(e,t){return a._getPosition(e)-a._getPosition(t)});M=M.sort(function(e,t){return a._getPosition(e)-a._getPosition(t)});if(this._scale==="linear"&&this._tickSuffix==="smallest"){var b=M.filter(function(e){return e>=1e3});if(b.length>0){var w=Math.min.apply(Math,KN(b));var x=1;while(x&&x<7){var k=Math.pow(10,3*x);if(w/k>=1){this._tickUnit=x;x+=1}else{break}}}}var S=[];this._availableTicks=B;B.forEach(function(e,t){var n=A({id:e,tick:true},t);if(a._shape==="Circle")n*=2;var i=a._getPosition(e);if(!S.length||Math.abs(Bx(i,S)-i)>n*2)S.push(i);else S.push(false)});B=B.filter(function(e,t){return S[t]!==false});this._visibleTicks=B}P.bind(this)();function D(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;var n=e.i,i=e.position;if(this._scale==="band"){return this._d3Scale.bandwidth()}else{var a=n-t<0?G.length===1||!this._range?C[0]:(i-G[n+t].position)/2-i:i-(i-G[n-t].position)/2;var r=Math.abs(i-a);var o=n+t>G.length-1?G.length===1||!this._range?C[1]:(i-G[n-t].position)/2-i:i-(i-G[n+t].position)/2;var s=Math.abs(i-o);return je([r,s])*2}}if(this._title){var O=this._titleConfig,z=O.fontFamily,F=O.fontSize,L=O.lineHeight;var I=hA().fontFamily(typeof z==="function"?z():z).fontSize(typeof F==="function"?F():F).lineHeight(typeof L==="function"?L():L).width(T[T.length-1]-T[0]-x*2).height(this["_".concat(v)]-this._tickSize-x*2);var j=I(this._title).lines.length;R[this._orient]=j*I.lineHeight()+x}var H=this._shape==="Circle"?typeof this._shapeConfig.r==="function"?this._shapeConfig.r({tick:true}):this._shapeConfig.r:this._shape==="Rect"?typeof this._shapeConfig[v]==="function"?this._shapeConfig[v]({tick:true}):this._shapeConfig[v]:this._tickSize,V=A({tick:true});if(typeof H==="function")H=me(B.map(H));if(this._shape==="Rect")H/=2;if(typeof V==="function")V=me(B.map(V));if(this._shape!=="Circle")V/=2;var G=M.map(function(e,t){var n=d._shapeConfig.labelConfig.fontFamily(e,t),i=d._shapeConfig.labelConfig.fontSize(e,t),a=d._getPosition(e);var r=d._shapeConfig.lineHeight?d._shapeConfig.lineHeight(e,t):i*1.4;return{d:e,i:t,fF:n,fS:i,lineHeight:r,position:a}});function U(e){var t=e.d,n=e.i,i=e.fF,a=e.fS,r=e.rotate,o=e.space;var s=r?"width":"height",l=r?"height":"width";var u=je([this._maxSize,this._width]);var h=je([this._maxSize,this._height]);var c=hA().fontFamily(i).fontSize(a).lineHeight(this._shapeConfig.lineHeight?this._shapeConfig.lineHeight(t,n):undefined)[l](_?o:u-H-x-this._margin.left-this._margin.right)[s](_?h-H-x-this._margin.top-this._margin.bottom:o);var f=c(N(t));f.lines=f.lines.filter(function(e){return e!==""});f.width=f.lines.length?Math.ceil(me(f.widths))+a/4:0;if(f.width%2)f.width++;f.height=f.lines.length?Math.ceil(f.lines.length*c.lineHeight())+a/4:0;if(f.height%2)f.height++;return f}function W(){var a=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var r=0;a.forEach(function(e){var t=a[e.i-1];var n=e.rotate&&_||!e.rotate&&!_?"width":"height",i=e.rotate&&_||!e.rotate&&!_?"height":"width";if(!t){r=1}else if(t.position+t[i]/2>e.position-e[i]/2){if(r){e.offset=t[n];r=0}else r=1}})}G=G.map(function(e){e.rotate=d._labelRotation;e.space=D.bind(d)(e);var t=U.bind(d)(e);return Object.assign(t,e)});this._rotateLabels=_&&this._labelRotation===undefined?G.some(function(e){return e.truncated}):this._labelRotation;var K=this._labelOffset&&G.some(function(e){return e.truncated});if(this._rotateLabels){G=G.map(function(e){e.rotate=true;var t=U.bind(d)(e);return Object.assign(e,t)})}else if(K){G=G.map(function(e){e.space=D.bind(d)(e,2);var t=U.bind(d)(e);return Object.assign(e,t)});W.bind(this)(G)}var q=[0,0];for(var Y=0;Y<2;Y++){var X=G[Y?G.length-1:0];if(!X)break;var $=X.height,Z=X.position,J=X.rotate,Q=X.width;var ee=Y?C[1]:C[0];var te=(J||!_?$:Q)/2;var ne=Y?Z+te-ee:Z-te-ee;q[Y]=ne}var ie=T[0];var ae=T[T.length-1];var re=[ie-q[0],ae-q[1]];if(this._range){if(this._range[0]!==undefined)re[0]=this._range[0];if(this._range[this._range.length-1]!==undefined)re[1]=this._range[this._range.length-1]}if(re[0]!==ie||re[1]!==ae){P.bind(this)(re);G=M.map(function(e,t){var n=d._shapeConfig.labelConfig.fontFamily(e,t),i=d._shapeConfig.labelConfig.fontSize(e,t),a=d._getPosition(e);var r=d._shapeConfig.lineHeight?d._shapeConfig.lineHeight(e,t):i*1.4;return{d:e,i:t,fF:n,fS:i,lineHeight:r,position:a}});G=G.map(function(e){e.rotate=d._rotateLabels;e.space=D.bind(d)(e,K?2:1);var t=U.bind(d)(e);return Object.assign(t,e)});W.bind(this)(G)}var oe=me(G,function(e){return e.height})||0;this._rotateLabels=_&&this._labelRotation===undefined?G.some(function(e){var t=e.i,n=e.height,i=e.position,a=e.truncated;var r=G[t-1];return a||t&&r.position+r.height/2>i-n/2}):this._labelRotation;var se=this._labelOffset?me(G,function(e){return e.offset||0}):0;G.forEach(function(e){return e.offset=e.offset?se:0});var le=this._shape==="Line"?0:H;var ue=this._outerBounds=(n={},WN(n,v,(me(G,function(e){return Math.ceil(e[e.rotate||!_?"width":"height"]+e.offset)})||0)+(G.length?x:0)),WN(n,r,C[C.length-1]-C[0]),WN(n,m,C[0]),n);ue[v]=me([this._minSize,ue[v]]);R[this._orient]+=H;R[b]=this._gridSize!==undefined?me([this._gridSize,le]):this["_".concat(v)]-R[this._orient]-ue[v]-x;ue[v]+=R[b]+R[this._orient];ue[y]=this._align==="start"?this._padding:this._align==="end"?this["_".concat(v)]-ue[v]-this._padding:this["_".concat(v)]/2-ue[v]/2;var he=Ox("g#d3plus-Axis-".concat(this._uuid),{parent:k});this._group=he;var ce=Ox("g.grid",{parent:he}).selectAll("line").data((this._gridSize!==0?this._grid||this._scale==="log"&&!this._gridLog?M:B:[]).map(function(e){return{id:e}}),function(e){return e.id});ce.exit().transition(S).attr("opacity",0).call(this._gridPosition.bind(this)).remove();ce.enter().append("line").attr("opacity",0).attr("clip-path","url(#".concat(o,")")).call(this._gridPosition.bind(this),true).merge(ce).transition(S).attr("opacity",1).call(this._gridPosition.bind(this));var fe=M.filter(function(e,t){return G[t].lines.length&&!B.includes(e)});var de=G.some(function(e){return e.rotate});var ge=B.concat(fe).map(function(t){var e;var n=G.find(function(e){return e.d===t});var i=d._getPosition(t);var a=n?n.space:0;var r=n?n.lines.length:1;var o=n?n.lineHeight:1;var s=n&&d._labelOffset?n.offset:0;var l=_?a:ue.width-R[d._position.opposite]-H-R[d._orient]+x;var u=R[b],h=(H+s)*(w?-1:1),c=w?ue[y]+ue[v]-u:ue[y]+u;var f=(e={id:t,labelBounds:de&&n?{x:-n.width/2+n.fS/4,y:d._orient==="bottom"?h+x+(n.width-o*r)/2:h-x*2-(n.width+o*r)/2,width:n.width,height:n.height}:{x:_?-a/2:d._orient==="left"?-l-x+h:h+x,y:_?d._orient==="bottom"?h+x:h-x-oe:-a/2,width:_?a:l,height:_?oe:a},rotate:n?n.rotate:false,size:M.includes(t)?h:0,text:M.includes(t)?N(t):false,tick:B.includes(t)},WN(e,m,i+(d._scale==="band"?d._d3Scale.bandwidth()/2:0)),WN(e,y,c),e);return f});if(this._shape==="Line"){ge=ge.concat(ge.map(function(e){var t=Object.assign({},e);t[y]+=e.size;return t}))}(new FT[this._shape]).data(ge).duration(this._duration).labelConfig({ellipsis:function e(t){return t&&t.length?"".concat(t,"..."):""},rotate:function e(t){return t.rotate?-90:0}}).select(Ox("g.ticks",{parent:he}).node()).config(this._shapeConfig).render();var pe=he.selectAll("line.bar").data([null]);pe.enter().append("line").attr("class","bar").attr("opacity",0).call(this._barPosition.bind(this)).merge(pe).transition(S).attr("opacity",1).call(this._barPosition.bind(this));this._titleClass.data(this._title?[{text:this._title}]:[]).duration(this._duration).height(R[this._orient]).rotate(this._orient==="left"?-90:this._orient==="right"?90:0).select(Ox("g.d3plus-Axis-title",{parent:he}).node()).text(function(e){return e.text}).verticalAlign("middle").width(T[T.length-1]-T[0]).x(_?T[0]:this._orient==="left"?ue.x+R.left/2-(T[T.length-1]-T[0])/2:ue.x+ue.width-R.right/2-(T[T.length-1]-T[0])/2).y(_?this._orient==="bottom"?ue.y+ue.height-R.bottom:ue.y:T[0]+(T[T.length-1]-T[0])/2-R[this._orient]/2).config(this._titleConfig).render();this._lastScale=this._getPosition.bind(this);if(t)setTimeout(t,this._duration+100);return this}},{key:"align",value:function e(t){return arguments.length?(this._align=t,this):this._align}},{key:"barConfig",value:function e(t){return arguments.length?(this._barConfig=Object.assign(this._barConfig,t),this):this._barConfig}},{key:"domain",value:function e(t){return arguments.length?(this._domain=t,this):this._domain}},{key:"duration",value:function e(t){return arguments.length?(this._duration=t,this):this._duration}},{key:"grid",value:function e(t){return arguments.length?(this._grid=t,this):this._grid}},{key:"gridConfig",value:function e(t){return arguments.length?(this._gridConfig=Object.assign(this._gridConfig,t),this):this._gridConfig}},{key:"gridLog",value:function e(t){return arguments.length?(this._gridLog=t,this):this._gridLog}},{key:"gridSize",value:function e(t){return arguments.length?(this._gridSize=t,this):this._gridSize}},{key:"height",value:function e(t){return arguments.length?(this._height=t,this):this._height}},{key:"labels",value:function e(t){return arguments.length?(this._labels=t,this):this._labels}},{key:"labelOffset",value:function e(t){return arguments.length?(this._labelOffset=t,this):this._labelOffset}},{key:"labelRotation",value:function e(t){return arguments.length?(this._labelRotation=t,this):this._labelRotation}},{key:"maxSize",value:function e(t){return arguments.length?(this._maxSize=t,this):this._maxSize}},{key:"minSize",value:function e(t){return arguments.length?(this._minSize=t,this):this._minSize}},{key:"orient",value:function e(t){if(arguments.length){var n=["top","bottom"].includes(t),i={top:"bottom",right:"left",bottom:"top",left:"right"};this._position={horizontal:n,width:n?"width":"height",height:n?"height":"width",x:n?"x":"y",y:n?"y":"x",opposite:i[t]};return this._orient=t,this}return this._orient}},{key:"outerBounds",value:function e(){return this._outerBounds}},{key:"padding",value:function e(t){return arguments.length?(this._padding=t,this):this._padding}},{key:"paddingInner",value:function e(t){return arguments.length?(this._paddingInner=t,this):this._paddingInner}},{key:"paddingOuter",value:function e(t){return arguments.length?(this._paddingOuter=t,this):this._paddingOuter}},{key:"range",value:function e(t){return arguments.length?(this._range=t,this):this._range}},{key:"scale",value:function e(t){return arguments.length?(this._scale=t,this):this._scale}},{key:"scalePadding",value:function e(t){return arguments.length?(this._scalePadding=t,this):this._scalePadding}},{key:"select",value:function e(t){return arguments.length?(this._select=Rl(t),this):this._select}},{key:"shape",value:function e(t){return arguments.length?(this._shape=t,this):this._shape}},{key:"shapeConfig",value:function e(t){return arguments.length?(this._shapeConfig=Ch(this._shapeConfig,t),this):this._shapeConfig}},{key:"tickFormat",value:function e(t){return arguments.length?(this._tickFormat=t,this):this._tickFormat}},{key:"ticks",value:function e(t){return arguments.length?(this._ticks=t,this):this._ticks}},{key:"tickSize",value:function e(t){return arguments.length?(this._tickSize=t,this):this._tickSize}},{key:"tickSpecifier",value:function e(t){return arguments.length?(this._tickSpecifier=t,this):this._tickSpecifier}},{key:"tickSuffix",value:function e(t){return arguments.length?(this._tickSuffix=t,this):this._tickSuffix}},{key:"timeLocale",value:function e(t){return arguments.length?(this._timeLocale=t,this):this._timeLocale}},{key:"title",value:function e(t){return arguments.length?(this._title=t,this):this._title}},{key:"titleConfig",value:function e(t){return arguments.length?(this._titleConfig=Object.assign(this._titleConfig,t),this):this._titleConfig}},{key:"width",value:function e(t){return arguments.length?(this._width=t,this):this._width}}]);return i}(Tx);function hP(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){hP=function e(t){return typeof t}}else{hP=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return hP(e)}function cP(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function fP(e,t){for(var n=0;n0){var r=(n[t]-n[e-1])/(t-e+1);a=i[t]-i[e-1]-(t-e+1)*r*r}else a=i[t]-n[t]*n[t]/(t+1);if(a<0)return 0;return a}function $P(e,t,n,i,a,r,o){if(e>t)return;var s=Math.floor((e+t)/2);i[n][s]=i[n-1][s-1];a[n][s]=s;var l=n;if(e>n)l=Math.max(l,a[n][e-1]||0);l=Math.max(l,a[n-1][s]||0);var u=s-1;if(t=l;--h){var c=XP(h,s,r,o);if(c+i[n-1][l-1]>=i[n][s])break;var f=XP(l,s,r,o);var d=f+i[n-1][l-1];if(de.length){throw new Error("Cannot generate more classes than there are data values")}var n=KP(e);var i=qP(n);if(i===1){return[n]}var a=YP(t,n.length),r=YP(t,n.length);ZP(n,r,a);var o=a[0]?a[0].length-1:0;var s=[];for(var l=a.length-1;l>=0;l--){var u=a[l][o];s[l]=n.slice(u,o+1);if(l>0)o=u-1}return s}function QP(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){QP=function e(t){return typeof t}}else{QP=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return QP(e)}function eD(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function tD(e,t){for(var n=0;nl){var u=1,h=[];var d=me(this._lineData.map(function(e){return e.words.length}));this._wrapLines=function(){var t=this;u++;if(u>d)return;var o=u===1?this._lineData.slice():this._lineData.filter(function(e){return e.width+e.shapeWidth+t._padding*(e.width?2:1)>l&&e.words.length>=u}).sort(function(e,t){return t.sentence.length-e.sentence.length});if(o.length&&f>o[0].height*u){var s=false;var e=function e(t){var n=o[t];var i=n.og.height*u,a=n.og.width*(1.5*(1/u));var r=hA().fontFamily(n.f).fontSize(n.s).lineHeight(n.lh).width(a).height(i)(n.sentence);if(!r.truncated){n.width=Math.ceil(me(r.lines.map(function(e){return DE(e,{"font-family":n.f,"font-size":n.s})})))+n.s;n.height=r.lines.length*(n.lh+1)}else{s=true;return"break"}};for(var n=0;nf){h=[];break}if(a>l){h=[];this._wrapLines();break}else if(t+af){o=O(this._lineData.map(function(e){return e.shapeWidth+c._padding}))-this._padding;for(var s=0;s=1||u<=-1?Math.round(u).toString().length-1:u.toString().split(".")[1].replace(/([1-9])[1-9].*$/,"$1").length*-1;var c=Math.pow(10,h);return o===t&&e===1?"".concat(a(je([t+c,i.find(function(e){return e>t&&et&&ethis._midpoint;var f=h&&c;var d=this._buckets instanceof Array?this._buckets.length:this._buckets;var g=this._color,p,v;if(g&&!(g instanceof Array)){g=Le(0,d,1).map(function(e){return lS(g,(e+1)/d)}).reverse()}if(this._scale==="jenks"){var m=this._data.map(this._value).filter(function(e){return e!==null&&typeof e==="number"});var y=je([g?g.length:d,m.length]);var _=[];if(this._buckets instanceof Array){v=this._buckets}else{if(f&&this._centered){var b=Math.floor(y/2);var w=y%2;var x=m.filter(function(e){return e=a._midpoint});var C=ze(S);var E=k>C?1:0;var A=C>k?1:0;var R=JP(x,b+w*E);var M=JP(S,b+w*A);_=R.concat(M)}else{_=JP(m,y)}v=_.map(function(e){return e[0]})}var T=new Set(v);if(v.length!==T.size){p=Array.from(T)}if(!g){if(f){g=[this._colorMin,this._colorMid,this._colorMax];var B=v.slice(0,y).filter(function(e,t){return ea._midpoint});var P=v.slice(0,y).filter(function(e,t){return e>a._midpoint&&v[t+1]>a._midpoint});var D=B.map(function(e,t){return!t?g[0]:lS(g[0],t/B.length)});var O=N.map(function(){return g[1]});var z=P.map(function(e,t){return t===P.length-1?g[2]:lS(g[2],1-(t+1)/P.length)});g=D.concat(O).concat(z)}else{g=Le(0,d,1).map(function(e){return lS(a._colorMax,e/d)}).reverse()}}if(m.length<=y){g=g.slice(y-m.length)}g=[g[0]].concat(g);this._colorScale=na().domain(v).range(g)}else{var F=this._buckets instanceof Array?this._buckets:undefined;if(f&&!g){var L=Math.floor(d/2);var I=Le(0,L,1).map(function(e){return!e?a._colorMin:lS(a._colorMin,e/L)});var j=(d%2?[0]:[]).map(function(){return a._colorMid});var H=Le(0,L,1).map(function(e){return!e?a._colorMax:lS(a._colorMax,e/L)}).reverse();g=I.concat(j).concat(H);if(!F){var V=(g.length-1)/2;F=[u[0],this._midpoint,u[1]];F=Le(u[0],this._midpoint,-(u[0]-this._midpoint)/V).concat(Le(this._midpoint,u[1],(u[1]-this._midpoint)/V)).concat([u[1]])}}else{if(!g){if(this._scale==="buckets"||this._scale==="quantile"){g=Le(0,d,1).map(function(e){return lS(h?a._colorMin:a._colorMax,e/d)});if(c)g=g.reverse()}else{g=h?[this._colorMin,lS(this._colorMin,.8)]:[lS(this._colorMax,.8),this._colorMax]}}if(!F){if(this._scale==="quantile"){var G=1/(g.length-1);F=Le(0,1+G/2,G).map(function(e){return Ie(l,e)})}else if(f&&this._color&&this._centered){var U=(this._midpoint-u[0])/Math.floor(g.length/2);var W=(u[1]-this._midpoint)/Math.floor(g.length/2);var K=Le(u[0],this._midpoint,U);var q=Le(this._midpoint,u[1]+W/2,W);F=K.concat(q)}else{var Y=(u[1]-u[0])/(g.length-1);F=Le(u[0],u[1]+Y/2,Y)}}}if(this._scale==="buckets"||this._scale==="quantile"){v=F;g=[g[0]].concat(g)}else if(this._scale==="log"){var X=F.filter(function(e){return e<0});if(X.length){var $=X[0];var Z=X.map(function(e){return-Math.pow(Math.abs($),e/$)});X.forEach(function(e,t){F[F.indexOf(e)]=Z[t]})}var J=F.filter(function(e){return e>0});if(J.length){var Q=J[J.length-1];var ee=J.map(function(e){return Math.pow(Q,e/Q)});J.forEach(function(e,t){F[F.indexOf(e)]=ee[t]})}if(F.includes(0))F[F.indexOf(0)]=1}this._colorScale=(this._scale==="buckets"||this._scale==="quantile"?na:Bi)().domain(F).range(g)}if(this._colorScale.clamp)this._colorScale.clamp(true);var te=this._bucketAxis||!["buckets","jenks","quantile"].includes(this._scale);var ne=eh().duration(this._duration);var ie={enter:{opacity:0},exit:{opacity:0},parent:this._group,transition:ne,update:{opacity:1}};var ae=Ox("g.d3plus-ColorScale-labels",Object.assign({condition:te},ie));var re=Ox("g.d3plus-ColorScale-Rect",Object.assign({condition:te},ie));var oe=Ox("g.d3plus-ColorScale-legend",Object.assign({condition:!te},ie));if(te){var se;var le={x:0,y:0};var ue=u.slice();if(this._bucketAxis){var he=ue[ue.length-1];var ce=ue[ue.length-2];var fe=he?he/10:ce/10;var de=fe>=1||fe<=-1?Math.round(fe).toString().length-1:fe.toString().split(".")[1].replace(/([1-9])[1-9].*$/,"$1").length*-1;var ge=Math.pow(10,de);ue[ue.length-1]=he+ge}var pe=Ch({domain:ue,duration:this._duration,height:this._height,labels:p||v,orient:this._orient,padding:this._padding,scale:this._scale==="log"?"log":"linear",ticks:v,width:this._width},this._axisConfig);var ve=Ch({height:this["_".concat(i)]/2,width:this["_".concat(r)]/2},this._labelConfig||this._axisConfig.titleConfig);this._labelClass.config(ve);var me=[];if(n&&this._labelMin){var ye={"font-family":this._labelClass.fontFamily()(this._labelMin),"font-size":this._labelClass.fontSize()(this._labelMin),"font-weight":this._labelClass.fontWeight()(this._labelMin)};if(ye["font-family"]instanceof Array)ye["font-family"]=ye["font-family"][0];var _e=DE(this._labelMin,ye);if(_e&&_e=0){return 1}}return 0}();function jD(e){var t=false;return function(){if(t){return}t=true;window.Promise.resolve().then(function(){t=false;e()})}}function HD(e){var t=false;return function(){if(!t){t=true;setTimeout(function(){t=false;e()},ID)}}}var VD=LD&&window.Promise;var GD=VD?jD:HD;function UD(e){var t={};return e&&t.toString.call(e)==="[object Function]"}function WD(e,t){if(e.nodeType!==1){return[]}var n=e.ownerDocument.defaultView;var i=n.getComputedStyle(e,null);return t?i[t]:i}function KD(e){if(e.nodeName==="HTML"){return e}return e.parentNode||e.host}function qD(e){if(!e){return document.body}switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=WD(e),n=t.overflow,i=t.overflowX,a=t.overflowY;if(/(auto|scroll|overlay)/.test(n+a+i)){return e}return qD(KD(e))}function YD(e){return e&&e.referenceNode?e.referenceNode:e}var XD=LD&&!!(window.MSInputMethodContext&&document.documentMode);var $D=LD&&/MSIE 10/.test(navigator.userAgent);function ZD(e){if(e===11){return XD}if(e===10){return $D}return XD||$D}function JD(e){if(!e){return document.documentElement}var t=ZD(10)?document.body:null;var n=e.offsetParent||null;while(n===t&&e.nextElementSibling){n=(e=e.nextElementSibling).offsetParent}var i=n&&n.nodeName;if(!i||i==="BODY"||i==="HTML"){return e?e.ownerDocument.documentElement:document.documentElement}if(["TH","TD","TABLE"].indexOf(n.nodeName)!==-1&&WD(n,"position")==="static"){return JD(n)}return n}function QD(e){var t=e.nodeName;if(t==="BODY"){return false}return t==="HTML"||JD(e.firstElementChild)===e}function eO(e){if(e.parentNode!==null){return eO(e.parentNode)}return e}function tO(e,t){if(!e||!e.nodeType||!t||!t.nodeType){return document.documentElement}var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING;var i=n?e:t;var a=n?t:e;var r=document.createRange();r.setStart(i,0);r.setEnd(a,0);var o=r.commonAncestorContainer;if(e!==o&&t!==o||i.contains(a)){if(QD(o)){return o}return JD(o)}var s=eO(e);if(s.host){return tO(s.host,t)}else{return tO(e,eO(t).host)}}function nO(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"top";var n=t==="top"?"scrollTop":"scrollLeft";var i=e.nodeName;if(i==="BODY"||i==="HTML"){var a=e.ownerDocument.documentElement;var r=e.ownerDocument.scrollingElement||a;return r[n]}return e[n]}function iO(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var i=nO(t,"top");var a=nO(t,"left");var r=n?-1:1;e.top+=i*r;e.bottom+=i*r;e.left+=a*r;e.right+=a*r;return e}function aO(e,t){var n=t==="x"?"Left":"Top";var i=n==="Left"?"Right":"Bottom";return parseFloat(e["border"+n+"Width"])+parseFloat(e["border"+i+"Width"])}function rO(e,t,n,i){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],ZD(10)?parseInt(n["offset"+e])+parseInt(i["margin"+(e==="Height"?"Top":"Left")])+parseInt(i["margin"+(e==="Height"?"Bottom":"Right")]):0)}function oO(e){var t=e.body;var n=e.documentElement;var i=ZD(10)&&getComputedStyle(n);return{height:rO("Height",t,n,i),width:rO("Width",t,n,i)}}var sO=function e(t,n){if(!(t instanceof n)){throw new TypeError("Cannot call a class as a function")}};var lO=function(){function i(e,t){for(var n=0;n2&&arguments[2]!==undefined?arguments[2]:false;var i=ZD(10);var a=t.nodeName==="HTML";var r=fO(e);var o=fO(t);var s=qD(e);var l=WD(t);var u=parseFloat(l.borderTopWidth);var h=parseFloat(l.borderLeftWidth);if(n&&a){o.top=Math.max(o.top,0);o.left=Math.max(o.left,0)}var c=cO({top:r.top-o.top-u,left:r.left-o.left-h,width:r.width,height:r.height});c.marginTop=0;c.marginLeft=0;if(!i&&a){var f=parseFloat(l.marginTop);var d=parseFloat(l.marginLeft);c.top-=u-f;c.bottom-=u-f;c.left-=h-d;c.right-=h-d;c.marginTop=f;c.marginLeft=d}if(i&&!n?t.contains(s):t===s&&s.nodeName!=="BODY"){c=iO(c,t)}return c}function gO(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var n=e.ownerDocument.documentElement;var i=dO(e,n);var a=Math.max(n.clientWidth,window.innerWidth||0);var r=Math.max(n.clientHeight,window.innerHeight||0);var o=!t?nO(n):0;var s=!t?nO(n,"left"):0;var l={top:o-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:a,height:r};return cO(l)}function pO(e){var t=e.nodeName;if(t==="BODY"||t==="HTML"){return false}if(WD(e,"position")==="fixed"){return true}var n=KD(e);if(!n){return false}return pO(n)}function vO(e){if(!e||!e.parentElement||ZD()){return document.documentElement}var t=e.parentElement;while(t&&WD(t,"transform")==="none"){t=t.parentElement}return t||document.documentElement}function mO(e,t,n,i){var a=arguments.length>4&&arguments[4]!==undefined?arguments[4]:false;var r={top:0,left:0};var o=a?vO(e):tO(e,YD(t));if(i==="viewport"){r=gO(o,a)}else{var s=void 0;if(i==="scrollParent"){s=qD(KD(t));if(s.nodeName==="BODY"){s=e.ownerDocument.documentElement}}else if(i==="window"){s=e.ownerDocument.documentElement}else{s=i}var l=dO(s,o,a);if(s.nodeName==="HTML"&&!pO(o)){var u=oO(e.ownerDocument),h=u.height,c=u.width;r.top+=l.top-l.marginTop;r.bottom=h+l.top;r.left+=l.left-l.marginLeft;r.right=c+l.left}else{r=l}}n=n||0;var f=typeof n==="number";r.left+=f?n:n.left||0;r.top+=f?n:n.top||0;r.right-=f?n:n.right||0;r.bottom-=f?n:n.bottom||0;return r}function yO(e){var t=e.width,n=e.height;return t*n}function _O(e,t,i,n,a){var r=arguments.length>5&&arguments[5]!==undefined?arguments[5]:0;if(e.indexOf("auto")===-1){return e}var o=mO(i,n,r,a);var s={top:{width:o.width,height:t.top-o.top},right:{width:o.right-t.right,height:o.height},bottom:{width:o.width,height:o.bottom-t.bottom},left:{width:t.left-o.left,height:o.height}};var l=Object.keys(s).map(function(e){return hO({key:e},s[e],{area:yO(s[e])})}).sort(function(e,t){return t.area-e.area});var u=l.filter(function(e){var t=e.width,n=e.height;return t>=i.clientWidth&&n>=i.clientHeight});var h=u.length>0?u[0].key:l[0].key;var c=e.split("-")[1];return h+(c?"-"+c:"")}function bO(e,t,n){var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;var a=i?vO(t):tO(t,YD(n));return dO(n,a,i)}function wO(e){var t=e.ownerDocument.defaultView;var n=t.getComputedStyle(e);var i=parseFloat(n.marginTop||0)+parseFloat(n.marginBottom||0);var a=parseFloat(n.marginLeft||0)+parseFloat(n.marginRight||0);var r={width:e.offsetWidth+a,height:e.offsetHeight+i};return r}function xO(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function kO(e,t,n){n=n.split("-")[0];var i=wO(e);var a={width:i.width,height:i.height};var r=["right","left"].indexOf(n)!==-1;var o=r?"top":"left";var s=r?"left":"top";var l=r?"height":"width";var u=!r?"height":"width";a[o]=t[o]+t[l]/2-i[l]/2;if(n===s){a[s]=t[s]-i[u]}else{a[s]=t[xO(s)]}return a}function SO(e,t){if(Array.prototype.find){return e.find(t)}return e.filter(t)[0]}function CO(e,t,n){if(Array.prototype.findIndex){return e.findIndex(function(e){return e[t]===n})}var i=SO(e,function(e){return e[t]===n});return e.indexOf(i)}function EO(e,n,t){var i=t===undefined?e:e.slice(0,CO(e,"name",t));i.forEach(function(e){if(e["function"]){console.warn("`modifier.function` is deprecated, use `modifier.fn`!")}var t=e["function"]||e.fn;if(e.enabled&&UD(t)){n.offsets.popper=cO(n.offsets.popper);n.offsets.reference=cO(n.offsets.reference);n=t(n,e)}});return n}function AO(){if(this.state.isDestroyed){return}var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:false,offsets:{}};e.offsets.reference=bO(this.state,this.popper,this.reference,this.options.positionFixed);e.placement=_O(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding);e.originalPlacement=e.placement;e.positionFixed=this.options.positionFixed;e.offsets.popper=kO(this.popper,e.offsets.reference,e.placement);e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute";e=EO(this.modifiers,e);if(!this.state.isCreated){this.state.isCreated=true;this.options.onCreate(e)}else{this.options.onUpdate(e)}}function RO(e,i){return e.some(function(e){var t=e.name,n=e.enabled;return n&&t===i})}function MO(e){var t=[false,"ms","Webkit","Moz","O"];var n=e.charAt(0).toUpperCase()+e.slice(1);for(var i=0;io[d]){e.offsets.popper[c]+=s[c]+g-o[d]}e.offsets.popper=cO(e.offsets.popper);var p=s[c]+s[u]/2-g/2;var v=WD(e.instance.popper);var m=parseFloat(v["margin"+h]);var y=parseFloat(v["border"+h+"Width"]);var _=p-e.offsets.popper[c]-m-y;_=Math.max(Math.min(o[u]-g,_),0);e.arrowElement=i;e.offsets.arrow=(n={},uO(n,c,Math.round(_)),uO(n,f,""),n);return e}function qO(e){if(e==="end"){return"start"}else if(e==="start"){return"end"}return e}var YO=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"];var XO=YO.slice(3);function $O(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var n=XO.indexOf(e);var i=XO.slice(n+1).concat(XO.slice(0,n));return t?i.reverse():i}var ZO={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function JO(p,v){if(RO(p.instance.modifiers,"inner")){return p}if(p.flipped&&p.placement===p.originalPlacement){return p}var m=mO(p.instance.popper,p.instance.reference,v.padding,v.boundariesElement,p.positionFixed);var y=p.placement.split("-")[0];var _=xO(y);var b=p.placement.split("-")[1]||"";var w=[];switch(v.behavior){case ZO.FLIP:w=[y,_];break;case ZO.CLOCKWISE:w=$O(y);break;case ZO.COUNTERCLOCKWISE:w=$O(y,true);break;default:w=v.behavior}w.forEach(function(e,t){if(y!==e||w.length===t+1){return p}y=p.placement.split("-")[0];_=xO(y);var n=p.offsets.popper;var i=p.offsets.reference;var a=Math.floor;var r=y==="left"&&a(n.right)>a(i.left)||y==="right"&&a(n.left)a(i.top)||y==="bottom"&&a(n.top)a(m.right);var l=a(n.top)a(m.bottom);var h=y==="left"&&o||y==="right"&&s||y==="top"&&l||y==="bottom"&&u;var c=["top","bottom"].indexOf(y)!==-1;var f=!!v.flipVariations&&(c&&b==="start"&&o||c&&b==="end"&&s||!c&&b==="start"&&l||!c&&b==="end"&&u);var d=!!v.flipVariationsByContent&&(c&&b==="start"&&s||c&&b==="end"&&o||!c&&b==="start"&&u||!c&&b==="end"&&l);var g=f||d;if(r||h||g){p.flipped=true;if(r||h){y=w[t+1]}if(g){b=qO(b)}p.placement=y+(b?"-"+b:"");p.offsets.popper=hO({},p.offsets.popper,kO(p.instance.popper,p.offsets.reference,p.placement));p=EO(p.instance.modifiers,p,"flip")}});return p}function QO(e){var t=e.offsets,n=t.popper,i=t.reference;var a=e.placement.split("-")[0];var r=Math.floor;var o=["top","bottom"].indexOf(a)!==-1;var s=o?"right":"bottom";var l=o?"left":"top";var u=o?"width":"height";if(n[s]r(i[s])){e.offsets.popper[l]=r(i[s])}return e}function ez(e,t,n,i){var a=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/);var r=+a[1];var o=a[2];if(!r){return e}if(o.indexOf("%")===0){var s=void 0;switch(o){case"%p":s=n;break;case"%":case"%r":default:s=i}var l=cO(s);return l[t]/100*r}else if(o==="vh"||o==="vw"){var u=void 0;if(o==="vh"){u=Math.max(document.documentElement.clientHeight,window.innerHeight||0)}else{u=Math.max(document.documentElement.clientWidth,window.innerWidth||0)}return u/100*r}else{return r}}function tz(e,a,r,t){var o=[0,0];var s=["right","left"].indexOf(t)!==-1;var n=e.split(/(\+|\-)/).map(function(e){return e.trim()});var i=n.indexOf(SO(n,function(e){return e.search(/,|\s/)!==-1}));if(n[i]&&n[i].indexOf(",")===-1){console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.")}var l=/\s*,\s*|\s+/;var u=i!==-1?[n.slice(0,i).concat([n[i].split(l)[0]]),[n[i].split(l)[1]].concat(n.slice(i+1))]:[n];u=u.map(function(e,t){var n=(t===1?!s:s)?"height":"width";var i=false;return e.reduce(function(e,t){if(e[e.length-1]===""&&["+","-"].indexOf(t)!==-1){e[e.length-1]=t;i=true;return e}else if(i){e[e.length-1]+=t;i=false;return e}else{return e.concat(t)}},[]).map(function(e){return ez(e,n,a,r)})});u.forEach(function(n,i){n.forEach(function(e,t){if(FO(e)){o[i]+=e*(n[t-1]==="-"?-1:1)}})});return o}function nz(e,t){var n=t.offset;var i=e.placement,a=e.offsets,r=a.popper,o=a.reference;var s=i.split("-")[0];var l=void 0;if(FO(+n)){l=[+n,0]}else{l=tz(n,r,o,s)}if(s==="left"){r.top+=l[0];r.left-=l[1]}else if(s==="right"){r.top+=l[0];r.left+=l[1]}else if(s==="top"){r.left+=l[0];r.top-=l[1]}else if(s==="bottom"){r.left+=l[0];r.top+=l[1]}e.popper=r;return e}function iz(e,a){var t=a.boundariesElement||JD(e.instance.popper);if(e.instance.reference===t){t=JD(t)}var n=MO("transform");var i=e.instance.popper.style;var r=i.top,o=i.left,s=i[n];i.top="";i.left="";i[n]="";var l=mO(e.instance.popper,e.instance.reference,a.padding,t,e.positionFixed);i.top=r;i.left=o;i[n]=s;a.boundaries=l;var u=a.priority;var h=e.offsets.popper;var c={primary:function e(t){var n=h[t];if(h[t]l[t]&&!a.escapeWithReference){i=Math.min(h[n],l[t]-(t==="right"?h.width:h.height))}return uO({},n,i)}};u.forEach(function(e){var t=["left","top"].indexOf(e)!==-1?"primary":"secondary";h=hO({},h,c[t](e))});e.offsets.popper=h;return e}function az(e){var t=e.placement;var n=t.split("-")[0];var i=t.split("-")[1];if(i){var a=e.offsets,r=a.reference,o=a.popper;var s=["bottom","top"].indexOf(n)!==-1;var l=s?"left":"top";var u=s?"width":"height";var h={start:uO({},l,r[l]),end:uO({},l,r[l]+r[u]-o[u])};e.offsets.popper=hO({},o,h[i])}return e}function rz(e){if(!WO(e.instance.modifiers,"hide","preventOverflow")){return e}var t=e.offsets.reference;var n=SO(e.instance.modifiers,function(e){return e.name==="preventOverflow"}).boundaries;if(t.bottomn.right||t.top>n.bottom||t.right2&&arguments[2]!==undefined?arguments[2]:{};sO(this,r);this.scheduleUpdate=function(){return requestAnimationFrame(n.update)};this.update=GD(this.update.bind(this));this.options=hO({},r.Defaults,i);this.state={isDestroyed:false,isCreated:false,scrollParents:[]};this.reference=e&&e.jquery?e[0]:e;this.popper=t&&t.jquery?t[0]:t;this.options.modifiers={};Object.keys(hO({},r.Defaults.modifiers,i.modifiers)).forEach(function(e){n.options.modifiers[e]=hO({},r.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})});this.modifiers=Object.keys(this.options.modifiers).map(function(e){return hO({name:e},n.options.modifiers[e])}).sort(function(e,t){return e.order-t.order});this.modifiers.forEach(function(e){if(e.enabled&&UD(e.onLoad)){e.onLoad(n.reference,n.popper,n.options,e,n.state)}});this.update();var a=this.options.eventsEnabled;if(a){this.enableEventListeners()}this.state.eventsEnabled=a}lO(r,[{key:"update",value:function e(){return AO.call(this)}},{key:"destroy",value:function e(){return TO.call(this)}},{key:"enableEventListeners",value:function e(){return DO.call(this)}},{key:"disableEventListeners",value:function e(){return zO.call(this)}}]);return r}();uz.Utils=(typeof window!=="undefined"?window:global).PopperUtils;uz.placements=YO;uz.Defaults=lz;function hz(e){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){hz=function e(t){return typeof t}}else{hz=function e(t){return t&&typeof Symbol==="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t}}return hz(e)}function cz(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}function fz(e,t){for(var n=0;n0&&arguments[0]!==undefined?arguments[0]:{},n=t.duration,i=n===void 0?600:n,a=t.callback;this.mask.call(this.exit.bind(this),i);this.elem.call(this.exit.bind(this),i);if(a)setTimeout(a,i+100);this._isVisible=false;return this}},{key:"render",value:function e(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},n=t.callback,i=t.container,a=i===void 0?"body":i,r=t.duration,o=r===void 0?600:r,s=t.html,l=s===void 0?"Please Wait":s,u=t.mask,h=u===void 0?"rgba(0, 0, 0, 0.05)":u,c=t.style,f=c===void 0?{}:c;var d=Rl(a);this.mask=d.selectAll("div.d3plus-Mask").data(h?[h]:[]);this.mask=this.mask.enter().append("div").attr("class","d3plus-Mask").style("opacity",1).merge(this.mask);this.mask.exit().call(this.exit.bind(this),o);jx(this.mask,{"background-color":String,bottom:"0px",left:"0px",position:"absolute",right:"0px",top:"0px"});this.elem=d.selectAll("div.d3plus-Message").data([l]);this.elem=this.elem.enter().append("div").attr("class","d3plus-Message").style("opacity",1).merge(this.elem).html(String);jx(this.elem,f);if(n)setTimeout(n,100);this._isVisible=true;return this}}]);return e}();function Ez(){var e=this._history.length;var t=Ox("g.d3plus-viz-back",{parent:this._select,transition:this._transition,update:{transform:"translate(".concat(this._margin.left,", ").concat(this._margin.top,")")}}).node();this._backClass.data(e?[{text:"← ".concat(this._translate("Back")),x:0,y:0}]:[]).select(t).config(this._backConfig).render();this._margin.top+=e?this._backClass.fontSize()()+this._backClass.padding()()*2:0}function Az(){var i=this;var e=this._data;var t=this._colorScalePosition||"bottom";var n=["top","bottom"].includes(t);var a=this._colorScalePadding()?this._padding:{top:0,right:0,bottom:0,left:0};var r=this._width-(this._margin.left+this._margin.right+a.left+a.right);var o=n?je([this._colorScaleMaxSize,r]):this._width-(this._margin.left+this._margin.right);var s=this._height-(this._margin.bottom+this._margin.top+a.bottom+a.top);var l=!n?je([this._colorScaleMaxSize,s]):this._height-(this._margin.bottom+this._margin.top);var u={opacity:this._colorScalePosition?1:0,transform:"translate(".concat(n?this._margin.left+a.left+(r-o)/2:this._margin.left,", ").concat(n?this._margin.top:this._margin.top+a.top+(s-l)/2,")")};var h=this._colorScale&&e&&e.length>1;var c=Ox("g.d3plus-viz-colorScale",{condition:h&&!this._colorScaleConfig.select,enter:u,parent:this._select,transition:this._transition,update:u}).node();if(h){var f=e.filter(function(e,t){var n=i._colorScale(e,t);return n!==undefined&&n!==null});this._colorScaleClass.align({bottom:"end",left:"start",right:"end",top:"start"}[t]||"bottom").duration(this._duration).data(f).height(l).locale(this._locale).orient(t).select(c).value(this._colorScale).width(o).config(this._colorScaleConfig).render();var d=this._colorScaleClass.outerBounds();if(this._colorScalePosition&&!this._colorScaleConfig.select&&d.height){if(n)this._margin[t]+=d.height+this._legendClass.padding()*2;else this._margin[t]+=d.width+this._legendClass.padding()*2}}else{this._colorScaleClass.config(this._colorScaleConfig)}}var Rz=DN(function(t,e){(function(e){{t.exports=e()}})(function(){return function r(o,s,l){function u(n,e){if(!s[n]){if(!o[n]){var t=typeof ON=="function"&&ON;if(!e&&t)return t(n,!0);if(h)return h(n,!0);var i=new Error("Cannot find module '"+n+"'");throw i.code="MODULE_NOT_FOUND",i}var a=s[n]={exports:{}};o[n][0].call(a.exports,function(e){var t=o[n][1][e];return u(t?t:e)},a,a.exports,r,o,s,l)}return s[n].exports}var h=typeof ON=="function"&&ON;for(var e=0;e= 0x80 (not a basic code point)","invalid-input":"Invalid input"},c=y-_,S=Math.floor,C=String.fromCharCode,f;function E(e){throw new RangeError(h[e])}function d(e,t){var n=e.length;var i=[];while(n--){i[n]=t(e[n])}return i}function g(e,t){var n=e.split("@");var i="";if(n.length>1){i=n[0]+"@";e=n[1]}e=e.replace(u,".");var a=e.split(".");var r=d(a,t).join(".");return i+r}function A(e){var t=[],n=0,i=e.length,a,r;while(n=55296&&a<=56319&&n65535){e-=65536;t+=C(e>>>10&1023|55296);e=56320|e&1023}t+=C(e);return t}).join("")}function R(e){if(e-48<10){return e-22}if(e-65<26){return e-65}if(e-97<26){return e-97}return y}function M(e,t){return e+22+75*(e<26)-((t!=0)<<5)}function T(e,t,n){var i=0;e=n?S(e/o):e>>1;e+=S(e/t);for(;e>c*b>>1;i+=y){e=S(e/c)}return S(i+(c+1)*e/(e+r))}function p(e){var t=[],n=e.length,i,a=0,r=x,o=w,s,l,u,h,c,f,d,g,p;s=e.lastIndexOf(k);if(s<0){s=0}for(l=0;l=128){E("not-basic")}t.push(e.charCodeAt(l))}for(u=s>0?s+1:0;u=n){E("invalid-input")}d=R(e.charCodeAt(u++));if(d>=y||d>S((m-a)/c)){E("overflow")}a+=d*c;g=f<=o?_:f>=o+b?b:f-o;if(dS(m/p)){E("overflow")}c*=p}i=t.length+1;o=T(a-h,i,h==0);if(S(a/i)>m-r){E("overflow")}r+=S(a/i);a%=i;t.splice(a++,0,r)}return v(t)}function B(e){var t,n,i,a,r,o,s,l,u,h,c,f=[],d,g,p,v;e=A(e);d=e.length;t=x;n=0;r=w;for(o=0;o=t&&cS((m-n)/g)){E("overflow")}n+=(s-t)*g;t=s;for(o=0;om){E("overflow")}if(c==t){for(l=n,u=y;;u+=y){h=u<=r?_:u>=r+b?b:u-r;if(l0){c(n.documentElement);clearInterval(e);if(a.type==="view"){l.contentWindow.scrollTo(r,o);if(/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(l.contentWindow.scrollY!==o||l.contentWindow.scrollX!==r)){n.documentElement.style.top=-o+"px";n.documentElement.style.left=-r+"px";n.documentElement.style.position="absolute"}}t(l)}},50)};n.open();n.write("");u(e,r,o);n.replaceChild(n.adoptNode(s),n.documentElement);n.close()})}},{"./log":13}],3:[function(e,t,n){function i(e){this.r=0;this.g=0;this.b=0;this.a=null;var t=this.fromArray(e)||this.namedColor(e)||this.rgb(e)||this.rgba(e)||this.hex6(e)||this.hex3(e)}i.prototype.darken=function(e){var t=1-e;return new i([Math.round(this.r*t),Math.round(this.g*t),Math.round(this.b*t),this.a])};i.prototype.isTransparent=function(){return this.a===0};i.prototype.isBlack=function(){return this.r===0&&this.g===0&&this.b===0};i.prototype.fromArray=function(e){if(Array.isArray(e)){this.r=Math.min(e[0],255);this.g=Math.min(e[1],255);this.b=Math.min(e[2],255);if(e.length>3){this.a=e[3]}}return Array.isArray(e)};var a=/^#([a-f0-9]{3})$/i;i.prototype.hex3=function(e){var t=null;if((t=e.match(a))!==null){this.r=parseInt(t[1][0]+t[1][0],16);this.g=parseInt(t[1][1]+t[1][1],16);this.b=parseInt(t[1][2]+t[1][2],16)}return t!==null};var r=/^#([a-f0-9]{6})$/i;i.prototype.hex6=function(e){var t=null;if((t=e.match(r))!==null){this.r=parseInt(t[1].substring(0,2),16);this.g=parseInt(t[1].substring(2,4),16);this.b=parseInt(t[1].substring(4,6),16)}return t!==null};var o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/;i.prototype.rgb=function(e){var t=null;if((t=e.match(o))!==null){this.r=Number(t[1]);this.g=Number(t[2]);this.b=Number(t[3])}return t!==null};var s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?\.?\d+)\s*\)$/;i.prototype.rgba=function(e){var t=null;if((t=e.match(s))!==null){this.r=Number(t[1]);this.g=Number(t[2]);this.b=Number(t[3]);this.a=Number(t[4])}return t!==null};i.prototype.toString=function(){return this.a!==null&&this.a!==1?"rgba("+[this.r,this.g,this.b,this.a].join(",")+")":"rgb("+[this.r,this.g,this.b].join(",")+")"};i.prototype.namedColor=function(e){e=e.toLowerCase();var t=l[e];if(t){this.r=t[0];this.g=t[1];this.b=t[2]}else if(e==="transparent"){this.r=this.g=this.b=this.a=0;return true}return!!t};i.prototype.isColor=true;var l={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};t.exports=i},{}],4:[function(e,t,n){var d=e("./support");var o=e("./renderers/canvas");var g=e("./imageloader");var p=e("./nodeparser");var i=e("./nodecontainer");var v=e("./log");var a=e("./utils");var r=e("./clone");var s=e("./proxy").loadUrlDocument;var m=a.getBounds;var c="data-html2canvas-node";var l=0;function u(e,t){var n=l++;t=t||{};if(t.logging){v.options.logging=true;v.options.start=Date.now()}t.async=typeof t.async==="undefined"?true:t.async;t.allowTaint=typeof t.allowTaint==="undefined"?false:t.allowTaint;t.removeContainer=typeof t.removeContainer==="undefined"?true:t.removeContainer;t.javascriptEnabled=typeof t.javascriptEnabled==="undefined"?false:t.javascriptEnabled;t.imageTimeout=typeof t.imageTimeout==="undefined"?1e4:t.imageTimeout;t.renderer=typeof t.renderer==="function"?t.renderer:o;t.strict=!!t.strict;if(typeof e==="string"){if(typeof t.proxy!=="string"){return Promise.reject("Proxy must be used when rendering url")}var i=t.width!=null?t.width:window.innerWidth;var a=t.height!=null?t.height:window.innerHeight;return s(k(e),t.proxy,document,i,a,t).then(function(e){return y(e.contentWindow.document.documentElement,e,t,i,a)})}var r=(e===undefined?[document.documentElement]:e.length?e:[e])[0];r.setAttribute(c+n,n);return f(r.ownerDocument,t,r.ownerDocument.defaultView.innerWidth,r.ownerDocument.defaultView.innerHeight,n).then(function(e){if(typeof t.onrendered==="function"){v("options.onrendered is deprecated, html2canvas returns a Promise containing the canvas");t.onrendered(e)}return e})}u.CanvasRenderer=o;u.NodeContainer=i;u.log=v;u.utils=a;var h=typeof document==="undefined"||typeof Object.create!=="function"||typeof document.createElement("canvas").getContext!=="function"?function(){return Promise.reject("No canvas support")}:u;t.exports=h;function f(o,s,l,u,h){return r(o,o,l,u,s,o.defaultView.pageXOffset,o.defaultView.pageYOffset).then(function(e){v("Document cloned");var t=c+h;var n="["+t+"='"+h+"']";o.querySelector(n).removeAttribute(t);var i=e.contentWindow;var a=i.document.querySelector(n);var r=typeof s.onclone==="function"?Promise.resolve(s.onclone(i.document)):Promise.resolve(true);return r.then(function(){return y(a,e,s,l,u)})})}function y(t,n,i,e,a){var r=n.contentWindow;var o=new d(r.document);var s=new g(i,o);var l=m(t);var u=i.type==="view"?e:w(r.document);var h=i.type==="view"?a:x(r.document);var c=new i.renderer(u,h,s,i,document);var f=new p(t,c,o,s,i);return f.ready.then(function(){v("Finished rendering");var e;if(i.type==="view"){e=b(c.canvas,{width:c.canvas.width,height:c.canvas.height,top:0,left:0,x:0,y:0})}else if(t===r.document.body||t===r.document.documentElement||i.canvas!=null){e=c.canvas}else{e=b(c.canvas,{width:i.width!=null?i.width:l.width,height:i.height!=null?i.height:l.height,top:l.top,left:l.left,x:0,y:0})}_(n,i);return e})}function _(e,t){if(t.removeContainer){e.parentNode.removeChild(e);v("Cleaned up container")}}function b(e,t){var n=document.createElement("canvas");var i=Math.min(e.width-1,Math.max(0,t.left));var a=Math.min(e.width,Math.max(1,t.left+t.width));var r=Math.min(e.height-1,Math.max(0,t.top));var o=Math.min(e.height,Math.max(1,t.top+t.height));n.width=t.width;n.height=t.height;var s=a-i;var l=o-r;v("Cropping canvas at:","left:",t.left,"top:",t.top,"width:",s,"height:",l);v("Resulting crop with width",t.width,"and height",t.height,"with x",i,"and y",r);n.getContext("2d").drawImage(e,i,r,s,l,t.x,t.y,s,l);return n}function w(e){return Math.max(Math.max(e.body.scrollWidth,e.documentElement.scrollWidth),Math.max(e.body.offsetWidth,e.documentElement.offsetWidth),Math.max(e.body.clientWidth,e.documentElement.clientWidth))}function x(e){return Math.max(Math.max(e.body.scrollHeight,e.documentElement.scrollHeight),Math.max(e.body.offsetHeight,e.documentElement.offsetHeight),Math.max(e.body.clientHeight,e.documentElement.clientHeight))}function k(e){var t=document.createElement("a");t.href=e;t.href=t.href;return t}},{"./clone":2,"./imageloader":11,"./log":13,"./nodecontainer":14,"./nodeparser":15,"./proxy":16,"./renderers/canvas":20,"./support":22,"./utils":26}],5:[function(e,t,n){var i=e("./log");var a=e("./utils").smallImage;function r(e){this.src=e;i("DummyImageContainer for",e);if(!this.promise||!this.image){i("Initiating DummyImageContainer");r.prototype.image=new Image;var n=this.image;r.prototype.promise=new Promise(function(e,t){n.onload=e;n.onerror=t;n.src=a();if(n.complete===true){e(n)}})}}t.exports=r},{"./log":13,"./utils":26}],6:[function(e,t,n){var l=e("./utils").smallImage;function i(e,t){var n=document.createElement("div"),i=document.createElement("img"),a=document.createElement("span"),r="Hidden Text",o,s;n.style.visibility="hidden";n.style.fontFamily=e;n.style.fontSize=t;n.style.margin=0;n.style.padding=0;document.body.appendChild(n);i.src=l();i.width=1;i.height=1;i.style.margin=0;i.style.padding=0;i.style.verticalAlign="baseline";a.style.fontFamily=e;a.style.fontSize=t;a.style.margin=0;a.style.padding=0;a.appendChild(document.createTextNode(r));n.appendChild(a);n.appendChild(i);o=i.offsetTop-a.offsetTop+1;n.removeChild(a);n.appendChild(document.createTextNode(r));n.style.lineHeight="normal";i.style.verticalAlign="super";s=i.offsetTop-n.offsetTop+1;document.body.removeChild(n);this.baseline=o;this.lineWidth=1;this.middle=s}t.exports=i},{"./utils":26}],7:[function(e,t,n){var i=e("./font");function a(){this.data={}}a.prototype.getMetrics=function(e,t){if(this.data[e+"-"+t]===undefined){this.data[e+"-"+t]=new i(e,t)}return this.data[e+"-"+t]};t.exports=a},{"./font":6}],8:[function(r,e,t){var n=r("./utils");var o=n.getBounds;var a=r("./proxy").loadUrlDocument;function i(t,e,n){this.image=null;this.src=t;var i=this;var a=o(t);this.promise=(!e?this.proxyLoad(n.proxy,a,n):new Promise(function(e){if(t.contentWindow.document.URL==="about:blank"||t.contentWindow.document.documentElement==null){t.contentWindow.onload=t.onload=function(){e(t)}}else{e(t)}})).then(function(e){var t=r("./core");return t(e.contentWindow.document.documentElement,{type:"view",width:e.width,height:e.height,proxy:n.proxy,javascriptEnabled:n.javascriptEnabled,removeContainer:n.removeContainer,allowTaint:n.allowTaint,imageTimeout:n.imageTimeout/2})}).then(function(e){return i.image=e})}i.prototype.proxyLoad=function(e,t,n){var i=this.src;return a(i.src,e,i.ownerDocument,t.width,t.height,n)};e.exports=i},{"./core":4,"./proxy":16,"./utils":26}],9:[function(e,t,n){function i(e){this.src=e.value;this.colorStops=[];this.type=null;this.x0=.5;this.y0=.5;this.x1=.5;this.y1=.5;this.promise=Promise.resolve(true)}i.TYPES={LINEAR:1,RADIAL:2};i.REGEXP_COLORSTOP=/^\s*(rgba?\(\s*\d{1,3},\s*\d{1,3},\s*\d{1,3}(?:,\s*[0-9\.]+)?\s*\)|[a-z]{3,20}|#[a-f0-9]{3,6})(?:\s+(\d{1,3}(?:\.\d+)?)(%|px)?)?(?:\s|$)/i;t.exports=i},{}],10:[function(e,t,n){function i(n,i){this.src=n;this.image=new Image;var a=this;this.tainted=null;this.promise=new Promise(function(e,t){a.image.onload=e;a.image.onerror=t;if(i){a.image.crossOrigin="anonymous"}a.image.src=n;if(a.image.complete===true){e(a.image)}})}t.exports=i},{}],11:[function(e,t,n){var r=e("./log");var i=e("./imagecontainer");var a=e("./dummyimagecontainer");var o=e("./proxyimagecontainer");var s=e("./framecontainer");var l=e("./svgcontainer");var u=e("./svgnodecontainer");var h=e("./lineargradientcontainer");var c=e("./webkitgradientcontainer");var f=e("./utils").bind;function d(e,t){this.link=null;this.options=e;this.support=t;this.origin=this.getOrigin(window.location.href)}d.prototype.findImages=function(e){var t=[];e.reduce(function(e,t){switch(t.node.nodeName){case"IMG":return e.concat([{args:[t.node.src],method:"url"}]);case"svg":case"IFRAME":return e.concat([{args:[t.node],method:t.node.nodeName}])}return e},[]).forEach(this.addImage(t,this.loadImage),this);return t};d.prototype.findBackgroundImage=function(e,t){t.parseBackgroundImages().filter(this.hasImageBackground).forEach(this.addImage(e,this.loadImage),this);return e};d.prototype.addImage=function(n,i){return function(t){t.args.forEach(function(e){if(!this.imageExists(n,e)){n.splice(0,0,i.call(this,t));r("Added image #"+n.length,typeof e==="string"?e.substring(0,100):e)}},this)}};d.prototype.hasImageBackground=function(e){return e.method!=="none"};d.prototype.loadImage=function(e){if(e.method==="url"){var t=e.args[0];if(this.isSVG(t)&&!this.support.svg&&!this.options.allowTaint){return new l(t)}else if(t.match(/data:image\/.*;base64,/i)){return new i(t.replace(/url\(['"]{0,}|['"]{0,}\)$/gi,""),false)}else if(this.isSameOrigin(t)||this.options.allowTaint===true||this.isSVG(t)){return new i(t,false)}else if(this.support.cors&&!this.options.allowTaint&&this.options.useCORS){return new i(t,true)}else if(this.options.proxy){return new o(t,this.options.proxy)}else{return new a(t)}}else if(e.method==="linear-gradient"){return new h(e)}else if(e.method==="gradient"){return new c(e)}else if(e.method==="svg"){return new u(e.args[0],this.support.svg)}else if(e.method==="IFRAME"){return new s(e.args[0],this.isSameOrigin(e.args[0].src),this.options)}else{return new a(e)}};d.prototype.isSVG=function(e){return e.substring(e.length-3).toLowerCase()==="svg"||l.prototype.isInline(e)};d.prototype.imageExists=function(e,t){return e.some(function(e){return e.src===t})};d.prototype.isSameOrigin=function(e){return this.getOrigin(e)===this.origin};d.prototype.getOrigin=function(e){var t=this.link||(this.link=document.createElement("a"));t.href=e;t.href=t.href;return t.protocol+t.hostname+t.port};d.prototype.getPromise=function(t){return this.timeout(t,this.options.imageTimeout)["catch"](function(){var e=new a(t.src);return e.promise.then(function(e){t.image=e})})};d.prototype.get=function(t){var n=null;return this.images.some(function(e){return(n=e).src===t})?n:null};d.prototype.fetch=function(e){this.images=e.reduce(f(this.findBackgroundImage,this),this.findImages(e));this.images.forEach(function(t,n){t.promise.then(function(){r("Succesfully loaded image #"+(n+1),t)},function(e){r("Failed loading image #"+(n+1),t,e)})});this.ready=Promise.all(this.images.map(this.getPromise,this));r("Finished searching images");return this};d.prototype.timeout=function(n,i){var a;var e=Promise.race([n.promise,new Promise(function(e,t){a=setTimeout(function(){r("Timed out loading image",n);t(n)},i)})]).then(function(e){clearTimeout(a);return e});e["catch"](function(){clearTimeout(a)});return e};t.exports=d},{"./dummyimagecontainer":5,"./framecontainer":8,"./imagecontainer":10,"./lineargradientcontainer":12,"./log":13,"./proxyimagecontainer":17,"./svgcontainer":23,"./svgnodecontainer":24,"./utils":26,"./webkitgradientcontainer":27}],12:[function(e,t,n){var a=e("./gradientcontainer");var r=e("./color");function i(e){a.apply(this,arguments);this.type=a.TYPES.LINEAR;var t=i.REGEXP_DIRECTION.test(e.args[0])||!a.REGEXP_COLORSTOP.test(e.args[0]);if(t){e.args[0].split(/\s+/).reverse().forEach(function(e,t){switch(e){case"left":this.x0=0;this.x1=1;break;case"top":this.y0=0;this.y1=1;break;case"right":this.x0=1;this.x1=0;break;case"bottom":this.y0=1;this.y1=0;break;case"to":var n=this.y0;var i=this.x0;this.y0=this.y1;this.x0=this.x1;this.x1=i;this.y1=n;break;case"center":break;default:var a=parseFloat(e,10)*.01;if(isNaN(a)){break}if(t===0){this.y0=a;this.y1=1-this.y0}else{this.x0=a;this.x1=1-this.x0}break}},this)}else{this.y0=0;this.y1=1}this.colorStops=e.args.slice(t?1:0).map(function(e){var t=e.match(a.REGEXP_COLORSTOP);var n=+t[2];var i=n===0?"%":t[3];return{color:new r(t[1]),stop:i==="%"?n/100:null}});if(this.colorStops[0].stop===null){this.colorStops[0].stop=0}if(this.colorStops[this.colorStops.length-1].stop===null){this.colorStops[this.colorStops.length-1].stop=1}this.colorStops.forEach(function(n,i){if(n.stop===null){this.colorStops.slice(i).some(function(e,t){if(e.stop!==null){n.stop=(e.stop-this.colorStops[i-1].stop)/(t+1)+this.colorStops[i-1].stop;return true}else{return false}},this)}},this)}i.prototype=Object.create(a.prototype);i.REGEXP_DIRECTION=/^\s*(?:to|left|right|top|bottom|center|\d{1,3}(?:\.\d+)?%?)(?:\s|$)/i;t.exports=i},{"./color":3,"./gradientcontainer":9}],13:[function(e,t,n){var i=function e(){if(e.options.logging&&window.console&&window.console.log){Function.prototype.bind.call(window.console.log,window.console).apply(window.console,[Date.now()-e.options.start+"ms","html2canvas:"].concat([].slice.call(arguments,0)))}};i.options={logging:false};t.exports=i},{}],14:[function(e,t,n){var r=e("./color");var i=e("./utils");var a=i.getBounds;var o=i.parseBackgrounds;var s=i.offsetBounds;function l(e,t){this.node=e;this.parent=t;this.stack=null;this.bounds=null;this.borders=null;this.clip=[];this.backgroundClip=[];this.offsetBounds=null;this.visible=null;this.computedStyles=null;this.colors={};this.styles={};this.backgroundImages=null;this.transformData=null;this.transformMatrix=null;this.isPseudoElement=false;this.opacity=null}l.prototype.cloneTo=function(e){e.visible=this.visible;e.borders=this.borders;e.bounds=this.bounds;e.clip=this.clip;e.backgroundClip=this.backgroundClip;e.computedStyles=this.computedStyles;e.styles=this.styles;e.backgroundImages=this.backgroundImages;e.opacity=this.opacity};l.prototype.getOpacity=function(){return this.opacity===null?this.opacity=this.cssFloat("opacity"):this.opacity};l.prototype.assignStack=function(e){this.stack=e;e.children.push(this)};l.prototype.isElementVisible=function(){return this.node.nodeType===Node.TEXT_NODE?this.parent.visible:this.css("display")!=="none"&&this.css("visibility")!=="hidden"&&!this.node.hasAttribute("data-html2canvas-ignore")&&(this.node.nodeName!=="INPUT"||this.node.getAttribute("type")!=="hidden")};l.prototype.css=function(e){if(!this.computedStyles){this.computedStyles=this.isPseudoElement?this.parent.computedStyle(this.before?":before":":after"):this.computedStyle(null)}return this.styles[e]||(this.styles[e]=this.computedStyles[e])};l.prototype.prefixedCss=function(t){var e=["webkit","moz","ms","o"];var n=this.css(t);if(n===undefined){e.some(function(e){n=this.css(e+t.substr(0,1).toUpperCase()+t.substr(1));return n!==undefined},this)}return n===undefined?null:n};l.prototype.computedStyle=function(e){return this.node.ownerDocument.defaultView.getComputedStyle(this.node,e)};l.prototype.cssInt=function(e){var t=parseInt(this.css(e),10);return isNaN(t)?0:t};l.prototype.color=function(e){return this.colors[e]||(this.colors[e]=new r(this.css(e)))};l.prototype.cssFloat=function(e){var t=parseFloat(this.css(e));return isNaN(t)?0:t};l.prototype.fontWeight=function(){var e=this.css("fontWeight");switch(parseInt(e,10)){case 401:e="bold";break;case 400:e="normal";break}return e};l.prototype.parseClip=function(){var e=this.css("clip").match(this.CLIP);if(e){return{top:parseInt(e[1],10),right:parseInt(e[2],10),bottom:parseInt(e[3],10),left:parseInt(e[4],10)}}return null};l.prototype.parseBackgroundImages=function(){return this.backgroundImages||(this.backgroundImages=o(this.css("backgroundImage")))};l.prototype.cssList=function(e,t){var n=(this.css(e)||"").split(",");n=n[t||0]||n[0]||"auto";n=n.trim().split(" ");if(n.length===1){n=[n[0],c(n[0])?"auto":n[0]]}return n};l.prototype.parseBackgroundSize=function(e,t,n){var i=this.cssList("backgroundSize",n);var a,r;if(c(i[0])){a=e.width*parseFloat(i[0])/100}else if(/contain|cover/.test(i[0])){var o=e.width/e.height,s=t.width/t.height;return o0){this.renderIndex=0;this.asyncRenderer(this.renderQueue,e)}else{e()}},this))},this))}a.prototype.calculateOverflowClips=function(){this.nodes.forEach(function(e){if(H(e)){if(V(e)){e.appendToDOM()}e.borders=this.parseBorders(e);var t=e.css("overflow")==="hidden"?[e.borders.clip]:[];var n=e.parseClip();if(n&&["absolute","fixed"].indexOf(e.css("position"))!==-1){t.push([["rect",e.bounds.left+n.left,e.bounds.top+n.top,n.right-n.left,n.bottom-n.top]])}e.clip=r(e)?e.parent.clip.concat(t):t;e.backgroundClip=e.css("overflow")!=="hidden"?e.clip.concat([e.borders.clip]):e.clip;if(V(e)){e.cleanDOM()}}else if(G(e)){e.clip=r(e)?e.parent.clip:[]}if(!V(e)){e.bounds=null}},this)};function r(e){return e.parent&&e.parent.clip.length}a.prototype.asyncRenderer=function(e,t,n){n=n||Date.now();this.paint(e[this.renderIndex++]);if(e.length===this.renderIndex){t()}else if(n+20>Date.now()){this.asyncRenderer(e,t,n)}else{setTimeout(p(function(){this.asyncRenderer(e,t)},this),0)}};a.prototype.createPseudoHideStyles=function(e){this.createStyles(e,"."+c.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+':before { content: "" !important; display: none !important; }'+"."+c.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER+':after { content: "" !important; display: none !important; }')};a.prototype.disableAnimations=function(e){this.createStyles(e,"* { -webkit-animation: none !important; -moz-animation: none !important; -o-animation: none !important; animation: none !important; "+"-webkit-transition: none !important; -moz-transition: none !important; -o-transition: none !important; transition: none !important;}")};a.prototype.createStyles=function(e,t){var n=e.createElement("style");n.innerHTML=t;e.body.appendChild(n)};a.prototype.getPseudoElements=function(e){var t=[[e]];if(e.node.nodeType===Node.ELEMENT_NODE){var n=this.getPseudoElement(e,":before");var i=this.getPseudoElement(e,":after");if(n){t.push(n)}if(i){t.push(i)}}return X(t)};function y(e){return e.replace(/(\-[a-z])/g,function(e){return e.toUpperCase().replace("-","")})}a.prototype.getPseudoElement=function(e,t){var n=e.computedStyle(t);if(!n||!n.content||n.content==="none"||n.content==="-moz-alt-content"||n.display==="none"){return null}var i=$(n.content);var a=i.substr(0,3)==="url";var r=document.createElement(a?"img":"html2canvaspseudoelement");var o=new c(r,e,t);for(var s=n.length-1;s>=0;s--){var l=y(n.item(s));r.style[l]=n[l]}r.className=c.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+" "+c.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER;if(a){r.src=v(i)[0].args[0];return[o]}else{var u=document.createTextNode(i);r.appendChild(u);return[o,new h(u,o)]}};a.prototype.getChildren=function(n){return X([].filter.call(n.node.childNodes,O).map(function(e){var t=[e.nodeType===Node.TEXT_NODE?new h(e,n):new u(e,n)].filter(Y);return e.nodeType===Node.ELEMENT_NODE&&t.length&&e.tagName!=="TEXTAREA"?t[0].isElementVisible()?t.concat(this.getChildren(t[0])):[]:t},this))};a.prototype.newStackingContext=function(e,t){var n=new g(t,e.getOpacity(),e.node,e.parent);e.cloneTo(n);var i=t?n.getParentStack(this):n.parent.stack;i.contexts.push(n);e.stack=n};a.prototype.createStackingContexts=function(){this.nodes.forEach(function(e){if(H(e)&&(this.isRootElement(e)||W(e)||z(e)||this.isBodyWithTransparentRoot(e)||e.hasTransform())){this.newStackingContext(e,true)}else if(H(e)&&(F(e)&&M(e)||I(e)||L(e))){this.newStackingContext(e,false)}else{e.assignStack(e.parent.stack)}},this)};a.prototype.isBodyWithTransparentRoot=function(e){return e.node.nodeName==="BODY"&&e.parent.color("backgroundColor").isTransparent()};a.prototype.isRootElement=function(e){return e.parent===null};a.prototype.sortStackingContexts=function(e){e.contexts.sort(U(e.contexts.slice(0)));e.contexts.forEach(this.sortStackingContexts,this)};a.prototype.parseTextBounds=function(o){return function(e,t,n){if(o.parent.css("textDecoration").substr(0,4)!=="none"||e.trim().length!==0){if(this.support.rangeBounds&&!o.parent.hasTransform()){var i=n.slice(0,t).join("").length;return this.getRangeBounds(o.node,i,e.length)}else if(o.node&&typeof o.node.data==="string"){var a=o.node.splitText(e.length);var r=this.getWrapperBounds(o.node,o.parent.hasTransform());o.node=a;return r}}else if(!this.support.rangeBounds||o.parent.hasTransform()){o.node=o.node.splitText(e.length)}return{}}};a.prototype.getWrapperBounds=function(e,t){var n=e.ownerDocument.createElement("html2canvaswrapper");var i=e.parentNode,a=e.cloneNode(true);n.appendChild(e.cloneNode(true));i.replaceChild(n,e);var r=t?m(n):o(n);i.replaceChild(a,n);return r};a.prototype.getRangeBounds=function(e,t,n){var i=this.range||(this.range=e.ownerDocument.createRange());i.setStart(e,t);i.setEnd(e,t+n);return i.getBoundingClientRect()};function _(){}a.prototype.parse=function(e){var t=e.contexts.filter(A);var n=e.children.filter(H);var i=n.filter(j(L));var a=i.filter(j(F)).filter(j(T));var r=n.filter(j(F)).filter(L);var o=i.filter(j(F)).filter(T);var s=e.contexts.concat(i.filter(F)).filter(M);var l=e.children.filter(G).filter(N);var u=e.contexts.filter(R);t.concat(a).concat(r).concat(o).concat(s).concat(l).concat(u).forEach(function(e){this.renderQueue.push(e);if(B(e)){this.parse(e);this.renderQueue.push(new _)}},this)};a.prototype.paint=function(e){try{if(e instanceof _){this.renderer.ctx.restore()}else if(G(e)){if(V(e.parent)){e.parent.appendToDOM()}this.paintText(e);if(V(e.parent)){e.parent.cleanDOM()}}else{this.paintNode(e)}}catch(e){s(e);if(this.options.strict){throw e}}};a.prototype.paintNode=function(e){if(B(e)){this.renderer.setOpacity(e.opacity);this.renderer.ctx.save();if(e.hasTransform()){this.renderer.setTransform(e.parseTransform())}}if(e.node.nodeName==="INPUT"&&e.node.type==="checkbox"){this.paintCheckbox(e)}else if(e.node.nodeName==="INPUT"&&e.node.type==="radio"){this.paintRadio(e)}else{this.paintElement(e)}};a.prototype.paintElement=function(n){var i=n.parseBounds();this.renderer.clip(n.backgroundClip,function(){this.renderer.renderBackground(n,i,n.borders.borders.map(q))},this);this.renderer.clip(n.clip,function(){this.renderer.renderBorders(n.borders.borders)},this);this.renderer.clip(n.backgroundClip,function(){switch(n.node.nodeName){case"svg":case"IFRAME":var e=this.images.get(n.node);if(e){this.renderer.renderImage(n,i,n.borders,e)}else{s("Error loading <"+n.node.nodeName+">",n.node)}break;case"IMG":var t=this.images.get(n.node.src);if(t){this.renderer.renderImage(n,i,n.borders,t)}else{s("Error loading ",n.node.src)}break;case"CANVAS":this.renderer.renderImage(n,i,n.borders,{image:n.node});break;case"SELECT":case"INPUT":case"TEXTAREA":this.paintFormValue(n);break}},this)};a.prototype.paintCheckbox=function(e){var t=e.parseBounds();var n=Math.min(t.width,t.height);var i={width:n-1,height:n-1,top:t.top,left:t.left};var a=[3,3];var r=[a,a,a,a];var o=[1,1,1,1].map(function(e){return{color:new d("#A5A5A5"),width:e}});var s=k(i,r,o);this.renderer.clip(e.backgroundClip,function(){this.renderer.rectangle(i.left+1,i.top+1,i.width-2,i.height-2,new d("#DEDEDE"));this.renderer.renderBorders(w(o,i,s,r));if(e.node.checked){this.renderer.font(new d("#424242"),"normal","normal","bold",n-3+"px","arial");this.renderer.text("✔",i.left+n/6,i.top+n-1)}},this)};a.prototype.paintRadio=function(e){var t=e.parseBounds();var n=Math.min(t.width,t.height)-2;this.renderer.clip(e.backgroundClip,function(){this.renderer.circleStroke(t.left+1,t.top+1,n,new d("#DEDEDE"),1,new d("#A5A5A5"));if(e.node.checked){this.renderer.circle(Math.ceil(t.left+n/4)+1,Math.ceil(t.top+n/4)+1,Math.floor(n/2),new d("#424242"))}},this)};a.prototype.paintFormValue=function(t){var e=t.getValue();if(e.length>0){var n=t.node.ownerDocument;var i=n.createElement("html2canvaswrapper");var a=["lineHeight","textAlign","fontFamily","fontWeight","fontSize","color","paddingLeft","paddingTop","paddingRight","paddingBottom","width","height","borderLeftStyle","borderTopStyle","borderLeftWidth","borderTopWidth","boxSizing","whiteSpace","wordWrap"];a.forEach(function(e){try{i.style[e]=t.css(e)}catch(e){s("html2canvas: Parse: Exception caught in renderFormValue: "+e.message)}});var r=t.parseBounds();i.style.position="fixed";i.style.left=r.left+"px";i.style.top=r.top+"px";i.textContent=e;n.body.appendChild(i);this.paintText(new h(i.firstChild,t));n.body.removeChild(i)}};a.prototype.paintText=function(n){n.applyTextTransform();var e=l.ucs2.decode(n.node.data);var i=(!this.options.letterRendering||P(n))&&!Q(n.node.data)?Z(e):e.map(function(e){return l.ucs2.encode([e])});var t=n.parent.fontWeight();var a=n.parent.css("fontSize");var r=n.parent.css("fontFamily");var o=n.parent.parseTextShadows();this.renderer.font(n.parent.color("color"),n.parent.css("fontStyle"),n.parent.css("fontVariant"),t,a,r);if(o.length){this.renderer.fontShadow(o[0].color,o[0].offsetX,o[0].offsetY,o[0].blur)}else{this.renderer.clearShadow()}this.renderer.clip(n.parent.clip,function(){i.map(this.parseTextBounds(n),this).forEach(function(e,t){if(e){this.renderer.text(i[t],e.left,e.bottom);this.renderTextDecoration(n.parent,e,this.fontMetrics.getMetrics(r,a))}},this)},this)};a.prototype.renderTextDecoration=function(e,t,n){switch(e.css("textDecoration").split(" ")[0]){case"underline":this.renderer.rectangle(t.left,Math.round(t.top+n.baseline+n.lineWidth),t.width,1,e.color("color"));break;case"overline":this.renderer.rectangle(t.left,Math.round(t.top),t.width,1,e.color("color"));break;case"line-through":this.renderer.rectangle(t.left,Math.ceil(t.top+n.middle+n.lineWidth),t.width,1,e.color("color"));break}};var b={inset:[["darken",.6],["darken",.1],["darken",.1],["darken",.6]]};a.prototype.parseBorders=function(r){var e=r.parseBounds();var t=D(r);var n=["Top","Right","Bottom","Left"].map(function(e,t){var n=r.css("border"+e+"Style");var i=r.color("border"+e+"Color");if(n==="inset"&&i.isBlack()){i=new d([255,255,255,i.a])}var a=b[n]?b[n][t]:null;return{width:r.cssInt("border"+e+"Width"),color:a?i[a[0]](a[1]):i,args:null}});var i=k(e,t,n);return{clip:this.parseBackgroundClip(r,i,n,t,e),borders:w(n,e,i,t)}};function w(o,s,l,u){return o.map(function(e,t){if(e.width>0){var n=s.left;var i=s.top;var a=s.width;var r=s.height-o[2].width;switch(t){case 0:r=o[0].width;e.args=C({c1:[n,i],c2:[n+a,i],c3:[n+a-o[1].width,i+r],c4:[n+o[3].width,i+r]},u[0],u[1],l.topLeftOuter,l.topLeftInner,l.topRightOuter,l.topRightInner);break;case 1:n=s.left+s.width-o[1].width;a=o[1].width;e.args=C({c1:[n+a,i],c2:[n+a,i+r+o[2].width],c3:[n,i+r],c4:[n,i+o[0].width]},u[1],u[2],l.topRightOuter,l.topRightInner,l.bottomRightOuter,l.bottomRightInner);break;case 2:i=i+s.height-o[2].width;r=o[2].width;e.args=C({c1:[n+a,i+r],c2:[n,i+r],c3:[n+o[3].width,i],c4:[n+a-o[3].width,i]},u[2],u[3],l.bottomRightOuter,l.bottomRightInner,l.bottomLeftOuter,l.bottomLeftInner);break;case 3:a=o[3].width;e.args=C({c1:[n,i+r+o[2].width],c2:[n,i],c3:[n+a,i+o[0].width],c4:[n+a,i+r]},u[3],u[0],l.bottomLeftOuter,l.bottomLeftInner,l.topLeftOuter,l.topLeftInner);break}}return e})}a.prototype.parseBackgroundClip=function(e,t,n,i,a){var r=e.css("backgroundClip"),o=[];switch(r){case"content-box":case"padding-box":E(o,i[0],i[1],t.topLeftInner,t.topRightInner,a.left+n[3].width,a.top+n[0].width);E(o,i[1],i[2],t.topRightInner,t.bottomRightInner,a.left+a.width-n[1].width,a.top+n[0].width);E(o,i[2],i[3],t.bottomRightInner,t.bottomLeftInner,a.left+a.width-n[1].width,a.top+a.height-n[2].width);E(o,i[3],i[0],t.bottomLeftInner,t.topLeftInner,a.left+n[3].width,a.top+a.height-n[2].width);break;default:E(o,i[0],i[1],t.topLeftOuter,t.topRightOuter,a.left,a.top);E(o,i[1],i[2],t.topRightOuter,t.bottomRightOuter,a.left+a.width,a.top);E(o,i[2],i[3],t.bottomRightOuter,t.bottomLeftOuter,a.left+a.width,a.top+a.height);E(o,i[3],i[0],t.bottomLeftOuter,t.topLeftOuter,a.left,a.top+a.height);break}return o};function x(e,t,n,i){var a=4*((Math.sqrt(2)-1)/3);var r=n*a,o=i*a,s=e+n,l=t+i;return{topLeft:S({x:e,y:l},{x:e,y:l-o},{x:s-r,y:t},{x:s,y:t}),topRight:S({x:e,y:t},{x:e+r,y:t},{x:s,y:l-o},{x:s,y:l}),bottomRight:S({x:s,y:t},{x:s,y:t+o},{x:e+r,y:l},{x:e,y:l}),bottomLeft:S({x:s,y:l},{x:s-r,y:l},{x:e,y:t+o},{x:e,y:t})}}function k(e,t,n){var i=e.left,a=e.top,r=e.width,o=e.height,s=t[0][0]r+n[3].width?0:u-n[3].width,h-n[0].width).topRight.subdivide(.5),bottomRightOuter:x(i+m,a+v,c,f).bottomRight.subdivide(.5),bottomRightInner:x(i+Math.min(m,r-n[3].width),a+Math.min(v,o+n[0].width),Math.max(0,c-n[1].width),f-n[2].width).bottomRight.subdivide(.5),bottomLeftOuter:x(i,a+y,d,g).bottomLeft.subdivide(.5),bottomLeftInner:x(i+n[3].width,a+y,Math.max(0,d-n[3].width),g-n[2].width).bottomLeft.subdivide(.5)}}function S(l,u,h,c){var f=function e(t,n,i){return{x:t.x+(n.x-t.x)*i,y:t.y+(n.y-t.y)*i}};return{start:l,startControl:u,endControl:h,end:c,subdivide:function e(t){var n=f(l,u,t),i=f(u,h,t),a=f(h,c,t),r=f(n,i,t),o=f(i,a,t),s=f(r,o,t);return[S(l,n,r,s),S(s,o,a,c)]},curveTo:function e(t){t.push(["bezierCurve",u.x,u.y,h.x,h.y,c.x,c.y])},curveToReversed:function e(t){t.push(["bezierCurve",h.x,h.y,u.x,u.y,l.x,l.y])}}}function C(e,t,n,i,a,r,o){var s=[];if(t[0]>0||t[1]>0){s.push(["line",i[1].start.x,i[1].start.y]);i[1].curveTo(s)}else{s.push(["line",e.c1[0],e.c1[1]])}if(n[0]>0||n[1]>0){s.push(["line",r[0].start.x,r[0].start.y]);r[0].curveTo(s);s.push(["line",o[0].end.x,o[0].end.y]);o[0].curveToReversed(s)}else{s.push(["line",e.c2[0],e.c2[1]]);s.push(["line",e.c3[0],e.c3[1]])}if(t[0]>0||t[1]>0){s.push(["line",a[1].end.x,a[1].end.y]);a[1].curveToReversed(s)}else{s.push(["line",e.c4[0],e.c4[1]])}return s}function E(e,t,n,i,a,r,o){if(t[0]>0||t[1]>0){e.push(["line",i[0].start.x,i[0].start.y]);i[0].curveTo(e);i[1].curveTo(e)}else{e.push(["line",r,o])}if(n[0]>0||n[1]>0){e.push(["line",a[0].start.x,a[0].start.y])}}function A(e){return e.cssInt("zIndex")<0}function R(e){return e.cssInt("zIndex")>0}function M(e){return e.cssInt("zIndex")===0}function T(e){return["inline","inline-block","inline-table"].indexOf(e.css("display"))!==-1}function B(e){return e instanceof g}function N(e){return e.node.data.trim().length>0}function P(e){return/^(normal|none|0px)$/.test(e.parent.css("letterSpacing"))}function D(i){return["TopLeft","TopRight","BottomRight","BottomLeft"].map(function(e){var t=i.css("border"+e+"Radius");var n=t.split(" ");if(n.length<=1){n[1]=n[0]}return n.map(K)})}function O(e){return e.nodeType===Node.TEXT_NODE||e.nodeType===Node.ELEMENT_NODE}function z(e){var t=e.css("position");var n=["absolute","relative","fixed"].indexOf(t)!==-1?e.css("zIndex"):"auto";return n!=="auto"}function F(e){return e.css("position")!=="static"}function L(e){return e.css("float")!=="none"}function I(e){return["inline-block","inline-table"].indexOf(e.css("display"))!==-1}function j(e){var t=this;return function(){return!e.apply(t,arguments)}}function H(e){return e.node.nodeType===Node.ELEMENT_NODE}function V(e){return e.isPseudoElement===true}function G(e){return e.node.nodeType===Node.TEXT_NODE}function U(n){return function(e,t){return e.cssInt("zIndex")+n.indexOf(e)/n.length-(t.cssInt("zIndex")+n.indexOf(t)/n.length)}}function W(e){return e.getOpacity()<1}function K(e){return parseInt(e,10)}function q(e){return e.width}function Y(e){return e.node.nodeType!==Node.ELEMENT_NODE||["SCRIPT","HEAD","TITLE","OBJECT","BR","OPTION"].indexOf(e.node.nodeName)===-1}function X(e){return[].concat.apply([],e)}function $(e){var t=e.substr(0,1);return t===e.substr(e.length-1)&&t.match(/'|"/)?e.substr(1,e.length-2):e}function Z(e){var t=[],n=0,i=false,a;while(e.length){if(J(e[n])===i){a=e.splice(0,n);if(a.length){t.push(l.ucs2.encode(a))}i=!i;n=0}else{n++}if(n>=e.length){a=e.splice(0,n);if(a.length){t.push(l.ucs2.encode(a))}}}return t}function J(e){return[32,13,10,9,45].indexOf(e)!==-1}function Q(e){return/[^\u0000-\u00ff]/.test(e)}t.exports=a},{"./color":3,"./fontmetrics":7,"./log":13,"./nodecontainer":14,"./pseudoelementcontainer":18,"./stackingcontext":21,"./textcontainer":25,"./utils":26,punycode:1}],16:[function(e,t,n){var o=e("./xhr");var i=e("./utils");var s=e("./log");var l=e("./clone");var u=i.decode64;function h(e,t,n){var i="withCredentials"in new XMLHttpRequest;if(!t){return Promise.reject("No proxy configured")}var a=f(i);var r=d(t,e,a);return i?o(r):c(n,r,a).then(function(e){return u(e.content)})}var a=0;function r(e,t,n){var i="crossOrigin"in new Image;var a=f(i);var r=d(t,e,a);return i?Promise.resolve(r):c(n,r,a).then(function(e){return"data:"+e.type+";base64,"+e.content})}function c(r,e,o){return new Promise(function(t,n){var i=r.createElement("script");var a=function e(){delete window.html2canvas.proxy[o];r.body.removeChild(i)};window.html2canvas.proxy[o]=function(e){a();t(e)};i.src=e;i.onerror=function(e){a();n(e)};r.body.appendChild(i)})}function f(e){return!e?"html2canvas_"+Date.now()+"_"+ ++a+"_"+Math.round(Math.random()*1e5):""}function d(e,t,n){return e+"?url="+encodeURIComponent(t)+(n.length?"&callback=html2canvas.proxy."+n:"")}function g(r){return function(t){var e=new DOMParser,n;try{n=e.parseFromString(t,"text/html")}catch(e){s("DOMParser not supported, falling back to createHTMLDocument");n=document.implementation.createHTMLDocument("");try{n.open();n.write(t);n.close()}catch(e){s("createHTMLDocument write not supported, falling back to document.body.innerHTML");n.body.innerHTML=t}}var i=n.querySelector("base");if(!i||!i.href.host){var a=n.createElement("base");a.href=r;n.head.insertBefore(a,n.head.firstChild)}return n}}function p(e,t,n,i,a,r){return new h(e,t,window.document).then(g(e)).then(function(e){return l(e,n,i,a,r,0,0)})}n.Proxy=h;n.ProxyURL=r;n.loadUrlDocument=p},{"./clone":2,"./log":13,"./utils":26,"./xhr":28}],17:[function(e,t,n){var r=e("./proxy").ProxyURL;function i(n,i){var e=document.createElement("a");e.href=n;n=e.href;this.src=n;this.image=new Image;var a=this;this.promise=new Promise(function(e,t){a.image.crossOrigin="Anonymous";a.image.onload=e;a.image.onerror=t;new r(n,i,document).then(function(e){a.image.src=e})["catch"](t)})}t.exports=i},{"./proxy":16}],18:[function(e,t,n){var i=e("./nodecontainer");function a(e,t,n){i.call(this,e,t);this.isPseudoElement=true;this.before=n===":before"}a.prototype.cloneTo=function(e){a.prototype.cloneTo.call(this,e);e.isPseudoElement=true;e.before=this.before};a.prototype=Object.create(i.prototype);a.prototype.appendToDOM=function(){if(this.before){this.parent.node.insertBefore(this.node,this.parent.node.firstChild)}else{this.parent.node.appendChild(this.node)}this.parent.node.className+=" "+this.getHideClass()};a.prototype.cleanDOM=function(){this.node.parentNode.removeChild(this.node);this.parent.node.className=this.parent.node.className.replace(this.getHideClass(),"")};a.prototype.getHideClass=function(){return this["PSEUDO_HIDE_ELEMENT_CLASS_"+(this.before?"BEFORE":"AFTER")]};a.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE="___html2canvas___pseudoelement_before";a.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER="___html2canvas___pseudoelement_after";t.exports=a},{"./nodecontainer":14}],19:[function(e,t,n){var l=e("./log");function i(e,t,n,i,a){this.width=e;this.height=t;this.images=n;this.options=i;this.document=a}i.prototype.renderImage=function(e,t,n,i){var a=e.cssInt("paddingLeft"),r=e.cssInt("paddingTop"),o=e.cssInt("paddingRight"),s=e.cssInt("paddingBottom"),l=n.borders;var u=t.width-(l[1].width+l[3].width+a+o);var h=t.height-(l[0].width+l[2].width+r+s);this.drawImage(i,0,0,i.image.width||u,i.image.height||h,t.left+a+l[3].width,t.top+r+l[0].width,u,h)};i.prototype.renderBackground=function(e,t,n){if(t.height>0&&t.width>0){this.renderBackgroundColor(e,t);this.renderBackgroundImage(e,t,n)}};i.prototype.renderBackgroundColor=function(e,t){var n=e.color("backgroundColor");if(!n.isTransparent()){this.rectangle(t.left,t.top,t.width,t.height,n)}};i.prototype.renderBorders=function(e){e.forEach(this.renderBorder,this)};i.prototype.renderBorder=function(e){if(!e.color.isTransparent()&&e.args!==null){this.drawShape(e.args,e.color)}};i.prototype.renderBackgroundImage=function(r,o,s){var e=r.parseBackgroundImages();e.reverse().forEach(function(e,t,n){switch(e.method){case"url":var i=this.images.get(e.args[0]);if(i){this.renderBackgroundRepeating(r,o,i,n.length-(t+1),s)}else{l("Error loading background-image",e.args[0])}break;case"linear-gradient":case"gradient":var a=this.images.get(e.value);if(a){this.renderBackgroundGradient(a,o,s)}else{l("Error loading background-image",e.args[0])}break;case"none":break;default:l("Unknown background-image type",e.args[0])}},this)};i.prototype.renderBackgroundRepeating=function(e,t,n,i,a){var r=e.parseBackgroundSize(t,n.image,i);var o=e.parseBackgroundPosition(t,n.image,i,r);var s=e.parseBackgroundRepeat(i);switch(s){case"repeat-x":case"repeat no-repeat":this.backgroundRepeatShape(n,o,r,t,t.left+a[3],t.top+o.top+a[0],99999,r.height,a);break;case"repeat-y":case"no-repeat repeat":this.backgroundRepeatShape(n,o,r,t,t.left+o.left+a[3],t.top+a[0],r.width,99999,a);break;case"no-repeat":this.backgroundRepeatShape(n,o,r,t,t.left+o.left+a[3],t.top+o.top+a[0],r.width,r.height,a);break;default:this.renderBackgroundRepeat(n,o,r,{top:t.top,left:t.left},a[3],a[0]);break}};t.exports=i},{"./log":13}],20:[function(e,t,n){var i=e("../renderer");var a=e("../lineargradientcontainer");var r=e("../log");function o(e,t){i.apply(this,arguments);this.canvas=this.options.canvas||this.document.createElement("canvas");if(!this.options.canvas){this.canvas.width=e;this.canvas.height=t}this.ctx=this.canvas.getContext("2d");this.taintCtx=this.document.createElement("canvas").getContext("2d");this.ctx.textBaseline="bottom";this.variables={};r("Initialized CanvasRenderer with size",e,"x",t)}o.prototype=Object.create(i.prototype);o.prototype.setFillStyle=function(e){this.ctx.fillStyle=_typeof2(e)==="object"&&!!e.isColor?e.toString():e;return this.ctx};o.prototype.rectangle=function(e,t,n,i,a){this.setFillStyle(a).fillRect(e,t,n,i)};o.prototype.circle=function(e,t,n,i){this.setFillStyle(i);this.ctx.beginPath();this.ctx.arc(e+n/2,t+n/2,n/2,0,Math.PI*2,true);this.ctx.closePath();this.ctx.fill()};o.prototype.circleStroke=function(e,t,n,i,a,r){this.circle(e,t,n,i);this.ctx.strokeStyle=r.toString();this.ctx.stroke()};o.prototype.drawShape=function(e,t){this.shape(e);this.setFillStyle(t).fill()};o.prototype.taints=function(t){if(t.tainted===null){this.taintCtx.drawImage(t.image,0,0);try{this.taintCtx.getImageData(0,0,1,1);t.tainted=false}catch(e){this.taintCtx=document.createElement("canvas").getContext("2d");t.tainted=true}}return t.tainted};o.prototype.drawImage=function(e,t,n,i,a,r,o,s,l){if(!this.taints(e)||this.options.allowTaint){this.ctx.drawImage(e.image,t,n,i,a,r,o,s,l)}};o.prototype.clip=function(e,t,n){this.ctx.save();e.filter(s).forEach(function(e){this.shape(e).clip()},this);t.call(n);this.ctx.restore()};o.prototype.shape=function(e){this.ctx.beginPath();e.forEach(function(e,t){if(e[0]==="rect"){this.ctx.rect.apply(this.ctx,e.slice(1))}else{this.ctx[t===0?"moveTo":e[0]+"To"].apply(this.ctx,e.slice(1))}},this);this.ctx.closePath();return this.ctx};o.prototype.font=function(e,t,n,i,a,r){this.setFillStyle(e).font=[t,n,i,a,r].join(" ").split(",")[0]};o.prototype.fontShadow=function(e,t,n,i){this.setVariable("shadowColor",e.toString()).setVariable("shadowOffsetY",t).setVariable("shadowOffsetX",n).setVariable("shadowBlur",i)};o.prototype.clearShadow=function(){this.setVariable("shadowColor","rgba(0,0,0,0)")};o.prototype.setOpacity=function(e){this.ctx.globalAlpha=e};o.prototype.setTransform=function(e){this.ctx.translate(e.origin[0],e.origin[1]);this.ctx.transform.apply(this.ctx,e.matrix);this.ctx.translate(-e.origin[0],-e.origin[1])};o.prototype.setVariable=function(e,t){if(this.variables[e]!==t){this.variables[e]=this.ctx[e]=t}return this};o.prototype.text=function(e,t,n){this.ctx.fillText(e,t,n)};o.prototype.backgroundRepeatShape=function(e,t,n,i,a,r,o,s,l){var u=[["line",Math.round(a),Math.round(r)],["line",Math.round(a+o),Math.round(r)],["line",Math.round(a+o),Math.round(s+r)],["line",Math.round(a),Math.round(s+r)]];this.clip([u],function(){this.renderBackgroundRepeat(e,t,n,i,l[3],l[0])},this)};o.prototype.renderBackgroundRepeat=function(e,t,n,i,a,r){var o=Math.round(i.left+t.left+a),s=Math.round(i.top+t.top+r);this.setFillStyle(this.ctx.createPattern(this.resizeImage(e,n),"repeat"));this.ctx.translate(o,s);this.ctx.fill();this.ctx.translate(-o,-s)};o.prototype.renderBackgroundGradient=function(e,t){if(e instanceof a){var n=this.ctx.createLinearGradient(t.left+t.width*e.x0,t.top+t.height*e.y0,t.left+t.width*e.x1,t.top+t.height*e.y1);e.colorStops.forEach(function(e){n.addColorStop(e.stop,e.color.toString())});this.rectangle(t.left,t.top,t.width,t.height,n)}};o.prototype.resizeImage=function(e,t){var n=e.image;if(n.width===t.width&&n.height===t.height){return n}var i,a=document.createElement("canvas");a.width=t.width;a.height=t.height;i=a.getContext("2d");i.drawImage(n,0,0,n.width,n.height,0,0,t.width,t.height);return a};function s(e){return e.length>0}t.exports=o},{"../lineargradientcontainer":12,"../log":13,"../renderer":19}],21:[function(e,t,n){var a=e("./nodecontainer");function i(e,t,n,i){a.call(this,n,i);this.ownStacking=e;this.contexts=[];this.children=[];this.opacity=(this.parent?this.parent.stack.opacity:1)*t}i.prototype=Object.create(a.prototype);i.prototype.getParentStack=function(e){var t=this.parent?this.parent.stack:null;return t?t.ownStacking?t:t.getParentStack(e):e.stack};t.exports=i},{"./nodecontainer":14}],22:[function(e,t,n){function i(e){this.rangeBounds=this.testRangeBounds(e);this.cors=this.testCORS();this.svg=this.testSVG()}i.prototype.testRangeBounds=function(e){var t,n,i,a,r=false;if(e.createRange){t=e.createRange();if(t.getBoundingClientRect){n=e.createElement("boundtest");n.style.height="123px";n.style.display="block";e.body.appendChild(n);t.selectNode(n);i=t.getBoundingClientRect();a=i.height;if(a===123){r=true}e.body.removeChild(n)}}return r};i.prototype.testCORS=function(){return typeof(new Image).crossOrigin!=="undefined"};i.prototype.testSVG=function(){var e=new Image;var t=document.createElement("canvas");var n=t.getContext("2d");e.src="data:image/svg+xml,";try{n.drawImage(e,0,0);t.toDataURL()}catch(e){return false}return true};t.exports=i},{}],23:[function(e,t,n){var i=e("./xhr");var a=e("./utils").decode64;function r(e){this.src=e;this.image=null;var n=this;this.promise=this.hasFabric().then(function(){return n.isInline(e)?Promise.resolve(n.inlineFormatting(e)):i(e)}).then(function(t){return new Promise(function(e){window.html2canvas.svg.fabric.loadSVGFromString(t,n.createCanvas.call(n,e))})})}r.prototype.hasFabric=function(){return!window.html2canvas.svg||!window.html2canvas.svg.fabric?Promise.reject(new Error("html2canvas.svg.js is not loaded, cannot render svg")):Promise.resolve()};r.prototype.inlineFormatting=function(e){return/^data:image\/svg\+xml;base64,/.test(e)?this.decode64(this.removeContentType(e)):this.removeContentType(e)};r.prototype.removeContentType=function(e){return e.replace(/^data:image\/svg\+xml(;base64)?,/,"")};r.prototype.isInline=function(e){return/^data:image\/svg\+xml/i.test(e)};r.prototype.createCanvas=function(i){var a=this;return function(e,t){var n=new window.html2canvas.svg.fabric.StaticCanvas("c");a.image=n.lowerCanvasEl;n.setWidth(t.width).setHeight(t.height).add(window.html2canvas.svg.fabric.util.groupSVGElements(e,t)).renderAll();i(n.lowerCanvasEl)}};r.prototype.decode64=function(e){return typeof window.atob==="function"?window.atob(e):a(e)};t.exports=r},{"./utils":26,"./xhr":28}],24:[function(e,t,n){var i=e("./svgcontainer");function a(n,e){this.src=n;this.image=null;var i=this;this.promise=e?new Promise(function(e,t){i.image=new Image;i.image.onload=e;i.image.onerror=t;i.image.src="data:image/svg+xml,"+(new XMLSerializer).serializeToString(n);if(i.image.complete===true){e(i.image)}}):this.hasFabric().then(function(){return new Promise(function(e){window.html2canvas.svg.fabric.parseSVGDocument(n,i.createCanvas.call(i,e))})})}a.prototype=Object.create(i.prototype);t.exports=a},{"./svgcontainer":23}],25:[function(e,t,n){var i=e("./nodecontainer");function a(e,t){i.call(this,e,t)}a.prototype=Object.create(i.prototype);a.prototype.applyTextTransform=function(){this.node.data=this.transform(this.parent.css("textTransform"))};a.prototype.transform=function(e){var t=this.node.data;switch(e){case"lowercase":return t.toLowerCase();case"capitalize":return t.replace(/(^|\s|:|-|\(|\))([a-z])/g,r);case"uppercase":return t.toUpperCase();default:return t}};function r(e,t,n){if(e.length>0){return t+n.toUpperCase()}}t.exports=a},{"./nodecontainer":14}],26:[function(e,t,n){n.smallImage=function e(){return"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"};n.bind=function(e,t){return function(){return e.apply(t,arguments)}};n.decode64=function(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var n=e.length,i,a,r,o,s,l,u,h;var c="";for(i=0;i>4;u=(r&15)<<4|o>>2;h=(o&3)<<6|s;if(o===64){c+=String.fromCharCode(l)}else if(s===64||s===-1){c+=String.fromCharCode(l,u)}else{c+=String.fromCharCode(l,u,h)}}return c};n.getBounds=function(e){if(e.getBoundingClientRect){var t=e.getBoundingClientRect();var n=e.offsetWidth==null?t.width:e.offsetWidth;return{top:t.top,bottom:t.bottom||t.top+t.height,right:t.left+n,left:t.left,width:n,height:e.offsetHeight==null?t.height:e.offsetHeight}}return{}};n.offsetBounds=function(e){var t=e.offsetParent?n.offsetBounds(e.offsetParent):{top:0,left:0};return{top:e.offsetTop+t.top,bottom:e.offsetTop+e.offsetHeight+t.top,right:e.offsetLeft+t.left+e.offsetWidth,left:e.offsetLeft+t.left,width:e.offsetWidth,height:e.offsetHeight}};n.parseBackgrounds=function(e){var t=" \r\n\t",n,i,a,r,o,s=[],l=0,u=0,h,c;var f=function e(){if(n){if(i.substr(0,1)==='"'){i=i.substr(1,i.length-2)}if(i){c.push(i)}if(n.substr(0,1)==="-"&&(r=n.indexOf("-",1)+1)>0){a=n.substr(0,r);n=n.substr(r)}s.push({prefix:a,method:n.toLowerCase(),value:o,args:c,image:null})}c=[];n=a=i=o=""};c=[];n=a=i=o="";e.split("").forEach(function(e){if(l===0&&t.indexOf(e)>-1){return}switch(e){case'"':if(!h){h=e}else if(h===e){h=null}break;case"(":if(h){break}else if(l===0){l=1;o+=e;return}else{u++}break;case")":if(h){break}else if(l===1){if(u===0){l=0;o+=e;f();return}else{u--}}break;case",":if(h){break}else if(l===0){f();return}else if(l===1){if(u===0&&!n.match(/^url$/i)){c.push(i);i="";o+=e;return}}break}o+=e;if(l===0){n+=e}else{i+=e}});f();return s}},{}],27:[function(e,t,n){var i=e("./gradientcontainer");function a(e){i.apply(this,arguments);this.type=e.args[0]==="linear"?i.TYPES.LINEAR:i.TYPES.RADIAL}a.prototype=Object.create(i.prototype);t.exports=a},{"./gradientcontainer":9}],28:[function(e,t,n){function i(i){return new Promise(function(e,t){var n=new XMLHttpRequest;n.open("GET",i);n.onload=function(){if(n.status===200){e(n.responseText)}else{t(new Error(n.statusText))}};n.onerror=function(){t(new Error("Network Error"))};n.send()})}t.exports=i},{}]},{},[4])(4)})});var Mz=function e(t){this.ok=false;this.alpha=1;if(t.charAt(0)=="#"){t=t.substr(1,6)}t=t.replace(/ /g,"");t=t.toLowerCase();var h={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",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",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:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",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",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};t=h[t]||t;var c=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function e(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3]),parseFloat(t[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function e(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function e(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function e(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}];for(var n=0;n3){this.alpha=o[3]}this.ok=true}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r;this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g;this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b;this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha;this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"};this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"};this.toHex=function(){var e=this.r.toString(16);var t=this.g.toString(16);var n=this.b.toString(16);if(e.length==1)e="0"+e;if(t.length==1)t="0"+t;if(n.length==1)n="0"+n;return"#"+e+t+n};this.getHelpXML=function(){var e=new Array;for(var t=0;t "+s.toRGB()+" -> "+s.toHex());o.appendChild(l);o.appendChild(u);r.appendChild(o)}catch(e){}}return r}};var Tz=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259];var Bz=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];function Nz(e,t,n,i){if(isNaN(i)||i<1)return;i|=0;var a,r,o,s,l,u,h,c,f,d,g,p,v,m,y,_,b,w,x,k,S,C,E,A;var R=i+i+1;var M=t-1;var T=n-1;var B=i+1;var N=B*(B+1)/2;var P=new Pz;var D=P;for(o=1;o>I;if(E!=0){E=255/E;e[u]=(c*L>>I)*E;e[u+1]=(f*L>>I)*E;e[u+2]=(d*L>>I)*E}else{e[u]=e[u+1]=e[u+2]=0}c-=p;f-=v;d-=m;g-=y;p-=z.r;v-=z.g;m-=z.b;y-=z.a;s=h+((s=a+i+1)>I;if(E>0){E=255/E;e[s]=(c*L>>I)*E;e[s+1]=(f*L>>I)*E;e[s+2]=(d*L>>I)*E}else{e[s]=e[s+1]=e[s+2]=0}c-=p;f-=v;d-=m;g-=y;p-=z.r;v-=z.g;m-=z.b;y-=z.a;s=a+((s=r+B)65535){e-=65536;var t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}else{return String.fromCharCode(e)}}function s(e){var t=e.slice(1,-1);if(t in i){return i[t]}else if(t.charAt(0)==="#"){return o(parseInt(t.substr(1).replace("x","0x")))}else{r.error("entity not found:"+e);return e}}function t(e){if(e>p){var t=n.substring(p,e).replace(/&#?\w+;/g,s);f&&l(p);a.characters(t,0,e-p);p=e}}function l(e,t){while(e>=h&&(t=c.exec(n))){u=t.index;h=u+t[0].length;f.lineNumber++}f.columnNumber=e-u+1}var u=0;var h=0;var c=/.*(?:\r\n?|\n)|.*$/g;var f=a.locator;var d=[{currentNSMap:e}];var g={};var p=0;while(true){try{var v=n.indexOf("<",p);if(v<0){if(!n.substr(p).match(/^\s*$/)){var m=a.doc;var y=m.createTextNode(n.substr(p));m.appendChild(y);a.currentElement=y}return}if(v>p){t(v)}switch(n.charAt(v+1)){case"/":var _=n.indexOf(">",v+3);var b=n.substring(v+2,_);var w=d.pop();if(_<0){b=n.substring(v+2).replace(/[\s<].*/,"");r.error("end tag name: "+b+" is not complete:"+w.tagName);_=v+1+b.length}else if(b.match(/\sp){p=_}else{t(Math.max(v,p)+1)}}}function Yz(e,t){t.lineNumber=e.lineNumber;t.columnNumber=e.columnNumber;return t}function Xz(e,t,n,i,a,r){var o;var s;var l=++t;var u=Lz;while(true){var h=e.charAt(l);switch(h){case"=":if(u===Iz){o=e.slice(t,l);u=Hz}else if(u===jz){u=Hz}else{throw new Error("attribute equal must after attrName")}break;case"'":case'"':if(u===Hz||u===Iz){if(u===Iz){r.warning('attribute value must after "="');o=e.slice(t,l)}t=l+1;l=e.indexOf(h,t);if(l>0){s=e.slice(t,l).replace(/&#?\w+;/g,a);n.add(o,s,t-1);u=Gz}else{throw new Error("attribute value no end '"+h+"' match")}}else if(u==Vz){s=e.slice(t,l).replace(/&#?\w+;/g,a);n.add(o,s,t);r.warning('attribute "'+o+'" missed start quot('+h+")!!");t=l+1;u=Gz}else{throw new Error('attribute value must after "="')}break;case"/":switch(u){case Lz:n.setTagName(e.slice(t,l));case Gz:case Uz:case Wz:u=Wz;n.closed=true;case Vz:case Iz:case jz:break;default:throw new Error("attribute invalid close char('/')")}break;case"":r.error("unexpected end of input");if(u==Lz){n.setTagName(e.slice(t,l))}return l;case">":switch(u){case Lz:n.setTagName(e.slice(t,l));case Gz:case Uz:case Wz:break;case Vz:case Iz:s=e.slice(t,l);if(s.slice(-1)==="/"){n.closed=true;s=s.slice(0,-1)}case jz:if(u===jz){s=o}if(u==Vz){r.warning('attribute "'+s+'" missed quot(")!!');n.add(o,s.replace(/&#?\w+;/g,a),t)}else{if(i[""]!=="http://www.w3.org/1999/xhtml"||!s.match(/^(?:disabled|checked|selected)$/i)){r.warning('attribute "'+s+'" missed value!! "'+s+'" instead!!')}n.add(s,s,t)}break;case Hz:throw new Error("attribute value missed!!")}return l;case"€":h=" ";default:if(h<=" "){switch(u){case Lz:n.setTagName(e.slice(t,l));u=Uz;break;case Iz:o=e.slice(t,l);u=jz;break;case Vz:var s=e.slice(t,l).replace(/&#?\w+;/g,a);r.warning('attribute "'+s+'" missed quot(")!!');n.add(o,s,t);case Gz:u=Uz;break}}else{switch(u){case jz:var c=n.tagName;if(i[""]!=="http://www.w3.org/1999/xhtml"||!o.match(/^(?:disabled|checked|selected)$/i)){r.warning('attribute "'+o+'" missed value!! "'+o+'" instead2!!')}n.add(o,o,t);t=l;u=Iz;break;case Gz:r.warning('attribute space is required"'+o+'"!!');case Uz:u=Iz;t=l;break;case Hz:u=Vz;t=l;break;case Wz:throw new Error("elements closed character '/' and '>' must be connected to")}}}l++}}function $z(e,t,n){var i=e.tagName;var a=null;var r=e.length;while(r--){var o=e[r];var s=o.qName;var l=o.value;var u=s.indexOf(":");if(u>0){var h=o.prefix=s.slice(0,u);var c=s.slice(u+1);var f=h==="xmlns"&&c}else{c=s;h=null;f=s==="xmlns"&&""}o.localName=c;if(f!==false){if(a==null){a={};Qz(n,n={})}n[f]=a[f]=l;o.uri="http://www.w3.org/2000/xmlns/";t.startPrefixMapping(f,l)}}var r=e.length;while(r--){o=e[r];var h=o.prefix;if(h){if(h==="xml"){o.uri="http://www.w3.org/XML/1998/namespace"}if(h!=="xmlns"){o.uri=n[h||""]}}}var u=i.indexOf(":");if(u>0){h=e.prefix=i.slice(0,u);c=e.localName=i.slice(u+1)}else{h=null;c=e.localName=i}var d=e.uri=n[h||""];t.startElement(d,c,i,e);if(e.closed){t.endElement(d,c,i);if(a){for(h in a){t.endPrefixMapping(h)}}}else{e.currentNSMap=n;e.localNSMap=a;return true}}function Zz(e,t,n,i,a){if(/^(?:script|textarea)$/i.test(n)){var r=e.indexOf("",t);var o=e.substring(t+1,r);if(/[&<]/.test(o)){if(/^script$/i.test(n)){a.characters(o,0,o.length);return r}o=o.replace(/&#?\w+;/g,i);a.characters(o,0,o.length);return r}}return t+1}function Jz(e,t,n,i){var a=i[n];if(a==null){a=e.lastIndexOf("");if(at){n.comment(e,t+4,r-t-4);return r+3}else{i.error("Unclosed comment");return-1}}else{return-1}default:if(e.substr(t+3,6)=="CDATA["){var r=e.indexOf("]]>",t+9);n.startCDATA();n.characters(e,t+9,r-t-9);n.endCDATA();return r+3}var o=aF(e,t);var s=o.length;if(s>1&&/!doctype/i.test(o[0][0])){var l=o[1][0];var u=s>3&&/^public$/i.test(o[2][0])&&o[3][0];var h=s>4&&o[4][0];var c=o[s-1];n.startDTD(l,u&&u.replace(/^(['"])(.*?)\1$/,"$2"),h&&h.replace(/^(['"])(.*?)\1$/,"$2"));n.endDTD();return c.index+c[0].length}}return-1}function tF(e,t,n){var i=e.indexOf("?>",t);if(i){var a=e.substring(t,i).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(a){var r=a[0].length;n.processingInstruction(a[1],a[2]);return i+2}else{return-1}}return-1}function nF(e){}nF.prototype={setTagName:function e(t){if(!Fz.test(t)){throw new Error("invalid tagName:"+t)}this.tagName=t},add:function e(t,n,i){if(!Fz.test(t)){throw new Error("invalid attribute:"+t)}this[this.length++]={qName:t,value:n,offset:i}},length:0,getLocalName:function e(t){return this[t].localName},getLocator:function e(t){return this[t].locator},getQName:function e(t){return this[t].qName},getURI:function e(t){return this[t].uri},getValue:function e(t){return this[t].value}};function iF(e,t){e.__proto__=t;return e}if(!(iF({},iF.prototype)instanceof iF)){iF=function e(t,n){function i(){}i.prototype=n;i=new i;for(n in t){i[n]=t[n]}return i}}function aF(e,t){var n;var i=[];var a=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;a.lastIndex=t;a.exec(e);while(n=a.exec(e)){i.push(n);if(n[1])return i}}var rF=Kz;var oF={XMLReader:rF};function sF(e,t){for(var n in e){t[n]=e[n]}}function lF(e,t){var n=e.prototype;if(Object.create){var i=Object.create(t.prototype);n.__proto__=i}if(!(n instanceof t)){var a=function e(){};a.prototype=t.prototype;a=new a;sF(n,a);e.prototype=n=a}if(n.constructor!=e){if(typeof e!="function"){console.error("unknow Class:"+e)}n.constructor=e}}var uF="http://www.w3.org/1999/xhtml";var hF={};var cF=hF.ELEMENT_NODE=1;var fF=hF.ATTRIBUTE_NODE=2;var dF=hF.TEXT_NODE=3;var gF=hF.CDATA_SECTION_NODE=4;var pF=hF.ENTITY_REFERENCE_NODE=5;var vF=hF.ENTITY_NODE=6;var mF=hF.PROCESSING_INSTRUCTION_NODE=7;var yF=hF.COMMENT_NODE=8;var _F=hF.DOCUMENT_NODE=9;var bF=hF.DOCUMENT_TYPE_NODE=10;var wF=hF.DOCUMENT_FRAGMENT_NODE=11;var xF=hF.NOTATION_NODE=12;var kF={};var SF={};var CF=kF.INDEX_SIZE_ERR=(SF[1]="Index size error",1);var EF=kF.DOMSTRING_SIZE_ERR=(SF[2]="DOMString size error",2);var AF=kF.HIERARCHY_REQUEST_ERR=(SF[3]="Hierarchy request error",3);var RF=kF.WRONG_DOCUMENT_ERR=(SF[4]="Wrong document",4);var MF=kF.INVALID_CHARACTER_ERR=(SF[5]="Invalid character",5);var TF=kF.NO_DATA_ALLOWED_ERR=(SF[6]="No data allowed",6);var BF=kF.NO_MODIFICATION_ALLOWED_ERR=(SF[7]="No modification allowed",7);var NF=kF.NOT_FOUND_ERR=(SF[8]="Not found",8);var PF=kF.NOT_SUPPORTED_ERR=(SF[9]="Not supported",9);var DF=kF.INUSE_ATTRIBUTE_ERR=(SF[10]="Attribute in use",10);var OF=kF.INVALID_STATE_ERR=(SF[11]="Invalid state",11);var zF=kF.SYNTAX_ERR=(SF[12]="Syntax error",12);var FF=kF.INVALID_MODIFICATION_ERR=(SF[13]="Invalid modification",13);var LF=kF.NAMESPACE_ERR=(SF[14]="Invalid namespace",14);var IF=kF.INVALID_ACCESS_ERR=(SF[15]="Invalid access",15);function jF(e,t){if(t instanceof Error){var n=t}else{n=this;Error.call(this,SF[e]);this.message=SF[e];if(Error.captureStackTrace)Error.captureStackTrace(this,jF)}n.code=e;if(t)this.message=this.message+": "+t;return n}jF.prototype=Error.prototype;sF(kF,jF);function HF(){}HF.prototype={length:0,item:function e(t){return this[t]||null},toString:function e(t,n){for(var i=[],a=0;a=0){var a=t.length-1;while(i0},lookupPrefix:function e(t){var n=this;while(n){var i=n._nsMap;if(i){for(var a in i){if(i[a]==t){return a}}}n=n.nodeType==fF?n.ownerDocument:n.parentNode}return null},lookupNamespaceURI:function e(t){var n=this;while(n){var i=n._nsMap;if(i){if(t in i){return i[t]}}n=n.nodeType==fF?n.ownerDocument:n.parentNode}return null},isDefaultNamespace:function e(t){var n=this.lookupPrefix(t);return n==null}};function $F(e){return e=="<"&&"<"||e==">"&&">"||e=="&"&&"&"||e=='"'&&"""||"&#"+e.charCodeAt()+";"}sF(hF,XF);sF(hF,XF.prototype);function ZF(e,t){if(t(e)){return true}if(e=e.firstChild){do{if(ZF(e,t)){return true}}while(e=e.nextSibling)}}function JF(){}function QF(e,t,n){e&&e._inc++;var i=n.namespaceURI;if(i=="http://www.w3.org/2000/xmlns/"){t._nsMap[n.prefix?n.localName:""]=n.value}}function eL(e,t,n,i){e&&e._inc++;var a=n.namespaceURI;if(a=="http://www.w3.org/2000/xmlns/"){delete t._nsMap[n.prefix?n.localName:""]}}function tL(e,t,n){if(e&&e._inc){e._inc++;var i=t.childNodes;if(n){i[i.length++]=n}else{var a=t.firstChild;var r=0;while(a){i[r++]=a;a=a.nextSibling}i.length=r}}}function nL(e,t){var n=t.previousSibling;var i=t.nextSibling;if(n){n.nextSibling=i}else{e.firstChild=i}if(i){i.previousSibling=n}else{e.lastChild=n}tL(e.ownerDocument,e);return t}function iL(e,t,n){var i=t.parentNode;if(i){i.removeChild(t)}if(t.nodeType===wF){var a=t.firstChild;if(a==null){return t}var r=t.lastChild}else{a=r=t}var o=n?n.previousSibling:e.lastChild;a.previousSibling=o;r.nextSibling=n;if(o){o.nextSibling=a}else{e.firstChild=a}if(n==null){e.lastChild=r}else{n.previousSibling=r}do{a.parentNode=e}while(a!==r&&(a=a.nextSibling));tL(e.ownerDocument||e,e);if(t.nodeType==wF){t.firstChild=t.lastChild=null}return t}function aL(e,t){var n=t.parentNode;if(n){var i=e.lastChild;n.removeChild(t);var i=e.lastChild}var i=e.lastChild;t.parentNode=e;t.previousSibling=i;t.nextSibling=null;if(i){i.nextSibling=t}else{e.firstChild=t}e.lastChild=t;tL(e.ownerDocument,e,t);return t}JF.prototype={nodeName:"#document",nodeType:_F,doctype:null,documentElement:null,_inc:1,insertBefore:function e(t,n){if(t.nodeType==wF){var i=t.firstChild;while(i){var a=i.nextSibling;this.insertBefore(i,n);i=a}return t}if(this.documentElement==null&&t.nodeType==cF){this.documentElement=t}return iL(this,t,n),t.ownerDocument=this,t},removeChild:function e(t){if(this.documentElement==t){this.documentElement=null}return nL(this,t)},importNode:function e(t,n){return wL(this,t,n)},getElementById:function e(t){var n=null;ZF(this.documentElement,function(e){if(e.nodeType==cF){if(e.getAttribute("id")==t){n=e;return true}}});return n},createElement:function e(t){var n=new rL;n.ownerDocument=this;n.nodeName=t;n.tagName=t;n.childNodes=new HF;var i=n.attributes=new UF;i._ownerElement=n;return n},createDocumentFragment:function e(){var t=new pL;t.ownerDocument=this;t.childNodes=new HF;return t},createTextNode:function e(t){var n=new lL;n.ownerDocument=this;n.appendData(t);return n},createComment:function e(t){var n=new uL;n.ownerDocument=this;n.appendData(t);return n},createCDATASection:function e(t){var n=new hL;n.ownerDocument=this;n.appendData(t);return n},createProcessingInstruction:function e(t,n){var i=new vL;i.ownerDocument=this;i.tagName=i.target=t;i.nodeValue=i.data=n;return i},createAttribute:function e(t){var n=new oL;n.ownerDocument=this;n.name=t;n.nodeName=t;n.localName=t;n.specified=true;return n},createEntityReference:function e(t){var n=new gL;n.ownerDocument=this;n.nodeName=t;return n},createElementNS:function e(t,n){var i=new rL;var a=n.split(":");var r=i.attributes=new UF;i.childNodes=new HF;i.ownerDocument=this;i.nodeName=n;i.tagName=n;i.namespaceURI=t;if(a.length==2){i.prefix=a[0];i.localName=a[1]}else{i.localName=n}r._ownerElement=i;return i},createAttributeNS:function e(t,n){var i=new oL;var a=n.split(":");i.ownerDocument=this;i.nodeName=n;i.name=n;i.namespaceURI=t;i.specified=true;if(a.length==2){i.prefix=a[0];i.localName=a[1]}else{i.localName=n}return i}};lF(JF,XF);function rL(){this._nsMap={}}rL.prototype={nodeType:cF,hasAttribute:function e(t){return this.getAttributeNode(t)!=null},getAttribute:function e(t){var n=this.getAttributeNode(t);return n&&n.value||""},getAttributeNode:function e(t){return this.attributes.getNamedItem(t)},setAttribute:function e(t,n){var i=this.ownerDocument.createAttribute(t);i.value=i.nodeValue=""+n;this.setAttributeNode(i)},removeAttribute:function e(t){var n=this.getAttributeNode(t);n&&this.removeAttributeNode(n)},appendChild:function e(t){if(t.nodeType===wF){return this.insertBefore(t,null)}else{return aL(this,t)}},setAttributeNode:function e(t){return this.attributes.setNamedItem(t)},setAttributeNodeNS:function e(t){return this.attributes.setNamedItemNS(t)},removeAttributeNode:function e(t){return this.attributes.removeNamedItem(t.nodeName)},removeAttributeNS:function e(t,n){var i=this.getAttributeNodeNS(t,n);i&&this.removeAttributeNode(i)},hasAttributeNS:function e(t,n){return this.getAttributeNodeNS(t,n)!=null},getAttributeNS:function e(t,n){var i=this.getAttributeNodeNS(t,n);return i&&i.value||""},setAttributeNS:function e(t,n,i){var a=this.ownerDocument.createAttributeNS(t,n);a.value=a.nodeValue=""+i;this.setAttributeNode(a)},getAttributeNodeNS:function e(t,n){return this.attributes.getNamedItemNS(t,n)},getElementsByTagName:function e(i){return new VF(this,function(t){var n=[];ZF(t,function(e){if(e!==t&&e.nodeType==cF&&(i==="*"||e.tagName==i)){n.push(e)}});return n})},getElementsByTagNameNS:function e(i,a){return new VF(this,function(t){var n=[];ZF(t,function(e){if(e!==t&&e.nodeType===cF&&(i==="*"||e.namespaceURI===i)&&(a==="*"||e.localName==a)){n.push(e)}});return n})}};JF.prototype.getElementsByTagName=rL.prototype.getElementsByTagName;JF.prototype.getElementsByTagNameNS=rL.prototype.getElementsByTagNameNS;lF(rL,XF);function oL(){}oL.prototype.nodeType=fF;lF(oL,XF);function sL(){}sL.prototype={data:"",substringData:function e(t,n){return this.data.substring(t,t+n)},appendData:function e(t){t=this.data+t;this.nodeValue=this.data=t;this.length=t.length},insertData:function e(t,n){this.replaceData(t,0,n)},appendChild:function e(t){throw new Error(SF[AF])},deleteData:function e(t,n){this.replaceData(t,n,"")},replaceData:function e(t,n,i){var a=this.data.substring(0,t);var r=this.data.substring(t+n);i=a+i+r;this.nodeValue=this.data=i;this.length=i.length}};lF(sL,XF);function lL(){}lL.prototype={nodeName:"#text",nodeType:dF,splitText:function e(t){var n=this.data;var i=n.substring(t);n=n.substring(0,t);this.data=this.nodeValue=n;this.length=n.length;var a=this.ownerDocument.createTextNode(i);if(this.parentNode){this.parentNode.insertBefore(a,this.nextSibling)}return a}};lF(lL,sL);function uL(){}uL.prototype={nodeName:"#comment",nodeType:yF};lF(uL,sL);function hL(){}hL.prototype={nodeName:"#cdata-section",nodeType:gF};lF(hL,sL);function cL(){}cL.prototype.nodeType=bF;lF(cL,XF);function fL(){}fL.prototype.nodeType=xF;lF(fL,XF);function dL(){}dL.prototype.nodeType=vF;lF(dL,XF);function gL(){}gL.prototype.nodeType=pF;lF(gL,XF);function pL(){}pL.prototype.nodeName="#document-fragment";pL.prototype.nodeType=wF;lF(pL,XF);function vL(){}vL.prototype.nodeType=mF;lF(vL,XF);function mL(){}mL.prototype.serializeToString=function(e,t,n){return yL.call(e,t,n)};XF.prototype.toString=yL;function yL(e,t){var n=[];var i=this.nodeType==9?this.documentElement:this;var a=i.prefix;var r=i.namespaceURI;if(r&&a==null){var a=i.lookupPrefix(r);if(a==null){var o=[{namespace:r,prefix:null}]}}bL(this,n,e,t,o);return n.join("")}function _L(e,t,n){var i=e.prefix||"";var a=e.namespaceURI;if(!i&&!a){return false}if(i==="xml"&&a==="http://www.w3.org/XML/1998/namespace"||a=="http://www.w3.org/2000/xmlns/"){return false}var r=n.length;while(r--){var o=n[r];if(o.prefix==i){return o.namespace!=a}}return true}function bL(e,t,n,i,a){if(i){e=i(e);if(e){if(typeof e=="string"){t.push(e);return}}else{return}}switch(e.nodeType){case cF:if(!a)a=[];var r=a.length;var o=e.attributes;var s=o.length;var l=e.firstChild;var u=e.tagName;n=uF===e.namespaceURI||n;t.push("<",u);for(var h=0;h");if(n&&/^script$/i.test(u)){while(l){if(l.data){t.push(l.data)}else{bL(l,t,n,i,a)}l=l.nextSibling}}else{while(l){bL(l,t,n,i,a);l=l.nextSibling}}t.push("")}else{t.push("/>")}return;case _F:case wF:var l=e.firstChild;while(l){bL(l,t,n,i,a);l=l.nextSibling}return;case fF:return t.push(" ",e.name,'="',e.value.replace(/[<&"]/g,$F),'"');case dF:return t.push(e.data.replace(/[<&]/g,$F));case gF:return t.push("");case yF:return t.push("\x3c!--",e.data,"--\x3e");case bF:var p=e.publicId;var v=e.systemId;t.push("')}else if(v&&v!="."){t.push(' SYSTEM "',v,'">')}else{var m=e.internalSubset;if(m){t.push(" [",m,"]")}t.push(">")}return;case mF:return t.push("");case pF:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function wL(e,t,n){var i;switch(t.nodeType){case cF:i=t.cloneNode(false);i.ownerDocument=e;case wF:break;case fF:n=true;break}if(!i){i=t.cloneNode(false)}i.ownerDocument=e;i.parentNode=null;if(n){var a=t.firstChild;while(a){i.appendChild(wL(e,a,n));a=a.nextSibling}}return i}function xL(e,t,n){var i=new t.constructor;for(var a in t){var r=t[a];if(_typeof2(r)!="object"){if(r!=i[a]){i[a]=r}}}if(t.childNodes){i.childNodes=new HF}i.ownerDocument=e;switch(i.nodeType){case cF:var o=t.attributes;var s=i.attributes=new UF;var l=o.length;s._ownerElement=i;for(var u=0;u",amp:"&",quot:'"',apos:"'"};if(o){a.setDocumentLocator(o)}i.errorHandler=u(r,a,o);i.domBuilder=n.domBuilder||a;if(/\/x?html?$/.test(t)){l.nbsp=" ";l.copy="©";s[""]="http://www.w3.org/1999/xhtml"}s.xml=s.xml||"http://www.w3.org/XML/1998/namespace";if(e){i.parse(e,s,l)}else{i.errorHandler.error("invalid doc source")}return a.doc};function u(i,e,a){if(!i){if(e instanceof h){return e}i=e}var r={};var o=i instanceof Function;a=a||{};function t(t){var n=i[t];if(!n&&o){n=i.length==2?function(e){i(t,e)}:i}r[t]=n&&function(e){n("[xmldom "+t+"]\t"+e+s(a))}||function(){}}t("warning");t("error");t("fatalError");return r}function h(){this.cdata=false}function c(e,t){t.lineNumber=e.lineNumber;t.columnNumber=e.columnNumber}h.prototype={startDocument:function e(){this.doc=(new i).createDocument(null,null,null);if(this.locator){this.doc.documentURI=this.locator.systemId}},startElement:function e(t,n,i,a){var r=this.doc;var o=r.createElementNS(t,i||n);var s=a.length;f(this,o);this.currentElement=o;this.locator&&c(this.locator,o);for(var l=0;l=t+n||t){return new java.lang.String(e,t,n)+""}return e}}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){h.prototype[e]=function(){return null}});function f(e,t){if(!e.currentElement){e.doc.appendChild(t)}else{e.currentElement.appendChild(t)}}var d=oF.XMLReader;var i=t.DOMImplementation=AL.DOMImplementation;t.XMLSerializer=AL.XMLSerializer;t.DOMParser=n});function ML(e,t,n){if(e==null&&t==null&&n==null){var i=document.querySelectorAll("svg");for(var a=0;a~\.\[:]+)/g;var n=/(\.[^\s\+>~\.\[:]+)/g;var i=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi;var o=/(:[\w-]+\([^\)]*\))/gi;var s=/(:[^\s\+>~\.\[:]+)/g;var l=/([^\s\+>~\.\[:]+)/g;var u=function e(t,n){var i=a.match(t);if(i==null){return}r[n]+=i.length;a=a.replace(t," ")};a=a.replace(/:not\(([^\)]*)\)/g," $1 ");a=a.replace(/{[^]*/gm," ");u(e,1);u(t,0);u(n,1);u(i,2);u(o,1);u(s,1);a=a.replace(/[\*\s\+>~]/g," ");a=a.replace(/[#\.]/g," ");u(l,2);return r.join("")}function NL(e){var N={opts:e};var u=TL();if(typeof CanvasRenderingContext2D!="undefined"){CanvasRenderingContext2D.prototype.drawSvg=function(e,t,n,i,a,r){var o={ignoreMouse:true,ignoreAnimation:true,ignoreDimensions:true,ignoreClear:true,offsetX:t,offsetY:n,scaleWidth:i,scaleHeight:a};for(var s in r){if(r.hasOwnProperty(s)){o[s]=r[s]}}ML(this.canvas,e,o)}}N.FRAMERATE=30;N.MAX_VIRTUAL_PIXELS=3e4;N.log=function(e){};if(N.opts.log==true&&typeof console!="undefined"){N.log=function(e){console.log(e)}}N.init=function(e){var t=0;N.UniqueId=function(){t++;return"canvg"+t};N.Definitions={};N.Styles={};N.StylesSpecificity={};N.Animations=[];N.Images=[];N.ctx=e;N.ViewPort=new function(){this.viewPorts=[];this.Clear=function(){this.viewPorts=[]};this.SetCurrent=function(e,t){this.viewPorts.push({width:e,height:t})};this.RemoveCurrent=function(){this.viewPorts.pop()};this.Current=function(){return this.viewPorts[this.viewPorts.length-1]};this.width=function(){return this.Current().width};this.height=function(){return this.Current().height};this.ComputeSize=function(e){if(e!=null&&typeof e=="number")return e;if(e=="x")return this.width();if(e=="y")return this.height();return Math.sqrt(Math.pow(this.width(),2)+Math.pow(this.height(),2))/Math.sqrt(2)}}};N.init();N.ImagesLoaded=function(){for(var e=0;e]*>/,"");var t=new ActiveXObject("Microsoft.XMLDOM");t.async="false";t.loadXML(e);return t}};N.Property=function(e,t){this.name=e;this.value=t};N.Property.prototype.getValue=function(){return this.value};N.Property.prototype.hasValue=function(){return this.value!=null&&this.value!=""};N.Property.prototype.numValue=function(){if(!this.hasValue())return 0;var e=parseFloat(this.value);if((this.value+"").match(/%$/)){e=e/100}return e};N.Property.prototype.valueOrDefault=function(e){if(this.hasValue())return this.value;return e};N.Property.prototype.numValueOrDefault=function(e){if(this.hasValue())return this.numValue();return e};N.Property.prototype.addOpacity=function(e){var t=this.value;if(e.value!=null&&e.value!=""&&typeof this.value=="string"){var n=new Mz(this.value);if(n.ok){t="rgba("+n.r+", "+n.g+", "+n.b+", "+e.numValue()+")"}}return new N.Property(this.name,t)};N.Property.prototype.getDefinition=function(){var e=this.value.match(/#([^\)'"]+)/);if(e){e=e[1]}if(!e){e=this.value}return N.Definitions[e]};N.Property.prototype.isUrlDefinition=function(){return this.value.indexOf("url(")==0};N.Property.prototype.getFillStyleDefinition=function(e,t){var n=this.getDefinition();if(n!=null&&n.createGradient){return n.createGradient(N.ctx,e,t)}if(n!=null&&n.createPattern){if(n.getHrefAttribute().hasValue()){var i=n.attribute("patternTransform");n=n.getHrefAttribute().getDefinition();if(i.hasValue()){n.attribute("patternTransform",true).value=i.value}}return n.createPattern(N.ctx,e)}return null};N.Property.prototype.getDPI=function(e){return 96};N.Property.prototype.getEM=function(e){var t=12;var n=new N.Property("fontSize",N.Font.Parse(N.ctx.font).fontSize);if(n.hasValue())t=n.toPixels(e);return t};N.Property.prototype.getUnits=function(){var e=this.value+"";return e.replace(/[0-9\.\-]/g,"")};N.Property.prototype.toPixels=function(e,t){if(!this.hasValue())return 0;var n=this.value+"";if(n.match(/em$/))return this.numValue()*this.getEM(e);if(n.match(/ex$/))return this.numValue()*this.getEM(e)/2;if(n.match(/px$/))return this.numValue();if(n.match(/pt$/))return this.numValue()*this.getDPI(e)*(1/72);if(n.match(/pc$/))return this.numValue()*15;if(n.match(/cm$/))return this.numValue()*this.getDPI(e)/2.54;if(n.match(/mm$/))return this.numValue()*this.getDPI(e)/25.4;if(n.match(/in$/))return this.numValue()*this.getDPI(e);if(n.match(/%$/))return this.numValue()*N.ViewPort.ComputeSize(e);var i=this.numValue();if(t&&i<1)return i*N.ViewPort.ComputeSize(e);return i};N.Property.prototype.toMilliseconds=function(){if(!this.hasValue())return 0;var e=this.value+"";if(e.match(/s$/))return this.numValue()*1e3;if(e.match(/ms$/))return this.numValue();return this.numValue()};N.Property.prototype.toRadians=function(){if(!this.hasValue())return 0;var e=this.value+"";if(e.match(/deg$/))return this.numValue()*(Math.PI/180);if(e.match(/grad$/))return this.numValue()*(Math.PI/200);if(e.match(/rad$/))return this.numValue();return this.numValue()*(Math.PI/180)};var t={baseline:"alphabetic","before-edge":"top","text-before-edge":"top",middle:"middle",central:"middle","after-edge":"bottom","text-after-edge":"bottom",ideographic:"ideographic",alphabetic:"alphabetic",hanging:"hanging",mathematical:"alphabetic"};N.Property.prototype.toTextBaseline=function(){if(!this.hasValue())return null;return t[this.value]};N.Font=new function(){this.Styles="normal|italic|oblique|inherit";this.Variants="normal|small-caps|inherit";this.Weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit";this.CreateFont=function(e,t,n,i,a,r){var o=r!=null?this.Parse(r):this.CreateFont("","","","","",N.ctx.font);return{fontFamily:a||o.fontFamily,fontSize:i||o.fontSize,fontStyle:e||o.fontStyle,fontWeight:n||o.fontWeight,fontVariant:t||o.fontVariant,toString:function e(){return[this.fontStyle,this.fontVariant,this.fontWeight,this.fontSize,this.fontFamily].join(" ")}}};var o=this;this.Parse=function(e){var t={};var n=N.trim(N.compressSpaces(e||"")).split(" ");var i={fontSize:false,fontStyle:false,fontWeight:false,fontVariant:false};var a="";for(var r=0;rthis.x2)this.x2=e}if(t!=null){if(isNaN(this.y1)||isNaN(this.y2)){this.y1=t;this.y2=t}if(tthis.y2)this.y2=t}};this.addX=function(e){this.addPoint(e,null)};this.addY=function(e){this.addPoint(null,e)};this.addBoundingBox=function(e){this.addPoint(e.x1,e.y1);this.addPoint(e.x2,e.y2)};this.addQuadraticCurve=function(e,t,n,i,a,r){var o=e+2/3*(n-e);var s=t+2/3*(i-t);var l=o+1/3*(a-e);var u=s+1/3*(r-t);this.addBezierCurve(e,t,o,l,s,u,a,r)};this.addBezierCurve=function(e,t,n,i,a,r,o,s){var l=[e,t],u=[n,i],h=[a,r],c=[o,s];this.addPoint(l[0],l[1]);this.addPoint(c[0],c[1]);for(var f=0;f<=1;f++){var d=function e(t){return Math.pow(1-t,3)*l[f]+3*Math.pow(1-t,2)*t*u[f]+3*(1-t)*Math.pow(t,2)*h[f]+Math.pow(t,3)*c[f]};var g=6*l[f]-12*u[f]+6*h[f];var p=-3*l[f]+9*u[f]-9*h[f]+3*c[f];var v=3*u[f]-3*l[f];if(p==0){if(g==0)continue;var m=-v/g;if(0=0;t--){this.transforms[t].unapply(e)}};this.applyToPoint=function(e){for(var t=0;ta){this.styles[i]=t[i];this.stylesSpecificity[i]=n}}}}}};if(r!=null&&r.nodeType==1){for(var e=0;e0){e.push([this.points[this.points.length-1],e[e.length-1][1]])}return e}};N.Element.polyline.prototype=new N.Element.PathElementBase;N.Element.polygon=function(e){this.base=N.Element.polyline;this.base(e);this.basePath=this.path;this.path=function(e){var t=this.basePath(e);if(e!=null){e.lineTo(this.points[0].x,this.points[0].y);e.closePath()}return t}};N.Element.polygon.prototype=new N.Element.polyline;N.Element.path=function(e){this.base=N.Element.PathElementBase;this.base(e);var t=this.attribute("d").value;t=t.replace(/,/gm," ");for(var n=0;n<2;n++){t=t.replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2")}t=t.replace(/([^\s])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2");t=t.replace(/([0-9])([+\-])/gm,"$1 $2");for(var n=0;n<2;n++){t=t.replace(/(\.[0-9]*)(\.)/gm,"$1 $2")}t=t.replace(/([Aa](\s+[0-9]+){3})\s+([01])\s*([01])/gm,"$1 $3 $4 ");t=N.compressSpaces(t);t=N.trim(t);this.PathParser=new function(e){this.tokens=e.split(" ");this.reset=function(){this.i=-1;this.command="";this.previousCommand="";this.start=new N.Point(0,0);this.control=new N.Point(0,0);this.current=new N.Point(0,0);this.points=[];this.angles=[]};this.isEnd=function(){return this.i>=this.tokens.length-1};this.isCommandOrEnd=function(){if(this.isEnd())return true;return this.tokens[this.i+1].match(/^[A-Za-z]$/)!=null};this.isRelativeCommand=function(){switch(this.command){case"m":case"l":case"h":case"v":case"c":case"s":case"q":case"t":case"a":case"z":return true}return false};this.getToken=function(){this.i++;return this.tokens[this.i]};this.getScalar=function(){return parseFloat(this.getToken())};this.nextCommand=function(){this.previousCommand=this.command;this.command=this.getToken()};this.getPoint=function(){var e=new N.Point(this.getScalar(),this.getScalar());return this.makeAbsolute(e)};this.getAsControlPoint=function(){var e=this.getPoint();this.control=e;return e};this.getAsCurrentPoint=function(){var e=this.getPoint();this.current=e;return e};this.getReflectedControlPoint=function(){if(this.previousCommand.toLowerCase()!="c"&&this.previousCommand.toLowerCase()!="s"&&this.previousCommand.toLowerCase()!="q"&&this.previousCommand.toLowerCase()!="t"){return this.current}var e=new N.Point(2*this.current.x-this.control.x,2*this.current.y-this.control.y);return e};this.makeAbsolute=function(e){if(this.isRelativeCommand()){e.x+=this.current.x;e.y+=this.current.y}return e};this.addMarker=function(e,t,n){if(n!=null&&this.angles.length>0&&this.angles[this.angles.length-1]==null){this.angles[this.angles.length-1]=this.points[this.points.length-1].angleTo(n)}this.addMarkerAngle(e,t==null?null:t.angleTo(e))};this.addMarkerAngle=function(e,t){this.points.push(e);this.angles.push(t)};this.getMarkerPoints=function(){return this.points};this.getMarkerAngles=function(){for(var e=0;e1){h*=Math.sqrt(v);c*=Math.sqrt(v)}var m=(d==g?-1:1)*Math.sqrt((Math.pow(h,2)*Math.pow(c,2)-Math.pow(h,2)*Math.pow(p.y,2)-Math.pow(c,2)*Math.pow(p.x,2))/(Math.pow(h,2)*Math.pow(p.y,2)+Math.pow(c,2)*Math.pow(p.x,2)));if(isNaN(m))m=0;var y=new N.Point(m*h*p.y/c,m*-c*p.x/h);var _=new N.Point((o.x+u.x)/2+Math.cos(f)*y.x-Math.sin(f)*y.y,(o.y+u.y)/2+Math.sin(f)*y.x+Math.cos(f)*y.y);var b=function e(t){return Math.sqrt(Math.pow(t[0],2)+Math.pow(t[1],2))};var w=function e(t,n){return(t[0]*n[0]+t[1]*n[1])/(b(t)*b(n))};var x=function e(t,n){return(t[0]*n[1]=1)E=0;var A=1-g?1:-1;var R=k+A*(E/2);var M=new N.Point(_.x+h*Math.cos(R),_.y+c*Math.sin(R));t.addMarkerAngle(M,R-A*Math.PI/2);t.addMarkerAngle(u,R-A*Math.PI);n.addPoint(u.x,u.y);if(e!=null){var w=h>c?h:c;var T=h>c?1:h/c;var B=h>c?c/h:1;e.translate(_.x,_.y);e.rotate(f);e.scale(T,B);e.arc(0,0,w,k,k+E,1-g);e.scale(1/T,1/B);e.rotate(-f);e.translate(-_.x,-_.y)}}break;case"Z":case"z":if(e!=null)e.closePath();t.current=t.start}}return n};this.getMarkers=function(){var e=this.PathParser.getMarkerPoints();var t=this.PathParser.getMarkerAngles();var n=[];for(var i=0;i1)this.offset=1;var t=this.style("stop-color",true);if(t.value=="")t.value="#000";if(this.style("stop-opacity").hasValue())t=t.addOpacity(this.style("stop-opacity"));this.color=t.value};N.Element.stop.prototype=new N.Element.ElementBase;N.Element.AnimateBase=function(e){this.base=N.Element.ElementBase;this.base(e);N.Animations.push(this);this.duration=0;this.begin=this.attribute("begin").toMilliseconds();this.maxDuration=this.begin+this.attribute("dur").toMilliseconds();this.getProperty=function(){var e=this.attribute("attributeType").value;var t=this.attribute("attributeName").value;if(e=="CSS"){return this.parent.style(t,true)}return this.parent.attribute(t,true)};this.initialValue=null;this.initialUnits="";this.removed=false;this.calcValue=function(){return""};this.update=function(e){if(this.initialValue==null){this.initialValue=this.getProperty().value;this.initialUnits=this.getProperty().getUnits()}if(this.duration>this.maxDuration){if(this.attribute("repeatCount").value=="indefinite"||this.attribute("repeatDur").value=="indefinite"){this.duration=0}else if(this.attribute("fill").valueOrDefault("remove")=="freeze"&&!this.frozen){this.frozen=true;this.parent.animationFrozen=true;this.parent.animationFrozenValue=this.getProperty().value}else if(this.attribute("fill").valueOrDefault("remove")=="remove"&&!this.removed){this.removed=true;this.getProperty().value=this.parent.animationFrozen?this.parent.animationFrozenValue:this.initialValue;return true}return false}this.duration=this.duration+e;var t=false;if(this.beginn&&o.attribute("x").hasValue())break;a+=o.measureTextRecursive(e)}return-1*(i=="end"?a:a/2)}return 0};this.renderChild=function(e,t,n,i){var a=n.children[i];if(a.attribute("x").hasValue()){a.x=a.attribute("x").toPixels("x")+t.getAnchorDelta(e,n,i);if(a.attribute("dx").hasValue())a.x+=a.attribute("dx").toPixels("x")}else{if(a.attribute("dx").hasValue())t.x+=a.attribute("dx").toPixels("x");a.x=t.x}t.x=a.x+a.measureText(e);if(a.attribute("y").hasValue()){a.y=a.attribute("y").toPixels("y");if(a.attribute("dy").hasValue())a.y+=a.attribute("dy").toPixels("y")}else{if(a.attribute("dy").hasValue())t.y+=a.attribute("dy").toPixels("y");a.y=t.y}t.y=a.y;a.render(e);for(var i=0;i0&&t[n-1]!=" "&&n0&&t[n-1]!=" "&&(n==t.length-1||t[n+1]==" "))r="initial";if(typeof e.glyphs[i]!="undefined"){a=e.glyphs[i][r];if(a==null&&e.glyphs[i].type=="glyph")a=e.glyphs[i]}}else{a=e.glyphs[i]}if(a==null)a=e.missingGlyph;return a};this.renderChildren=function(e){var t=this.parent.style("font-family").getDefinition();if(t!=null){var n=this.parent.style("font-size").numValueOrDefault(N.Font.Parse(N.ctx.font).fontSize);var i=this.parent.style("font-style").valueOrDefault(N.Font.Parse(N.ctx.font).fontStyle);var a=this.getText();if(t.isRTL)a=a.split("").reverse().join("");var r=N.ToNumberArray(this.parent.attribute("dx").value);for(var o=0;o0){return""}return this.text}};N.Element.tspan.prototype=new N.Element.TextElementBase;N.Element.tref=function(e){this.base=N.Element.TextElementBase;this.base(e);this.getText=function(){var e=this.getHrefAttribute().getDefinition();if(e!=null)return e.children[0].getText()}};N.Element.tref.prototype=new N.Element.TextElementBase;N.Element.a=function(e){this.base=N.Element.TextElementBase;this.base(e);this.hasText=e.childNodes.length>0;for(var t=0;t0){var n=new N.Element.g;n.children=this.children;n.parent=this;n.render(e)}};this.onclick=function(){window.open(this.getHrefAttribute().value)};this.onmousemove=function(){N.ctx.canvas.style.cursor="pointer"}};N.Element.a.prototype=new N.Element.TextElementBase;N.Element.image=function(e){this.base=N.Element.RenderedElementBase;this.base(e);var t=this.getHrefAttribute().value;if(t==""){return}var r=t.match(/\.svg$/);N.Images.push(this);this.loaded=false;if(!r){this.img=document.createElement("img");if(N.opts["useCORS"]==true){this.img.crossOrigin="Anonymous"}var n=this;this.img.onload=function(){n.loaded=true};this.img.onerror=function(){N.log('ERROR: image "'+t+'" not found');n.loaded=true};this.img.src=t}else{this.img=N.ajax(t);this.loaded=true}this.renderChildren=function(e){var t=this.attribute("x").toPixels("x");var n=this.attribute("y").toPixels("y");var i=this.attribute("width").toPixels("x");var a=this.attribute("height").toPixels("y");if(i==0||a==0)return;e.save();if(r){e.drawSvg(this.img,t,n,i,a)}else{e.translate(t,n);N.AspectRatio(e,this.attribute("preserveAspectRatio").value,i,this.img.width,a,this.img.height,0,0);e.drawImage(this.img,0,0)}e.restore()};this.getBoundingBox=function(){var e=this.attribute("x").toPixels("x");var t=this.attribute("y").toPixels("y");var n=this.attribute("width").toPixels("x");var i=this.attribute("height").toPixels("y");return new N.BoundingBox(e,t,e+n,t+i)}};N.Element.image.prototype=new N.Element.RenderedElementBase;N.Element.g=function(e){this.base=N.Element.RenderedElementBase;this.base(e);this.getBoundingBox=function(){var e=new N.BoundingBox;for(var t=0;t0){var m=p[v].indexOf("url");var y=p[v].indexOf(")",m);var _=p[v].substr(m+5,y-m-6);var b=N.parseXml(N.ajax(_));var w=b.getElementsByTagName("font");for(var x=0;xe.length)t=e.length;for(var n=0,i=new Array(t);n0&&!Rl(this).selectAll("image, img, svg").size()){var E=this.cloneNode(true);Rl(E).selectAll("*").each(function(){Rl(this).call(DL);if(Rl(this).attr("opacity")==="0")this.parentNode.removeChild(this)});te.push(Object.assign({},n,{type:"svg",value:E,tag:t}))}else if(this.childNodes.length>0){var A=UL(this),R=zL(A,3),M=R[0],T=R[1],B=R[2];n.scale*=M;n.x+=T;n.y+=B;ne(this,n)}else{var N=this.cloneNode(true);Rl(N).selectAll("*").each(function(){if(Rl(this).attr("opacity")==="0")this.parentNode.removeChild(this)});if(t==="line"){Rl(N).attr("x1",parseFloat(Rl(N).attr("x1"))+n.x);Rl(N).attr("x2",parseFloat(Rl(N).attr("x2"))+n.x);Rl(N).attr("y1",parseFloat(Rl(N).attr("y1"))+n.y);Rl(N).attr("y2",parseFloat(Rl(N).attr("y2"))+n.y)}else if(t==="path"){var P=UL(N),D=zL(P,3),O=D[0],z=D[1],F=D[2];if(Rl(N).attr("transform"))Rl(N).attr("transform","scale(".concat(O,")translate(").concat(z+n.x,",").concat(F+n.y,")"))}Rl(N).call(DL);var L=Rl(N).attr("fill");var I=L&&L.indexOf("url")===0;te.push(Object.assign({},n,{type:"svg",value:N,tag:t}));if(I){var j=Rl(L.slice(4,-1)).node().cloneNode(true);var H=(j.tagName||"").toLowerCase();if(H==="pattern"){var V=UL(N),G=zL(V,3),U=G[0],W=G[1],K=G[2];n.scale*=U;n.x+=W;n.y+=K;ne(j,n)}}}}function ne(e,t){Nl(e.childNodes).each(function(){i.bind(this)(t)})}for(var a=0;a").concat(a,"");f.save();f.translate(q.padding,q.padding);PL(c,l,Object.assign({},GL,{offsetX:t.x,offsetY:t.y}));f.restore();break;case"svg":var u=h?(new XMLSerializer).serializeToString(t.value):t.value.outerHTML;f.save();f.translate(q.padding+n.x+t.x,q.padding+n.y+t.y);f.rect(0,0,n.width,n.height);f.clip();PL(c,u,Object.assign({},GL,{offsetX:t.x+n.x,offsetY:t.y+n.y}));f.restore();break;default:console.warn("uncaught",t);break}}q.callback(c)}}(function(e){var f=e.Uint8Array,t=e.HTMLCanvasElement,n=t&&t.prototype,l=/\s*;\s*base64\s*(?:;|$)/i,u="toDataURL",d,h=function e(t){var n=t.length,i=new f(n/4*3|0),a=0,r=0,o=[0,0],s=0,l=0,u,h,c;while(n--){h=t.charCodeAt(a++);u=d[h-43];if(u!==255&&u!==c){o[1]=o[0];o[0]=h;l=l<<6|u;s++;if(s===4){i[r++]=l>>>16;if(o[1]!==61){i[r++]=l>>>8}if(o[0]!==61){i[r++]=l}s=0}}}return i};if(f){d=new f([62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,0,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51])}if(t&&(!n.toBlob||!n.toBlobHD)){if(!n.toBlob)n.toBlob=function(e,t){if(!t){t="image/png"}if(this.mozGetAsFile){e(this.mozGetAsFile("canvas",t));return}if(this.msToBlob&&/^\s*image\/png\s*(?:$|;)/i.test(t)){e(this.msToBlob());return}var n=Array.prototype.slice.call(arguments,1),i=this[u].apply(this,n),a=i.indexOf(","),r=i.substring(a+1),o=l.test(i.substring(0,a)),s;if(Blob.fake){s=new Blob;if(o){s.encoding="base64"}else{s.encoding="URI"}s.data=r;s.size=r.length}else if(f){if(o){s=new Blob([h(r)],{type:t})}else{s=new Blob([decodeURIComponent(r)],{type:t})}}e(s)};if(!n.toBlobHD&&n.toDataURLHD){n.toBlobHD=function(){u="toDataURLHD";var e=this.toBlob();u="toDataURL";return e}}else{n.toBlobHD=n.toBlob}}})(typeof self!=="undefined"&&self||typeof window!=="undefined"&&window||PN.content||PN);var KL=DN(function(e){var t=t||function(h){if(typeof h==="undefined"||typeof navigator!=="undefined"&&/MSIE [1-9]\./.test(navigator.userAgent)){return}var e=h.document,c=function e(){return h.URL||h.webkitURL||h},f=e.createElementNS("http://www.w3.org/1999/xhtml","a"),d="download"in f,g=function e(t){var n=new MouseEvent("click");t.dispatchEvent(n)},p=/constructor/i.test(h.HTMLElement)||h.safari,v=/CriOS\/[\d]+/.test(navigator.userAgent),o=function e(t){(h.setImmediate||h.setTimeout)(function(){throw t},0)},m="application/octet-stream",i=1e3*40,y=function e(t){var n=function e(){if(typeof t==="string"){c().revokeObjectURL(t)}else{t.remove()}};setTimeout(n,i)},_=function e(t,n,i){n=[].concat(n);var a=n.length;while(a--){var r=t["on"+n[a]];if(typeof r==="function"){try{r.call(t,i||t)}catch(e){o(e)}}}},b=function e(t){if(/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)){return new Blob([String.fromCharCode(65279),t],{type:t.type})}return t},a=function e(i,t,n){if(!n){i=b(i)}var a=this,r=i.type,o=r===m,s,l=function e(){_(a,"writestart progress write writeend".split(" "))},u=function e(){if((v||o&&p)&&h.FileReader){var n=new FileReader;n.onloadend=function(){var e=v?n.result:n.result.replace(/^data:[^;]*;/,"data:attachment/file;");var t=h.open(e,"_blank");if(!t)h.location.href=e;e=undefined;a.readyState=a.DONE;l()};n.readAsDataURL(i);a.readyState=a.INIT;return}if(!s){s=c().createObjectURL(i)}if(o){h.location.href=s}else{var t=h.open(s,"_blank");if(!t){h.location.href=s}}a.readyState=a.DONE;l();y(s)};a.readyState=a.INIT;if(d){s=c().createObjectURL(i);setTimeout(function(){f.href=s;f.download=t;g(f);l();y(s);a.readyState=a.DONE});return}u()},t=a.prototype,n=function e(t,n,i){return new a(t,n||t.name||"download",i)};if(typeof navigator!=="undefined"&&navigator.msSaveOrOpenBlob){return function(e,t,n){t=t||e.name||"download";if(!n){e=b(e)}return navigator.msSaveOrOpenBlob(e,t)}}t.abort=function(){};t.readyState=t.INIT=0;t.WRITING=1;t.DONE=2;t.error=t.onwritestart=t.onprogress=t.onwrite=t.onabort=t.onerror=t.onwriteend=null;return n}(typeof self!=="undefined"&&self||typeof window!=="undefined"&&window||PN.content);if(e.exports){e.exports.saveAs=t}});var qL={filename:"download",type:"png"};function YL(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};if(!e)return;n=Object.assign({},qL,n);var t=new RegExp(/(MSIE|Trident\/|Edge\/)/i).test(navigator.userAgent);if(!(e instanceof Array)&&n.type==="svg"){var a=t?(new XMLSerializer).serializeToString(e):e.outerHTML;KL.saveAs(new Blob([a],{type:"application/svg+xml"}),"".concat(n.filename,".svg"))}WL(e,Object.assign({},i,{callback:function e(t){if(i.callback)i.callback(t);if(["jpg","png"].includes(n.type)){t.toBlob(function(e){return KL.saveAs(e,"".concat(n.filename,".").concat(n.type))})}}}))}var XL={Button:wP,Radio:PP,Select:WP};function $L(){var c=this;var f=this;var d=this._controlPadding()?this._padding:{top:0,right:0,bottom:0,left:0};var g=["left","right","top","bottom"];var e=function e(t){var l=g[t];var u=(c._controls||[]).filter(function(e){return!e.position&&l==="bottom"||e.position===l});if(c._downloadButton&&c._downloadPosition===l){u.push({data:[{text:c._translate("Download"),value:1}],label:"downloadButton",on:{click:function e(){var t=c._detectResize;if(t)c.detectResize(false).render();YL(c._select.node(),Object.assign({title:c._title||undefined},c._downloadConfig),{callback:function e(){setTimeout(function(){if(t)c.detectResize(t).render()},5e3)}})}},type:"Button"})}var n=l==="top"||l==="bottom";var i={height:n?c._height-(c._margin.top+c._margin.bottom):c._height-(c._margin.top+c._margin.bottom+d.top+d.bottom),width:n?c._width-(c._margin.left+c._margin.right+d.left+d.right):c._width-(c._margin.left+c._margin.right)};i.x=(n?c._margin.left+d.left:c._margin.left)+(l==="right"?c._width-c._margin.bottom:0);i.y=(n?c._margin.top:c._margin.top+d.top)+(l==="bottom"?c._height-c._margin.bottom:0);var a=Ox("foreignObject.d3plus-viz-controls-".concat(l),{condition:u.length,enter:Object.assign({opacity:0},i),exit:Object.assign({opacity:0},i),parent:c._select,transition:c._transition,update:{height:i.height,opacity:1,width:i.width}});var h=a.selectAll("div.d3plus-viz-controls-container").data([null]);h=h.enter().append("xhtml:div").attr("class","d3plus-viz-controls-container").merge(h);if(u.length){var r=function e(t){var n=Object.assign({},u[t]);var i={};if(n.on){var a=function e(t){if({}.hasOwnProperty.call(n.on,t)){i[t]=function(){n.on[t].bind(f)(this.value)}}};for(var r in n.on){a(r)}}var o=n.label||"".concat(l,"-").concat(t);if(!c._controlCache[o]){var s=n.type&&XL[n.type]?n.type:"Select";c._controlCache[o]=(new XL[s]).container(h.node());if(n.checked)c._controlCache[o].checked(n.checked);if(n.selected)c._controlCache[o].selected(n.selected)}delete n.checked;delete n.selected;c._controlCache[o].config(n).config({on:i}).config(c._controlConfig).render()};for(var o=0;o0&&arguments[0]!==undefined?arguments[0]:[];var t=this._legendClass.outerBounds();var n=this._legendPosition;var i=["top","bottom"].includes(n);var a=this._legendPadding()?this._padding:{top:0,right:0,bottom:0,left:0};var r={transform:"translate(".concat(i?this._margin.left+a.left:this._margin.left,", ").concat(i?this._margin.top:this._margin.top+a.top,")")};var s=Ox("g.d3plus-viz-legend",{condition:this._legend&&!this._legendConfig.select,enter:r,parent:this._select,transition:this._transition,update:r}).node();var l=[];var u=function e(t,n){var i=o._shape(t,n);var a=i==="Line"?"stroke":"fill";var r=o._shapeConfig[i]&&o._shapeConfig[i][a]?o._shapeConfig[i][a]:o._shapeConfig[a];return typeof r==="function"?r.bind(o)(t,n):r};var h=function e(t,n){var i=o._shape(t,n);var a=o._shapeConfig[i]&&o._shapeConfig[i].opacity?o._shapeConfig[i].opacity:o._shapeConfig.opacity;return typeof a==="function"?a.bind(o)(t,n):a};var c=function e(t,n){return"".concat(u(t,n),"_").concat(h(t,n))};if(this._legend){X().key(c).rollup(function(e){return l.push(Fx(e,o._aggs))}).entries(this._colorScale?e.filter(function(e,t){return o._colorScale(e,t)===undefined}):e)}l.sort(this._legendSort);var f=l.map(function(e,t){return o._ids(e,t).slice(0,o._drawDepth+1)});this._legendDepth=0;var d=function e(t){var n=f.map(function(e){return e[t]});if(!n.some(function(e){return e instanceof Array})&&Array.from(new Set(n)).length===l.length){o._legendDepth=t;return"break"}};for(var g=0;g<=this._drawDepth;g++){var p=d(g);if(p==="break")break}var v=function e(t,n){var i=o._id(t,n);if(i instanceof Array)i=i[0];return o._hidden.includes(i)||o._solo.length&&!o._solo.includes(i)};this._legendClass.id(c).align(i?"center":n).direction(i?"row":"column").duration(this._duration).data(l.length>this._legendCutoff||this._colorScale?l:[]).height(i?this._height-(this._margin.bottom+this._margin.top):this._height-(this._margin.bottom+this._margin.top+a.bottom+a.top)).locale(this._locale).parent(this).select(s).verticalAlign(!i?"middle":n).width(i?this._width-(this._margin.left+this._margin.right+a.left+a.right):this._width-(this._margin.left+this._margin.right)).shapeConfig(Px.bind(this)(this._shapeConfig,"legend")).shapeConfig({fill:function e(t,n){return v(t,n)?o._hiddenColor(t,n):u(t,n)},labelConfig:{fontOpacity:function e(t,n){return v(t,n)?o._hiddenOpacity(t,n):1}},opacity:h}).config(this._legendConfig).render();if(!this._legendConfig.select&&t.height){if(i)this._margin[n]+=t.height+this._legendClass.padding()*2;else this._margin[n]+=t.width+this._legendClass.padding()*2}}function QL(n){var i=this;if(!(n instanceof Array))n=[n,n];if(JSON.stringify(n)!==JSON.stringify(this._timelineSelection)){this._timelineSelection=n;n=n.map(Number);this.timeFilter(function(e){var t=GN(i._time(e)).getTime();return t>=n[0]&&t<=n[1]}).render()}}function eI(){var t=this;var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var n=this._time&&this._timeline;var i=n?zx(this._data.map(this._time)).map(GN):[];n=n&&i.length>1;var a=this._timelinePadding()?this._padding:{top:0,right:0,bottom:0,left:0};var r={transform:"translate(".concat(this._margin.left+a.left,", 0)")};var o=Ox("g.d3plus-viz-timeline",{condition:n,enter:r,parent:this._select,transition:this._transition,update:r}).node();if(n){var s=this._timelineClass.domain(Fe(i)).duration(this._duration).height(this._height-this._margin.bottom).locale(this._locale).select(o).ticks(i.sort(function(e,t){return+e-+t})).width(this._width-(this._margin.left+this._margin.right+a.left+a.right));if(s.selection()===undefined){this._timelineSelection=Fe(e,this._time).map(GN);s.selection(this._timelineSelection)}var l=this._timelineConfig;s.config(l).on("end",function(e){QL.bind(t)(e);if(l.on&&l.on.end)l.on.end(e)}).render();this._margin.bottom+=s.outerBounds().height+s.padding()*2}}function tI(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var t=this._title?this._title(e):false;var n=this._titlePadding()?this._padding:{top:0,right:0,bottom:0,left:0};var i={transform:"translate(".concat(this._margin.left+n.left,", ").concat(this._margin.top,")")};var a=Ox("g.d3plus-viz-title",{enter:i,parent:this._select,transition:this._transition,update:i}).node();this._titleClass.data(t?[{text:t}]:[]).locale(this._locale).select(a).width(this._width-(this._margin.left+this._margin.right+n.left+n.right)).config(this._titleConfig).render();this._margin.top+=t?a.getBBox().height:0}function nI(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var t=typeof this._total==="function"?O(e.map(this._total)):this._total===true&&this._size?O(e.map(this._size)):false;var n=this._totalPadding()?this._padding:{top:0,right:0,bottom:0,left:0};var i={transform:"translate(".concat(this._margin.left+n.left,", ").concat(this._margin.top,")")};var a=Ox("g.d3plus-viz-total",{enter:i,parent:this._select,transition:this._transition,update:i}).node();this._totalClass.data(t?[{text:this._totalFormat(t)}]:[]).locale(this._locale).select(a).width(this._width-(this._margin.left+this._margin.right+n.left+n.right)).config(this._totalConfig).render();this._margin.top+=t?a.getBBox().height+this._totalConfig.padding*2:0}function iI(e,t){if(!e)return undefined;if(e.tagName===undefined||["BODY","HTML"].indexOf(e.tagName)>=0){var n=window["inner".concat(t.charAt(0).toUpperCase()+t.slice(1))];var i=Rl(e);if(t==="width"){n-=parseFloat(i.style("margin-left"),10);n-=parseFloat(i.style("margin-right"),10);n-=parseFloat(i.style("padding-left"),10);n-=parseFloat(i.style("padding-right"),10)}else{n-=parseFloat(i.style("margin-top"),10);n-=parseFloat(i.style("margin-bottom"),10);n-=parseFloat(i.style("padding-top"),10);n-=parseFloat(i.style("padding-bottom"),10)}return n}else{var a=parseFloat(Rl(e).style(t),10);if(typeof a==="number"&&a>0)return a;else return iI(e.parentNode,t)}}function aI(e){return[iI(e,"width"),iI(e,"height")]}function rI(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var n=window.pageXOffset!==undefined?window.pageXOffset:(document.documentElement||document.body.parentNode||document.body).scrollLeft;var i=window.pageYOffset!==undefined?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;var a=e.getBoundingClientRect();var r=a.height,o=a.left+n,s=a.top+i,l=a.width;return i+window.innerHeight>s+t&&i+to+t&&n+t=0){this._solo=[];this._hidden=[];this.render()}}else{if(r<0&&this._hidden.length").concat(s("Shift+Click to Hide"))).title(this._legendConfig.label?this._legendClass.label():ZL.bind(this)).position(a).config(Px.bind(this)(this._tooltipConfig)).config(Px.bind(this)(this._legendTooltip)).render()}}function fI(e,t,n){if(e&&this._tooltip(e,t)){this._select.style("cursor","pointer");var i=fl.touches?[fl.touches[0].clientX,fl.touches[0].clientY]:[fl.clientX,fl.clientY];this._tooltipClass.data([n||e]).footer(this._drawDepthe.length)t=e.length;for(var n=0,i=new Array(t);n0&&arguments[0]!==undefined?arguments[0]:false;bI=e;if(bI)this._brushGroup.style("display","inline");else this._brushGroup.style("display","none");if(!bI&&this._zoom){this._container.call(this._zoomBehavior);if(!this._zoomScroll){this._container.on("wheel.zoom",null)}if(!this._zoomPan){this._container.on("mousedown.zoom mousemove.zoom",null).on("touchstart.zoom touchmove.zoom touchend.zoom touchcancel.zoom",null)}}else{this._container.on(".zoom",null)}}function kI(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;if(this._zoomGroup){if(!t)this._zoomGroup.attr("transform",e||fl.transform);else this._zoomGroup.transition().duration(t).attr("transform",e||fl.transform)}if(this._renderTiles)this._renderTiles(ch(this._container.node()),t)}function SI(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;if(!this._container)return;var t=this._zoomBehavior.extent().bind(document)()[1].map(function(e){return e/2}),n=this._zoomBehavior.scaleExtent(),i=ch(this._container.node());if(!e){i.k=n[0];i.x=0;i.y=0}else{var a=[(t[0]-i.x)/i.k,(t[1]-i.y)/i.k];i.k=Math.min(n[1],i.k*e);if(i.k<=n[0]){i.k=n[0];i.x=0;i.y=0}else{i.x+=t[0]-(a[0]*i.k+i.x);i.y+=t[1]-(a[1]*i.k+i.y)}}kI.bind(this)(i,this._duration)}function CI(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this._duration;var n=this._zoomBehavior.scaleExtent(),i=ch(this._container.node());if(e){var a=gI(this._zoomBehavior.translateExtent()[1],2),r=a[0],o=a[1],s=e[1][0]-e[0][0],l=e[1][1]-e[0][1];var u=Math.min(n[1],1/Math.max(s/r,l/o));var h,c;if(s/l0)i.x=0;else if(i.x0)i.y=0;else if(i.ye.length)t=e.length;for(var n=0,i=new Array(t);n600:true}function QI(i){return i.reduce(function(e,t,n){if(!n)e+=t;else if(n===i.length-1&&n===1)e+=" and ".concat(t);else if(n===i.length-1)e+=", and ".concat(t);else e+=", ".concat(t);return e},"")}var ej=function(e){WI(n,e);var t=qI(n);function n(){var s;VI(this,n);s=t.call(this);s._aggs={};s._ariaHidden=true;s._attribution=false;s._attributionStyle={background:"rgba(255, 255, 255, 0.75)",border:"1px solid rgba(0, 0, 0, 0.25)",color:"rgba(0, 0, 0, 0.75)",display:"block",font:"400 11px/11px 'Roboto', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",margin:"5px",opacity:.75,padding:"4px 6px 3px"};s._backClass=(new kA).on("click",function(){if(s._history.length)s.config(s._history.pop()).render();else s.depth(s._drawDepth-1).filter(false).render()}).on("mousemove",function(){return s._backClass.select().style("cursor","pointer")});s._backConfig={fontSize:10,padding:5,resize:false};s._cache=true;s._color=function(e,t){return s._groupBy[0](e,t)};s._colorScaleClass=new kD;s._colorScaleConfig={};s._colorScalePadding=JI;s._colorScalePosition="bottom";s._colorScaleMaxSize=600;var e=new WP;s._controlCache={};s._controlConfig={selectStyle:Object.assign({margin:"5px"},e.selectStyle())};s._controlPadding=JI;s._data=[];s._dataCutoff=100;s._detectResize=true;s._detectResizeDelay=400;s._detectVisible=true;s._detectVisibleInterval=1e3;s._downloadButton=false;s._downloadConfig={type:"png"};s._downloadPosition="top";s._duration=600;s._hidden=[];s._hiddenColor=Dx("#aaa");s._hiddenOpacity=Dx(.5);s._history=[];s._groupBy=[wh("id")];s._legend=true;s._legendClass=new hD;s._legendConfig={label:ZL.bind(XI(s)),shapeConfig:{ariaLabel:ZL.bind(XI(s)),labelConfig:{fontColor:undefined,fontResize:false,padding:0}}};s._legendCutoff=1;s._legendPadding=JI;s._legendPosition="bottom";s._legendSort=function(e,t){return s._drawLabel(e).localeCompare(s._drawLabel(t))};s._legendTooltip={};s._loadingHTML=function(){return"\n
\n ".concat(s._translate("Loading Visualization"),'\n ').concat(s._translate("Powered by D3plus"),"\n
")};s._loadingMessage=true;s._lrucache=zN(10);s._messageClass=new Cz;s._messageMask="rgba(0, 0, 0, 0.05)";s._messageStyle={bottom:"0",left:"0",position:"absolute",right:"0","text-align":"center",top:"0"};s._noDataHTML=function(){return"\n
\n ".concat(s._translate("No Data Available"),"\n
")};s._noDataMessage=true;s._on={"click.shape":oI.bind(XI(s)),"click.legend":sI.bind(XI(s)),mouseenter:uI.bind(XI(s)),mouseleave:hI.bind(XI(s)),"mousemove.shape":fI.bind(XI(s)),"mousemove.legend":cI.bind(XI(s))};s._queue=[];s._scrollContainer=(typeof window==="undefined"?"undefined":HI(window))===undefined?"":window;s._shape=Dx("Rect");s._shapes=[];s._shapeConfig={ariaLabel:function e(t,n){return s._drawLabel(t,n)},fill:function e(t,n){while(t.__d3plus__&&t.data){t=t.data;n=t.i}if(s._colorScale){var i=s._colorScale(t,n);if(i!==undefined&&i!==null){var a=s._colorScaleClass._colorScale;var r=s._colorScaleClass.color();if(!a)return r instanceof Array?r[r.length-1]:r;else if(!a.domain().length)return a.range()[a.range().length-1];return a(i)}}var o=s._color(t,n);if(hN(o))return o;return rS(o)},labelConfig:{fontColor:function e(t,n){var i=typeof s._shapeConfig.fill==="function"?s._shapeConfig.fill(t,n):s._shapeConfig.fill;return oS(i)}},opacity:Dx(1),stroke:function e(t,n){var i=typeof s._shapeConfig.fill==="function"?s._shapeConfig.fill(t,n):s._shapeConfig.fill;return hN(i).darker()},role:"presentation",strokeWidth:Dx(0)};s._solo=[];s._svgDesc="";s._svgTitle="";s._timeline=true;s._timelineClass=(new FD).align("end");s._timelineConfig={brushing:false,padding:5};s._timelinePadding=JI;s._threshold=Dx(1e-4);s._thresholdKey=undefined;s._thresholdName=function(){return s._translate("Values")};s._titleClass=new kA;s._titleConfig={ariaHidden:true,fontSize:12,padding:5,resize:false,textAnchor:"middle"};s._titlePadding=JI;s._tooltip=Dx(true);s._tooltipClass=new wz;s._tooltipConfig={pointerEvents:"none",titleStyle:{"max-width":"200px"}};s._totalClass=new kA;s._totalConfig={fontSize:10,padding:5,resize:false,textAnchor:"middle"};s._totalFormat=function(e){return"".concat(s._translate("Total"),": ").concat(VN(e,s._locale))};s._totalPadding=JI;s._zoom=false;s._zoomBehavior=bh();s._zoomBrush=GB();s._zoomBrushHandleSize=1;s._zoomBrushHandleStyle={fill:"#444"};s._zoomBrushSelectionStyle={fill:"#777","stroke-width":0};s._zoomControlStyle={background:"rgba(255, 255, 255, 0.75)",border:"1px solid rgba(0, 0, 0, 0.75)",color:"rgba(0, 0, 0, 0.75)",display:"block",font:"900 15px/21px 'Roboto', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",height:"20px",margin:"5px",opacity:.75,padding:0,"text-align":"center",width:"20px"};s._zoomControlStyleActive={background:"rgba(0, 0, 0, 0.75)",color:"rgba(255, 255, 255, 0.75)",opacity:1};s._zoomControlStyleHover={cursor:"pointer",opacity:1};s._zoomFactor=2;s._zoomMax=16;s._zoomPadding=20;s._zoomPan=true;s._zoomScroll=true;return s}UI(n,[{key:"_preDraw",value:function e(){var r=this;var o=this;this._drawDepth=this._depth!==void 0?this._depth:this._groupBy.length-1;this._id=this._groupBy[this._drawDepth];this._ids=function(t,n){return r._groupBy.map(function(e){return!t||t.__d3plus__&&!t.data?undefined:e(t.__d3plus__?t.data:t,t.__d3plus__?t.i:n)}).filter(function(e){return e!==undefined&&e!==null})};this._drawLabel=function(e,t){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:r._drawDepth;if(!e)return"";while(e.__d3plus__&&e.data){e=e.data;t=e.i}if(e._isAggregation){return"".concat(r._thresholdName(e,t)," < ").concat(VN(e._threshold*100,r._locale),"%")}if(r._label)return"".concat(r._label(e,t));var i=o._ids(e,t).slice(0,n+1);var a=i.reverse().find(function(e){return!(e instanceof Array)})||i[i.length-1];return a instanceof Array?QI(a):"".concat(a)};if(this._time&&!this._timeFilter&&this._data.length){var t=this._data.map(this._time).map(GN);var n=this._data[0],i=0;if(this._discrete&&"_".concat(this._discrete)in this&&this["_".concat(this._discrete)](n,i)===this._time(n,i)){this._timeFilter=function(){return true}}else{var a=+me(t);this._timeFilter=function(e,t){return+GN(r._time(e,t))===a}}}this._filteredData=[];this._legendData=[];var s=[];if(this._data.length){s=this._timeFilter?this._data.filter(this._timeFilter):this._data;if(this._filter)s=s.filter(this._filter);var l=X();for(var u=0;u<=this._drawDepth;u++){l.key(this._groupBy[u])}if(this._discrete&&"_".concat(this._discrete)in this)l.key(this["_".concat(this._discrete)]);if(this._discrete&&"_".concat(this._discrete,"2")in this)l.key(this["_".concat(this._discrete,"2")]);var h=l.rollup(function(e){var t=r._data.indexOf(e[0]);var n=r._shape(e[0],t);var i=r._id(e[0],t);var a=Fx(e,r._aggs);if(!r._hidden.includes(i)&&(!r._solo.length||r._solo.includes(i))){if(!r._discrete&&n==="Line")r._filteredData=r._filteredData.concat(e);else r._filteredData.push(a)}r._legendData.push(a)}).entries(s);this._filteredData=this._thresholdFunction(this._filteredData,h)}var c=X().key(this._id).entries(this._filteredData).length;if(c>this._dataCutoff){if(this._userHover===undefined)this._userHover=this._shapeConfig.hoverOpacity||.5;if(this._userDuration===undefined)this._userDuration=this._shapeConfig.duration||600;this._shapeConfig.hoverOpacity=1;this._shapeConfig.duration=0}else if(this._userHover!==undefined){this._shapeConfig.hoverOpacity=this._userHover;this._shapeConfig.duration=this._userDuration}if(this._noDataMessage&&!this._filteredData.length){this._messageClass.render({container:this._select.node().parentNode,html:this._noDataHTML(this),mask:false,style:this._messageStyle})}}},{key:"_draw",value:function e(){if(this._legendPosition==="left"||this._legendPosition==="right")JL.bind(this)(this._filteredData);if(this._colorScalePosition==="left"||this._colorScalePosition==="right"||this._colorScalePosition===false)Az.bind(this)(this._filteredData);Ez.bind(this)();tI.bind(this)(this._filteredData);nI.bind(this)(this._filteredData);eI.bind(this)(this._filteredData);$L.bind(this)(this._filteredData);if(this._legendPosition==="top"||this._legendPosition==="bottom")JL.bind(this)(this._legendData);if(this._colorScalePosition==="top"||this._colorScalePosition==="bottom")Az.bind(this)(this._filteredData);this._shapes=[]}},{key:"_thresholdFunction",value:function e(t){return t}},{key:"render",value:function e(r){var o=this;this._margin={bottom:0,left:0,right:0,top:0};this._padding={bottom:0,left:0,right:0,top:0};this._transition=eh().duration(this._duration);if(this._select===void 0||this._select.node().tagName.toLowerCase()!=="svg"){var t=this._select===void 0?Rl("body").append("div"):this._select;var n=t.append("svg");this.select(n.node())}function s(){var e=this._select.style("display");this._select.style("display","none");var t=aI(this._select.node().parentNode),n=OI(t,2),i=n[0],a=n[1];i-=parseFloat(this._select.style("border-left-width"),10);i-=parseFloat(this._select.style("border-right-width"),10);a-=parseFloat(this._select.style("border-top-width"),10);a-=parseFloat(this._select.style("border-bottom-width"),10);this._select.style("display",e);if(this._autoWidth){this.width(i);this._select.style("width","".concat(this._width,"px")).attr("width","".concat(this._width,"px"))}if(this._autoHeight){this.height(a);this._select.style("height","".concat(this._height,"px")).attr("height","".concat(this._height,"px"))}}if((!this._width||!this._height)&&(!this._detectVisible||rI(this._select.node()))){this._autoWidth=this._width===undefined;this._autoHeight=this._height===undefined;s.bind(this)()}this._select.attr("class","d3plus-viz").attr("aria-hidden",this._ariaHidden).attr("aria-labelledby","".concat(this._uuid,"-title ").concat(this._uuid,"-desc")).attr("role","img").attr("xmlns","http://www.w3.org/2000/svg").attr("xmlns:xlink","http://www.w3.org/1999/xlink").transition(eh).style("width",this._width!==undefined?"".concat(this._width,"px"):undefined).style("height",this._height!==undefined?"".concat(this._height,"px"):undefined).attr("width",this._width!==undefined?"".concat(this._width,"px"):undefined).attr("height",this._height!==undefined?"".concat(this._height,"px"):undefined);var i=Rl(this._select.node().parentNode);var a=i.style("position");if(a==="static")i.style("position","relative");var l=this._select.selectAll("title").data([0]);var u=l.enter().append("title").attr("id","".concat(this._uuid,"-title"));l.merge(u).text(this._svgTitle);var h=this._select.selectAll("desc").data([0]);var c=h.enter().append("desc").attr("id","".concat(this._uuid,"-desc"));h.merge(c).text(this._svgDesc);this._visiblePoll=clearInterval(this._visiblePoll);this._resizePoll=clearTimeout(this._resizePoll);this._scrollPoll=clearTimeout(this._scrollPoll);Rl(this._scrollContainer).on("scroll.".concat(this._uuid),null);Rl(this._scrollContainer).on("resize.".concat(this._uuid),null);if(this._detectVisible&&this._select.style("visibility")==="hidden"){this._visiblePoll=setInterval(function(){if(o._select.style("visibility")!=="hidden"){o._visiblePoll=clearInterval(o._visiblePoll);o.render(r)}},this._detectVisibleInterval)}else if(this._detectVisible&&this._select.style("display")==="none"){this._visiblePoll=setInterval(function(){if(o._select.style("display")!=="none"){o._visiblePoll=clearInterval(o._visiblePoll);o.render(r)}},this._detectVisibleInterval)}else if(this._detectVisible&&!rI(this._select.node())){Rl(this._scrollContainer).on("scroll.".concat(this._uuid),function(){if(!o._scrollPoll){o._scrollPoll=setTimeout(function(){if(rI(o._select.node())){Rl(o._scrollContainer).on("scroll.".concat(o._uuid),null);o.render(r)}o._scrollPoll=clearTimeout(o._scrollPoll)},o._detectVisibleInterval)}})}else{var f=NN();this._queue.forEach(function(e){var t=o._cache?o._lrucache.get("".concat(e[3],"_").concat(e[1])):undefined;if(!t)f.defer.apply(f,BI(e));else o["_".concat(e[3])]=e[2]?e[2](t):t});this._queue=[];if(this._loadingMessage&&f._tasks.length){this._messageClass.render({container:this._select.node().parentNode,html:this._loadingHTML(this),mask:this._filteredData?this._messageMask:false,style:this._messageStyle})}f.awaitAll(function(){var n=o._data instanceof Array&&o._data.length>0?Object.keys(o._data[0]):[];var e=o._select.selectAll("g.data-table").data(!o._ariaHidden&&o._data instanceof Array&&o._data.length?[0]:[]);var t=e.enter().append("g").attr("class","data-table").attr("role","table");e.exit().remove();var i=e.merge(t).selectAll("text").data(o._data instanceof Array?Le(0,o._data.length+1):[]);i.exit().remove();var a=i.merge(i.enter().append("text").attr("role","row")).selectAll("tspan").data(function(e,t){return n.map(function(e){return{role:t?"cell":"columnheader",text:t?o._data[t-1][e]:e}})});a.exit().remove();a.merge(a.enter().append("tspan")).attr("role",function(e){return e.role}).attr("dy","-1000px").html(function(e){return e.text});o._preDraw();o._draw(r);wI.bind(o)();TI.bind(o)();if(o._messageClass._isVisible&&(!o._noDataMessage||o._filteredData.length))o._messageClass.hide();if(o._detectResize&&(o._autoWidth||o._autoHeight)){Rl(o._scrollContainer).on("resize.".concat(o._uuid),function(){o._resizePoll=clearTimeout(o._resizePoll);o._resizePoll=setTimeout(function(){o._resizePoll=clearTimeout(o._resizePoll);s.bind(o)();o.render(r)},o._detectResizeDelay)})}if(r)setTimeout(r,o._duration+100)})}Rl("body").on("touchstart.".concat(this._uuid),dI.bind(this));return this}},{key:"active",value:function e(t){this._active=t;if(this._shapeConfig.activeOpacity!==1){this._shapes.forEach(function(e){return e.active(t)});if(this._legend)this._legendClass.active(t)}return this}},{key:"aggs",value:function e(t){return arguments.length?(this._aggs=Ch(this._aggs,t),this):this._aggs}},{key:"ariaHidden",value:function e(t){return arguments.length?(this._ariaHidden=t,this):this._ariaHidden}},{key:"attribution",value:function e(t){return arguments.length?(this._attribution=t,this):this._attribution}},{key:"attributionStyle",value:function e(t){return arguments.length?(this._attributionStyle=Ch(this._attributionStyle,t),this):this._attributionStyle}},{key:"backConfig",value:function e(t){return arguments.length?(this._backConfig=Ch(this._backConfig,t),this):this._backConfig}},{key:"cache",value:function e(t){return arguments.length?(this._cache=t,this):this._cache}},{key:"color",value:function e(t){return arguments.length?(this._color=!t||typeof t==="function"?t:wh(t),this):this._color}},{key:"colorScale",value:function e(t){return arguments.length?(this._colorScale=!t||typeof t==="function"?t:wh(t),this):this._colorScale}},{key:"colorScaleConfig",value:function e(t){return arguments.length?(this._colorScaleConfig=Ch(this._colorScaleConfig,t),this):this._colorScaleConfig}},{key:"colorScalePadding",value:function e(t){return arguments.length?(this._colorScalePadding=typeof t==="function"?t:Dx(t),this):this._colorScalePadding}},{key:"colorScalePosition",value:function e(t){return arguments.length?(this._colorScalePosition=t,this):this._colorScalePosition}},{key:"colorScaleMaxSize",value:function e(t){return arguments.length?(this._colorScaleMaxSize=t,this):this._colorScaleMaxSize}},{key:"controls",value:function e(t){return arguments.length?(this._controls=t,this):this._controls}},{key:"controlConfig",value:function e(t){return arguments.length?(this._controlConfig=Ch(this._controlConfig,t),this):this._controlConfig}},{key:"controlPadding",value:function e(t){return arguments.length?(this._controlPadding=typeof t==="function"?t:Dx(t),this):this._controlPadding}},{key:"data",value:function e(t,n){if(arguments.length){vB.bind(this)(t,n,"data");this._hidden=[];this._solo=[];return this}return this._data}},{key:"dataCutoff",value:function e(t){return arguments.length?(this._dataCutoff=t,this):this._dataCutoff}},{key:"depth",value:function e(t){return arguments.length?(this._depth=t,this):this._depth}},{key:"detectResize",value:function e(t){return arguments.length?(this._detectResize=t,this):this._detectResize}},{key:"detectResizeDelay",value:function e(t){return arguments.length?(this._detectResizeDelay=t,this):this._detectResizeDelay}},{key:"detectVisible",value:function e(t){return arguments.length?(this._detectVisible=t,this):this._detectVisible}},{key:"detectVisibleInterval",value:function e(t){return arguments.length?(this._detectVisibleInterval=t,this):this._detectVisibleInterval}},{key:"discrete",value:function e(t){return arguments.length?(this._discrete=t,this):this._discrete}},{key:"downloadButton",value:function e(t){return arguments.length?(this._downloadButton=t,this):this._downloadButton}},{key:"downloadConfig",value:function e(t){return arguments.length?(this._downloadConfig=Ch(this._downloadConfig,t),this):this._downloadConfig}},{key:"downloadPosition",value:function e(t){return arguments.length?(this._downloadPosition=t,this):this._downloadPosition}},{key:"duration",value:function e(t){return arguments.length?(this._duration=t,this):this._duration}},{key:"filter",value:function e(t){return arguments.length?(this._filter=t,this):this._filter}},{key:"groupBy",value:function e(t){var n=this;if(!arguments.length)return this._groupBy;if(!(t instanceof Array))t=[t];return this._groupBy=t.map(function(e){if(typeof e==="function")return e;else{if(!n._aggs[e]){n._aggs[e]=function(e,t){var n=zx(e.map(t));return n.length===1?n[0]:n}}return wh(e)}}),this}},{key:"height",value:function e(t){return arguments.length?(this._height=t,this):this._height}},{key:"hiddenColor",value:function e(t){return arguments.length?(this._hiddenColor=typeof t==="function"?t:Dx(t),this):this._hiddenColor}},{key:"hiddenOpacity",value:function e(t){return arguments.length?(this._hiddenOpacity=typeof t==="function"?t:Dx(t),this):this._hiddenOpacity}},{key:"hover",value:function e(t){var i=this;var n=this._hover=t;if(this._shapeConfig.hoverOpacity!==1){if(typeof t==="function"){var a=_e(this._shapes.map(function(e){return e.data()}));a=a.concat(this._legendClass.data());var r=t?a.filter(t):[];var o=[];r.map(this._ids).forEach(function(e){for(var t=1;t<=e.length;t++){o.push(JSON.stringify(e.slice(0,t)))}});o=o.filter(function(e,t){return o.indexOf(e)===t});if(o.length)n=function e(t,n){return o.includes(JSON.stringify(i._ids(t,n)))}}this._shapes.forEach(function(e){return e.hover(n)});if(this._legend)this._legendClass.hover(n)}return this}},{key:"label",value:function e(t){return arguments.length?(this._label=typeof t==="function"?t:Dx(t),this):this._label}},{key:"legend",value:function e(t){return arguments.length?(this._legend=t,this):this._legend}},{key:"legendConfig",value:function e(t){return arguments.length?(this._legendConfig=Ch(this._legendConfig,t),this):this._legendConfig}},{key:"legendCutoff",value:function e(t){return arguments.length?(this._legendCutoff=t,this):this._legendCutoff}},{key:"legendTooltip",value:function e(t){return arguments.length?(this._legendTooltip=Ch(this._legendTooltip,t),this):this._legendTooltip}},{key:"legendPadding",value:function e(t){return arguments.length?(this._legendPadding=typeof t==="function"?t:Dx(t),this):this._legendPadding}},{key:"legendPosition",value:function e(t){return arguments.length?(this._legendPosition=t,this):this._legendPosition}},{key:"legendSort",value:function e(t){return arguments.length?(this._legendSort=t,this):this._legendSort}},{key:"loadingHTML",value:function e(t){return arguments.length?(this._loadingHTML=typeof t==="function"?t:Dx(t),this):this._loadingHTML}},{key:"loadingMessage",value:function e(t){return arguments.length?(this._loadingMessage=t,this):this._loadingMessage}},{key:"messageMask",value:function e(t){return arguments.length?(this._messageMask=t,this):this._messageMask}},{key:"messageStyle",value:function e(t){return arguments.length?(this._messageStyle=Ch(this._messageStyle,t),this):this._messageStyle}},{key:"noDataHTML",value:function e(t){return arguments.length?(this._noDataHTML=typeof t==="function"?t:Dx(t),this):this._noDataHTML}},{key:"noDataMessage",value:function e(t){return arguments.length?(this._noDataMessage=t,this):this._noDataMessage}},{key:"scrollContainer",value:function e(t){return arguments.length?(this._scrollContainer=t,this):this._scrollContainer}},{key:"select",value:function e(t){return arguments.length?(this._select=Rl(t),this):this._select}},{key:"shape",value:function e(t){return arguments.length?(this._shape=typeof t==="function"?t:Dx(t),this):this._shape}},{key:"shapeConfig",value:function e(t){return arguments.length?(this._shapeConfig=Ch(this._shapeConfig,t),this):this._shapeConfig}},{key:"svgDesc",value:function e(t){return arguments.length?(this._svgDesc=t,this):this._svgDesc}},{key:"svgTitle",value:function e(t){return arguments.length?(this._svgTitle=t,this):this._svgTitle}},{key:"threshold",value:function e(t){if(arguments.length){if(typeof t==="function"){this._threshold=t}else if(isFinite(t)&&!isNaN(t)){this._threshold=Dx(t*1)}return this}else return this._threshold}},{key:"thresholdKey",value:function e(t){if(arguments.length){if(typeof t==="function"){this._thresholdKey=t}else{this._thresholdKey=wh(t)}return this}else return this._thresholdKey}},{key:"thresholdName",value:function e(t){return arguments.length?(this._thresholdName=typeof t==="function"?t:Dx(t),this):this._thresholdName}},{key:"time",value:function e(t){if(arguments.length){if(typeof t==="function"){this._time=t}else{this._time=wh(t);if(!this._aggs[t]){this._aggs[t]=function(e,t){var n=zx(e.map(t));return n.length===1?n[0]:n}}}this._timeFilter=false;return this}else return this._time}},{key:"timeFilter",value:function e(t){return arguments.length?(this._timeFilter=t,this):this._timeFilter}},{key:"timeline",value:function e(t){return arguments.length?(this._timeline=t,this):this._timeline}},{key:"timelineConfig",value:function e(t){return arguments.length?(this._timelineConfig=Ch(this._timelineConfig,t),this):this._timelineConfig}},{key:"timelinePadding",value:function e(t){return arguments.length?(this._timelinePadding=typeof t==="function"?t:Dx(t),this):this._timelinePadding}},{key:"title",value:function e(t){return arguments.length?(this._title=typeof t==="function"?t:Dx(t),this):this._title}},{key:"titleConfig",value:function e(t){return arguments.length?(this._titleConfig=Ch(this._titleConfig,t),this):this._titleConfig}},{key:"titlePadding",value:function e(t){return arguments.length?(this._titlePadding=typeof t==="function"?t:Dx(t),this):this._titlePadding}},{key:"tooltip",value:function e(t){return arguments.length?(this._tooltip=typeof t==="function"?t:Dx(t),this):this._tooltip}},{key:"tooltipConfig",value:function e(t){return arguments.length?(this._tooltipConfig=Ch(this._tooltipConfig,t),this):this._tooltipConfig}},{key:"total",value:function e(t){if(arguments.length){if(typeof t==="function")this._total=t;else if(t)this._total=wh(t);else this._total=false;return this}else return this._total}},{key:"totalConfig",value:function e(t){return arguments.length?(this._totalConfig=Ch(this._totalConfig,t),this):this._totalConfig}},{key:"totalFormat",value:function e(t){return arguments.length?(this._totalFormat=t,this):this._totalFormat}},{key:"totalPadding",value:function e(t){return arguments.length?(this._totalPadding=typeof t==="function"?t:Dx(t),this):this._totalPadding}},{key:"width",value:function e(t){return arguments.length?(this._width=t,this):this._width}},{key:"zoom",value:function e(t){return arguments.length?(this._zoom=t,this):this._zoom}},{key:"zoomBrushHandleSize",value:function e(t){return arguments.length?(this._zoomBrushHandleSize=t,this):this._zoomBrushHandleSize}},{key:"zoomBrushHandleStyle",value:function e(t){return arguments.length?(this._zoomBrushHandleStyle=t,this):this._zoomBrushHandleStyle}},{key:"zoomBrushSelectionStyle",value:function e(t){return arguments.length?(this._zoomBrushSelectionStyle=t,this):this._zoomBrushSelectionStyle}},{key:"zoomControlStyle",value:function e(t){return arguments.length?(this._zoomControlStyle=t,this):this._zoomControlStyle}},{key:"zoomControlStyleActive",value:function e(t){return arguments.length?(this._zoomControlStyleActive=t,this):this._zoomControlStyleActive}},{key:"zoomControlStyleHover",value:function e(t){return arguments.length?(this._zoomControlStyleHover=t,this):this._zoomControlStyleHover}},{key:"zoomFactor",value:function e(t){return arguments.length?(this._zoomFactor=t,this):this._zoomFactor}},{key:"zoomMax",value:function e(t){return arguments.length?(this._zoomMax=t,this):this._zoomMax}},{key:"zoomPan",value:function e(t){return arguments.length?(this._zoomPan=t,this):this._zoomPan}},{key:"zoomPadding",value:function e(t){return arguments.length?(this._zoomPadding=t,this):this._zoomPadding}},{key:"zoomScroll",value:function e(t){return arguments.length?(this._zoomScroll=t,this):this._zoomScroll}}]);return n}(Tx);var tj=function(e){"use strict";_inherits2(Y,e);var t=_createSuper2(Y);function Y(){var u;_classCallCheck2(this,Y);u=t.call(this);u._links=[];u._linkSize=Dx(1);u._linkSizeMin=1;u._linkSizeScale="sqrt";u._noDataMessage=false;u._nodes=[];u._on["click.shape"]=function(e,t){u._tooltipClass.data([]).render();if(u._hover&&u._drawDepth>=u._groupBy.length-1){var n="".concat(u._nodeGroupBy&&u._nodeGroupBy[u._drawDepth](e,t)?u._nodeGroupBy[u._drawDepth](e,t):u._id(e,t));if(u._focus&&u._focus===n){u.active(false);u._on.mouseenter.bind(_assertThisInitialized2(u))(e,t);u._focus=undefined;u._zoomToBounds(null)}else{u.hover(false);var i=u._linkLookup[n],a=u._nodeLookup[n];var r=[n];var o=[a.x-a.r,a.x+a.r],s=[a.y-a.r,a.y+a.r];i.forEach(function(e){r.push(e.id);if(e.x-e.ro[1])o[1]=e.x+e.r;if(e.y-e.rs[1])s[1]=e.y+e.r});u.active(function(e,t){if(e.source&&e.target)return e.source.id===n||e.target.id===n;else return r.includes("".concat(u._ids(e,t)[u._drawDepth]))});u._focus=n;var l=ch(u._container.node());o=o.map(function(e){return e*l.k+l.x});s=s.map(function(e){return e*l.k+l.y});u._zoomToBounds([[o[0],s[0]],[o[1],s[1]]])}}};u._on["click.legend"]=function(e,t){var n=u._id(e);var i=u._ids(e);i=i[i.length-1];if(u._hover&&u._drawDepth>=u._groupBy.length-1){if(u._focus&&u._focus===n){u.active(false);u._focus=undefined;u._zoomToBounds(null)}else{u.hover(false);var a=n.map(function(e){return u._nodeLookup[e]});var r=["".concat(i)];var o=[a[0].x-a[0].r,a[0].x+a[0].r],s=[a[0].y-a[0].r,a[0].y+a[0].r];a.forEach(function(e){r.push(e.id);if(e.x-e.ro[1])o[1]=e.x+e.r;if(e.y-e.rs[1])s[1]=e.y+e.r});u.active(function(e,t){if(e.source&&e.target)return r.includes(e.source.id)&&r.includes(e.target.id);else{var n=u._ids(e,t);return r.includes("".concat(n[n.length-1]))}});u._focus=n;var l=ch(u._container.node());o=o.map(function(e){return e*l.k+l.x});s=s.map(function(e){return e*l.k+l.y});u._zoomToBounds([[o[0],s[0]],[o[1],s[1]]])}u._on.mouseenter.bind(_assertThisInitialized2(u))(e,t);u._on["mousemove.legend"].bind(_assertThisInitialized2(u))(e,t)}};u._on.mouseenter=function(){};u._on["mouseleave.shape"]=function(){u.hover(false)};var l=u._on["mousemove.shape"];u._on["mousemove.shape"]=function(e,t){l(e,t);var n="".concat(u._nodeGroupBy&&u._nodeGroupBy[u._drawDepth](e,t)?u._nodeGroupBy[u._drawDepth](e,t):u._id(e,t)),i=u._linkLookup[n]||[],a=u._nodeLookup[n];var r=[n];var o=[a.x-a.r,a.x+a.r],s=[a.y-a.r,a.y+a.r];i.forEach(function(e){r.push(e.id);if(e.x-e.ro[1])o[1]=e.x+e.r;if(e.y-e.rs[1])s[1]=e.y+e.r});u.hover(function(e,t){if(e.source&&e.target)return e.source.id===n||e.target.id===n;else return r.includes("".concat(u._ids(e,t)[u._drawDepth]))})};u._sizeMin=5;u._sizeScale="sqrt";u._shape=Dx("Circle");u._shapeConfig=Ch(u._shapeConfig,{ariaLabel:function e(t,n){var i=u._size?", ".concat(u._size(t,n)):"";return"".concat(u._drawLabel(t,n)).concat(i,".")},labelConfig:{duration:0,fontMin:1,fontResize:true,labelPadding:0,textAnchor:"middle",verticalAlign:"middle"},Path:{fill:"none",label:false,stroke:"#eee"}});u._x=wh("x");u._y=wh("y");u._zoom=true;return u}_createClass2(Y,[{key:"_draw",value:function e(t){var a=this;_get2(_getPrototypeOf2(Y.prototype),"_draw",this).call(this,t);var n=this._height-this._margin.top-this._margin.bottom,i="translate(".concat(this._margin.left,", ").concat(this._margin.top,")"),r=this._transition,o=this._width-this._margin.left-this._margin.right;var s=this._filteredData.reduce(function(e,t,n){e[a._id(t,n)]=t;return e},{});var l=this._nodes.reduce(function(e,t,n){e[a._nodeGroupBy?a._nodeGroupBy[a._drawDepth](t,n):t.id]=t;return e},{});l=Array.from(new Set(Object.keys(s).concat(Object.keys(l)))).map(function(e,t){var n=s[e],i=l[e];if(i===undefined)return false;return{__d3plus__:true,data:n||i,i:t,id:e,fx:n!==undefined&&!isNaN(a._x(n))?a._x(n):a._x(i),fy:n!==undefined&&!isNaN(a._y(n))?a._y(n):a._y(i),node:i,r:a._size?n!==undefined&&a._size(n)!==undefined?a._size(n):a._size(i):a._sizeMin,shape:n!==undefined&&a._shape(n)!==undefined?a._shape(n):a._shape(i)}}).filter(function(e){return e});var u=this._nodeLookup=l.reduce(function(e,t){e[t.id]=t;return e},{});var h=l.map(function(e){return e.node});var c=this._links.map(function(e){var t=_typeof2(e.source);return{size:a._linkSize(e),source:t==="number"?l[h.indexOf(a._nodes[e.source])]:t==="string"?u[e.source]:u[e.source.id],target:t==="number"?l[h.indexOf(a._nodes[e.target])]:t==="string"?u[e.target]:u[e.target.id]}});this._linkLookup=c.reduce(function(e,t){if(!e[t.source.id])e[t.source.id]=[];e[t.source.id].push(t.target);if(!e[t.target.id])e[t.target.id]=[];e[t.target.id].push(t.source);return e},{});var f=l.some(function(e){return e.fx===undefined||e.fy===undefined});if(f){var d=Bi().domain(Fe(c,function(e){return e.size})).range([.1,.5]);var g=De().force("link",Q(c).id(function(e){return e.id}).distance(1).strength(function(e){return d(e.size)}).iterations(4)).force("charge",Oe().strength(-1)).stop();var p=300;var v=.001;var m=1-Math.pow(v,1/p);g.velocityDecay(0);g.alphaMin(v);g.alphaDecay(m);g.alphaDecay(0);g.nodes(l);g.tick(p).stop();var y=l.map(function(e){return[e.vx,e.vy]});var _=0,b=0,w=0;if(y.length===2){_=100}else if(y.length>2){var x=Ke(y);var k=TR(x,{verbose:true});_=k.angle;b=k.cx;w=k.cy}l.forEach(function(e){var t=gR([e.vx,e.vy],-1*(Math.PI/180*_),[b,w]);e.fx=t[0];e.fy=t[1]})}var S=Fe(l.map(function(e){return e.fx})),C=Fe(l.map(function(e){return e.fy}));var E=Bi().domain(S).range([0,o]),A=Bi().domain(C).range([0,n]);var R=(S[1]-S[0])/(C[1]-C[0])||1,M=o/n;if(R>M){var T=n*M/R;A.range([(n-T)/2,n-(n-T)/2])}else{var B=o*R/M;E.range([(o-B)/2,o-(o-B)/2])}l.forEach(function(e){e.x=E(e.fx);e.y=A(e.fy)});var N=Fe(l.map(function(e){return e.r}));var P=this._sizeMax||me([1,je(_e(l.map(function(t){return l.map(function(e){return t===e?null:CA([t.x,t.y],[e.x,e.y])})})))/2]);var D=Fo["scale".concat(this._sizeScale.charAt(0).toUpperCase()).concat(this._sizeScale.slice(1))]().domain(N).range([N[0]===N[1]?P:je([P/2,this._sizeMin]),P]),O=E.domain(),z=A.domain();var F=O[1]-O[0],L=z[1]-z[0];l.forEach(function(e){var t=D(e.r);if(O[0]>E.invert(e.x-t))O[0]=E.invert(e.x-t);if(O[1]A.invert(e.y-t))z[0]=A.invert(e.y-t);if(z[1]M?o:n)/2;l.forEach(function(e){e.x=E(e.fx);e.fx=e.x;e.y=A(e.fy);e.fy=e.y;e.r=D(e.r)||H;e.width=e.r*2;e.height=e.r*2});this._container=this._select.selectAll("svg.d3plus-network").data([0]);this._container=this._container.enter().append("svg").attr("class","d3plus-network").attr("opacity",0).attr("width",o).attr("height",n).attr("x",this._margin.left).attr("y",this._margin.top).style("background-color","transparent").merge(this._container);this._container.transition(this._transition).attr("opacity",1).attr("width",o).attr("height",n).attr("x",this._margin.left).attr("y",this._margin.top);var V=this._container.selectAll("rect.d3plus-network-hitArea").data([0]);V.enter().append("rect").attr("class","d3plus-network-hitArea").merge(V).attr("width",o).attr("height",n).attr("fill","transparent").on("click",function(){if(a._focus){a.active(false);a._focus=undefined;a._zoomToBounds(null)}});this._zoomGroup=this._container.selectAll("g.d3plus-network-zoomGroup").data([0]);var G=this._zoomGroup=this._zoomGroup.enter().append("g").attr("class","d3plus-network-zoomGroup").merge(this._zoomGroup);var U=Fe(c,function(e){return e.size});if(U[0]!==U[1]){var W=Fo["scale".concat(this._linkSizeScale.charAt(0).toUpperCase()).concat(this._linkSizeScale.slice(1))]().domain(U).range([this._linkSizeMin,D.range()[0]]);c.forEach(function(e){e.size=W(e.size)})}var K=Px.bind(this)(this._shapeConfig,"edge","Path");delete K.on;this._shapes.push((new zT).config(K).strokeWidth(function(e){return e.size}).activeStyle({"stroke-width":function e(t){return t.size}}).d(function(e){return"M".concat(e.source.x,",").concat(e.source.y," ").concat(e.target.x,",").concat(e.target.y)}).data(c).select(Ox("g.d3plus-network-links",{parent:G,transition:r,enter:{transform:i},update:{transform:i}}).node()).render());var q={label:function e(t){return l.length<=a._dataCutoff||a._hover&&a._hover(t)||a._active&&a._active(t)?a._drawLabel(t.data||t.node,t.i):false},select:Ox("g.d3plus-network-nodes",{parent:G,transition:r,enter:{transform:i},update:{transform:i}}).node()};X().key(function(e){return e.shape}).entries(l).forEach(function(e){a._shapes.push((new FT[e.key]).config(Px.bind(a)(a._shapeConfig,"shape",e.key)).config(q).config(q[e.key]||{}).data(e.values).render())});return this}},{key:"hover",value:function e(t){this._hover=t;if(this._nodes.lengtho[1])o[1]=e.x+e.r;if(e.y-e.rs[1])s[1]=e.y+e.r});l.hover(function(e,t){if(e.source&&e.target)return e.source.id===a.id||e.target.id===a.id;else return r.includes(l._ids(e,t)[l._drawDepth])})}};l._on["click.shape"]=function(e){l._center=e.id;l._margin={bottom:0,left:0,right:0,top:0};l._padding={bottom:0,left:0,right:0,top:0};l._draw()};l._sizeMin=5;l._sizeScale="sqrt";l._shape=Dx("Circle");l._shapeConfig=Ch(l._shapeConfig,{ariaLabel:function e(t,n){var i=l._size?", ".concat(l._size(t,n)):"";return"".concat(l._drawLabel(t,n)).concat(i,".")},labelConfig:{duration:0,fontMin:1,fontResize:true,labelPadding:0,textAnchor:"middle",verticalAlign:"middle"},Path:{fill:"none",label:false,stroke:"#eee",strokeWidth:1}});return l}_createClass2(L,[{key:"_draw",value:function e(t){var u=this;_get2(_getPrototypeOf2(L.prototype),"_draw",this).call(this,t);var a=this._filteredData.reduce(function(e,t,n){e[u._id(t,n)]=t;return e},{});var h=this._nodes;if(!this._nodes.length&&this._links.length){var n=Array.from(new Set(this._links.reduce(function(e,t){return e.concat([t.source,t.target])},[])));h=n.map(function(e){return _typeof2(e)==="object"?e:{id:e}})}h=h.reduce(function(e,t,n){e[u._nodeGroupBy?u._nodeGroupBy[u._drawDepth](t,n):u._id(t,n)]=t;return e},{});h=Array.from(new Set(Object.keys(a).concat(Object.keys(h)))).map(function(e,t){var n=a[e],i=h[e];if(i===undefined)return false;return{__d3plus__:true,data:n||i,i:t,id:e,node:i,shape:n!==undefined&&u._shape(n)!==undefined?u._shape(n):u._shape(i)}}).filter(function(e){return e});var i=this._nodeLookup=h.reduce(function(e,t){e[t.id]=t;return e},{});var r=this._links.map(function(n){var e=["source","target"];var t=e.reduce(function(e,t){e[t]=typeof n[t]==="number"?h[n[t]]:i[n[t].id||n[t]];return e},{});t.size=u._linkSize(n);return t});var o=r.reduce(function(e,t){if(!e[t.source.id]){e[t.source.id]=[]}e[t.source.id].push(t);if(!e[t.target.id]){e[t.target.id]=[]}e[t.target.id].push(t);return e},{});var c=this._height-this._margin.top-this._margin.bottom,s="translate(".concat(this._margin.left,", ").concat(this._margin.top,")"),l=this._transition,f=this._width-this._margin.left-this._margin.right;var d=[],g=je([c,f])/2,p=g/3;var v=p,m=p*2;var y=i[this._center];y.x=f/2;y.y=c/2;y.r=this._sizeMin?me([this._sizeMin,v*.65]):this._sizeMax?je([this._sizeMax,v*.65]):v*.65;var _=[y],b=[];o[this._center].forEach(function(e){var t=e.source.id===u._center?e.target:e.source;t.edges=o[t.id].filter(function(e){return e.source.id!==u._center||e.target.id!==u._center});t.edge=e;_.push(t);b.push(t)});b.sort(function(e,t){return e.edges.length-t.edges.length});var w=[];var x=0;b.forEach(function(e){var a=e.id;e.edges=e.edges.filter(function(e){return!_.includes(e.source)&&e.target.id===a||!_.includes(e.target)&&e.source.id===a});x+=e.edges.length||1;e.edges.forEach(function(e){var t=e.source,n=e.target;var i=n.id===a?t:n;_.push(i)})});var k=Math.PI*2;var S=0;b.forEach(function(r,e){var o=r.edges.length||1;var t=k/x*o;if(e===0){S-=t/2}var s=S+t/2-k/4;r.radians=s;r.x=f/2+v*Math.cos(s);r.y=c/2+v*Math.sin(s);S+=t;r.edges.forEach(function(e,t){var n=e.source.id===r.id?e.target:e.source;var i=k/x;var a=s-i*o/2+i/2+i*t;n.radians=a;n.x=f/2+m*Math.cos(a);n.y=c/2+m*Math.sin(a);w.push(n)})});var C=p/2;var E=p/4;var A=C/2-4;if(C/2-4<8){A=je([C/2,8])}var R=E/2-4;if(E/2-4<4){R=je([E/2,4])}if(R>p/10){R=p/10}if(R>A&&R>10){R=A*.75}if(A>R*1.5){A=R*1.5}A=Math.floor(A);R=Math.floor(R);var M;if(this._size){var T=Fe(a,function(e){return e.size});if(T[0]===T[1]){T[0]=0}M=Bi().domain(T).rangeRound([3,je([A,R])]);var B=y.size;y.r=M(B)}else{M=Bi().domain([1,2]).rangeRound([A,R])}w.forEach(function(e){e.ring=2;var t=u._size?e.size:2;e.r=u._sizeMin?me([u._sizeMin,M(t)]):u._sizeMax?je([u._sizeMax,M(t)]):M(t)});b.forEach(function(e){e.ring=1;var t=u._size?e.size:1;e.r=u._sizeMin?me([u._sizeMin,M(t)]):u._sizeMax?je([u._sizeMax,M(t)]):M(t)});h=[y].concat(b).concat(w);b.forEach(function(l){var e=["source","target"];var n=l.edge;e.forEach(function(t){n[t]=h.find(function(e){return e.id===n[t].id})});d.push(n);o[l.id].forEach(function(i){var t=i.source.id===l.id?i.target:i.source;if(t.id!==y.id){var a=w.find(function(e){return e.id===t.id});if(!a){a=b.find(function(e){return e.id===t.id})}if(a){i.spline=true;var r=f/2;var o=c/2;var s=v+(m-v)*.5;var e=["source","target"];e.forEach(function(t,e){i["".concat(t,"X")]=i[t].x+Math.cos(i[t].ring===2?i[t].radians+Math.PI:i[t].radians)*i[t].r;i["".concat(t,"Y")]=i[t].y+Math.sin(i[t].ring===2?i[t].radians+Math.PI:i[t].radians)*i[t].r;i["".concat(t,"BisectX")]=r+s*Math.cos(i[t].radians);i["".concat(t,"BisectY")]=o+s*Math.sin(i[t].radians);i[t]=h.find(function(e){return e.id===i[t].id});if(i[t].edges===undefined)i[t].edges={};var n=e===0?i.target.id:i.source.id;if(i[t].id===l.id){i[t].edges[n]={angle:l.radians+Math.PI,radius:p/2}}else{i[t].edges[n]={angle:a.radians,radius:p/2}}});d.push(i)}}})});h.forEach(function(e){if(e.id!==u._center){var t=u._shapeConfig.labelConfig.fontSize&&u._shapeConfig.labelConfig.fontSize(e)||11;var n=t*1.4;var i=n*2;var a=5;var r=p-e.r;var o=e.radians*(180/Math.PI);var s=e.r+a;var l="start";if(o<-90||o>90){s=-e.r-r-a;l="end";o+=180}e.labelBounds={x:s,y:-n/2,width:r,height:i};e.rotate=o;e.textAnchor=l}else{e.labelBounds={x:-v/2,y:-v/2,width:v,height:v}}});this._linkLookup=r.reduce(function(e,t){if(!e[t.source.id])e[t.source.id]=[];e[t.source.id].push(t.target);if(!e[t.target.id])e[t.target.id]=[];e[t.target.id].push(t.source);return e},{});var N=Fe(r,function(e){return e.size});if(N[0]!==N[1]){var P=je(h,function(e){return e.r});var D=Fo["scale".concat(this._linkSizeScale.charAt(0).toUpperCase()).concat(this._linkSizeScale.slice(1))]().domain(N).range([this._linkSizeMin,P]);r.forEach(function(e){e.size=D(e.size)})}var O=Px.bind(this)(this._shapeConfig,"edge","Path");delete O.on;this._shapes.push((new zT).config(O).strokeWidth(function(e){return e.size}).id(function(e){return"".concat(e.source.id,"_").concat(e.target.id)}).d(function(e){return e.spline?"M".concat(e.sourceX,",").concat(e.sourceY,"C").concat(e.sourceBisectX,",").concat(e.sourceBisectY," ").concat(e.targetBisectX,",").concat(e.targetBisectY," ").concat(e.targetX,",").concat(e.targetY):"M".concat(e.source.x,",").concat(e.source.y," ").concat(e.target.x,",").concat(e.target.y)}).data(d).select(Ox("g.d3plus-rings-links",{parent:this._select,transition:l,enter:{transform:s},update:{transform:s}}).node()).render());var z=this;var F={label:function e(t){return h.length<=u._dataCutoff||u._hover&&u._hover(t)||u._active&&u._active(t)?u._drawLabel(t.data||t.node,t.i):false},labelBounds:function e(t){return t.labelBounds},labelConfig:{fontColor:function e(t){return t.id===u._center?Px.bind(z)(z._shapeConfig,"shape",t.key).labelConfig.fontColor(t):sS(Px.bind(z)(z._shapeConfig,"shape",t.key).fill(t))},fontResize:function e(t){return t.id===u._center},padding:0,textAnchor:function e(t){return i[t.id].textAnchor||Px.bind(z)(z._shapeConfig,"shape",t.key).labelConfig.textAnchor},verticalAlign:function e(t){return t.id===u._center?"middle":"top"}},rotate:function e(t){return i[t.id].rotate||0},select:Ox("g.d3plus-rings-nodes",{parent:this._select,transition:l,enter:{transform:s},update:{transform:s}}).node()};X().key(function(e){return e.shape}).entries(h).forEach(function(e){u._shapes.push((new FT[e.key]).config(Px.bind(u)(u._shapeConfig,"shape",e.key)).config(F).data(e.values).render())});return this}},{key:"center",value:function e(t){return arguments.length?(this._center=t,this):this._center}},{key:"hover",value:function e(t){this._hover=t;this._shapes.forEach(function(e){return e.hover(t)});if(this._legend)this._legendClass.hover(t);return this}},{key:"links",value:function e(t,n){if(arguments.length){vB.bind(this)(t,n,"links");return this}return this._links}},{key:"linkSize",value:function e(t){return arguments.length?(this._linkSize=typeof t==="function"?t:Dx(t),this):this._linkSize}},{key:"linkSizeMin",value:function e(t){return arguments.length?(this._linkSizeMin=t,this):this._linkSizeMin}},{key:"linkSizeScale",value:function e(t){return arguments.length?(this._linkSizeScale=t,this):this._linkSizeScale}},{key:"nodeGroupBy",value:function e(t){var n=this;if(!arguments.length)return this._nodeGroupBy;if(!(t instanceof Array))t=[t];return this._nodeGroupBy=t.map(function(e){if(typeof e==="function")return e;else{if(!n._aggs[e]){n._aggs[e]=function(e,t){var n=Array.from(new Set(e.map(t)));return n.length===1?n[0]:n}}return wh(e)}}),this}},{key:"nodes",value:function e(t,n){if(arguments.length){vB.bind(this)(t,n,"nodes");return this}return this._nodes}},{key:"size",value:function e(t){return arguments.length?(this._size=typeof t==="function"||!t?t:wh(t),this):this._size}},{key:"sizeMax",value:function e(t){return arguments.length?(this._sizeMax=t,this):this._sizeMax}},{key:"sizeMin",value:function e(t){return arguments.length?(this._sizeMin=t,this):this._sizeMin}},{key:"sizeScale",value:function e(t){return arguments.length?(this._sizeScale=t,this):this._sizeScale}}]);return L}(ej);function ij(e){return e.target.depth}function aj(e){return e.depth}function rj(e,t){return t-1-e.height}function oj(e,t){return e.sourceLinks.length?e.depth:t-1}function sj(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?je(e.sourceLinks,ij)-1:0}function lj(e){return function(){return e}}function uj(e,t){return cj(e.source,t.source)||e.index-t.index}function hj(e,t){return cj(e.target,t.target)||e.index-t.index}function cj(e,t){return e.y0-t.y0}function fj(e){return e.value}function dj(e){return e.index}function gj(e){return e.nodes}function pj(e){return e.links}function vj(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function mj(){var o=0,c=0,s=1,f=1,l=24,d=8,t=dj,u=oj,g,p,n=gj,i=pj,v=6;function a(){var e={nodes:n.apply(null,arguments),links:i.apply(null,arguments)};r(e);h(e);m(e);y(e);b(e);return e}a.update=function(e){b(e);return e};a.nodeId=function(e){return arguments.length?(t=typeof e==="function"?e:lj(e),a):t};a.nodeAlign=function(e){return arguments.length?(u=typeof e==="function"?e:lj(e),a):u};a.nodeSort=function(e){return arguments.length?(g=e,a):g};a.nodeWidth=function(e){return arguments.length?(l=+e,a):l};a.nodePadding=function(e){return arguments.length?(d=+e,a):d};a.nodes=function(e){return arguments.length?(n=typeof e==="function"?e:lj(e),a):n};a.links=function(e){return arguments.length?(i=typeof e==="function"?e:lj(e),a):i};a.linkSort=function(e){return arguments.length?(p=e,a):p};a.size=function(e){return arguments.length?(o=c=0,s=+e[0],f=+e[1],a):[s-o,f-c]};a.extent=function(e){return arguments.length?(o=+e[0][0],s=+e[1][0],c=+e[0][1],f=+e[1][1],a):[[o,c],[s,f]]};a.iterations=function(e){return arguments.length?(v=+e,a):v};function r(e){e.nodes.forEach(function(e,t){e.index=t;e.sourceLinks=[];e.targetLinks=[]});var a=E(e.nodes,t);e.links.forEach(function(e,t){e.index=t;var n=e.source,i=e.target;if(_typeof2(n)!=="object")n=e.source=vj(a,n);if(_typeof2(i)!=="object")i=e.target=vj(a,i);n.sourceLinks.push(e);i.targetLinks.push(e)})}function h(e){e.nodes.forEach(function(e){e.value=Math.max(O(e.sourceLinks,fj),O(e.targetLinks,fj))})}function m(e){var t,n,i,a=e.nodes.length;for(t=e.nodes,n=[],i=0;t.length;++i,t=n,n=[]){if(i>a)throw new Error("circular link");t.forEach(function(e){e.depth=i;e.sourceLinks.forEach(function(e){if(n.indexOf(e.target)<0){n.push(e.target)}})})}for(t=e.nodes,n=[],i=0;t.length;++i,t=n,n=[]){if(i>a)throw new Error("circular link");t.forEach(function(e){e.height=i;e.targetLinks.forEach(function(e){if(n.indexOf(e.source)<0){n.push(e.source)}})})}var r=(s-o-l)/(i-1);e.nodes.forEach(function(e){e.layer=Math.max(0,Math.min(i-1,Math.floor(u.call(null,e,i))));e.x1=(e.x0=o+e.layer*r)+l})}function y(e){var t=X().key(function(e){return e.x0}).sortKeys(k).entries(e.nodes).map(function(e){return e.values});o();for(var n=0,i=v;n0))return;var u=(t/n-e.y0)*h;e.y0+=u;e.y1+=u})})}function l(h){t.slice(0,-1).reverse().forEach(function(e){e.forEach(function(e){var t=0;var n=0;var i=_createForOfIteratorHelper(e.sourceLinks),a;try{for(i.s();!(a=i.n()).done;){var r=a.value,o=r.target,s=r.value;var l=s*(o.layer-e.layer);t+=x(e,o)*l;n+=l}}catch(e){i.e(e)}finally{i.f()}if(!(n>0))return;var u=(t/n-e.y0)*h;e.y0+=u;e.y1+=u})})}function u(o){t.forEach(function(e){var t,n,i=c,a=e.length,r;if(g===undefined)e.sort(cj);for(r=0;r1e-6)t.y0+=n,t.y1+=n;i=t.y1+d}})}function h(o){t.forEach(function(e){var t,n,i=f,a=e.length,r;if(g===undefined)e.sort(cj);for(r=a-1;r>=0;--r){t=e[r];n=(t.y1-i)*o;if(n>1e-6)t.y0-=n,t.y1-=n;i=t.y0-d}})}}function _(e){if(p===undefined)e.nodes.forEach(function(e){e.sourceLinks.sort(hj);e.targetLinks.sort(uj)})}function b(e){_(e);e.nodes.forEach(function(e){var t=e.y0,n=t;e.sourceLinks.forEach(function(e){e.y0=t+e.width/2,t+=e.width});e.targetLinks.forEach(function(e){e.y1=n+e.width/2,n+=e.width})})}function w(e,t){var n=e.y0-(e.sourceLinks.length-1)*d/2;var i=_createForOfIteratorHelper(e.sourceLinks),a;try{for(i.s();!(a=i.n()).done;){var r=a.value,o=r.target,s=r.width;if(o===t)break;n+=s+d}}catch(e){i.e(e)}finally{i.f()}var l=_createForOfIteratorHelper(t.targetLinks),u;try{for(l.s();!(u=l.n()).done;){var h=u.value,c=h.source,f=h.width;if(c===e)break;n-=f}}catch(e){l.e(e)}finally{l.f()}return n}function x(e,t){var n=t.y0-(t.targetLinks.length-1)*d/2;var i=_createForOfIteratorHelper(t.targetLinks),a;try{for(i.s();!(a=i.n()).done;){var r=a.value,o=r.source,s=r.width;if(o===e)break;n+=s+d}}catch(e){i.e(e)}finally{i.f()}var l=_createForOfIteratorHelper(e.sourceLinks),u;try{for(l.s();!(u=l.n()).done;){var h=u.value,c=h.target,f=h.width;if(c===t)break;n-=f}}catch(e){l.e(e)}finally{l.f()}return n}return a}function yj(e){return[e.source.x1,e.y0]}function _j(e){return[e.target.x0,e.y1]}function bj(){return oC().source(yj).target(_j)}var wj={center:sj,justify:oj,left:aj,right:rj};var xj=function(e){"use strict";_inherits2(h,e);var t=_createSuper2(h);function h(){var s;_classCallCheck2(this,h);s=t.call(this);s._nodeId=wh("id");s._links=wh("links");s._linksSource="source";s._linksTarget="target";s._noDataMessage=false;s._nodes=wh("nodes");s._nodeAlign=wj.justify;s._nodePadding=8;s._nodeWidth=30;s._on.mouseenter=function(){};s._on["mouseleave.shape"]=function(){s.hover(false)};var l=s._on["mousemove.shape"];s._on["mousemove.shape"]=function(e,t){l(e,t);if(s._focus&&s._focus===e.id){s.hover(false);s._on.mouseenter.bind(_assertThisInitialized2(s))(e,t);s._focus=undefined}else{var n=s._nodeId(e,t),i=s._nodeLookup[n],a=Object.keys(s._nodeLookup).reduce(function(e,t){e[s._nodeLookup[t]]=!isNaN(t)?parseInt(t,10):t;return e},{});var r=s._linkLookup[i];var o=[n];r.forEach(function(e){o.push(a[e])});s.hover(function(e,t){if(e.source&&e.target){return e.source.id===n||e.target.id===n}else{return o.includes(s._nodeId(e,t))}})}};s._path=bj();s._sankey=mj();s._shape=Dx("Rect");s._shapeConfig=Ch(s._shapeConfig,{Path:{fill:"none",hoverStyle:{"stroke-width":function e(t){return Math.max(1,Math.abs(t.source.y1-t.source.y0)*(t.value/t.source.value)-2)}},label:false,stroke:"#DBDBDB",strokeOpacity:.5,strokeWidth:function e(t){return Math.max(1,Math.abs(t.source.y1-t.source.y0)*(t.value/t.source.value)-2)}},Rect:{}});s._value=Dx(1);return s}_createClass2(h,[{key:"_draw",value:function e(t){var a=this;_get2(_getPrototypeOf2(h.prototype),"_draw",this).call(this,t);var n=this._height-this._margin.top-this._margin.bottom,i=this._width-this._margin.left-this._margin.right;var r=Array.isArray(this._nodes)?this._nodes:this._links.reduce(function(e,t){if(!e.includes(t[a._linksSource]))e.push(t[a._linksSource]);if(!e.includes(t[a._linksTarget]))e.push(t[a._linksTarget]);return e},[]).map(function(e){return{id:e}});var o=r.map(function(e,t){return{__d3plus__:true,data:e,i:t,id:a._nodeId(e,t),node:e,shape:"Rect"}});var s=this._nodeLookup=o.reduce(function(e,t,n){e[t.id]=n;return e},{});var l=this._links.map(function(n,e){var t=[a._linksSource,a._linksTarget];var i=t.reduce(function(e,t){e[t]=s[n[t]];return e},{});return{source:i[a._linksSource],target:i[a._linksTarget],value:a._value(n,e)}});this._linkLookup=l.reduce(function(e,t){if(!e[t.source])e[t.source]=[];e[t.source].push(t.target);if(!e[t.target])e[t.target]=[];e[t.target].push(t.source);return e},{});var u="translate(".concat(this._margin.left,", ").concat(this._margin.top,")");this._sankey.nodeAlign(this._nodeAlign).nodePadding(this._nodePadding).nodeWidth(this._nodeWidth).nodes(o).links(l).size([i,n])();this._shapes.push((new zT).config(this._shapeConfig.Path).data(l).d(this._path).select(Ox("g.d3plus-Links",{parent:this._select,enter:{transform:u},update:{transform:u}}).node()).render());X().key(function(e){return e.shape}).entries(o).forEach(function(e){a._shapes.push((new FT[e.key]).data(e.values).height(function(e){return e.y1-e.y0}).width(function(e){return e.x1-e.x0}).x(function(e){return(e.x1+e.x0)/2}).y(function(e){return(e.y1+e.y0)/2}).select(Ox("g.d3plus-sankey-nodes",{parent:a._select,enter:{transform:u},update:{transform:u}}).node()).config(Px.bind(a)(a._shapeConfig,"shape",e.key)).render())});return this}},{key:"hover",value:function e(t){this._hover=t;this._shapes.forEach(function(e){return e.hover(t)});if(this._legend)this._legendClass.hover(t);return this}},{key:"links",value:function e(t,n){if(arguments.length){var i=this._queue.find(function(e){return e[3]==="links"});var a=[pB.bind(this),t,n,"links"];if(i)this._queue[this._queue.indexOf(i)]=a;else this._queue.push(a);return this}return this._links}},{key:"linksSource",value:function e(t){return arguments.length?(this._linksSource=t,this):this._linksSource}},{key:"linksTarget",value:function e(t){return arguments.length?(this._linksTarget=t,this):this._linksTarget}},{key:"nodeAlign",value:function e(t){return arguments.length?(this._nodeAlign=typeof t==="function"?t:wj[t],this):this._nodeAlign}},{key:"nodeId",value:function e(t){return arguments.length?(this._nodeId=typeof t==="function"?t:wh(t),this):this._nodeId}},{key:"nodes",value:function e(t,n){if(arguments.length){var i=this._queue.find(function(e){return e[3]==="nodes"});var a=[pB.bind(this),t,n,"nodes"];if(i)this._queue[this._queue.indexOf(i)]=a;else this._queue.push(a);return this}return this._nodes}},{key:"nodePadding",value:function e(t){return arguments.length?(this._nodePadding=t,this):this._nodePadding}},{key:"nodeWidth",value:function e(t){return arguments.length?(this._nodeWidth=t,this):this._nodeWidth}},{key:"value",value:function e(t){return arguments.length?(this._value=typeof t==="function"?t:wh(t),this):this._value}}]);return h}(ej);e.Network=tj;e.Rings=nj;e.Sankey=xj;Object.defineProperty(e,"__esModule",{value:true})});