additionals/assets/javascripts/d3plus.min.js
2022-09-06 17:39:28 +02:00

9 lines
1.2 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

function _defineProperty2(t,e,n){if(e in t){Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true})}else{t[e]=n}return t}function _slicedToArray2(t,e){return _arrayWithHoles2(t)||_iterableToArrayLimit2(t,e)||_unsupportedIterableToArray2(t,e)||_nonIterableRest2()}function _nonIterableRest2(){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 _iterableToArrayLimit2(t,e){var n=t==null?null:typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n==null)return;var r=[];var i=true;var a=false;var o,s;try{for(n=n.call(t);!(i=(o=n.next()).done);i=true){r.push(o.value);if(e&&r.length===e)break}}catch(t){a=true;s=t}finally{try{if(!i&&n["return"]!=null)n["return"]()}finally{if(a)throw s}}return r}function _arrayWithHoles2(t){if(Array.isArray(t))return t}function _get2(){if(typeof Reflect!=="undefined"&&Reflect.get){_get2=Reflect.get}else{_get2=function t(e,n,r){var i=_superPropBase2(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(arguments.length<3?e:r)}return a.value}}return _get2.apply(this,arguments)}function _superPropBase2(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=_getPrototypeOf2(t);if(t===null)break}return t}function _inherits2(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}}),writable:false});if(e)_setPrototypeOf2(t,e)}function _createSuper2(i){var a=_isNativeReflectConstruct2();return function t(){var e=_getPrototypeOf2(i),n;if(a){var r=_getPrototypeOf2(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return _possibleConstructorReturn2(this,n)}}function _possibleConstructorReturn2(t,e){if(e&&(_typeof2(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return _assertThisInitialized2(t)}function _assertThisInitialized2(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function _wrapNativeSuper(t){var r=typeof Map==="function"?new Map:undefined;_wrapNativeSuper=function t(e){if(e===null||!_isNativeFunction(e))return e;if(typeof e!=="function"){throw new TypeError("Super expression must either be null or a function")}if(typeof r!=="undefined"){if(r.has(e))return r.get(e);r.set(e,n)}function n(){return _construct(e,arguments,_getPrototypeOf2(this).constructor)}n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:false,writable:true,configurable:true}});return _setPrototypeOf2(n,e)};return _wrapNativeSuper(t)}function _construct(t,e,n){if(_isNativeReflectConstruct2()){_construct=Reflect.construct}else{_construct=function t(e,n,r){var i=[null];i.push.apply(i,n);var a=Function.bind.apply(e,i);var o=new a;if(r)_setPrototypeOf2(o,r.prototype);return o}}return _construct.apply(null,arguments)}function _isNativeReflectConstruct2(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function _isNativeFunction(t){return Function.toString.call(t).indexOf("[native code]")!==-1}function _setPrototypeOf2(t,e){_setPrototypeOf2=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return _setPrototypeOf2(t,e)}function _getPrototypeOf2(t){_getPrototypeOf2=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return _getPrototypeOf2(t)}function _classCallCheck2(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function _createClass2(t,e,n){if(e)_defineProperties(t.prototype,e);if(n)_defineProperties(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function _createForOfIteratorHelper2(e,t){var n=typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_unsupportedIterableToArray2(e))||t&&e&&typeof e.length==="number"){if(n)e=n;var r=0;var i=function t(){};return{s:i,n:function t(){if(r>=e.length)return{done:true};return{done:false,value:e[r++]}},e:function t(e){throw e},f:i}}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 a=true,o=false,s;return{s:function t(){n=n.call(e)},n:function t(){var e=n.next();a=e.done;return e},e:function t(e){o=true;s=e},f:function t(){try{if(!a&&n["return"]!=null)n["return"]()}finally{if(o)throw s}}}}function _unsupportedIterableToArray2(t,e){if(!t)return;if(typeof t==="string")return _arrayLikeToArray2(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray2(t,e)}function _arrayLikeToArray2(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,r=new Array(e);n<e;n++){r[n]=t[n]}return r}function _typeof2(t){"@babel/helpers - typeof";return _typeof2="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_typeof2(t)}
/*
d3plus v2.0.2
Data visualization made easy. A javascript library that extends the popular D3.js to enable fast and beautiful visualizations.
Copyright (c) 2022 D3plus - https://d3plus.org
@license MIT
*/
(function(t){typeof define==="function"&&define.amd?define(t):t()})(function(){"use strict";function t(t){var e={exports:{}};return t(e,e.exports),e.exports}var Wt=t(function(t){var e=t.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();if(typeof __g=="number")__g=e});var r={}.hasOwnProperty;var qt=function t(e,n){return r.call(e,n)};var Kt=function t(e){try{return!!e()}catch(t){return true}};var Yt=!Kt(function(){return Object.defineProperty({},"a",{get:function t(){return 7}}).a!=7});var p=t(function(t){var e=t.exports={version:"2.6.12"};if(typeof __e=="number")__e=e});var Xt=function t(e){return _typeof2(e)==="object"?e!==null:typeof e==="function"};var S=function t(e){if(!Xt(e))throw TypeError(e+" is not an object!");return e};var n=Wt.document;var i=Xt(n)&&Xt(n.createElement);var o=function t(e){return i?n.createElement(e):{}};var a=!Yt&&!Kt(function(){return Object.defineProperty(o("div"),"a",{get:function t(){return 7}}).a!=7});var Zt=function t(e,n){if(!Xt(e))return e;var r,i;if(n&&typeof(r=e.toString)=="function"&&!Xt(i=r.call(e)))return i;if(typeof(r=e.valueOf)=="function"&&!Xt(i=r.call(e)))return i;if(!n&&typeof(r=e.toString)=="function"&&!Xt(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")};var s=Object.defineProperty;var e=Yt?Object.defineProperty:function t(e,n,r){S(e);n=Zt(n,true);S(r);if(a)try{return s(e,n,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");if("value"in r)e[n]=r.value;return e};var $t={f:e};var Jt=function t(e,n){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:n}};var Qt=Yt?function(t,e,n){return $t.f(t,e,Jt(1,n))}:function(t,e,n){t[e]=n;return t};var u=0;var l=Math.random();var te=function t(e){return"Symbol(".concat(e===undefined?"":e,")_",(++u+l).toString(36))};var ee=false;var c=t(function(t){var e="__core-js_shared__";var n=Wt[e]||(Wt[e]={});(t.exports=function(t,e){return n[t]||(n[t]=e!==undefined?e:{})})("versions",[]).push({version:p.version,mode:"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})});var f=c("native-function-to-string",Function.toString);var b=t(function(t){var a=te("src");var e="toString";var o=(""+f).split(e);p.inspectSource=function(t){return f.call(t)};(t.exports=function(t,e,n,r){var i=typeof n=="function";if(i)qt(n,"name")||Qt(n,"name",e);if(t[e]===n)return;if(i)qt(n,a)||Qt(n,a,t[e]?""+t[e]:o.join(String(e)));if(t===Wt){t[e]=n}else if(!r){delete t[e];Qt(t,e,n)}else if(t[e]){t[e]=n}else{Qt(t,e,n)}})(Function.prototype,e,function t(){return typeof this=="function"&&this[a]||f.call(this)})});var h=function t(e){if(typeof e!="function")throw TypeError(e+" is not a function!");return e};var ne=function t(r,i,e){h(r);if(i===undefined)return r;switch(e){case 1:return function(t){return r.call(i,t)};case 2:return function(t,e){return r.call(i,t,e)};case 3:return function(t,e,n){return r.call(i,t,e,n)}}return function(){return r.apply(i,arguments)}};var y="prototype";var d=function t(e,n,r){var i=e&t.F;var a=e&t.G;var o=e&t.S;var s=e&t.P;var u=e&t.B;var l=a?Wt:o?Wt[n]||(Wt[n]={}):(Wt[n]||{})[y];var c=a?p:p[n]||(p[n]={});var f=c[y]||(c[y]={});var h,d,g,v;if(a)r=n;for(h in r){d=!i&&l&&l[h]!==undefined;g=(d?l:r)[h];v=u&&d?ne(g,Wt):s&&typeof g=="function"?ne(Function.call,g):g;if(l)b(l,h,g,e&t.U);if(c[h]!=g)Qt(c,h,v);if(s&&f[h]!=g)f[h]=g}};Wt.core=p;d.F=1;d.G=2;d.S=4;d.P=8;d.B=16;d.W=32;d.U=64;d.R=128;var re=d;var m=t(function(t){var r=te("meta");var n=$t.f;var i=0;var a=Object.isExtensible||function(){return true};var o=!Kt(function(){return a(Object.preventExtensions({}))});var s=function t(e){n(e,r,{value:{i:"O"+ ++i,w:{}}})};var e=function t(e,n){if(!Xt(e))return _typeof2(e)=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!qt(e,r)){if(!a(e))return"F";if(!n)return"E";s(e)}return e[r].i};var u=function t(e,n){if(!qt(e,r)){if(!a(e))return true;if(!n)return false;s(e)}return e[r].w};var l=function t(e){if(o&&c.NEED&&a(e)&&!qt(e,r))s(e);return e};var c=t.exports={KEY:r,NEED:false,fastKey:e,getWeak:u,onFreeze:l}});var ie=t(function(t){var e=c("wks");var n=Wt.Symbol;var r=typeof n=="function";var i=t.exports=function(t){return e[t]||(e[t]=r&&n[t]||(r?n:te)("Symbol."+t))};i.store=e});var g=$t.f;var v=ie("toStringTag");var G=function t(e,n,r){if(e&&!qt(e=r?e:e.prototype,v))g(e,v,{configurable:true,value:n})};var _=ie;var w={f:_};var x=$t.f;var k=function t(e){var n=p.Symbol||(p.Symbol=Wt.Symbol||{});if(e.charAt(0)!="_"&&!(e in n))x(n,e,{value:w.f(e)})};var C={}.toString;var E=function t(e){return C.call(e).slice(8,-1)};var A=Object("z").propertyIsEnumerable(0)?Object:function(t){return E(t)=="String"?t.split(""):Object(t)};var M=function t(e){if(e==undefined)throw TypeError("Can't call method on "+e);return e};var R=function t(e){return A(M(e))};var T=Math.ceil;var O=Math.floor;var ae=function t(e){return isNaN(e=+e)?0:(e>0?O:T)(e)};var P=Math.min;var oe=function t(e){return e>0?P(ae(e),9007199254740991):0};var B=Math.max;var D=Math.min;var se=function t(e,n){e=ae(e);return e<0?B(e+n,0):D(e,n)};var ue=function t(s){return function(t,e,n){var r=R(t);var i=oe(r.length);var a=se(n,i);var o;if(s&&e!=e)while(i>a){o=r[a++];if(o!=o)return true}else for(;i>a;a++){if(s||a in r){if(r[a]===e)return s||a||0}}return!s&&-1}};var N=c("keys");var z=function t(e){return N[e]||(N[e]=te(e))};var F=ue(false);var j=z("IE_PROTO");var I=function t(e,n){var r=R(e);var i=0;var a=[];var o;for(o in r){if(o!=j)qt(r,o)&&a.push(o)}while(n.length>i){if(qt(r,o=n[i++])){~F(a,o)||a.push(o)}}return a};var L="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");var H=Object.keys||function t(e){return I(e,L)};var U=Object.getOwnPropertySymbols;var V={f:U};var W={}.propertyIsEnumerable;var q={f:W};var K=function t(e){var n=H(e);var r=V.f;if(r){var i=r(e);var a=q.f;var o=0;var s;while(i.length>o){if(a.call(e,s=i[o++]))n.push(s)}}return n};var Y=Array.isArray||function t(e){return E(e)=="Array"};var le=function t(e){return Object(M(e))};var X=Yt?Object.defineProperties:function t(e,n){S(e);var r=H(n);var i=r.length;var a=0;var o;while(i>a){$t.f(e,o=r[a++],n[o])}return e};var Z=Wt.document;var $=Z&&Z.documentElement;var J=z("IE_PROTO");var Q=function t(){};var tt="prototype";var et=function t(){var e=o("iframe");var n=L.length;var r="<";var i=">";var a;e.style.display="none";$.appendChild(e);e.src="javascript:";a=e.contentWindow.document;a.open();a.write(r+"script"+i+"document.F=Object"+r+"/script"+i);a.close();et=a.F;while(n--){delete et[tt][L[n]]}return et()};var ce=Object.create||function t(e,n){var r;if(e!==null){Q[tt]=S(e);r=new Q;Q[tt]=null;r[J]=e}else r=et();return n===undefined?r:X(r,n)};var nt=L.concat("length","prototype");var rt=Object.getOwnPropertyNames||function t(e){return I(e,nt)};var fe={f:rt};var it=fe.f;var at={}.toString;var ot=(typeof window==="undefined"?"undefined":_typeof2(window))=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];var st=function t(e){try{return it(e)}catch(t){return ot.slice()}};var ut=function t(e){return ot&&at.call(e)=="[object Window]"?st(e):it(R(e))};var lt={f:ut};var ct=Object.getOwnPropertyDescriptor;var ft=Yt?ct:function t(e,n){e=R(e);n=Zt(n,true);if(a)try{return ct(e,n)}catch(t){}if(qt(e,n))return Jt(!q.f.call(e,n),e[n])};var he={f:ft};var ht=m.KEY;var dt=he.f;var gt=$t.f;var vt=lt.f;var pt=Wt.Symbol;var yt=Wt.JSON;var mt=yt&&yt.stringify;var _t="prototype";var bt=ie("_hidden");var wt=ie("toPrimitive");var xt={}.propertyIsEnumerable;var kt=c("symbol-registry");var St=c("symbols");var Ct=c("op-symbols");var Et=Object[_t];var At=typeof pt=="function"&&!!V.f;var Mt=Wt.QObject;var Rt=!Mt||!Mt[_t]||!Mt[_t].findChild;var Tt=Yt&&Kt(function(){return ce(gt({},"a",{get:function t(){return gt(this,"a",{value:7}).a}})).a!=7})?function(t,e,n){var r=dt(Et,e);if(r)delete Et[e];gt(t,e,n);if(r&&t!==Et)gt(Et,e,r)}:gt;var Ot=function t(e){var n=St[e]=ce(pt[_t]);n._k=e;return n};var Pt=At&&_typeof2(pt.iterator)=="symbol"?function(t){return _typeof2(t)=="symbol"}:function(t){return t instanceof pt};var Bt=function t(e,n,r){if(e===Et)Bt(Ct,n,r);S(e);n=Zt(n,true);S(r);if(qt(St,n)){if(!r.enumerable){if(!qt(e,bt))gt(e,bt,Jt(1,{}));e[bt][n]=true}else{if(qt(e,bt)&&e[bt][n])e[bt][n]=false;r=ce(r,{enumerable:Jt(0,false)})}return Tt(e,n,r)}return gt(e,n,r)};var Dt=function t(e,n){S(e);var r=K(n=R(n));var i=0;var a=r.length;var o;while(a>i){Bt(e,o=r[i++],n[o])}return e};var Nt=function t(e,n){return n===undefined?ce(e):Dt(ce(e),n)};var zt=function t(e){var n=xt.call(this,e=Zt(e,true));if(this===Et&&qt(St,e)&&!qt(Ct,e))return false;return n||!qt(this,e)||!qt(St,e)||qt(this,bt)&&this[bt][e]?n:true};var Ft=function t(e,n){e=R(e);n=Zt(n,true);if(e===Et&&qt(St,n)&&!qt(Ct,n))return;var r=dt(e,n);if(r&&qt(St,n)&&!(qt(e,bt)&&e[bt][n]))r.enumerable=true;return r};var jt=function t(e){var n=vt(R(e));var r=[];var i=0;var a;while(n.length>i){if(!qt(St,a=n[i++])&&a!=bt&&a!=ht)r.push(a)}return r};var It=function t(e){var n=e===Et;var r=vt(n?Ct:R(e));var i=[];var a=0;var o;while(r.length>a){if(qt(St,o=r[a++])&&(n?qt(Et,o):true))i.push(St[o])}return i};if(!At){pt=function t(){if(this instanceof pt)throw TypeError("Symbol is not a constructor!");var n=te(arguments.length>0?arguments[0]:undefined);var e=function t(e){if(this===Et)t.call(Ct,e);if(qt(this,bt)&&qt(this[bt],n))this[bt][n]=false;Tt(this,n,Jt(1,e))};if(Yt&&Rt)Tt(Et,n,{configurable:true,set:e});return Ot(n)};b(pt[_t],"toString",function t(){return this._k});he.f=Ft;$t.f=Bt;fe.f=lt.f=jt;q.f=zt;V.f=It;if(Yt&&!ee){b(Et,"propertyIsEnumerable",zt,true)}w.f=function(t){return Ot(ie(t))}}re(re.G+re.W+re.F*!At,{Symbol:pt});for(var Lt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),Ht=0;Lt.length>Ht;){ie(Lt[Ht++])}for(var Ut=H(ie.store),Gt=0;Ut.length>Gt;){k(Ut[Gt++])}re(re.S+re.F*!At,"Symbol",{for:function t(e){return qt(kt,e+="")?kt[e]:kt[e]=pt(e)},keyFor:function t(e){if(!Pt(e))throw TypeError(e+" is not a symbol!");for(var n in kt){if(kt[n]===e)return n}},useSetter:function t(){Rt=true},useSimple:function t(){Rt=false}});re(re.S+re.F*!At,"Object",{create:Nt,defineProperty:Bt,defineProperties:Dt,getOwnPropertyDescriptor:Ft,getOwnPropertyNames:jt,getOwnPropertySymbols:It});var Vt=Kt(function(){V.f(1)});re(re.S+re.F*Vt,"Object",{getOwnPropertySymbols:function t(e){return V.f(le(e))}});yt&&re(re.S+re.F*(!At||Kt(function(){var t=pt();return mt([t])!="[null]"||mt({a:t})!="{}"||mt(Object(t))!="{}"})),"JSON",{stringify:function t(e){var n=[e];var r=1;var i,a;while(arguments.length>r){n.push(arguments[r++])}a=i=n[1];if(!Xt(i)&&e===undefined||Pt(e))return;if(!Y(i))i=function t(e,n){if(typeof a=="function")n=a.call(this,e,n);if(!Pt(n))return n};n[1]=i;return mt.apply(yt,n)}});pt[_t][wt]||Qt(pt[_t],wt,pt[_t].valueOf);G(pt,"Symbol");G(Math,"Math",true);G(Wt.JSON,"JSON",true);re(re.S,"Object",{create:ce});re(re.S+re.F*!Yt,"Object",{defineProperty:$t.f});re(re.S+re.F*!Yt,"Object",{defineProperties:X});var de=function t(e,n){var r=(p.Object||{})[e]||Object[e];var i={};i[e]=n(r);re(re.S+re.F*Kt(function(){r(1)}),"Object",i)};var ge=he.f;de("getOwnPropertyDescriptor",function(){return function t(e,n){return ge(R(e),n)}});var ve=z("IE_PROTO");var pe=Object.prototype;var ye=Object.getPrototypeOf||function(t){t=le(t);if(qt(t,ve))return t[ve];if(typeof t.constructor=="function"&&t instanceof t.constructor){return t.constructor.prototype}return t instanceof Object?pe:null};de("getPrototypeOf",function(){return function t(e){return ye(le(e))}});de("keys",function(){return function t(e){return H(le(e))}});de("getOwnPropertyNames",function(){return lt.f});var me=m.onFreeze;de("freeze",function(n){return function t(e){return n&&Xt(e)?n(me(e)):e}});var _e=m.onFreeze;de("seal",function(n){return function t(e){return n&&Xt(e)?n(_e(e)):e}});var be=m.onFreeze;de("preventExtensions",function(n){return function t(e){return n&&Xt(e)?n(be(e)):e}});de("isFrozen",function(n){return function t(e){return Xt(e)?n?n(e):false:true}});de("isSealed",function(n){return function t(e){return Xt(e)?n?n(e):false:true}});de("isExtensible",function(n){return function t(e){return Xt(e)?n?n(e):true:false}});var we=Object.assign;var xe=!we||Kt(function(){var t={};var e={};var n=Symbol();var r="abcdefghijklmnopqrst";t[n]=7;r.split("").forEach(function(t){e[t]=t});return we({},t)[n]!=7||Object.keys(we({},e)).join("")!=r})?function t(e,n){var r=le(e);var i=arguments.length;var a=1;var o=V.f;var s=q.f;while(i>a){var u=A(arguments[a++]);var l=o?H(u).concat(o(u)):H(u);var c=l.length;var f=0;var h;while(c>f){h=l[f++];if(!Yt||s.call(u,h))r[h]=u[h]}}return r}:we;re(re.S+re.F,"Object",{assign:xe});var ke=Object.is||function t(e,n){return e===n?e!==0||1/e===1/n:e!=e&&n!=n};re(re.S,"Object",{is:ke});var Se=function t(e,n){S(e);if(!Xt(n)&&n!==null)throw TypeError(n+": can't set as prototype!")};var Ce={set:Object.setPrototypeOf||("__proto__"in{}?function(t,r,i){try{i=ne(Function.call,he.f(Object.prototype,"__proto__").set,2);i(t,[]);r=!(t instanceof Array)}catch(t){r=true}return function t(e,n){Se(e,n);if(r)e.__proto__=n;else i(e,n);return e}}({},false):undefined),check:Se};re(re.S,"Object",{setPrototypeOf:Ce.set});var Ee=ie("toStringTag");var Ae=E(function(){return arguments}())=="Arguments";var Me=function t(e,n){try{return e[n]}catch(t){}};var Re=function t(e){var n,r,i;return e===undefined?"Undefined":e===null?"Null":typeof(r=Me(n=Object(e),Ee))=="string"?r:Ae?E(n):(i=E(n))=="Object"&&typeof n.callee=="function"?"Arguments":i};var Te={};Te[ie("toStringTag")]="z";if(Te+""!="[object z]"){b(Object.prototype,"toString",function t(){return"[object "+Re(this)+"]"},true)}var Oe=function t(e,n,r){var i=r===undefined;switch(n.length){case 0:return i?e():e.call(r);case 1:return i?e(n[0]):e.call(r,n[0]);case 2:return i?e(n[0],n[1]):e.call(r,n[0],n[1]);case 3:return i?e(n[0],n[1],n[2]):e.call(r,n[0],n[1],n[2]);case 4:return i?e(n[0],n[1],n[2],n[3]):e.call(r,n[0],n[1],n[2],n[3])}return e.apply(r,n)};var Pe=[].slice;var Be={};var De=function t(e,n,r){if(!(n in Be)){for(var i=[],a=0;a<n;a++){i[a]="a["+a+"]"}Be[n]=Function("F,a","return new F("+i.join(",")+")")}return Be[n](e,r)};var Ne=Function.bind||function t(n){var r=h(this);var i=Pe.call(arguments,1);var e=function t(){var e=i.concat(Pe.call(arguments));return this instanceof t?De(r,e.length,e):Oe(r,e,n)};if(Xt(r.prototype))e.prototype=r.prototype;return e};re(re.P,"Function",{bind:Ne});var ze=$t.f;var Fe=Function.prototype;var je=/^\s*function ([^ (]*)/;var Ie="name";Ie in Fe||Yt&&ze(Fe,Ie,{configurable:true,get:function t(){try{return(""+this).match(je)[1]}catch(t){return""}}});var Le=ie("hasInstance");var He=Function.prototype;if(!(Le in He))$t.f(He,Le,{value:function t(e){if(typeof this!="function"||!Xt(e))return false;if(!Xt(this.prototype))return e instanceof this;while(e=ye(e)){if(this.prototype===e)return true}return false}});var Ue="\t\n\v\f\r "+" \u2028\u2029\ufeff";var Ge="["+Ue+"]";var Ve="…";var We=RegExp("^"+Ge+Ge+"*");var qe=RegExp(Ge+Ge+"*$");var Ke=function t(e,n,r){var i={};var a=Kt(function(){return!!Ue[e]()||Ve[e]()!=Ve});var o=i[e]=a?n(Ye):Ue[e];if(r)i[r]=o;re(re.P+re.F*a,"String",i)};var Ye=Ke.trim=function(t,e){t=String(M(t));if(e&1)t=t.replace(We,"");if(e&2)t=t.replace(qe,"");return t};var Xe=Ke;var Ze=Wt.parseInt;var $e=Xe.trim;var Je=/^[-+]?0[xX]/;var Qe=Ze(Ue+"08")!==8||Ze(Ue+"0x16")!==22?function t(e,n){var r=$e(String(e),3);return Ze(r,n>>>0||(Je.test(r)?16:10))}:Ze;re(re.G+re.F*(parseInt!=Qe),{parseInt:Qe});var tn=Wt.parseFloat;var en=Xe.trim;var nn=1/tn(Ue+"-0")!==-Infinity?function t(e){var n=en(String(e),3);var r=tn(n);return r===0&&n.charAt(0)=="-"?-0:r}:tn;re(re.G+re.F*(parseFloat!=nn),{parseFloat:nn});var rn=Ce.set;var an=function t(e,n,r){var i=n.constructor;var a;if(i!==r&&typeof i=="function"&&(a=i.prototype)!==r.prototype&&Xt(a)&&rn){rn(e,a)}return e};var on=fe.f;var sn=he.f;var un=$t.f;var ln=Xe.trim;var cn="Number";var fn=Wt[cn];var hn=fn;var dn=fn.prototype;var gn=E(ce(dn))==cn;var vn="trim"in String.prototype;var pn=function t(e){var n=Zt(e,false);if(typeof n=="string"&&n.length>2){n=vn?n.trim():ln(n,3);var r=n.charCodeAt(0);var i,a,o;if(r===43||r===45){i=n.charCodeAt(2);if(i===88||i===120)return NaN}else if(r===48){switch(n.charCodeAt(1)){case 66:case 98:a=2;o=49;break;case 79:case 111:a=8;o=55;break;default:return+n}for(var s=n.slice(2),u=0,l=s.length,c;u<l;u++){c=s.charCodeAt(u);if(c<48||c>o)return NaN}return parseInt(s,a)}}return+n};if(!fn(" 0o1")||!fn("0b1")||fn("+0x1")){fn=function t(e){var n=arguments.length<1?0:e;var r=this;return r instanceof fn&&(gn?Kt(function(){dn.valueOf.call(r)}):E(r)!=cn)?an(new hn(pn(n)),r,fn):pn(n)};for(var yn=Yt?on(hn):("MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,"+"EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,"+"MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger").split(","),mn=0,_n;yn.length>mn;mn++){if(qt(hn,_n=yn[mn])&&!qt(fn,_n)){un(fn,_n,sn(hn,_n))}}fn.prototype=dn;dn.constructor=fn;b(Wt,cn,fn)}var bn=function t(e,n){if(typeof e!="number"&&E(e)!="Number")throw TypeError(n);return+e};var wn=function t(e){var n=String(M(this));var r="";var i=ae(e);if(i<0||i==Infinity)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(n+=n)){if(i&1)r+=n}return r};var xn=1..toFixed;var kn=Math.floor;var Sn=[0,0,0,0,0,0];var Cn="Number.toFixed: incorrect invocation!";var En="0";var An=function t(e,n){var r=-1;var i=n;while(++r<6){i+=e*Sn[r];Sn[r]=i%1e7;i=kn(i/1e7)}};var Mn=function t(e){var n=6;var r=0;while(--n>=0){r+=Sn[n];Sn[n]=kn(r/e);r=r%e*1e7}};var Rn=function t(){var e=6;var n="";while(--e>=0){if(n!==""||e===0||Sn[e]!==0){var r=String(Sn[e]);n=n===""?r:n+wn.call(En,7-r.length)+r}}return n};var Tn=function t(e,n,r){return n===0?r:n%2===1?t(e,n-1,r*e):t(e*e,n/2,r)};var On=function t(e){var n=0;var r=e;while(r>=4096){n+=12;r/=4096}while(r>=2){n+=1;r/=2}return n};re(re.P+re.F*(!!xn&&(8e-5.toFixed(3)!=="0.000"||.9.toFixed(0)!=="1"||1.255.toFixed(2)!=="1.25"||0xde0b6b3a7640080.toFixed(0)!=="1000000000000000128")||!Kt(function(){xn.call({})})),"Number",{toFixed:function t(e){var n=bn(this,Cn);var r=ae(e);var i="";var a=En;var o,s,u,l;if(r<0||r>20)throw RangeError(Cn);if(n!=n)return"NaN";if(n<=-1e21||n>=1e21)return String(n);if(n<0){i="-";n=-n}if(n>1e-21){o=On(n*Tn(2,69,1))-69;s=o<0?n*Tn(2,-o,1):n/Tn(2,o,1);s*=4503599627370496;o=52-o;if(o>0){An(0,s);u=r;while(u>=7){An(1e7,0);u-=7}An(Tn(10,u,1),0);u=o-1;while(u>=23){Mn(1<<23);u-=23}Mn(1<<u);An(1,1);Mn(2);a=Rn()}else{An(0,s);An(1<<-o,0);a=Rn()+wn.call(En,r)}}if(r>0){l=a.length;a=i+(l<=r?"0."+wn.call(En,r-l)+a:a.slice(0,l-r)+"."+a.slice(l-r))}else{a=i+a}return a}});var Pn=1..toPrecision;re(re.P+re.F*(Kt(function(){return Pn.call(1,undefined)!=="1"})||!Kt(function(){Pn.call({})})),"Number",{toPrecision:function t(e){var n=bn(this,"Number#toPrecision: incorrect invocation!");return e===undefined?Pn.call(n):Pn.call(n,e)}});re(re.S,"Number",{EPSILON:Math.pow(2,-52)});var Bn=Wt.isFinite;re(re.S,"Number",{isFinite:function t(e){return typeof e=="number"&&Bn(e)}});var Dn=Math.floor;var Nn=function t(e){return!Xt(e)&&isFinite(e)&&Dn(e)===e};re(re.S,"Number",{isInteger:Nn});re(re.S,"Number",{isNaN:function t(e){return e!=e}});var zn=Math.abs;re(re.S,"Number",{isSafeInteger:function t(e){return Nn(e)&&zn(e)<=9007199254740991}});re(re.S,"Number",{MAX_SAFE_INTEGER:9007199254740991});re(re.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991});re(re.S+re.F*(Number.parseFloat!=nn),"Number",{parseFloat:nn});re(re.S+re.F*(Number.parseInt!=Qe),"Number",{parseInt:Qe});var Fn=Math.log1p||function t(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)};var jn=Math.sqrt;var In=Math.acosh;re(re.S+re.F*!(In&&Math.floor(In(Number.MAX_VALUE))==710&&In(Infinity)==Infinity),"Math",{acosh:function t(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:Fn(e-1+jn(e-1)*jn(e+1))}});var Ln=Math.asinh;function Hn(t){return!isFinite(t=+t)||t==0?t:t<0?-Hn(-t):Math.log(t+Math.sqrt(t*t+1))}re(re.S+re.F*!(Ln&&1/Ln(0)>0),"Math",{asinh:Hn});var Un=Math.atanh;re(re.S+re.F*!(Un&&1/Un(-0)<0),"Math",{atanh:function t(e){return(e=+e)==0?e:Math.log((1+e)/(1-e))/2}});var Gn=Math.sign||function t(e){return(e=+e)==0||e!=e?e:e<0?-1:1};re(re.S,"Math",{cbrt:function t(e){return Gn(e=+e)*Math.pow(Math.abs(e),1/3)}});re(re.S,"Math",{clz32:function t(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}});var Vn=Math.exp;re(re.S,"Math",{cosh:function t(e){return(Vn(e=+e)+Vn(-e))/2}});var Wn=Math.expm1;var qn=!Wn||Wn(10)>22025.465794806718||Wn(10)<22025.465794806718||Wn(-2e-17)!=-2e-17?function t(e){return(e=+e)==0?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:Wn;re(re.S+re.F*(qn!=Math.expm1),"Math",{expm1:qn});var Kn=Math.pow;var Yn=Kn(2,-52);var Xn=Kn(2,-23);var Zn=Kn(2,127)*(2-Xn);var $n=Kn(2,-126);var Jn=function t(e){return e+1/Yn-1/Yn};var Qn=Math.fround||function t(e){var n=Math.abs(e);var r=Gn(e);var i,a;if(n<$n)return r*Jn(n/$n/Xn)*$n*Xn;i=(1+Xn/Yn)*n;a=i-(i-n);if(a>Zn||a!=a)return r*Infinity;return r*a};re(re.S,"Math",{fround:Qn});var tr=Math.abs;re(re.S,"Math",{hypot:function t(e,n){var r=0;var i=0;var a=arguments.length;var o=0;var s,u;while(i<a){s=tr(arguments[i++]);if(o<s){u=o/s;r=r*u*u+1;o=s}else if(s>0){u=s/o;r+=u*u}else r+=s}return o===Infinity?Infinity:o*Math.sqrt(r)}});var er=Math.imul;re(re.S+re.F*Kt(function(){return er(4294967295,5)!=-5||er.length!=2}),"Math",{imul:function t(e,n){var r=65535;var i=+e;var a=+n;var o=r&i;var s=r&a;return 0|o*s+((r&i>>>16)*s+o*(r&a>>>16)<<16>>>0)}});re(re.S,"Math",{log10:function t(e){return Math.log(e)*Math.LOG10E}});re(re.S,"Math",{log1p:Fn});re(re.S,"Math",{log2:function t(e){return Math.log(e)/Math.LN2}});re(re.S,"Math",{sign:Gn});var nr=Math.exp;re(re.S+re.F*Kt(function(){return!Math.sinh(-2e-17)!=-2e-17}),"Math",{sinh:function t(e){return Math.abs(e=+e)<1?(qn(e)-qn(-e))/2:(nr(e-1)-nr(-e-1))*(Math.E/2)}});var rr=Math.exp;re(re.S,"Math",{tanh:function t(e){var n=qn(e=+e);var r=qn(-e);return n==Infinity?1:r==Infinity?-1:(n-r)/(rr(e)+rr(-e))}});re(re.S,"Math",{trunc:function t(e){return(e>0?Math.floor:Math.ceil)(e)}});var ir=String.fromCharCode;var ar=String.fromCodePoint;re(re.S+re.F*(!!ar&&ar.length!=1),"String",{fromCodePoint:function t(e){var n=[];var r=arguments.length;var i=0;var a;while(r>i){a=+arguments[i++];if(se(a,1114111)!==a)throw RangeError(a+" is not a valid code point");n.push(a<65536?ir(a):ir(((a-=65536)>>10)+55296,a%1024+56320))}return n.join("")}});re(re.S,"String",{raw:function t(e){var n=R(e.raw);var r=oe(n.length);var i=arguments.length;var a=[];var o=0;while(r>o){a.push(String(n[o++]));if(o<i)a.push(String(arguments[o]))}return a.join("")}});Xe("trim",function(e){return function t(){return e(this,3)}});var or=function t(s){return function(t,e){var n=String(M(t));var r=ae(e);var i=n.length;var a,o;if(r<0||r>=i)return s?"":undefined;a=n.charCodeAt(r);return a<55296||a>56319||r+1===i||(o=n.charCodeAt(r+1))<56320||o>57343?s?n.charAt(r):a:s?n.slice(r,r+2):(a-55296<<10)+(o-56320)+65536}};var sr={};var ur={};Qt(ur,ie("iterator"),function(){return this});var lr=function t(e,n,r){e.prototype=ce(ur,{next:Jt(1,r)});G(e,n+" Iterator")};var cr=ie("iterator");var fr=!([].keys&&"next"in[].keys());var hr="@@iterator";var dr="keys";var gr="values";var vr=function t(){return this};var pr=function t(e,n,r,i,a,o,s){lr(r,n,i);var u=function t(e){if(!fr&&e in h)return h[e];switch(e){case dr:return function t(){return new r(this,e)};case gr:return function t(){return new r(this,e)}}return function t(){return new r(this,e)}};var l=n+" Iterator";var c=a==gr;var f=false;var h=e.prototype;var d=h[cr]||h[hr]||a&&h[a];var g=d||u(a);var v=a?!c?g:u("entries"):undefined;var p=n=="Array"?h.entries||d:d;var y,m,_;if(p){_=ye(p.call(new e));if(_!==Object.prototype&&_.next){G(_,l,true);if(typeof _[cr]!="function")Qt(_,cr,vr)}}if(c&&d&&d.name!==gr){f=true;g=function t(){return d.call(this)}}if(fr||f||!h[cr]){Qt(h,cr,g)}sr[n]=g;sr[l]=vr;if(a){y={values:c?g:u(gr),keys:o?g:u(dr),entries:v};if(s)for(m in y){if(!(m in h))b(h,m,y[m])}else re(re.P+re.F*(fr||f),n,y)}return y};var yr=or(true);pr(String,"String",function(t){this._t=String(t);this._i=0},function(){var t=this._t;var e=this._i;var n;if(e>=t.length)return{value:undefined,done:true};n=yr(t,e);this._i+=n.length;return{value:n,done:false}});var mr=or(false);re(re.P,"String",{codePointAt:function t(e){return mr(this,e)}});var _r=ie("match");var br=function t(e){var n;return Xt(e)&&((n=e[_r])!==undefined?!!n:E(e)=="RegExp")};var wr=function t(e,n,r){if(br(n))throw TypeError("String#"+r+" doesn't accept regex!");return String(M(e))};var xr=ie("match");var kr=function t(e){var n=/./;try{"/./"[e](n)}catch(t){try{n[xr]=false;return!"/./"[e](n)}catch(t){}}return true};var Sr="endsWith";var Cr=""[Sr];re(re.P+re.F*kr(Sr),"String",{endsWith:function t(e){var n=wr(this,e,Sr);var r=arguments.length>1?arguments[1]:undefined;var i=oe(n.length);var a=r===undefined?i:Math.min(oe(r),i);var o=String(e);return Cr?Cr.call(n,o,a):n.slice(a-o.length,a)===o}});var Er="includes";re(re.P+re.F*kr(Er),"String",{includes:function t(e){return!!~wr(this,e,Er).indexOf(e,arguments.length>1?arguments[1]:undefined)}});re(re.P,"String",{repeat:wn});var Ar="startsWith";var Mr=""[Ar];re(re.P+re.F*kr(Ar),"String",{startsWith:function t(e){var n=wr(this,e,Ar);var r=oe(Math.min(arguments.length>1?arguments[1]:undefined,n.length));var i=String(e);return Mr?Mr.call(n,i,r):n.slice(r,r+i.length)===i}});var Rr=/"/g;var Tr=function t(e,n,r,i){var a=String(M(e));var o="<"+n;if(r!=="")o+=" "+r+'="'+String(i).replace(Rr,"&quot;")+'"';return o+">"+a+"</"+n+">"};var Or=function t(e,n){var r={};r[e]=n(Tr);re(re.P+re.F*Kt(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",r)};Or("anchor",function(n){return function t(e){return n(this,"a","name",e)}});Or("big",function(e){return function t(){return e(this,"big","","")}});Or("blink",function(e){return function t(){return e(this,"blink","","")}});Or("bold",function(e){return function t(){return e(this,"b","","")}});Or("fixed",function(e){return function t(){return e(this,"tt","","")}});Or("fontcolor",function(n){return function t(e){return n(this,"font","color",e)}});Or("fontsize",function(n){return function t(e){return n(this,"font","size",e)}});Or("italics",function(e){return function t(){return e(this,"i","","")}});Or("link",function(n){return function t(e){return n(this,"a","href",e)}});Or("small",function(e){return function t(){return e(this,"small","","")}});Or("strike",function(e){return function t(){return e(this,"strike","","")}});Or("sub",function(e){return function t(){return e(this,"sub","","")}});Or("sup",function(e){return function t(){return e(this,"sup","","")}});re(re.S,"Date",{now:function t(){return(new Date).getTime()}});re(re.P+re.F*Kt(function(){return new Date(NaN).toJSON()!==null||Date.prototype.toJSON.call({toISOString:function t(){return 1}})!==1}),"Date",{toJSON:function t(e){var n=le(this);var r=Zt(n);return typeof r=="number"&&!isFinite(r)?null:n.toISOString()}});var Pr=Date.prototype.getTime;var Br=Date.prototype.toISOString;var Dr=function t(e){return e>9?e:"0"+e};var Nr=Kt(function(){return Br.call(new Date(-5e13-1))!="0385-07-25T07:06:39.999Z"})||!Kt(function(){Br.call(new Date(NaN))})?function t(){if(!isFinite(Pr.call(this)))throw RangeError("Invalid time value");var e=this;var n=e.getUTCFullYear();var r=e.getUTCMilliseconds();var i=n<0?"-":n>9999?"+":"";return i+("00000"+Math.abs(n)).slice(i?-6:-4)+"-"+Dr(e.getUTCMonth()+1)+"-"+Dr(e.getUTCDate())+"T"+Dr(e.getUTCHours())+":"+Dr(e.getUTCMinutes())+":"+Dr(e.getUTCSeconds())+"."+(r>99?r:"0"+Dr(r))+"Z"}:Br;re(re.P+re.F*(Date.prototype.toISOString!==Nr),"Date",{toISOString:Nr});var zr=Date.prototype;var Fr="Invalid Date";var jr="toString";var Ir=zr[jr];var Lr=zr.getTime;if(new Date(NaN)+""!=Fr){b(zr,jr,function t(){var e=Lr.call(this);return e===e?Ir.call(this):Fr})}var Hr="number";var Ur=function t(e){if(e!=="string"&&e!==Hr&&e!=="default")throw TypeError("Incorrect hint");return Zt(S(this),e!=Hr)};var Gr=ie("toPrimitive");var Vr=Date.prototype;if(!(Gr in Vr))Qt(Vr,Gr,Ur);re(re.S,"Array",{isArray:Y});var Wr=function t(e,n,r,i){try{return i?n(S(r)[0],r[1]):n(r)}catch(t){var a=e["return"];if(a!==undefined)S(a.call(e));throw t}};var qr=ie("iterator");var Kr=Array.prototype;var Yr=function t(e){return e!==undefined&&(sr.Array===e||Kr[qr]===e)};var Xr=function t(e,n,r){if(n in e)$t.f(e,n,Jt(0,r));else e[n]=r};var Zr=ie("iterator");var $r=p.getIteratorMethod=function(t){if(t!=undefined)return t[Zr]||t["@@iterator"]||sr[Re(t)]};var Jr=ie("iterator");var Qr=false;try{var ti=[7][Jr]();ti["return"]=function(){Qr=true};Array.from(ti,function(){throw 2})}catch(t){}var ei=function t(e,n){if(!n&&!Qr)return false;var r=false;try{var i=[7];var a=i[Jr]();a.next=function(){return{done:r=true}};i[Jr]=function(){return a};e(i)}catch(t){}return r};re(re.S+re.F*!ei(function(t){Array.from(t)}),"Array",{from:function t(e){var n=le(e);var r=typeof this=="function"?this:Array;var i=arguments.length;var a=i>1?arguments[1]:undefined;var o=a!==undefined;var s=0;var u=$r(n);var l,c,f,h;if(o)a=ne(a,i>2?arguments[2]:undefined,2);if(u!=undefined&&!(r==Array&&Yr(u))){for(h=u.call(n),c=new r;!(f=h.next()).done;s++){Xr(c,s,o?Wr(h,a,[f.value,s],true):f.value)}}else{l=oe(n.length);for(c=new r(l);l>s;s++){Xr(c,s,o?a(n[s],s):n[s])}}c.length=s;return c}});re(re.S+re.F*Kt(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function t(){var e=0;var n=arguments.length;var r=new(typeof this=="function"?this:Array)(n);while(n>e){Xr(r,e,arguments[e++])}r.length=n;return r}});var ni=function t(e,n){return!!e&&Kt(function(){n?e.call(null,function(){},1):e.call(null)})};var ri=[].join;re(re.P+re.F*(A!=Object||!ni(ri)),"Array",{join:function t(e){return ri.call(R(this),e===undefined?",":e)}});var ii=[].slice;re(re.P+re.F*Kt(function(){if($)ii.call($)}),"Array",{slice:function t(e,n){var r=oe(this.length);var i=E(this);n=n===undefined?r:n;if(i=="Array")return ii.call(this,e,n);var a=se(e,r);var o=se(n,r);var s=oe(o-a);var u=new Array(s);var l=0;for(;l<s;l++){u[l]=i=="String"?this.charAt(a+l):this[a+l]}return u}});var ai=[].sort;var oi=[1,2,3];re(re.P+re.F*(Kt(function(){oi.sort(undefined)})||!Kt(function(){oi.sort(null)})||!ni(ai)),"Array",{sort:function t(e){return e===undefined?ai.call(le(this)):ai.call(le(this),h(e))}});var si=ie("species");var ui=function t(e){var n;if(Y(e)){n=e.constructor;if(typeof n=="function"&&(n===Array||Y(n.prototype)))n=undefined;if(Xt(n)){n=n[si];if(n===null)n=undefined}}return n===undefined?Array:n};var li=function t(e,n){return new(ui(e))(n)};var ci=function t(f,e){var h=f==1;var d=f==2;var g=f==3;var v=f==4;var p=f==6;var y=f==5||p;var m=e||li;return function(t,e,n){var r=le(t);var i=A(r);var a=ne(e,n,3);var o=oe(i.length);var s=0;var u=h?m(t,o):d?m(t,0):undefined;var l,c;for(;o>s;s++){if(y||s in i){l=i[s];c=a(l,s,r);if(f){if(h)u[s]=c;else if(c)switch(f){case 3:return true;case 5:return l;case 6:return s;case 2:u.push(l)}else if(v)return false}}}return p?-1:g||v?v:u}};var fi=ci(0);var hi=ni([].forEach,true);re(re.P+re.F*!hi,"Array",{forEach:function t(e){return fi(this,e,arguments[1])}});var di=ci(1);re(re.P+re.F*!ni([].map,true),"Array",{map:function t(e){return di(this,e,arguments[1])}});var gi=ci(2);re(re.P+re.F*!ni([].filter,true),"Array",{filter:function t(e){return gi(this,e,arguments[1])}});var vi=ci(3);re(re.P+re.F*!ni([].some,true),"Array",{some:function t(e){return vi(this,e,arguments[1])}});var pi=ci(4);re(re.P+re.F*!ni([].every,true),"Array",{every:function t(e){return pi(this,e,arguments[1])}});var yi=function t(e,n,r,i,a){h(n);var o=le(e);var s=A(o);var u=oe(o.length);var l=a?u-1:0;var c=a?-1:1;if(r<2)for(;;){if(l in s){i=s[l];l+=c;break}l+=c;if(a?l<0:u<=l){throw TypeError("Reduce of empty array with no initial value")}}for(;a?l>=0:u>l;l+=c){if(l in s){i=n(i,s[l],l,o)}}return i};re(re.P+re.F*!ni([].reduce,true),"Array",{reduce:function t(e){return yi(this,e,arguments.length,arguments[1],false)}});re(re.P+re.F*!ni([].reduceRight,true),"Array",{reduceRight:function t(e){return yi(this,e,arguments.length,arguments[1],true)}});var mi=ue(false);var _i=[].indexOf;var bi=!!_i&&1/[1].indexOf(1,-0)<0;re(re.P+re.F*(bi||!ni(_i)),"Array",{indexOf:function t(e){return bi?_i.apply(this,arguments)||0:mi(this,e,arguments[1])}});var wi=[].lastIndexOf;var xi=!!wi&&1/[1].lastIndexOf(1,-0)<0;re(re.P+re.F*(xi||!ni(wi)),"Array",{lastIndexOf:function t(e){if(xi)return wi.apply(this,arguments)||0;var n=R(this);var r=oe(n.length);var i=r-1;if(arguments.length>1)i=Math.min(i,ae(arguments[1]));if(i<0)i=r+i;for(;i>=0;i--){if(i in n)if(n[i]===e)return i||0}return-1}});var ki=[].copyWithin||function t(e,n){var r=le(this);var i=oe(r.length);var a=se(e,i);var o=se(n,i);var s=arguments.length>2?arguments[2]:undefined;var u=Math.min((s===undefined?i:se(s,i))-o,i-a);var l=1;if(o<a&&a<o+u){l=-1;o+=u-1;a+=u-1}while(u-- >0){if(o in r)r[a]=r[o];else delete r[a];a+=l;o+=l}return r};var Si=ie("unscopables");var Ci=Array.prototype;if(Ci[Si]==undefined)Qt(Ci,Si,{});var Ei=function t(e){Ci[Si][e]=true};re(re.P,"Array",{copyWithin:ki});Ei("copyWithin");var Ai=function t(e){var n=le(this);var r=oe(n.length);var i=arguments.length;var a=se(i>1?arguments[1]:undefined,r);var o=i>2?arguments[2]:undefined;var s=o===undefined?r:se(o,r);while(s>a){n[a++]=e}return n};re(re.P,"Array",{fill:Ai});Ei("fill");var Mi=ci(5);var Ri="find";var Ti=true;if(Ri in[])Array(1)[Ri](function(){Ti=false});re(re.P+re.F*Ti,"Array",{find:function t(e){return Mi(this,e,arguments.length>1?arguments[1]:undefined)}});Ei(Ri);var Oi=ci(6);var Pi="findIndex";var Bi=true;if(Pi in[])Array(1)[Pi](function(){Bi=false});re(re.P+re.F*Bi,"Array",{findIndex:function t(e){return Oi(this,e,arguments.length>1?arguments[1]:undefined)}});Ei(Pi);var Di=ie("species");var Ni=function t(e){var n=Wt[e];if(Yt&&n&&!n[Di])$t.f(n,Di,{configurable:true,get:function t(){return this}})};Ni("Array");var zi=function t(e,n){return{value:n,done:!!e}};var Fi=pr(Array,"Array",function(t,e){this._t=R(t);this._i=0;this._k=e},function(){var t=this._t;var e=this._k;var n=this._i++;if(!t||n>=t.length){this._t=undefined;return zi(1)}if(e=="keys")return zi(0,n);if(e=="values")return zi(0,t[n]);return zi(0,[n,t[n]])},"values");sr.Arguments=sr.Array;Ei("keys");Ei("values");Ei("entries");var ji=function t(){var e=S(this);var n="";if(e.global)n+="g";if(e.ignoreCase)n+="i";if(e.multiline)n+="m";if(e.unicode)n+="u";if(e.sticky)n+="y";return n};var Ii=$t.f;var Li=fe.f;var Hi=Wt.RegExp;var Ui=Hi;var Gi=Hi.prototype;var Vi=/a/g;var Wi=/a/g;var qi=new Hi(Vi)!==Vi;if(Yt&&(!qi||Kt(function(){Wi[ie("match")]=false;return Hi(Vi)!=Vi||Hi(Wi)==Wi||Hi(Vi,"i")!="/a/i"}))){Hi=function t(e,n){var r=this instanceof Hi;var i=br(e);var a=n===undefined;return!r&&i&&e.constructor===Hi&&a?e:an(qi?new Ui(i&&!a?e.source:e,n):Ui((i=e instanceof Hi)?e.source:e,i&&a?ji.call(e):n),r?this:Gi,Hi)};var Ki=function t(n){n in Hi||Ii(Hi,n,{configurable:true,get:function t(){return Ui[n]},set:function t(e){Ui[n]=e}})};for(var Yi=Li(Ui),Xi=0;Yi.length>Xi;){Ki(Yi[Xi++])}Gi.constructor=Hi;Hi.prototype=Gi;b(Wt,"RegExp",Hi)}Ni("RegExp");var Zi=RegExp.prototype.exec;var $i=String.prototype.replace;var Ji=Zi;var Qi="lastIndex";var ta=function(){var t=/a/,e=/b*/g;Zi.call(t,"a");Zi.call(e,"a");return t[Qi]!==0||e[Qi]!==0}();var ea=/()??/.exec("")[1]!==undefined;var na=ta||ea;if(na){Ji=function t(e){var n=this;var r,i,a,o;if(ea){i=new RegExp("^"+n.source+"$(?!\\s)",ji.call(n))}if(ta)r=n[Qi];a=Zi.call(n,e);if(ta&&a){n[Qi]=n.global?a.index+a[0].length:r}if(ea&&a&&a.length>1){$i.call(a[0],i,function(){for(o=1;o<arguments.length-2;o++){if(arguments[o]===undefined)a[o]=undefined}})}return a}}var ra=Ji;re({target:"RegExp",proto:true,forced:ra!==/./.exec},{exec:ra});if(Yt&&/./g.flags!="g")$t.f(RegExp.prototype,"flags",{configurable:true,get:ji});var ia="toString";var aa=/./[ia];var oa=function t(e){b(RegExp.prototype,ia,e,true)};if(Kt(function(){return aa.call({source:"a",flags:"b"})!="/a/b"})){oa(function t(){var e=S(this);return"/".concat(e.source,"/","flags"in e?e.flags:!Yt&&e instanceof RegExp?ji.call(e):undefined)})}else if(aa.name!=ia){oa(function t(){return aa.call(this)})}var sa=or(true);var ua=function t(e,n,r){return n+(r?sa(e,n).length:1)};var la=RegExp.prototype.exec;var ca=function t(e,n){var r=e.exec;if(typeof r==="function"){var i=r.call(e,n);if(_typeof2(i)!=="object"){throw new TypeError("RegExp exec method returned something other than an Object or null")}return i}if(Re(e)!=="RegExp"){throw new TypeError("RegExp#exec called on incompatible receiver")}return la.call(e,n)};var fa=ie("species");var ha=!Kt(function(){var t=/./;t.exec=function(){var t=[];t.groups={a:"7"};return t};return"".replace(t,"$<a>")!=="7"});var da=function(){var t=/(?:)/;var e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return n.length===2&&n[0]==="a"&&n[1]==="b"}();var ga=function t(n,e,r){var i=ie(n);var o=!Kt(function(){var t={};t[i]=function(){return 7};return""[n](t)!=7});var a=o?!Kt(function(){var t=false;var e=/a/;e.exec=function(){t=true;return null};if(n==="split"){e.constructor={};e.constructor[fa]=function(){return e}}e[i]("");return!t}):undefined;if(!o||!a||n==="replace"&&!ha||n==="split"&&!da){var s=/./[i];var u=r(M,i,""[n],function t(e,n,r,i,a){if(n.exec===ra){if(o&&!a){return{done:true,value:s.call(n,r,i)}}return{done:true,value:e.call(r,n,i)}}return{done:false}});var l=u[0];var c=u[1];b(String.prototype,n,l);Qt(RegExp.prototype,i,e==2?function(t,e){return c.call(t,this,e)}:function(t){return c.call(t,this)})}};ga("match",1,function(i,a,l,c){return[function t(e){var n=i(this);var r=e==undefined?undefined:e[a];return r!==undefined?r.call(e,n):new RegExp(e)[a](String(n))},function(t){var e=c(l,t,this);if(e.done)return e.value;var n=S(t);var r=String(this);if(!n.global)return ca(n,r);var i=n.unicode;n.lastIndex=0;var a=[];var o=0;var s;while((s=ca(n,r))!==null){var u=String(s[0]);a[o]=u;if(u==="")n.lastIndex=ua(r,oe(n.lastIndex),i);o++}return o===0?null:a}]});var va=Math.max;var pa=Math.min;var ya=Math.floor;var ma=/\$([$&`']|\d\d?|<[^>]*>)/g;var _a=/\$([$&`']|\d\d?)/g;var ba=function t(e){return e===undefined?e:String(e)};ga("replace",2,function(a,o,w,x){return[function t(e,n){var r=a(this);var i=e==undefined?undefined:e[o];return i!==undefined?i.call(e,r,n):w.call(String(r),e,n)},function(t,e){var n=x(w,t,this,e);if(n.done)return n.value;var r=S(t);var i=String(this);var a=typeof e==="function";if(!a)e=String(e);var o=r.global;if(o){var s=r.unicode;r.lastIndex=0}var u=[];while(true){var l=ca(r,i);if(l===null)break;u.push(l);if(!o)break;var c=String(l[0]);if(c==="")r.lastIndex=ua(i,oe(r.lastIndex),s)}var f="";var h=0;for(var d=0;d<u.length;d++){l=u[d];var g=String(l[0]);var v=va(pa(ae(l.index),i.length),0);var p=[];for(var y=1;y<l.length;y++){p.push(ba(l[y]))}var m=l.groups;if(a){var _=[g].concat(p,v,i);if(m!==undefined)_.push(m);var b=String(e.apply(undefined,_))}else{b=k(g,i,v,p,m,e)}if(v>=h){f+=i.slice(h,v)+b;h=v+g.length}}return f+i.slice(h)}];function k(a,o,s,u,l,t){var c=s+a.length;var f=u.length;var e=_a;if(l!==undefined){l=le(l);e=ma}return w.call(t,e,function(t,e){var n;switch(e.charAt(0)){case"$":return"$";case"&":return a;case"`":return o.slice(0,s);case"'":return o.slice(c);case"<":n=l[e.slice(1,-1)];break;default:var r=+e;if(r===0)return t;if(r>f){var i=ya(r/10);if(i===0)return t;if(i<=f)return u[i-1]===undefined?e.charAt(1):u[i-1]+e.charAt(1);return t}n=u[r-1]}return n===undefined?"":n})}});ga("search",1,function(i,a,o,s){return[function t(e){var n=i(this);var r=e==undefined?undefined:e[a];return r!==undefined?r.call(e,n):new RegExp(e)[a](String(n))},function(t){var e=s(o,t,this);if(e.done)return e.value;var n=S(t);var r=String(this);var i=n.lastIndex;if(!ke(i,0))n.lastIndex=0;var a=ca(n,r);if(!ke(n.lastIndex,i))n.lastIndex=i;return a===null?-1:a.index}]});var wa=ie("species");var xa=function t(e,n){var r=S(e).constructor;var i;return r===undefined||(i=S(r)[wa])==undefined?n:h(i)};var ka=Math.min;var Sa=[].push;var Ca="split";var Ea="length";var Aa="lastIndex";var Ma=4294967295;var Ra=!Kt(function(){RegExp(Ma,"y")});ga("split",2,function(a,o,p,y){var m;if("abbc"[Ca](/(b)*/)[1]=="c"||"test"[Ca](/(?:)/,-1)[Ea]!=4||"ab"[Ca](/(?:ab)*/)[Ea]!=2||"."[Ca](/(.?)(.?)/)[Ea]!=4||"."[Ca](/()()/)[Ea]>1||""[Ca](/.?/)[Ea]){m=function t(e,n){var r=String(this);if(e===undefined&&n===0)return[];if(!br(e))return p.call(r,e,n);var i=[];var a=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":"");var o=0;var s=n===undefined?Ma:n>>>0;var u=new RegExp(e.source,a+"g");var l,c,f;while(l=ra.call(u,r)){c=u[Aa];if(c>o){i.push(r.slice(o,l.index));if(l[Ea]>1&&l.index<r[Ea])Sa.apply(i,l.slice(1));f=l[0][Ea];o=c;if(i[Ea]>=s)break}if(u[Aa]===l.index)u[Aa]++}if(o===r[Ea]){if(f||!u.test(""))i.push("")}else i.push(r.slice(o));return i[Ea]>s?i.slice(0,s):i}}else if("0"[Ca](undefined,0)[Ea]){m=function t(e,n){return e===undefined&&n===0?[]:p.call(this,e,n)}}else{m=p}return[function t(e,n){var r=a(this);var i=e==undefined?undefined:e[o];return i!==undefined?i.call(e,r,n):m.call(String(r),e,n)},function(t,e){var n=y(m,t,this,e,m!==p);if(n.done)return n.value;var r=S(t);var i=String(this);var a=xa(r,RegExp);var o=r.unicode;var s=(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.unicode?"u":"")+(Ra?"y":"g");var u=new a(Ra?r:"^(?:"+r.source+")",s);var l=e===undefined?Ma:e>>>0;if(l===0)return[];if(i.length===0)return ca(u,i)===null?[i]:[];var c=0;var f=0;var h=[];while(f<i.length){u.lastIndex=Ra?f:0;var d=ca(u,Ra?i:i.slice(f));var g;if(d===null||(g=ka(oe(u.lastIndex+(Ra?0:f)),i.length))===c){f=ua(i,f,o)}else{h.push(i.slice(c,f));if(h.length===l)return h;for(var v=1;v<=d.length-1;v++){h.push(d[v]);if(h.length===l)return h}f=c=g}}h.push(i.slice(c));return h}]});var Ta=function t(e,n,r,i){if(!(e instanceof n)||i!==undefined&&i in e){throw TypeError(r+": incorrect invocation!")}return e};var Oa=t(function(t){var h={};var d={};var e=t.exports=function(t,e,n,r,i){var a=i?function(){return t}:$r(t);var o=ne(n,r,e?2:1);var s=0;var u,l,c,f;if(typeof a!="function")throw TypeError(t+" is not iterable!");if(Yr(a))for(u=oe(t.length);u>s;s++){f=e?o(S(l=t[s])[0],l[1]):o(t[s]);if(f===h||f===d)return f}else for(c=a.call(t);!(l=c.next()).done;){f=Wr(c,o,l.value,e);if(f===h||f===d)return f}};e.BREAK=h;e.RETURN=d});var Pa=Wt.process;var Ba=Wt.setImmediate;var Da=Wt.clearImmediate;var Na=Wt.MessageChannel;var za=Wt.Dispatch;var Fa=0;var ja={};var Ia="onreadystatechange";var La,Ha,Ua;var Ga=function t(){var e=+this;if(ja.hasOwnProperty(e)){var n=ja[e];delete ja[e];n()}};var Va=function t(e){Ga.call(e.data)};if(!Ba||!Da){Ba=function t(e){var n=[];var r=1;while(arguments.length>r){n.push(arguments[r++])}ja[++Fa]=function(){Oe(typeof e=="function"?e:Function(e),n)};La(Fa);return Fa};Da=function t(e){delete ja[e]};if(E(Pa)=="process"){La=function t(e){Pa.nextTick(ne(Ga,e,1))}}else if(za&&za.now){La=function t(e){za.now(ne(Ga,e,1))}}else if(Na){Ha=new Na;Ua=Ha.port2;Ha.port1.onmessage=Va;La=ne(Ua.postMessage,Ua,1)}else if(Wt.addEventListener&&typeof postMessage=="function"&&!Wt.importScripts){La=function t(e){Wt.postMessage(e+"","*")};Wt.addEventListener("message",Va,false)}else if(Ia in o("script")){La=function t(e){$.appendChild(o("script"))[Ia]=function(){$.removeChild(this);Ga.call(e)}}}else{La=function t(e){setTimeout(ne(Ga,e,1),0)}}}var Wa={set:Ba,clear:Da};var qa=Wa.set;var Ka=Wt.MutationObserver||Wt.WebKitMutationObserver;var Ya=Wt.process;var Xa=Wt.Promise;var Za=E(Ya)=="process";var $a=function t(){var r,i,a;var e=function t(){var e,n;if(Za&&(e=Ya.domain))e.exit();while(r){n=r.fn;r=r.next;try{n()}catch(t){if(r)a();else i=undefined;throw t}}i=undefined;if(e)e.enter()};if(Za){a=function t(){Ya.nextTick(e)}}else if(Ka&&!(Wt.navigator&&Wt.navigator.standalone)){var n=true;var o=document.createTextNode("");new Ka(e).observe(o,{characterData:true});a=function t(){o.data=n=!n}}else if(Xa&&Xa.resolve){var s=Xa.resolve(undefined);a=function t(){s.then(e)}}else{a=function t(){qa.call(Wt,e)}}return function(t){var e={fn:t,next:undefined};if(i)i.next=e;if(!r){r=e;a()}i=e}};function Ja(t){var n,r;this.promise=new t(function(t,e){if(n!==undefined||r!==undefined)throw TypeError("Bad Promise constructor");n=t;r=e});this.resolve=h(n);this.reject=h(r)}var Qa=function t(e){return new Ja(e)};var to={f:Qa};var eo=function t(e){try{return{e:false,v:e()}}catch(t){return{e:true,v:t}}};var no=Wt.navigator;var ro=no&&no.userAgent||"";var io=function t(e,n){S(e);if(Xt(n)&&n.constructor===e)return n;var r=to.f(e);var i=r.resolve;i(n);return r.promise};var ao=function t(e,n,r){for(var i in n){b(e,i,n[i],r)}return e};var oo=Wa.set;var so=$a();var uo="Promise";var lo=Wt.TypeError;var co=Wt.process;var fo=co&&co.versions;var ho=fo&&fo.v8||"";var go=Wt[uo];var vo=Re(co)=="process";var po=function t(){};var yo,mo,_o,bo;var wo=mo=to.f;var xo=!!function(){try{var t=go.resolve(1);var e=(t.constructor={})[ie("species")]=function(t){t(po,po)};return(vo||typeof PromiseRejectionEvent=="function")&&t.then(po)instanceof e&&ho.indexOf("6.6")!==0&&ro.indexOf("Chrome/66")===-1}catch(t){}}();var ko=function t(e){var n;return Xt(e)&&typeof(n=e.then)=="function"?n:false};var So=function t(f,n){if(f._n)return;f._n=true;var r=f._c;so(function(){var l=f._v;var c=f._s==1;var t=0;var e=function t(e){var n=c?e.ok:e.fail;var r=e.resolve;var i=e.reject;var a=e.domain;var o,s,u;try{if(n){if(!c){if(f._h==2)Ao(f);f._h=1}if(n===true)o=l;else{if(a)a.enter();o=n(l);if(a){a.exit();u=true}}if(o===e.promise){i(lo("Promise-chain cycle"))}else if(s=ko(o)){s.call(o,r,i)}else r(o)}else i(l)}catch(t){if(a&&!u)a.exit();i(t)}};while(r.length>t){e(r[t++])}f._c=[];f._n=false;if(n&&!f._h)Co(f)})};var Co=function t(a){oo.call(Wt,function(){var t=a._v;var e=Eo(a);var n,r,i;if(e){n=eo(function(){if(vo){co.emit("unhandledRejection",t,a)}else if(r=Wt.onunhandledrejection){r({promise:a,reason:t})}else if((i=Wt.console)&&i.error){i.error("Unhandled promise rejection",t)}});a._h=vo||Eo(a)?2:1}a._a=undefined;if(e&&n.e)throw n.v})};var Eo=function t(e){return e._h!==1&&(e._a||e._c).length===0};var Ao=function t(e){oo.call(Wt,function(){var t;if(vo){co.emit("rejectionHandled",e)}else if(t=Wt.onrejectionhandled){t({promise:e,reason:e._v})}})};var Mo=function t(e){var n=this;if(n._d)return;n._d=true;n=n._w||n;n._v=e;n._s=2;if(!n._a)n._a=n._c.slice();So(n,true)};var Ro=function t(n){var r=this;var i;if(r._d)return;r._d=true;r=r._w||r;try{if(r===n)throw lo("Promise can't be resolved itself");if(i=ko(n)){so(function(){var e={_w:r,_d:false};try{i.call(n,ne(t,e,1),ne(Mo,e,1))}catch(t){Mo.call(e,t)}})}else{r._v=n;r._s=1;So(r,false)}}catch(t){Mo.call({_w:r,_d:false},t)}};if(!xo){go=function t(e){Ta(this,go,uo,"_h");h(e);yo.call(this);try{e(ne(Ro,this,1),ne(Mo,this,1))}catch(t){Mo.call(this,t)}};yo=function t(e){this._c=[];this._a=undefined;this._s=0;this._d=false;this._v=undefined;this._h=0;this._n=false};yo.prototype=ao(go.prototype,{then:function t(e,n){var r=wo(xa(this,go));r.ok=typeof e=="function"?e:true;r.fail=typeof n=="function"&&n;r.domain=vo?co.domain:undefined;this._c.push(r);if(this._a)this._a.push(r);if(this._s)So(this,false);return r.promise},catch:function t(e){return this.then(undefined,e)}});_o=function t(){var e=new yo;this.promise=e;this.resolve=ne(Ro,e,1);this.reject=ne(Mo,e,1)};to.f=wo=function t(e){return e===go||e===bo?new _o(e):mo(e)}}re(re.G+re.W+re.F*!xo,{Promise:go});G(go,uo);Ni(uo);bo=p[uo];re(re.S+re.F*!xo,uo,{reject:function t(e){var n=wo(this);var r=n.reject;r(e);return n.promise}});re(re.S+re.F*!xo,uo,{resolve:function t(e){return io(this,e)}});re(re.S+re.F*!(xo&&ei(function(t){go.all(t)["catch"](po)})),uo,{all:function t(e){var o=this;var n=wo(o);var s=n.resolve;var u=n.reject;var r=eo(function(){var r=[];var i=0;var a=1;Oa(e,false,function(t){var e=i++;var n=false;r.push(undefined);a++;o.resolve(t).then(function(t){if(n)return;n=true;r[e]=t;--a||s(r)},u)});--a||s(r)});if(r.e)u(r.v);return n.promise},race:function t(e){var n=this;var r=wo(n);var i=r.reject;var a=eo(function(){Oa(e,false,function(t){n.resolve(t).then(r.resolve,i)})});if(a.e)i(a.v);return r.promise}});var To=function t(e,n){if(!Xt(e)||e._t!==n)throw TypeError("Incompatible receiver, "+n+" required!");return e};var Oo=$t.f;var Po=m.fastKey;var Bo=Yt?"_s":"size";var Do=function t(e,n){var r=Po(n);var i;if(r!=="F")return e._i[r];for(i=e._f;i;i=i.n){if(i.k==n)return i}};var No={getConstructor:function t(e,o,n,r){var i=e(function(t,e){Ta(t,i,o,"_i");t._t=o;t._i=ce(null);t._f=undefined;t._l=undefined;t[Bo]=0;if(e!=undefined)Oa(e,n,t[r],t)});ao(i.prototype,{clear:function t(){for(var e=To(this,o),n=e._i,r=e._f;r;r=r.n){r.r=true;if(r.p)r.p=r.p.n=undefined;delete n[r.i]}e._f=e._l=undefined;e[Bo]=0},delete:function t(e){var n=To(this,o);var r=Do(n,e);if(r){var i=r.n;var a=r.p;delete n._i[r.i];r.r=true;if(a)a.n=i;if(i)i.p=a;if(n._f==r)n._f=i;if(n._l==r)n._l=a;n[Bo]--}return!!r},forEach:function t(e){To(this,o);var n=ne(e,arguments.length>1?arguments[1]:undefined,3);var r;while(r=r?r.n:this._f){n(r.v,r.k,this);while(r&&r.r){r=r.p}}},has:function t(e){return!!Do(To(this,o),e)}});if(Yt)Oo(i.prototype,"size",{get:function t(){return To(this,o)[Bo]}});return i},def:function t(e,n,r){var i=Do(e,n);var a,o;if(i){i.v=r}else{e._l=i={i:o=Po(n,true),k:n,v:r,p:a=e._l,n:undefined,r:false};if(!e._f)e._f=i;if(a)a.n=i;e[Bo]++;if(o!=="F")e._i[o]=i}return e},getEntry:Do,setStrong:function t(e,n,r){pr(e,n,function(t,e){this._t=To(t,n);this._k=e;this._l=undefined},function(){var t=this;var e=t._k;var n=t._l;while(n&&n.r){n=n.p}if(!t._t||!(t._l=n=n?n.n:t._t._f)){t._t=undefined;return zi(1)}if(e=="keys")return zi(0,n.k);if(e=="values")return zi(0,n.v);return zi(0,[n.k,n.v])},r?"entries":"values",!r,true);Ni(n)}};var zo=function t(r,e,n,i,a,o){var s=Wt[r];var u=s;var l=a?"set":"add";var c=u&&u.prototype;var f={};var h=function t(e){var r=c[e];b(c,e,e=="delete"?function(t){return o&&!Xt(t)?false:r.call(this,t===0?0:t)}:e=="has"?function t(e){return o&&!Xt(e)?false:r.call(this,e===0?0:e)}:e=="get"?function t(e){return o&&!Xt(e)?undefined:r.call(this,e===0?0:e)}:e=="add"?function t(e){r.call(this,e===0?0:e);return this}:function t(e,n){r.call(this,e===0?0:e,n);return this})};if(typeof u!="function"||!(o||c.forEach&&!Kt(function(){(new u).entries().next()}))){u=i.getConstructor(e,r,a,l);ao(u.prototype,n);m.NEED=true}else{var d=new u;var g=d[l](o?{}:-0,1)!=d;var v=Kt(function(){d.has(1)});var p=ei(function(t){new u(t)});var y=!o&&Kt(function(){var t=new u;var e=5;while(e--){t[l](e,e)}return!t.has(-0)});if(!p){u=e(function(t,e){Ta(t,u,r);var n=an(new s,t,u);if(e!=undefined)Oa(e,a,n[l],n);return n});u.prototype=c;c.constructor=u}if(v||y){h("delete");h("has");a&&h("get")}if(y||g)h(l);if(o&&c.clear)delete c.clear}G(u,r);f[r]=u;re(re.G+re.W+re.F*(u!=s),f);if(!o)i.setStrong(u,r,a);return u};var Fo="Map";var jo=zo(Fo,function(e){return function t(){return e(this,arguments.length>0?arguments[0]:undefined)}},{get:function t(e){var n=No.getEntry(To(this,Fo),e);return n&&n.v},set:function t(e,n){return No.def(To(this,Fo),e===0?0:e,n)}},No,true);var Io="Set";var Lo=zo(Io,function(e){return function t(){return e(this,arguments.length>0?arguments[0]:undefined)}},{add:function t(e){return No.def(To(this,Io),e=e===0?0:e,e)}},No);var Ho=m.getWeak;var Uo=ci(5);var Go=ci(6);var Vo=0;var Wo=function t(e){return e._l||(e._l=new qo)};var qo=function t(){this.a=[]};var Ko=function t(e,n){return Uo(e.a,function(t){return t[0]===n})};qo.prototype={get:function t(e){var n=Ko(this,e);if(n)return n[1]},has:function t(e){return!!Ko(this,e)},set:function t(e,n){var r=Ko(this,e);if(r)r[1]=n;else this.a.push([e,n])},delete:function t(e){var n=Go(this.a,function(t){return t[0]===e});if(~n)this.a.splice(n,1);return!!~n}};var Yo={getConstructor:function t(e,r,n,i){var a=e(function(t,e){Ta(t,a,r,"_i");t._t=r;t._i=Vo++;t._l=undefined;if(e!=undefined)Oa(e,n,t[i],t)});ao(a.prototype,{delete:function t(e){if(!Xt(e))return false;var n=Ho(e);if(n===true)return Wo(To(this,r))["delete"](e);return n&&qt(n,this._i)&&delete n[this._i]},has:function t(e){if(!Xt(e))return false;var n=Ho(e);if(n===true)return Wo(To(this,r)).has(e);return n&&qt(n,this._i)}});return a},def:function t(e,n,r){var i=Ho(S(n),true);if(i===true)Wo(e).set(n,r);else i[e._i]=r;return e},ufstore:Wo};var Xo=t(function(t){var e=ci(0);var n=To;var r=!Wt.ActiveXObject&&"ActiveXObject"in Wt;var i="WeakMap";var a=m.getWeak;var o=Object.isExtensible;var s=Yo.ufstore;var u;var l=function t(e){return function t(){return e(this,arguments.length>0?arguments[0]:undefined)}};var c={get:function t(e){if(Xt(e)){var n=a(e);if(n===true)return s(To(this,i)).get(e);return n?n[this._i]:undefined}},set:function t(e,n){return Yo.def(To(this,i),e,n)}};var f=t.exports=zo(i,l,c,Yo,true,true);if(n&&r){u=Yo.getConstructor(l,i);xe(u.prototype,c);m.NEED=true;e(["delete","has","get","set"],function(r){var t=f.prototype;var i=t[r];b(t,r,function(t,e){if(Xt(t)&&!o(t)){if(!this._f)this._f=new u;var n=this._f[r](t,e);return r=="set"?this:n}return i.call(this,t,e)})})}});var Zo="WeakSet";zo(Zo,function(e){return function t(){return e(this,arguments.length>0?arguments[0]:undefined)}},{add:function t(e){return Yo.def(To(this,Zo),e,true)}},Yo,false,true);var $o=te("typed_array");var Jo=te("view");var Qo=!!(Wt.ArrayBuffer&&Wt.DataView);var ts=Qo;var es=0;var ns=9;var rs;var is="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");while(es<ns){if(rs=Wt[is[es++]]){Qt(rs.prototype,$o,true);Qt(rs.prototype,Jo,true)}else ts=false}var as={ABV:Qo,CONSTR:ts,TYPED:$o,VIEW:Jo};var os=function t(e){if(e===undefined)return 0;var n=ae(e);var r=oe(n);if(n!==r)throw RangeError("Wrong length!");return r};var ss=t(function(t,e){var n=fe.f;var r=$t.f;var i="ArrayBuffer";var o="DataView";var a="prototype";var s="Wrong length!";var h="Wrong index!";var u=Wt[i];var l=Wt[o];var c=Wt.Math;var d=Wt.RangeError;var g=Wt.Infinity;var f=u;var v=c.abs;var p=c.pow;var y=c.floor;var m=c.log;var _=c.LN2;var b="buffer";var w="byteLength";var x="byteOffset";var k=Yt?"_b":b;var S=Yt?"_l":w;var C=Yt?"_o":x;function E(t,e,n){var r=new Array(n);var i=n*8-e-1;var a=(1<<i)-1;var o=a>>1;var s=e===23?p(2,-24)-p(2,-77):0;var u=0;var l=t<0||t===0&&1/t<0?1:0;var c,f,h;t=v(t);if(t!=t||t===g){f=t!=t?1:0;c=a}else{c=y(m(t)/_);if(t*(h=p(2,-c))<1){c--;h*=2}if(c+o>=1){t+=s/h}else{t+=s*p(2,1-o)}if(t*h>=2){c++;h/=2}if(c+o>=a){f=0;c=a}else if(c+o>=1){f=(t*h-1)*p(2,e);c=c+o}else{f=t*p(2,o-1)*p(2,e);c=0}}for(;e>=8;r[u++]=f&255,f/=256,e-=8){}c=c<<e|f;i+=e;for(;i>0;r[u++]=c&255,c/=256,i-=8){}r[--u]|=l*128;return r}function A(t,e,n){var r=n*8-e-1;var i=(1<<r)-1;var a=i>>1;var o=r-7;var s=n-1;var u=t[s--];var l=u&127;var c;u>>=7;for(;o>0;l=l*256+t[s],s--,o-=8){}c=l&(1<<-o)-1;l>>=-o;o+=e;for(;o>0;c=c*256+t[s],s--,o-=8){}if(l===0){l=1-a}else if(l===i){return c?NaN:u?-g:g}else{c=c+p(2,e);l=l-a}return(u?-1:1)*c*p(2,l-e)}function M(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function R(t){return[t&255]}function T(t){return[t&255,t>>8&255]}function O(t){return[t&255,t>>8&255,t>>16&255,t>>24&255]}function P(t){return E(t,52,8)}function B(t){return E(t,23,4)}function D(t,e,n){r(t[a],e,{get:function t(){return this[n]}})}function N(t,e,n,r){var i=+n;var a=os(i);if(a+e>t[S])throw d(h);var o=t[k]._b;var s=a+t[C];var u=o.slice(s,s+e);return r?u:u.reverse()}function z(t,e,n,r,i,a){var o=+n;var s=os(o);if(s+e>t[S])throw d(h);var u=t[k]._b;var l=s+t[C];var c=r(+i);for(var f=0;f<e;f++){u[l+f]=c[a?f:e-f-1]}}if(!as.ABV){u=function t(e){Ta(this,u,i);var n=os(e);this._b=Ai.call(new Array(n),0);this[S]=n};l=function t(e,n,r){Ta(this,l,o);Ta(e,u,o);var i=e[S];var a=ae(n);if(a<0||a>i)throw d("Wrong offset!");r=r===undefined?i-a:oe(r);if(a+r>i)throw d(s);this[k]=e;this[C]=a;this[S]=r};if(Yt){D(u,w,"_l");D(l,b,"_b");D(l,w,"_l");D(l,x,"_o")}ao(l[a],{getInt8:function t(e){return N(this,1,e)[0]<<24>>24},getUint8:function t(e){return N(this,1,e)[0]},getInt16:function t(e){var n=N(this,2,e,arguments[1]);return(n[1]<<8|n[0])<<16>>16},getUint16:function t(e){var n=N(this,2,e,arguments[1]);return n[1]<<8|n[0]},getInt32:function t(e){return M(N(this,4,e,arguments[1]))},getUint32:function t(e){return M(N(this,4,e,arguments[1]))>>>0},getFloat32:function t(e){return A(N(this,4,e,arguments[1]),23,4)},getFloat64:function t(e){return A(N(this,8,e,arguments[1]),52,8)},setInt8:function t(e,n){z(this,1,e,R,n)},setUint8:function t(e,n){z(this,1,e,R,n)},setInt16:function t(e,n){z(this,2,e,T,n,arguments[2])},setUint16:function t(e,n){z(this,2,e,T,n,arguments[2])},setInt32:function t(e,n){z(this,4,e,O,n,arguments[2])},setUint32:function t(e,n){z(this,4,e,O,n,arguments[2])},setFloat32:function t(e,n){z(this,4,e,B,n,arguments[2])},setFloat64:function t(e,n){z(this,8,e,P,n,arguments[2])}})}else{if(!Kt(function(){u(1)})||!Kt(function(){new u(-1)})||Kt(function(){new u;new u(1.5);new u(NaN);return u.name!=i})){u=function t(e){Ta(this,u);return new f(os(e))};var F=u[a]=f[a];for(var j=n(f),I=0,L;j.length>I;){if(!((L=j[I++])in u))Qt(u,L,f[L])}F.constructor=u}var H=new l(new u(2));var U=l[a].setInt8;H.setInt8(0,2147483648);H.setInt8(1,2147483649);if(H.getInt8(0)||!H.getInt8(1))ao(l[a],{setInt8:function t(e,n){U.call(this,e,n<<24>>24)},setUint8:function t(e,n){U.call(this,e,n<<24>>24)}},true)}G(u,i);G(l,o);Qt(l[a],as.VIEW,true);e[i]=u;e[o]=l});var us=Wt.ArrayBuffer;var ls=ss.ArrayBuffer;var cs=ss.DataView;var fs=as.ABV&&us.isView;var hs=ls.prototype.slice;var ds=as.VIEW;var gs="ArrayBuffer";re(re.G+re.W+re.F*(us!==ls),{ArrayBuffer:ls});re(re.S+re.F*!as.CONSTR,gs,{isView:function t(e){return fs&&fs(e)||Xt(e)&&ds in e}});re(re.P+re.U+re.F*Kt(function(){return!new ls(2).slice(1,undefined).byteLength}),gs,{slice:function t(e,n){if(hs!==undefined&&n===undefined)return hs.call(S(this),e);var r=S(this).byteLength;var i=se(e,r);var a=se(n===undefined?r:n,r);var o=new(xa(this,ls))(oe(a-i));var s=new cs(this);var u=new cs(o);var l=0;while(i<a){u.setUint8(l++,s.getUint8(i++))}return o}});Ni(gs);re(re.G+re.W+re.F*!as.ABV,{DataView:ss.DataView});var vs=t(function(t){if(Yt){var _=ee;var b=Wt;var w=Kt;var x=re;var k=as;var e=ss;var d=ne;var S=Ta;var r=Jt;var C=Qt;var n=ao;var i=ae;var E=oe;var A=os;var o=se;var a=Zt;var s=qt;var M=Re;var R=Xt;var g=le;var v=Yr;var T=ce;var O=ye;var P=fe.f;var p=$r;var u=te;var l=ie;var c=ci;var f=ue;var h=xa;var y=Fi;var B=sr;var D=ei;var N=Ni;var m=Ai;var z=ki;var F=$t;var j=he;var I=F.f;var L=j.f;var H=b.RangeError;var U=b.TypeError;var G=b.Uint8Array;var V="ArrayBuffer";var W="Shared"+V;var q="BYTES_PER_ELEMENT";var K="prototype";var Y=Array[K];var X=e.ArrayBuffer;var Z=e.DataView;var $=c(0);var J=c(2);var Q=c(3);var tt=c(4);var et=c(5);var nt=c(6);var rt=f(true);var it=f(false);var at=y.values;var ot=y.keys;var st=y.entries;var ut=Y.lastIndexOf;var lt=Y.reduce;var ct=Y.reduceRight;var ft=Y.join;var ht=Y.sort;var dt=Y.slice;var gt=Y.toString;var vt=Y.toLocaleString;var pt=l("iterator");var yt=l("toStringTag");var mt=u("typed_constructor");var _t=u("def_constructor");var bt=k.CONSTR;var wt=k.TYPED;var xt=k.VIEW;var kt="Wrong length!";var St=c(1,function(t,e){return Rt(h(t,t[_t]),e)});var Ct=w(function(){return new G(new Uint16Array([1]).buffer)[0]===1});var Et=!!G&&!!G[K].set&&w(function(){new G(1).set({})});var At=function t(e,n){var r=i(e);if(r<0||r%n)throw H("Wrong offset!");return r};var Mt=function t(e){if(R(e)&&wt in e)return e;throw U(e+" is not a typed array!")};var Rt=function t(e,n){if(!(R(e)&&mt in e)){throw U("It is not a typed array constructor!")}return new e(n)};var Tt=function t(e,n){return Ot(h(e,e[_t]),n)};var Ot=function t(e,n){var r=0;var i=n.length;var a=Rt(e,i);while(i>r){a[r]=n[r++]}return a};var Pt=function t(e,n,r){I(e,n,{get:function t(){return this._d[r]}})};var Bt=function t(e){var n=g(e);var r=arguments.length;var i=r>1?arguments[1]:undefined;var a=i!==undefined;var o=p(n);var s,u,l,c,f,h;if(o!=undefined&&!v(o)){for(h=o.call(n),l=[],s=0;!(f=h.next()).done;s++){l.push(f.value)}n=l}if(a&&r>2)i=d(i,arguments[2],2);for(s=0,u=E(n.length),c=Rt(this,u);u>s;s++){c[s]=a?i(n[s],s):n[s]}return c};var Dt=function t(){var e=0;var n=arguments.length;var r=Rt(this,n);while(n>e){r[e]=arguments[e++]}return r};var Nt=!!G&&w(function(){vt.call(new G(1))});var zt=function t(){return vt.apply(Nt?dt.call(Mt(this)):Mt(this),arguments)};var Ft={copyWithin:function t(e,n){return z.call(Mt(this),e,n,arguments.length>2?arguments[2]:undefined)},every:function t(e){return tt(Mt(this),e,arguments.length>1?arguments[1]:undefined)},fill:function t(e){return m.apply(Mt(this),arguments)},filter:function t(e){return Tt(this,J(Mt(this),e,arguments.length>1?arguments[1]:undefined))},find:function t(e){return et(Mt(this),e,arguments.length>1?arguments[1]:undefined)},findIndex:function t(e){return nt(Mt(this),e,arguments.length>1?arguments[1]:undefined)},forEach:function t(e){$(Mt(this),e,arguments.length>1?arguments[1]:undefined)},indexOf:function t(e){return it(Mt(this),e,arguments.length>1?arguments[1]:undefined)},includes:function t(e){return rt(Mt(this),e,arguments.length>1?arguments[1]:undefined)},join:function t(e){return ft.apply(Mt(this),arguments)},lastIndexOf:function t(e){return ut.apply(Mt(this),arguments)},map:function t(e){return St(Mt(this),e,arguments.length>1?arguments[1]:undefined)},reduce:function t(e){return lt.apply(Mt(this),arguments)},reduceRight:function t(e){return ct.apply(Mt(this),arguments)},reverse:function t(){var e=this;var n=Mt(e).length;var r=Math.floor(n/2);var i=0;var a;while(i<r){a=e[i];e[i++]=e[--n];e[n]=a}return e},some:function t(e){return Q(Mt(this),e,arguments.length>1?arguments[1]:undefined)},sort:function t(e){return ht.call(Mt(this),e)},subarray:function t(e,n){var r=Mt(this);var i=r.length;var a=o(e,i);return new(h(r,r[_t]))(r.buffer,r.byteOffset+a*r.BYTES_PER_ELEMENT,E((n===undefined?i:o(n,i))-a))}};var jt=function t(e,n){return Tt(this,dt.call(Mt(this),e,n))};var It=function t(e){Mt(this);var n=At(arguments[1],1);var r=this.length;var i=g(e);var a=E(i.length);var o=0;if(a+n>r)throw H(kt);while(o<a){this[n+o]=i[o++]}};var Lt={entries:function t(){return st.call(Mt(this))},keys:function t(){return ot.call(Mt(this))},values:function t(){return at.call(Mt(this))}};var Ht=function t(e,n){return R(e)&&e[wt]&&_typeof2(n)!="symbol"&&n in e&&String(+n)==String(n)};var Ut=function t(e,n){return Ht(e,n=a(n,true))?r(2,e[n]):L(e,n)};var Gt=function t(e,n,r){if(Ht(e,n=a(n,true))&&R(r)&&s(r,"value")&&!s(r,"get")&&!s(r,"set")&&!r.configurable&&(!s(r,"writable")||r.writable)&&(!s(r,"enumerable")||r.enumerable)){e[n]=r.value;return e}return I(e,n,r)};if(!bt){j.f=Ut;F.f=Gt}x(x.S+x.F*!bt,"Object",{getOwnPropertyDescriptor:Ut,defineProperty:Gt});if(w(function(){gt.call({})})){gt=vt=function t(){return ft.call(this)}}var Vt=n({},Ft);n(Vt,Lt);C(Vt,pt,Lt.values);n(Vt,{slice:jt,set:It,constructor:function t(){},toString:gt,toLocaleString:zt});Pt(Vt,"buffer","b");Pt(Vt,"byteOffset","o");Pt(Vt,"byteLength","l");Pt(Vt,"length","e");I(Vt,yt,{get:function t(){return this[wt]}});t.exports=function(t,f,e,a){a=!!a;var h=t+(a?"Clamped":"")+"Array";var i="get"+t;var o="set"+t;var d=b[h];var s=d||{};var n=d&&O(d);var r=!d||!k.ABV;var u={};var l=d&&d[K];var c=function t(e,n){var r=e._d;return r.v[i](n*f+r.o,Ct)};var g=function t(e,n,r){var i=e._d;if(a)r=(r=Math.round(r))<0?0:r>255?255:r&255;i.v[o](n*f+i.o,r,Ct)};var v=function t(e,n){I(e,n,{get:function t(){return c(this,n)},set:function t(e){return g(this,n,e)},enumerable:true})};if(r){d=e(function(t,e,n,r){S(t,d,h,"_d");var i=0;var a=0;var o,s,u,l;if(!R(e)){u=A(e);s=u*f;o=new X(s)}else if(e instanceof X||(l=M(e))==V||l==W){o=e;a=At(n,f);var c=e.byteLength;if(r===undefined){if(c%f)throw H(kt);s=c-a;if(s<0)throw H(kt)}else{s=E(r)*f;if(s+a>c)throw H(kt)}u=s/f}else if(wt in e){return Ot(d,e)}else{return Bt.call(d,e)}C(t,"_d",{b:o,o:a,l:s,e:u,v:new Z(o)});while(i<u){v(t,i++)}});l=d[K]=T(Vt);C(l,"constructor",d)}else if(!w(function(){d(1)})||!w(function(){new d(-1)})||!D(function(t){new d;new d(null);new d(1.5);new d(t)},true)){d=e(function(t,e,n,r){S(t,d,h);var i;if(!R(e))return new s(A(e));if(e instanceof X||(i=M(e))==V||i==W){return r!==undefined?new s(e,At(n,f),r):n!==undefined?new s(e,At(n,f)):new s(e)}if(wt in e)return Ot(d,e);return Bt.call(d,e)});$(n!==Function.prototype?P(s).concat(P(n)):P(s),function(t){if(!(t in d))C(d,t,s[t])});d[K]=l;if(!_)l.constructor=d}var p=l[pt];var y=!!p&&(p.name=="values"||p.name==undefined);var m=Lt.values;C(d,mt,true);C(l,wt,h);C(l,xt,true);C(l,_t,d);if(a?new d(1)[yt]!=h:!(yt in l)){I(l,yt,{get:function t(){return h}})}u[h]=d;x(x.G+x.W+x.F*(d!=s),u);x(x.S,h,{BYTES_PER_ELEMENT:f});x(x.S+x.F*w(function(){s.of.call(d,1)}),h,{from:Bt,of:Dt});if(!(q in l))C(l,q,f);x(x.P,h,Ft);N(h);x(x.P+x.F*Et,h,{set:It});x(x.P+x.F*!y,h,Lt);if(!_&&l.toString!=gt)l.toString=gt;x(x.P+x.F*w(function(){new d(1).slice()}),h,{slice:jt});x(x.P+x.F*(w(function(){return[1,2].toLocaleString()!=new d([1,2]).toLocaleString()})||!w(function(){l.toLocaleString.call([1,2])})),h,{toLocaleString:zt});B[h]=y?p:m;if(!_&&!y)C(l,pt,m)}}else t.exports=function(){}});vs("Int8",1,function(i){return function t(e,n,r){return i(this,e,n,r)}});vs("Uint8",1,function(i){return function t(e,n,r){return i(this,e,n,r)}});vs("Uint8",1,function(i){return function t(e,n,r){return i(this,e,n,r)}},true);vs("Int16",2,function(i){return function t(e,n,r){return i(this,e,n,r)}});vs("Uint16",2,function(i){return function t(e,n,r){return i(this,e,n,r)}});vs("Int32",4,function(i){return function t(e,n,r){return i(this,e,n,r)}});vs("Uint32",4,function(i){return function t(e,n,r){return i(this,e,n,r)}});vs("Float32",4,function(i){return function t(e,n,r){return i(this,e,n,r)}});vs("Float64",8,function(i){return function t(e,n,r){return i(this,e,n,r)}});var ps=(Wt.Reflect||{}).apply;var ys=Function.apply;re(re.S+re.F*!Kt(function(){ps(function(){})}),"Reflect",{apply:function t(e,n,r){var i=h(e);var a=S(r);return ps?ps(i,n,a):ys.call(i,n,a)}});var ms=(Wt.Reflect||{}).construct;var _s=Kt(function(){function t(){}return!(ms(function(){},[],t)instanceof t)});var bs=!Kt(function(){ms(function(){})});re(re.S+re.F*(_s||bs),"Reflect",{construct:function t(e,n){h(e);S(n);var r=arguments.length<3?e:h(arguments[2]);if(bs&&!_s)return ms(e,n,r);if(e==r){switch(n.length){case 0:return new e;case 1:return new e(n[0]);case 2:return new e(n[0],n[1]);case 3:return new e(n[0],n[1],n[2]);case 4:return new e(n[0],n[1],n[2],n[3])}var i=[null];i.push.apply(i,n);return new(Ne.apply(e,i))}var a=r.prototype;var o=ce(Xt(a)?a:Object.prototype);var s=Function.apply.call(e,o,n);return Xt(s)?s:o}});re(re.S+re.F*Kt(function(){Reflect.defineProperty($t.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function t(e,n,r){S(e);n=Zt(n,true);S(r);try{$t.f(e,n,r);return true}catch(t){return false}}});var ws=he.f;re(re.S,"Reflect",{deleteProperty:function t(e,n){var r=ws(S(e),n);return r&&!r.configurable?false:delete e[n]}});var xs=function t(e){this._t=S(e);this._i=0;var n=this._k=[];var r;for(r in e){n.push(r)}};lr(xs,"Object",function(){var t=this;var e=t._k;var n;do{if(t._i>=e.length)return{value:undefined,done:true}}while(!((n=e[t._i++])in t._t));return{value:n,done:false}});re(re.S,"Reflect",{enumerate:function t(e){return new xs(e)}});function ks(t,e){var n=arguments.length<3?t:arguments[2];var r,i;if(S(t)===n)return t[e];if(r=he.f(t,e))return qt(r,"value")?r.value:r.get!==undefined?r.get.call(n):undefined;if(Xt(i=ye(t)))return ks(i,e,n)}re(re.S,"Reflect",{get:ks});re(re.S,"Reflect",{getOwnPropertyDescriptor:function t(e,n){return he.f(S(e),n)}});re(re.S,"Reflect",{getPrototypeOf:function t(e){return ye(S(e))}});re(re.S,"Reflect",{has:function t(e,n){return n in e}});var Ss=Object.isExtensible;re(re.S,"Reflect",{isExtensible:function t(e){S(e);return Ss?Ss(e):true}});var Cs=Wt.Reflect;var Es=Cs&&Cs.ownKeys||function t(e){var n=fe.f(S(e));var r=V.f;return r?n.concat(r(e)):n};re(re.S,"Reflect",{ownKeys:Es});var As=Object.preventExtensions;re(re.S,"Reflect",{preventExtensions:function t(e){S(e);try{if(As)As(e);return true}catch(t){return false}}});function Ms(t,e,n){var r=arguments.length<4?t:arguments[3];var i=he.f(S(t),e);var a,o;if(!i){if(Xt(o=ye(t))){return Ms(o,e,n,r)}i=Jt(0)}if(qt(i,"value")){if(i.writable===false||!Xt(r))return false;if(a=he.f(r,e)){if(a.get||a.set||a.writable===false)return false;a.value=n;$t.f(r,e,a)}else $t.f(r,e,Jt(0,n));return true}return i.set===undefined?false:(i.set.call(r,n),true)}re(re.S,"Reflect",{set:Ms});if(Ce)re(re.S,"Reflect",{setPrototypeOf:function t(e,n){Ce.check(e,n);try{Ce.set(e,n);return true}catch(t){return false}}});var Rs=ue(true);re(re.P,"Array",{includes:function t(e){return Rs(this,e,arguments.length>1?arguments[1]:undefined)}});Ei("includes");var Ts=ie("isConcatSpreadable");function Os(t,e,n,r,i,a,o,s){var u=i;var l=0;var c=o?ne(o,s,3):false;var f,h;while(l<r){if(l in n){f=c?c(n[l],l,e):n[l];h=false;if(Xt(f)){h=f[Ts];h=h!==undefined?!!h:Y(f)}if(h&&a>0){u=Os(t,e,f,oe(f.length),u,a-1)-1}else{if(u>=9007199254740991)throw TypeError();t[u]=f}u++}l++}return u}var Ps=Os;re(re.P,"Array",{flatMap:function t(e){var n=le(this);var r,i;h(e);r=oe(n.length);i=li(n,0);Ps(i,n,n,r,0,1,e,arguments[1]);return i}});Ei("flatMap");re(re.P,"Array",{flatten:function t(){var e=arguments[0];var n=le(this);var r=oe(n.length);var i=li(n,0);Ps(i,n,n,r,0,e===undefined?1:ae(e));return i}});Ei("flatten");var Bs=or(true);var Ds=Kt(function(){return"𠮷".at(0)!=="𠮷"});re(re.P+re.F*Ds,"String",{at:function t(e){return Bs(this,e)}});var Ns=function t(e,n,r,i){var a=String(M(e));var o=a.length;var s=r===undefined?" ":String(r);var u=oe(n);if(u<=o||s=="")return a;var l=u-o;var c=wn.call(s,Math.ceil(l/s.length));if(c.length>l)c=c.slice(0,l);return i?c+a:a+c};var zs=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(ro);re(re.P+re.F*zs,"String",{padStart:function t(e){return Ns(this,e,arguments.length>1?arguments[1]:undefined,true)}});var Fs=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(ro);re(re.P+re.F*Fs,"String",{padEnd:function t(e){return Ns(this,e,arguments.length>1?arguments[1]:undefined,false)}});Xe("trimLeft",function(e){return function t(){return e(this,1)}},"trimStart");Xe("trimRight",function(e){return function t(){return e(this,2)}},"trimEnd");var js=RegExp.prototype;var Is=function t(e,n){this._r=e;this._s=n};lr(Is,"RegExp String",function t(){var e=this._r.exec(this._s);return{value:e,done:e===null}});re(re.P,"String",{matchAll:function t(e){M(this);if(!br(e))throw TypeError(e+" is not a regexp!");var n=String(this);var r="flags"in js?String(e.flags):ji.call(e);var i=new RegExp(e.source,~r.indexOf("g")?r:"g"+r);i.lastIndex=oe(e.lastIndex);return new Is(i,n)}});k("asyncIterator");k("observable");re(re.S,"Object",{getOwnPropertyDescriptors:function t(e){var n=R(e);var r=he.f;var i=Es(n);var a={};var o=0;var s,u;while(i.length>o){u=r(n,s=i[o++]);if(u!==undefined)Xr(a,s,u)}return a}});var Ls=q.f;var Hs=function t(s){return function(t){var e=R(t);var n=H(e);var r=n.length;var i=0;var a=[];var o;while(r>i){o=n[i++];if(!Yt||Ls.call(e,o)){a.push(s?[o,e[o]]:e[o])}}return a}};var Us=Hs(false);re(re.S,"Object",{values:function t(e){return Us(e)}});var Gs=Hs(true);re(re.S,"Object",{entries:function t(e){return Gs(e)}});var Vs=!Kt(function(){var t=Math.random();__defineSetter__.call(null,t,function(){});delete Wt[t]});Yt&&re(re.P+Vs,"Object",{__defineGetter__:function t(e,n){$t.f(le(this),e,{get:h(n),enumerable:true,configurable:true})}});Yt&&re(re.P+Vs,"Object",{__defineSetter__:function t(e,n){$t.f(le(this),e,{set:h(n),enumerable:true,configurable:true})}});var Ws=he.f;Yt&&re(re.P+Vs,"Object",{__lookupGetter__:function t(e){var n=le(this);var r=Zt(e,true);var i;do{if(i=Ws(n,r))return i.get}while(n=ye(n))}});var qs=he.f;Yt&&re(re.P+Vs,"Object",{__lookupSetter__:function t(e){var n=le(this);var r=Zt(e,true);var i;do{if(i=qs(n,r))return i.set}while(n=ye(n))}});var Ks=function t(e,n){var r=[];Oa(e,false,r.push,r,n);return r};var Ys=function t(e){return function t(){if(Re(this)!=e)throw TypeError(e+"#toJSON isn't generic");return Ks(this)}};re(re.P+re.R,"Map",{toJSON:Ys("Map")});re(re.P+re.R,"Set",{toJSON:Ys("Set")});var Xs=function t(e){re(re.S,e,{of:function t(){var e=arguments.length;var n=new Array(e);while(e--){n[e]=arguments[e]}return new this(n)}})};Xs("Map");Xs("Set");Xs("WeakMap");Xs("WeakSet");var Zs=function t(e){re(re.S,e,{from:function t(e){var n=arguments[1];var r,i,a,o;h(this);r=n!==undefined;if(r)h(n);if(e==undefined)return new this;i=[];if(r){a=0;o=ne(n,arguments[2],2);Oa(e,false,function(t){i.push(o(t,a++))})}else{Oa(e,false,i.push,i)}return new this(i)}})};Zs("Map");Zs("Set");Zs("WeakMap");Zs("WeakSet");re(re.G,{global:Wt});re(re.S,"System",{global:Wt});re(re.S,"Error",{isError:function t(e){return E(e)==="Error"}});re(re.S,"Math",{clamp:function t(e,n,r){return Math.min(r,Math.max(n,e))}});re(re.S,"Math",{DEG_PER_RAD:Math.PI/180});var $s=180/Math.PI;re(re.S,"Math",{degrees:function t(e){return e*$s}});var Js=Math.scale||function t(e,n,r,i,a){if(arguments.length===0||e!=e||n!=n||r!=r||i!=i||a!=a)return NaN;if(e===Infinity||e===-Infinity)return e;return(e-n)*(a-i)/(r-n)+i};re(re.S,"Math",{fscale:function t(e,n,r,i,a){return Qn(Js(e,n,r,i,a))}});re(re.S,"Math",{iaddh:function t(e,n,r,i){var a=e>>>0;var o=n>>>0;var s=r>>>0;return o+(i>>>0)+((a&s|(a|s)&~(a+s>>>0))>>>31)|0}});re(re.S,"Math",{isubh:function t(e,n,r,i){var a=e>>>0;var o=n>>>0;var s=r>>>0;return o-(i>>>0)-((~a&s|~(a^s)&a-s>>>0)>>>31)|0}});re(re.S,"Math",{imulh:function t(e,n){var r=65535;var i=+e;var a=+n;var o=i&r;var s=a&r;var u=i>>16;var l=a>>16;var c=(u*s>>>0)+(o*s>>>16);return u*l+(c>>16)+((o*l>>>0)+(c&r)>>16)}});re(re.S,"Math",{RAD_PER_DEG:180/Math.PI});var Qs=Math.PI/180;re(re.S,"Math",{radians:function t(e){return e*Qs}});re(re.S,"Math",{scale:Js});re(re.S,"Math",{umulh:function t(e,n){var r=65535;var i=+e;var a=+n;var o=i&r;var s=a&r;var u=i>>>16;var l=a>>>16;var c=(u*s>>>0)+(o*s>>>16);return u*l+(c>>>16)+((o*l>>>0)+(c&r)>>>16)}});re(re.S,"Math",{signbit:function t(e){return(e=+e)!=e?e:e==0?1/e==Infinity:e>0}});re(re.P+re.R,"Promise",{finally:function t(e){var n=xa(this,p.Promise||Wt.Promise);var r=typeof e=="function";return this.then(r?function(t){return io(n,e()).then(function(){return t})}:e,r?function(t){return io(n,e()).then(function(){throw t})}:e)}});re(re.S,"Promise",{try:function t(e){var n=to.f(this);var r=eo(e);(r.e?n.reject:n.resolve)(r.v);return n.promise}});var tu=c("metadata");var eu=tu.store||(tu.store=new Xo);var nu=function t(e,n,r){var i=eu.get(e);if(!i){if(!r)return undefined;eu.set(e,i=new jo)}var a=i.get(n);if(!a){if(!r)return undefined;i.set(n,a=new jo)}return a};var ru=function t(e,n,r){var i=nu(n,r,false);return i===undefined?false:i.has(e)};var iu=function t(e,n,r){var i=nu(n,r,false);return i===undefined?undefined:i.get(e)};var au=function t(e,n,r,i){nu(r,i,true).set(e,n)};var ou=function t(e,n){var r=nu(e,n,false);var i=[];if(r)r.forEach(function(t,e){i.push(e)});return i};var su=function t(e){return e===undefined||_typeof2(e)=="symbol"?e:String(e)};var uu=function t(e){re(re.S,"Reflect",e)};var lu={store:eu,map:nu,has:ru,get:iu,set:au,keys:ou,key:su,exp:uu};var cu=lu.key;var fu=lu.set;lu.exp({defineMetadata:function t(e,n,r,i){fu(e,n,S(r),cu(i))}});var hu=lu.key;var du=lu.map;var gu=lu.store;lu.exp({deleteMetadata:function t(e,n){var r=arguments.length<3?undefined:hu(arguments[2]);var i=du(S(n),r,false);if(i===undefined||!i["delete"](e))return false;if(i.size)return true;var a=gu.get(n);a["delete"](r);return!!a.size||gu["delete"](n)}});var vu=lu.has;var pu=lu.get;var yu=lu.key;var mu=function t(e,n,r){var i=vu(e,n,r);if(i)return pu(e,n,r);var a=ye(n);return a!==null?t(e,a,r):undefined};lu.exp({getMetadata:function t(e,n){return mu(e,S(n),arguments.length<3?undefined:yu(arguments[2]))}});var _u=lu.keys;var bu=lu.key;var wu=function t(e,n){var r=_u(e,n);var i=ye(e);if(i===null)return r;var a=t(i,n);return a.length?r.length?Ks(new Lo(r.concat(a))):a:r};lu.exp({getMetadataKeys:function t(e){return wu(S(e),arguments.length<2?undefined:bu(arguments[1]))}});var xu=lu.get;var ku=lu.key;lu.exp({getOwnMetadata:function t(e,n){return xu(e,S(n),arguments.length<3?undefined:ku(arguments[2]))}});var Su=lu.keys;var Cu=lu.key;lu.exp({getOwnMetadataKeys:function t(e){return Su(S(e),arguments.length<2?undefined:Cu(arguments[1]))}});var Eu=lu.has;var Au=lu.key;var Mu=function t(e,n,r){var i=Eu(e,n,r);if(i)return true;var a=ye(n);return a!==null?t(e,a,r):false};lu.exp({hasMetadata:function t(e,n){return Mu(e,S(n),arguments.length<3?undefined:Au(arguments[2]))}});var Ru=lu.has;var Tu=lu.key;lu.exp({hasOwnMetadata:function t(e,n){return Ru(e,S(n),arguments.length<3?undefined:Tu(arguments[2]))}});var Ou=lu.key;var Pu=lu.set;lu.exp({metadata:function t(r,i){return function t(e,n){Pu(r,i,(n!==undefined?S:h)(e),Ou(n))}}});var Bu=$a();var Du=Wt.process;var Nu=E(Du)=="process";re(re.G,{asap:function t(e){var n=Nu&&Du.domain;Bu(n?n.bind(e):e)}});var zu=$a();var Fu=ie("observable");var ju=Oa.RETURN;var Iu=function t(e){return e==null?undefined:h(e)};var Lu=function t(e){var n=e._c;if(n){e._c=undefined;n()}};var Hu=function t(e){return e._o===undefined};var Uu=function t(e){if(!Hu(e)){e._o=undefined;Lu(e)}};var Gu=function t(e,n){S(e);this._c=undefined;this._o=e;e=new Vu(this);try{var r=n(e);var i=r;if(r!=null){if(typeof r.unsubscribe==="function")r=function t(){i.unsubscribe()};else h(r);this._c=r}}catch(t){e.error(t);return}if(Hu(this))Lu(this)};Gu.prototype=ao({},{unsubscribe:function t(){Uu(this)}});var Vu=function t(e){this._s=e};Vu.prototype=ao({},{next:function t(e){var n=this._s;if(!Hu(n)){var r=n._o;try{var i=Iu(r.next);if(i)return i.call(r,e)}catch(t){try{Uu(n)}finally{throw t}}}},error:function t(e){var n=this._s;if(Hu(n))throw e;var r=n._o;n._o=undefined;try{var i=Iu(r.error);if(!i)throw e;e=i.call(r,e)}catch(t){try{Lu(n)}finally{throw t}}Lu(n);return e},complete:function t(e){var n=this._s;if(!Hu(n)){var r=n._o;n._o=undefined;try{var i=Iu(r.complete);e=i?i.call(r,e):undefined}catch(t){try{Lu(n)}finally{throw t}}Lu(n);return e}}});var Wu=function t(e){Ta(this,Wu,"Observable","_f")._f=h(e)};ao(Wu.prototype,{subscribe:function t(e){return new Gu(e,this._f)},forEach:function t(i){var e=this;return new(p.Promise||Wt.Promise)(function(t,n){h(i);var r=e.subscribe({next:function t(e){try{return i(e)}catch(t){n(t);r.unsubscribe()}},error:n,complete:t})})}});ao(Wu,{from:function t(r){var e=typeof this==="function"?this:Wu;var n=Iu(S(r)[Fu]);if(n){var i=S(n.call(r));return i.constructor===e?i:new e(function(t){return i.subscribe(t)})}return new e(function(e){var n=false;zu(function(){if(!n){try{if(Oa(r,false,function(t){e.next(t);if(n)return ju})===ju)return}catch(t){if(n)throw t;e.error(t);return}e.complete()}});return function(){n=true}})},of:function t(){for(var e=0,n=arguments.length,r=new Array(n);e<n;){r[e]=arguments[e++]}return new(typeof this==="function"?this:Wu)(function(e){var n=false;zu(function(){if(!n){for(var t=0;t<r.length;++t){e.next(r[t]);if(n)return}e.complete()}});return function(){n=true}})}});Qt(Wu.prototype,Fu,function(){return this});re(re.G,{Observable:Wu});Ni("Observable");var qu=[].slice;var Ku=/MSIE .\./.test(ro);var Yu=function t(i){return function(t,e){var n=arguments.length>2;var r=n?qu.call(arguments,2):false;return i(n?function(){(typeof t=="function"?t:Function(t)).apply(this,r)}:t,e)}};re(re.G+re.B+re.F*Ku,{setTimeout:Yu(Wt.setTimeout),setInterval:Yu(Wt.setInterval)});re(re.G+re.B,{setImmediate:Wa.set,clearImmediate:Wa.clear});var Xu=ie("iterator");var Zu=ie("toStringTag");var $u=sr.Array;var Ju={CSSRuleList:true,CSSStyleDeclaration:false,CSSValueList:false,ClientRectList:false,DOMRectList:false,DOMStringList:false,DOMTokenList:true,DataTransferItemList:false,FileList:false,HTMLAllCollection:false,HTMLCollection:false,HTMLFormElement:false,HTMLSelectElement:false,MediaList:true,MimeTypeArray:false,NamedNodeMap:false,NodeList:true,PaintRequestList:false,Plugin:false,PluginArray:false,SVGLengthList:false,SVGNumberList:false,SVGPathSegList:false,SVGPointList:false,SVGStringList:false,SVGTransformList:false,SourceBufferList:false,StyleSheetList:true,TextTrackCueList:false,TextTrackList:false,TouchList:false};for(var Qu=H(Ju),tl=0;tl<Qu.length;tl++){var el=Qu[tl];var nl=Ju[el];var rl=Wt[el];var il=rl&&rl.prototype;var al;if(il){if(!il[Xu])Qt(il,Xu,$u);if(!il[Zu])Qt(il,Zu,el);sr[el]=$u;if(nl)for(al in Fi){if(!il[al])b(il,al,Fi[al],true)}}}t(function(t){var e=function(o){var t=Object.prototype;var c=t.hasOwnProperty;var l;var e=typeof Symbol==="function"?Symbol:{};var i=e.iterator||"@@iterator";var n=e.asyncIterator||"@@asyncIterator";var r=e.toStringTag||"@@toStringTag";function a(t,e,n){Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true});return t[e]}try{a({},"")}catch(t){a=function t(e,n,r){return e[n]=r}}function s(t,e,n,r){var i=e&&e.prototype instanceof u?e:u;var a=Object.create(i.prototype);var o=new R(r||[]);a._invoke=C(t,n,o);return a}o.wrap=s;function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}var h="suspendedStart";var d="suspendedYield";var g="executing";var v="completed";var p={};function u(){}function y(){}function m(){}var _={};a(_,i,function(){return this});var b=Object.getPrototypeOf;var w=b&&b(b(T([])));if(w&&w!==t&&c.call(w,i)){_=w}var x=m.prototype=u.prototype=Object.create(_);y.prototype=m;a(x,"constructor",m);a(m,"constructor",y);y.displayName=a(m,r,"GeneratorFunction");function k(t){["next","throw","return"].forEach(function(e){a(t,e,function(t){return this._invoke(e,t)})})}o.isGeneratorFunction=function(t){var e=typeof t==="function"&&t.constructor;return e?e===y||(e.displayName||e.name)==="GeneratorFunction":false};o.mark=function(t){if(Object.setPrototypeOf){Object.setPrototypeOf(t,m)}else{t.__proto__=m;a(t,r,"GeneratorFunction")}t.prototype=Object.create(x);return t};o.awrap=function(t){return{__await:t}};function S(s,u){function l(t,e,n,r){var i=f(s[t],s,e);if(i.type==="throw"){r(i.arg)}else{var a=i.arg;var o=a.value;if(o&&_typeof2(o)==="object"&&c.call(o,"__await")){return u.resolve(o.__await).then(function(t){l("next",t,n,r)},function(t){l("throw",t,n,r)})}return u.resolve(o).then(function(t){a.value=t;n(a)},function(t){return l("throw",t,n,r)})}}var e;function t(n,r){function t(){return new u(function(t,e){l(n,r,t,e)})}return e=e?e.then(t,t):t()}this._invoke=t}k(S.prototype);a(S.prototype,n,function(){return this});o.AsyncIterator=S;o.async=function(t,e,n,r,i){if(i===void 0)i=Promise;var a=new S(s(t,e,n,r),i);return o.isGeneratorFunction(e)?a:a.next().then(function(t){return t.done?t.value:a.next()})};function C(o,s,u){var l=h;return function t(e,n){if(l===g){throw new Error("Generator is already running")}if(l===v){if(e==="throw"){throw n}return O()}u.method=e;u.arg=n;while(true){var r=u.delegate;if(r){var i=E(r,u);if(i){if(i===p)continue;return i}}if(u.method==="next"){u.sent=u._sent=u.arg}else if(u.method==="throw"){if(l===h){l=v;throw u.arg}u.dispatchException(u.arg)}else if(u.method==="return"){u.abrupt("return",u.arg)}l=g;var a=f(o,s,u);if(a.type==="normal"){l=u.done?v:d;if(a.arg===p){continue}return{value:a.arg,done:u.done}}else if(a.type==="throw"){l=v;u.method="throw";u.arg=a.arg}}}}function E(t,e){var n=t.iterator[e.method];if(n===l){e.delegate=null;if(e.method==="throw"){if(t.iterator["return"]){e.method="return";e.arg=l;E(t,e);if(e.method==="throw"){return p}}e.method="throw";e.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var r=f(n,t.iterator,e.arg);if(r.type==="throw"){e.method="throw";e.arg=r.arg;e.delegate=null;return p}var i=r.arg;if(!i){e.method="throw";e.arg=new TypeError("iterator result is not an object");e.delegate=null;return p}if(i.done){e[t.resultName]=i.value;e.next=t.nextLoc;if(e.method!=="return"){e.method="next";e.arg=l}}else{return i}e.delegate=null;return p}k(x);a(x,r,"Generator");a(x,i,function(){return this});a(x,"toString",function(){return"[object Generator]"});function A(t){var e={tryLoc:t[0]};if(1 in t){e.catchLoc=t[1]}if(2 in t){e.finallyLoc=t[2];e.afterLoc=t[3]}this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal";delete e.arg;t.completion=e}function R(t){this.tryEntries=[{tryLoc:"root"}];t.forEach(A,this);this.reset(true)}o.keys=function(n){var r=[];for(var t in n){r.push(t)}r.reverse();return function t(){while(r.length){var e=r.pop();if(e in n){t.value=e;t.done=false;return t}}t.done=true;return t}};function T(e){if(e){var t=e[i];if(t){return t.call(e)}if(typeof e.next==="function"){return e}if(!isNaN(e.length)){var n=-1,r=function t(){while(++n<e.length){if(c.call(e,n)){t.value=e[n];t.done=false;return t}}t.value=l;t.done=true;return t};return r.next=r}}return{next:O}}o.values=T;function O(){return{value:l,done:true}}R.prototype={constructor:R,reset:function t(e){this.prev=0;this.next=0;this.sent=this._sent=l;this.done=false;this.delegate=null;this.method="next";this.arg=l;this.tryEntries.forEach(M);if(!e){for(var n in this){if(n.charAt(0)==="t"&&c.call(this,n)&&!isNaN(+n.slice(1))){this[n]=l}}}},stop:function t(){this.done=true;var e=this.tryEntries[0];var n=e.completion;if(n.type==="throw"){throw n.arg}return this.rval},dispatchException:function t(n){if(this.done){throw n}var r=this;function e(t,e){o.type="throw";o.arg=n;r.next=t;if(e){r.method="next";r.arg=l}return!!e}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i];var o=a.completion;if(a.tryLoc==="root"){return e("end")}if(a.tryLoc<=this.prev){var s=c.call(a,"catchLoc");var u=c.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc){return e(a.catchLoc,true)}else if(this.prev<a.finallyLoc){return e(a.finallyLoc)}}else if(s){if(this.prev<a.catchLoc){return e(a.catchLoc,true)}}else if(u){if(this.prev<a.finallyLoc){return e(a.finallyLoc)}}else{throw new Error("try statement without catch or finally")}}}},abrupt:function t(e,n){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&c.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}if(a&&(e==="break"||e==="continue")&&a.tryLoc<=n&&n<=a.finallyLoc){a=null}var o=a?a.completion:{};o.type=e;o.arg=n;if(a){this.method="next";this.next=a.finallyLoc;return p}return this.complete(o)},complete:function t(e,n){if(e.type==="throw"){throw e.arg}if(e.type==="break"||e.type==="continue"){this.next=e.arg}else if(e.type==="return"){this.rval=this.arg=e.arg;this.method="return";this.next="end"}else if(e.type==="normal"&&n){this.next=n}return p},finish:function t(e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===e){this.complete(r.completion,r.afterLoc);M(r);return p}}},catch:function t(e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===e){var i=r.completion;if(i.type==="throw"){var a=i.arg;M(r)}return a}}throw new Error("illegal catch attempt")},delegateYield:function t(e,n,r){this.delegate={iterator:T(e),resultName:n,nextLoc:r};if(this.method==="next"){this.arg=l}return p}};return o}(t.exports);try{regeneratorRuntime=e}catch(t){if((typeof globalThis==="undefined"?"undefined":_typeof2(globalThis))==="object"){globalThis.regeneratorRuntime=e}else{Function("r","regeneratorRuntime = r")(e)}}});if(typeof window!=="undefined"){(function(){try{if(typeof SVGElement==="undefined"||Boolean(SVGElement.prototype.innerHTML)){return}}catch(t){return}function n(t){switch(t.nodeType){case 1:return i(t);case 3:return e(t);case 8:return r(t)}}function e(t){return t.textContent.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function r(t){return"\x3c!--"+t.nodeValue+"--\x3e"}function i(t){var e="";e+="<"+t.tagName;if(t.hasAttributes()){[].forEach.call(t.attributes,function(t){e+=" "+t.name+'="'+t.value+'"'})}e+=">";if(t.hasChildNodes()){[].forEach.call(t.childNodes,function(t){e+=n(t)})}e+="</"+t.tagName+">";return e}Object.defineProperty(SVGElement.prototype,"innerHTML",{get:function t(){var e="";[].forEach.call(this.childNodes,function(t){e+=n(t)});return e},set:function t(e){while(this.firstChild){this.removeChild(this.firstChild)}try{var n=new DOMParser;n.async=false;var r="<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>"+e+"</svg>";var i=n.parseFromString(r,"text/xml").documentElement;[].forEach.call(i.childNodes,function(t){this.appendChild(this.ownerDocument.importNode(t,true))}.bind(this))}catch(t){throw new Error("Error parsing markup string")}}});Object.defineProperty(SVGElement.prototype,"innerSVG",{get:function t(){return this.innerHTML},set:function t(e){this.innerHTML=e}})})()}});(function(t,e){(typeof exports==="undefined"?"undefined":_typeof2(exports))==="object"&&typeof module!=="undefined"?e(exports):typeof define==="function"&&define.amd?define("d3plus",["exports"],e):(t=typeof globalThis!=="undefined"?globalThis:t||self,e(t.d3plus={}))})(this,function(t){var e=regeneratorRuntime.mark(f),o=regeneratorRuntime.mark(B),l=regeneratorRuntime.mark(Us),u=regeneratorRuntime.mark(sW);var n="2.0.2";function v(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function S(r){var a=r;var o=r;if(r.length===1){a=function t(e,n){return r(e)-n};o=i(r)}function s(t,e,n,r){if(n==null)n=0;if(r==null)r=t.length;while(n<r){var i=n+r>>>1;if(o(t[i],e)<0)n=i+1;else r=i}return n}function t(t,e,n,r){if(n==null)n=0;if(r==null)r=t.length;while(n<r){var i=n+r>>>1;if(o(t[i],e)>0)r=i;else n=i+1}return n}function e(t,e,n,r){if(n==null)n=0;if(r==null)r=t.length;var i=s(t,e,n,r-1);return i>n&&a(t[i-1],e)>-a(t[i],e)?i-1:i}return{left:s,center:e,right:t}}function i(n){return function(t,e){return v(n(t),e)}}function c(t){return t===null?NaN:+t}function f(n,r){var i,a,o,s,u,l,c;return regeneratorRuntime.wrap(function t(e){while(1){switch(e.prev=e.next){case 0:if(!(r===undefined)){e.next=21;break}i=_createForOfIteratorHelper2(n);e.prev=2;i.s();case 4:if((a=i.n()).done){e.next=11;break}o=a.value;if(!(o!=null&&(o=+o)>=o)){e.next=9;break}e.next=9;return o;case 9:e.next=4;break;case 11:e.next=16;break;case 13:e.prev=13;e.t0=e["catch"](2);i.e(e.t0);case 16:e.prev=16;i.f();return e.finish(16);case 19:e.next=40;break;case 21:s=-1;u=_createForOfIteratorHelper2(n);e.prev=23;u.s();case 25:if((l=u.n()).done){e.next=32;break}c=l.value;if(!((c=r(c,++s,n))!=null&&(c=+c)>=c)){e.next=30;break}e.next=30;return c;case 30:e.next=25;break;case 32:e.next=37;break;case 34:e.prev=34;e.t1=e["catch"](23);u.e(e.t1);case 37:e.prev=37;u.f();return e.finish(37);case 40:case"end":return e.stop()}}},e,null,[[2,13,16,19],[23,34,37,40]])}var r=S(v);var a=r.right;S(c).center;var h=a;function s(t,e){var n=0;var r;var i=0;var a=0;if(e===undefined){var o=_createForOfIteratorHelper2(t),s;try{for(o.s();!(s=o.n()).done;){var u=s.value;if(u!=null&&(u=+u)>=u){r=u-i;i+=r/++n;a+=r*(u-i)}}}catch(t){o.e(t)}finally{o.f()}}else{var l=-1;var c=_createForOfIteratorHelper2(t),f;try{for(c.s();!(f=c.n()).done;){var h=f.value;if((h=e(h,++l,t))!=null&&(h=+h)>=h){r=h-i;i+=r/++n;a+=r*(h-i)}}}catch(t){c.e(t)}finally{c.f()}}if(n>1)return a/(n-1)}function xe(t,e){var n=s(t,e);return n?Math.sqrt(n):n}function ke(t,e){var n;var r;if(e===undefined){var i=_createForOfIteratorHelper2(t),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;if(o!=null){if(n===undefined){if(o>=o)n=r=o}else{if(n>o)n=o;if(r<o)r=o}}}}catch(t){i.e(t)}finally{i.f()}}else{var s=-1;var u=_createForOfIteratorHelper2(t),l;try{for(u.s();!(l=u.n()).done;){var c=l.value;if((c=e(c,++s,t))!=null){if(n===undefined){if(c>=c)n=r=c}else{if(n>c)n=c;if(r<c)r=c}}}}catch(t){u.e(t)}finally{u.f()}}return[n,r]}var P=function(){"use strict";function t(){_classCallCheck2(this,t);this._partials=new Float64Array(32);this._n=0}_createClass2(t,[{key:"add",value:function t(e){var n=this._partials;var r=0;for(var i=0;i<this._n&&i<32;i++){var a=n[i],o=e+a,s=Math.abs(e)<Math.abs(a)?e-(o-a):a-(o-e);if(s)n[r++]=s;e=o}n[r]=e;this._n=r+1;return this}},{key:"valueOf",value:function t(){var e=this._partials;var n=this._n,r,i,a,o=0;if(n>0){o=e[--n];while(n>0){r=o;i=e[--n];o=r+i;a=i-(o-r);if(a)break}if(n>0&&(a<0&&e[n-1]<0||a>0&&e[n-1]>0)){i=a*2;r=o+i;if(i==r-o)o=r}}return o}}]);return t}();var _=function(t){"use strict";_inherits2(l,t);var u=_createSuper2(l);function l(){var t;var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:y;_classCallCheck2(this,l);t=u.call(this);Object.defineProperties(_assertThisInitialized2(t),{_intern:{value:new Map},_key:{value:n}});var r=_createForOfIteratorHelper2(e),i;try{for(r.s();!(i=r.n()).done;){var a=_slicedToArray2(i.value,2),o=a[0],s=a[1];t.set(o,s)}}catch(t){r.e(t)}finally{r.f()}return t}_createClass2(l,[{key:"get",value:function t(e){return _get2(_getPrototypeOf2(l.prototype),"get",this).call(this,d(this,e))}},{key:"has",value:function t(e){return _get2(_getPrototypeOf2(l.prototype),"has",this).call(this,d(this,e))}},{key:"set",value:function t(e,n){return _get2(_getPrototypeOf2(l.prototype),"set",this).call(this,g(this,e),n)}},{key:"delete",value:function t(e){return _get2(_getPrototypeOf2(l.prototype),"delete",this).call(this,p(this,e))}}]);return l}(_wrapNativeSuper(Map));function d(t,e){var n=t._intern,r=t._key;var i=r(e);return n.has(i)?n.get(i):e}function g(t,e){var n=t._intern,r=t._key;var i=r(e);if(n.has(i))return n.get(i);n.set(i,e);return e}function p(t,e){var n=t._intern,r=t._key;var i=r(e);if(n.has(i)){e=n.get(e);n["delete"](i)}return e}function y(t){return t!==null&&_typeof2(t)==="object"?t.valueOf():t}function m(t){return t}function b(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++){n[r-1]=arguments[r]}return x(t,m,m,n)}function w(t,e){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++){r[i-2]=arguments[i]}return x(t,m,e,r)}function x(t,p,y,m){return function t(e,n){if(n>=m.length)return y(e);var r=new _;var i=m[n++];var a=-1;var o=_createForOfIteratorHelper2(e),s;try{for(o.s();!(s=o.n()).done;){var u=s.value;var l=i(u,++a,e);var c=r.get(l);if(c)c.push(u);else r.set(l,[u])}}catch(t){o.e(t)}finally{o.f()}var f=_createForOfIteratorHelper2(r),h;try{for(f.s();!(h=f.n()).done;){var d=_slicedToArray2(h.value,2),g=d[0],v=d[1];r.set(g,t(v,n))}}catch(t){f.e(t)}finally{f.f()}return p(r)}(t,0)}var k=Math.sqrt(50),C=Math.sqrt(10),E=Math.sqrt(2);function ft(t,e,n){var r,i=-1,a,o,s;e=+e,t=+t,n=+n;if(t===e&&n>0)return[t];if(r=e<t)a=t,t=e,e=a;if((s=A(t,e,n))===0||!isFinite(s))return[];if(s>0){var u=Math.round(t/s),l=Math.round(e/s);if(u*s<t)++u;if(l*s>e)--l;o=new Array(a=l-u+1);while(++i<a){o[i]=(u+i)*s}}else{s=-s;var c=Math.round(t*s),f=Math.round(e*s);if(c/s<t)++c;if(f/s>e)--f;o=new Array(a=f-c+1);while(++i<a){o[i]=(c+i)/s}}if(r)o.reverse();return o}function A(t,e,n){var r=(e-t)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),a=r/Math.pow(10,i);return i>=0?(a>=k?10:a>=C?5:a>=E?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(a>=k?10:a>=C?5:a>=E?2:1)}function M(t,e,n){var r=Math.abs(e-t)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),a=r/i;if(a>=k)i*=10;else if(a>=C)i*=5;else if(a>=E)i*=2;return e<t?-i:i}function Se(t,e){var n;if(e===undefined){var r=_createForOfIteratorHelper2(t),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;if(a!=null&&(n<a||n===undefined&&a>=a)){n=a}}}catch(t){r.e(t)}finally{r.f()}}else{var o=-1;var s=_createForOfIteratorHelper2(t),u;try{for(s.s();!(u=s.n()).done;){var l=u.value;if((l=e(l,++o,t))!=null&&(n<l||n===undefined&&l>=l)){n=l}}}catch(t){s.e(t)}finally{s.f()}}return n}function Ce(t,e){var n;if(e===undefined){var r=_createForOfIteratorHelper2(t),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;if(a!=null&&(n>a||n===undefined&&a>=a)){n=a}}}catch(t){r.e(t)}finally{r.f()}}else{var o=-1;var s=_createForOfIteratorHelper2(t),u;try{for(s.s();!(u=s.n()).done;){var l=u.value;if((l=e(l,++o,t))!=null&&(n>l||n===undefined&&l>=l)){n=l}}}catch(t){s.e(t)}finally{s.f()}}return n}function R(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:t.length-1;var i=arguments.length>4&&arguments[4]!==undefined?arguments[4]:v;while(r>n){if(r-n>600){var a=r-n+1;var o=e-n+1;var s=Math.log(a);var u=.5*Math.exp(2*s/3);var l=.5*Math.sqrt(s*u*(a-u)/a)*(o-a/2<0?-1:1);var c=Math.max(n,Math.floor(e-o*u/a+l));var f=Math.min(r,Math.floor(e+(a-o)*u/a+l));R(t,e,c,f,i)}var h=t[e];var d=n;var g=r;T(t,n,e);if(i(t[r],h)>0)T(t,n,r);while(d<g){T(t,d,g),++d,--g;while(i(t[d],h)<0){++d}while(i(t[g],h)>0){--g}}if(i(t[n],h)===0)T(t,n,g);else++g,T(t,g,r);if(g<=e)n=g+1;if(e<=g)r=g-1}return t}function T(t,e,n){var r=t[e];t[e]=t[n];t[n]=r}function Nt(t,e,n){t=Float64Array.from(f(t,n));if(!(r=t.length))return;if((e=+e)<=0||r<2)return Ce(t);if(e>=1)return Se(t);var r,i=(r-1)*e,a=Math.floor(i),o=Se(R(t,a).subarray(0,a+1)),s=Ce(t.subarray(a+1));return o+(s-o)*(i-a)}function O(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:c;if(!(r=t.length))return;if((e=+e)<=0||r<2)return+n(t[0],0,t);if(e>=1)return+n(t[r-1],r-1,t);var r,i=(r-1)*e,a=Math.floor(i),o=+n(t[a],a,t),s=+n(t[a+1],a+1,t);return o+(s-o)*(i-a)}function Ee(t,e){var n=0;var r=0;if(e===undefined){var i=_createForOfIteratorHelper2(t),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;if(o!=null&&(o=+o)>=o){++n,r+=o}}}catch(t){i.e(t)}finally{i.f()}}else{var s=-1;var u=_createForOfIteratorHelper2(t),l;try{for(u.s();!(l=u.n()).done;){var c=l.value;if((c=e(c,++s,t))!=null&&(c=+c)>=c){++n,r+=c}}}catch(t){u.e(t)}finally{u.f()}}if(n)return r/n}function B(n){var r,i,a;return regeneratorRuntime.wrap(function t(e){while(1){switch(e.prev=e.next){case 0:r=_createForOfIteratorHelper2(n);e.prev=1;r.s();case 3:if((i=r.n()).done){e.next=8;break}a=i.value;return e.delegateYield(a,"t0",6);case 6:e.next=3;break;case 8:e.next=13;break;case 10:e.prev=10;e.t1=e["catch"](1);r.e(e.t1);case 13:e.prev=13;r.f();return e.finish(13);case 16:case"end":return e.stop()}}},o,null,[[1,10,13,16]])}function Ae(t){return Array.from(B(t))}function Me(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;var r=-1,i=Math.max(0,Math.ceil((e-t)/n))|0,a=new Array(i);while(++r<i){a[r]=t+r*n}return a}function Re(t,e){var n=0;if(e===undefined){var r=_createForOfIteratorHelper2(t),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;if(a=+a){n+=a}}}catch(t){r.e(t)}finally{r.f()}}else{var o=-1;var s=_createForOfIteratorHelper2(t),u;try{for(s.s();!(u=s.n()).done;){var l=u.value;if(l=+e(l,++o,t)){n+=l}}}catch(t){s.e(t)}finally{s.f()}}return n}var D=new Date,N=new Date;function z(a,o,n,r){function s(t){return a(t=arguments.length===0?new Date:new Date(+t)),t}s.floor=function(t){return a(t=new Date(+t)),t};s.ceil=function(t){return a(t=new Date(t-1)),o(t,1),a(t),t};s.round=function(t){var e=s(t),n=s.ceil(t);return t-e<n-t?e:n};s.offset=function(t,e){return o(t=new Date(+t),e==null?1:Math.floor(e)),t};s.range=function(t,e,n){var r=[],i;t=s.ceil(t);n=n==null?1:Math.floor(n);if(!(t<e)||!(n>0))return r;do{r.push(i=new Date(+t)),o(t,n),a(t)}while(i<t&&t<e);return r};s.filter=function(n){return z(function(t){if(t>=t)while(a(t),!n(t)){t.setTime(t-1)}},function(t,e){if(t>=t){if(e<0)while(++e<=0){while(o(t,-1),!n(t)){}}else while(--e>=0){while(o(t,+1),!n(t)){}}}})};if(n){s.count=function(t,e){D.setTime(+t),N.setTime(+e);a(D),a(N);return Math.floor(n(D,N))};s.every=function(e){e=Math.floor(e);return!isFinite(e)||!(e>0)?null:!(e>1)?s:s.filter(r?function(t){return r(t)%e===0}:function(t){return s.count(0,t)%e===0})}}return s}var F=z(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});F.every=function(n){n=Math.floor(n);if(!isFinite(n)||!(n>0))return null;if(!(n>1))return F;return z(function(t){t.setTime(Math.floor(t/n)*n)},function(t,e){t.setTime(+t+e*n)},function(t,e){return(e-t)/n})};var j=F;var I=1e3;var L=6e4;var H=36e5;var U=864e5;var G=6048e5;var V=z(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+e*I)},function(t,e){return(e-t)/I},function(t){return t.getUTCSeconds()});var W=V;var q=z(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*I)},function(t,e){t.setTime(+t+e*L)},function(t,e){return(e-t)/L},function(t){return t.getMinutes()});var K=q;var Y=z(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*I-t.getMinutes()*L)},function(t,e){t.setTime(+t+e*H)},function(t,e){return(e-t)/H},function(t){return t.getHours()});var X=Y;var Z=z(function(t){return t.setHours(0,0,0,0)},function(t,e){return t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*L)/U},function(t){return t.getDate()-1});var J=Z;function Q(e){return z(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7);t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e*7)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*L)/G})}var tt=Q(0);var et=Q(1);Q(2);Q(3);var nt=Q(4);Q(5);Q(6);var rt=z(function(t){t.setDate(1);t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12},function(t){return t.getMonth()});var it=rt;var at=z(function(t){t.setMonth(0,1);t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});at.every=function(n){return!isFinite(n=Math.floor(n))||!(n>0)?null:z(function(t){t.setFullYear(Math.floor(t.getFullYear()/n)*n);t.setMonth(0,1);t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e*n)})};var ot=at;var st=z(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*L)},function(t,e){return(e-t)/L},function(t){return t.getUTCMinutes()});var ut=st;var lt=z(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*H)},function(t,e){return(e-t)/H},function(t){return t.getUTCHours()});var ct=lt;var ht=z(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/U},function(t){return t.getUTCDate()-1});var dt=ht;function gt(e){return z(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7);t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e*7)},function(t,e){return(e-t)/G})}var vt=gt(0);var pt=gt(1);gt(2);gt(3);var yt=gt(4);gt(5);gt(6);var mt=z(function(t){t.setUTCDate(1);t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12},function(t){return t.getUTCMonth()});var _t=mt;var bt=z(function(t){t.setUTCMonth(0,1);t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});bt.every=function(n){return!isFinite(n=Math.floor(n))||!(n>0)?null:z(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/n)*n);t.setUTCMonth(0,1);t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e*n)})};var wt=bt;function xt(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);e.setFullYear(t.y);return e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function kt(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));e.setUTCFullYear(t.y);return e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function St(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function Ct(t){var r=t.dateTime,i=t.date,a=t.time,e=t.periods,n=t.days,o=t.shortDays,s=t.months,u=t.shortMonths;var l=Pt(e),c=Bt(e),f=Pt(n),h=Bt(n),d=Pt(o),g=Bt(o),v=Pt(s),p=Bt(s),y=Pt(u),m=Bt(u);var _={a:B,A:D,b:N,B:z,c:null,d:ee,e:ee,f:oe,g:ye,G:_e,H:ne,I:re,j:ie,L:ae,m:se,M:ue,p:F,q:j,Q:Ze,s:$e,S:le,u:ce,U:fe,V:de,w:ge,W:ve,x:null,X:null,y:pe,Y:me,Z:be,"%":Xe};var b={a:I,A:L,b:H,B:U,c:null,d:we,e:we,f:De,g:We,G:Ke,H:Te,I:Oe,j:Pe,L:Be,m:Ne,M:ze,p:G,q:V,Q:Ze,s:$e,S:Fe,u:je,U:Ie,V:He,w:Ue,W:Ge,x:null,X:null,y:Ve,Y:qe,Z:Ye,"%":Xe};var w={a:E,A:A,b:M,B:R,c:T,d:Wt,e:Wt,f:$t,g:Ht,G:Lt,H:Kt,I:Kt,j:qt,L:Zt,m:Vt,M:Yt,p:C,q:Gt,Q:Qt,s:te,S:Xt,u:zt,U:Ft,V:jt,w:Dt,W:It,x:O,X:P,y:Ht,Y:Lt,Z:Ut,"%":Jt};_.x=x(i,_);_.X=x(a,_);_.c=x(r,_);b.x=x(i,b);b.X=x(a,b);b.c=x(r,b);function x(u,l){return function(t){var e=[],n=-1,r=0,i=u.length,a,o,s;if(!(t instanceof Date))t=new Date(+t);while(++n<i){if(u.charCodeAt(n)===37){e.push(u.slice(r,n));if((o=Et[a=u.charAt(++n)])!=null)a=u.charAt(++n);else o=a==="e"?" ":"0";if(s=l[a])a=s(t,o);e.push(a);r=n+1}}e.push(u.slice(r,n));return e.join("")}}function k(a,o){return function(t){var e=St(1900,undefined,1),n=S(e,a,t+="",0),r,i;if(n!=t.length)return null;if("Q"in e)return new Date(e.Q);if("s"in e)return new Date(e.s*1e3+("L"in e?e.L:0));if(o&&!("Z"in e))e.Z=0;if("p"in e)e.H=e.H%12+e.p*12;if(e.m===undefined)e.m="q"in e?e.q:0;if("V"in e){if(e.V<1||e.V>53)return null;if(!("w"in e))e.w=1;if("Z"in e){r=kt(St(e.y,0,1)),i=r.getUTCDay();r=i>4||i===0?pt.ceil(r):pt(r);r=dt.offset(r,(e.V-1)*7);e.y=r.getUTCFullYear();e.m=r.getUTCMonth();e.d=r.getUTCDate()+(e.w+6)%7}else{r=xt(St(e.y,0,1)),i=r.getDay();r=i>4||i===0?et.ceil(r):et(r);r=J.offset(r,(e.V-1)*7);e.y=r.getFullYear();e.m=r.getMonth();e.d=r.getDate()+(e.w+6)%7}}else if("W"in e||"U"in e){if(!("w"in e))e.w="u"in e?e.u%7:"W"in e?1:0;i="Z"in e?kt(St(e.y,0,1)).getUTCDay():xt(St(e.y,0,1)).getDay();e.m=0;e.d="W"in e?(e.w+6)%7+e.W*7-(i+5)%7:e.w+e.U*7-(i+6)%7}if("Z"in e){e.H+=e.Z/100|0;e.M+=e.Z%100;return kt(e)}return xt(e)}}function S(t,e,n,r){var i=0,a=e.length,o=n.length,s,u;while(i<a){if(r>=o)return-1;s=e.charCodeAt(i++);if(s===37){s=e.charAt(i++);u=w[s in Et?e.charAt(i++):s];if(!u||(r=u(t,n,r))<0)return-1}else if(s!=n.charCodeAt(r++)){return-1}}return r}function C(t,e,n){var r=l.exec(e.slice(n));return r?(t.p=c.get(r[0].toLowerCase()),n+r[0].length):-1}function E(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=g.get(r[0].toLowerCase()),n+r[0].length):-1}function A(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=h.get(r[0].toLowerCase()),n+r[0].length):-1}function M(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=m.get(r[0].toLowerCase()),n+r[0].length):-1}function R(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=p.get(r[0].toLowerCase()),n+r[0].length):-1}function T(t,e,n){return S(t,r,e,n)}function O(t,e,n){return S(t,i,e,n)}function P(t,e,n){return S(t,a,e,n)}function B(t){return o[t.getDay()]}function D(t){return n[t.getDay()]}function N(t){return u[t.getMonth()]}function z(t){return s[t.getMonth()]}function F(t){return e[+(t.getHours()>=12)]}function j(t){return 1+~~(t.getMonth()/3)}function I(t){return o[t.getUTCDay()]}function L(t){return n[t.getUTCDay()]}function H(t){return u[t.getUTCMonth()]}function U(t){return s[t.getUTCMonth()]}function G(t){return e[+(t.getUTCHours()>=12)]}function V(t){return 1+~~(t.getUTCMonth()/3)}return{format:function t(e){var n=x(e+="",_);n.toString=function(){return e};return n},parse:function t(e){var n=k(e+="",false);n.toString=function(){return e};return n},utcFormat:function t(e){var n=x(e+="",b);n.toString=function(){return e};return n},utcParse:function t(e){var n=k(e+="",true);n.toString=function(){return e};return n}}}var Et={"-":"",_:" ",0:"0"},At=/^\s*\d+/,Mt=/^%/,Rt=/[\\^$*+?|[\]().{}]/g;function Tt(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(e)+i:i)}function Ot(t){return t.replace(Rt,"\\$&")}function Pt(t){return new RegExp("^(?:"+t.map(Ot).join("|")+")","i")}function Bt(t){return new Map(t.map(function(t,e){return[t.toLowerCase(),e]}))}function Dt(t,e,n){var r=At.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function zt(t,e,n){var r=At.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function Ft(t,e,n){var r=At.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function jt(t,e,n){var r=At.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function It(t,e,n){var r=At.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function Lt(t,e,n){var r=At.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function Ht(t,e,n){var r=At.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Ut(t,e,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return r?(t.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Gt(t,e,n){var r=At.exec(e.slice(n,n+1));return r?(t.q=r[0]*3-3,n+r[0].length):-1}function Vt(t,e,n){var r=At.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Wt(t,e,n){var r=At.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function qt(t,e,n){var r=At.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Kt(t,e,n){var r=At.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Yt(t,e,n){var r=At.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function Xt(t,e,n){var r=At.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Zt(t,e,n){var r=At.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function $t(t,e,n){var r=At.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Jt(t,e,n){var r=Mt.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function Qt(t,e,n){var r=At.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function te(t,e,n){var r=At.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function ee(t,e){return Tt(t.getDate(),e,2)}function ne(t,e){return Tt(t.getHours(),e,2)}function re(t,e){return Tt(t.getHours()%12||12,e,2)}function ie(t,e){return Tt(1+J.count(ot(t),t),e,3)}function ae(t,e){return Tt(t.getMilliseconds(),e,3)}function oe(t,e){return ae(t,e)+"000"}function se(t,e){return Tt(t.getMonth()+1,e,2)}function ue(t,e){return Tt(t.getMinutes(),e,2)}function le(t,e){return Tt(t.getSeconds(),e,2)}function ce(t){var e=t.getDay();return e===0?7:e}function fe(t,e){return Tt(tt.count(ot(t)-1,t),e,2)}function he(t){var e=t.getDay();return e>=4||e===0?nt(t):nt.ceil(t)}function de(t,e){t=he(t);return Tt(nt.count(ot(t),t)+(ot(t).getDay()===4),e,2)}function ge(t){return t.getDay()}function ve(t,e){return Tt(et.count(ot(t)-1,t),e,2)}function pe(t,e){return Tt(t.getFullYear()%100,e,2)}function ye(t,e){t=he(t);return Tt(t.getFullYear()%100,e,2)}function me(t,e){return Tt(t.getFullYear()%1e4,e,4)}function _e(t,e){var n=t.getDay();t=n>=4||n===0?nt(t):nt.ceil(t);return Tt(t.getFullYear()%1e4,e,4)}function be(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Tt(e/60|0,"0",2)+Tt(e%60,"0",2)}function we(t,e){return Tt(t.getUTCDate(),e,2)}function Te(t,e){return Tt(t.getUTCHours(),e,2)}function Oe(t,e){return Tt(t.getUTCHours()%12||12,e,2)}function Pe(t,e){return Tt(1+dt.count(wt(t),t),e,3)}function Be(t,e){return Tt(t.getUTCMilliseconds(),e,3)}function De(t,e){return Be(t,e)+"000"}function Ne(t,e){return Tt(t.getUTCMonth()+1,e,2)}function ze(t,e){return Tt(t.getUTCMinutes(),e,2)}function Fe(t,e){return Tt(t.getUTCSeconds(),e,2)}function je(t){var e=t.getUTCDay();return e===0?7:e}function Ie(t,e){return Tt(vt.count(wt(t)-1,t),e,2)}function Le(t){var e=t.getUTCDay();return e>=4||e===0?yt(t):yt.ceil(t)}function He(t,e){t=Le(t);return Tt(yt.count(wt(t),t)+(wt(t).getUTCDay()===4),e,2)}function Ue(t){return t.getUTCDay()}function Ge(t,e){return Tt(pt.count(wt(t)-1,t),e,2)}function Ve(t,e){return Tt(t.getUTCFullYear()%100,e,2)}function We(t,e){t=Le(t);return Tt(t.getUTCFullYear()%100,e,2)}function qe(t,e){return Tt(t.getUTCFullYear()%1e4,e,4)}function Ke(t,e){var n=t.getUTCDay();t=n>=4||n===0?yt(t):yt.ceil(t);return Tt(t.getUTCFullYear()%1e4,e,4)}function Ye(){return"+0000"}function Xe(){return"%"}function Ze(t){return+t}function $e(t){return Math.floor(+t/1e3)}var Je;var Qe;var tn;en({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 en(t){Je=Ct(t);Qe=Je.format;tn=Je.utcFormat;return Je}function nn(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function rn(t,e){switch(arguments.length){case 0:break;case 1:{if(typeof t==="function")this.interpolator(t);else this.range(t);break}default:{this.domain(t);if(typeof e==="function")this.interpolator(e);else this.range(e);break}}return this}var an=Symbol("implicit");function on(){var a=new Map,o=[],r=[],i=an;function s(t){var e=t+"",n=a.get(e);if(!n){if(i!==an)return i;a.set(e,n=o.push(t))}return r[(n-1)%r.length]}s.domain=function(t){if(!arguments.length)return o.slice();o=[],a=new Map;var e=_createForOfIteratorHelper2(t),n;try{for(e.s();!(n=e.n()).done;){var r=n.value;var i=r+"";if(a.has(i))continue;a.set(i,o.push(r))}}catch(t){e.e(t)}finally{e.f()}return s};s.range=function(t){return arguments.length?(r=Array.from(t),s):r.slice()};s.unknown=function(t){return arguments.length?(i=t,s):i};s.copy=function(){return on(o,r).unknown(i)};nn.apply(s,arguments);return s}function sn(){var t=on().unknown(undefined),a=t.domain,o=t.range,s=0,u=1,l,c,f=false,h=0,d=0,g=.5;delete t.unknown;function r(){var t=a().length,e=u<s,n=e?u:s,r=e?s:u;l=(r-n)/Math.max(1,t-h+d*2);if(f)l=Math.floor(l);n+=(r-n-l*(t-h))*g;c=l*(1-h);if(f)n=Math.round(n),c=Math.round(c);var i=Me(t).map(function(t){return n+l*t});return o(e?i.reverse():i)}t.domain=function(t){return arguments.length?(a(t),r()):a()};t.range=function(t){var e,n;return arguments.length?(e=t,n=_slicedToArray2(e,2),s=n[0],u=n[1],e,s=+s,u=+u,r()):[s,u]};t.rangeRound=function(t){var e,n;return e=t,n=_slicedToArray2(e,2),s=n[0],u=n[1],e,s=+s,u=+u,f=true,r()};t.bandwidth=function(){return c};t.step=function(){return l};t.round=function(t){return arguments.length?(f=!!t,r()):f};t.padding=function(t){return arguments.length?(h=Math.min(1,d=+t),r()):h};t.paddingInner=function(t){return arguments.length?(h=Math.min(1,t),r()):h};t.paddingOuter=function(t){return arguments.length?(d=+t,r()):d};t.align=function(t){return arguments.length?(g=Math.max(0,Math.min(1,t)),r()):g};t.copy=function(){return sn(a(),[s,u]).round(f).paddingInner(h).paddingOuter(d).align(g)};return nn.apply(r(),arguments)}function un(t){var e=t.copy;t.padding=t.paddingOuter;delete t.paddingInner;delete t.paddingOuter;t.copy=function(){return un(e())};return t}function ln(){return un(sn.apply(null,arguments).paddingInner(1))}function cn(t,e,n){t.prototype=e.prototype=n;n.constructor=t}function fn(t,e){var n=Object.create(t.prototype);for(var r in e){n[r]=e[r]}return n}function hn(){}var dn=.7;var gn=1/dn;var vn="\\s*([+-]?\\d+)\\s*",pn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",yn="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",mn=/^#([0-9a-f]{3,8})$/,_n=new RegExp("^rgb\\("+[vn,vn,vn]+"\\)$"),bn=new RegExp("^rgb\\("+[yn,yn,yn]+"\\)$"),wn=new RegExp("^rgba\\("+[vn,vn,vn,pn]+"\\)$"),xn=new RegExp("^rgba\\("+[yn,yn,yn,pn]+"\\)$"),kn=new RegExp("^hsl\\("+[pn,yn,yn]+"\\)$"),Sn=new RegExp("^hsla\\("+[pn,yn,yn,pn]+"\\)$");var Cn={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};cn(hn,Rn,{copy:function t(e){return Object.assign(new this.constructor,this,e)},displayable:function t(){return this.rgb().displayable()},hex:En,formatHex:En,formatHsl:An,formatRgb:Mn,toString:Mn});function En(){return this.rgb().formatHex()}function An(){return In(this).formatHsl()}function Mn(){return this.rgb().formatRgb()}function Rn(t){var e,n;t=(t+"").trim().toLowerCase();return(e=mn.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?Tn(e):n===3?new Dn(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?On(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?On(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=_n.exec(t))?new Dn(e[1],e[2],e[3],1):(e=bn.exec(t))?new Dn(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=wn.exec(t))?On(e[1],e[2],e[3],e[4]):(e=xn.exec(t))?On(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=kn.exec(t))?jn(e[1],e[2]/100,e[3]/100,1):(e=Sn.exec(t))?jn(e[1],e[2]/100,e[3]/100,e[4]):Cn.hasOwnProperty(t)?Tn(Cn[t]):t==="transparent"?new Dn(NaN,NaN,NaN,0):null}function Tn(t){return new Dn(t>>16&255,t>>8&255,t&255,1)}function On(t,e,n,r){if(r<=0)t=e=n=NaN;return new Dn(t,e,n,r)}function Pn(t){if(!(t instanceof hn))t=Rn(t);if(!t)return new Dn;t=t.rgb();return new Dn(t.r,t.g,t.b,t.opacity)}function Bn(t,e,n,r){return arguments.length===1?Pn(t):new Dn(t,e,n,r==null?1:r)}function Dn(t,e,n,r){this.r=+t;this.g=+e;this.b=+n;this.opacity=+r}cn(Dn,Bn,fn(hn,{brighter:function t(e){e=e==null?gn:Math.pow(gn,e);return new Dn(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function t(e){e=e==null?dn:Math.pow(dn,e);return new Dn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function t(){return this},displayable:function t(){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:Nn,formatHex:Nn,formatRgb:zn,toString:zn}));function Nn(){return"#"+Fn(this.r)+Fn(this.g)+Fn(this.b)}function zn(){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 Fn(t){t=Math.max(0,Math.min(255,Math.round(t)||0));return(t<16?"0":"")+t.toString(16)}function jn(t,e,n,r){if(r<=0)t=e=n=NaN;else if(n<=0||n>=1)t=e=NaN;else if(e<=0)t=NaN;return new Hn(t,e,n,r)}function In(t){if(t instanceof Hn)return new Hn(t.h,t.s,t.l,t.opacity);if(!(t instanceof hn))t=Rn(t);if(!t)return new Hn;if(t instanceof Hn)return t;t=t.rgb();var e=t.r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),a=Math.max(e,n,r),o=NaN,s=a-i,u=(a+i)/2;if(s){if(e===a)o=(n-r)/s+(n<r)*6;else if(n===a)o=(r-e)/s+2;else o=(e-n)/s+4;s/=u<.5?a+i:2-a-i;o*=60}else{s=u>0&&u<1?0:o}return new Hn(o,s,u,t.opacity)}function Ln(t,e,n,r){return arguments.length===1?In(t):new Hn(t,e,n,r==null?1:r)}function Hn(t,e,n,r){this.h=+t;this.s=+e;this.l=+n;this.opacity=+r}cn(Hn,Ln,fn(hn,{brighter:function t(e){e=e==null?gn:Math.pow(gn,e);return new Hn(this.h,this.s,this.l*e,this.opacity)},darker:function t(e){e=e==null?dn:Math.pow(dn,e);return new Hn(this.h,this.s,this.l*e,this.opacity)},rgb:function t(){var e=this.h%360+(this.h<0)*360,n=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,i=r+(r<.5?r:1-r)*n,a=2*r-i;return new Dn(Un(e>=240?e-240:e+120,a,i),Un(e,a,i),Un(e<120?e+240:e-120,a,i),this.opacity)},displayable:function t(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function t(){var e=this.opacity;e=isNaN(e)?1:Math.max(0,Math.min(1,e));return(e===1?"hsl(":"hsla(")+(this.h||0)+", "+(this.s||0)*100+"%, "+(this.l||0)*100+"%"+(e===1?")":", "+e+")")}}));function Un(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}var Gn=function t(e){return function(){return e}};function Vn(e,n){return function(t){return e+t*n}}function Wn(e,n,r){return e=Math.pow(e,r),n=Math.pow(n,r)-e,r=1/r,function(t){return Math.pow(e+t*n,r)}}function qn(n){return(n=+n)===1?Kn:function(t,e){return e-t?Wn(t,e,n):Gn(isNaN(t)?e:t)}}function Kn(t,e){var n=e-t;return n?Vn(t,n):Gn(isNaN(t)?e:t)}var Yn=function t(e){var o=qn(e);function n(e,t){var n=o((e=Bn(e)).r,(t=Bn(t)).r),r=o(e.g,t.g),i=o(e.b,t.b),a=Kn(e.opacity,t.opacity);return function(t){e.r=n(t);e.g=r(t);e.b=i(t);e.opacity=a(t);return e+""}}n.gamma=t;return n}(1);function Xn(e,n){if(!n)n=[];var r=e?Math.min(n.length,e.length):0,i=n.slice(),a;return function(t){for(a=0;a<r;++a){i[a]=e[a]*(1-t)+n[a]*t}return i}}function Zn(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function $n(t,e){var n=e?e.length:0,r=t?Math.min(n,t.length):0,i=new Array(r),a=new Array(n),o;for(o=0;o<r;++o){i[o]=or(t[o],e[o])}for(;o<n;++o){a[o]=e[o]}return function(t){for(o=0;o<r;++o){a[o]=i[o](t)}return a}}function Jn(e,n){var r=new Date;return e=+e,n=+n,function(t){return r.setTime(e*(1-t)+n*t),r}}function Qn(e,n){return e=+e,n=+n,function(t){return e*(1-t)+n*t}}function tr(t,e){var n={},r={},i;if(t===null||_typeof2(t)!=="object")t={};if(e===null||_typeof2(e)!=="object")e={};for(i in e){if(i in t){n[i]=or(t[i],e[i])}else{r[i]=e[i]}}return function(t){for(i in n){r[i]=n[i](t)}return r}}var er=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,nr=new RegExp(er.source,"g");function rr(t){return function(){return t}}function ir(e){return function(t){return e(t)+""}}function ar(t,r){var e=er.lastIndex=nr.lastIndex=0,n,i,a,o=-1,s=[],u=[];t=t+"",r=r+"";while((n=er.exec(t))&&(i=nr.exec(r))){if((a=i.index)>e){a=r.slice(e,a);if(s[o])s[o]+=a;else s[++o]=a}if((n=n[0])===(i=i[0])){if(s[o])s[o]+=i;else s[++o]=i}else{s[++o]=null;u.push({i:o,x:Qn(n,i)})}e=nr.lastIndex}if(e<r.length){a=r.slice(e);if(s[o])s[o]+=a;else s[++o]=a}return s.length<2?u[0]?ir(u[0].x):rr(r):(r=u.length,function(t){for(var e=0,n;e<r;++e){s[(n=u[e]).i]=n.x(t)}return s.join("")})}function or(t,e){var n=_typeof2(e),r;return e==null||n==="boolean"?Gn(e):(n==="number"?Qn:n==="string"?(r=Rn(e))?(e=r,Yn):ar:e instanceof Rn?Yn:e instanceof Date?Jn:Zn(e)?Xn:Array.isArray(e)?$n:typeof e.valueOf!=="function"&&typeof e.toString!=="function"||isNaN(e)?tr:Qn)(t,e)}function sr(e,n){return e=+e,n=+n,function(t){return Math.round(e*(1-t)+n*t)}}var ur=180/Math.PI;var lr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function cr(t,e,n,r,i,a){var o,s,u;if(o=Math.sqrt(t*t+e*e))t/=o,e/=o;if(u=t*n+e*r)n-=t*u,r-=e*u;if(s=Math.sqrt(n*n+r*r))n/=s,r/=s,u/=s;if(t*r<e*n)t=-t,e=-e,u=-u,o=-o;return{translateX:i,translateY:a,rotate:Math.atan2(e,t)*ur,skewX:Math.atan(u)*ur,scaleX:o,scaleY:s}}var fr;function hr(t){var e=new(typeof DOMMatrix==="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?lr:cr(e.a,e.b,e.c,e.d,e.e,e.f)}function dr(t){if(t==null)return lr;if(!fr)fr=document.createElementNS("http://www.w3.org/2000/svg","g");fr.setAttribute("transform",t);if(!(t=fr.transform.baseVal.consolidate()))return lr;t=t.matrix;return cr(t.a,t.b,t.c,t.d,t.e,t.f)}function gr(n,s,u,i){function l(t){return t.length?t.pop()+" ":""}function r(t,e,n,r,i,a){if(t!==n||e!==r){var o=i.push("translate(",null,s,null,u);a.push({i:o-4,x:Qn(t,n)},{i:o-2,x:Qn(e,r)})}else if(n||r){i.push("translate("+n+s+r+u)}}function o(t,e,n,r){if(t!==e){if(t-e>180)e+=360;else if(e-t>180)t+=360;r.push({i:n.push(l(n)+"rotate(",null,i)-2,x:Qn(t,e)})}else if(e){n.push(l(n)+"rotate("+e+i)}}function c(t,e,n,r){if(t!==e){r.push({i:n.push(l(n)+"skewX(",null,i)-2,x:Qn(t,e)})}else if(e){n.push(l(n)+"skewX("+e+i)}}function f(t,e,n,r,i,a){if(t!==n||e!==r){var o=i.push(l(i)+"scale(",null,",",null,")");a.push({i:o-4,x:Qn(t,n)},{i:o-2,x:Qn(e,r)})}else if(n!==1||r!==1){i.push(l(i)+"scale("+n+","+r+")")}}return function(t,e){var i=[],a=[];t=n(t),e=n(e);r(t.translateX,t.translateY,e.translateX,e.translateY,i,a);o(t.rotate,e.rotate,i,a);c(t.skewX,e.skewX,i,a);f(t.scaleX,t.scaleY,e.scaleX,e.scaleY,i,a);t=e=null;return function(t){var e=-1,n=a.length,r;while(++e<n){i[(r=a[e]).i]=r.x(t)}return i.join("")}}}var vr=gr(hr,"px, ","px)","deg)");var pr=gr(dr,", ",")",")");var yr=1e-12;function mr(t){return((t=Math.exp(t))+1/t)/2}function _r(t){return((t=Math.exp(t))-1/t)/2}function br(t){return((t=Math.exp(2*t))-1)/(t+1)}var wr=function i(m,_,b){function t(t,e){var a=t[0],o=t[1],s=t[2],n=e[0],r=e[1],i=e[2],u=n-a,l=r-o,c=u*u+l*l,f,h;if(c<yr){h=Math.log(i/s)/m;f=function t(e){return[a+e*u,o+e*l,s*Math.exp(m*e*h)]}}else{var d=Math.sqrt(c),g=(i*i-s*s+b*c)/(2*s*_*d),v=(i*i-s*s-b*c)/(2*i*_*d),p=Math.log(Math.sqrt(g*g+1)-g),y=Math.log(Math.sqrt(v*v+1)-v);h=(y-p)/m;f=function t(e){var n=e*h,r=mr(p),i=s/(_*d)*(r*br(m*n+p)-_r(p));return[a+i*u,o+i*l,s*r/mr(m*n+p)]}}f.duration=h*1e3*m/Math.SQRT2;return f}t.rho=function(t){var e=Math.max(.001,+t),n=e*e,r=n*n;return i(e,n,r)};return t}(Math.SQRT2,2,4);function xr(t,e){if(e===undefined)e=t,t=or;var n=0,r=e.length-1,i=e[0],a=new Array(r<0?0:r);while(n<r){a[n]=t(i,i=e[++n])}return function(t){var e=Math.max(0,Math.min(r-1,Math.floor(t*=r)));return a[e](t-e)}}function kr(t){return function(){return t}}function Sr(t){return+t}var Cr=[0,1];function Er(t){return t}function Ar(e,n){return(n-=e=+e)?function(t){return(t-e)/n}:kr(isNaN(n)?NaN:.5)}function Mr(e,n){var t;if(e>n)t=e,e=n,n=t;return function(t){return Math.max(e,Math.min(n,t))}}function Rr(t,e,n){var r=t[0],i=t[1],a=e[0],o=e[1];if(i<r)r=Ar(i,r),a=n(o,a);else r=Ar(r,i),a=n(a,o);return function(t){return a(r(t))}}function Tr(n,t,e){var r=Math.min(n.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;if(n[r]<n[0]){n=n.slice().reverse();t=t.slice().reverse()}while(++o<r){i[o]=Ar(n[o],n[o+1]);a[o]=e(t[o],t[o+1])}return function(t){var e=h(n,t,1,r)-1;return a[e](i[e](t))}}function Or(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Pr(){var e=Cr,n=Cr,r=or,i,a,o,s=Er,u,l,c;function f(){var t=Math.min(e.length,n.length);if(s!==Er)s=Mr(e[0],e[t-1]);u=t>2?Tr:Rr;l=c=null;return h}function h(t){return t==null||isNaN(t=+t)?o:(l||(l=u(e.map(i),n,r)))(i(s(t)))}h.invert=function(t){return s(a((c||(c=u(n,e.map(i),Qn)))(t)))};h.domain=function(t){return arguments.length?(e=Array.from(t,Sr),f()):e.slice()};h.range=function(t){return arguments.length?(n=Array.from(t),f()):n.slice()};h.rangeRound=function(t){return n=Array.from(t),r=sr,f()};h.clamp=function(t){return arguments.length?(s=t?true:Er,f()):s!==Er};h.interpolate=function(t){return arguments.length?(r=t,f()):r};h.unknown=function(t){return arguments.length?(o=t,h):o};return function(t,e){i=t,a=e;return f()}}function Br(){return Pr()(Er,Er)}function Dr(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Nr(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,r=t.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+t.slice(n+1)]}function zr(t){return t=Nr(Math.abs(t)),t?t[1]:NaN}function Fr(s,u){return function(t,e){var n=t.length,r=[],i=0,a=s[0],o=0;while(n>0&&a>0){if(o+a+1>e)a=Math.max(1,e-o);r.push(t.substring(n-=a,n+a));if((o+=a+1)>e)break;a=s[i=(i+1)%s.length]}return r.reverse().join(u)}}function jr(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var Ir=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Lr(t){if(!(e=Ir.exec(t)))throw new Error("invalid format: "+t);var e;return new Hr({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}Lr.prototype=Hr.prototype;function Hr(t){this.fill=t.fill===undefined?" ":t.fill+"";this.align=t.align===undefined?">":t.align+"";this.sign=t.sign===undefined?"-":t.sign+"";this.symbol=t.symbol===undefined?"":t.symbol+"";this.zero=!!t.zero;this.width=t.width===undefined?undefined:+t.width;this.comma=!!t.comma;this.precision=t.precision===undefined?undefined:+t.precision;this.trim=!!t.trim;this.type=t.type===undefined?"":t.type+""}Hr.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 Ur(t){t:for(var e=t.length,n=1,r=-1,i;n<e;++n){switch(t[n]){case".":r=i=n;break;case"0":if(r===0)r=n;i=n;break;default:if(!+t[n])break t;if(r>0)r=0;break}}return r>0?t.slice(0,r)+t.slice(i+1):t}var Gr;function Vr(t,e){var n=Nr(t,e);if(!n)return t+"";var r=n[0],i=n[1],a=i-(Gr=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Nr(t,Math.max(0,e+a-1))[0]}function Wr(t,e){var n=Nr(t,e);if(!n)return t+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}var qr={"%":function t(e,n){return(e*100).toFixed(n)},b:function t(e){return Math.round(e).toString(2)},c:function t(e){return e+""},d:Dr,e:function t(e,n){return e.toExponential(n)},f:function t(e,n){return e.toFixed(n)},g:function t(e,n){return e.toPrecision(n)},o:function t(e){return Math.round(e).toString(8)},p:function t(e,n){return Wr(e*100,n)},r:Wr,s:Vr,X:function t(e){return Math.round(e).toString(16).toUpperCase()},x:function t(e){return Math.round(e).toString(16)}};function Kr(t){return t}var Yr=Array.prototype.map,Xr=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Zr(t){var x=t.grouping===undefined||t.thousands===undefined?Kr:Fr(Yr.call(t.grouping,Number),t.thousands+""),r=t.currency===undefined?"":t.currency[0]+"",i=t.currency===undefined?"":t.currency[1]+"",k=t.decimal===undefined?".":t.decimal+"",S=t.numerals===undefined?Kr:jr(Yr.call(t.numerals,String)),a=t.percent===undefined?"%":t.percent+"",C=t.minus===undefined?"":t.minus+"",E=t.nan===undefined?"NaN":t.nan+"";function o(t){t=Lr(t);var l=t.fill,c=t.align,f=t.sign,e=t.symbol,h=t.zero,d=t.width,g=t.comma,v=t.precision,p=t.trim,y=t.type;if(y==="n")g=true,y="g";else if(!qr[y])v===undefined&&(v=12),p=true,y="g";if(h||l==="0"&&c==="=")h=true,l="0",c="=";var m=e==="$"?r:e==="#"&&/[boxX]/.test(y)?"0"+y.toLowerCase():"",_=e==="$"?i:/[%p]/.test(y)?a:"";var b=qr[y],w=/[defgprs%]/.test(y);v=v===undefined?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v));function n(t){var e=m,n=_,r,i,a;if(y==="c"){n=b(t)+n;t=""}else{t=+t;var o=t<0||1/t<0;t=isNaN(t)?E:b(Math.abs(t),v);if(p)t=Ur(t);if(o&&+t===0&&f!=="+")o=false;e=(o?f==="("?f:C:f==="-"||f==="("?"":f)+e;n=(y==="s"?Xr[8+Gr/3]:"")+n+(o&&f==="("?")":"");if(w){r=-1,i=t.length;while(++r<i){if(a=t.charCodeAt(r),48>a||a>57){n=(a===46?k+t.slice(r+1):t.slice(r))+n;t=t.slice(0,r);break}}}}if(g&&!h)t=x(t,Infinity);var s=e.length+t.length+n.length,u=s<d?new Array(d-s+1).join(l):"";if(g&&h)t=x(u+t,u.length?d-n.length:Infinity),u="";switch(c){case"<":t=e+t+n+u;break;case"=":t=e+u+t+n;break;case"^":t=u.slice(0,s=u.length>>1)+e+t+n+u.slice(s);break;default:t=u+e+t+n;break}return S(t)}n.toString=function(){return t+""};return n}function e(t,e){var n=o((t=Lr(t),t.type="f",t)),r=Math.max(-8,Math.min(8,Math.floor(zr(e)/3)))*3,i=Math.pow(10,-r),a=Xr[8+r/3];return function(t){return n(i*t)+a}}return{format:o,formatPrefix:e}}var $r;var Jr;var Qr;ti({thousands:",",grouping:[3],currency:["$",""]});function ti(t){$r=Zr(t);Jr=$r.format;Qr=$r.formatPrefix;return $r}function ei(t){return Math.max(0,-zr(Math.abs(t)))}function ni(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(zr(e)/3)))*3-zr(Math.abs(t)))}function ri(t,e){t=Math.abs(t),e=Math.abs(e)-t;return Math.max(0,zr(e)-zr(t))+1}function ii(t,e,n,r){var i=M(t,e,n),a;r=Lr(r==null?",f":r);switch(r.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));if(r.precision==null&&!isNaN(a=ni(i,o)))r.precision=a;return Qr(r,o)}case"":case"e":case"g":case"p":case"r":{if(r.precision==null&&!isNaN(a=ri(i,Math.max(Math.abs(t),Math.abs(e)))))r.precision=a-(r.type==="e");break}case"f":case"%":{if(r.precision==null&&!isNaN(a=ei(i)))r.precision=a-(r.type==="%")*2;break}}return Jr(r)}function ai(l){var c=l.domain;l.ticks=function(t){var e=c();return ft(e[0],e[e.length-1],t==null?10:t)};l.tickFormat=function(t,e){var n=c();return ii(n[0],n[n.length-1],t==null?10:t,e)};l.nice=function(t){if(t==null)t=10;var e=c();var n=0;var r=e.length-1;var i=e[n];var a=e[r];var o;var s;var u=10;if(a<i){s=i,i=a,a=s;s=n,n=r,r=s}while(u-- >0){s=A(i,a,t);if(s===o){e[n]=i;e[r]=a;return c(e)}else if(s>0){i=Math.floor(i/s)*s;a=Math.ceil(a/s)*s}else if(s<0){i=Math.ceil(i*s)/s;a=Math.floor(a*s)/s}else{break}o=s}return l};return l}function oi(){var t=Br();t.copy=function(){return Or(t,oi())};nn.apply(t,arguments);return ai(t)}function si(e){var n;function r(t){return t==null||isNaN(t=+t)?n:t}r.invert=r;r.domain=r.range=function(t){return arguments.length?(e=Array.from(t,Sr),r):e.slice()};r.unknown=function(t){return arguments.length?(n=t,r):n};r.copy=function(){return si(e).unknown(n)};e=arguments.length?Array.from(e,Sr):[0,1];return ai(r)}function ui(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],a=t[r],o;if(a<i){o=n,n=r,r=o;o=i,i=a,a=o}t[n]=e.floor(i);t[r]=e.ceil(a);return t}function li(t){return Math.log(t)}function ci(t){return Math.exp(t)}function fi(t){return-Math.log(-t)}function hi(t){return-Math.exp(-t)}function di(t){return isFinite(t)?+("1e"+t):t<0?0:t}function gi(e){return e===10?di:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}function vi(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}function pi(e){return function(t){return-e(-t)}}function yi(t){var e=t(li,ci),h=e.domain,d=10,g,v;function n(){g=vi(d),v=gi(d);if(h()[0]<0){g=pi(g),v=pi(v);t(fi,hi)}else{t(li,ci)}return e}e.base=function(t){return arguments.length?(d=+t,n()):d};e.domain=function(t){return arguments.length?(h(t),n()):h()};e.ticks=function(t){var e=h(),n=e[0],r=e[e.length-1],i;if(i=r<n)a=n,n=r,r=a;var a=g(n),o=g(r),s,u,l,c=t==null?10:+t,f=[];if(!(d%1)&&o-a<c){a=Math.floor(a),o=Math.ceil(o);if(n>0)for(;a<=o;++a){for(u=1,s=v(a);u<d;++u){l=s*u;if(l<n)continue;if(l>r)break;f.push(l)}}else for(;a<=o;++a){for(u=d-1,s=v(a);u>=1;--u){l=s*u;if(l<n)continue;if(l>r)break;f.push(l)}}if(f.length*2<c)f=ft(n,r,c)}else{f=ft(a,o,Math.min(o-a,c)).map(v)}return i?f.reverse():f};e.tickFormat=function(t,n){if(n==null)n=d===10?".0e":",";if(typeof n!=="function")n=Jr(n);if(t===Infinity)return n;if(t==null)t=10;var r=Math.max(1,d*t/e.ticks().length);return function(t){var e=t/v(Math.round(g(t)));if(e*d<d-.5)e*=d;return e<=r?n(t):""}};e.nice=function(){return h(ui(h(),{floor:function t(e){return v(Math.floor(g(e)))},ceil:function t(e){return v(Math.ceil(g(e)))}}))};return e}function mi(){var t=yi(Pr()).domain([1,10]);t.copy=function(){return Or(t,mi()).base(t.base())};nn.apply(t,arguments);return t}function _i(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function bi(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function wi(e){var n=1,t=e(_i(n),bi(n));t.constant=function(t){return arguments.length?e(_i(n=+t),bi(n)):n};return ai(t)}function xi(){var t=wi(Pr());t.copy=function(){return Or(t,xi()).constant(t.constant())};return nn.apply(t,arguments)}function ki(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Si(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Ci(t){return t<0?-t*t:t*t}function Ei(t){var e=t(Er,Er),n=1;function r(){return n===1?t(Er,Er):n===.5?t(Si,Ci):t(ki(n),ki(1/n))}e.exponent=function(t){return arguments.length?(n=+t,r()):n};return ai(e)}function Ai(){var t=Ei(Pr());t.copy=function(){return Or(t,Ai()).exponent(t.exponent())};nn.apply(t,arguments);return t}function Mi(){return Ai.apply(null,arguments).exponent(.5)}function Ri(t){return Math.sign(t)*t*t}function Ti(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function Oi(){var n=Br(),e=[0,1],r=false,i;function a(t){var e=Ti(n(t));return isNaN(e)?i:r?Math.round(e):e}a.invert=function(t){return n.invert(Ri(t))};a.domain=function(t){return arguments.length?(n.domain(t),a):n.domain()};a.range=function(t){return arguments.length?(n.range((e=Array.from(t,Sr)).map(Ri)),a):e.slice()};a.rangeRound=function(t){return a.range(t).round(true)};a.round=function(t){return arguments.length?(r=!!t,a):r};a.clamp=function(t){return arguments.length?(n.clamp(t),a):n.clamp()};a.unknown=function(t){return arguments.length?(i=t,a):i};a.copy=function(){return Oi(n.domain(),e).round(r).clamp(n.clamp()).unknown(i)};nn.apply(a,arguments);return ai(a)}function Pi(){var i=[],n=[],r=[],e;function a(){var t=0,e=Math.max(1,n.length);r=new Array(e-1);while(++t<e){r[t-1]=O(i,t/e)}return o}function o(t){return t==null||isNaN(t=+t)?e:n[h(r,t)]}o.invertExtent=function(t){var e=n.indexOf(t);return e<0?[NaN,NaN]:[e>0?r[e-1]:i[0],e<r.length?r[e]:i[i.length-1]]};o.domain=function(t){if(!arguments.length)return i.slice();i=[];var e=_createForOfIteratorHelper2(t),n;try{for(e.s();!(n=e.n()).done;){var r=n.value;if(r!=null&&!isNaN(r=+r))i.push(r)}}catch(t){e.e(t)}finally{e.f()}i.sort(v);return a()};o.range=function(t){return arguments.length?(n=Array.from(t),a()):n.slice()};o.unknown=function(t){return arguments.length?(e=t,o):e};o.quantiles=function(){return r.slice()};o.copy=function(){return Pi().domain(i).range(n).unknown(e)};return nn.apply(o,arguments)}function Bi(){var r=0,i=1,n=1,a=[.5],o=[0,1],e;function s(t){return t!=null&&t<=t?o[h(a,t,0,n)]:e}function u(){var t=-1;a=new Array(n);while(++t<n){a[t]=((t+1)*i-(t-n)*r)/(n+1)}return s}s.domain=function(t){var e,n;return arguments.length?(e=t,n=_slicedToArray2(e,2),r=n[0],i=n[1],e,r=+r,i=+i,u()):[r,i]};s.range=function(t){return arguments.length?(n=(o=Array.from(t)).length-1,u()):o.slice()};s.invertExtent=function(t){var e=o.indexOf(t);return e<0?[NaN,NaN]:e<1?[r,a[0]]:e>=n?[a[n-1],i]:[a[e-1],a[e]]};s.unknown=function(t){return arguments.length?(e=t,s):s};s.thresholds=function(){return a.slice()};s.copy=function(){return Bi().domain([r,i]).range(o).unknown(e)};return nn.apply(ai(s),arguments)}function Di(){var n=[.5],r=[0,1],e,i=1;function a(t){return t!=null&&t<=t?r[h(n,t,0,i)]:e}a.domain=function(t){return arguments.length?(n=Array.from(t),i=Math.min(n.length,r.length-1),a):n.slice()};a.range=function(t){return arguments.length?(r=Array.from(t),i=Math.min(n.length,r.length-1),a):r.slice()};a.invertExtent=function(t){var e=r.indexOf(t);return[n[e-1],n[e]]};a.unknown=function(t){return arguments.length?(e=t,a):e};a.copy=function(){return Di().domain(n).range(r).unknown(e)};return nn.apply(a,arguments)}var Ni=new Date,zi=new Date;function Fi(a,o,n,r){function s(t){return a(t=arguments.length===0?new Date:new Date(+t)),t}s.floor=function(t){return a(t=new Date(+t)),t};s.ceil=function(t){return a(t=new Date(t-1)),o(t,1),a(t),t};s.round=function(t){var e=s(t),n=s.ceil(t);return t-e<n-t?e:n};s.offset=function(t,e){return o(t=new Date(+t),e==null?1:Math.floor(e)),t};s.range=function(t,e,n){var r=[],i;t=s.ceil(t);n=n==null?1:Math.floor(n);if(!(t<e)||!(n>0))return r;do{r.push(i=new Date(+t)),o(t,n),a(t)}while(i<t&&t<e);return r};s.filter=function(n){return Fi(function(t){if(t>=t)while(a(t),!n(t)){t.setTime(t-1)}},function(t,e){if(t>=t){if(e<0)while(++e<=0){while(o(t,-1),!n(t)){}}else while(--e>=0){while(o(t,+1),!n(t)){}}}})};if(n){s.count=function(t,e){Ni.setTime(+t),zi.setTime(+e);a(Ni),a(zi);return Math.floor(n(Ni,zi))};s.every=function(e){e=Math.floor(e);return!isFinite(e)||!(e>0)?null:!(e>1)?s:s.filter(r?function(t){return r(t)%e===0}:function(t){return s.count(0,t)%e===0})}}return s}var ji=Fi(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});ji.every=function(n){n=Math.floor(n);if(!isFinite(n)||!(n>0))return null;if(!(n>1))return ji;return Fi(function(t){t.setTime(Math.floor(t/n)*n)},function(t,e){t.setTime(+t+e*n)},function(t,e){return(e-t)/n})};var Ii=ji;var Li=1e3;var Hi=Li*60;var Ui=Hi*60;var Gi=Ui*24;var Vi=Gi*7;var Wi=Gi*30;var qi=Gi*365;var Ki=Fi(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+e*Li)},function(t,e){return(e-t)/Li},function(t){return t.getUTCSeconds()});var Yi=Ki;var Xi=Fi(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Li)},function(t,e){t.setTime(+t+e*Hi)},function(t,e){return(e-t)/Hi},function(t){return t.getMinutes()});var Zi=Xi;var $i=Fi(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*Li-t.getMinutes()*Hi)},function(t,e){t.setTime(+t+e*Ui)},function(t,e){return(e-t)/Ui},function(t){return t.getHours()});var Ji=$i;var Qi=Fi(function(t){return t.setHours(0,0,0,0)},function(t,e){return t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Hi)/Gi},function(t){return t.getDate()-1});var ta=Qi;function ea(e){return Fi(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7);t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e*7)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Hi)/Vi})}var na=ea(0);ea(1);ea(2);ea(3);ea(4);ea(5);ea(6);var ra=Fi(function(t){t.setDate(1);t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12},function(t){return t.getMonth()});var ia=ra;var aa=Fi(function(t){t.setMonth(0,1);t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});aa.every=function(n){return!isFinite(n=Math.floor(n))||!(n>0)?null:Fi(function(t){t.setFullYear(Math.floor(t.getFullYear()/n)*n);t.setMonth(0,1);t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e*n)})};var oa=aa;var sa=Fi(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*Hi)},function(t,e){return(e-t)/Hi},function(t){return t.getUTCMinutes()});var ua=sa;var la=Fi(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*Ui)},function(t,e){return(e-t)/Ui},function(t){return t.getUTCHours()});var ca=la;var fa=Fi(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/Gi},function(t){return t.getUTCDate()-1});var ha=fa;function da(e){return Fi(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7);t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e*7)},function(t,e){return(e-t)/Vi})}var ga=da(0);da(1);da(2);da(3);da(4);da(5);da(6);var va=Fi(function(t){t.setUTCDate(1);t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12},function(t){return t.getUTCMonth()});var pa=va;var ya=Fi(function(t){t.setUTCMonth(0,1);t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});ya.every=function(n){return!isFinite(n=Math.floor(n))||!(n>0)?null:Fi(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/n)*n);t.setUTCMonth(0,1);t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e*n)})};var ma=ya;function _a(u,t,e,n,r,i){var l=[[Yi,1,Li],[Yi,5,5*Li],[Yi,15,15*Li],[Yi,30,30*Li],[i,1,Hi],[i,5,5*Hi],[i,15,15*Hi],[i,30,30*Hi],[r,1,Ui],[r,3,3*Ui],[r,6,6*Ui],[r,12,12*Ui],[n,1,Gi],[n,2,2*Gi],[e,1,Vi],[t,1,Wi],[t,3,3*Wi],[u,1,qi]];function a(t,e,n){var r=e<t;if(r){var i=[e,t];t=i[0];e=i[1]}var a=n&&typeof n.range==="function"?n:s(t,e,n);var o=a?a.range(t,+e+1):[];return r?o.reverse():o}function s(t,e,n){var r=Math.abs(e-t)/n;var i=S(function(t){var e=_slicedToArray2(t,3),n=e[2];return n}).right(l,r);if(i===l.length)return u.every(M(t/qi,e/qi,n));if(i===0)return Ii.every(Math.max(M(t,e,n),1));var a=_slicedToArray2(l[r/l[i-1][2]<l[i][2]/r?i-1:i],2),o=a[0],s=a[1];return o.every(s)}return[a,s]}var ba=_a(ma,pa,ga,ha,ca,ua),wa=_slicedToArray2(ba,2),xa=wa[0],ka=wa[1];var Sa=_a(oa,ia,na,ta,Ji,Zi),Ca=_slicedToArray2(Sa,2),Ea=Ca[0],Aa=Ca[1];function Ma(t){return new Date(t)}function Ra(t){return t instanceof Date?+t:+new Date(+t)}function Ta(n,r,e,i,a,o,s,u,l,c){var f=Br(),h=f.invert,d=f.domain;var g=c(".%L"),v=c(":%S"),p=c("%I:%M"),y=c("%I %p"),m=c("%a %d"),_=c("%b %d"),b=c("%B"),w=c("%Y");function x(t){return(l(t)<t?g:u(t)<t?v:s(t)<t?p:o(t)<t?y:i(t)<t?a(t)<t?m:_:e(t)<t?b:w)(t)}f.invert=function(t){return new Date(h(t))};f.domain=function(t){return arguments.length?d(Array.from(t,Ra)):d().map(Ma)};f.ticks=function(t){var e=d();return n(e[0],e[e.length-1],t==null?10:t)};f.tickFormat=function(t,e){return e==null?x:c(e)};f.nice=function(t){var e=d();if(!t||typeof t.range!=="function")t=r(e[0],e[e.length-1],t==null?10:t);return t?d(ui(e,t)):f};f.copy=function(){return Or(f,Ta(n,r,e,i,a,o,s,u,l,c))};return f}function Oa(){return nn.apply(Ta(Ea,Aa,oa,ia,na,ta,Ji,Zi,Yi,Qe).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Pa(){return nn.apply(Ta(xa,ka,ma,pa,ga,ha,ca,ua,Yi,tn).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Ba(){var r=0,i=1,a,o,s,u,l=Er,e=false,n;function c(t){return t==null||isNaN(t=+t)?n:l(s===0?.5:(t=(u(t)-a)*s,e?Math.max(0,Math.min(1,t)):t))}c.domain=function(t){var e,n;return arguments.length?(e=t,n=_slicedToArray2(e,2),r=n[0],i=n[1],e,a=u(r=+r),o=u(i=+i),s=a===o?0:1/(o-a),c):[r,i]};c.clamp=function(t){return arguments.length?(e=!!t,c):e};c.interpolator=function(t){return arguments.length?(l=t,c):l};function t(a){return function(t){var e,n;var r,i;return arguments.length?(e=t,n=_slicedToArray2(e,2),r=n[0],i=n[1],e,l=a(r,i),c):[l(0),l(1)]}}c.range=t(or);c.rangeRound=t(sr);c.unknown=function(t){return arguments.length?(n=t,c):n};return function(t){u=t,a=t(r),o=t(i),s=a===o?0:1/(o-a);return c}}function Da(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Na(){var t=ai(Ba()(Er));t.copy=function(){return Da(t,Na())};return rn.apply(t,arguments)}function za(){var t=yi(Ba()).domain([1,10]);t.copy=function(){return Da(t,za()).base(t.base())};return rn.apply(t,arguments)}function Fa(){var t=wi(Ba());t.copy=function(){return Da(t,Fa()).constant(t.constant())};return rn.apply(t,arguments)}function ja(){var t=Ei(Ba());t.copy=function(){return Da(t,ja()).exponent(t.exponent())};return rn.apply(t,arguments)}function Ia(){return ja.apply(null,arguments).exponent(.5)}function La(){var i=[],n=Er;function a(t){if(t!=null&&!isNaN(t=+t))return n((h(i,t,1)-1)/(i.length-1))}a.domain=function(t){if(!arguments.length)return i.slice();i=[];var e=_createForOfIteratorHelper2(t),n;try{for(e.s();!(n=e.n()).done;){var r=n.value;if(r!=null&&!isNaN(r=+r))i.push(r)}}catch(t){e.e(t)}finally{e.f()}i.sort(v);return a};a.interpolator=function(t){return arguments.length?(n=t,a):n};a.range=function(){return i.map(function(t,e){return n(e/(i.length-1))})};a.quantiles=function(n){return Array.from({length:n+1},function(t,e){return Nt(i,e/n)})};a.copy=function(){return La(n).domain(i)};return rn.apply(a,arguments)}function Ha(){var r=0,i=.5,a=1,o=1,s,u,l,c,f,h=Er,d,e=false,n;function g(t){return isNaN(t=+t)?n:(t=.5+((t=+d(t))-u)*(o*t<o*u?c:f),h(e?Math.max(0,Math.min(1,t)):t))}g.domain=function(t){var e,n;return arguments.length?(e=t,n=_slicedToArray2(e,3),r=n[0],i=n[1],a=n[2],e,s=d(r=+r),u=d(i=+i),l=d(a=+a),c=s===u?0:.5/(u-s),f=u===l?0:.5/(l-u),o=u<s?-1:1,g):[r,i,a]};g.clamp=function(t){return arguments.length?(e=!!t,g):e};g.interpolator=function(t){return arguments.length?(h=t,g):h};function t(o){return function(t){var e,n;var r,i,a;return arguments.length?(e=t,n=_slicedToArray2(e,3),r=n[0],i=n[1],a=n[2],e,h=xr(o,[r,i,a]),g):[h(0),h(.5),h(1)]}}g.range=t(or);g.rangeRound=t(sr);g.unknown=function(t){return arguments.length?(n=t,g):n};return function(t){d=t,s=t(r),u=t(i),l=t(a),c=s===u?0:.5/(u-s),f=u===l?0:.5/(l-u),o=u<s?-1:1;return g}}function Ua(){var t=ai(Ha()(Er));t.copy=function(){return Da(t,Ua())};return rn.apply(t,arguments)}function Ga(){var t=yi(Ha()).domain([.1,1,10]);t.copy=function(){return Da(t,Ga()).base(t.base())};return rn.apply(t,arguments)}function Va(){var t=wi(Ha());t.copy=function(){return Da(t,Va()).constant(t.constant())};return rn.apply(t,arguments)}function Wa(){var t=Ei(Ha());t.copy=function(){return Da(t,Wa()).exponent(t.exponent())};return rn.apply(t,arguments)}function qa(){return Wa.apply(null,arguments).exponent(.5)}var Ka=Object.freeze({__proto__:null,scaleBand:sn,scalePoint:ln,scaleIdentity:si,scaleLinear:oi,scaleLog:mi,scaleSymlog:xi,scaleOrdinal:on,scaleImplicit:an,scalePow:Ai,scaleSqrt:Mi,scaleRadial:Oi,scaleQuantile:Pi,scaleQuantize:Bi,scaleThreshold:Di,scaleTime:Oa,scaleUtc:Pa,scaleSequential:Na,scaleSequentialLog:za,scaleSequentialPow:ja,scaleSequentialSqrt:Ia,scaleSequentialSymlog:Fa,scaleSequentialQuantile:La,scaleDiverging:Ua,scaleDivergingLog:Ga,scaleDivergingPow:Wa,scaleDivergingSqrt:qa,scaleDivergingSymlog:Va,tickFormat:ii});var Ya="http://www.w3.org/1999/xhtml";var Xa={svg:"http://www.w3.org/2000/svg",xhtml:Ya,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Za(t){var e=t+="",n=e.indexOf(":");if(n>=0&&(e=t.slice(0,n))!=="xmlns")t=t.slice(n+1);return Xa.hasOwnProperty(e)?{space:Xa[e],local:t}:t}function $a(n){return function(){var t=this.ownerDocument,e=this.namespaceURI;return e===Ya&&t.documentElement.namespaceURI===Ya?t.createElement(n):t.createElementNS(e,n)}}function Ja(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function Qa(t){var e=Za(t);return(e.local?Ja:$a)(e)}function to(){}function eo(t){return t==null?to:function(){return this.querySelector(t)}}function no(t){if(typeof t!=="function")t=eo(t);for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i){for(var a=e[i],o=a.length,s=r[i]=new Array(o),u,l,c=0;c<o;++c){if((u=a[c])&&(l=t.call(u,u.__data__,c,a))){if("__data__"in u)l.__data__=u.__data__;s[c]=l}}}return new Vs(r,this._parents)}function ro(t){return _typeof2(t)==="object"&&"length"in t?t:Array.from(t)}function io(){return[]}function ao(t){return t==null?io:function(){return this.querySelectorAll(t)}}function oo(e){return function(){var t=e.apply(this,arguments);return t==null?[]:ro(t)}}function so(t){if(typeof t==="function")t=oo(t);else t=ao(t);for(var e=this._groups,n=e.length,r=[],i=[],a=0;a<n;++a){for(var o=e[a],s=o.length,u,l=0;l<s;++l){if(u=o[l]){r.push(t.call(u,u.__data__,l,o));i.push(u)}}}return new Vs(r,i)}function uo(t){return function(){return this.matches(t)}}function lo(e){return function(t){return t.matches(e)}}var co=Array.prototype.find;function fo(t){return function(){return co.call(this.children,t)}}function ho(){return this.firstElementChild}function go(t){return this.select(t==null?ho:fo(typeof t==="function"?t:lo(t)))}var vo=Array.prototype.filter;function po(){return this.children}function yo(t){return function(){return vo.call(this.children,t)}}function mo(t){return this.selectAll(t==null?po:yo(typeof t==="function"?t:lo(t)))}function _o(t){if(typeof t!=="function")t=uo(t);for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i){for(var a=e[i],o=a.length,s=r[i]=[],u,l=0;l<o;++l){if((u=a[l])&&t.call(u,u.__data__,l,a)){s.push(u)}}}return new Vs(r,this._parents)}function bo(t){return new Array(t.length)}function wo(){return new Vs(this._enter||this._groups.map(bo),this._parents)}function xo(t,e){this.ownerDocument=t.ownerDocument;this.namespaceURI=t.namespaceURI;this._next=null;this._parent=t;this.__data__=e}xo.prototype={constructor:xo,appendChild:function t(e){return this._parent.insertBefore(e,this._next)},insertBefore:function t(e,n){return this._parent.insertBefore(e,n)},querySelector:function t(e){return this._parent.querySelector(e)},querySelectorAll:function t(e){return this._parent.querySelectorAll(e)}};function ko(t){return function(){return t}}function So(t,e,n,r,i,a){var o=0,s,u=e.length,l=a.length;for(;o<l;++o){if(s=e[o]){s.__data__=a[o];r[o]=s}else{n[o]=new xo(t,a[o])}}for(;o<u;++o){if(s=e[o]){i[o]=s}}}function Co(t,e,n,r,i,a,o){var s,u,l=new Map,c=e.length,f=a.length,h=new Array(c),d;for(s=0;s<c;++s){if(u=e[s]){h[s]=d=o.call(u,u.__data__,s,e)+"";if(l.has(d)){i[s]=u}else{l.set(d,u)}}}for(s=0;s<f;++s){d=o.call(t,a[s],s,a)+"";if(u=l.get(d)){r[s]=u;u.__data__=a[s];l["delete"](d)}else{n[s]=new xo(t,a[s])}}for(s=0;s<c;++s){if((u=e[s])&&l.get(h[s])===u){i[s]=u}}}function Eo(t){return t.__data__}function Ao(t,e){if(!arguments.length)return Array.from(this,Eo);var n=e?Co:So,r=this._parents,i=this._groups;if(typeof t!=="function")t=ko(t);for(var a=i.length,o=new Array(a),s=new Array(a),u=new Array(a),l=0;l<a;++l){var c=r[l],f=i[l],h=f.length,d=ro(t.call(c,c&&c.__data__,l,r)),g=d.length,v=s[l]=new Array(g),p=o[l]=new Array(g),y=u[l]=new Array(h);n(c,f,v,p,y,d,e);for(var m=0,_=0,b,w;m<g;++m){if(b=v[m]){if(m>=_)_=m+1;while(!(w=p[_])&&++_<g){}b._next=w||null}}}o=new Vs(o,r);o._enter=s;o._exit=u;return o}function Mo(){return new Vs(this._exit||this._groups.map(bo),this._parents)}function Ro(t,e,n){var r=this.enter(),i=this,a=this.exit();r=typeof t==="function"?t(r):r.append(t+"");if(e!=null)i=e(i);if(n==null)a.remove();else n(a);return r&&i?r.merge(i).order():i}function To(t){if(!(t instanceof Vs))throw new Error("invalid merge");for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s){for(var u=e[s],l=n[s],c=u.length,f=o[s]=new Array(c),h,d=0;d<c;++d){if(h=u[d]||l[d]){f[d]=h}}}for(;s<r;++s){o[s]=e[s]}return new Vs(o,this._parents)}function Oo(){for(var t=this._groups,e=-1,n=t.length;++e<n;){for(var r=t[e],i=r.length-1,a=r[i],o;--i>=0;){if(o=r[i]){if(a&&o.compareDocumentPosition(a)^4)a.parentNode.insertBefore(o,a);a=o}}}return this}function Po(n){if(!n)n=Bo;function t(t,e){return t&&e?n(t.__data__,e.__data__):!t-!e}for(var e=this._groups,r=e.length,i=new Array(r),a=0;a<r;++a){for(var o=e[a],s=o.length,u=i[a]=new Array(s),l,c=0;c<s;++c){if(l=o[c]){u[c]=l}}u.sort(t)}return new Vs(i,this._parents).order()}function Bo(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Do(){var t=arguments[0];arguments[0]=this;t.apply(null,arguments);return this}function No(){return Array.from(this)}function zo(){for(var t=this._groups,e=0,n=t.length;e<n;++e){for(var r=t[e],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}}return null}function Fo(){var t=0;var e=_createForOfIteratorHelper2(this),n;try{for(e.s();!(n=e.n()).done;){var r=n.value;++t}}catch(t){e.e(t)}finally{e.f()}return t}function jo(){return!this.node()}function Io(t){for(var e=this._groups,n=0,r=e.length;n<r;++n){for(var i=e[n],a=0,o=i.length,s;a<o;++a){if(s=i[a])t.call(s,s.__data__,a,i)}}return this}function Lo(t){return function(){this.removeAttribute(t)}}function Ho(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Uo(t,e){return function(){this.setAttribute(t,e)}}function Go(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Vo(e,n){return function(){var t=n.apply(this,arguments);if(t==null)this.removeAttribute(e);else this.setAttribute(e,t)}}function Wo(e,n){return function(){var t=n.apply(this,arguments);if(t==null)this.removeAttributeNS(e.space,e.local);else this.setAttributeNS(e.space,e.local,t)}}function qo(t,e){var n=Za(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((e==null?n.local?Ho:Lo:typeof e==="function"?n.local?Wo:Vo:n.local?Go:Uo)(n,e))}function Ko(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Yo(t){return function(){this.style.removeProperty(t)}}function Xo(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Zo(e,n,r){return function(){var t=n.apply(this,arguments);if(t==null)this.style.removeProperty(e);else this.style.setProperty(e,t,r)}}function $o(t,e,n){return arguments.length>1?this.each((e==null?Yo:typeof e==="function"?Zo:Xo)(t,e,n==null?"":n)):Jo(this.node(),t)}function Jo(t,e){return t.style.getPropertyValue(e)||Ko(t).getComputedStyle(t,null).getPropertyValue(e)}function Qo(t){return function(){delete this[t]}}function ts(t,e){return function(){this[t]=e}}function es(e,n){return function(){var t=n.apply(this,arguments);if(t==null)delete this[e];else this[e]=t}}function ns(t,e){return arguments.length>1?this.each((e==null?Qo:typeof e==="function"?es:ts)(t,e)):this.node()[t]}function rs(t){return t.trim().split(/^|\s+/)}function is(t){return t.classList||new as(t)}function as(t){this._node=t;this._names=rs(t.getAttribute("class")||"")}as.prototype={add:function t(e){var n=this._names.indexOf(e);if(n<0){this._names.push(e);this._node.setAttribute("class",this._names.join(" "))}},remove:function t(e){var n=this._names.indexOf(e);if(n>=0){this._names.splice(n,1);this._node.setAttribute("class",this._names.join(" "))}},contains:function t(e){return this._names.indexOf(e)>=0}};function os(t,e){var n=is(t),r=-1,i=e.length;while(++r<i){n.add(e[r])}}function ss(t,e){var n=is(t),r=-1,i=e.length;while(++r<i){n.remove(e[r])}}function us(t){return function(){os(this,t)}}function ls(t){return function(){ss(this,t)}}function cs(t,e){return function(){(e.apply(this,arguments)?os:ss)(this,t)}}function fs(t,e){var n=rs(t+"");if(arguments.length<2){var r=is(this.node()),i=-1,a=n.length;while(++i<a){if(!r.contains(n[i]))return false}return true}return this.each((typeof e==="function"?cs:e?us:ls)(n,e))}function hs(){this.textContent=""}function ds(t){return function(){this.textContent=t}}function gs(e){return function(){var t=e.apply(this,arguments);this.textContent=t==null?"":t}}function vs(t){return arguments.length?this.each(t==null?hs:(typeof t==="function"?gs:ds)(t)):this.node().textContent}function ps(){this.innerHTML=""}function ys(t){return function(){this.innerHTML=t}}function ms(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t==null?"":t}}function _s(t){return arguments.length?this.each(t==null?ps:(typeof t==="function"?ms:ys)(t)):this.node().innerHTML}function bs(){if(this.nextSibling)this.parentNode.appendChild(this)}function ws(){return this.each(bs)}function xs(){if(this.previousSibling)this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ks(){return this.each(xs)}function Ss(t){var e=typeof t==="function"?t:Qa(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function Cs(){return null}function Es(t,e){var n=typeof t==="function"?t:Qa(t),r=e==null?Cs:typeof e==="function"?e:eo(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function As(){var t=this.parentNode;if(t)t.removeChild(this)}function Ms(){return this.each(As)}function Rs(){var t=this.cloneNode(false),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Ts(){var t=this.cloneNode(true),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Os(t){return this.select(t?Ts:Rs)}function Ps(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Bs(e){return function(t){e.call(this,t,this.__data__)}}function Ds(t){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0)e=t.slice(n+1),t=t.slice(0,n);return{type:t,name:e}})}function Ns(a){return function(){var t=this.__on;if(!t)return;for(var e=0,n=-1,r=t.length,i;e<r;++e){if(i=t[e],(!a.type||i.type===a.type)&&i.name===a.name){this.removeEventListener(i.type,i.listener,i.options)}else{t[++n]=i}}if(++n)t.length=n;else delete this.__on}}function zs(a,o,s){return function(){var t=this.__on,e,n=Bs(o);if(t)for(var r=0,i=t.length;r<i;++r){if((e=t[r]).type===a.type&&e.name===a.name){this.removeEventListener(e.type,e.listener,e.options);this.addEventListener(e.type,e.listener=n,e.options=s);e.value=o;return}}this.addEventListener(a.type,n,s);e={type:a.type,name:a.name,value:o,listener:n,options:s};if(!t)this.__on=[e];else t.push(e)}}function Fs(t,e,n){var r=Ds(t+""),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s)for(var u=0,l=s.length,c;u<l;++u){for(i=0,c=s[u];i<a;++i){if((o=r[i]).type===c.type&&o.name===c.name){return c.value}}}return}s=e?zs:Ns;for(i=0;i<a;++i){this.each(s(r[i],e,n))}return this}function js(t,e,n){var r=Ko(t),i=r.CustomEvent;if(typeof i==="function"){i=new i(e,n)}else{i=r.document.createEvent("Event");if(n)i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail;else i.initEvent(e,false,false)}t.dispatchEvent(i)}function Is(t,e){return function(){return js(this,t,e)}}function Ls(t,e){return function(){return js(this,t,e.apply(this,arguments))}}function Hs(t,e){return this.each((typeof e==="function"?Ls:Is)(t,e))}function Us(){var n,r,i,a,o,s,u;return regeneratorRuntime.wrap(function t(e){while(1){switch(e.prev=e.next){case 0:n=this._groups,r=0,i=n.length;case 1:if(!(r<i)){e.next=13;break}a=n[r],o=0,s=a.length;case 3:if(!(o<s)){e.next=10;break}if(!(u=a[o])){e.next=7;break}e.next=7;return u;case 7:++o;e.next=3;break;case 10:++r;e.next=1;break;case 13:case"end":return e.stop()}}},l,this)}var Gs=[null];function Vs(t,e){this._groups=t;this._parents=e}function Ws(){return new Vs([[document.documentElement]],Gs)}function qs(){return this}Vs.prototype=Ws.prototype=_defineProperty2({constructor:Vs,select:no,selectAll:so,selectChild:go,selectChildren:mo,filter:_o,data:Ao,enter:wo,exit:Mo,join:Ro,merge:To,selection:qs,order:Oo,sort:Po,call:Do,nodes:No,node:zo,size:Fo,empty:jo,each:Io,attr:qo,style:$o,property:ns,classed:fs,text:vs,html:_s,raise:ws,lower:ks,append:Ss,insert:Es,remove:Ms,clone:Os,datum:Ps,on:Fs,dispatch:Hs},Symbol.iterator,Us);function Ks(t){return typeof t==="string"?new Vs([[document.querySelector(t)]],[document.documentElement]):new Vs([[t]],Gs)}function Ys(t){var e;while(e=t.sourceEvent){t=e}return t}function Xs(t,e){t=Ys(t);if(e===undefined)e=t.currentTarget;if(e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();r.x=t.clientX,r.y=t.clientY;r=r.matrixTransform(e.getScreenCTM().inverse());return[r.x,r.y]}if(e.getBoundingClientRect){var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}}return[t.pageX,t.pageY]}function Zs(t){return typeof t==="string"?new Vs([document.querySelectorAll(t)],[document.documentElement]):new Vs([t==null?[]:ro(t)],Gs)}var $s={value:function t(){}};function Js(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Qs(n)}function Qs(t){this._=t}function tu(t,r){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0)e=t.slice(n+1),t=t.slice(0,n);if(t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})}Qs.prototype=Js.prototype={constructor:Qs,on:function t(e,n){var r=this._,i=tu(e+"",r),a,o=-1,s=i.length;if(arguments.length<2){while(++o<s){if((a=(e=i[o]).type)&&(a=eu(r[a],e.name)))return a}return}if(n!=null&&typeof n!=="function")throw new Error("invalid callback: "+n);while(++o<s){if(a=(e=i[o]).type)r[a]=nu(r[a],e.name,n);else if(n==null)for(a in r){r[a]=nu(r[a],e.name,null)}}return this},copy:function t(){var t={},e=this._;for(var n in e){t[n]=e[n].slice()}return new Qs(t)},call:function t(e,n){if((a=arguments.length-2)>0)for(var r=new Array(a),i=0,a,o;i<a;++i){r[i]=arguments[i+2]}if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],i=0,a=o.length;i<a;++i){o[i].value.apply(n,r)}},apply:function t(e,n,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],a=0,o=i.length;a<o;++a){i[a].value.apply(n,r)}}};function eu(t,e){for(var n=0,r=t.length,i;n<r;++n){if((i=t[n]).name===e){return i.value}}}function nu(t,e,n){for(var r=0,i=t.length;r<i;++r){if(t[r].name===e){t[r]=$s,t=t.slice(0,r).concat(t.slice(r+1));break}}if(n!=null)t.push({name:e,value:n});return t}var ru=0,iu=0,au=0,ou=1e3,su,uu,lu=0,cu=0,fu=0,hu=(typeof performance==="undefined"?"undefined":_typeof2(performance))==="object"&&performance.now?performance:Date,du=(typeof window==="undefined"?"undefined":_typeof2(window))==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function gu(){return cu||(du(vu),cu=hu.now()+fu)}function vu(){cu=0}function pu(){this._call=this._time=this._next=null}pu.prototype=yu.prototype={constructor:pu,restart:function t(e,n,r){if(typeof e!=="function")throw new TypeError("callback is not a function");r=(r==null?gu():+r)+(n==null?0:+n);if(!this._next&&uu!==this){if(uu)uu._next=this;else su=this;uu=this}this._call=e;this._time=r;xu()},stop:function t(){if(this._call){this._call=null;this._time=Infinity;xu()}}};function yu(t,e,n){var r=new pu;r.restart(t,e,n);return r}function mu(){gu();++ru;var t=su,e;while(t){if((e=cu-t._time)>=0)t._call.call(null,e);t=t._next}--ru}function _u(){cu=(lu=hu.now())+fu;ru=iu=0;try{mu()}finally{ru=0;wu();cu=0}}function bu(){var t=hu.now(),e=t-lu;if(e>ou)fu-=e,lu=t}function wu(){var t,e=su,n,r=Infinity;while(e){if(e._call){if(r>e._time)r=e._time;t=e,e=e._next}else{n=e._next,e._next=null;e=t?t._next=n:su=n}}uu=t;xu(r)}function xu(t){if(ru)return;if(iu)iu=clearTimeout(iu);var e=t-cu;if(e>24){if(t<Infinity)iu=setTimeout(_u,t-hu.now()-fu);if(au)au=clearInterval(au)}else{if(!au)lu=hu.now(),au=setInterval(bu,ou);ru=1,du(_u)}}function ku(e,n,t){var r=new pu;n=n==null?0:+n;r.restart(function(t){r.stop();e(t+n)},n,t);return r}var Su=Js("start","end","cancel","interrupt");var Cu=[];var Eu=0;var Au=1;var Mu=2;var Ru=3;var Tu=4;var Ou=5;var Pu=6;function Bu(t,e,n,r,i,a){var o=t.__transition;if(!o)t.__transition={};else if(n in o)return;Fu(t,n,{name:e,index:r,group:i,on:Su,tween:Cu,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:Eu})}function Du(t,e){var n=zu(t,e);if(n.state>Eu)throw new Error("too late; already scheduled");return n}function Nu(t,e){var n=zu(t,e);if(n.state>Ru)throw new Error("too late; already running");return n}function zu(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Fu(a,o,s){var u=a.__transition,l;u[o]=s;s.timer=yu(t,0,s.time);function t(t){s.state=Au;s.timer.restart(c,s.delay,s.time);if(s.delay<=t)c(t-s.delay)}function c(t){var e,n,r,i;if(s.state!==Au)return h();for(e in u){i=u[e];if(i.name!==s.name)continue;if(i.state===Ru)return ku(c);if(i.state===Tu){i.state=Pu;i.timer.stop();i.on.call("interrupt",a,a.__data__,i.index,i.group);delete u[e]}else if(+e<o){i.state=Pu;i.timer.stop();i.on.call("cancel",a,a.__data__,i.index,i.group);delete u[e]}}ku(function(){if(s.state===Ru){s.state=Tu;s.timer.restart(f,s.delay,s.time);f(t)}});s.state=Mu;s.on.call("start",a,a.__data__,s.index,s.group);if(s.state!==Mu)return;s.state=Ru;l=new Array(r=s.tween.length);for(e=0,n=-1;e<r;++e){if(i=s.tween[e].value.call(a,a.__data__,s.index,s.group)){l[++n]=i}}l.length=n+1}function f(t){var e=t<s.duration?s.ease.call(null,t/s.duration):(s.timer.restart(h),s.state=Ou,1),n=-1,r=l.length;while(++n<r){l[n].call(a,e)}if(s.state===Ou){s.on.call("end",a,a.__data__,s.index,s.group);h()}}function h(){s.state=Pu;s.timer.stop();delete u[o];for(var t in u){return}delete a.__transition}}function ju(t,e){var n=t.__transition,r,i,a=true,o;if(!n)return;e=e==null?null:e+"";for(o in n){if((r=n[o]).name!==e){a=false;continue}i=r.state>Mu&&r.state<Ou;r.state=Pu;r.timer.stop();r.on.call(i?"interrupt":"cancel",t,t.__data__,r.index,r.group);delete n[o]}if(a)delete t.__transition}function Iu(t){return this.each(function(){ju(this,t)})}function Lu(i,a){var o,s;return function(){var t=Nu(this,i),e=t.tween;if(e!==o){s=o=e;for(var n=0,r=s.length;n<r;++n){if(s[n].name===a){s=s.slice();s.splice(n,1);break}}}t.tween=s}}function Hu(a,o,s){var u,l;if(typeof s!=="function")throw new Error;return function(){var t=Nu(this,a),e=t.tween;if(e!==u){l=(u=e).slice();for(var n={name:o,value:s},r=0,i=l.length;r<i;++r){if(l[r].name===o){l[r]=n;break}}if(r===i)l.push(n)}t.tween=l}}function Uu(t,e){var n=this._id;t+="";if(arguments.length<2){var r=zu(this.node(),n).tween;for(var i=0,a=r.length,o;i<a;++i){if((o=r[i]).name===t){return o.value}}return null}return this.each((e==null?Lu:Hu)(n,t,e))}function Gu(t,e,n){var r=t._id;t.each(function(){var t=Nu(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)});return function(t){return zu(t,r).value[e]}}function Vu(t,e){var n;return(typeof e==="number"?Qn:e instanceof Rn?Yn:(n=Rn(e))?(e=n,Yn):ar)(t,e)}function Wu(t){return function(){this.removeAttribute(t)}}function qu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Ku(e,n,r){var i,a=r+"",o;return function(){var t=this.getAttribute(e);return t===a?null:t===i?o:o=n(i=t,r)}}function Yu(e,n,r){var i,a=r+"",o;return function(){var t=this.getAttributeNS(e.space,e.local);return t===a?null:t===i?o:o=n(i=t,r)}}function Xu(r,i,a){var o,s,u;return function(){var t,e=a(this),n;if(e==null)return void this.removeAttribute(r);t=this.getAttribute(r);n=e+"";return t===n?null:t===o&&n===s?u:(s=n,u=i(o=t,e))}}function Zu(r,i,a){var o,s,u;return function(){var t,e=a(this),n;if(e==null)return void this.removeAttributeNS(r.space,r.local);t=this.getAttributeNS(r.space,r.local);n=e+"";return t===n?null:t===o&&n===s?u:(s=n,u=i(o=t,e))}}function $u(t,e){var n=Za(t),r=n==="transform"?pr:Vu;return this.attrTween(t,typeof e==="function"?(n.local?Zu:Xu)(n,r,Gu(this,"attr."+t,e)):e==null?(n.local?qu:Wu)(n):(n.local?Yu:Ku)(n,r,e))}function Ju(e,n){return function(t){this.setAttribute(e,n.call(this,t))}}function Qu(e,n){return function(t){this.setAttributeNS(e.space,e.local,n.call(this,t))}}function tl(e,n){var r,i;function t(){var t=n.apply(this,arguments);if(t!==i)r=(i=t)&&Qu(e,t);return r}t._value=n;return t}function el(e,n){var r,i;function t(){var t=n.apply(this,arguments);if(t!==i)r=(i=t)&&Ju(e,t);return r}t._value=n;return t}function nl(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!=="function")throw new Error;var r=Za(t);return this.tween(n,(r.local?tl:el)(r,e))}function rl(t,e){return function(){Du(this,t).delay=+e.apply(this,arguments)}}function il(t,e){return e=+e,function(){Du(this,t).delay=e}}function al(t){var e=this._id;return arguments.length?this.each((typeof t==="function"?rl:il)(e,t)):zu(this.node(),e).delay}function ol(t,e){return function(){Nu(this,t).duration=+e.apply(this,arguments)}}function sl(t,e){return e=+e,function(){Nu(this,t).duration=e}}function ul(t){var e=this._id;return arguments.length?this.each((typeof t==="function"?ol:sl)(e,t)):zu(this.node(),e).duration}function ll(t,e){if(typeof e!=="function")throw new Error;return function(){Nu(this,t).ease=e}}function cl(t){var e=this._id;return arguments.length?this.each(ll(e,t)):zu(this.node(),e).ease}function fl(e,n){return function(){var t=n.apply(this,arguments);if(typeof t!=="function")throw new Error;Nu(this,e).ease=t}}function hl(t){if(typeof t!=="function")throw new Error;return this.each(fl(this._id,t))}function dl(t){if(typeof t!=="function")t=uo(t);for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i){for(var a=e[i],o=a.length,s=r[i]=[],u,l=0;l<o;++l){if((u=a[l])&&t.call(u,u.__data__,l,a)){s.push(u)}}}return new Ul(r,this._parents,this._name,this._id)}function gl(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s){for(var u=e[s],l=n[s],c=u.length,f=o[s]=new Array(c),h,d=0;d<c;++d){if(h=u[d]||l[d]){f[d]=h}}}for(;s<r;++s){o[s]=e[s]}return new Ul(o,this._parents,this._name,this._id)}function vl(t){return(t+"").trim().split(/^|\s+/).every(function(t){var e=t.indexOf(".");if(e>=0)t=t.slice(0,e);return!t||t==="start"})}function pl(n,r,i){var a,o,s=vl(r)?Du:Nu;return function(){var t=s(this,n),e=t.on;if(e!==a)(o=(a=e).copy()).on(r,i);t.on=o}}function yl(t,e){var n=this._id;return arguments.length<2?zu(this.node(),n).on.on(t):this.each(pl(n,t,e))}function ml(n){return function(){var t=this.parentNode;for(var e in this.__transition){if(+e!==n)return}if(t)t.removeChild(this)}}function _l(){return this.on("end.remove",ml(this._id))}function bl(t){var e=this._name,n=this._id;if(typeof t!=="function")t=eo(t);for(var r=this._groups,i=r.length,a=new Array(i),o=0;o<i;++o){for(var s=r[o],u=s.length,l=a[o]=new Array(u),c,f,h=0;h<u;++h){if((c=s[h])&&(f=t.call(c,c.__data__,h,s))){if("__data__"in c)f.__data__=c.__data__;l[h]=f;Bu(l[h],e,n,h,l,zu(c,n))}}}return new Ul(a,this._parents,e,n)}function wl(t){var e=this._name,n=this._id;if(typeof t!=="function")t=ao(t);for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s){for(var u=r[s],l=u.length,c,f=0;f<l;++f){if(c=u[f]){for(var h=t.call(c,c.__data__,f,u),d,g=zu(c,n),v=0,p=h.length;v<p;++v){if(d=h[v]){Bu(d,e,n,v,h,g)}}a.push(h);o.push(c)}}}return new Ul(a,o,e,n)}var xl=Ws.prototype.constructor;function kl(){return new xl(this._groups,this._parents)}function Sl(n,r){var i,a,o;return function(){var t=Jo(this,n),e=(this.style.removeProperty(n),Jo(this,n));return t===e?null:t===i&&e===a?o:o=r(i=t,a=e)}}function Cl(t){return function(){this.style.removeProperty(t)}}function El(e,n,r){var i,a=r+"",o;return function(){var t=Jo(this,e);return t===a?null:t===i?o:o=n(i=t,r)}}function Al(r,i,a){var o,s,u;return function(){var t=Jo(this,r),e=a(this),n=e+"";if(e==null)n=e=(this.style.removeProperty(r),Jo(this,r));return t===n?null:t===o&&n===s?u:(s=n,u=i(o=t,e))}}function Ml(r,i){var a,o,s,u="style."+i,l="end."+u,c;return function(){var t=Nu(this,r),e=t.on,n=t.value[u]==null?c||(c=Cl(i)):undefined;if(e!==a||s!==n)(o=(a=e).copy()).on(l,s=n);t.on=o}}function Rl(t,e,n){var r=(t+="")==="transform"?vr:Vu;return e==null?this.styleTween(t,Sl(t,r)).on("end.style."+t,Cl(t)):typeof e==="function"?this.styleTween(t,Al(t,r,Gu(this,"style."+t,e))).each(Ml(this._id,t)):this.styleTween(t,El(t,r,e),n).on("end.style."+t,null)}function Tl(e,n,r){return function(t){this.style.setProperty(e,n.call(this,t),r)}}function Ol(e,n,r){var i,a;function t(){var t=n.apply(this,arguments);if(t!==a)i=(a=t)&&Tl(e,t,r);return i}t._value=n;return t}function Pl(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(e==null)return this.tween(r,null);if(typeof e!=="function")throw new Error;return this.tween(r,Ol(t,e,n==null?"":n))}function Bl(t){return function(){this.textContent=t}}function Dl(e){return function(){var t=e(this);this.textContent=t==null?"":t}}function Nl(t){return this.tween("text",typeof t==="function"?Dl(Gu(this,"text",t)):Bl(t==null?"":t+""))}function zl(e){return function(t){this.textContent=e.call(this,t)}}function Fl(e){var n,r;function t(){var t=e.apply(this,arguments);if(t!==r)n=(r=t)&&zl(t);return n}t._value=e;return t}function jl(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!=="function")throw new Error;return this.tween(e,Fl(t))}function Il(){var t=this._name,e=this._id,n=Vl();for(var r=this._groups,i=r.length,a=0;a<i;++a){for(var o=r[a],s=o.length,u,l=0;l<s;++l){if(u=o[l]){var c=zu(u,e);Bu(u,t,n,l,o,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}}}return new Ul(r,this._parents,t,n)}function Ll(){var i,a,o=this,s=o._id,u=o.size();return new Promise(function(e,t){var n={value:t},r={value:function t(){if(--u===0)e()}};o.each(function(){var t=Nu(this,s),e=t.on;if(e!==i){a=(i=e).copy();a._.cancel.push(n);a._.interrupt.push(n);a._.end.push(r)}t.on=a});if(u===0)e()})}var Hl=0;function Ul(t,e,n,r){this._groups=t;this._parents=e;this._name=n;this._id=r}function Gl(t){return Ws().transition(t)}function Vl(){return++Hl}var Wl=Ws.prototype;Ul.prototype=Gl.prototype=_defineProperty2({constructor:Ul,select:bl,selectAll:wl,filter:dl,merge:gl,selection:kl,transition:Il,call:Wl.call,nodes:Wl.nodes,node:Wl.node,size:Wl.size,empty:Wl.empty,each:Wl.each,on:yl,attr:$u,attrTween:nl,style:Rl,styleTween:Pl,text:Nl,textTween:jl,remove:_l,tween:Uu,delay:al,duration:ul,ease:cl,easeVarying:hl,end:Ll},Symbol.iterator,Wl[Symbol.iterator]);function ql(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Kl={time:null,delay:0,duration:250,ease:ql};function Yl(t,e){var n;while(!(n=t.__transition)||!(n=n[e])){if(!(t=t.parentNode)){throw new Error("transition ".concat(e," not found"))}}return n}function Xl(t){var e,n;if(t instanceof Ul){e=t._id,t=t._name}else{e=Vl(),(n=Kl).time=gu(),t=t==null?null:t+""}for(var r=this._groups,i=r.length,a=0;a<i;++a){for(var o=r[a],s=o.length,u,l=0;l<s;++l){if(u=o[l]){Bu(u,t,e,l,o,n||Yl(u,e))}}}return new Ul(r,this._parents,t,e)}Ws.prototype.interrupt=Iu;Ws.prototype.transition=Xl;function Zl(e,n){if(n===undefined)return function(t){return t[e]};return function(t){return t[e]===undefined?n:t[e]}}function $l(t){"@babel/helpers - typeof";return $l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$l(t)}function Jl(t){return t&&$l(t)==="object"&&(typeof window==="undefined"||t!==window&&t!==window.document&&!(t instanceof Element))&&!Array.isArray(t)?true:false}function Ql(t){if(typeof window==="undefined")return true;else return t!==window&&t!==document}function tc(){var r=arguments;var i=arguments.length<=0?undefined:arguments[0];var t=function t(e){var n=e<0||r.length<=e?undefined:r[e];if(!Jl(n))return"continue";Object.keys(n).forEach(function(t){var e=n[t];if(Jl(e)&&Ql(e)){if(i.hasOwnProperty(t)&&Jl(i[t]))i[t]=tc({},i[t],e);else i[t]=tc({},e)}else if(Array.isArray(e))i[t]=e.slice();else i[t]=e})};for(var e=1;e<arguments.length;e++){var n=t(e);if(n==="continue")continue}return i}function ec(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};for(var n in e){if({}.hasOwnProperty.call(e,n))t.attr(n,e[n])}}var nc={language:"Afar",location:null,id:4096,tag:"aa",version:"Release 10"};var rc={language:"Afrikaans",location:null,id:54,tag:"af",version:"Release 7"};var ic={language:"Aghem",location:null,id:4096,tag:"agq",version:"Release 10"};var ac={language:"Akan",location:null,id:4096,tag:"ak",version:"Release 10"};var oc={language:"Albanian",location:null,id:28,tag:"sq",version:"Release 7"};var sc={language:"Alsatian",location:null,id:132,tag:"gsw",version:"Release 7"};var uc={language:"Amharic",location:null,id:94,tag:"am",version:"Release 7"};var lc={language:"Arabic",location:null,id:1,tag:"ar",version:"Release 7"};var cc={language:"Armenian",location:null,id:43,tag:"hy",version:"Release 7"};var fc={language:"Assamese",location:null,id:77,tag:"as",version:"Release 7"};var hc={language:"Asturian",location:null,id:4096,tag:"ast",version:"Release 10"};var dc={language:"Asu",location:null,id:4096,tag:"asa",version:"Release 10"};var gc={language:"Azerbaijani (Latin)",location:null,id:44,tag:"az",version:"Release 7"};var vc={language:"Bafia",location:null,id:4096,tag:"ksf",version:"Release 10"};var pc={language:"Bamanankan",location:null,id:4096,tag:"bm",version:"Release 10"};var yc={language:"Bangla",location:null,id:69,tag:"bn",version:"Release 7"};var mc={language:"Basaa",location:null,id:4096,tag:"bas",version:"Release 10"};var _c={language:"Bashkir",location:null,id:109,tag:"ba",version:"Release 7"};var bc={language:"Basque",location:null,id:45,tag:"eu",version:"Release 7"};var wc={language:"Belarusian",location:null,id:35,tag:"be",version:"Release 7"};var xc={language:"Bemba",location:null,id:4096,tag:"bem",version:"Release 10"};var kc={language:"Bena",location:null,id:4096,tag:"bez",version:"Release 10"};var Sc={language:"Blin",location:null,id:4096,tag:"byn",version:"Release 10"};var Cc={language:"Bodo",location:null,id:4096,tag:"brx",version:"Release 10"};var Ec={language:"Bosnian (Latin)",location:null,id:30746,tag:"bs",version:"Release 7"};var Ac={language:"Breton",location:null,id:126,tag:"br",version:"Release 7"};var Mc={language:"Bulgarian",location:null,id:2,tag:"bg",version:"Release 7"};var Rc={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 Oc={language:"Cebuano",location:null,id:4096,tag:"ceb",version:"Release 10.5"};var Pc={language:"Central Kurdish",location:null,id:146,tag:"ku",version:"Release 8"};var Bc={language:"Chakma",location:null,id:4096,tag:"ccp",version:"Release 10.5"};var Dc={language:"Cherokee",location:null,id:92,tag:"chr",version:"Release 8"};var Nc={language:"Chiga",location:null,id:4096,tag:"cgg",version:"Release 10"};var zc={language:"Chinese (Simplified)",location:null,id:30724,tag:"zh",version:"Windows 7"};var Fc={language:"Congo Swahili",location:null,id:4096,tag:"swc",version:"Release 10"};var jc={language:"Cornish",location:null,id:4096,tag:"kw",version:"Release 10"};var Ic={language:"Corsican",location:null,id:131,tag:"co",version:"Release 7"};var Lc={language:"Czech",location:null,id:5,tag:"cs",version:"Release 7"};var Hc={language:"Danish",location:null,id:6,tag:"da",version:"Release 7"};var Uc={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 Vc={language:"Duala",location:null,id:4096,tag:"dua",version:"Release 10"};var Wc={language:"Dutch",location:null,id:19,tag:"nl",version:"Release 7"};var qc={language:"Dzongkha",location:null,id:4096,tag:"dz",version:"Release 10"};var Kc={language:"Embu",location:null,id:4096,tag:"ebu",version:"Release 10"};var Yc={language:"English",location:null,id:9,tag:"en",version:"Release 7"};var Xc={language:"Esperanto",location:null,id:4096,tag:"eo",version:"Release 10"};var Zc={language:"Estonian",location:null,id:37,tag:"et",version:"Release 7"};var $c={language:"Ewe",location:null,id:4096,tag:"ee",version:"Release 10"};var Jc={language:"Ewondo",location:null,id:4096,tag:"ewo",version:"Release 10"};var Qc={language:"Faroese",location:null,id:56,tag:"fo",version:"Release 7"};var tf={language:"Filipino",location:null,id:100,tag:"fil",version:"Release 7"};var ef={language:"Finnish",location:null,id:11,tag:"fi",version:"Release 7"};var nf={language:"French",location:null,id:12,tag:"fr",version:"Release 7"};var rf={language:"Frisian",location:null,id:98,tag:"fy",version:"Release 7"};var af={language:"Friulian",location:null,id:4096,tag:"fur",version:"Release 10"};var of={language:"Fulah",location:null,id:103,tag:"ff",version:"Release 8"};var sf={language:"Galician",location:null,id:86,tag:"gl",version:"Release 7"};var uf={language:"Ganda",location:null,id:4096,tag:"lg",version:"Release 10"};var lf={language:"Georgian",location:null,id:55,tag:"ka",version:"Release 7"};var cf={language:"German",location:null,id:7,tag:"de",version:"Release 7"};var ff={language:"Greek",location:null,id:8,tag:"el",version:"Release 7"};var hf={language:"Greenlandic",location:null,id:111,tag:"kl",version:"Release 7"};var df={language:"Guarani",location:null,id:116,tag:"gn",version:"Release 8.1"};var gf={language:"Gujarati",location:null,id:71,tag:"gu",version:"Release 7"};var vf={language:"Gusii",location:null,id:4096,tag:"guz",version:"Release 10"};var pf={language:"Hausa (Latin)",location:null,id:104,tag:"ha",version:"Release 7"};var yf={language:"Hawaiian",location:null,id:117,tag:"haw",version:"Release 8"};var mf={language:"Hebrew",location:null,id:13,tag:"he",version:"Release 7"};var _f={language:"Hindi",location:null,id:57,tag:"hi",version:"Release 7"};var bf={language:"Hungarian",location:null,id:14,tag:"hu",version:"Release 7"};var wf={language:"Icelandic",location:null,id:15,tag:"is",version:"Release 7"};var xf={language:"Igbo",location:null,id:112,tag:"ig",version:"Release 7"};var kf={language:"Indonesian",location:null,id:33,tag:"id",version:"Release 7"};var Sf={language:"Interlingua",location:null,id:4096,tag:"ia",version:"Release 10"};var Cf={language:"Inuktitut (Latin)",location:null,id:93,tag:"iu",version:"Release 7"};var Ef={language:"Irish",location:null,id:60,tag:"ga",version:"Windows 7"};var Af={language:"Italian",location:null,id:16,tag:"it",version:"Release 7"};var Mf={language:"Japanese",location:null,id:17,tag:"ja",version:"Release 7"};var Rf={language:"Javanese",location:null,id:4096,tag:"jv",version:"Release 8.1"};var Tf={language:"Jola-Fonyi",location:null,id:4096,tag:"dyo",version:"Release 10"};var Of={language:"Kabuverdianu",location:null,id:4096,tag:"kea",version:"Release 10"};var Pf={language:"Kabyle",location:null,id:4096,tag:"kab",version:"Release 10"};var Bf={language:"Kako",location:null,id:4096,tag:"kkj",version:"Release 10"};var Df={language:"Kalenjin",location:null,id:4096,tag:"kln",version:"Release 10"};var Nf={language:"Kamba",location:null,id:4096,tag:"kam",version:"Release 10"};var zf={language:"Kannada",location:null,id:75,tag:"kn",version:"Release 7"};var Ff={language:"Kashmiri",location:null,id:96,tag:"ks",version:"Release 10"};var jf={language:"Kazakh",location:null,id:63,tag:"kk",version:"Release 7"};var If={language:"Khmer",location:null,id:83,tag:"km",version:"Release 7"};var Lf={language:"K'iche",location:null,id:134,tag:"quc",version:"Release 10"};var Hf={language:"Kikuyu",location:null,id:4096,tag:"ki",version:"Release 10"};var Uf={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 Vf={language:"Konkani",location:null,id:87,tag:"kok",version:"Release 7"};var Wf={language:"Korean",location:null,id:18,tag:"ko",version:"Release 7"};var qf={language:"Koyra Chiini",location:null,id:4096,tag:"khq",version:"Release 10"};var Kf={language:"Koyraboro Senni",location:null,id:4096,tag:"ses",version:"Release 10"};var Yf={language:"Kwasio",location:null,id:4096,tag:"nmg",version:"Release 10"};var Xf={language:"Kyrgyz",location:null,id:64,tag:"ky",version:"Release 7"};var Zf={language:"Lakota",location:null,id:4096,tag:"lkt",version:"Release 10"};var $f={language:"Langi",location:null,id:4096,tag:"lag",version:"Release 10"};var Jf={language:"Lao",location:null,id:84,tag:"lo",version:"Release 7"};var Qf={language:"Latvian",location:null,id:38,tag:"lv",version:"Release 7"};var th={language:"Lingala",location:null,id:4096,tag:"ln",version:"Release 10"};var eh={language:"Lithuanian",location:null,id:39,tag:"lt",version:"Release 7"};var nh={language:"Low German",location:null,id:4096,tag:"nds",version:"Release 10.2"};var rh={language:"Lower Sorbian",location:null,id:31790,tag:"dsb",version:"Windows 7"};var ih={language:"Luba-Katanga",location:null,id:4096,tag:"lu",version:"Release 10"};var ah={language:"Luo",location:null,id:4096,tag:"luo",version:"Release 10"};var oh={language:"Luxembourgish",location:null,id:110,tag:"lb",version:"Release 7"};var sh={language:"Luyia",location:null,id:4096,tag:"luy",version:"Release 10"};var uh={language:"Macedonian",location:null,id:47,tag:"mk",version:"Release 7"};var lh={language:"Machame",location:null,id:4096,tag:"jmc",version:"Release 10"};var ch={language:"Makhuwa-Meetto",location:null,id:4096,tag:"mgh",version:"Release 10"};var fh={language:"Makonde",location:null,id:4096,tag:"kde",version:"Release 10"};var hh={language:"Malagasy",location:null,id:4096,tag:"mg",version:"Release 8.1"};var dh={language:"Malay",location:null,id:62,tag:"ms",version:"Release 7"};var gh={language:"Malayalam",location:null,id:76,tag:"ml",version:"Release 7"};var vh={language:"Maltese",location:null,id:58,tag:"mt",version:"Release 7"};var ph={language:"Manx",location:null,id:4096,tag:"gv",version:"Release 10"};var yh={language:"Maori",location:null,id:129,tag:"mi",version:"Release 7"};var mh={language:"Mapudungun",location:null,id:122,tag:"arn",version:"Release 7"};var _h={language:"Marathi",location:null,id:78,tag:"mr",version:"Release 7"};var bh={language:"Masai",location:null,id:4096,tag:"mas",version:"Release 10"};var wh={language:"Meru",location:null,id:4096,tag:"mer",version:"Release 10"};var xh={language:"Meta'",location:null,id:4096,tag:"mgo",version:"Release 10"};var kh={language:"Mohawk",location:null,id:124,tag:"moh",version:"Release 7"};var Sh={language:"Mongolian (Cyrillic)",location:null,id:80,tag:"mn",version:"Release 7"};var Ch={language:"Morisyen",location:null,id:4096,tag:"mfe",version:"Release 10"};var Eh={language:"Mundang",location:null,id:4096,tag:"mua",version:"Release 10"};var Ah={language:"N'ko",location:null,id:4096,tag:"nqo",version:"Release 8.1"};var Mh={language:"Nama",location:null,id:4096,tag:"naq",version:"Release 10"};var Rh={language:"Nepali",location:null,id:97,tag:"ne",version:"Release 7"};var Th={language:"Ngiemboon",location:null,id:4096,tag:"nnh",version:"Release 10"};var Oh={language:"Ngomba",location:null,id:4096,tag:"jgo",version:"Release 10"};var Ph={language:"North Ndebele",location:null,id:4096,tag:"nd",version:"Release 10"};var Bh={language:"Norwegian (Bokmal)",location:null,id:20,tag:"no",version:"Release 7"};var Dh={language:"Norwegian (Bokmal)",location:null,id:31764,tag:"nb",version:"Release 7"};var Nh={language:"Norwegian (Nynorsk)",location:null,id:30740,tag:"nn",version:"Release 7"};var zh={language:"Nuer",location:null,id:4096,tag:"nus",version:"Release 10"};var Fh={language:"Nyankole",location:null,id:4096,tag:"nyn",version:"Release 10"};var jh={language:"Occitan",location:null,id:130,tag:"oc",version:"Release 7"};var Ih={language:"Odia",location:null,id:72,tag:"or",version:"Release 7"};var Lh={language:"Oromo",location:null,id:114,tag:"om",version:"Release 8.1"};var Hh={language:"Ossetian",location:null,id:4096,tag:"os",version:"Release 10"};var Uh={language:"Pashto",location:null,id:99,tag:"ps",version:"Release 7"};var Gh={language:"Persian",location:null,id:41,tag:"fa",version:"Release 7"};var Vh={language:"Polish",location:null,id:21,tag:"pl",version:"Release 7"};var Wh={language:"Portuguese",location:null,id:22,tag:"pt",version:"Release 7"};var qh={language:"Punjabi",location:null,id:70,tag:"pa",version:"Release 7"};var Kh={language:"Quechua",location:null,id:107,tag:"quz",version:"Release 7"};var Yh={language:"Ripuarian",location:null,id:4096,tag:"ksh",version:"Release 10"};var Xh={language:"Romanian",location:null,id:24,tag:"ro",version:"Release 7"};var Zh={language:"Romansh",location:null,id:23,tag:"rm",version:"Release 7"};var $h={language:"Rombo",location:null,id:4096,tag:"rof",version:"Release 10"};var Jh={language:"Rundi",location:null,id:4096,tag:"rn",version:"Release 10"};var Qh={language:"Russian",location:null,id:25,tag:"ru",version:"Release 7"};var td={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 nd={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 id={language:"Sami (Inari)",location:null,id:28731,tag:"smn",version:"Windows 7"};var ad={language:"Sami (Lule)",location:null,id:31803,tag:"smj",version:"Windows 7"};var od={language:"Sami (Northern)",location:null,id:59,tag:"se",version:"Release 7"};var sd={language:"Sami (Skolt)",location:null,id:29755,tag:"sms",version:"Windows 7"};var ud={language:"Sami (Southern)",location:null,id:30779,tag:"sma",version:"Windows 7"};var ld={language:"Sango",location:null,id:4096,tag:"sg",version:"Release 10"};var cd={language:"Sangu",location:null,id:4096,tag:"sbp",version:"Release 10"};var fd={language:"Sanskrit",location:null,id:79,tag:"sa",version:"Release 7"};var hd={language:"Scottish Gaelic",location:null,id:145,tag:"gd",version:"Windows 7"};var dd={language:"Sena",location:null,id:4096,tag:"seh",version:"Release 10"};var gd={language:"Serbian (Latin)",location:null,id:31770,tag:"sr",version:"Release 7"};var vd={language:"Sesotho sa Leboa",location:null,id:108,tag:"nso",version:"Release 7"};var pd={language:"Setswana",location:null,id:50,tag:"tn",version:"Release 7"};var yd={language:"Shambala",location:null,id:4096,tag:"ksb",version:"Release 10"};var md={language:"Shona",location:null,id:4096,tag:"sn",version:"Release 8.1"};var _d={language:"Sindhi",location:null,id:89,tag:"sd",version:"Release 8"};var bd={language:"Sinhala",location:null,id:91,tag:"si",version:"Release 7"};var wd={language:"Slovak",location:null,id:27,tag:"sk",version:"Release 7"};var xd={language:"Slovenian",location:null,id:36,tag:"sl",version:"Release 7"};var kd={language:"Soga",location:null,id:4096,tag:"xog",version:"Release 10"};var Sd={language:"Somali",location:null,id:119,tag:"so",version:"Release 8.1"};var Cd={language:"Sotho",location:null,id:48,tag:"st",version:"Release 8.1"};var Ed={language:"South Ndebele",location:null,id:4096,tag:"nr",version:"Release 10"};var Ad={language:"Spanish",location:null,id:10,tag:"es",version:"Release 7"};var Md={language:"Standard Moroccan Tamazight",location:null,id:4096,tag:"zgh",version:"Release 8.1"};var Rd={language:"Swati",location:null,id:4096,tag:"ss",version:"Release 10"};var Td={language:"Swedish",location:null,id:29,tag:"sv",version:"Release 7"};var Od={language:"Syriac",location:null,id:90,tag:"syr",version:"Release 7"};var Pd={language:"Tachelhit",location:null,id:4096,tag:"shi",version:"Release 10"};var Bd={language:"Taita",location:null,id:4096,tag:"dav",version:"Release 10"};var Dd={language:"Tajik (Cyrillic)",location:null,id:40,tag:"tg",version:"Release 7"};var Nd={language:"Tamazight (Latin)",location:null,id:95,tag:"tzm",version:"Release 7"};var zd={language:"Tamil",location:null,id:73,tag:"ta",version:"Release 7"};var Fd={language:"Tasawaq",location:null,id:4096,tag:"twq",version:"Release 10"};var jd={language:"Tatar",location:null,id:68,tag:"tt",version:"Release 7"};var Id={language:"Telugu",location:null,id:74,tag:"te",version:"Release 7"};var Ld={language:"Teso",location:null,id:4096,tag:"teo",version:"Release 10"};var Hd={language:"Thai",location:null,id:30,tag:"th",version:"Release 7"};var Ud={language:"Tibetan",location:null,id:81,tag:"bo",version:"Release 7"};var Gd={language:"Tigre",location:null,id:4096,tag:"tig",version:"Release 10"};var Vd={language:"Tigrinya",location:null,id:115,tag:"ti",version:"Release 8"};var Wd={language:"Tongan",location:null,id:4096,tag:"to",version:"Release 10"};var qd={language:"Tsonga",location:null,id:49,tag:"ts",version:"Release 8.1"};var Kd={language:"Turkish",location:null,id:31,tag:"tr",version:"Release 7"};var Yd={language:"Turkmen",location:null,id:66,tag:"tk",version:"Release 7"};var Xd={language:"Ukrainian",location:null,id:34,tag:"uk",version:"Release 7"};var Zd={language:"Upper Sorbian",location:null,id:46,tag:"hsb",version:"Release 7"};var $d={language:"Urdu",location:null,id:32,tag:"ur",version:"Release 7"};var Jd={language:"Uyghur",location:null,id:128,tag:"ug",version:"Release 7"};var Qd={language:"Uzbek (Latin)",location:null,id:67,tag:"uz",version:"Release 7"};var tg={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 ng={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 ig={language:"Vunjo",location:null,id:4096,tag:"vun",version:"Release 10"};var ag={language:"Walser",location:null,id:4096,tag:"wae",version:"Release 10"};var og={language:"Welsh",location:null,id:82,tag:"cy",version:"Release 7"};var sg={language:"Wolaytta",location:null,id:4096,tag:"wal",version:"Release 10"};var ug={language:"Wolof",location:null,id:136,tag:"wo",version:"Release 7"};var lg={language:"Xhosa",location:null,id:52,tag:"xh",version:"Release 7"};var cg={language:"Yangben",location:null,id:4096,tag:"yav",version:"Release 10"};var fg={language:"Yi",location:null,id:120,tag:"ii",version:"Release 7"};var hg={language:"Yoruba",location:null,id:106,tag:"yo",version:"Release 7"};var dg={language:"Zarma",location:null,id:4096,tag:"dje",version:"Release 10"};var gg={language:"Zulu",location:null,id:53,tag:"zu",version:"Release 7"};var vg={aa:nc,"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:rc,"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:ic,"agq-cm":{language:"Aghem",location:"Cameroon",id:4096,tag:"agq-CM",version:"Release 10"},ak:ac,"ak-gh":{language:"Akan",location:"Ghana",id:4096,tag:"ak-GH",version:"Release 10"},sq:oc,"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:sc,"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:uc,"am-et":{language:"Amharic",location:"Ethiopia",id:1118,tag:"am-ET",version:"Release V"},ar:lc,"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:cc,"hy-am":{language:"Armenian",location:"Armenia",id:1067,tag:"hy-AM",version:"Release C"},as:fc,"as-in":{language:"Assamese",location:"India",id:1101,tag:"as-IN",version:"Release V"},ast:hc,"ast-es":{language:"Asturian",location:"Spain",id:4096,tag:"ast-ES",version:"Release 10"},asa:dc,"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:gc,"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:vc,"ksf-cm":{language:"Bafia",location:"Cameroon",id:4096,tag:"ksf-CM",version:"Release 10"},bm:pc,"bm-latn-ml":{language:"Bamanankan (Latin)",location:"Mali",id:4096,tag:"bm-Latn-ML",version:"Release 10"},bn:yc,"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:mc,"bas-cm":{language:"Basaa",location:"Cameroon",id:4096,tag:"bas-CM",version:"Release 10"},ba:_c,"ba-ru":{language:"Bashkir",location:"Russia",id:1133,tag:"ba-RU",version:"Release V"},eu:bc,"eu-es":{language:"Basque",location:"Spain",id:1069,tag:"eu-ES",version:"Release B"},be:wc,"be-by":{language:"Belarusian",location:"Belarus",id:1059,tag:"be-BY",version:"Release B"},bem:xc,"bem-zm":{language:"Bemba",location:"Zambia",id:4096,tag:"bem-ZM",version:"Release 10"},bez:kc,"bez-tz":{language:"Bena",location:"Tanzania",id:4096,tag:"bez-TZ",version:"Release 10"},byn:Sc,"byn-er":{language:"Blin",location:"Eritrea",id:4096,tag:"byn-ER",version:"Release 10"},brx:Cc,"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:Ec,"bs-latn-ba":{language:"Bosnian (Latin)",location:"Bosnia and Herzegovina",id:5146,tag:"bs-Latn-BA",version:"Release E1"},br:Ac,"br-fr":{language:"Breton",location:"France",id:1150,tag:"br-FR",version:"Release V"},bg:Mc,"bg-bg":{language:"Bulgarian",location:"Bulgaria",id:1026,tag:"bg-BG",version:"Release B"},my:Rc,"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:Oc,"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:Pc,"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:Bc,"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:Dc,"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:Nc,"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:zc,"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:Fc,"swc-cd":{language:"Congo Swahili",location:"Congo DRC",id:4096,tag:"swc-CD",version:"Release 10"},kw:jc,"kw-gb":{language:"Cornish",location:"United Kingdom",id:4096,tag:"kw-GB",version:"Release 10"},co:Ic,"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:Lc,"cs-cz":{language:"Czech",location:"Czech Republic",id:1029,tag:"cs-CZ",version:"Release A"},da:Hc,"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:Uc,"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:Vc,"dua-cm":{language:"Duala",location:"Cameroon",id:4096,tag:"dua-CM",version:"Release 10"},nl:Wc,"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:qc,"dz-bt":{language:"Dzongkha",location:"Bhutan",id:3153,tag:"dz-BT",version:"Release 10"},ebu:Kc,"ebu-ke":{language:"Embu",location:"Kenya",id:4096,tag:"ebu-KE",version:"Release 10"},en:Yc,"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:Xc,"eo-001":{language:"Esperanto",location:"World",id:4096,tag:"eo-001",version:"Release 10"},et:Zc,"et-ee":{language:"Estonian",location:"Estonia",id:1061,tag:"et-EE",version:"Release B"},ee:$c,"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:Jc,"ewo-cm":{language:"Ewondo",location:"Cameroon",id:4096,tag:"ewo-CM",version:"Release 10"},fo:Qc,"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:tf,"fil-ph":{language:"Filipino",location:"Philippines",id:1124,tag:"fil-PH",version:"Release E2"},fi:ef,"fi-fi":{language:"Finnish",location:"Finland",id:1035,tag:"fi-FI",version:"Release A"},fr:nf,"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:rf,"fy-nl":{language:"Frisian",location:"Netherlands",id:1122,tag:"fy-NL",version:"Release E2"},fur:af,"fur-it":{language:"Friulian",location:"Italy",id:4096,tag:"fur-IT",version:"Release 10"},ff:of,"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:sf,"gl-es":{language:"Galician",location:"Spain",id:1110,tag:"gl-ES",version:"Release D"},lg:uf,"lg-ug":{language:"Ganda",location:"Uganda",id:4096,tag:"lg-UG",version:"Release 10"},ka:lf,"ka-ge":{language:"Georgian",location:"Georgia",id:1079,tag:"ka-GE",version:"Release C"},de:cf,"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:ff,"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:hf,"kl-gl":{language:"Greenlandic",location:"Greenland",id:1135,tag:"kl-GL",version:"Release V"},gn:df,"gn-py":{language:"Guarani",location:"Paraguay",id:1140,tag:"gn-PY",version:"Release 8.1"},gu:gf,"gu-in":{language:"Gujarati",location:"India",id:1095,tag:"gu-IN",version:"Release D"},guz:vf,"guz-ke":{language:"Gusii",location:"Kenya",id:4096,tag:"guz-KE",version:"Release 10"},ha:pf,"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:yf,"haw-us":{language:"Hawaiian",location:"United States",id:1141,tag:"haw-US",version:"Release 8"},he:mf,"he-il":{language:"Hebrew",location:"Israel",id:1037,tag:"he-IL",version:"Release B"},hi:_f,"hi-in":{language:"Hindi",location:"India",id:1081,tag:"hi-IN",version:"Release C"},hu:bf,"hu-hu":{language:"Hungarian",location:"Hungary",id:1038,tag:"hu-HU",version:"Release A"},is:wf,"is-is":{language:"Icelandic",location:"Iceland",id:1039,tag:"is-IS",version:"Release A"},ig:xf,"ig-ng":{language:"Igbo",location:"Nigeria",id:1136,tag:"ig-NG",version:"Release V"},id:kf,"id-id":{language:"Indonesian",location:"Indonesia",id:1057,tag:"id-ID",version:"Release B"},ia:Sf,"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:Cf,"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:Ef,"ga-ie":{language:"Irish",location:"Ireland",id:2108,tag:"ga-IE",version:"Release E2"},it:Af,"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:Mf,"ja-jp":{language:"Japanese",location:"Japan",id:1041,tag:"ja-JP",version:"Release A"},jv:Rf,"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:Tf,"dyo-sn":{language:"Jola-Fonyi",location:"Senegal",id:4096,tag:"dyo-SN",version:"Release 10"},kea:Of,"kea-cv":{language:"Kabuverdianu",location:"Cabo Verde",id:4096,tag:"kea-CV",version:"Release 10"},kab:Pf,"kab-dz":{language:"Kabyle",location:"Algeria",id:4096,tag:"kab-DZ",version:"Release 10"},kkj:Bf,"kkj-cm":{language:"Kako",location:"Cameroon",id:4096,tag:"kkj-CM",version:"Release 10"},kln:Df,"kln-ke":{language:"Kalenjin",location:"Kenya",id:4096,tag:"kln-KE",version:"Release 10"},kam:Nf,"kam-ke":{language:"Kamba",location:"Kenya",id:4096,tag:"kam-KE",version:"Release 10"},kn:zf,"kn-in":{language:"Kannada",location:"India",id:1099,tag:"kn-IN",version:"Release D"},ks:Ff,"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:jf,"kk-kz":{language:"Kazakh",location:"Kazakhstan",id:1087,tag:"kk-KZ",version:"Release C"},km:If,"km-kh":{language:"Khmer",location:"Cambodia",id:1107,tag:"km-KH",version:"Release V"},quc:Lf,"quc-latn-gt":{language:"K'iche",location:"Guatemala",id:1158,tag:"quc-Latn-GT",version:"Release 10"},ki:Hf,"ki-ke":{language:"Kikuyu",location:"Kenya",id:4096,tag:"ki-KE",version:"Release 10"},rw:Uf,"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:Vf,"kok-in":{language:"Konkani",location:"India",id:1111,tag:"kok-IN",version:"Release C"},ko:Wf,"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:qf,"khq-ml":{language:"Koyra Chiini",location:"Mali",id:4096,tag:"khq-ML",version:"Release 10"},ses:Kf,"ses-ml":{language:"Koyraboro Senni",location:"Mali",id:4096,tag:"ses-ML",version:"Release 10"},nmg:Yf,"nmg-cm":{language:"Kwasio",location:"Cameroon",id:4096,tag:"nmg-CM",version:"Release 10"},ky:Xf,"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:Zf,"lkt-us":{language:"Lakota",location:"United States",id:4096,tag:"lkt-US",version:"Release 10"},lag:$f,"lag-tz":{language:"Langi",location:"Tanzania",id:4096,tag:"lag-TZ",version:"Release 10"},lo:Jf,"lo-la":{language:"Lao",location:"Lao P.D.R.",id:1108,tag:"lo-LA",version:"Release V"},lv:Qf,"lv-lv":{language:"Latvian",location:"Latvia",id:1062,tag:"lv-LV",version:"Release B"},ln:th,"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:eh,"lt-lt":{language:"Lithuanian",location:"Lithuania",id:1063,tag:"lt-LT",version:"Release B"},nds:nh,"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:rh,"dsb-de":{language:"Lower Sorbian",location:"Germany",id:2094,tag:"dsb-DE",version:"Release V"},lu:ih,"lu-cd":{language:"Luba-Katanga",location:"Congo DRC",id:4096,tag:"lu-CD",version:"Release 10"},luo:ah,"luo-ke":{language:"Luo",location:"Kenya",id:4096,tag:"luo-KE",version:"Release 10"},lb:oh,"lb-lu":{language:"Luxembourgish",location:"Luxembourg",id:1134,tag:"lb-LU",version:"Release E2"},luy:sh,"luy-ke":{language:"Luyia",location:"Kenya",id:4096,tag:"luy-KE",version:"Release 10"},mk:uh,"mk-mk":{language:"Macedonian",location:"North Macedonia",id:1071,tag:"mk-MK",version:"Release C"},jmc:lh,"jmc-tz":{language:"Machame",location:"Tanzania",id:4096,tag:"jmc-TZ",version:"Release 10"},mgh:ch,"mgh-mz":{language:"Makhuwa-Meetto",location:"Mozambique",id:4096,tag:"mgh-MZ",version:"Release 10"},kde:fh,"kde-tz":{language:"Makonde",location:"Tanzania",id:4096,tag:"kde-TZ",version:"Release 10"},mg:hh,"mg-mg":{language:"Malagasy",location:"Madagascar",id:4096,tag:"mg-MG",version:"Release 8.1"},ms:dh,"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:gh,"ml-in":{language:"Malayalam",location:"India",id:1100,tag:"ml-IN",version:"Release E1"},mt:vh,"mt-mt":{language:"Maltese",location:"Malta",id:1082,tag:"mt-MT",version:"Release E1"},gv:ph,"gv-im":{language:"Manx",location:"Isle of Man",id:4096,tag:"gv-IM",version:"Release 10"},mi:yh,"mi-nz":{language:"Maori",location:"New Zealand",id:1153,tag:"mi-NZ",version:"Release E1"},arn:mh,"arn-cl":{language:"Mapudungun",location:"Chile",id:1146,tag:"arn-CL",version:"Release E2"},mr:_h,"mr-in":{language:"Marathi",location:"India",id:1102,tag:"mr-IN",version:"Release C"},mas:bh,"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:wh,"mer-ke":{language:"Meru",location:"Kenya",id:4096,tag:"mer-KE",version:"Release 10"},mgo:xh,"mgo-cm":{language:"Meta'",location:"Cameroon",id:4096,tag:"mgo-CM",version:"Release 10"},moh:kh,"moh-ca":{language:"Mohawk",location:"Canada",id:1148,tag:"moh-CA",version:"Release E2"},mn:Sh,"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:Ch,"mfe-mu":{language:"Morisyen",location:"Mauritius",id:4096,tag:"mfe-MU",version:"Release 10"},mua:Eh,"mua-cm":{language:"Mundang",location:"Cameroon",id:4096,tag:"mua-CM",version:"Release 10"},nqo:Ah,"nqo-gn":{language:"N'ko",location:"Guinea",id:4096,tag:"nqo-GN",version:"Release 8.1"},naq:Mh,"naq-na":{language:"Nama",location:"Namibia",id:4096,tag:"naq-NA",version:"Release 10"},ne:Rh,"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:Th,"nnh-cm":{language:"Ngiemboon",location:"Cameroon",id:4096,tag:"nnh-CM",version:"Release 10"},jgo:Oh,"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:Ph,"nd-zw":{language:"North Ndebele",location:"Zimbabwe",id:4096,tag:"nd-ZW",version:"Release 10"},no:Bh,nb:Dh,"nb-no":{language:"Norwegian (Bokmal)",location:"Norway",id:1044,tag:"nb-NO",version:"Release A"},nn:Nh,"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:zh,"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:Fh,"nyn-ug":{language:"Nyankole",location:"Uganda",id:4096,tag:"nyn-UG",version:"Release 10"},oc:jh,"oc-fr":{language:"Occitan",location:"France",id:1154,tag:"oc-FR",version:"Release V"},or:Ih,"or-in":{language:"Odia",location:"India",id:1096,tag:"or-IN",version:"Release V"},om:Lh,"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:Hh,"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:Uh,"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:Gh,"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:Vh,"pl-pl":{language:"Polish",location:"Poland",id:1045,tag:"pl-PL",version:"Release A"},pt:Wh,"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:qh,"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:Kh,"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:Yh,"ksh-de":{language:"Ripuarian",location:"Germany",id:4096,tag:"ksh-DE",version:"Release 10"},ro:Xh,"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:Zh,"rm-ch":{language:"Romansh",location:"Switzerland",id:1047,tag:"rm-CH",version:"Release E2"},rof:$h,"rof-tz":{language:"Rombo",location:"Tanzania",id:4096,tag:"rof-TZ",version:"Release 10"},rn:Jh,"rn-bi":{language:"Rundi",location:"Burundi",id:4096,tag:"rn-BI",version:"Release 10"},ru:Qh,"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:td,"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:nd,"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:id,"smn-fi":{language:"Sami (Inari)",location:"Finland",id:9275,tag:"smn-FI",version:"Release E1"},smj:ad,"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:od,"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:sd,"sms-fi":{language:"Sami (Skolt)",location:"Finland",id:8251,tag:"sms-FI",version:"Release E1"},sma:ud,"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:ld,"sg-cf":{language:"Sango",location:"Central African Republic",id:4096,tag:"sg-CF",version:"Release 10"},sbp:cd,"sbp-tz":{language:"Sangu",location:"Tanzania",id:4096,tag:"sbp-TZ",version:"Release 10"},sa:fd,"sa-in":{language:"Sanskrit",location:"India",id:1103,tag:"sa-IN",version:"Release C"},gd:hd,"gd-gb":{language:"Scottish Gaelic",location:"United Kingdom",id:1169,tag:"gd-GB",version:"Release 7"},seh:dd,"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:gd,"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:vd,"nso-za":{language:"Sesotho sa Leboa",location:"South Africa",id:1132,tag:"nso-ZA",version:"Release E1"},tn:pd,"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:yd,"ksb-tz":{language:"Shambala",location:"Tanzania",id:4096,tag:"ksb-TZ",version:"Release 10"},sn:md,"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:_d,"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:bd,"si-lk":{language:"Sinhala",location:"Sri Lanka",id:1115,tag:"si-LK",version:"Release V"},sk:wd,"sk-sk":{language:"Slovak",location:"Slovakia",id:1051,tag:"sk-SK",version:"Release A"},sl:xd,"sl-si":{language:"Slovenian",location:"Slovenia",id:1060,tag:"sl-SI",version:"Release A"},xog:kd,"xog-ug":{language:"Soga",location:"Uganda",id:4096,tag:"xog-UG",version:"Release 10"},so:Sd,"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:Cd,"st-za":{language:"Sotho",location:"South Africa",id:1072,tag:"st-ZA",version:"Release 8.1"},nr:Ed,"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:Ad,"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:Md,"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:Rd,"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:Td,"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:Od,"syr-sy":{language:"Syriac",location:"Syria",id:1114,tag:"syr-SY",version:"Release D"},shi:Pd,"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:Bd,"dav-ke":{language:"Taita",location:"Kenya",id:4096,tag:"dav-KE",version:"Release 10"},tg:Dd,"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:Nd,"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:zd,"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:Fd,"twq-ne":{language:"Tasawaq",location:"Niger",id:4096,tag:"twq-NE",version:"Release 10"},tt:jd,"tt-ru":{language:"Tatar",location:"Russia",id:1092,tag:"tt-RU",version:"Release D"},te:Id,"te-in":{language:"Telugu",location:"India",id:1098,tag:"te-IN",version:"Release D"},teo:Ld,"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:Hd,"th-th":{language:"Thai",location:"Thailand",id:1054,tag:"th-TH",version:"Release B"},bo:Ud,"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:Gd,"tig-er":{language:"Tigre",location:"Eritrea",id:4096,tag:"tig-ER",version:"Release 10"},ti:Vd,"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:Wd,"to-to":{language:"Tongan",location:"Tonga",id:4096,tag:"to-TO",version:"Release 10"},ts:qd,"ts-za":{language:"Tsonga",location:"South Africa",id:1073,tag:"ts-ZA",version:"Release 8.1"},tr:Kd,"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:Yd,"tk-tm":{language:"Turkmen",location:"Turkmenistan",id:1090,tag:"tk-TM",version:"Release V"},uk:Xd,"uk-ua":{language:"Ukrainian",location:"Ukraine",id:1058,tag:"uk-UA",version:"Release B"},hsb:Zd,"hsb-de":{language:"Upper Sorbian",location:"Germany",id:1070,tag:"hsb-DE",version:"Release V"},ur:$d,"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:Jd,"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:Qd,"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:tg,"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:ng,"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:ig,"vun-tz":{language:"Vunjo",location:"Tanzania",id:4096,tag:"vun-TZ",version:"Release 10"},wae:ag,"wae-ch":{language:"Walser",location:"Switzerland",id:4096,tag:"wae-CH",version:"Release 10"},cy:og,"cy-gb":{language:"Welsh",location:"United Kingdom",id:1106,tag:"cy-GB",version:"ReleaseE1"},wal:sg,"wal-et":{language:"Wolaytta",location:"Ethiopia",id:4096,tag:"wal-ET",version:"Release 10"},wo:ug,"wo-sn":{language:"Wolof",location:"Senegal",id:1160,tag:"wo-SN",version:"Release V"},xh:lg,"xh-za":{language:"Xhosa",location:"South Africa",id:1076,tag:"xh-ZA",version:"Release E1"},yav:cg,"yav-cm":{language:"Yangben",location:"Cameroon",id:4096,tag:"yav-CM",version:"Release 10"},ii:fg,"ii-cn":{language:"Yi",location:"People's Republic of China",id:1144,tag:"ii-CN",version:"Release V"},yo:hg,"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:dg,"dje-ne":{language:"Zarma",location:"Niger",id:4096,tag:"dje-NE",version:"Release 10"},zu:gg,"zu-za":{language:"Zulu",location:"South Africa",id:1077,tag:"zu-ZA",version:"Release E1"}};var pg={name:"Abkhazian",names:["Abkhazian"],"iso639-2":"abk","iso639-1":"ab"};var yg={name:"Achinese",names:["Achinese"],"iso639-2":"ace","iso639-1":null};var mg={name:"Acoli",names:["Acoli"],"iso639-2":"ach","iso639-1":null};var _g={name:"Adangme",names:["Adangme"],"iso639-2":"ada","iso639-1":null};var bg={name:"Adygei",names:["Adyghe","Adygei"],"iso639-2":"ady","iso639-1":null};var wg={name:"Adyghe",names:["Adyghe","Adygei"],"iso639-2":"ady","iso639-1":null};var xg={name:"Afar",names:["Afar"],"iso639-2":"aar","iso639-1":"aa"};var kg={name:"Afrihili",names:["Afrihili"],"iso639-2":"afh","iso639-1":null};var Sg={name:"Afrikaans",names:["Afrikaans"],"iso639-2":"afr","iso639-1":"af"};var Cg={name:"Ainu",names:["Ainu"],"iso639-2":"ain","iso639-1":null};var Eg={name:"Akan",names:["Akan"],"iso639-2":"aka","iso639-1":"ak"};var Ag={name:"Akkadian",names:["Akkadian"],"iso639-2":"akk","iso639-1":null};var Mg={name:"Albanian",names:["Albanian"],"iso639-2":"alb/sqi","iso639-1":"sq"};var Rg={name:"Alemannic",names:["Swiss German","Alemannic","Alsatian"],"iso639-2":"gsw","iso639-1":null};var Tg={name:"Aleut",names:["Aleut"],"iso639-2":"ale","iso639-1":null};var Og={name:"Alsatian",names:["Swiss German","Alemannic","Alsatian"],"iso639-2":"gsw","iso639-1":null};var Pg={name:"Amharic",names:["Amharic"],"iso639-2":"amh","iso639-1":"am"};var Bg={name:"Angika",names:["Angika"],"iso639-2":"anp","iso639-1":null};var Dg={name:"Arabic",names:["Arabic"],"iso639-2":"ara","iso639-1":"ar"};var Ng={name:"Aragonese",names:["Aragonese"],"iso639-2":"arg","iso639-1":"an"};var zg={name:"Arapaho",names:["Arapaho"],"iso639-2":"arp","iso639-1":null};var Fg={name:"Arawak",names:["Arawak"],"iso639-2":"arw","iso639-1":null};var jg={name:"Armenian",names:["Armenian"],"iso639-2":"arm/hye","iso639-1":"hy"};var Ig={name:"Aromanian",names:["Aromanian","Arumanian","Macedo-Romanian"],"iso639-2":"rup","iso639-1":null};var Lg={name:"Arumanian",names:["Aromanian","Arumanian","Macedo-Romanian"],"iso639-2":"rup","iso639-1":null};var Hg={name:"Assamese",names:["Assamese"],"iso639-2":"asm","iso639-1":"as"};var Ug={name:"Asturian",names:["Asturian","Bable","Leonese","Asturleonese"],"iso639-2":"ast","iso639-1":null};var Gg={name:"Asturleonese",names:["Asturian","Bable","Leonese","Asturleonese"],"iso639-2":"ast","iso639-1":null};var Vg={name:"Avaric",names:["Avaric"],"iso639-2":"ava","iso639-1":"av"};var Wg={name:"Avestan",names:["Avestan"],"iso639-2":"ave","iso639-1":"ae"};var qg={name:"Awadhi",names:["Awadhi"],"iso639-2":"awa","iso639-1":null};var Kg={name:"Aymara",names:["Aymara"],"iso639-2":"aym","iso639-1":"ay"};var Yg={name:"Azerbaijani",names:["Azerbaijani"],"iso639-2":"aze","iso639-1":"az"};var Xg={name:"Bable",names:["Asturian","Bable","Leonese","Asturleonese"],"iso639-2":"ast","iso639-1":null};var Zg={name:"Balinese",names:["Balinese"],"iso639-2":"ban","iso639-1":null};var $g={name:"Baluchi",names:["Baluchi"],"iso639-2":"bal","iso639-1":null};var Jg={name:"Bambara",names:["Bambara"],"iso639-2":"bam","iso639-1":"bm"};var Qg={name:"Basa",names:["Basa"],"iso639-2":"bas","iso639-1":null};var tv={name:"Bashkir",names:["Bashkir"],"iso639-2":"bak","iso639-1":"ba"};var ev={name:"Basque",names:["Basque"],"iso639-2":"baq/eus","iso639-1":"eu"};var nv={name:"Bedawiyet",names:["Beja","Bedawiyet"],"iso639-2":"bej","iso639-1":null};var rv={name:"Beja",names:["Beja","Bedawiyet"],"iso639-2":"bej","iso639-1":null};var iv={name:"Belarusian",names:["Belarusian"],"iso639-2":"bel","iso639-1":"be"};var av={name:"Bemba",names:["Bemba"],"iso639-2":"bem","iso639-1":null};var ov={name:"Bengali",names:["Bengali"],"iso639-2":"ben","iso639-1":"bn"};var sv={name:"Bhojpuri",names:["Bhojpuri"],"iso639-2":"bho","iso639-1":null};var uv={name:"Bikol",names:["Bikol"],"iso639-2":"bik","iso639-1":null};var lv={name:"Bilin",names:["Blin","Bilin"],"iso639-2":"byn","iso639-1":null};var cv={name:"Bini",names:["Bini","Edo"],"iso639-2":"bin","iso639-1":null};var fv={name:"Bislama",names:["Bislama"],"iso639-2":"bis","iso639-1":"bi"};var hv={name:"Blin",names:["Blin","Bilin"],"iso639-2":"byn","iso639-1":null};var dv={name:"Bliss",names:["Blissymbols","Blissymbolics","Bliss"],"iso639-2":"zbl","iso639-1":null};var gv={name:"Blissymbolics",names:["Blissymbols","Blissymbolics","Bliss"],"iso639-2":"zbl","iso639-1":null};var vv={name:"Blissymbols",names:["Blissymbols","Blissymbolics","Bliss"],"iso639-2":"zbl","iso639-1":null};var pv={name:"Bosnian",names:["Bosnian"],"iso639-2":"bos","iso639-1":"bs"};var yv={name:"Braj",names:["Braj"],"iso639-2":"bra","iso639-1":null};var mv={name:"Breton",names:["Breton"],"iso639-2":"bre","iso639-1":"br"};var _v={name:"Buginese",names:["Buginese"],"iso639-2":"bug","iso639-1":null};var bv={name:"Bulgarian",names:["Bulgarian"],"iso639-2":"bul","iso639-1":"bg"};var wv={name:"Buriat",names:["Buriat"],"iso639-2":"bua","iso639-1":null};var xv={name:"Burmese",names:["Burmese"],"iso639-2":"bur/mya","iso639-1":"my"};var kv={name:"Caddo",names:["Caddo"],"iso639-2":"cad","iso639-1":null};var Sv={name:"Castilian",names:["Spanish","Castilian"],"iso639-2":"spa","iso639-1":"es"};var Cv={name:"Catalan",names:["Catalan","Valencian"],"iso639-2":"cat","iso639-1":"ca"};var Ev={name:"Cebuano",names:["Cebuano"],"iso639-2":"ceb","iso639-1":null};var Av={name:"Chagatai",names:["Chagatai"],"iso639-2":"chg","iso639-1":null};var Mv={name:"Chamorro",names:["Chamorro"],"iso639-2":"cha","iso639-1":"ch"};var Rv={name:"Chechen",names:["Chechen"],"iso639-2":"che","iso639-1":"ce"};var Tv={name:"Cherokee",names:["Cherokee"],"iso639-2":"chr","iso639-1":null};var Ov={name:"Chewa",names:["Chichewa","Chewa","Nyanja"],"iso639-2":"nya","iso639-1":"ny"};var Pv={name:"Cheyenne",names:["Cheyenne"],"iso639-2":"chy","iso639-1":null};var Bv={name:"Chibcha",names:["Chibcha"],"iso639-2":"chb","iso639-1":null};var Dv={name:"Chichewa",names:["Chichewa","Chewa","Nyanja"],"iso639-2":"nya","iso639-1":"ny"};var Nv={name:"Chinese",names:["Chinese"],"iso639-2":"chi/zho","iso639-1":"zh"};var zv={name:"Chipewyan",names:["Chipewyan","Dene Suline"],"iso639-2":"chp","iso639-1":null};var Fv={name:"Choctaw",names:["Choctaw"],"iso639-2":"cho","iso639-1":null};var jv={name:"Chuang",names:["Zhuang","Chuang"],"iso639-2":"zha","iso639-1":"za"};var Iv={name:"Chuukese",names:["Chuukese"],"iso639-2":"chk","iso639-1":null};var Lv={name:"Chuvash",names:["Chuvash"],"iso639-2":"chv","iso639-1":"cv"};var Hv={name:"Coptic",names:["Coptic"],"iso639-2":"cop","iso639-1":null};var Uv={name:"Cornish",names:["Cornish"],"iso639-2":"cor","iso639-1":"kw"};var Gv={name:"Corsican",names:["Corsican"],"iso639-2":"cos","iso639-1":"co"};var Vv={name:"Cree",names:["Cree"],"iso639-2":"cre","iso639-1":"cr"};var Wv={name:"Creek",names:["Creek"],"iso639-2":"mus","iso639-1":null};var qv={name:"Croatian",names:["Croatian"],"iso639-2":"hrv","iso639-1":"hr"};var Kv={name:"Czech",names:["Czech"],"iso639-2":"cze/ces","iso639-1":"cs"};var Yv={name:"Dakota",names:["Dakota"],"iso639-2":"dak","iso639-1":null};var Xv={name:"Danish",names:["Danish"],"iso639-2":"dan","iso639-1":"da"};var Zv={name:"Dargwa",names:["Dargwa"],"iso639-2":"dar","iso639-1":null};var $v={name:"Delaware",names:["Delaware"],"iso639-2":"del","iso639-1":null};var Jv={name:"Dhivehi",names:["Divehi","Dhivehi","Maldivian"],"iso639-2":"div","iso639-1":"dv"};var Qv={name:"Dimili",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var tp={name:"Dimli",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var ep={name:"Dinka",names:["Dinka"],"iso639-2":"din","iso639-1":null};var np={name:"Divehi",names:["Divehi","Dhivehi","Maldivian"],"iso639-2":"div","iso639-1":"dv"};var rp={name:"Dogri",names:["Dogri"],"iso639-2":"doi","iso639-1":null};var ip={name:"Dogrib",names:["Dogrib"],"iso639-2":"dgr","iso639-1":null};var ap={name:"Duala",names:["Duala"],"iso639-2":"dua","iso639-1":null};var op={name:"Dutch",names:["Dutch","Flemish"],"iso639-2":"dut/nld","iso639-1":"nl"};var sp={name:"Dyula",names:["Dyula"],"iso639-2":"dyu","iso639-1":null};var up={name:"Dzongkha",names:["Dzongkha"],"iso639-2":"dzo","iso639-1":"dz"};var lp={name:"Edo",names:["Bini","Edo"],"iso639-2":"bin","iso639-1":null};var cp={name:"Efik",names:["Efik"],"iso639-2":"efi","iso639-1":null};var fp={name:"Ekajuk",names:["Ekajuk"],"iso639-2":"eka","iso639-1":null};var hp={name:"Elamite",names:["Elamite"],"iso639-2":"elx","iso639-1":null};var dp={name:"English",names:["English"],"iso639-2":"eng","iso639-1":"en"};var gp={name:"Erzya",names:["Erzya"],"iso639-2":"myv","iso639-1":null};var vp={name:"Esperanto",names:["Esperanto"],"iso639-2":"epo","iso639-1":"eo"};var pp={name:"Estonian",names:["Estonian"],"iso639-2":"est","iso639-1":"et"};var yp={name:"Ewe",names:["Ewe"],"iso639-2":"ewe","iso639-1":"ee"};var mp={name:"Ewondo",names:["Ewondo"],"iso639-2":"ewo","iso639-1":null};var _p={name:"Fang",names:["Fang"],"iso639-2":"fan","iso639-1":null};var bp={name:"Fanti",names:["Fanti"],"iso639-2":"fat","iso639-1":null};var wp={name:"Faroese",names:["Faroese"],"iso639-2":"fao","iso639-1":"fo"};var xp={name:"Fijian",names:["Fijian"],"iso639-2":"fij","iso639-1":"fj"};var kp={name:"Filipino",names:["Filipino","Pilipino"],"iso639-2":"fil","iso639-1":null};var Sp={name:"Finnish",names:["Finnish"],"iso639-2":"fin","iso639-1":"fi"};var Cp={name:"Flemish",names:["Dutch","Flemish"],"iso639-2":"dut/nld","iso639-1":"nl"};var Ep={name:"Fon",names:["Fon"],"iso639-2":"fon","iso639-1":null};var Ap={name:"French",names:["French"],"iso639-2":"fre/fra","iso639-1":"fr"};var Mp={name:"Friulian",names:["Friulian"],"iso639-2":"fur","iso639-1":null};var Rp={name:"Fulah",names:["Fulah"],"iso639-2":"ful","iso639-1":"ff"};var Tp={name:"Ga",names:["Ga"],"iso639-2":"gaa","iso639-1":null};var Op={name:"Gaelic",names:["Gaelic","Scottish Gaelic"],"iso639-2":"gla","iso639-1":"gd"};var Pp={name:"Galician",names:["Galician"],"iso639-2":"glg","iso639-1":"gl"};var Bp={name:"Ganda",names:["Ganda"],"iso639-2":"lug","iso639-1":"lg"};var Dp={name:"Gayo",names:["Gayo"],"iso639-2":"gay","iso639-1":null};var Np={name:"Gbaya",names:["Gbaya"],"iso639-2":"gba","iso639-1":null};var zp={name:"Geez",names:["Geez"],"iso639-2":"gez","iso639-1":null};var Fp={name:"Georgian",names:["Georgian"],"iso639-2":"geo/kat","iso639-1":"ka"};var jp={name:"German",names:["German"],"iso639-2":"ger/deu","iso639-1":"de"};var Ip={name:"Gikuyu",names:["Kikuyu","Gikuyu"],"iso639-2":"kik","iso639-1":"ki"};var Lp={name:"Gilbertese",names:["Gilbertese"],"iso639-2":"gil","iso639-1":null};var Hp={name:"Gondi",names:["Gondi"],"iso639-2":"gon","iso639-1":null};var Up={name:"Gorontalo",names:["Gorontalo"],"iso639-2":"gor","iso639-1":null};var Gp={name:"Gothic",names:["Gothic"],"iso639-2":"got","iso639-1":null};var Vp={name:"Grebo",names:["Grebo"],"iso639-2":"grb","iso639-1":null};var Wp={name:"Greenlandic",names:["Kalaallisut","Greenlandic"],"iso639-2":"kal","iso639-1":"kl"};var qp={name:"Guarani",names:["Guarani"],"iso639-2":"grn","iso639-1":"gn"};var Kp={name:"Gujarati",names:["Gujarati"],"iso639-2":"guj","iso639-1":"gu"};var Yp={name:"Haida",names:["Haida"],"iso639-2":"hai","iso639-1":null};var Xp={name:"Haitian",names:["Haitian","Haitian Creole"],"iso639-2":"hat","iso639-1":"ht"};var Zp={name:"Hausa",names:["Hausa"],"iso639-2":"hau","iso639-1":"ha"};var $p={name:"Hawaiian",names:["Hawaiian"],"iso639-2":"haw","iso639-1":null};var Jp={name:"Hebrew",names:["Hebrew"],"iso639-2":"heb","iso639-1":"he"};var Qp={name:"Herero",names:["Herero"],"iso639-2":"her","iso639-1":"hz"};var t0={name:"Hiligaynon",names:["Hiligaynon"],"iso639-2":"hil","iso639-1":null};var e0={name:"Hindi",names:["Hindi"],"iso639-2":"hin","iso639-1":"hi"};var n0={name:"Hittite",names:["Hittite"],"iso639-2":"hit","iso639-1":null};var r0={name:"Hmong",names:["Hmong","Mong"],"iso639-2":"hmn","iso639-1":null};var i0={name:"Hungarian",names:["Hungarian"],"iso639-2":"hun","iso639-1":"hu"};var a0={name:"Hupa",names:["Hupa"],"iso639-2":"hup","iso639-1":null};var o0={name:"Iban",names:["Iban"],"iso639-2":"iba","iso639-1":null};var s0={name:"Icelandic",names:["Icelandic"],"iso639-2":"ice/isl","iso639-1":"is"};var u0={name:"Ido",names:["Ido"],"iso639-2":"ido","iso639-1":"io"};var l0={name:"Igbo",names:["Igbo"],"iso639-2":"ibo","iso639-1":"ig"};var c0={name:"Iloko",names:["Iloko"],"iso639-2":"ilo","iso639-1":null};var f0={name:"Indonesian",names:["Indonesian"],"iso639-2":"ind","iso639-1":"id"};var h0={name:"Ingush",names:["Ingush"],"iso639-2":"inh","iso639-1":null};var d0={name:"Interlingue",names:["Interlingue","Occidental"],"iso639-2":"ile","iso639-1":"ie"};var g0={name:"Inuktitut",names:["Inuktitut"],"iso639-2":"iku","iso639-1":"iu"};var v0={name:"Inupiaq",names:["Inupiaq"],"iso639-2":"ipk","iso639-1":"ik"};var p0={name:"Irish",names:["Irish"],"iso639-2":"gle","iso639-1":"ga"};var y0={name:"Italian",names:["Italian"],"iso639-2":"ita","iso639-1":"it"};var m0={name:"Japanese",names:["Japanese"],"iso639-2":"jpn","iso639-1":"ja"};var _0={name:"Javanese",names:["Javanese"],"iso639-2":"jav","iso639-1":"jv"};var b0={name:"Jingpho",names:["Kachin","Jingpho"],"iso639-2":"kac","iso639-1":null};var w0={name:"Kabardian",names:["Kabardian"],"iso639-2":"kbd","iso639-1":null};var x0={name:"Kabyle",names:["Kabyle"],"iso639-2":"kab","iso639-1":null};var k0={name:"Kachin",names:["Kachin","Jingpho"],"iso639-2":"kac","iso639-1":null};var S0={name:"Kalaallisut",names:["Kalaallisut","Greenlandic"],"iso639-2":"kal","iso639-1":"kl"};var C0={name:"Kalmyk",names:["Kalmyk","Oirat"],"iso639-2":"xal","iso639-1":null};var E0={name:"Kamba",names:["Kamba"],"iso639-2":"kam","iso639-1":null};var A0={name:"Kannada",names:["Kannada"],"iso639-2":"kan","iso639-1":"kn"};var M0={name:"Kanuri",names:["Kanuri"],"iso639-2":"kau","iso639-1":"kr"};var R0={name:"Kapampangan",names:["Pampanga","Kapampangan"],"iso639-2":"pam","iso639-1":null};var T0={name:"Karelian",names:["Karelian"],"iso639-2":"krl","iso639-1":null};var O0={name:"Kashmiri",names:["Kashmiri"],"iso639-2":"kas","iso639-1":"ks"};var P0={name:"Kashubian",names:["Kashubian"],"iso639-2":"csb","iso639-1":null};var B0={name:"Kawi",names:["Kawi"],"iso639-2":"kaw","iso639-1":null};var D0={name:"Kazakh",names:["Kazakh"],"iso639-2":"kaz","iso639-1":"kk"};var N0={name:"Khasi",names:["Khasi"],"iso639-2":"kha","iso639-1":null};var z0={name:"Khotanese",names:["Khotanese","Sakan"],"iso639-2":"kho","iso639-1":null};var F0={name:"Kikuyu",names:["Kikuyu","Gikuyu"],"iso639-2":"kik","iso639-1":"ki"};var j0={name:"Kimbundu",names:["Kimbundu"],"iso639-2":"kmb","iso639-1":null};var I0={name:"Kinyarwanda",names:["Kinyarwanda"],"iso639-2":"kin","iso639-1":"rw"};var L0={name:"Kirdki",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var H0={name:"Kirghiz",names:["Kirghiz","Kyrgyz"],"iso639-2":"kir","iso639-1":"ky"};var U0={name:"Kirmanjki",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var G0={name:"Klingon",names:["Klingon","tlhIngan-Hol"],"iso639-2":"tlh","iso639-1":null};var V0={name:"Komi",names:["Komi"],"iso639-2":"kom","iso639-1":"kv"};var W0={name:"Kongo",names:["Kongo"],"iso639-2":"kon","iso639-1":"kg"};var q0={name:"Konkani",names:["Konkani"],"iso639-2":"kok","iso639-1":null};var K0={name:"Korean",names:["Korean"],"iso639-2":"kor","iso639-1":"ko"};var Y0={name:"Kosraean",names:["Kosraean"],"iso639-2":"kos","iso639-1":null};var X0={name:"Kpelle",names:["Kpelle"],"iso639-2":"kpe","iso639-1":null};var Z0={name:"Kuanyama",names:["Kuanyama","Kwanyama"],"iso639-2":"kua","iso639-1":"kj"};var $0={name:"Kumyk",names:["Kumyk"],"iso639-2":"kum","iso639-1":null};var J0={name:"Kurdish",names:["Kurdish"],"iso639-2":"kur","iso639-1":"ku"};var Q0={name:"Kurukh",names:["Kurukh"],"iso639-2":"kru","iso639-1":null};var t1={name:"Kutenai",names:["Kutenai"],"iso639-2":"kut","iso639-1":null};var e1={name:"Kwanyama",names:["Kuanyama","Kwanyama"],"iso639-2":"kua","iso639-1":"kj"};var n1={name:"Kyrgyz",names:["Kirghiz","Kyrgyz"],"iso639-2":"kir","iso639-1":"ky"};var r1={name:"Ladino",names:["Ladino"],"iso639-2":"lad","iso639-1":null};var i1={name:"Lahnda",names:["Lahnda"],"iso639-2":"lah","iso639-1":null};var a1={name:"Lamba",names:["Lamba"],"iso639-2":"lam","iso639-1":null};var o1={name:"Lao",names:["Lao"],"iso639-2":"lao","iso639-1":"lo"};var s1={name:"Latin",names:["Latin"],"iso639-2":"lat","iso639-1":"la"};var u1={name:"Latvian",names:["Latvian"],"iso639-2":"lav","iso639-1":"lv"};var l1={name:"Leonese",names:["Asturian","Bable","Leonese","Asturleonese"],"iso639-2":"ast","iso639-1":null};var c1={name:"Letzeburgesch",names:["Luxembourgish","Letzeburgesch"],"iso639-2":"ltz","iso639-1":"lb"};var f1={name:"Lezghian",names:["Lezghian"],"iso639-2":"lez","iso639-1":null};var h1={name:"Limburgan",names:["Limburgan","Limburger","Limburgish"],"iso639-2":"lim","iso639-1":"li"};var d1={name:"Limburger",names:["Limburgan","Limburger","Limburgish"],"iso639-2":"lim","iso639-1":"li"};var g1={name:"Limburgish",names:["Limburgan","Limburger","Limburgish"],"iso639-2":"lim","iso639-1":"li"};var v1={name:"Lingala",names:["Lingala"],"iso639-2":"lin","iso639-1":"ln"};var p1={name:"Lithuanian",names:["Lithuanian"],"iso639-2":"lit","iso639-1":"lt"};var y1={name:"Lojban",names:["Lojban"],"iso639-2":"jbo","iso639-1":null};var m1={name:"Lozi",names:["Lozi"],"iso639-2":"loz","iso639-1":null};var _1={name:"Luiseno",names:["Luiseno"],"iso639-2":"lui","iso639-1":null};var b1={name:"Lunda",names:["Lunda"],"iso639-2":"lun","iso639-1":null};var w1={name:"Lushai",names:["Lushai"],"iso639-2":"lus","iso639-1":null};var x1={name:"Luxembourgish",names:["Luxembourgish","Letzeburgesch"],"iso639-2":"ltz","iso639-1":"lb"};var k1={name:"Macedonian",names:["Macedonian"],"iso639-2":"mac/mkd","iso639-1":"mk"};var S1={name:"Madurese",names:["Madurese"],"iso639-2":"mad","iso639-1":null};var C1={name:"Magahi",names:["Magahi"],"iso639-2":"mag","iso639-1":null};var E1={name:"Maithili",names:["Maithili"],"iso639-2":"mai","iso639-1":null};var A1={name:"Makasar",names:["Makasar"],"iso639-2":"mak","iso639-1":null};var M1={name:"Malagasy",names:["Malagasy"],"iso639-2":"mlg","iso639-1":"mg"};var R1={name:"Malay",names:["Malay"],"iso639-2":"may/msa","iso639-1":"ms"};var T1={name:"Malayalam",names:["Malayalam"],"iso639-2":"mal","iso639-1":"ml"};var O1={name:"Maldivian",names:["Divehi","Dhivehi","Maldivian"],"iso639-2":"div","iso639-1":"dv"};var P1={name:"Maltese",names:["Maltese"],"iso639-2":"mlt","iso639-1":"mt"};var B1={name:"Manchu",names:["Manchu"],"iso639-2":"mnc","iso639-1":null};var D1={name:"Mandar",names:["Mandar"],"iso639-2":"mdr","iso639-1":null};var N1={name:"Mandingo",names:["Mandingo"],"iso639-2":"man","iso639-1":null};var z1={name:"Manipuri",names:["Manipuri"],"iso639-2":"mni","iso639-1":null};var F1={name:"Manx",names:["Manx"],"iso639-2":"glv","iso639-1":"gv"};var j1={name:"Maori",names:["Maori"],"iso639-2":"mao/mri","iso639-1":"mi"};var I1={name:"Mapuche",names:["Mapudungun","Mapuche"],"iso639-2":"arn","iso639-1":null};var L1={name:"Mapudungun",names:["Mapudungun","Mapuche"],"iso639-2":"arn","iso639-1":null};var H1={name:"Marathi",names:["Marathi"],"iso639-2":"mar","iso639-1":"mr"};var U1={name:"Mari",names:["Mari"],"iso639-2":"chm","iso639-1":null};var G1={name:"Marshallese",names:["Marshallese"],"iso639-2":"mah","iso639-1":"mh"};var V1={name:"Marwari",names:["Marwari"],"iso639-2":"mwr","iso639-1":null};var W1={name:"Masai",names:["Masai"],"iso639-2":"mas","iso639-1":null};var q1={name:"Mende",names:["Mende"],"iso639-2":"men","iso639-1":null};var K1={name:"Micmac",names:["Mi'kmaq","Micmac"],"iso639-2":"mic","iso639-1":null};var Y1={name:"Minangkabau",names:["Minangkabau"],"iso639-2":"min","iso639-1":null};var X1={name:"Mirandese",names:["Mirandese"],"iso639-2":"mwl","iso639-1":null};var Z1={name:"Mohawk",names:["Mohawk"],"iso639-2":"moh","iso639-1":null};var $1={name:"Moksha",names:["Moksha"],"iso639-2":"mdf","iso639-1":null};var J1={name:"Moldavian",names:["Romanian","Moldavian","Moldovan"],"iso639-2":"rum/ron","iso639-1":"ro"};var Q1={name:"Moldovan",names:["Romanian","Moldavian","Moldovan"],"iso639-2":"rum/ron","iso639-1":"ro"};var ty={name:"Mong",names:["Hmong","Mong"],"iso639-2":"hmn","iso639-1":null};var ey={name:"Mongo",names:["Mongo"],"iso639-2":"lol","iso639-1":null};var ny={name:"Mongolian",names:["Mongolian"],"iso639-2":"mon","iso639-1":"mn"};var ry={name:"Montenegrin",names:["Montenegrin"],"iso639-2":"cnr","iso639-1":null};var iy={name:"Mossi",names:["Mossi"],"iso639-2":"mos","iso639-1":null};var ay={name:"Nauru",names:["Nauru"],"iso639-2":"nau","iso639-1":"na"};var oy={name:"Navaho",names:["Navajo","Navaho"],"iso639-2":"nav","iso639-1":"nv"};var sy={name:"Navajo",names:["Navajo","Navaho"],"iso639-2":"nav","iso639-1":"nv"};var uy={name:"Ndonga",names:["Ndonga"],"iso639-2":"ndo","iso639-1":"ng"};var ly={name:"Neapolitan",names:["Neapolitan"],"iso639-2":"nap","iso639-1":null};var cy={name:"Nepali",names:["Nepali"],"iso639-2":"nep","iso639-1":"ne"};var fy={name:"Newari",names:["Nepal Bhasa","Newari"],"iso639-2":"new","iso639-1":null};var hy={name:"Nias",names:["Nias"],"iso639-2":"nia","iso639-1":null};var dy={name:"Niuean",names:["Niuean"],"iso639-2":"niu","iso639-1":null};var gy={name:"Nogai",names:["Nogai"],"iso639-2":"nog","iso639-1":null};var vy={name:"Norwegian",names:["Norwegian"],"iso639-2":"nor","iso639-1":"no"};var py={name:"Nuosu",names:["Sichuan Yi","Nuosu"],"iso639-2":"iii","iso639-1":"ii"};var yy={name:"Nyamwezi",names:["Nyamwezi"],"iso639-2":"nym","iso639-1":null};var my={name:"Nyanja",names:["Chichewa","Chewa","Nyanja"],"iso639-2":"nya","iso639-1":"ny"};var _y={name:"Nyankole",names:["Nyankole"],"iso639-2":"nyn","iso639-1":null};var by={name:"Nyoro",names:["Nyoro"],"iso639-2":"nyo","iso639-1":null};var wy={name:"Nzima",names:["Nzima"],"iso639-2":"nzi","iso639-1":null};var xy={name:"Occidental",names:["Interlingue","Occidental"],"iso639-2":"ile","iso639-1":"ie"};var ky={name:"Oirat",names:["Kalmyk","Oirat"],"iso639-2":"xal","iso639-1":null};var Sy={name:"Ojibwa",names:["Ojibwa"],"iso639-2":"oji","iso639-1":"oj"};var Cy={name:"Oriya",names:["Oriya"],"iso639-2":"ori","iso639-1":"or"};var Ey={name:"Oromo",names:["Oromo"],"iso639-2":"orm","iso639-1":"om"};var Ay={name:"Osage",names:["Osage"],"iso639-2":"osa","iso639-1":null};var My={name:"Ossetian",names:["Ossetian","Ossetic"],"iso639-2":"oss","iso639-1":"os"};var Ry={name:"Ossetic",names:["Ossetian","Ossetic"],"iso639-2":"oss","iso639-1":"os"};var Ty={name:"Pahlavi",names:["Pahlavi"],"iso639-2":"pal","iso639-1":null};var Oy={name:"Palauan",names:["Palauan"],"iso639-2":"pau","iso639-1":null};var Py={name:"Pali",names:["Pali"],"iso639-2":"pli","iso639-1":"pi"};var By={name:"Pampanga",names:["Pampanga","Kapampangan"],"iso639-2":"pam","iso639-1":null};var Dy={name:"Pangasinan",names:["Pangasinan"],"iso639-2":"pag","iso639-1":null};var Ny={name:"Panjabi",names:["Panjabi","Punjabi"],"iso639-2":"pan","iso639-1":"pa"};var zy={name:"Papiamento",names:["Papiamento"],"iso639-2":"pap","iso639-1":null};var Fy={name:"Pashto",names:["Pushto","Pashto"],"iso639-2":"pus","iso639-1":"ps"};var jy={name:"Pedi",names:["Pedi","Sepedi","Northern Sotho"],"iso639-2":"nso","iso639-1":null};var Iy={name:"Persian",names:["Persian"],"iso639-2":"per/fas","iso639-1":"fa"};var Ly={name:"Phoenician",names:["Phoenician"],"iso639-2":"phn","iso639-1":null};var Hy={name:"Pilipino",names:["Filipino","Pilipino"],"iso639-2":"fil","iso639-1":null};var Uy={name:"Pohnpeian",names:["Pohnpeian"],"iso639-2":"pon","iso639-1":null};var Gy={name:"Polish",names:["Polish"],"iso639-2":"pol","iso639-1":"pl"};var Vy={name:"Portuguese",names:["Portuguese"],"iso639-2":"por","iso639-1":"pt"};var Wy={name:"Punjabi",names:["Panjabi","Punjabi"],"iso639-2":"pan","iso639-1":"pa"};var qy={name:"Pushto",names:["Pushto","Pashto"],"iso639-2":"pus","iso639-1":"ps"};var Ky={name:"Quechua",names:["Quechua"],"iso639-2":"que","iso639-1":"qu"};var Yy={name:"Rajasthani",names:["Rajasthani"],"iso639-2":"raj","iso639-1":null};var Xy={name:"Rapanui",names:["Rapanui"],"iso639-2":"rap","iso639-1":null};var Zy={name:"Rarotongan",names:["Rarotongan","Cook Islands Maori"],"iso639-2":"rar","iso639-1":null};var $y={name:"Romanian",names:["Romanian","Moldavian","Moldovan"],"iso639-2":"rum/ron","iso639-1":"ro"};var Jy={name:"Romansh",names:["Romansh"],"iso639-2":"roh","iso639-1":"rm"};var Qy={name:"Romany",names:["Romany"],"iso639-2":"rom","iso639-1":null};var tm={name:"Rundi",names:["Rundi"],"iso639-2":"run","iso639-1":"rn"};var em={name:"Russian",names:["Russian"],"iso639-2":"rus","iso639-1":"ru"};var nm={name:"Sakan",names:["Khotanese","Sakan"],"iso639-2":"kho","iso639-1":null};var rm={name:"Samoan",names:["Samoan"],"iso639-2":"smo","iso639-1":"sm"};var im={name:"Sandawe",names:["Sandawe"],"iso639-2":"sad","iso639-1":null};var am={name:"Sango",names:["Sango"],"iso639-2":"sag","iso639-1":"sg"};var om={name:"Sanskrit",names:["Sanskrit"],"iso639-2":"san","iso639-1":"sa"};var sm={name:"Santali",names:["Santali"],"iso639-2":"sat","iso639-1":null};var um={name:"Sardinian",names:["Sardinian"],"iso639-2":"srd","iso639-1":"sc"};var lm={name:"Sasak",names:["Sasak"],"iso639-2":"sas","iso639-1":null};var cm={name:"Scots",names:["Scots"],"iso639-2":"sco","iso639-1":null};var fm={name:"Selkup",names:["Selkup"],"iso639-2":"sel","iso639-1":null};var hm={name:"Sepedi",names:["Pedi","Sepedi","Northern Sotho"],"iso639-2":"nso","iso639-1":null};var dm={name:"Serbian",names:["Serbian"],"iso639-2":"srp","iso639-1":"sr"};var gm={name:"Serer",names:["Serer"],"iso639-2":"srr","iso639-1":null};var vm={name:"Shan",names:["Shan"],"iso639-2":"shn","iso639-1":null};var pm={name:"Shona",names:["Shona"],"iso639-2":"sna","iso639-1":"sn"};var ym={name:"Sicilian",names:["Sicilian"],"iso639-2":"scn","iso639-1":null};var mm={name:"Sidamo",names:["Sidamo"],"iso639-2":"sid","iso639-1":null};var _m={name:"Siksika",names:["Siksika"],"iso639-2":"bla","iso639-1":null};var bm={name:"Sindhi",names:["Sindhi"],"iso639-2":"snd","iso639-1":"sd"};var wm={name:"Sinhala",names:["Sinhala","Sinhalese"],"iso639-2":"sin","iso639-1":"si"};var xm={name:"Sinhalese",names:["Sinhala","Sinhalese"],"iso639-2":"sin","iso639-1":"si"};var km={name:"Slovak",names:["Slovak"],"iso639-2":"slo/slk","iso639-1":"sk"};var Sm={name:"Slovenian",names:["Slovenian"],"iso639-2":"slv","iso639-1":"sl"};var Cm={name:"Sogdian",names:["Sogdian"],"iso639-2":"sog","iso639-1":null};var Em={name:"Somali",names:["Somali"],"iso639-2":"som","iso639-1":"so"};var Am={name:"Soninke",names:["Soninke"],"iso639-2":"snk","iso639-1":null};var Mm={name:"Spanish",names:["Spanish","Castilian"],"iso639-2":"spa","iso639-1":"es"};var Rm={name:"Sukuma",names:["Sukuma"],"iso639-2":"suk","iso639-1":null};var Tm={name:"Sumerian",names:["Sumerian"],"iso639-2":"sux","iso639-1":null};var Om={name:"Sundanese",names:["Sundanese"],"iso639-2":"sun","iso639-1":"su"};var Pm={name:"Susu",names:["Susu"],"iso639-2":"sus","iso639-1":null};var Bm={name:"Swahili",names:["Swahili"],"iso639-2":"swa","iso639-1":"sw"};var Dm={name:"Swati",names:["Swati"],"iso639-2":"ssw","iso639-1":"ss"};var Nm={name:"Swedish",names:["Swedish"],"iso639-2":"swe","iso639-1":"sv"};var zm={name:"Syriac",names:["Syriac"],"iso639-2":"syr","iso639-1":null};var Fm={name:"Tagalog",names:["Tagalog"],"iso639-2":"tgl","iso639-1":"tl"};var jm={name:"Tahitian",names:["Tahitian"],"iso639-2":"tah","iso639-1":"ty"};var Im={name:"Tajik",names:["Tajik"],"iso639-2":"tgk","iso639-1":"tg"};var Lm={name:"Tamashek",names:["Tamashek"],"iso639-2":"tmh","iso639-1":null};var Hm={name:"Tamil",names:["Tamil"],"iso639-2":"tam","iso639-1":"ta"};var Um={name:"Tatar",names:["Tatar"],"iso639-2":"tat","iso639-1":"tt"};var Gm={name:"Telugu",names:["Telugu"],"iso639-2":"tel","iso639-1":"te"};var Vm={name:"Tereno",names:["Tereno"],"iso639-2":"ter","iso639-1":null};var Wm={name:"Tetum",names:["Tetum"],"iso639-2":"tet","iso639-1":null};var qm={name:"Thai",names:["Thai"],"iso639-2":"tha","iso639-1":"th"};var Km={name:"Tibetan",names:["Tibetan"],"iso639-2":"tib/bod","iso639-1":"bo"};var Ym={name:"Tigre",names:["Tigre"],"iso639-2":"tig","iso639-1":null};var Xm={name:"Tigrinya",names:["Tigrinya"],"iso639-2":"tir","iso639-1":"ti"};var Zm={name:"Timne",names:["Timne"],"iso639-2":"tem","iso639-1":null};var $m={name:"Tiv",names:["Tiv"],"iso639-2":"tiv","iso639-1":null};var Jm={name:"Tlingit",names:["Tlingit"],"iso639-2":"tli","iso639-1":null};var Qm={name:"Tokelau",names:["Tokelau"],"iso639-2":"tkl","iso639-1":null};var t_={name:"Tsimshian",names:["Tsimshian"],"iso639-2":"tsi","iso639-1":null};var e_={name:"Tsonga",names:["Tsonga"],"iso639-2":"tso","iso639-1":"ts"};var n_={name:"Tswana",names:["Tswana"],"iso639-2":"tsn","iso639-1":"tn"};var r_={name:"Tumbuka",names:["Tumbuka"],"iso639-2":"tum","iso639-1":null};var i_={name:"Turkish",names:["Turkish"],"iso639-2":"tur","iso639-1":"tr"};var a_={name:"Turkmen",names:["Turkmen"],"iso639-2":"tuk","iso639-1":"tk"};var o_={name:"Tuvalu",names:["Tuvalu"],"iso639-2":"tvl","iso639-1":null};var s_={name:"Tuvinian",names:["Tuvinian"],"iso639-2":"tyv","iso639-1":null};var u_={name:"Twi",names:["Twi"],"iso639-2":"twi","iso639-1":"tw"};var l_={name:"Udmurt",names:["Udmurt"],"iso639-2":"udm","iso639-1":null};var c_={name:"Ugaritic",names:["Ugaritic"],"iso639-2":"uga","iso639-1":null};var f_={name:"Uighur",names:["Uighur","Uyghur"],"iso639-2":"uig","iso639-1":"ug"};var h_={name:"Ukrainian",names:["Ukrainian"],"iso639-2":"ukr","iso639-1":"uk"};var d_={name:"Umbundu",names:["Umbundu"],"iso639-2":"umb","iso639-1":null};var g_={name:"Undetermined",names:["Undetermined"],"iso639-2":"und","iso639-1":null};var v_={name:"Urdu",names:["Urdu"],"iso639-2":"urd","iso639-1":"ur"};var p_={name:"Uyghur",names:["Uighur","Uyghur"],"iso639-2":"uig","iso639-1":"ug"};var y_={name:"Uzbek",names:["Uzbek"],"iso639-2":"uzb","iso639-1":"uz"};var m_={name:"Vai",names:["Vai"],"iso639-2":"vai","iso639-1":null};var __={name:"Valencian",names:["Catalan","Valencian"],"iso639-2":"cat","iso639-1":"ca"};var b_={name:"Venda",names:["Venda"],"iso639-2":"ven","iso639-1":"ve"};var w_={name:"Vietnamese",names:["Vietnamese"],"iso639-2":"vie","iso639-1":"vi"};var x_={name:"Votic",names:["Votic"],"iso639-2":"vot","iso639-1":null};var k_={name:"Walloon",names:["Walloon"],"iso639-2":"wln","iso639-1":"wa"};var S_={name:"Waray",names:["Waray"],"iso639-2":"war","iso639-1":null};var C_={name:"Washo",names:["Washo"],"iso639-2":"was","iso639-1":null};var E_={name:"Welsh",names:["Welsh"],"iso639-2":"wel/cym","iso639-1":"cy"};var A_={name:"Wolaitta",names:["Wolaitta","Wolaytta"],"iso639-2":"wal","iso639-1":null};var M_={name:"Wolaytta",names:["Wolaitta","Wolaytta"],"iso639-2":"wal","iso639-1":null};var R_={name:"Wolof",names:["Wolof"],"iso639-2":"wol","iso639-1":"wo"};var T_={name:"Xhosa",names:["Xhosa"],"iso639-2":"xho","iso639-1":"xh"};var O_={name:"Yakut",names:["Yakut"],"iso639-2":"sah","iso639-1":null};var P_={name:"Yao",names:["Yao"],"iso639-2":"yao","iso639-1":null};var B_={name:"Yapese",names:["Yapese"],"iso639-2":"yap","iso639-1":null};var D_={name:"Yiddish",names:["Yiddish"],"iso639-2":"yid","iso639-1":"yi"};var N_={name:"Yoruba",names:["Yoruba"],"iso639-2":"yor","iso639-1":"yo"};var z_={name:"Zapotec",names:["Zapotec"],"iso639-2":"zap","iso639-1":null};var F_={name:"Zaza",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var j_={name:"Zazaki",names:["Zaza","Dimili","Dimli","Kirdki","Kirmanjki","Zazaki"],"iso639-2":"zza","iso639-1":null};var I_={name:"Zenaga",names:["Zenaga"],"iso639-2":"zen","iso639-1":null};var L_={name:"Zhuang",names:["Zhuang","Chuang"],"iso639-2":"zha","iso639-1":"za"};var H_={name:"Zulu",names:["Zulu"],"iso639-2":"zul","iso639-1":"zu"};var U_={name:"Zuni",names:["Zuni"],"iso639-2":"zun","iso639-1":null};var G_={Abkhazian:pg,Achinese:yg,Acoli:mg,Adangme:_g,Adygei:bg,Adyghe:wg,Afar:xg,Afrihili:kg,Afrikaans:Sg,"Afro-Asiatic languages":{name:"Afro-Asiatic languages",names:["Afro-Asiatic languages"],"iso639-2":"afa","iso639-1":null},Ainu:Cg,Akan:Eg,Akkadian:Ag,Albanian:Mg,Alemannic:Rg,Aleut:Tg,"Algonquian languages":{name:"Algonquian languages",names:["Algonquian languages"],"iso639-2":"alg","iso639-1":null},Alsatian:Og,"Altaic languages":{name:"Altaic languages",names:["Altaic languages"],"iso639-2":"tut","iso639-1":null},Amharic:Pg,Angika:Bg,"Apache languages":{name:"Apache languages",names:["Apache languages"],"iso639-2":"apa","iso639-1":null},Arabic:Dg,Aragonese:Ng,Arapaho:zg,Arawak:Fg,Armenian:jg,Aromanian:Ig,"Artificial languages":{name:"Artificial languages",names:["Artificial languages"],"iso639-2":"art","iso639-1":null},Arumanian:Lg,Assamese:Hg,Asturian:Ug,Asturleonese:Gg,"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:Vg,Avestan:Wg,Awadhi:qg,Aymara:Kg,Azerbaijani:Yg,Bable:Xg,Balinese:Zg,"Baltic languages":{name:"Baltic languages",names:["Baltic languages"],"iso639-2":"bat","iso639-1":null},Baluchi:$g,Bambara:Jg,"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:Qg,Bashkir:tv,Basque:ev,"Batak languages":{name:"Batak languages",names:["Batak languages"],"iso639-2":"btk","iso639-1":null},Bedawiyet:nv,Beja:rv,Belarusian:iv,Bemba:av,Bengali:ov,"Berber languages":{name:"Berber languages",names:["Berber languages"],"iso639-2":"ber","iso639-1":null},Bhojpuri:sv,"Bihari languages":{name:"Bihari languages",names:["Bihari languages"],"iso639-2":"bih","iso639-1":"bh"},Bikol:uv,Bilin:lv,Bini:cv,Bislama:fv,Blin:hv,Bliss:dv,Blissymbolics:gv,Blissymbols:vv,"Bokmål, Norwegian":{name:"Bokmål, Norwegian",names:["Bokmål, Norwegian","Norwegian Bokmål"],"iso639-2":"nob","iso639-1":"nb"},Bosnian:pv,Braj:yv,Breton:mv,Buginese:_v,Bulgarian:bv,Buriat:wv,Burmese:xv,Caddo:kv,Castilian:Sv,Catalan:Cv,"Caucasian languages":{name:"Caucasian languages",names:["Caucasian languages"],"iso639-2":"cau","iso639-1":null},Cebuano:Ev,"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:Av,"Chamic languages":{name:"Chamic languages",names:["Chamic languages"],"iso639-2":"cmc","iso639-1":null},Chamorro:Mv,Chechen:Rv,Cherokee:Tv,Chewa:Ov,Cheyenne:Pv,Chibcha:Bv,Chichewa:Dv,Chinese:Nv,"Chinook jargon":{name:"Chinook jargon",names:["Chinook jargon"],"iso639-2":"chn","iso639-1":null},Chipewyan:zv,Choctaw:Fv,Chuang:jv,"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:Iv,Chuvash:Lv,"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:Hv,Cornish:Uv,Corsican:Gv,Cree:Vv,Creek:Wv,"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:qv,"Cushitic languages":{name:"Cushitic languages",names:["Cushitic languages"],"iso639-2":"cus","iso639-1":null},Czech:Kv,Dakota:Yv,Danish:Xv,Dargwa:Zv,Delaware:$v,"Dene Suline":{name:"Dene Suline",names:["Chipewyan","Dene Suline"],"iso639-2":"chp","iso639-1":null},Dhivehi:Jv,Dimili:Qv,Dimli:tp,Dinka:ep,Divehi:np,Dogri:rp,Dogrib:ip,"Dravidian languages":{name:"Dravidian languages",names:["Dravidian languages"],"iso639-2":"dra","iso639-1":null},Duala:ap,Dutch:op,"Dutch, Middle (ca.1050-1350)":{name:"Dutch, Middle (ca.1050-1350)",names:["Dutch, Middle (ca.1050-1350)"],"iso639-2":"dum","iso639-1":null},Dyula:sp,Dzongkha:up,"Eastern Frisian":{name:"Eastern Frisian",names:["Eastern Frisian"],"iso639-2":"frs","iso639-1":null},Edo:lp,Efik:cp,"Egyptian (Ancient)":{name:"Egyptian (Ancient)",names:["Egyptian (Ancient)"],"iso639-2":"egy","iso639-1":null},Ekajuk:fp,Elamite:hp,English:dp,"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:gp,Esperanto:vp,Estonian:pp,Ewe:yp,Ewondo:mp,Fang:_p,Fanti:bp,Faroese:wp,Fijian:xp,Filipino:kp,Finnish:Sp,"Finno-Ugrian languages":{name:"Finno-Ugrian languages",names:["Finno-Ugrian languages"],"iso639-2":"fiu","iso639-1":null},Flemish:Cp,Fon:Ep,French:Ap,"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:Mp,Fulah:Rp,Ga:Tp,Gaelic:Op,"Galibi Carib":{name:"Galibi Carib",names:["Galibi Carib"],"iso639-2":"car","iso639-1":null},Galician:Pp,Ganda:Bp,Gayo:Dp,Gbaya:Np,Geez:zp,Georgian:Fp,German:jp,"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:Ip,Gilbertese:Lp,Gondi:Hp,Gorontalo:Up,Gothic:Gp,Grebo:Vp,"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:Wp,Guarani:qp,Gujarati:Kp,"Gwich'in":{name:"Gwich'in",names:["Gwich'in"],"iso639-2":"gwi","iso639-1":null},Haida:Yp,Haitian:Xp,"Haitian Creole":{name:"Haitian Creole",names:["Haitian","Haitian Creole"],"iso639-2":"hat","iso639-1":"ht"},Hausa:Zp,Hawaiian:$p,Hebrew:Jp,Herero:Qp,Hiligaynon:t0,"Himachali languages":{name:"Himachali languages",names:["Himachali languages","Western Pahari languages"],"iso639-2":"him","iso639-1":null},Hindi:e0,"Hiri Motu":{name:"Hiri Motu",names:["Hiri Motu"],"iso639-2":"hmo","iso639-1":"ho"},Hittite:n0,Hmong:r0,Hungarian:i0,Hupa:a0,Iban:o0,Icelandic:s0,Ido:u0,Igbo:l0,"Ijo languages":{name:"Ijo languages",names:["Ijo languages"],"iso639-2":"ijo","iso639-1":null},Iloko:c0,"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:f0,Ingush:h0,"Interlingua (International Auxiliary Language Association)":{name:"Interlingua (International Auxiliary Language Association)",names:["Interlingua (International Auxiliary Language Association)"],"iso639-2":"ina","iso639-1":"ia"},Interlingue:d0,Inuktitut:g0,Inupiaq:v0,"Iranian languages":{name:"Iranian languages",names:["Iranian languages"],"iso639-2":"ira","iso639-1":null},Irish:p0,"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:y0,Japanese:m0,Javanese:_0,Jingpho:b0,"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:w0,Kabyle:x0,Kachin:k0,Kalaallisut:S0,Kalmyk:C0,Kamba:E0,Kannada:A0,Kanuri:M0,Kapampangan:R0,"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:T0,"Karen languages":{name:"Karen languages",names:["Karen languages"],"iso639-2":"kar","iso639-1":null},Kashmiri:O0,Kashubian:P0,Kawi:B0,Kazakh:D0,Khasi:N0,"Khoisan languages":{name:"Khoisan languages",names:["Khoisan languages"],"iso639-2":"khi","iso639-1":null},Khotanese:z0,Kikuyu:F0,Kimbundu:j0,Kinyarwanda:I0,Kirdki:L0,Kirghiz:H0,Kirmanjki:U0,Klingon:G0,Komi:V0,Kongo:W0,Konkani:q0,Korean:K0,Kosraean:Y0,Kpelle:X0,"Kru languages":{name:"Kru languages",names:["Kru languages"],"iso639-2":"kro","iso639-1":null},Kuanyama:Z0,Kumyk:$0,Kurdish:J0,Kurukh:Q0,Kutenai:t1,Kwanyama:e1,Kyrgyz:n1,Ladino:r1,Lahnda:i1,Lamba:a1,"Land Dayak languages":{name:"Land Dayak languages",names:["Land Dayak languages"],"iso639-2":"day","iso639-1":null},Lao:o1,Latin:s1,Latvian:u1,Leonese:l1,Letzeburgesch:c1,Lezghian:f1,Limburgan:h1,Limburger:d1,Limburgish:g1,Lingala:v1,Lithuanian:p1,Lojban:y1,"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:m1,"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:_1,"Lule Sami":{name:"Lule Sami",names:["Lule Sami"],"iso639-2":"smj","iso639-1":null},Lunda:b1,"Luo (Kenya and Tanzania)":{name:"Luo (Kenya and Tanzania)",names:["Luo (Kenya and Tanzania)"],"iso639-2":"luo","iso639-1":null},Lushai:w1,Luxembourgish:x1,"Macedo-Romanian":{name:"Macedo-Romanian",names:["Aromanian","Arumanian","Macedo-Romanian"],"iso639-2":"rup","iso639-1":null},Macedonian:k1,Madurese:S1,Magahi:C1,Maithili:E1,Makasar:A1,Malagasy:M1,Malay:R1,Malayalam:T1,Maldivian:O1,Maltese:P1,Manchu:B1,Mandar:D1,Mandingo:N1,Manipuri:z1,"Manobo languages":{name:"Manobo languages",names:["Manobo languages"],"iso639-2":"mno","iso639-1":null},Manx:F1,Maori:j1,Mapuche:I1,Mapudungun:L1,Marathi:H1,Mari:U1,Marshallese:G1,Marwari:V1,Masai:W1,"Mayan languages":{name:"Mayan languages",names:["Mayan languages"],"iso639-2":"myn","iso639-1":null},Mende:q1,"Mi'kmaq":{name:"Mi'kmaq",names:["Mi'kmaq","Micmac"],"iso639-2":"mic","iso639-1":null},Micmac:K1,Minangkabau:Y1,Mirandese:X1,Mohawk:Z1,Moksha:$1,Moldavian:J1,Moldovan:Q1,"Mon-Khmer languages":{name:"Mon-Khmer languages",names:["Mon-Khmer languages"],"iso639-2":"mkh","iso639-1":null},Mong:ty,Mongo:ey,Mongolian:ny,Montenegrin:ry,Mossi:iy,"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:ay,Navaho:oy,Navajo:sy,"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:uy,Neapolitan:ly,"Nepal Bhasa":{name:"Nepal Bhasa",names:["Nepal Bhasa","Newari"],"iso639-2":"new","iso639-1":null},Nepali:cy,Newari:fy,Nias:hy,"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:dy,"No linguistic content":{name:"No linguistic content",names:["No linguistic content","Not applicable"],"iso639-2":"zxx","iso639-1":null},Nogai:gy,"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:vy,"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:py,Nyamwezi:yy,Nyanja:my,Nyankole:_y,"Nynorsk, Norwegian":{name:"Nynorsk, Norwegian",names:["Norwegian Nynorsk","Nynorsk, Norwegian"],"iso639-2":"nno","iso639-1":"nn"},Nyoro:by,Nzima:wy,Occidental:xy,"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:ky,Ojibwa:Sy,"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:Cy,Oromo:Ey,Osage:Ay,Ossetian:My,Ossetic:Ry,"Otomian languages":{name:"Otomian languages",names:["Otomian languages"],"iso639-2":"oto","iso639-1":null},Pahlavi:Ty,Palauan:Oy,Pali:Py,Pampanga:By,Pangasinan:Dy,Panjabi:Ny,Papiamento:zy,"Papuan languages":{name:"Papuan languages",names:["Papuan languages"],"iso639-2":"paa","iso639-1":null},Pashto:Fy,Pedi:jy,Persian:Iy,"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:Ly,Pilipino:Hy,Pohnpeian:Uy,Polish:Gy,Portuguese:Vy,"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:Wy,Pushto:qy,Quechua:Ky,Rajasthani:Yy,Rapanui:Xy,Rarotongan:Zy,"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:$y,Romansh:Jy,Romany:Qy,Rundi:tm,Russian:em,Sakan:nm,"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:rm,Sandawe:im,Sango:am,Sanskrit:om,Santali:sm,Sardinian:um,Sasak:lm,"Saxon, Low":{name:"Saxon, Low",names:["Low German","Low Saxon","German, Low","Saxon, Low"],"iso639-2":"nds","iso639-1":null},Scots:cm,"Scottish Gaelic":{name:"Scottish Gaelic",names:["Gaelic","Scottish Gaelic"],"iso639-2":"gla","iso639-1":"gd"},Selkup:fm,"Semitic languages":{name:"Semitic languages",names:["Semitic languages"],"iso639-2":"sem","iso639-1":null},Sepedi:hm,Serbian:dm,Serer:gm,Shan:vm,Shona:pm,"Sichuan Yi":{name:"Sichuan Yi",names:["Sichuan Yi","Nuosu"],"iso639-2":"iii","iso639-1":"ii"},Sicilian:ym,Sidamo:mm,"Sign Languages":{name:"Sign Languages",names:["Sign Languages"],"iso639-2":"sgn","iso639-1":null},Siksika:_m,Sindhi:bm,Sinhala:wm,Sinhalese:xm,"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:km,Slovenian:Sm,Sogdian:Cm,Somali:Em,"Songhai languages":{name:"Songhai languages",names:["Songhai languages"],"iso639-2":"son","iso639-1":null},Soninke:Am,"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:Mm,"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:Rm,Sumerian:Tm,Sundanese:Om,Susu:Pm,Swahili:Bm,Swati:Dm,Swedish:Nm,"Swiss German":{name:"Swiss German",names:["Swiss German","Alemannic","Alsatian"],"iso639-2":"gsw","iso639-1":null},Syriac:zm,Tagalog:Fm,Tahitian:jm,"Tai languages":{name:"Tai languages",names:["Tai languages"],"iso639-2":"tai","iso639-1":null},Tajik:Im,Tamashek:Lm,Tamil:Hm,Tatar:Um,Telugu:Gm,Tereno:Vm,Tetum:Wm,Thai:qm,Tibetan:Km,Tigre:Ym,Tigrinya:Xm,Timne:Zm,Tiv:$m,"tlhIngan-Hol":{name:"tlhIngan-Hol",names:["Klingon","tlhIngan-Hol"],"iso639-2":"tlh","iso639-1":null},Tlingit:Jm,"Tok Pisin":{name:"Tok Pisin",names:["Tok Pisin"],"iso639-2":"tpi","iso639-1":null},Tokelau:Qm,"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:t_,Tsonga:e_,Tswana:n_,Tumbuka:r_,"Tupi languages":{name:"Tupi languages",names:["Tupi languages"],"iso639-2":"tup","iso639-1":null},Turkish:i_,"Turkish, Ottoman (1500-1928)":{name:"Turkish, Ottoman (1500-1928)",names:["Turkish, Ottoman (1500-1928)"],"iso639-2":"ota","iso639-1":null},Turkmen:a_,Tuvalu:o_,Tuvinian:s_,Twi:u_,Udmurt:l_,Ugaritic:c_,Uighur:f_,Ukrainian:h_,Umbundu:d_,"Uncoded languages":{name:"Uncoded languages",names:["Uncoded languages"],"iso639-2":"mis","iso639-1":null},Undetermined:g_,"Upper Sorbian":{name:"Upper Sorbian",names:["Upper Sorbian"],"iso639-2":"hsb","iso639-1":null},Urdu:v_,Uyghur:p_,Uzbek:y_,Vai:m_,Valencian:__,Venda:b_,Vietnamese:w_,"Volapük":{name:"Volapük",names:["Volapük"],"iso639-2":"vol","iso639-1":"vo"},Votic:x_,"Wakashan languages":{name:"Wakashan languages",names:["Wakashan languages"],"iso639-2":"wak","iso639-1":null},Walloon:k_,Waray:S_,Washo:C_,Welsh:E_,"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:A_,Wolaytta:M_,Wolof:R_,Xhosa:T_,Yakut:O_,Yao:P_,Yapese:B_,Yiddish:D_,Yoruba:N_,"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:z_,Zaza:F_,Zazaki:j_,Zenaga:I_,Zhuang:L_,Zulu:H_,Zuni:U_};function V_(t,e,n){if(e in t){Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true})}else{t[e]=n}return t}var W_=[];var q_=Object.keys(G_);Object.keys(vg).map(function(t){var e=vg[t];var n=q_.find(function(t){return t.toLowerCase()===e.language.toLowerCase()});if(e.location&&n){var r;W_.push((r={},V_(r,"name",e.language),V_(r,"location",e.location),V_(r,"tag",e.tag),V_(r,"lcid",e.id),V_(r,"iso639-2",G_[n]["iso639-2"]),V_(r,"iso639-1",G_[n]["iso639-1"]),r))}});var K_={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 Y_(e){if(typeof e!=="string"||e.length===5)return e;if(K_[e])return K_[e];var t=W_.filter(function(t){return t["iso639-1"]===e});if(!t.length)return e;else if(t.length===1)return t[0].tag;else if(t.find(function(t){return t.tag==="".concat(e,"-").concat(e.toUpperCase())}))return"".concat(e,"-").concat(e.toUpperCase());else return t[0].tag}function X_(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}function Z_(){return"".concat(X_()).concat(X_(),"-").concat(X_(),"-").concat(X_(),"-").concat(X_(),"-").concat(X_()).concat(X_()).concat(X_())}var $_="D3PLUS-COMMON-RESET";var J_={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 Show":"Clic para Mostrar","Click to Show All":"Clic para Mostrar Todo",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","Shift+Click to Highlight":"Mayús+Clic para Resaltar",Total:"Total",Values:"Valores"};var Q_={and:"e",Back:"Voltar","Click to Expand":"Clique para Expandir","Click to Hide":"Clique para Ocultar","Click to Highlight":"Clique para Destacar","Click to Show":"Clique para Mostrar","Click to Show All":"Clique para Mostrar Tudo",Download:"Baixar","Loading Visualization":"Carregando Visualização","No Data Available":"Dados Não Disponíveis","Powered by D3plus":"Funciona com D3plus",Share:"Porcentagem","Shift+Click to Hide":"Shift+Clique para Ocultar","Shift+Click to Highlight":"Shift+Clique para Destacar",Total:"Total",Values:"Valores"};var tb={"es-ES":J_,"pt-BR":Q_};function eb(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function nb(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function rb(t,e,n){if(e)nb(t.prototype,e);if(n)nb(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function ib(t,e){if(Jl(t)){for(var n in t){if({}.hasOwnProperty.call(t,n)&&!n.startsWith("_")){var r=e&&Jl(e)?e[n]:undefined;if(t[n]===$_){if(r)t[n]=r;else delete t[n]}else if(Jl(t[n])){ib(t[n],r)}}}}}function ab(t){var e=[];do{e=e.concat(Object.getOwnPropertyNames(t));t=Object.getPrototypeOf(t)}while(t&&t!==Object.prototype);return e.filter(function(t){return t.indexOf("_")!==0&&!["config","constructor","parent","render"].includes(t)})}var ob=function(){function t(){var r=this;eb(this,t);this._locale="en-US";this._on={};this._parent={};this._translate=function(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:r._locale;var n=tb[e];return n&&n[t]?n[t]:t};this._uuid=Z_()}rb(t,[{key:"config",value:function n(t){var r=this;if(!this._configDefault){var n={};ab(this.__proto__).forEach(function(t){var e=r[t]();if(e!==r)n[t]=Jl(e)?tc({},e):e});this._configDefault=n}if(arguments.length){for(var e in t){if({}.hasOwnProperty.call(t,e)&&e in this){var i=t[e];if(i===$_){if(e==="on")this._on=this._configDefault[e];else this[e](this._configDefault[e])}else{ib(i,this._configDefault[e]);this[e](i)}}}return this}else{var a={};ab(this.__proto__).forEach(function(t){a[t]=r[t]()});return a}}},{key:"locale",value:function t(e){return arguments.length?(this._locale=Y_(e),this):this._locale}},{key:"on",value:function t(e,n){return arguments.length===2?(this._on[e]=n,this):arguments.length?typeof e==="string"?this._on[e]:(this._on=Object.assign({},this._on,e),this):this._on}},{key:"parent",value:function t(e){return arguments.length?(this._parent=e,this):this._parent}},{key:"translate",value:function t(e){return arguments.length?(this._translate=e,this):this._translate}},{key:"shapeConfig",value:function t(e){return arguments.length?(this._shapeConfig=tc(this._shapeConfig,e),this):this._shapeConfig}}]);return t}();function sb(n){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];if(!t||!(t instanceof Array)||!t.length)return undefined;return t.reduce(function(t,e){return Math.abs(e-n)<Math.abs(t-n)?e:t})}function ub(t){"@babel/helpers - typeof";return ub="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ub(t)}function lb(){var o=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this._shapeConfig;var i=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"shape";var e=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;var n={duration:this._duration,on:{}};var a=function t(a){return function(t,e,n,r){if(!a)return a;var i;while(t.__d3plus__){if(i)t.__d3plusParent__=i;i=t;e=t.i;t=t.data||t.feature}return a.bind(o)(t,e,n||i,r)}};var s=function t(e,n){for(var r in n){if({}.hasOwnProperty.call(n,r)&&!r.includes(".")||r.includes(".".concat(i))){e.on[r]=a(n[r])}}};var u=function e(t){return t.map(function(t){if(t instanceof Array)return e(t);else if(ub(t)==="object")return r({},t);else if(typeof t==="function")return a(t);else return t})};var r=function t(e,n){for(var r in n){if({}.hasOwnProperty.call(n,r)){if(r==="on")s(e,n[r]);else if(typeof n[r]==="function"){e[r]=a(n[r])}else if(n[r]instanceof Array){e[r]=u(n[r])}else if(ub(n[r])==="object"){if(!e[r])e[r]={};e[r].on={};t(e[r],n[r])}else e[r]=n[r]}}};r(n,t);if(this._on)s(n,this._on);if(e&&t[e]){r(n,t[e]);if(t[e].on)s(n,t[e].on)}return n}function cb(e){return function t(){return e}}function fb(t,e){e=Object.assign({},{condition:true,enter:{},exit:{},duration:0,parent:Ks("body"),update:{}},e);var n=/\.([^#]+)/g.exec(t),r=/#([^\.]+)/g.exec(t),i=Gl().duration(e.duration),a=/^([^.^#]+)/g.exec(t)[1];var o=e.parent.selectAll(t.includes(":")?t.split(":")[1]:t).data(e.condition?[null]:[]);var s=o.enter().append(a).call(ec,e.enter);if(r)s.attr("id",r[1]);if(n)s.attr("class",n[1]);o.exit().transition(i).call(ec,e.exit).remove();var u=s.merge(o);u.transition(i).call(ec,e.update);return u}var hb="$";function db(){}db.prototype=gb.prototype={constructor:db,has:function t(e){return hb+e in this},get:function t(e){return this[hb+e]},set:function t(e,n){this[hb+e]=n;return this},remove:function t(e){var n=hb+e;return n in this&&delete this[n]},clear:function t(){for(var e in this){if(e[0]===hb)delete this[e]}},keys:function t(){var t=[];for(var e in this){if(e[0]===hb)t.push(e.slice(1))}return t},values:function t(){var t=[];for(var e in this){if(e[0]===hb)t.push(this[e])}return t},entries:function t(){var t=[];for(var e in this){if(e[0]===hb)t.push({key:e.slice(1),value:this[e]})}return t},size:function t(){var t=0;for(var e in this){if(e[0]===hb)++t}return t},empty:function t(){for(var e in this){if(e[0]===hb)return false}return true},each:function t(e){for(var n in this){if(n[0]===hb)e(this[n],n.slice(1),this)}}};function gb(t,e){var n=new db;if(t instanceof db)t.each(function(t,e){n.set(e,t)});else if(Array.isArray(t)){var r=-1,i=t.length,a;if(e==null)while(++r<i){n.set(r,t[r])}else while(++r<i){n.set(e(a=t[r],r,t),a)}}else if(t)for(var o in t){n.set(o,t[o])}return n}function vb(){var h=[],a=[],d,g,n;function v(t,n,r,i){if(n>=h.length){if(d!=null)t.sort(d);return g!=null?g(t):t}var e=-1,a=t.length,o=h[n++],s,u,l=gb(),c,f=r();while(++e<a){if(c=l.get(s=o(u=t[e])+"")){c.push(u)}else{l.set(s,[u])}}l.each(function(t,e){i(f,e,v(t,n,r,i))});return f}function o(t,n){if(++n>h.length)return t;var r,i=a[n-1];if(g!=null&&n>=h.length)r=t.entries();else r=[],t.each(function(t,e){r.push({key:e,values:o(t,n)})});return i!=null?r.sort(function(t,e){return i(t.key,e.key)}):r}return n={object:function t(e){return v(e,0,pb,yb)},map:function t(e){return v(e,0,mb,_b)},entries:function t(e){return o(v(e,0,mb,_b),0)},key:function t(e){h.push(e);return n},sortKeys:function t(e){a[h.length-1]=e;return n},sortValues:function t(e){d=e;return n},rollup:function t(e){g=e;return n}}}function pb(){return{}}function yb(t,e,n){t[e]=n}function mb(){return gb()}function _b(t,e,n){t.set(e,n)}function bb(){}var wb=gb.prototype;bb.prototype={constructor:bb,has:wb.has,add:function t(e){e+="";this[hb+e]=e;return this},remove:wb.remove,clear:wb.clear,values:wb.keys,size:wb.size,empty:wb.empty,each:wb.each};function xb(t){var e=[];for(var n in t){e.push(n)}return e}function kb(t){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:function(t){return t};var i=t.map(r).map(function(t){return t instanceof Date?+t:t});return t.filter(function(t,e){var n=r(t);return i.indexOf(n instanceof Date?+n:n)===e})}function Sb(i){var a=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var t=kb(Ae(i.map(function(t){return xb(t)}))),o={};t.forEach(function(e){var t;if(a[e])t=a[e](i,function(t){return t[e]});else{var n=i.map(function(t){return t[e]});var r=n.map(function(t){return t||t===false?t.constructor:t}).filter(function(t){return t!==void 0});if(!r.length)t=undefined;else if(r.indexOf(Array)>=0){t=Ae(n.map(function(t){return t instanceof Array?t:[t]}));t=kb(t);if(t.length===1)t=t[0]}else if(r.indexOf(String)>=0){t=kb(n);if(t.length===1)t=t[0]}else if(r.indexOf(Number)>=0)t=Re(n);else if(r.indexOf(Object)>=0){t=kb(n.filter(function(t){return t}));if(t.length===1)t=t[0];else t=Sb(t)}else{t=kb(n.filter(function(t){return t!==void 0}));if(t.length===1)t=t[0]}}o[e]=t});return o}function Cb(t){var i;if(typeof t==="number")i=[t];else i=t.split(/\s+/);if(i.length===1)i=[i[0],i[0],i[0],i[0]];else if(i.length===2)i=i.concat(i);else if(i.length===3)i.push(i[1]);return["top","right","bottom","left"].reduce(function(t,e,n){var r=parseFloat(i[n]);t[e]=r||0;return t},{})}function Eb(){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 Ab(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};for(var n in e){if({}.hasOwnProperty.call(e,n))t.style(n,e[n])}}function Mb(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:1;var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:1;t=Ln(t);e=Ln(e);var i=Math.abs(e.h*r-t.h*n);if(i>180)i-=360;var a=(Math.min(t.h,e.h)+i/2)%360;var o=t.l+(e.l*r-t.l*n)/2,s=t.s+(e.s*r-t.s*n)/2;if(a<0)a+=360;return Ln("hsl(".concat(a,",").concat(s*100,"%,").concat(o*100,"%)")).toString()}function Rb(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function Tb(t,e){switch(arguments.length){case 0:break;case 1:{if(typeof t==="function")this.interpolator(t);else this.range(t);break}default:{this.domain(t);if(typeof e==="function")this.interpolator(e);else this.range(e);break}}return this}var Ob=Symbol("implicit");function Pb(){var a=new Map,o=[],r=[],i=Ob;function s(t){var e=t+"",n=a.get(e);if(!n){if(i!==Ob)return i;a.set(e,n=o.push(t))}return r[(n-1)%r.length]}s.domain=function(t){if(!arguments.length)return o.slice();o=[],a=new Map;var e=_createForOfIteratorHelper2(t),n;try{for(e.s();!(n=e.n()).done;){var r=n.value;var i=r+"";if(a.has(i))continue;a.set(i,o.push(r))}}catch(t){e.e(t)}finally{e.f()}return s};s.range=function(t){return arguments.length?(r=Array.from(t),s):r.slice()};s.unknown=function(t){return arguments.length?(i=t,s):i};s.copy=function(){return Pb(o,r).unknown(i)};Rb.apply(s,arguments);return s}function Bb(){var t=Pb().unknown(undefined),a=t.domain,o=t.range,s=0,u=1,l,c,f=false,h=0,d=0,g=.5;delete t.unknown;function r(){var t=a().length,e=u<s,n=e?u:s,r=e?s:u;l=(r-n)/Math.max(1,t-h+d*2);if(f)l=Math.floor(l);n+=(r-n-l*(t-h))*g;c=l*(1-h);if(f)n=Math.round(n),c=Math.round(c);var i=Me(t).map(function(t){return n+l*t});return o(e?i.reverse():i)}t.domain=function(t){return arguments.length?(a(t),r()):a()};t.range=function(t){var e,n;return arguments.length?(e=t,n=_slicedToArray2(e,2),s=n[0],u=n[1],e,s=+s,u=+u,r()):[s,u]};t.rangeRound=function(t){var e,n;return e=t,n=_slicedToArray2(e,2),s=n[0],u=n[1],e,s=+s,u=+u,f=true,r()};t.bandwidth=function(){return c};t.step=function(){return l};t.round=function(t){return arguments.length?(f=!!t,r()):f};t.padding=function(t){return arguments.length?(h=Math.min(1,d=+t),r()):h};t.paddingInner=function(t){return arguments.length?(h=Math.min(1,t),r()):h};t.paddingOuter=function(t){return arguments.length?(d=+t,r()):d};t.align=function(t){return arguments.length?(g=Math.max(0,Math.min(1,t)),r()):g};t.copy=function(){return Bb(a(),[s,u]).round(f).paddingInner(h).paddingOuter(d).align(g)};return Rb.apply(r(),arguments)}function Db(t){var e=t.copy;t.padding=t.paddingOuter;delete t.paddingInner;delete t.paddingOuter;t.copy=function(){return Db(e())};return t}function Nb(){return Db(Bb.apply(null,arguments).paddingInner(1))}function zb(t){return function(){return t}}function Fb(t){return+t}var jb=[0,1];function Ib(t){return t}function Lb(e,n){return(n-=e=+e)?function(t){return(t-e)/n}:zb(isNaN(n)?NaN:.5)}function Hb(e,n){var t;if(e>n)t=e,e=n,n=t;return function(t){return Math.max(e,Math.min(n,t))}}function Ub(t,e,n){var r=t[0],i=t[1],a=e[0],o=e[1];if(i<r)r=Lb(i,r),a=n(o,a);else r=Lb(r,i),a=n(a,o);return function(t){return a(r(t))}}function Gb(n,t,e){var r=Math.min(n.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;if(n[r]<n[0]){n=n.slice().reverse();t=t.slice().reverse()}while(++o<r){i[o]=Lb(n[o],n[o+1]);a[o]=e(t[o],t[o+1])}return function(t){var e=h(n,t,1,r)-1;return a[e](i[e](t))}}function Vb(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Wb(){var e=jb,n=jb,r=or,i,a,o,s=Ib,u,l,c;function f(){var t=Math.min(e.length,n.length);if(s!==Ib)s=Hb(e[0],e[t-1]);u=t>2?Gb:Ub;l=c=null;return h}function h(t){return isNaN(t=+t)?o:(l||(l=u(e.map(i),n,r)))(i(s(t)))}h.invert=function(t){return s(a((c||(c=u(n,e.map(i),Qn)))(t)))};h.domain=function(t){return arguments.length?(e=Array.from(t,Fb),f()):e.slice()};h.range=function(t){return arguments.length?(n=Array.from(t),f()):n.slice()};h.rangeRound=function(t){return n=Array.from(t),r=sr,f()};h.clamp=function(t){return arguments.length?(s=t?true:Ib,f()):s!==Ib};h.interpolate=function(t){return arguments.length?(r=t,f()):r};h.unknown=function(t){return arguments.length?(o=t,h):o};return function(t,e){i=t,a=e;return f()}}function qb(){return Wb()(Ib,Ib)}function Kb(t,e,n,r){var i=M(t,e,n),a;r=Lr(r==null?",f":r);switch(r.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));if(r.precision==null&&!isNaN(a=ni(i,o)))r.precision=a;return Qr(r,o)}case"":case"e":case"g":case"p":case"r":{if(r.precision==null&&!isNaN(a=ri(i,Math.max(Math.abs(t),Math.abs(e)))))r.precision=a-(r.type==="e");break}case"f":case"%":{if(r.precision==null&&!isNaN(a=ei(i)))r.precision=a-(r.type==="%")*2;break}}return Jr(r)}function Yb(l){var c=l.domain;l.ticks=function(t){var e=c();return ft(e[0],e[e.length-1],t==null?10:t)};l.tickFormat=function(t,e){var n=c();return Kb(n[0],n[n.length-1],t==null?10:t,e)};l.nice=function(t){if(t==null)t=10;var e=c();var n=0;var r=e.length-1;var i=e[n];var a=e[r];var o;var s;var u=10;if(a<i){s=i,i=a,a=s;s=n,n=r,r=s}while(u-- >0){s=A(i,a,t);if(s===o){e[n]=i;e[r]=a;return c(e)}else if(s>0){i=Math.floor(i/s)*s;a=Math.ceil(a/s)*s}else if(s<0){i=Math.ceil(i*s)/s;a=Math.floor(a*s)/s}else{break}o=s}return l};return l}function Xb(){var t=qb();t.copy=function(){return Vb(t,Xb())};Rb.apply(t,arguments);return Yb(t)}function Zb(e){var n;function r(t){return isNaN(t=+t)?n:t}r.invert=r;r.domain=r.range=function(t){return arguments.length?(e=Array.from(t,Fb),r):e.slice()};r.unknown=function(t){return arguments.length?(n=t,r):n};r.copy=function(){return Zb(e).unknown(n)};e=arguments.length?Array.from(e,Fb):[0,1];return Yb(r)}function $b(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],a=t[r],o;if(a<i){o=n,n=r,r=o;o=i,i=a,a=o}t[n]=e.floor(i);t[r]=e.ceil(a);return t}function Jb(t){return Math.log(t)}function Qb(t){return Math.exp(t)}function t2(t){return-Math.log(-t)}function e2(t){return-Math.exp(-t)}function n2(t){return isFinite(t)?+("1e"+t):t<0?0:t}function r2(e){return e===10?n2:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}function i2(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}function a2(e){return function(t){return-e(-t)}}function o2(t){var e=t(Jb,Qb),h=e.domain,d=10,g,v;function n(){g=i2(d),v=r2(d);if(h()[0]<0){g=a2(g),v=a2(v);t(t2,e2)}else{t(Jb,Qb)}return e}e.base=function(t){return arguments.length?(d=+t,n()):d};e.domain=function(t){return arguments.length?(h(t),n()):h()};e.ticks=function(t){var e=h(),n=e[0],r=e[e.length-1],i;if(i=r<n)a=n,n=r,r=a;var a=g(n),o=g(r),s,u,l,c=t==null?10:+t,f=[];if(!(d%1)&&o-a<c){a=Math.floor(a),o=Math.ceil(o);if(n>0)for(;a<=o;++a){for(u=1,s=v(a);u<d;++u){l=s*u;if(l<n)continue;if(l>r)break;f.push(l)}}else for(;a<=o;++a){for(u=d-1,s=v(a);u>=1;--u){l=s*u;if(l<n)continue;if(l>r)break;f.push(l)}}if(f.length*2<c)f=ft(n,r,c)}else{f=ft(a,o,Math.min(o-a,c)).map(v)}return i?f.reverse():f};e.tickFormat=function(t,n){if(n==null)n=d===10?".0e":",";if(typeof n!=="function")n=Jr(n);if(t===Infinity)return n;if(t==null)t=10;var r=Math.max(1,d*t/e.ticks().length);return function(t){var e=t/v(Math.round(g(t)));if(e*d<d-.5)e*=d;return e<=r?n(t):""}};e.nice=function(){return h($b(h(),{floor:function t(e){return v(Math.floor(g(e)))},ceil:function t(e){return v(Math.ceil(g(e)))}}))};return e}function s2(){var t=o2(Wb()).domain([1,10]);t.copy=function(){return Vb(t,s2()).base(t.base())};Rb.apply(t,arguments);return t}function u2(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function l2(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function c2(e){var n=1,t=e(u2(n),l2(n));t.constant=function(t){return arguments.length?e(u2(n=+t),l2(n)):n};return Yb(t)}function f2(){var t=c2(Wb());t.copy=function(){return Vb(t,f2()).constant(t.constant())};return Rb.apply(t,arguments)}function h2(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function d2(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function g2(t){return t<0?-t*t:t*t}function v2(t){var e=t(Ib,Ib),n=1;function r(){return n===1?t(Ib,Ib):n===.5?t(d2,g2):t(h2(n),h2(1/n))}e.exponent=function(t){return arguments.length?(n=+t,r()):n};return Yb(e)}function p2(){var t=v2(Wb());t.copy=function(){return Vb(t,p2()).exponent(t.exponent())};Rb.apply(t,arguments);return t}function y2(){return p2.apply(null,arguments).exponent(.5)}function m2(t){return Math.sign(t)*t*t}function _2(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function b2(){var n=qb(),e=[0,1],r=false,i;function a(t){var e=_2(n(t));return isNaN(e)?i:r?Math.round(e):e}a.invert=function(t){return n.invert(m2(t))};a.domain=function(t){return arguments.length?(n.domain(t),a):n.domain()};a.range=function(t){return arguments.length?(n.range((e=Array.from(t,Fb)).map(m2)),a):e.slice()};a.rangeRound=function(t){return a.range(t).round(true)};a.round=function(t){return arguments.length?(r=!!t,a):r};a.clamp=function(t){return arguments.length?(n.clamp(t),a):n.clamp()};a.unknown=function(t){return arguments.length?(i=t,a):i};a.copy=function(){return b2(n.domain(),e).round(r).clamp(n.clamp()).unknown(i)};Rb.apply(a,arguments);return Yb(a)}function w2(){var i=[],n=[],r=[],e;function a(){var t=0,e=Math.max(1,n.length);r=new Array(e-1);while(++t<e){r[t-1]=O(i,t/e)}return o}function o(t){return isNaN(t=+t)?e:n[h(r,t)]}o.invertExtent=function(t){var e=n.indexOf(t);return e<0?[NaN,NaN]:[e>0?r[e-1]:i[0],e<r.length?r[e]:i[i.length-1]]};o.domain=function(t){if(!arguments.length)return i.slice();i=[];var e=_createForOfIteratorHelper2(t),n;try{for(e.s();!(n=e.n()).done;){var r=n.value;if(r!=null&&!isNaN(r=+r))i.push(r)}}catch(t){e.e(t)}finally{e.f()}i.sort(v);return a()};o.range=function(t){return arguments.length?(n=Array.from(t),a()):n.slice()};o.unknown=function(t){return arguments.length?(e=t,o):e};o.quantiles=function(){return r.slice()};o.copy=function(){return w2().domain(i).range(n).unknown(e)};return Rb.apply(o,arguments)}function x2(){var r=0,i=1,n=1,a=[.5],o=[0,1],e;function s(t){return t<=t?o[h(a,t,0,n)]:e}function u(){var t=-1;a=new Array(n);while(++t<n){a[t]=((t+1)*i-(t-n)*r)/(n+1)}return s}s.domain=function(t){var e,n;return arguments.length?(e=t,n=_slicedToArray2(e,2),r=n[0],i=n[1],e,r=+r,i=+i,u()):[r,i]};s.range=function(t){return arguments.length?(n=(o=Array.from(t)).length-1,u()):o.slice()};s.invertExtent=function(t){var e=o.indexOf(t);return e<0?[NaN,NaN]:e<1?[r,a[0]]:e>=n?[a[n-1],i]:[a[e-1],a[e]]};s.unknown=function(t){return arguments.length?(e=t,s):s};s.thresholds=function(){return a.slice()};s.copy=function(){return x2().domain([r,i]).range(o).unknown(e)};return Rb.apply(Yb(s),arguments)}function k2(){var n=[.5],r=[0,1],e,i=1;function a(t){return t<=t?r[h(n,t,0,i)]:e}a.domain=function(t){return arguments.length?(n=Array.from(t),i=Math.min(n.length,r.length-1),a):n.slice()};a.range=function(t){return arguments.length?(r=Array.from(t),i=Math.min(n.length,r.length-1),a):r.slice()};a.invertExtent=function(t){var e=r.indexOf(t);return[n[e-1],n[e]]};a.unknown=function(t){return arguments.length?(e=t,a):e};a.copy=function(){return k2().domain(n).range(r).unknown(e)};return Rb.apply(a,arguments)}var S2=1e3,C2=S2*60,E2=C2*60,A2=E2*24,M2=A2*7,R2=A2*30,T2=A2*365;function O2(t){return new Date(t)}function P2(t){return t instanceof Date?+t:+new Date(+t)}function B2(o,e,n,r,i,a,s,u,l){var c=qb(),f=c.invert,h=c.domain;var d=l(".%L"),g=l(":%S"),v=l("%I:%M"),p=l("%I %p"),y=l("%a %d"),m=l("%b %d"),_=l("%B"),b=l("%Y");var w=[[s,1,S2],[s,5,5*S2],[s,15,15*S2],[s,30,30*S2],[a,1,C2],[a,5,5*C2],[a,15,15*C2],[a,30,30*C2],[i,1,E2],[i,3,3*E2],[i,6,6*E2],[i,12,12*E2],[r,1,A2],[r,2,2*A2],[n,1,M2],[e,1,R2],[e,3,3*R2],[o,1,T2]];function x(t){return(s(t)<t?d:a(t)<t?g:i(t)<t?v:r(t)<t?p:e(t)<t?n(t)<t?y:m:o(t)<t?_:b)(t)}function k(t,e,n){if(t==null)t=10;if(typeof t==="number"){var r=Math.abs(n-e)/t,i=S(function(t){return t[2]}).right(w,r),a;if(i===w.length){a=M(e/T2,n/T2,t);t=o}else if(i){i=w[r/w[i-1][2]<w[i][2]/r?i-1:i];a=i[1];t=i[0]}else{a=Math.max(M(e,n,t),1);t=u}return t.every(a)}return t}c.invert=function(t){return new Date(f(t))};c.domain=function(t){return arguments.length?h(Array.from(t,P2)):h().map(O2)};c.ticks=function(t){var e=h(),n=e[0],r=e[e.length-1],i=r<n,a;if(i)a=n,n=r,r=a;a=k(t,n,r);a=a?a.range(n,r+1):[];return i?a.reverse():a};c.tickFormat=function(t,e){return e==null?x:l(e)};c.nice=function(t){var e=h();return(t=k(t,e[0],e[e.length-1]))?h($b(e,t)):c};c.copy=function(){return Vb(c,B2(o,e,n,r,i,a,s,u,l))};return c}function D2(){return Rb.apply(B2(ot,it,tt,J,X,K,W,j,Qe).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function N2(){return Rb.apply(B2(wt,_t,vt,dt,ct,ut,W,j,tn).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function z2(){var r=0,i=1,a,o,s,u,l=Ib,e=false,n;function c(t){return isNaN(t=+t)?n:l(s===0?.5:(t=(u(t)-a)*s,e?Math.max(0,Math.min(1,t)):t))}c.domain=function(t){var e,n;return arguments.length?(e=t,n=_slicedToArray2(e,2),r=n[0],i=n[1],e,a=u(r=+r),o=u(i=+i),s=a===o?0:1/(o-a),c):[r,i]};c.clamp=function(t){return arguments.length?(e=!!t,c):e};c.interpolator=function(t){return arguments.length?(l=t,c):l};function t(a){return function(t){var e,n;var r,i;return arguments.length?(e=t,n=_slicedToArray2(e,2),r=n[0],i=n[1],e,l=a(r,i),c):[l(0),l(1)]}}c.range=t(or);c.rangeRound=t(sr);c.unknown=function(t){return arguments.length?(n=t,c):n};return function(t){u=t,a=t(r),o=t(i),s=a===o?0:1/(o-a);return c}}function F2(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function j2(){var t=Yb(z2()(Ib));t.copy=function(){return F2(t,j2())};return Tb.apply(t,arguments)}function I2(){var t=o2(z2()).domain([1,10]);t.copy=function(){return F2(t,I2()).base(t.base())};return Tb.apply(t,arguments)}function L2(){var t=c2(z2());t.copy=function(){return F2(t,L2()).constant(t.constant())};return Tb.apply(t,arguments)}function H2(){var t=v2(z2());t.copy=function(){return F2(t,H2()).exponent(t.exponent())};return Tb.apply(t,arguments)}function U2(){return H2.apply(null,arguments).exponent(.5)}function G2(){var i=[],n=Ib;function a(t){if(!isNaN(t=+t))return n((h(i,t,1)-1)/(i.length-1))}a.domain=function(t){if(!arguments.length)return i.slice();i=[];var e=_createForOfIteratorHelper2(t),n;try{for(e.s();!(n=e.n()).done;){var r=n.value;if(r!=null&&!isNaN(r=+r))i.push(r)}}catch(t){e.e(t)}finally{e.f()}i.sort(v);return a};a.interpolator=function(t){return arguments.length?(n=t,a):n};a.range=function(){return i.map(function(t,e){return n(e/(i.length-1))})};a.quantiles=function(n){return Array.from({length:n+1},function(t,e){return Nt(i,e/n)})};a.copy=function(){return G2(n).domain(i)};return Tb.apply(a,arguments)}function V2(){var r=0,i=.5,a=1,o=1,s,u,l,c,f,h=Ib,d,e=false,n;function g(t){return isNaN(t=+t)?n:(t=.5+((t=+d(t))-u)*(o*t<o*u?c:f),h(e?Math.max(0,Math.min(1,t)):t))}g.domain=function(t){var e,n;return arguments.length?(e=t,n=_slicedToArray2(e,3),r=n[0],i=n[1],a=n[2],e,s=d(r=+r),u=d(i=+i),l=d(a=+a),c=s===u?0:.5/(u-s),f=u===l?0:.5/(l-u),o=u<s?-1:1,g):[r,i,a]};g.clamp=function(t){return arguments.length?(e=!!t,g):e};g.interpolator=function(t){return arguments.length?(h=t,g):h};function t(o){return function(t){var e,n;var r,i,a;return arguments.length?(e=t,n=_slicedToArray2(e,3),r=n[0],i=n[1],a=n[2],e,h=xr(o,[r,i,a]),g):[h(0),h(.5),h(1)]}}g.range=t(or);g.rangeRound=t(sr);g.unknown=function(t){return arguments.length?(n=t,g):n};return function(t){d=t,s=t(r),u=t(i),l=t(a),c=s===u?0:.5/(u-s),f=u===l?0:.5/(l-u),o=u<s?-1:1;return g}}function W2(){var t=Yb(V2()(Ib));t.copy=function(){return F2(t,W2())};return Tb.apply(t,arguments)}function q2(){var t=o2(V2()).domain([.1,1,10]);t.copy=function(){return F2(t,q2()).base(t.base())};return Tb.apply(t,arguments)}function K2(){var t=c2(V2());t.copy=function(){return F2(t,K2()).constant(t.constant())};return Tb.apply(t,arguments)}function Y2(){var t=v2(V2());t.copy=function(){return F2(t,Y2()).exponent(t.exponent())};return Tb.apply(t,arguments)}function X2(){return Y2.apply(null,arguments).exponent(.5)}var Z2=Object.freeze({__proto__:null,scaleBand:Bb,scalePoint:Nb,scaleIdentity:Zb,scaleLinear:Xb,scaleLog:s2,scaleSymlog:f2,scaleOrdinal:Pb,scaleImplicit:Ob,scalePow:p2,scaleSqrt:y2,scaleRadial:b2,scaleQuantile:w2,scaleQuantize:x2,scaleThreshold:k2,scaleTime:D2,scaleUtc:N2,scaleSequential:j2,scaleSequentialLog:I2,scaleSequentialPow:H2,scaleSequentialSqrt:U2,scaleSequentialSymlog:L2,scaleSequentialQuantile:G2,scaleDiverging:W2,scaleDivergingLog:q2,scaleDivergingPow:Y2,scaleDivergingSqrt:X2,scaleDivergingSymlog:K2,tickFormat:Kb});var $2={dark:"#555555",light:"#f7f7f7",missing:"#cccccc",off:"#C44536",on:"#6A994E",scale:Pb().range(["#4281A4","#F6AE2D","#C44536","#2A9D8F","#6A994E","#CEB54A","#5E548E","#C08497","#99582A","#8C8C99","#1D3557","#D08C60","#6D2E46","#8BB19C","#52796F","#5E60CE","#985277","#5C374C"])};function J2(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return t in e?e[t]:t in $2?$2[t]:$2.missing}var Q2=$2;function tw(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if([null,void 0].indexOf(t)>=0)return J2("missing",e);else if(t===true)return J2("on",e);else if(t===false)return J2("off",e);var n=Rn(t);if(!n)return J2("scale",e)(t);return t.toString()}function ew(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t=Bn(t);var n=(t.r*299+t.g*587+t.b*114)/1e3;return n>=128?J2("dark",e):J2("light",e)}function nw(t){t=Ln(t);if(t.l>.45){if(t.s>.8)t.s=.8;t.l=.45}return t.toString()}function rw(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:.5;t=Ln(t);e*=1-t.l;t.l+=e;t.s-=e;return t.toString()}function iw(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:1;var r=arguments.length>3&&arguments[3]!==undefined?arguments[3]:1;t=Ln(t);e=Ln(e);var i=e.h*r-t.h*n;if(Math.abs(i)>180)i-=360;var a=(t.h-i)%360;var o=t.l-(e.l*r-t.l*n)/2,s=t.s-(e.s*r-t.s*n)/2;if(a<0)a+=360;return Ln("hsl(".concat(a,",").concat(s*100,"%,").concat(o*100,"%)")).toString()}var aw={"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 ow(t){"@babel/helpers - typeof";return ow="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ow(t)}var sw=function t(e,n){return parseFloat(Math.round(e*Math.pow(10,n))/Math.pow(10,n)).toFixed(n)};function uw(t,e,n){var r=0;var i=parseFloat(t.replace("","-"),10);if(i){if(i<0)i*=-1;r=1+Math.floor(1e-12+Math.log(i)/Math.LN10);r=Math.max(-24,Math.min(24,Math.floor((r-1)/3)*3))}var a=n[8+r/3];return{number:sw(a.scale(i),e),symbol:a.symbol}}function lw(t,e){var n=Math.pow(10,Math.abs(8-e)*3);return{scale:e>8?function(t){return t/n}:function(t){return t*n},symbol:t}}function cw(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"en-US";var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:undefined;if(isFinite(t))t*=1;else return"N/A";var r=t<0;var i=t.toString().split(".")[0].replace("-","").length,a=ow(e)==="object"?e:aw[e]||aw["en-US"],o=a.suffixes.map(lw);var s=a.delimiters.decimal||".",u=a.separator||"",l=a.delimiters.thousands||",";var c=Zr({currency:a.currency||["$",""],decimal:s,grouping:a.grouping||[3],thousands:l});var f;if(n)f=c.format(n)(t);else if(t===0)f="0";else if(i>=3){var h=uw(c.format(".3r")(t),2,o);var d=parseFloat(h.number).toString().replace(".",s);var g=h.symbol;f="".concat(d).concat(u).concat(g)}else if(i===3)f=c.format(",f")(t);else if(t<1&&t>-1)f=c.format(".2g")(t);else f=c.format(".3g")(t);return"".concat(r&&f.charAt(0)!==""?"":"").concat(f).replace(/\/g,"-").replace(/(\.[0]*[1-9]*)[0]*$/g,"$1").replace(/\.[0]*$/g,"")}var fw=function t(e){if(e===".3~a")return cw;return Jr(e)};var hw=function t(e){var n=ti(e);n.format=fw;return n};var dw=new Date,gw=new Date;function vw(a,o,n,r){function s(t){return a(t=arguments.length===0?new Date:new Date(+t)),t}s.floor=function(t){return a(t=new Date(+t)),t};s.ceil=function(t){return a(t=new Date(t-1)),o(t,1),a(t),t};s.round=function(t){var e=s(t),n=s.ceil(t);return t-e<n-t?e:n};s.offset=function(t,e){return o(t=new Date(+t),e==null?1:Math.floor(e)),t};s.range=function(t,e,n){var r=[],i;t=s.ceil(t);n=n==null?1:Math.floor(n);if(!(t<e)||!(n>0))return r;do{r.push(i=new Date(+t)),o(t,n),a(t)}while(i<t&&t<e);return r};s.filter=function(n){return vw(function(t){if(t>=t)while(a(t),!n(t)){t.setTime(t-1)}},function(t,e){if(t>=t){if(e<0)while(++e<=0){while(o(t,-1),!n(t)){}}else while(--e>=0){while(o(t,+1),!n(t)){}}}})};if(n){s.count=function(t,e){dw.setTime(+t),gw.setTime(+e);a(dw),a(gw);return Math.floor(n(dw,gw))};s.every=function(e){e=Math.floor(e);return!isFinite(e)||!(e>0)?null:!(e>1)?s:s.filter(r?function(t){return r(t)%e===0}:function(t){return s.count(0,t)%e===0})}}return s}var pw=1e3;var yw=pw*60;var mw=yw*60;var _w=mw*24;var bw=vw(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+e*pw)},function(t,e){return(e-t)/pw},function(t){return t.getUTCSeconds()});var ww=bw;var xw=vw(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*pw)},function(t,e){t.setTime(+t+e*yw)},function(t,e){return(e-t)/yw},function(t){return t.getMinutes()});var kw=xw;var Sw=vw(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*pw-t.getMinutes()*yw)},function(t,e){t.setTime(+t+e*mw)},function(t,e){return(e-t)/mw},function(t){return t.getHours()});var Cw=Sw;var Ew=vw(function(t){return t.setHours(0,0,0,0)},function(t,e){return t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*yw)/_w},function(t){return t.getDate()-1});var Aw=Ew;var Mw=vw(function(t){t.setDate(1);t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12},function(t){return t.getMonth()});var Rw=Mw;var Tw=vw(function(t){t.setMonth(0,1);t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});Tw.every=function(n){return!isFinite(n=Math.floor(n))||!(n>0)?null:vw(function(t){t.setFullYear(Math.floor(t.getFullYear()/n)*n);t.setMonth(0,1);t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e*n)})};var Ow=Tw;var Pw=Qe("%-d"),Bw=Qe("%I %p"),Dw=Qe(".%L"),Nw=Qe("%I:%M"),zw=Qe("%b"),Fw=Qe("%b %-d"),jw=Qe("%b %-d, %Y"),Iw=Qe("%b %Y"),Lw=Qe("Q%q %Y"),Hw=Qe(":%S"),Uw=Qe("%Y");function Gw(t,r){var e=r.indexOf(t);var n=r[e+1]||r[e-1];var i=r.reduce(function(t,e,n){if(n)t.push(Vw(r[n-1],e));return t},[]);var a=i.find(function(t){return t===3})&&i.every(function(t){return t>=3&&!(t%3)});if(a)return Lw(t);return(ww(t)<t?Dw:kw(t)<t?Hw:Cw(t)<t?Nw:Aw(t)<t?e===0?jw:Bw:Rw(t)<t?e===0?jw:Ww(t,n,Aw)?Fw:Pw:Ow(t)<t?e===0?Iw:Ww(t,n,Rw)?Fw:zw:Ww(t,n,Ow)?Iw:Uw)(t)}function Vw(t,e){var n;n=(e.getFullYear()-t.getFullYear())*12;n-=t.getMonth();n+=e.getMonth();return n<=0?0:n}function Ww(t,e,n){return e?+n.round(t)===+n.round(+t+Math.abs(e-t)):false}function qw(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function Kw(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function Yw(t,e,n){if(e)Kw(t.prototype,e);if(n)Kw(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}var Xw=function(){function u(){qw(this,u);this._duration=600;this._height=Zl("height");this._id=Zl("id");this._opacity=cb(1);this._pointerEvents=cb("auto");this._select;this._url=Zl("url");this._width=Zl("width");this._x=Zl("x",0);this._y=Zl("y",0)}Yw(u,[{key:"render",value:function t(e){var n=this;if(this._select===void 0)this.select(Ks("body").append("svg").style("width","".concat(window.innerWidth,"px")).style("height","".concat(window.innerHeight,"px")).style("display","block").node());var r=this._select.selectAll(".d3plus-Image").data(this._data,this._id);var i=r.enter().append("image").attr("class","d3plus-Image").attr("opacity",0).attr("width",0).attr("height",0).attr("x",function(t,e){return n._x(t,e)+n._width(t,e)/2}).attr("y",function(t,e){return n._y(t,e)+n._height(t,e)/2});var a=Gl().duration(this._duration),o=this,s=i.merge(r);s.attr("xlink:href",this._url).style("pointer-events",this._pointerEvents).transition(a).attr("opacity",this._opacity).attr("width",function(t,e){return n._width(t,e)}).attr("height",function(t,e){return n._height(t,e)}).attr("x",function(t,e){return n._x(t,e)}).attr("y",function(t,e){return n._y(t,e)}).each(function(t,e){var n=Ks(this),r=o._url(t,e);var i=r.indexOf("http://")===0||r.indexOf("https://")===0;if(!i||r.indexOf(window.location.hostname)===0){var a=new u;a.src=r;a.crossOrigin="Anonymous";a.onload=function(){var t=document.createElement("canvas");t.width=this.width;t.height=this.height;var e=t.getContext("2d");e.drawImage(this,0,0);n.attr("xlink:href",t.toDataURL("image/png"))}}});r.exit().transition(a).attr("width",function(t,e){return n._width(t,e)}).attr("height",function(t,e){return n._height(t,e)}).attr("x",function(t,e){return n._x(t,e)}).attr("y",function(t,e){return n._y(t,e)}).attr("opacity",0).remove();if(e)setTimeout(e,this._duration+100);return this}},{key:"data",value:function t(e){return arguments.length?(this._data=e,this):this._data}},{key:"duration",value:function t(e){return arguments.length?(this._duration=e,this):this._duration}},{key:"height",value:function t(e){return arguments.length?(this._height=typeof e==="function"?e:cb(e),this):this._height}},{key:"id",value:function t(e){return arguments.length?(this._id=e,this):this._id}},{key:"opacity",value:function t(e){return arguments.length?(this._opacity=typeof e==="function"?e:cb(e),this):this._opacity}},{key:"pointerEvents",value:function t(e){return arguments.length?(this._pointerEvents=typeof e==="function"?e:cb(e),this):this._pointerEvents}},{key:"select",value:function t(e){return arguments.length?(this._select=Ks(e),this):this._select}},{key:"url",value:function t(e){return arguments.length?(this._url=e,this):this._url}},{key:"width",value:function t(e){return arguments.length?(this._width=typeof e==="function"?e:cb(e),this):this._width}},{key:"x",value:function t(e){return arguments.length?(this._x=typeof e==="function"?e:cb(e),this):this._x}},{key:"y",value:function t(e){return arguments.length?(this._y=typeof e==="function"?e:cb(e),this):this._y}}]);return u}();var Zw=Math.PI,$w=2*Zw,Jw=1e-6,Qw=$w-Jw;function t3(){this._x0=this._y0=this._x1=this._y1=null;this._=""}function e3(){return new t3}t3.prototype=e3.prototype={constructor:t3,moveTo:function t(e,n){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+n)},closePath:function t(){if(this._x1!==null){this._x1=this._x0,this._y1=this._y0;this._+="Z"}},lineTo:function t(e,n){this._+="L"+(this._x1=+e)+","+(this._y1=+n)},quadraticCurveTo:function t(e,n,r,i){this._+="Q"+ +e+","+ +n+","+(this._x1=+r)+","+(this._y1=+i)},bezierCurveTo:function t(e,n,r,i,a,o){this._+="C"+ +e+","+ +n+","+ +r+","+ +i+","+(this._x1=+a)+","+(this._y1=+o)},arcTo:function t(e,n,r,i,a){e=+e,n=+n,r=+r,i=+i,a=+a;var o=this._x1,s=this._y1,u=r-e,l=i-n,c=o-e,f=s-n,h=c*c+f*f;if(a<0)throw new Error("negative radius: "+a);if(this._x1===null){this._+="M"+(this._x1=e)+","+(this._y1=n)}else if(!(h>Jw));else if(!(Math.abs(f*u-l*c)>Jw)||!a){this._+="L"+(this._x1=e)+","+(this._y1=n)}else{var d=r-o,g=i-s,v=u*u+l*l,p=d*d+g*g,y=Math.sqrt(v),m=Math.sqrt(h),_=a*Math.tan((Zw-Math.acos((v+h-p)/(2*y*m)))/2),b=_/m,w=_/y;if(Math.abs(b-1)>Jw){this._+="L"+(e+b*c)+","+(n+b*f)}this._+="A"+a+","+a+",0,0,"+ +(f*d>c*g)+","+(this._x1=e+w*u)+","+(this._y1=n+w*l)}},arc:function t(e,n,r,i,a,o){e=+e,n=+n,r=+r,o=!!o;var s=r*Math.cos(i),u=r*Math.sin(i),l=e+s,c=n+u,f=1^o,h=o?i-a:a-i;if(r<0)throw new Error("negative radius: "+r);if(this._x1===null){this._+="M"+l+","+c}else if(Math.abs(this._x1-l)>Jw||Math.abs(this._y1-c)>Jw){this._+="L"+l+","+c}if(!r)return;if(h<0)h=h%$w+$w;if(h>Qw){this._+="A"+r+","+r+",0,1,"+f+","+(e-s)+","+(n-u)+"A"+r+","+r+",0,1,"+f+","+(this._x1=l)+","+(this._y1=c)}else if(h>Jw){this._+="A"+r+","+r+",0,"+ +(h>=Zw)+","+f+","+(this._x1=e+r*Math.cos(a))+","+(this._y1=n+r*Math.sin(a))}},rect:function t(e,n,r,i){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+n)+"h"+ +r+"v"+ +i+"h"+-r+"Z"},toString:function t(){return this._}};function n3(e){return function t(){return e}}var r3=Math.abs;var i3=Math.atan2;var a3=Math.cos;var o3=Math.max;var s3=Math.min;var u3=Math.sin;var l3=Math.sqrt;var c3=1e-12;var f3=Math.PI;var h3=f3/2;var d3=2*f3;function g3(t){return t>1?0:t<-1?f3:Math.acos(t)}function v3(t){return t>=1?h3:t<=-1?-h3:Math.asin(t)}function p3(t){return t.innerRadius}function y3(t){return t.outerRadius}function m3(t){return t.startAngle}function _3(t){return t.endAngle}function b3(t){return t&&t.padAngle}function w3(t,e,n,r,i,a,o,s){var u=n-t,l=r-e,c=o-i,f=s-a,h=f*u-c*l;if(h*h<c3)return;h=(c*(e-a)-f*(t-i))/h;return[t+h*u,e+h*l]}function x3(t,e,n,r,i,a,o){var s=t-n,u=e-r,l=(o?a:-a)/l3(s*s+u*u),c=l*u,f=-l*s,h=t+c,d=e+f,g=n+c,v=r+f,p=(h+g)/2,y=(d+v)/2,m=g-h,_=v-d,b=m*m+_*_,w=i-a,x=h*v-g*d,k=(_<0?-1:1)*l3(o3(0,w*w*b-x*x)),S=(x*_-m*k)/b,C=(-x*m-_*k)/b,E=(x*_+m*k)/b,A=(-x*m+_*k)/b,M=S-p,R=C-y,T=E-p,O=A-y;if(M*M+R*R>T*T+O*O)S=E,C=A;return{cx:S,cy:C,x01:-c,y01:-f,x11:S*(i/w-1),y11:C*(i/w-1)}}function k3(){var j=p3,I=y3,L=n3(0),H=null,U=m3,G=_3,V=b3,W=null;function e(){var t,e,n=+j.apply(this,arguments),r=+I.apply(this,arguments),i=U.apply(this,arguments)-h3,a=G.apply(this,arguments)-h3,o=r3(a-i),s=a>i;if(!W)W=t=e3();if(r<n)e=r,r=n,n=e;if(!(r>c3))W.moveTo(0,0);else if(o>d3-c3){W.moveTo(r*a3(i),r*u3(i));W.arc(0,0,r,i,a,!s);if(n>c3){W.moveTo(n*a3(a),n*u3(a));W.arc(0,0,n,a,i,s)}}else{var u=i,l=a,c=i,f=a,h=o,d=o,g=V.apply(this,arguments)/2,v=g>c3&&(H?+H.apply(this,arguments):l3(n*n+r*r)),p=s3(r3(r-n)/2,+L.apply(this,arguments)),y=p,m=p,_,b;if(v>c3){var w=v3(v/n*u3(g)),x=v3(v/r*u3(g));if((h-=w*2)>c3)w*=s?1:-1,c+=w,f-=w;else h=0,c=f=(i+a)/2;if((d-=x*2)>c3)x*=s?1:-1,u+=x,l-=x;else d=0,u=l=(i+a)/2}var k=r*a3(u),S=r*u3(u),C=n*a3(f),E=n*u3(f);if(p>c3){var A=r*a3(l),M=r*u3(l),R=n*a3(c),T=n*u3(c),O;if(o<f3&&(O=w3(k,S,R,T,A,M,C,E))){var P=k-O[0],B=S-O[1],D=A-O[0],N=M-O[1],z=1/u3(g3((P*D+B*N)/(l3(P*P+B*B)*l3(D*D+N*N)))/2),F=l3(O[0]*O[0]+O[1]*O[1]);y=s3(p,(n-F)/(z-1));m=s3(p,(r-F)/(z+1))}}if(!(d>c3))W.moveTo(k,S);else if(m>c3){_=x3(R,T,k,S,r,m,s);b=x3(A,M,C,E,r,m,s);W.moveTo(_.cx+_.x01,_.cy+_.y01);if(m<p)W.arc(_.cx,_.cy,m,i3(_.y01,_.x01),i3(b.y01,b.x01),!s);else{W.arc(_.cx,_.cy,m,i3(_.y01,_.x01),i3(_.y11,_.x11),!s);W.arc(0,0,r,i3(_.cy+_.y11,_.cx+_.x11),i3(b.cy+b.y11,b.cx+b.x11),!s);W.arc(b.cx,b.cy,m,i3(b.y11,b.x11),i3(b.y01,b.x01),!s)}}else W.moveTo(k,S),W.arc(0,0,r,u,l,!s);if(!(n>c3)||!(h>c3))W.lineTo(C,E);else if(y>c3){_=x3(C,E,A,M,n,-y,s);b=x3(k,S,R,T,n,-y,s);W.lineTo(_.cx+_.x01,_.cy+_.y01);if(y<p)W.arc(_.cx,_.cy,y,i3(_.y01,_.x01),i3(b.y01,b.x01),!s);else{W.arc(_.cx,_.cy,y,i3(_.y01,_.x01),i3(_.y11,_.x11),!s);W.arc(0,0,n,i3(_.cy+_.y11,_.cx+_.x11),i3(b.cy+b.y11,b.cx+b.x11),s);W.arc(b.cx,b.cy,y,i3(b.y11,b.x11),i3(b.y01,b.x01),!s)}}else W.arc(0,0,n,f,c,s)}W.closePath();if(t)return W=null,t+""||null}e.centroid=function(){var t=(+j.apply(this,arguments)+ +I.apply(this,arguments))/2,e=(+U.apply(this,arguments)+ +G.apply(this,arguments))/2-f3/2;return[a3(e)*t,u3(e)*t]};e.innerRadius=function(t){return arguments.length?(j=typeof t==="function"?t:n3(+t),e):j};e.outerRadius=function(t){return arguments.length?(I=typeof t==="function"?t:n3(+t),e):I};e.cornerRadius=function(t){return arguments.length?(L=typeof t==="function"?t:n3(+t),e):L};e.padRadius=function(t){return arguments.length?(H=t==null?null:typeof t==="function"?t:n3(+t),e):H};e.startAngle=function(t){return arguments.length?(U=typeof t==="function"?t:n3(+t),e):U};e.endAngle=function(t){return arguments.length?(G=typeof t==="function"?t:n3(+t),e):G};e.padAngle=function(t){return arguments.length?(V=typeof t==="function"?t:n3(+t),e):V};e.context=function(t){return arguments.length?(W=t==null?null:t,e):W};return e}var S3=Array.prototype.slice;function C3(t){return _typeof2(t)==="object"&&"length"in t?t:Array.from(t)}function E3(t){this._context=t}E3.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._point=0},lineEnd:function t(){if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function t(e,n){e=+e,n=+n;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;default:this._context.lineTo(e,n);break}}};function A3(t){return new E3(t)}function M3(t){return t[0]}function R3(t){return t[1]}function T3(o,s){var u=n3(true),l=null,c=A3,f=null;o=typeof o==="function"?o:o===undefined?M3:n3(o);s=typeof s==="function"?s:s===undefined?R3:n3(s);function e(t){var e,n=(t=C3(t)).length,r,i=false,a;if(l==null)f=c(a=e3());for(e=0;e<=n;++e){if(!(e<n&&u(r=t[e],e,t))===i){if(i=!i)f.lineStart();else f.lineEnd()}if(i)f.point(+o(r,e,t),+s(r,e,t))}if(a)return f=null,a+""||null}e.x=function(t){return arguments.length?(o=typeof t==="function"?t:n3(+t),e):o};e.y=function(t){return arguments.length?(s=typeof t==="function"?t:n3(+t),e):s};e.defined=function(t){return arguments.length?(u=typeof t==="function"?t:n3(!!t),e):u};e.curve=function(t){return arguments.length?(c=t,l!=null&&(f=c(l)),e):c};e.context=function(t){return arguments.length?(t==null?l=f=null:f=c(l=t),e):l};return e}function O3(c,f,h){var d=null,g=n3(true),v=null,p=A3,y=null;c=typeof c==="function"?c:c===undefined?M3:n3(+c);f=typeof f==="function"?f:f===undefined?n3(0):n3(+f);h=typeof h==="function"?h:h===undefined?R3:n3(+h);function e(t){var e,n,r,i=(t=C3(t)).length,a,o=false,s,u=new Array(i),l=new Array(i);if(v==null)y=p(s=e3());for(e=0;e<=i;++e){if(!(e<i&&g(a=t[e],e,t))===o){if(o=!o){n=e;y.areaStart();y.lineStart()}else{y.lineEnd();y.lineStart();for(r=e-1;r>=n;--r){y.point(u[r],l[r])}y.lineEnd();y.areaEnd()}}if(o){u[e]=+c(a,e,t),l[e]=+f(a,e,t);y.point(d?+d(a,e,t):u[e],h?+h(a,e,t):l[e])}}if(s)return y=null,s+""||null}function t(){return T3().defined(g).curve(p).context(v)}e.x=function(t){return arguments.length?(c=typeof t==="function"?t:n3(+t),d=null,e):c};e.x0=function(t){return arguments.length?(c=typeof t==="function"?t:n3(+t),e):c};e.x1=function(t){return arguments.length?(d=t==null?null:typeof t==="function"?t:n3(+t),e):d};e.y=function(t){return arguments.length?(f=typeof t==="function"?t:n3(+t),h=null,e):f};e.y0=function(t){return arguments.length?(f=typeof t==="function"?t:n3(+t),e):f};e.y1=function(t){return arguments.length?(h=t==null?null:typeof t==="function"?t:n3(+t),e):h};e.lineX0=e.lineY0=function(){return t().x(c).y(f)};e.lineY1=function(){return t().x(c).y(h)};e.lineX1=function(){return t().x(d).y(f)};e.defined=function(t){return arguments.length?(g=typeof t==="function"?t:n3(!!t),e):g};e.curve=function(t){return arguments.length?(p=t,v!=null&&(y=p(v)),e):p};e.context=function(t){return arguments.length?(t==null?v=y=null:y=p(v=t),e):v};return e}function P3(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function B3(t){return t}function D3(){var g=B3,v=P3,p=null,y=n3(0),m=n3(d3),_=n3(0);function e(n){var t,e=(n=C3(n)).length,r,i,a=0,o=new Array(e),s=new Array(e),u=+y.apply(this,arguments),l=Math.min(d3,Math.max(-d3,m.apply(this,arguments)-u)),c,f=Math.min(Math.abs(l)/e,_.apply(this,arguments)),h=f*(l<0?-1:1),d;for(t=0;t<e;++t){if((d=s[o[t]=t]=+g(n[t],t,n))>0){a+=d}}if(v!=null)o.sort(function(t,e){return v(s[t],s[e])});else if(p!=null)o.sort(function(t,e){return p(n[t],n[e])});for(t=0,i=a?(l-e*h)/a:0;t<e;++t,u=c){r=o[t],d=s[r],c=u+(d>0?d*i:0)+h,s[r]={data:n[r],index:t,value:d,startAngle:u,endAngle:c,padAngle:f}}return s}e.value=function(t){return arguments.length?(g=typeof t==="function"?t:n3(+t),e):g};e.sortValues=function(t){return arguments.length?(v=t,p=null,e):v};e.sort=function(t){return arguments.length?(p=t,v=null,e):p};e.startAngle=function(t){return arguments.length?(y=typeof t==="function"?t:n3(+t),e):y};e.endAngle=function(t){return arguments.length?(m=typeof t==="function"?t:n3(+t),e):m};e.padAngle=function(t){return arguments.length?(_=typeof t==="function"?t:n3(+t),e):_};return e}var N3=F3(A3);function z3(t){this._curve=t}z3.prototype={areaStart:function t(){this._curve.areaStart()},areaEnd:function t(){this._curve.areaEnd()},lineStart:function t(){this._curve.lineStart()},lineEnd:function t(){this._curve.lineEnd()},point:function t(e,n){this._curve.point(n*Math.sin(e),n*-Math.cos(e))}};function F3(e){function t(t){return new z3(e(t))}t._curve=e;return t}function j3(t){var e=t.curve;t.angle=t.x,delete t.x;t.radius=t.y,delete t.y;t.curve=function(t){return arguments.length?e(F3(t)):e()._curve};return t}function I3(){return j3(T3().curve(N3))}function L3(){var t=O3().curve(N3),e=t.curve,n=t.lineX0,r=t.lineX1,i=t.lineY0,a=t.lineY1;t.angle=t.x,delete t.x;t.startAngle=t.x0,delete t.x0;t.endAngle=t.x1,delete t.x1;t.radius=t.y,delete t.y;t.innerRadius=t.y0,delete t.y0;t.outerRadius=t.y1,delete t.y1;t.lineStartAngle=function(){return j3(n())},delete t.lineX0;t.lineEndAngle=function(){return j3(r())},delete t.lineX1;t.lineInnerRadius=function(){return j3(i())},delete t.lineY0;t.lineOuterRadius=function(){return j3(a())},delete t.lineY1;t.curve=function(t){return arguments.length?e(F3(t)):e()._curve};return t}function H3(t,e){return[(e=+e)*Math.cos(t-=Math.PI/2),e*Math.sin(t)]}function U3(t){return t.source}function G3(t){return t.target}function V3(i){var a=U3,o=G3,s=M3,u=R3,l=null;function e(){var t,e=S3.call(arguments),n=a.apply(this,e),r=o.apply(this,e);if(!l)l=t=e3();i(l,+s.apply(this,(e[0]=n,e)),+u.apply(this,e),+s.apply(this,(e[0]=r,e)),+u.apply(this,e));if(t)return l=null,t+""||null}e.source=function(t){return arguments.length?(a=t,e):a};e.target=function(t){return arguments.length?(o=t,e):o};e.x=function(t){return arguments.length?(s=typeof t==="function"?t:n3(+t),e):s};e.y=function(t){return arguments.length?(u=typeof t==="function"?t:n3(+t),e):u};e.context=function(t){return arguments.length?(l=t==null?null:t,e):l};return e}function W3(t,e,n,r,i){t.moveTo(e,n);t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function q3(t,e,n,r,i){t.moveTo(e,n);t.bezierCurveTo(e,n=(n+i)/2,r,n,r,i)}function K3(t,e,n,r,i){var a=H3(e,n),o=H3(e,n=(n+i)/2),s=H3(r,n),u=H3(r,i);t.moveTo(a[0],a[1]);t.bezierCurveTo(o[0],o[1],s[0],s[1],u[0],u[1])}function Y3(){return V3(W3)}function X3(){return V3(q3)}function Z3(){var t=V3(K3);t.angle=t.x,delete t.x;t.radius=t.y,delete t.y;return t}var $3={draw:function t(e,n){var r=Math.sqrt(n/f3);e.moveTo(r,0);e.arc(0,0,r,0,d3)}};var J3={draw:function t(e,n){var r=Math.sqrt(n/5)/2;e.moveTo(-3*r,-r);e.lineTo(-r,-r);e.lineTo(-r,-3*r);e.lineTo(r,-3*r);e.lineTo(r,-r);e.lineTo(3*r,-r);e.lineTo(3*r,r);e.lineTo(r,r);e.lineTo(r,3*r);e.lineTo(-r,3*r);e.lineTo(-r,r);e.lineTo(-3*r,r);e.closePath()}};var Q3=Math.sqrt(1/3),tx=Q3*2;var ex={draw:function t(e,n){var r=Math.sqrt(n/tx),i=r*Q3;e.moveTo(0,-r);e.lineTo(i,0);e.lineTo(0,r);e.lineTo(-i,0);e.closePath()}};var nx=.8908130915292852,rx=Math.sin(f3/10)/Math.sin(7*f3/10),ix=Math.sin(d3/10)*rx,ax=-Math.cos(d3/10)*rx;var ox={draw:function t(e,n){var r=Math.sqrt(n*nx),i=ix*r,a=ax*r;e.moveTo(0,-r);e.lineTo(i,a);for(var o=1;o<5;++o){var s=d3*o/5,u=Math.cos(s),l=Math.sin(s);e.lineTo(l*r,-u*r);e.lineTo(u*i-l*a,l*i+u*a)}e.closePath()}};var sx={draw:function t(e,n){var r=Math.sqrt(n),i=-r/2;e.rect(i,i,r,r)}};var ux=Math.sqrt(3);var lx={draw:function t(e,n){var r=-Math.sqrt(n/(ux*3));e.moveTo(0,r*2);e.lineTo(-ux*r,-r);e.lineTo(ux*r,-r);e.closePath()}};var cx=-.5,fx=Math.sqrt(3)/2,hx=1/Math.sqrt(12),dx=(hx/2+1)*3;var gx={draw:function t(e,n){var r=Math.sqrt(n/dx),i=r/2,a=r*hx,o=i,s=r*hx+r,u=-o,l=s;e.moveTo(i,a);e.lineTo(o,s);e.lineTo(u,l);e.lineTo(cx*i-fx*a,fx*i+cx*a);e.lineTo(cx*o-fx*s,fx*o+cx*s);e.lineTo(cx*u-fx*l,fx*u+cx*l);e.lineTo(cx*i+fx*a,cx*a-fx*i);e.lineTo(cx*o+fx*s,cx*s-fx*o);e.lineTo(cx*u+fx*l,cx*l-fx*u);e.closePath()}};var vx=[$3,J3,ex,sx,ox,lx,gx];function px(e,n){var r=null;e=typeof e==="function"?e:n3(e||$3);n=typeof n==="function"?n:n3(n===undefined?64:+n);function i(){var t;if(!r)r=t=e3();e.apply(this,arguments).draw(r,+n.apply(this,arguments));if(t)return r=null,t+""||null}i.type=function(t){return arguments.length?(e=typeof t==="function"?t:n3(t),i):e};i.size=function(t){return arguments.length?(n=typeof t==="function"?t:n3(+t),i):n};i.context=function(t){return arguments.length?(r=t==null?null:t,i):r};return i}function yx(){}function mx(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function _x(t){this._context=t}_x.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x0=this._x1=this._y0=this._y1=NaN;this._point=0},lineEnd:function t(){switch(this._point){case 3:mx(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 t(e,n){e=+e,n=+n;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(e,n):this._context.moveTo(e,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:mx(this,e,n);break}this._x0=this._x1,this._x1=e;this._y0=this._y1,this._y1=n}};function bx(t){return new _x(t)}function wx(t){this._context=t}wx.prototype={areaStart:yx,areaEnd:yx,lineStart:function t(){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 t(){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 t(e,n){e=+e,n=+n;switch(this._point){case 0:this._point=1;this._x2=e,this._y2=n;break;case 1:this._point=2;this._x3=e,this._y3=n;break;case 2:this._point=3;this._x4=e,this._y4=n;this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+n)/6);break;default:mx(this,e,n);break}this._x0=this._x1,this._x1=e;this._y0=this._y1,this._y1=n}};function xx(t){return new wx(t)}function kx(t){this._context=t}kx.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x0=this._x1=this._y0=this._y1=NaN;this._point=0},lineEnd:function t(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function t(e,n){e=+e,n=+n;switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(r,i):this._context.moveTo(r,i);break;case 3:this._point=4;default:mx(this,e,n);break}this._x0=this._x1,this._x1=e;this._y0=this._y1,this._y1=n}};function Sx(t){return new kx(t)}var Cx=function(){"use strict";function n(t,e){_classCallCheck2(this,n);this._context=t;this._x=e}_createClass2(n,[{key:"areaStart",value:function t(){this._line=0}},{key:"areaEnd",value:function t(){this._line=NaN}},{key:"lineStart",value:function t(){this._point=0}},{key:"lineEnd",value:function t(){if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line}},{key:"point",value:function t(e,n){e=+e,n=+n;switch(this._point){case 0:{this._point=1;if(this._line)this._context.lineTo(e,n);else this._context.moveTo(e,n);break}case 1:this._point=2;default:{if(this._x)this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,n,e,n);else this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,e,this._y0,e,n);break}}this._x0=e,this._y0=n}}]);return n}();function Ex(t){return new Cx(t,true)}function Ax(t){return new Cx(t,false)}function Mx(t,e){this._basis=new _x(t);this._beta=e}Mx.prototype={lineStart:function t(){this._x=[];this._y=[];this._basis.lineStart()},lineEnd:function t(){var e=this._x,n=this._y,r=e.length-1;if(r>0){var i=e[0],a=n[0],o=e[r]-i,s=n[r]-a,u=-1,l;while(++u<=r){l=u/r;this._basis.point(this._beta*e[u]+(1-this._beta)*(i+l*o),this._beta*n[u]+(1-this._beta)*(a+l*s))}}this._x=this._y=null;this._basis.lineEnd()},point:function t(e,n){this._x.push(+e);this._y.push(+n)}};var Rx=function e(n){function t(t){return n===1?new _x(t):new Mx(t,n)}t.beta=function(t){return e(+t)};return t}(.85);function Tx(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Ox(t,e){this._context=t;this._k=(1-e)/6}Ox.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._point=0},lineEnd:function t(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Tx(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 t(e,n){e=+e,n=+n;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;this._x1=e,this._y1=n;break;case 2:this._point=3;default:Tx(this,e,n);break}this._x0=this._x1,this._x1=this._x2,this._x2=e;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Px=function e(n){function t(t){return new Ox(t,n)}t.tension=function(t){return e(+t)};return t}(0);function Bx(t,e){this._context=t;this._k=(1-e)/6}Bx.prototype={areaStart:yx,areaEnd:yx,lineStart:function t(){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 t(){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 t(e,n){e=+e,n=+n;switch(this._point){case 0:this._point=1;this._x3=e,this._y3=n;break;case 1:this._point=2;this._context.moveTo(this._x4=e,this._y4=n);break;case 2:this._point=3;this._x5=e,this._y5=n;break;default:Tx(this,e,n);break}this._x0=this._x1,this._x1=this._x2,this._x2=e;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Dx=function e(n){function t(t){return new Bx(t,n)}t.tension=function(t){return e(+t)};return t}(0);function Nx(t,e){this._context=t;this._k=(1-e)/6}Nx.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._point=0},lineEnd:function t(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function t(e,n){e=+e,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:Tx(this,e,n);break}this._x0=this._x1,this._x1=this._x2,this._x2=e;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var zx=function e(n){function t(t){return new Nx(t,n)}t.tension=function(t){return e(+t)};return t}(0);function Fx(t,e,n){var r=t._x1,i=t._y1,a=t._x2,o=t._y2;if(t._l01_a>c3){var s=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,u=3*t._l01_a*(t._l01_a+t._l12_a);r=(r*s-t._x0*t._l12_2a+t._x2*t._l01_2a)/u;i=(i*s-t._y0*t._l12_2a+t._y2*t._l01_2a)/u}if(t._l23_a>c3){var l=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);a=(a*l+t._x1*t._l23_2a-e*t._l12_2a)/c;o=(o*l+t._y1*t._l23_2a-n*t._l12_2a)/c}t._context.bezierCurveTo(r,i,a,o,t._x2,t._y2)}function jx(t,e){this._context=t;this._alpha=e}jx.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){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 t(){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 t(e,n){e=+e,n=+n;if(this._point){var r=this._x2-e,i=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;break;case 2:this._point=3;default:Fx(this,e,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=e;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Ix=function e(n){function t(t){return n?new jx(t,n):new Ox(t,0)}t.alpha=function(t){return e(+t)};return t}(.5);function Lx(t,e){this._context=t;this._alpha=e}Lx.prototype={areaStart:yx,areaEnd:yx,lineStart:function t(){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 t(){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 t(e,n){e=+e,n=+n;if(this._point){var r=this._x2-e,i=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,this._alpha))}switch(this._point){case 0:this._point=1;this._x3=e,this._y3=n;break;case 1:this._point=2;this._context.moveTo(this._x4=e,this._y4=n);break;case 2:this._point=3;this._x5=e,this._y5=n;break;default:Fx(this,e,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=e;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Hx=function e(n){function t(t){return n?new Lx(t,n):new Bx(t,0)}t.alpha=function(t){return e(+t)};return t}(.5);function Ux(t,e){this._context=t;this._alpha=e}Ux.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){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 t(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function t(e,n){e=+e,n=+n;if(this._point){var r=this._x2-e,i=this._y2-n;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+i*i,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:Fx(this,e,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=e;this._y0=this._y1,this._y1=this._y2,this._y2=n}};var Gx=function e(n){function t(t){return n?new Ux(t,n):new Nx(t,0)}t.alpha=function(t){return e(+t)};return t}(.5);function Vx(t){this._context=t}Vx.prototype={areaStart:yx,areaEnd:yx,lineStart:function t(){this._point=0},lineEnd:function t(){if(this._point)this._context.closePath()},point:function t(e,n){e=+e,n=+n;if(this._point)this._context.lineTo(e,n);else this._point=1,this._context.moveTo(e,n)}};function Wx(t){return new Vx(t)}function qx(t){return t<0?-1:1}function Kx(t,e,n){var r=t._x1-t._x0,i=e-t._x1,a=(t._y1-t._y0)/(r||i<0&&-0),o=(n-t._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(qx(a)+qx(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function Yx(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Xx(t,e,n){var r=t._x0,i=t._y0,a=t._x1,o=t._y1,s=(a-r)/3;t._context.bezierCurveTo(r+s,i+s*e,a-s,o-s*n,a,o)}function Zx(t){this._context=t}Zx.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN;this._point=0},lineEnd:function t(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Xx(this,this._t0,Yx(this,this._t0));break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function t(e,n){var r=NaN;e=+e,n=+n;if(e===this._x1&&n===this._y1)return;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;break;case 2:this._point=3;Xx(this,Yx(this,r=Kx(this,e,n)),r);break;default:Xx(this,this._t0,r=Kx(this,e,n));break}this._x0=this._x1,this._x1=e;this._y0=this._y1,this._y1=n;this._t0=r}};function $x(t){this._context=new Jx(t)}($x.prototype=Object.create(Zx.prototype)).point=function(t,e){Zx.prototype.point.call(this,e,t)};function Jx(t){this._context=t}Jx.prototype={moveTo:function t(e,n){this._context.moveTo(n,e)},closePath:function t(){this._context.closePath()},lineTo:function t(e,n){this._context.lineTo(n,e)},bezierCurveTo:function t(e,n,r,i,a,o){this._context.bezierCurveTo(n,e,i,r,o,a)}};function Qx(t){return new Zx(t)}function t6(t){return new $x(t)}function e6(t){this._context=t}e6.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x=[];this._y=[]},lineEnd:function t(){var e=this._x,n=this._y,r=e.length;if(r){this._line?this._context.lineTo(e[0],n[0]):this._context.moveTo(e[0],n[0]);if(r===2){this._context.lineTo(e[1],n[1])}else{var i=n6(e),a=n6(n);for(var o=0,s=1;s<r;++o,++s){this._context.bezierCurveTo(i[0][o],a[0][o],i[1][o],a[1][o],e[s],n[s])}}}if(this._line||this._line!==0&&r===1)this._context.closePath();this._line=1-this._line;this._x=this._y=null},point:function t(e,n){this._x.push(+e);this._y.push(+n)}};function n6(t){var e,n=t.length-1,r,i=new Array(n),a=new Array(n),o=new Array(n);i[0]=0,a[0]=2,o[0]=t[0]+2*t[1];for(e=1;e<n-1;++e){i[e]=1,a[e]=4,o[e]=4*t[e]+2*t[e+1]}i[n-1]=2,a[n-1]=7,o[n-1]=8*t[n-1]+t[n];for(e=1;e<n;++e){r=i[e]/a[e-1],a[e]-=r,o[e]-=r*o[e-1]}i[n-1]=o[n-1]/a[n-1];for(e=n-2;e>=0;--e){i[e]=(o[e]-i[e+1])/a[e]}a[n-1]=(t[n]+i[n-1])/2;for(e=0;e<n-1;++e){a[e]=2*t[e+1]-i[e+1]}return[i,a]}function r6(t){return new e6(t)}function i6(t,e){this._context=t;this._t=e}i6.prototype={areaStart:function t(){this._line=0},areaEnd:function t(){this._line=NaN},lineStart:function t(){this._x=this._y=NaN;this._point=0},lineEnd:function t(){if(0<this._t&&this._t<1&&this._point===2)this._context.lineTo(this._x,this._y);if(this._line||this._line!==0&&this._point===1)this._context.closePath();if(this._line>=0)this._t=1-this._t,this._line=1-this._line},point:function t(e,n){e=+e,n=+n;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;default:{if(this._t<=0){this._context.lineTo(this._x,n);this._context.lineTo(e,n)}else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y);this._context.lineTo(r,n)}break}}this._x=e,this._y=n}};function a6(t){return new i6(t,.5)}function o6(t){return new i6(t,0)}function s6(t){return new i6(t,1)}function u6(t,e){if(!((o=t.length)>1))return;for(var n=1,r,i,a=t[e[0]],o,s=a.length;n<o;++n){i=a,a=t[e[n]];for(r=0;r<s;++r){a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}}}function l6(t){var e=t.length,n=new Array(e);while(--e>=0){n[e]=e}return n}function c6(t,e){return t[e]}function f6(t){var e=[];e.key=t;return e}function h6(){var l=n3([]),c=l6,f=u6,h=c6;function e(t){var e=Array.from(l.apply(this,arguments),f6),n,r=e.length,i=-1,a;var o=_createForOfIteratorHelper2(t),s;try{for(o.s();!(s=o.n()).done;){var u=s.value;for(n=0,++i;n<r;++n){(e[n][i]=[0,+h(u,e[n].key,i,t)]).data=u}}}catch(t){o.e(t)}finally{o.f()}for(n=0,a=C3(c(e));n<r;++n){e[a[n]].index=n}f(e,a);return e}e.keys=function(t){return arguments.length?(l=typeof t==="function"?t:n3(Array.from(t)),e):l};e.value=function(t){return arguments.length?(h=typeof t==="function"?t:n3(+t),e):h};e.order=function(t){return arguments.length?(c=t==null?l6:typeof t==="function"?t:n3(Array.from(t)),e):c};e.offset=function(t){return arguments.length?(f=t==null?u6:t,e):f};return e}function d6(t,e){if(!((r=t.length)>0))return;for(var n,r,i=0,a=t[0].length,o;i<a;++i){for(o=n=0;n<r;++n){o+=t[n][i][1]||0}if(o)for(n=0;n<r;++n){t[n][i][1]/=o}}u6(t,e)}function g6(t,e){if(!((u=t.length)>0))return;for(var n,r=0,i,a,o,s,u,l=t[e[0]].length;r<l;++r){for(o=s=0,n=0;n<u;++n){if((a=(i=t[e[n]][r])[1]-i[0])>0){i[0]=o,i[1]=o+=a}else if(a<0){i[1]=s,i[0]=s+=a}else{i[0]=0,i[1]=a}}}}function v6(t,e){if(!((i=t.length)>0))return;for(var n=0,r=t[e[0]],i,a=r.length;n<a;++n){for(var o=0,s=0;o<i;++o){s+=t[o][n][1]||0}r[n][1]+=r[n][0]=-s/2}u6(t,e)}function p6(t,e){if(!((o=t.length)>0)||!((a=(i=t[e[0]]).length)>0))return;for(var n=0,r=1,i,a,o;r<a;++r){for(var s=0,u=0,l=0;s<o;++s){var c=t[e[s]],f=c[r][1]||0,h=c[r-1][1]||0,d=(f-h)/2;for(var g=0;g<s;++g){var v=t[e[g]],p=v[r][1]||0,y=v[r-1][1]||0;d+=p-y}u+=f,l+=d*f}i[r-1][1]+=i[r-1][0]=n;if(u)n-=l/u}i[r-1][1]+=i[r-1][0]=n;u6(t,e)}function y6(t){var n=t.map(m6);return l6(t).sort(function(t,e){return n[t]-n[e]})}function m6(t){var e=-1,n=0,r=t.length,i,a=-Infinity;while(++e<r){if((i=+t[e][1])>a)a=i,n=e}return n}function _6(t){var n=t.map(b6);return l6(t).sort(function(t,e){return n[t]-n[e]})}function b6(t){var e=0,n=-1,r=t.length,i;while(++n<r){if(i=+t[n][1])e+=i}return e}function w6(t){return _6(t).reverse()}function x6(t){var e=t.length,n,r,i=t.map(b6),a=y6(t),o=0,s=0,u=[],l=[];for(n=0;n<e;++n){r=a[n];if(o<s){o+=i[r];u.push(r)}else{s+=i[r];l.push(r)}}return l.reverse().concat(u)}function k6(t){return l6(t).reverse()}var S6=Object.freeze({__proto__:null,arc:k3,area:O3,line:T3,pie:D3,areaRadial:L3,radialArea:L3,lineRadial:I3,radialLine:I3,pointRadial:H3,linkHorizontal:Y3,linkVertical:X3,linkRadial:Z3,symbol:px,symbols:vx,symbolCircle:$3,symbolCross:J3,symbolDiamond:ex,symbolSquare:sx,symbolStar:ox,symbolTriangle:lx,symbolWye:gx,curveBasisClosed:xx,curveBasisOpen:Sx,curveBasis:bx,curveBumpX:Ex,curveBumpY:Ax,curveBundle:Rx,curveCardinalClosed:Dx,curveCardinalOpen:zx,curveCardinal:Px,curveCatmullRomClosed:Hx,curveCatmullRomOpen:Gx,curveCatmullRom:Ix,curveLinearClosed:Wx,curveLinear:A3,curveMonotoneX:Qx,curveMonotoneY:t6,curveNatural:r6,curveStep:a6,curveStepAfter:s6,curveStepBefore:o6,stack:h6,stackOffsetExpand:d6,stackOffsetDiverging:g6,stackOffsetNone:u6,stackOffsetSilhouette:v6,stackOffsetWiggle:p6,stackOrderAppearance:y6,stackOrderAscending:_6,stackOrderDescending:w6,stackOrderInsideOut:x6,stackOrderNone:l6,stackOrderReverse:k6});function C6(t){if(t.replace(/\s+/g,"")==="")return t;var e=(new DOMParser).parseFromString(t.replace(/<[^>]+>/g,""),"text/html");return e.documentElement?e.documentElement.textContent:t}function E6(t,e){e=Object.assign({"font-size":10,"font-family":"sans-serif","font-style":"normal","font-weight":400,"font-variant":"normal"},e);var n=document.createElement("canvas").getContext("2d");var r=[];r.push(e["font-style"]);r.push(e["font-variant"]);r.push(e["font-weight"]);r.push(typeof e["font-size"]==="string"?e["font-size"]:"".concat(e["font-size"],"px"));r.push(e["font-family"]);n.font=r.join(" ");if(t instanceof Array)return t.map(function(t){return n.measureText(C6(t)).width});return n.measureText(C6(t)).width}function A6(t){return t.toString().replace(/^\s+|\s+$/g,"")}function M6(t){return t.toString().replace(/^\s+/,"")}function R6(t){return t.toString().replace(/\s+$/,"")}var T6="abcdefghiABCDEFGHI_!@#$%^&*()_+1234567890",O6={},P6=32;var B6,D6,N6,z6;var F6=function t(e){if(!B6){B6=E6(T6,{"font-family":"DejaVuSans","font-size":P6});D6=E6(T6,{"font-family":"-apple-system","font-size":P6});N6=E6(T6,{"font-family":"monospace","font-size":P6});z6=E6(T6,{"font-family":"sans-serif","font-size":P6})}if(!(e instanceof Array))e=e.split(",");e=e.map(function(t){return A6(t)});for(var n=0;n<e.length;n++){var r=e[n];if(O6[r]||["-apple-system","monospace","sans-serif","DejaVuSans"].includes(r))return r;else if(O6[r]===false)continue;var i=E6(T6,{"font-family":r,"font-size":P6});O6[r]=i!==N6;if(O6[r])O6[r]=i!==z6;if(D6&&O6[r])O6[r]=i!==D6;if(B6&&O6[r])O6[r]=i!==B6;if(O6[r])return r}return false};var j6=F6;var I6=function t(){return Ks("html").attr("dir")==="rtl"||Ks("body").attr("dir")==="rtl"||Ks("html").style("direction")==="rtl"||Ks("body").style("direction")==="rtl"};function L6(t){if(t===void 0)t="undefined";else if(!(typeof t==="string"||t instanceof String))t=JSON.stringify(t);return t}var H6=[[/[\300-\305]/g,"A"],[/[\340-\345]/g,"a"],[/[\306]/g,"AE"],[/[\346]/g,"ae"],[/[\337]/g,"B"],[/[\307]/g,"C"],[/[\347]/g,"c"],[/[\320\336\376]/g,"D"],[/[\360]/g,"d"],[/[\310-\313]/g,"E"],[/[\350-\353]/g,"e"],[/[\314-\317]/g,"I"],[/[\354-\357]/g,"i"],[/[\321]/g,"N"],[/[\361]/g,"n"],[/[\u014c\322-\326\330]/g,"O"],[/[\u014d\362-\366\370]/g,"o"],[/[\u016a\331-\334]/g,"U"],[/[\u016b\371-\374]/g,"u"],[/[\327]/g,"x"],[/[\335]/g,"Y"],[/[\375\377]/g,"y"]];function U6(t){return"".concat(t).replace(/[^A-Za-z0-9\-_]/g,function(t){if(t===" ")return"-";var e=false;for(var n=0;n<H6.length;n++){if(new RegExp(H6[n][0]).test(t)){e=H6[n][1];break}}return e||""})}var G6=["u0903","u093B","u093E","u093F","u0940","u0949","u094A","u094B","u094C","u094E","u094F","u0982","u0983","u09BE","u09BF","u09C0","u09C7","u09C8","u09CB","u09CC","u09D7","u0A03","u0A3E","u0A3F","u0A40","u0A83","u0ABE","u0ABF","u0AC0","u0AC9","u0ACB","u0ACC","u0B02","u0B03","u0B3E","u0B40","u0B47","u0B48","u0B4B","u0B4C","u0B57","u0BBE","u0BBF","u0BC1","u0BC2","u0BC6","u0BC7","u0BC8","u0BCA","u0BCB","u0BCC","u0BD7","u0C01","u0C02","u0C03","u0C41","u0C42","u0C43","u0C44","u0C82","u0C83","u0CBE","u0CC0","u0CC1","u0CC2","u0CC3","u0CC4","u0CC7","u0CC8","u0CCA","u0CCB","u0CD5","u0CD6","u0D02","u0D03","u0D3E","u0D3F","u0D40","u0D46","u0D47","u0D48","u0D4A","u0D4B","u0D4C","u0D57","u0D82","u0D83","u0DCF","u0DD0","u0DD1","u0DD8","u0DD9","u0DDA","u0DDB","u0DDC","u0DDD","u0DDE","u0DDF","u0DF2","u0DF3","u0F3E","u0F3F","u0F7F","u102B","u102C","u1031","u1038","u103B","u103C","u1056","u1057","u1062","u1063","u1064","u1067","u1068","u1069","u106A","u106B","u106C","u106D","u1083","u1084","u1087","u1088","u1089","u108A","u108B","u108C","u108F","u109A","u109B","u109C","u17B6","u17BE","u17BF","u17C0","u17C1","u17C2","u17C3","u17C4","u17C5","u17C7","u17C8","u1923","u1924","u1925","u1926","u1929","u192A","u192B","u1930","u1931","u1933","u1934","u1935","u1936","u1937","u1938","u1A19","u1A1A","u1A55","u1A57","u1A61","u1A63","u1A64","u1A6D","u1A6E","u1A6F","u1A70","u1A71","u1A72","u1B04","u1B35","u1B3B","u1B3D","u1B3E","u1B3F","u1B40","u1B41","u1B43","u1B44","u1B82","u1BA1","u1BA6","u1BA7","u1BAA","u1BE7","u1BEA","u1BEB","u1BEC","u1BEE","u1BF2","u1BF3","u1C24","u1C25","u1C26","u1C27","u1C28","u1C29","u1C2A","u1C2B","u1C34","u1C35","u1CE1","u1CF2","u1CF3","u302E","u302F","uA823","uA824","uA827","uA880","uA881","uA8B4","uA8B5","uA8B6","uA8B7","uA8B8","uA8B9","uA8BA","uA8BB","uA8BC","uA8BD","uA8BE","uA8BF","uA8C0","uA8C1","uA8C2","uA8C3","uA952","uA953","uA983","uA9B4","uA9B5","uA9BA","uA9BB","uA9BD","uA9BE","uA9BF","uA9C0","uAA2F","uAA30","uAA33","uAA34","uAA4D","uAA7B","uAA7D","uAAEB","uAAEE","uAAEF","uAAF5","uABE3","uABE4","uABE6","uABE7","uABE9","uABEA","uABEC"];var V6=["u0300","u0301","u0302","u0303","u0304","u0305","u0306","u0307","u0308","u0309","u030A","u030B","u030C","u030D","u030E","u030F","u0310","u0311","u0312","u0313","u0314","u0315","u0316","u0317","u0318","u0319","u031A","u031B","u031C","u031D","u031E","u031F","u0320","u0321","u0322","u0323","u0324","u0325","u0326","u0327","u0328","u0329","u032A","u032B","u032C","u032D","u032E","u032F","u0330","u0331","u0332","u0333","u0334","u0335","u0336","u0337","u0338","u0339","u033A","u033B","u033C","u033D","u033E","u033F","u0340","u0341","u0342","u0343","u0344","u0345","u0346","u0347","u0348","u0349","u034A","u034B","u034C","u034D","u034E","u034F","u0350","u0351","u0352","u0353","u0354","u0355","u0356","u0357","u0358","u0359","u035A","u035B","u035C","u035D","u035E","u035F","u0360","u0361","u0362","u0363","u0364","u0365","u0366","u0367","u0368","u0369","u036A","u036B","u036C","u036D","u036E","u036F","u0483","u0484","u0485","u0486","u0487","u0591","u0592","u0593","u0594","u0595","u0596","u0597","u0598","u0599","u059A","u059B","u059C","u059D","u059E","u059F","u05A0","u05A1","u05A2","u05A3","u05A4","u05A5","u05A6","u05A7","u05A8","u05A9","u05AA","u05AB","u05AC","u05AD","u05AE","u05AF","u05B0","u05B1","u05B2","u05B3","u05B4","u05B5","u05B6","u05B7","u05B8","u05B9","u05BA","u05BB","u05BC","u05BD","u05BF","u05C1","u05C2","u05C4","u05C5","u05C7","u0610","u0611","u0612","u0613","u0614","u0615","u0616","u0617","u0618","u0619","u061A","u064B","u064C","u064D","u064E","u064F","u0650","u0651","u0652","u0653","u0654","u0655","u0656","u0657","u0658","u0659","u065A","u065B","u065C","u065D","u065E","u065F","u0670","u06D6","u06D7","u06D8","u06D9","u06DA","u06DB","u06DC","u06DF","u06E0","u06E1","u06E2","u06E3","u06E4","u06E7","u06E8","u06EA","u06EB","u06EC","u06ED","u0711","u0730","u0731","u0732","u0733","u0734","u0735","u0736","u0737","u0738","u0739","u073A","u073B","u073C","u073D","u073E","u073F","u0740","u0741","u0742","u0743","u0744","u0745","u0746","u0747","u0748","u0749","u074A","u07A6","u07A7","u07A8","u07A9","u07AA","u07AB","u07AC","u07AD","u07AE","u07AF","u07B0","u07EB","u07EC","u07ED","u07EE","u07EF","u07F0","u07F1","u07F2","u07F3","u0816","u0817","u0818","u0819","u081B","u081C","u081D","u081E","u081F","u0820","u0821","u0822","u0823","u0825","u0826","u0827","u0829","u082A","u082B","u082C","u082D","u0859","u085A","u085B","u08E3","u08E4","u08E5","u08E6","u08E7","u08E8","u08E9","u08EA","u08EB","u08EC","u08ED","u08EE","u08EF","u08F0","u08F1","u08F2","u08F3","u08F4","u08F5","u08F6","u08F7","u08F8","u08F9","u08FA","u08FB","u08FC","u08FD","u08FE","u08FF","u0900","u0901","u0902","u093A","u093C","u0941","u0942","u0943","u0944","u0945","u0946","u0947","u0948","u094D","u0951","u0952","u0953","u0954","u0955","u0956","u0957","u0962","u0963","u0981","u09BC","u09C1","u09C2","u09C3","u09C4","u09CD","u09E2","u09E3","u0A01","u0A02","u0A3C","u0A41","u0A42","u0A47","u0A48","u0A4B","u0A4C","u0A4D","u0A51","u0A70","u0A71","u0A75","u0A81","u0A82","u0ABC","u0AC1","u0AC2","u0AC3","u0AC4","u0AC5","u0AC7","u0AC8","u0ACD","u0AE2","u0AE3","u0B01","u0B3C","u0B3F","u0B41","u0B42","u0B43","u0B44","u0B4D","u0B56","u0B62","u0B63","u0B82","u0BC0","u0BCD","u0C00","u0C3E","u0C3F","u0C40","u0C46","u0C47","u0C48","u0C4A","u0C4B","u0C4C","u0C4D","u0C55","u0C56","u0C62","u0C63","u0C81","u0CBC","u0CBF","u0CC6","u0CCC","u0CCD","u0CE2","u0CE3","u0D01","u0D41","u0D42","u0D43","u0D44","u0D4D","u0D62","u0D63","u0DCA","u0DD2","u0DD3","u0DD4","u0DD6","u0E31","u0E34","u0E35","u0E36","u0E37","u0E38","u0E39","u0E3A","u0E47","u0E48","u0E49","u0E4A","u0E4B","u0E4C","u0E4D","u0E4E","u0EB1","u0EB4","u0EB5","u0EB6","u0EB7","u0EB8","u0EB9","u0EBB","u0EBC","u0EC8","u0EC9","u0ECA","u0ECB","u0ECC","u0ECD","u0F18","u0F19","u0F35","u0F37","u0F39","u0F71","u0F72","u0F73","u0F74","u0F75","u0F76","u0F77","u0F78","u0F79","u0F7A","u0F7B","u0F7C","u0F7D","u0F7E","u0F80","u0F81","u0F82","u0F83","u0F84","u0F86","u0F87","u0F8D","u0F8E","u0F8F","u0F90","u0F91","u0F92","u0F93","u0F94","u0F95","u0F96","u0F97","u0F99","u0F9A","u0F9B","u0F9C","u0F9D","u0F9E","u0F9F","u0FA0","u0FA1","u0FA2","u0FA3","u0FA4","u0FA5","u0FA6","u0FA7","u0FA8","u0FA9","u0FAA","u0FAB","u0FAC","u0FAD","u0FAE","u0FAF","u0FB0","u0FB1","u0FB2","u0FB3","u0FB4","u0FB5","u0FB6","u0FB7","u0FB8","u0FB9","u0FBA","u0FBB","u0FBC","u0FC6","u102D","u102E","u102F","u1030","u1032","u1033","u1034","u1035","u1036","u1037","u1039","u103A","u103D","u103E","u1058","u1059","u105E","u105F","u1060","u1071","u1072","u1073","u1074","u1082","u1085","u1086","u108D","u109D","u135D","u135E","u135F","u1712","u1713","u1714","u1732","u1733","u1734","u1752","u1753","u1772","u1773","u17B4","u17B5","u17B7","u17B8","u17B9","u17BA","u17BB","u17BC","u17BD","u17C6","u17C9","u17CA","u17CB","u17CC","u17CD","u17CE","u17CF","u17D0","u17D1","u17D2","u17D3","u17DD","u180B","u180C","u180D","u18A9","u1920","u1921","u1922","u1927","u1928","u1932","u1939","u193A","u193B","u1A17","u1A18","u1A1B","u1A56","u1A58","u1A59","u1A5A","u1A5B","u1A5C","u1A5D","u1A5E","u1A60","u1A62","u1A65","u1A66","u1A67","u1A68","u1A69","u1A6A","u1A6B","u1A6C","u1A73","u1A74","u1A75","u1A76","u1A77","u1A78","u1A79","u1A7A","u1A7B","u1A7C","u1A7F","u1AB0","u1AB1","u1AB2","u1AB3","u1AB4","u1AB5","u1AB6","u1AB7","u1AB8","u1AB9","u1ABA","u1ABB","u1ABC","u1ABD","u1B00","u1B01","u1B02","u1B03","u1B34","u1B36","u1B37","u1B38","u1B39","u1B3A","u1B3C","u1B42","u1B6B","u1B6C","u1B6D","u1B6E","u1B6F","u1B70","u1B71","u1B72","u1B73","u1B80","u1B81","u1BA2","u1BA3","u1BA4","u1BA5","u1BA8","u1BA9","u1BAB","u1BAC","u1BAD","u1BE6","u1BE8","u1BE9","u1BED","u1BEF","u1BF0","u1BF1","u1C2C","u1C2D","u1C2E","u1C2F","u1C30","u1C31","u1C32","u1C33","u1C36","u1C37","u1CD0","u1CD1","u1CD2","u1CD4","u1CD5","u1CD6","u1CD7","u1CD8","u1CD9","u1CDA","u1CDB","u1CDC","u1CDD","u1CDE","u1CDF","u1CE0","u1CE2","u1CE3","u1CE4","u1CE5","u1CE6","u1CE7","u1CE8","u1CED","u1CF4","u1CF8","u1CF9","u1DC0","u1DC1","u1DC2","u1DC3","u1DC4","u1DC5","u1DC6","u1DC7","u1DC8","u1DC9","u1DCA","u1DCB","u1DCC","u1DCD","u1DCE","u1DCF","u1DD0","u1DD1","u1DD2","u1DD3","u1DD4","u1DD5","u1DD6","u1DD7","u1DD8","u1DD9","u1DDA","u1DDB","u1DDC","u1DDD","u1DDE","u1DDF","u1DE0","u1DE1","u1DE2","u1DE3","u1DE4","u1DE5","u1DE6","u1DE7","u1DE8","u1DE9","u1DEA","u1DEB","u1DEC","u1DED","u1DEE","u1DEF","u1DF0","u1DF1","u1DF2","u1DF3","u1DF4","u1DF5","u1DFC","u1DFD","u1DFE","u1DFF","u20D0","u20D1","u20D2","u20D3","u20D4","u20D5","u20D6","u20D7","u20D8","u20D9","u20DA","u20DB","u20DC","u20E1","u20E5","u20E6","u20E7","u20E8","u20E9","u20EA","u20EB","u20EC","u20ED","u20EE","u20EF","u20F0","u2CEF","u2CF0","u2CF1","u2D7F","u2DE0","u2DE1","u2DE2","u2DE3","u2DE4","u2DE5","u2DE6","u2DE7","u2DE8","u2DE9","u2DEA","u2DEB","u2DEC","u2DED","u2DEE","u2DEF","u2DF0","u2DF1","u2DF2","u2DF3","u2DF4","u2DF5","u2DF6","u2DF7","u2DF8","u2DF9","u2DFA","u2DFB","u2DFC","u2DFD","u2DFE","u2DFF","u302A","u302B","u302C","u302D","u3099","u309A","uA66F","uA674","uA675","uA676","uA677","uA678","uA679","uA67A","uA67B","uA67C","uA67D","uA69E","uA69F","uA6F0","uA6F1","uA802","uA806","uA80B","uA825","uA826","uA8C4","uA8E0","uA8E1","uA8E2","uA8E3","uA8E4","uA8E5","uA8E6","uA8E7","uA8E8","uA8E9","uA8EA","uA8EB","uA8EC","uA8ED","uA8EE","uA8EF","uA8F0","uA8F1","uA926","uA927","uA928","uA929","uA92A","uA92B","uA92C","uA92D","uA947","uA948","uA949","uA94A","uA94B","uA94C","uA94D","uA94E","uA94F","uA950","uA951","uA980","uA981","uA982","uA9B3","uA9B6","uA9B7","uA9B8","uA9B9","uA9BC","uA9E5","uAA29","uAA2A","uAA2B","uAA2C","uAA2D","uAA2E","uAA31","uAA32","uAA35","uAA36","uAA43","uAA4C","uAA7C","uAAB0","uAAB2","uAAB3","uAAB4","uAAB7","uAAB8","uAABE","uAABF","uAAC1","uAAEC","uAAED","uAAF6","uABE5","uABE8","uABED","uFB1E","uFE00","uFE01","uFE02","uFE03","uFE04","uFE05","uFE06","uFE07","uFE08","uFE09","uFE0A","uFE0B","uFE0C","uFE0D","uFE0E","uFE0F","uFE20","uFE21","uFE22","uFE23","uFE24","uFE25","uFE26","uFE27","uFE28","uFE29","uFE2A","uFE2B","uFE2C","uFE2D","uFE2E","uFE2F"];var W6=G6.concat(V6);var q6=["-",";",":","&","|","u0E2F","u0EAF","u0EC6","u0ECC","u104A","u104B","u104C","u104D","u104E","u104F","u2013","u2014","u2027","u3000","u3001","u3002","uFF0C","uFF5E"];var K6=["'","<","(","{","[","u00AB","u300A","u3008"];var Y6=["'",">",")","}","]",".","!","?","/","u00BB","u300B","u3009"].concat(q6);var X6="က-ဪဿ-၉ၐ-ၕ";var Z6="぀-ゟ゠-ヿ＀--}⦅-゚㐀-䶿";var $6="㐀-龿";var J6="ກ-ຮະ-ໄ່-໋ໍ-ໝ";var Q6=X6+$6+Z6+J6;var t9=new RegExp("(\\".concat(q6.join("|\\"),")*[^\\s|\\").concat(q6.join("|\\"),"]*(\\").concat(q6.join("|\\"),")*"),"g");var e9=new RegExp("[".concat(Q6,"]"));var n9=new RegExp("(\\".concat(K6.join("|\\"),")*[").concat(Q6,"](\\").concat(Y6.join("|\\"),"|\\").concat(W6.join("|\\"),")*|[a-z0-9]+"),"gi");function r9(t){if(!e9.test(t))return L6(t).match(t9).filter(function(t){return t.length});return Ae(L6(t).match(t9).map(function(t){if(e9.test(t))return t.match(n9);return[t]}))}function i9(){var d="sans-serif",g=10,v=400,p=200,y,m=null,_=false,b=r9,w=200;function e(t){t=L6(t);if(y===void 0)y=Math.ceil(g*1.4);var e=b(t);var n={"font-family":d,"font-size":g,"font-weight":v,"line-height":y};var r=1,i="",a=false,o=0;var s=[],u=E6(e,n),l=E6(" ",n);for(var c=0;c<e.length;c++){var f=e[c];var h=u[e.indexOf(f)];f+=t.slice(i.length+f.length).match("^( |\n)*","g")[0];if(i.slice(-1)==="\n"||o+h>w){if(!c&&!_){a=true;break}if(s.length>=r)s[r-1]=R6(s[r-1]);r++;if(y*r>p||h>w&&!_||m&&r>m){a=true;break}o=0;s.push(f)}else if(!c)s[0]=f;else s[r-1]+=f;i+=f;o+=h;o+=f.match(/[\s]*$/g)[0].length*l}return{lines:s,sentence:t,truncated:a,widths:E6(s,n),words:e}}e.fontFamily=function(t){return arguments.length?(d=t,e):d};e.fontSize=function(t){return arguments.length?(g=t,e):g};e.fontWeight=function(t){return arguments.length?(v=t,e):v};e.height=function(t){return arguments.length?(p=t,e):p};e.lineHeight=function(t){return arguments.length?(y=t,e):y};e.maxLines=function(t){return arguments.length?(m=t,e):m};e.overflow=function(t){return arguments.length?(_=t,e):_};e.split=function(t){return arguments.length?(b=t,e):b};e.width=function(t){return arguments.length?(w=t,e):w};return e}function a9(t){"@babel/helpers - typeof";return a9="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a9(t)}function o9(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function s9(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function u9(t,e,n){if(e)s9(t.prototype,e);if(n)s9(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function l9(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});Object.defineProperty(t,"prototype",{writable:false});if(e)c9(t,e)}function c9(t,e){c9=Object.setPrototypeOf?Object.setPrototypeOf.bind():function t(e,n){e.__proto__=n;return e};return c9(t,e)}function f9(i){var a=g9();return function t(){var e=v9(i),n;if(a){var r=v9(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return h9(this,n)}}function h9(t,e){if(e&&(a9(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return d9(t)}function d9(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function g9(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function v9(t){v9=Object.setPrototypeOf?Object.getPrototypeOf.bind():function t(e){return e.__proto__||Object.getPrototypeOf(e)};return v9(t)}var p9={i:"font-style: italic;",em:"font-style: italic;",b:"font-weight: bold;",strong:"font-weight: bold;"};var y9=function(t){l9(r,t);var e=f9(r);function r(){var n;o9(this,r);n=e.call(this);n._ariaHidden=cb("false");n._delay=0;n._duration=0;n._ellipsis=function(t,e){return e?"".concat(t.replace(/\.|,$/g,""),"..."):""};n._fontColor=cb("black");n._fontFamily=cb(["Roboto","Helvetica Neue","HelveticaNeue","Helvetica","Arial","sans-serif"]);n._fontMax=cb(50);n._fontMin=cb(8);n._fontOpacity=cb(1);n._fontResize=cb(false);n._fontSize=cb(10);n._fontStroke=cb("transparent");n._fontStrokeWidth=cb(0);n._fontWeight=cb(400);n._height=Zl("height",200);n._html=p9;n._id=function(t,e){return t.id||"".concat(e)};n._lineHeight=function(t,e){return n._fontSize(t,e)*1.2};n._maxLines=cb(null);n._on={};n._overflow=cb(false);n._padding=cb(0);n._pointerEvents=cb("auto");n._rotate=cb(0);n._rotateAnchor=function(t){return[t.w/2,t.h/2]};n._split=r9;n._text=Zl("text");n._textAnchor=cb("start");n._verticalAlign=cb("top");n._width=Zl("width",200);n._x=Zl("x",0);n._y=Zl("y",0);return n}u9(r,[{key:"render",value:function t(e){var B=this;if(this._select===void 0)this.select(Ks("body").append("svg").style("width","".concat(window.innerWidth,"px")).style("height","".concat(window.innerHeight,"px")).node());var D=this;var n=this._select.selectAll(".d3plus-textBox").data(this._data.reduce(function(t,e,n){var r=B._text(e,n);if(r===void 0)return t;r=A6(r);var i=B._fontResize(e,n);var a=B._lineHeight(e,n)/B._fontSize(e,n);var o=i?B._fontMax(e,n):B._fontSize(e,n),s=i?o*a:B._lineHeight(e,n),u=1,l=[],c,f;var h={"font-family":j6(B._fontFamily(e,n)),"font-size":o,"font-weight":B._fontWeight(e,n),"line-height":s};var d=Cb(B._padding(e,n));var g=B._height(e,n)-(d.top+d.bottom),v=B._width(e,n)-(d.left+d.right);var p=i9().fontFamily(h["font-family"]).fontSize(o).fontWeight(h["font-weight"]).lineHeight(s).maxLines(B._maxLines(e,n)).height(g).overflow(B._overflow(e,n)).width(v).split(B._split);var y=B._fontMax(e,n),m=B._fontMin(e,n),_=B._verticalAlign(e,n),b=B._split(r,n);function w(){var t=function t(){if(u<1)l=[D._ellipsis("",u)];else l[u-1]=D._ellipsis(l[u-1],u)};o=Se([o,m]);o=Ce([o,y]);if(i){s=o*a;p.fontSize(o).lineHeight(s);h["font-size"]=o;h["line-height"]=s}f=p(r);l=f.lines.filter(function(t){return t!==""});u=l.length;if(f.truncated){if(i){o--;if(o<m){o=m;t();return}else w()}else t()}}if(v>m&&(g>s||i&&g>m*a)){if(i){c=E6(b,h);var x=1.165+v/g*.1,k=v*g,S=Se(c),C=Re(c,function(t){return t*s})*x;if(S>v||C>k){var E=Math.sqrt(k/C),A=v/S;var M=Ce([E,A]);o=Math.floor(o*M)}var R=Math.floor(g*.8);if(o>R)o=R}w()}if(l.length){var T=u*s;var O=B._rotate(e,n);var P=O===0?_==="top"?0:_==="middle"?g/2-T/2:g-T:0;P-=s*.1;t.push({aH:B._ariaHidden(e,n),data:e,i:n,lines:l,fC:B._fontColor(e,n),fStroke:B._fontStroke(e,n),fSW:B._fontStrokeWidth(e,n),fF:h["font-family"],fO:B._fontOpacity(e,n),fW:h["font-weight"],id:B._id(e,n),tA:B._textAnchor(e,n),vA:B._verticalAlign(e,n),widths:f.widths,fS:o,lH:s,w:v,h:g,r:O,x:B._x(e,n)+d.left,y:B._y(e,n)+P+d.top})}return t},[]),function(t){return B._id(t.data,t.i)});var i=this._select.transition().duration(this._duration);if(this._duration===0){n.exit().remove()}else{n.exit().transition().delay(this._duration).remove();n.exit().selectAll("text").transition(i).attr("opacity",0).style("opacity",0)}function r(t){t.attr("transform",function(t,e){var n=D._rotateAnchor(t,e);return"translate(".concat(t.x,", ").concat(t.y,") rotate(").concat(t.r,", ").concat(n[0],", ").concat(n[1],")")})}var a=n.enter().append("g").attr("class","d3plus-textBox").attr("id",function(t){return"d3plus-textBox-".concat(U6(t.id))}).call(r).merge(n);var o=I6();a.order().style("pointer-events",function(t){return B._pointerEvents(t.data,t.i)}).each(function(n){function t(t){var a=false;t[D._html?"html":"text"](function(i){var t=R6(i).replace(/&([^\;&]*)/g,function(t,e){return e==="amp"?t:"&amp;".concat(e)}).replace(/<([^A-z^/]+)/g,function(t,e){return"&lt;".concat(e)}).replace(/<$/g,"&lt;").replace(/(<[^>^\/]+>)([^<^>]+)$/g,function(t,e,n){return"".concat(e).concat(n).concat(e.replace("<","</"))}).replace(/^([^<^>]+)(<\/[^>]+>)/g,function(t,e,n){return"".concat(n.replace("</","<")).concat(e).concat(n)});var e=new RegExp(/<([A-z]+)[^>]*>([^<^>]+)<\/[^>]+>/g);if(t.match(e)){t=t.replace(e,function(t,e,n){a=D._html[e]?e:false;if(a){var r=D._html[a];if(i.includes("</".concat(a,">")))a=false;return'<tspan style="'.concat(r,'">').concat(n,"</tspan>")}return n})}else if(a.length){t='<tspan style="'.concat(D._html[a],'">').concat(t,"</tspan>")}return t})}function e(t){t.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(t,e){return n.r===0||n.vA==="top"?"".concat((e+1)*n.lH-(n.lH-n.fS),"px"):n.vA==="middle"?"".concat((n.h+n.fS)/2-(n.lH-n.fS)+(e-n.lines.length/2+.5)*n.lH,"px"):"".concat(n.h-2*(n.lH-n.fS)-(n.lines.length-(e+1))*n.lH+2*Math.cos(Math.PI*n.r/180),"px")})}var r=Ks(this).selectAll("text").data(n.lines);if(D._duration===0){r.call(t).call(e);r.exit().remove();r.enter().append("text").attr("dominant-baseline","alphabetic").style("baseline-shift","0%").attr("unicode-bidi","bidi-override").call(t).call(e).attr("opacity",n.fO).style("opacity",n.fO)}else{r.call(t).transition(i).call(e);r.exit().transition(i).attr("opacity",0).remove();r.enter().append("text").attr("dominant-baseline","alphabetic").style("baseline-shift","0%").attr("opacity",0).style("opacity",0).call(t).call(e).merge(r).transition(i).delay(D._delay).call(e).attr("opacity",n.fO).style("opacity",n.fO)}}).transition(i).call(r);var s=Object.keys(this._on),u=s.reduce(function(t,n){t[n]=function(t,e){return B._on[n](t.data,e)};return t},{});for(var l=0;l<s.length;l++){a.on(s[l],u[s[l]])}if(e)setTimeout(e,this._duration+100);return this}},{key:"ariaHidden",value:function t(e){return e!==undefined?(this._ariaHidden=typeof e==="function"?e:cb(e),this):this._ariaHidden}},{key:"data",value:function t(e){return arguments.length?(this._data=e,this):this._data}},{key:"delay",value:function t(e){return arguments.length?(this._delay=e,this):this._delay}},{key:"duration",value:function t(e){return arguments.length?(this._duration=e,this):this._duration}},{key:"ellipsis",value:function t(e){return arguments.length?(this._ellipsis=typeof e==="function"?e:cb(e),this):this._ellipsis}},{key:"fontColor",value:function t(e){return arguments.length?(this._fontColor=typeof e==="function"?e:cb(e),this):this._fontColor}},{key:"fontFamily",value:function t(e){return arguments.length?(this._fontFamily=typeof e==="function"?e:cb(e),this):this._fontFamily}},{key:"fontMax",value:function t(e){return arguments.length?(this._fontMax=typeof e==="function"?e:cb(e),this):this._fontMax}},{key:"fontMin",value:function t(e){return arguments.length?(this._fontMin=typeof e==="function"?e:cb(e),this):this._fontMin}},{key:"fontOpacity",value:function t(e){return arguments.length?(this._fontOpacity=typeof e==="function"?e:cb(e),this):this._fontOpacity}},{key:"fontResize",value:function t(e){return arguments.length?(this._fontResize=typeof e==="function"?e:cb(e),this):this._fontResize}},{key:"fontSize",value:function t(e){return arguments.length?(this._fontSize=typeof e==="function"?e:cb(e),this):this._fontSize}},{key:"fontStroke",value:function t(e){return arguments.length?(this._fontStroke=typeof e==="function"?e:cb(e),this):this._fontStroke}},{key:"fontStrokeWidth",value:function t(e){return arguments.length?(this._fontStrokeWidth=typeof e==="function"?e:cb(e),this):this._fontStrokeWidth}},{key:"fontWeight",value:function t(e){return arguments.length?(this._fontWeight=typeof e==="function"?e:cb(e),this):this._fontWeight}},{key:"height",value:function t(e){return arguments.length?(this._height=typeof e==="function"?e:cb(e),this):this._height}},{key:"html",value:function t(e){return arguments.length?(this._html=typeof e==="boolean"?e?p9:false:e,this):this._html}},{key:"id",value:function t(e){return arguments.length?(this._id=typeof e==="function"?e:cb(e),this):this._id}},{key:"lineHeight",value:function t(e){return arguments.length?(this._lineHeight=typeof e==="function"?e:cb(e),this):this._lineHeight}},{key:"maxLines",value:function t(e){return arguments.length?(this._maxLines=typeof e==="function"?e:cb(e),this):this._maxLines}},{key:"overflow",value:function t(e){return arguments.length?(this._overflow=typeof e==="function"?e:cb(e),this):this._overflow}},{key:"padding",value:function t(e){return arguments.length?(this._padding=typeof e==="function"?e:cb(e),this):this._padding}},{key:"pointerEvents",value:function t(e){return arguments.length?(this._pointerEvents=typeof e==="function"?e:cb(e),this):this._pointerEvents}},{key:"rotate",value:function t(e){return arguments.length?(this._rotate=typeof e==="function"?e:cb(e),this):this._rotate}},{key:"rotateAnchor",value:function t(e){return arguments.length?(this._rotateAnchor=typeof e==="function"?e:cb(e),this):this._rotateAnchor}},{key:"select",value:function t(e){return arguments.length?(this._select=Ks(e),this):this._select}},{key:"split",value:function t(e){return arguments.length?(this._split=e,this):this._split}},{key:"text",value:function t(e){return arguments.length?(this._text=typeof e==="function"?e:cb(e),this):this._text}},{key:"textAnchor",value:function t(e){return arguments.length?(this._textAnchor=typeof e==="function"?e:cb(e),this):this._textAnchor}},{key:"verticalAlign",value:function t(e){return arguments.length?(this._verticalAlign=typeof e==="function"?e:cb(e),this):this._verticalAlign}},{key:"width",value:function t(e){return arguments.length?(this._width=typeof e==="function"?e:cb(e),this):this._width}},{key:"x",value:function t(e){return arguments.length?(this._x=typeof e==="function"?e:cb(e),this):this._x}},{key:"y",value:function t(e){return arguments.length?(this._y=typeof e==="function"?e:cb(e),this):this._y}}]);return r}(ob);var m9=["a","an","and","as","at","but","by","for","from","if","in","into","near","nor","of","on","onto","or","per","that","the","to","with","via","vs","vs."];var _9=["CEO","CFO","CNC","COO","CPU","GDP","HVAC","ID","IT","R&D","TV","UI"];function b9(r){if(r===void 0)return"";var a=m9.map(function(t){return t.toLowerCase()});var o=_9.slice();o=o.concat(o.map(function(t){return"".concat(t,"s")}));var s=o.map(function(t){return t.toLowerCase()});var u=r9(r);return u.map(function(t,e){if(t){var n=t.toLowerCase();var r=Y6.includes(n.charAt(n.length-1))?n.slice(0,-1):n;var i=s.indexOf(r);if(i>=0)return o[i];else if(a.includes(r)&&e!==0&&e!==u.length-1)return n;else return t.charAt(0).toUpperCase()+t.substr(1).toLowerCase()}else return""}).reduce(function(t,e,n){if(n&&r.charAt(t.length)===" ")t+=" ";t+=e;return t},"")}var w9=function t(e,n){var r=n[0]-e[0],i=n[1]-e[1];return r*r+i*i};var x9=function t(e,n){return Math.sqrt(w9(e,n))};function k9(t){"@babel/helpers - typeof";return k9="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},k9(t)}function S9(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function C9(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function E9(t,e,n){if(e)C9(t.prototype,e);if(n)C9(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function A9(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}}),writable:false});if(e)M9(t,e)}function M9(t,e){M9=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return M9(t,e)}function R9(i){var a=P9();return function t(){var e=B9(i),n;if(a){var r=B9(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return T9(this,n)}}function T9(t,e){if(e&&(k9(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return O9(t)}function O9(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function P9(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function B9(t){B9=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return B9(t)}var D9=function(t){A9(n,t);var e=R9(n);function n(){var i;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"g";S9(this,n);i=e.call(this);i._activeOpacity=.25;i._activeStyle={stroke:function t(e,n){var r=i._fill(e,n);if(["transparent","none"].includes(r))r=i._stroke(e,n);return Rn(r).darker(1)},"stroke-width":function t(e,n){var r=i._strokeWidth(e,n)||1;return r*3}};i._ariaLabel=cb("");i._backgroundImage=cb(false);i._backgroundImageClass=new Xw;i._data=[];i._duration=600;i._fill=cb("black");i._fillOpacity=cb(1);i._hoverOpacity=.5;i._hoverStyle={stroke:function t(e,n){var r=i._fill(e,n);if(["transparent","none"].includes(r))r=i._stroke(e,n);return Rn(r).darker(.5)},"stroke-width":function t(e,n){var r=i._strokeWidth(e,n)||1;return r*2}};i._id=function(t,e){return t.id!==void 0?t.id:e};i._label=cb(false);i._labelClass=new y9;i._labelConfig={fontColor:function t(e,n){return ew(i._fill(e,n))},fontSize:12,padding:5};i._name="Shape";i._opacity=cb(1);i._pointerEvents=cb("visiblePainted");i._role=cb("presentation");i._rotate=cb(0);i._rx=cb(0);i._ry=cb(0);i._scale=cb(1);i._shapeRendering=cb("geometricPrecision");i._stroke=function(t,e){return Rn(i._fill(t,e)).darker(1)};i._strokeDasharray=cb("0");i._strokeLinecap=cb("butt");i._strokeOpacity=cb(1);i._strokeWidth=cb(0);i._tagName=t;i._textAnchor=cb("start");i._vectorEffect=cb("non-scaling-stroke");i._verticalAlign=cb("top");i._x=Zl("x",0);i._y=Zl("y",0);return i}E9(n,[{key:"_aes",value:function t(){return{}}},{key:"_applyEvents",value:function t(e){var s=this;var u=Object.keys(this._on);var n=function t(o){e.on(u[o],function(t,e,n){if(!s._on[u[o]])return;if(e.i!==void 0)n=e.i;if(e.nested&&e.values){var r=function t(e,n){if(s._discrete==="x")return[s._x(e,n),i[1]];else if(s._discrete==="y")return[i[0],s._y(e,n)];else return[s._x(e,n),s._y(e,n)]};var i=Xs(t,s._select.node()),a=e.values.map(function(t){return x9(i,r(t,n))});n=a.indexOf(Ce(a));e=e.values[n]}s._on[u[o]].bind(s)(e,n,undefined,t)})};for(var r=0;r<u.length;r++){n(r)}}},{key:"_updateStyle",value:function t(e,n){var r=this;if(e.size()&&e.node().tagName==="g")e=e.selectAll("*");function i(t,e){return typeof this!=="function"?this:t.nested&&t.key&&t.values?this(t.values[0],r._data.indexOf(t.values[0])):this(t,e)}var a={};for(var o in n){if({}.hasOwnProperty.call(n,o)){a[o]=i.bind(n[o])}}e.transition().duration(0).call(ec,a)}},{key:"_applyStyle",value:function t(e){var n=this;if(e.size()&&e.node().tagName==="g")e=e.selectAll("*");function r(t,e){return typeof this!=="function"?this:t.nested&&t.key&&t.values?this(t.values[0],n._data.indexOf(t.values[0])):this(t,e)}e.attr("fill",r.bind(this._fill)).attr("fill-opacity",r.bind(this._fillOpacity)).attr("rx",r.bind(this._rx)).attr("ry",r.bind(this._ry)).attr("stroke",r.bind(this._stroke)).attr("stroke-dasharray",r.bind(this._strokeDasharray)).attr("stroke-linecap",r.bind(this._strokeLinecap)).attr("stroke-opacity",r.bind(this._strokeOpacity)).attr("stroke-width",r.bind(this._strokeWidth)).attr("vector-effect",r.bind(this._vectorEffect))}},{key:"_applyTransform",value:function t(e){var n=this;e.attr("transform",function(t,e){return"\n translate(".concat(t.__d3plusShape__?t.translate?t.translate:"".concat(n._x(t.data,t.i),",").concat(n._y(t.data,t.i)):"".concat(n._x(t,e),",").concat(n._y(t,e)),")\n scale(").concat(t.__d3plusShape__?t.scale||n._scale(t.data,t.i):n._scale(t,e),")\n rotate(").concat(t.__d3plusShape__?t.rotate?t.rotate:n._rotate(t.data||t,t.i):n._rotate(t.data||t,t.i),")")})}},{key:"_nestWrapper",value:function t(n){return function(t,e){return n(t.__d3plusShape__?t.data:t,t.__d3plusShape__?t.i:e)}}},{key:"_renderActive",value:function t(){var i=this;this._group.selectAll(".d3plus-Shape, .d3plus-Image, .d3plus-textBox").each(function(t,e){if(!t)t={};if(!t.parentNode)t.parentNode=this.parentNode;var n=t.parentNode;if(Ks(this).classed("d3plus-textBox"))t=t.data;if(t.__d3plusShape__||t.__d3plus__){while(t&&(t.__d3plusShape__||t.__d3plus__)){e=t.i;t=t.data}}else e=i._data.indexOf(t);var r=!i._active||typeof i._active!=="function"||!i._active(t,e)?n:i._activeGroup.node();if(r!==this.parentNode){r.appendChild(this);if(this.className.baseVal.includes("d3plus-Shape")){if(n===r)Ks(this).call(i._applyStyle.bind(i));else Ks(this).call(i._updateStyle.bind(i,Ks(this),i._activeStyle))}}});this._group.selectAll("g.d3plus-".concat(this._name,"-shape, g.d3plus-").concat(this._name,"-image, g.d3plus-").concat(this._name,"-text")).attr("opacity",this._hover?this._hoverOpacity:this._active?this._activeOpacity:1)}},{key:"_renderHover",value:function t(){var i=this;this._group.selectAll("g.d3plus-".concat(this._name,"-shape, g.d3plus-").concat(this._name,"-image, g.d3plus-").concat(this._name,"-text, g.d3plus-").concat(this._name,"-hover")).selectAll(".d3plus-Shape, .d3plus-Image, .d3plus-textBox").each(function(t,e){if(!t)t={};if(!t.parentNode)t.parentNode=this.parentNode;var n=t.parentNode;if(Ks(this).classed("d3plus-textBox"))t=t.data;if(t.__d3plusShape__||t.__d3plus__){while(t&&(t.__d3plusShape__||t.__d3plus__)){e=t.i;t=t.data}}else e=i._data.indexOf(t);var r=!i._hover||typeof i._hover!=="function"||!i._hover(t,e)?n:i._hoverGroup.node();if(r!==this.parentNode)r.appendChild(this);if(this.className.baseVal.includes("d3plus-Shape")){if(n===r)Ks(this).call(i._applyStyle.bind(i));else Ks(this).call(i._updateStyle.bind(i,Ks(this),i._hoverStyle))}});this._group.selectAll("g.d3plus-".concat(this._name,"-shape, g.d3plus-").concat(this._name,"-image, g.d3plus-").concat(this._name,"-text")).attr("opacity",this._hover?this._hoverOpacity:this._active?this._activeOpacity:1)}},{key:"_renderImage",value:function t(){var l=this;var c=[];this._update.merge(this._enter).data().forEach(function(t,e){var n=l._aes(t,e);if(n.r||n.width&&n.height){var r=t;if(t.nested&&t.key&&t.values){r=t.values[0];e=l._data.indexOf(r)}var i=n.r?n.r*2:n.height,a=l._backgroundImage(r,e),o=n.r?n.r*2:n.width;if(a){var s=r.__d3plusShape__?r.translate?r.translate[0]:l._x(r.data,r.i):l._x(r,e),u=r.__d3plusShape__?r.translate?r.translate[1]:l._y(r.data,r.i):l._y(r,e);if(n.x)s+=n.x;if(n.y)u+=n.y;if(r.__d3plusShape__){r=r.data;e=r.i}c.push({__d3plus__:true,data:r,height:i,i:e,id:l._id(r,e),url:a,width:o,x:s+-o/2,y:u+-i/2})}}});this._backgroundImageClass.data(c).duration(this._duration).opacity(this._nestWrapper(this._opacity)).pointerEvents("none").select(fb("g.d3plus-".concat(this._name,"-image"),{parent:this._group,update:{opacity:this._active?this._activeOpacity:1}}).node()).render()}},{key:"_renderLabels",value:function t(){var h=this;var d=[];this._update.merge(this._enter).data().forEach(function(t,e){var n=t;if(t.nested&&t.key&&t.values){n=t.values[0];e=h._data.indexOf(n)}var r=h._label(n,e);if(h._labelBounds&&r!==false&&r!==undefined&&r!==null){var i=h._labelBounds.bind(h)(n,e,h._aes(t,e));if(i){if(r.constructor!==Array)r=[r];var a=n.__d3plusShape__?n.translate?n.translate[0]:h._x(n.data,n.i):h._x(n,e),o=n.__d3plusShape__?n.translate?n.translate[1]:h._y(n.data,n.i):h._y(n,e);if(n.__d3plusShape__){n=n.data;e=n.i}for(var s=0;s<r.length;s++){var u=i.constructor===Array?i[s]:Object.assign({},i);var l=h._rotate(n,e);var c=n.labelConfig&&n.labelConfig.rotate?n.labelConfig.rotate:i.angle!==undefined?i.angle:0;c+=l;var f=l!==0?[u.x*-1||0,u.y*-1||0]:[u.width/2,u.height/2];d.push({__d3plus__:true,data:n,height:u.height,l:s,id:"".concat(h._id(n,e),"_").concat(s),r:c,rotateAnchor:f,text:r[s],width:u.width,x:a+u.x,y:o+u.y})}}}});this._labelClass.data(d).duration(this._duration).fontOpacity(this._nestWrapper(this._opacity)).pointerEvents("none").rotate(function(t){return t.__d3plus__?t.r:t.data.r}).rotateAnchor(function(t){return t.__d3plus__?t.rotateAnchor:t.data.rotateAnchor}).select(fb("g.d3plus-".concat(this._name,"-text"),{parent:this._group,update:{opacity:this._active?this._activeOpacity:1}}).node()).config(lb.bind(this)(this._labelConfig)).render()}},{key:"render",value:function t(e){var n=this;if(this._select===void 0){this.select(Ks("body").append("svg").style("width","".concat(window.innerWidth,"px")).style("height","".concat(window.innerHeight,"px")).style("display","block").node())}this._transition=Gl(this._uuid).duration(this._duration);var r=this._data,i=this._id;if(this._dataFilter){r=this._dataFilter(r);if(r.key)i=r.key}if(this._sort){r=r.sort(function(t,e){while(t.__d3plusShape__||t.__d3plus__){t=t.data}while(e.__d3plusShape__||e.__d3plus__){e=e.data}return n._sort(t,e)})}Zs("g.d3plus-".concat(this._name,"-hover > *, g.d3plus-").concat(this._name,"-active > *")).each(function(t){if(t&&t.parentNode)t.parentNode.appendChild(this);else this.parentNode.removeChild(this)});this._group=fb("g.d3plus-".concat(this._name,"-group"),{parent:this._select});var a=this._update=fb("g.d3plus-".concat(this._name,"-shape"),{parent:this._group,update:{opacity:this._active?this._activeOpacity:1}}).selectAll(".d3plus-".concat(this._name)).data(r,i);a.order();if(this._duration){a.transition(this._transition).call(this._applyTransform.bind(this))}else{a.call(this._applyTransform.bind(this))}var o=this._enter=a.enter().append(this._tagName).attr("class",function(t,e){return"d3plus-Shape d3plus-".concat(n._name," d3plus-id-").concat(U6(n._nestWrapper(n._id)(t,e)))}).call(this._applyTransform.bind(this)).attr("aria-label",this._ariaLabel).attr("role",this._role).attr("opacity",this._nestWrapper(this._opacity));var s=o.merge(a);var u=s.attr("shape-rendering",this._nestWrapper(this._shapeRendering));if(this._duration){u=u.attr("pointer-events","none").transition(this._transition).transition().delay(100).attr("pointer-events",this._pointerEvents)}u.attr("opacity",this._nestWrapper(this._opacity));var l=this._exit=a.exit();if(this._duration)l.transition().delay(this._duration).remove();else l.remove();this._renderImage();this._renderLabels();this._hoverGroup=fb("g.d3plus-".concat(this._name,"-hover"),{parent:this._group});this._activeGroup=fb("g.d3plus-".concat(this._name,"-active"),{parent:this._group});var c=this._group.selectAll(".d3plus-HitArea").data(this._hitArea&&Object.keys(this._on).length?r:[],i);c.order().call(this._applyTransform.bind(this));var f=this._name==="Line";if(f){var h=this._curve.bind(this)(this.config());f&&this._path.curve(S6["curve".concat(h.charAt(0).toUpperCase()).concat(h.slice(1))]).defined(this._defined).x(this._x).y(this._y)}var d=c.enter().append(f?"path":"rect").attr("class",function(t,e){return"d3plus-HitArea d3plus-id-".concat(U6(n._nestWrapper(n._id)(t,e)))}).attr("fill","black").attr("stroke","black").attr("pointer-events","painted").attr("opacity",0).call(this._applyTransform.bind(this));var g=this;var v=c.merge(d).each(function(t){var e=g._data.indexOf(t);var n=g._hitArea(t,e,g._aes(t,e));return n&&!(g._name==="Line"&&parseFloat(g._strokeWidth(t,e))>10)?Ks(this).call(ec,n):Ks(this).remove()});c.exit().remove();this._applyEvents(this._hitArea?v:s);setTimeout(function(){if(n._active)n._renderActive();else if(n._hover)n._renderHover();if(e)e()},this._duration+100);return this}},{key:"active",value:function t(e){if(!arguments.length||e===undefined)return this._active;this._active=e;if(this._group){this._renderActive()}return this}},{key:"activeOpacity",value:function t(e){return arguments.length?(this._activeOpacity=e,this):this._activeOpacity}},{key:"activeStyle",value:function t(e){return arguments.length?(this._activeStyle=tc({},this._activeStyle,e),this):this._activeStyle}},{key:"ariaLabel",value:function t(e){return e!==undefined?(this._ariaLabel=typeof e==="function"?e:cb(e),this):this._ariaLabel}},{key:"backgroundImage",value:function t(e){return arguments.length?(this._backgroundImage=typeof e==="function"?e:cb(e),this):this._backgroundImage}},{key:"data",value:function t(e){return arguments.length?(this._data=e,this):this._data}},{key:"discrete",value:function t(e){return arguments.length?(this._discrete=e,this):this._discrete}},{key:"duration",value:function t(e){return arguments.length?(this._duration=e,this):this._duration}},{key:"fill",value:function t(e){return arguments.length?(this._fill=typeof e==="function"?e:cb(e),this):this._fill}},{key:"fillOpacity",value:function t(e){return arguments.length?(this._fillOpacity=typeof e==="function"?e:cb(e),this):this._fillOpacity}},{key:"hover",value:function t(e){if(!arguments.length||e===void 0)return this._hover;this._hover=e;if(this._group){this._renderHover()}return this}},{key:"hoverStyle",value:function t(e){return arguments.length?(this._hoverStyle=tc({},this._hoverStyle,e),this):this._hoverStyle}},{key:"hoverOpacity",value:function t(e){return arguments.length?(this._hoverOpacity=e,this):this._hoverOpacity}},{key:"hitArea",value:function t(e){return arguments.length?(this._hitArea=typeof e==="function"?e:cb(e),this):this._hitArea}},{key:"id",value:function t(e){return arguments.length?(this._id=e,this):this._id}},{key:"label",value:function t(e){return arguments.length?(this._label=typeof e==="function"?e:cb(e),this):this._label}},{key:"labelBounds",value:function t(e){return arguments.length?(this._labelBounds=typeof e==="function"?e:cb(e),this):this._labelBounds}},{key:"labelConfig",value:function t(e){return arguments.length?(this._labelConfig=tc(this._labelConfig,e),this):this._labelConfig}},{key:"opacity",value:function t(e){return arguments.length?(this._opacity=typeof e==="function"?e:cb(e),this):this._opacity}},{key:"pointerEvents",value:function t(e){return arguments.length?(this._pointerEvents=typeof e==="function"?e:cb(e),this):this._pointerEvents}},{key:"role",value:function t(e){return e!==undefined?(this._role=typeof e==="function"?e:cb(e),this):this._role}},{key:"rotate",value:function t(e){return arguments.length?(this._rotate=typeof e==="function"?e:cb(e),this):this._rotate}},{key:"rx",value:function t(e){return arguments.length?(this._rx=typeof e==="function"?e:cb(e),this):this._rx}},{key:"ry",value:function t(e){return arguments.length?(this._ry=typeof e==="function"?e:cb(e),this):this._ry}},{key:"scale",value:function t(e){return arguments.length?(this._scale=typeof e==="function"?e:cb(e),this):this._scale}},{key:"select",value:function t(e){return arguments.length?(this._select=Ks(e),this):this._select}},{key:"shapeRendering",value:function t(e){return arguments.length?(this._shapeRendering=typeof e==="function"?e:cb(e),this):this._shapeRendering}},{key:"sort",value:function t(e){return arguments.length?(this._sort=e,this):this._sort}},{key:"stroke",value:function t(e){return arguments.length?(this._stroke=typeof e==="function"?e:cb(e),this):this._stroke}},{key:"strokeDasharray",value:function t(e){return arguments.length?(this._strokeDasharray=typeof e==="function"?e:cb(e),this):this._strokeDasharray}},{key:"strokeLinecap",value:function t(e){return arguments.length?(this._strokeLinecap=typeof e==="function"?e:cb(e),this):this._strokeLinecap}},{key:"strokeOpacity",value:function t(e){return arguments.length?(this._strokeOpacity=typeof e==="function"?e:cb(e),this):this._strokeOpacity}},{key:"strokeWidth",value:function t(e){return arguments.length?(this._strokeWidth=typeof e==="function"?e:cb(e),this):this._strokeWidth}},{key:"textAnchor",value:function t(e){return arguments.length?(this._textAnchor=typeof e==="function"?e:cb(e),this):this._textAnchor}},{key:"vectorEffect",value:function t(e){return arguments.length?(this._vectorEffect=typeof e==="function"?e:cb(e),this):this._vectorEffect}},{key:"verticalAlign",value:function t(e){return arguments.length?(this._verticalAlign=typeof e==="function"?e:cb(e),this):this._verticalAlign}},{key:"x",value:function t(e){return arguments.length?(this._x=typeof e==="function"?e:cb(e),this):this._x}},{key:"y",value:function t(e){return arguments.length?(this._y=typeof e==="function"?e:cb(e),this):this._y}}]);return n}(ob);function N9(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);if(t){r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})}n.push.apply(n,r)}return n}function z9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};if(t%2){N9(Object(n),true).forEach(function(t){F9(e,t,n[t])})}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(e,Object.getOwnPropertyDescriptors(n))}else{N9(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}}return e}function F9(t,e,n){if(e in t){Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true})}else{t[e]=n}return t}function j9(){j9=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n){if(Object.prototype.hasOwnProperty.call(n,r)){t[r]=n[r]}}}return t};return j9.apply(this,arguments)}function I9(t,e){if(!t)return;if(typeof t==="string")return L9(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return L9(t,e)}function L9(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,r=new Array(e);n<e;n++){r[n]=t[n]}return r}function H9(e,t){var n=typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=I9(e))||t&&e&&typeof e.length==="number"){if(n)e=n;var r=0;var i=function t(){};return{s:i,n:function t(){if(r>=e.length)return{done:true};return{done:false,value:e[r++]}},e:function t(e){throw e},f:i}}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 a=true,o=false,s;return{s:function t(){n=n.call(e)},n:function t(){var e=n.next();a=e.done;return e},e:function t(e){o=true;s=e},f:function t(){try{if(!a&&n["return"]!=null)n["return"]()}finally{if(o)throw s}}}}function U9(t,e){var i=[];var a=[];function o(t,e){if(t.length===1){i.push(t[0]);a.push(t[0])}else{var n=Array(t.length-1);for(var r=0;r<n.length;r++){if(r===0){i.push(t[0])}if(r===n.length-1){a.push(t[r+1])}n[r]=[(1-e)*t[r][0]+e*t[r+1][0],(1-e)*t[r][1]+e*t[r+1][1]]}o(n,e)}}if(t.length){o(t,e)}return{left:i,right:a.reverse()}}function G9(t){var e={};if(t.length===4){e.x2=t[2][0];e.y2=t[2][1]}if(t.length>=3){e.x1=t[1][0];e.y1=t[1][1]}e.x=t[t.length-1][0];e.y=t[t.length-1][1];if(t.length===4){e.type="C"}else if(t.length===3){e.type="Q"}else{e.type="L"}return e}function V9(t,e){e=e||2;var n=[];var r=t;var i=1/e;for(var a=0;a<e-1;a++){var o=i/(1-i*a);var s=U9(r,o);n.push(s.left);r=s.right}n.push(r);return n}function W9(t,e,n){var r=[[t.x,t.y]];if(e.x1!=null){r.push([e.x1,e.y1])}if(e.x2!=null){r.push([e.x2,e.y2])}r.push([e.x,e.y]);return V9(r,n).map(G9)}var q9=/[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g;var K9={M:["x","y"],L:["x","y"],H:["x"],V:["y"],C:["x1","y1","x2","y2","x","y"],S:["x2","y2","x","y"],Q:["x1","y1","x","y"],T:["x","y"],A:["rx","ry","xAxisRotation","largeArcFlag","sweepFlag","x","y"],Z:[]};Object.keys(K9).forEach(function(t){K9[t.toLowerCase()]=K9[t]});function Y9(t,e){var n=Array(t);for(var r=0;r<t;r++){n[r]=e}return n}function X9(e){return"".concat(e.type).concat(K9[e.type].map(function(t){return e[t]}).join(","))}function Z9(r,i){var a={x1:"x",y1:"y",x2:"x",y2:"y"};var o=["xAxisRotation","largeArcFlag","sweepFlag"];if(r.type!==i.type&&i.type.toUpperCase()!=="M"){var s={};Object.keys(i).forEach(function(t){var e=i[t];var n=r[t];if(n===undefined){if(o.includes(t)){n=e}else{if(n===undefined&&a[t]){n=r[a[t]]}if(n===undefined){n=0}}}s[t]=n});s.type=i.type;r=s}return r}function $9(t,e,n){var r=[];if(e.type==="L"||e.type==="Q"||e.type==="C"){r=r.concat(W9(t,e,n))}else{var i=j9({},t);if(i.type==="M"){i.type="L"}r=r.concat(Y9(n-1).map(function(){return i}));r.push(e)}return r}function J9(a,t,o){var e=a.length-1;var n=t.length-1;var s=e/n;var r=Y9(n).reduce(function(t,e,n){var r=Math.floor(s*n);if(o&&r<a.length-1&&o(a[r],a[r+1])){var i=s*n%1<.5;if(t[r]){if(i){if(r>0){r-=1}else if(r<a.length-1){r+=1}}else if(r<a.length-1){r+=1}else if(r>0){r-=1}}}t[r]=(t[r]||0)+1;return t},[]);var i=r.reduce(function(t,e,n){if(n===a.length-1){var r=Y9(e,j9({},a[a.length-1]));if(r[0].type==="M"){r.forEach(function(t){t.type="L"})}return t.concat(r)}return t.concat($9(a[n],a[n+1],e))},[]);i.unshift(a[0]);return i}function Q9(t){var e=(t||"").match(q9)||[];var n=[];var r;var i;for(var a=0;a<e.length;++a){r=K9[e[a]];if(r){i={type:e[a]};for(var o=0;o<r.length;++o){i[r[o]]=+e[a+o+1]}a+=r.length;n.push(i)}}return n}function tk(t,l,e){var c=t==null?[]:t.slice();var f=l==null?[]:l.slice();if(!c.length&&!f.length){return function t(){return[]}}var n=(c.length===0||c[c.length-1].type==="Z")&&(f.length===0||f[f.length-1].type==="Z");if(c.length>0&&c[c.length-1].type==="Z"){c.pop()}if(f.length>0&&f[f.length-1].type==="Z"){f.pop()}if(!c.length){c.push(f[0])}else if(!f.length){f.push(c[0])}var r=Math.abs(f.length-c.length);if(r!==0){if(f.length>c.length){c=J9(c,f,e)}else if(f.length<c.length){f=J9(f,c,e)}}c=c.map(function(t,e){return Z9(t,f[e])});var h=c.map(function(t){return z9({},t)});if(n){h.push({type:"Z"});c.push({type:"Z"})}return function t(e){if(e===1){return l==null?[]:l}if(e===0){return c}for(var n=0;n<h.length;++n){var r=c[n];var i=f[n];var a=h[n];var o=H9(K9[a.type]),s;try{for(o.s();!(s=o.n()).done;){var u=s.value;a[u]=(1-e)*r[u]+e*i[u];if(u==="largeArcFlag"||u==="sweepFlag"){a[u]=Math.round(a[u])}}}catch(t){o.e(t)}finally{o.f()}}return h}}function ek(t,s,e){var n=Q9(t);var r=Q9(s);if(!n.length&&!r.length){return function t(){return""}}var u=tk(n,r,e);return function t(e){if(e===1){return s==null?"":s}var n=u(e);var r="";var i=H9(n),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;r+=X9(o)}}catch(t){i.e(t)}finally{i.f()}return r}}function nk(t){var e=-1,n=t.length,r,i=t[n-1],a=0;while(++e<n){r=i;i=t[e];a+=r[1]*i[0]-r[0]*i[1]}return a/2}function rk(t){var e=-1,n=t.length,r=0,i=0,a,o=t[n-1],s,u=0;while(++e<n){a=o;o=t[e];u+=s=a[0]*o[1]-o[0]*a[1];r+=(a[0]+o[0])*s;i+=(a[1]+o[1])*s}return u*=3,[r/u,i/u]}function ik(t,e,n){return(e[0]-t[0])*(n[1]-t[1])-(e[1]-t[1])*(n[0]-t[0])}function ak(t,e){return t[0]-e[0]||t[1]-e[1]}function ok(t){var e=t.length,n=[0,1];var r=2,i;for(i=2;i<e;++i){while(r>1&&ik(t[n[r-2]],t[n[r-1]],t[i])<=0){--r}n[r++]=i}return n.slice(0,r)}function sk(t){if((n=t.length)<3)return null;var e,n,r=new Array(n),i=new Array(n);for(e=0;e<n;++e){r[e]=[+t[e][0],+t[e][1],e]}r.sort(ak);for(e=0;e<n;++e){i[e]=[r[e][0],-r[e][1]]}var a=ok(r),o=ok(i);var s=o[0]===a[0],u=o[o.length-1]===a[a.length-1],l=[];for(e=a.length-1;e>=0;--e){l.push(t[r[a[e]][2]])}for(e=+s;e<o.length-u;++e){l.push(t[r[o[e]][2]])}return l}function uk(t,e){var n=t.length,r=t[n-1],i=e[0],a=e[1],o=r[0],s=r[1],u,l,c=false;for(var f=0;f<n;++f){r=t[f],u=r[0],l=r[1];if(l>a!==s>a&&i<(o-u)*(a-l)/(s-l)+u)c=!c;o=u,s=l}return c}function lk(t,e,n,r){var i=1e-9;var a=t[0]-e[0],o=n[0]-r[0],s=t[1]-e[1],u=n[1]-r[1];var l=a*u-s*o;if(Math.abs(l)<i)return null;var c=t[0]*e[1]-t[1]*e[0],f=n[0]*r[1]-n[1]*r[0];var h=(c*o-f*a)/l,d=(c*u-f*s)/l;return[h,d]}function ck(t,e){return vk(t)||gk(t,e)||hk(t,e)||fk()}function fk(){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 hk(t,e){if(!t)return;if(typeof t==="string")return dk(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dk(t,e)}function dk(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,r=new Array(e);n<e;n++){r[n]=t[n]}return r}function gk(t,e){var n=t==null?null:typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n==null)return;var r=[];var i=true;var a=false;var o,s;try{for(n=n.call(t);!(i=(o=n.next()).done);i=true){r.push(o.value);if(e&&r.length===e)break}}catch(t){a=true;s=t}finally{try{if(!i&&n["return"]!=null)n["return"]()}finally{if(a)throw s}}return r}function vk(t){if(Array.isArray(t))return t}function pk(t,e,n){var r=1e-9,i=ck(n,2),a=i[0],o=i[1];return!(a<Math.min(t[0],e[0])-r||a>Math.max(t[0],e[0])+r||o<Math.min(t[1],e[1])-r||o>Math.max(t[1],e[1])+r)}function yk(t,e,n,r){var i=lk(t,e,n,r);if(!i)return false;return pk(t,e,i)&&pk(n,r,i)}function mk(t,e){var n=-1;var r=t.length;var i=e.length;var a=t[r-1];while(++n<r){var o=a;a=t[n];var s=-1;var u=e[i-1];while(++s<i){var l=u;u=e[s];if(yk(o,a,l,u))return false}}return uk(e,t[0])}function _k(t,e){return Sk(t)||kk(t,e)||wk(t,e)||bk()}function bk(){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 wk(t,e){if(!t)return;if(typeof t==="string")return xk(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xk(t,e)}function xk(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,r=new Array(e);n<e;n++){r[n]=t[n]}return r}function kk(t,e){var n=t==null?null:typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n==null)return;var r=[];var i=true;var a=false;var o,s;try{for(n=n.call(t);!(i=(o=n.next()).done);i=true){r.push(o.value);if(e&&r.length===e)break}}catch(t){a=true;s=t}finally{try{if(!i&&n["return"]!=null)n["return"]()}finally{if(a)throw s}}return r}function Sk(t){if(Array.isArray(t))return t}function Ck(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var r=1e-9;e=[e[0]+r*Math.cos(n),e[1]+r*Math.sin(n)];var i=e,a=_k(i,2),o=a[0],s=a[1];var u=[o+Math.cos(n),s+Math.sin(n)];var l=0;if(Math.abs(u[0]-o)<r)l=1;var c=-1;var f=t.length;var h=t[f-1];var d=Number.MAX_VALUE;var g=Number.MAX_VALUE;var v=null;var p=null;while(++c<f){var y=h;h=t[c];var m=lk(e,u,y,h);if(m&&pk(y,h,m)){var _=w9(e,m);if(m[l]<e[l]){if(_<d){d=_;v=m}}else if(m[l]>e[l]){if(_<g){g=_;p=m}}}}return[v,p]}function Ek(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:[0,0];var r=Math.cos(e),i=Math.sin(e),a=t[0]-n[0],o=t[1]-n[1];return[r*a-i*o+n[0],i*a+r*o+n[1]]}var Ak=function t(e,n){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:[0,0];return e.map(function(t){return Ek(t,n,r)})};function Mk(t,e,n){var r=e[0],i=e[1];var a=n[0]-r,o=n[1]-i;if(a!==0||o!==0){var s=((t[0]-r)*a+(t[1]-i)*o)/(a*a+o*o);if(s>1){r=n[0];i=n[1]}else if(s>0){r+=a*s;i+=o*s}}a=t[0]-r;o=t[1]-i;return a*a+o*o}function Rk(t,e){var n,r=t[0];var i=[r];for(var a=1,o=t.length;a<o;a++){n=t[a];if(w9(n,r)>e){i.push(n);r=n}}if(r!==n)i.push(n);return i}function Tk(t,e,n,r,i){var a,o=r;for(var s=e+1;s<n;s++){var u=Mk(t[s],t[e],t[n]);if(u>o){a=s;o=u}}if(o>r){if(a-e>1)Tk(t,e,a,r,i);i.push(t[a]);if(n-a>1)Tk(t,a,n,r,i)}}function Ok(t,e){var n=t.length-1;var r=[t[0]];Tk(t,0,n,e,r);r.push(t[n]);return r}var Pk=function t(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:false;if(e.length<=2)return e;var i=n*n;e=r?e:Rk(e,i);e=Ok(e,i);return e};function Bk(t,e){return jk(t)||Fk(t,e)||Nk(t,e)||Dk()}function Dk(){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 Nk(t,e){if(!t)return;if(typeof t==="string")return zk(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zk(t,e)}function zk(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,r=new Array(e);n<e;n++){r[n]=t[n]}return r}function Fk(t,e){var n=t==null?null:typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n==null)return;var r=[];var i=true;var a=false;var o,s;try{for(n=n.call(t);!(i=(o=n.next()).done);i=true){r.push(o.value);if(e&&r.length===e)break}}catch(t){a=true;s=t}finally{try{if(!i&&n["return"]!=null)n["return"]()}finally{if(a)throw s}}return r}function jk(t){if(Array.isArray(t))return t}var Ik=.5;var Lk=5;var Hk={};function Uk(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(t.length<3){if(e.verbose)console.error("polygon has to have at least 3 points",t);return null}var n=[];e=Object.assign({angle:Me(-90,90+Lk,Lk),cache:true,maxAspectRatio:15,minAspectRatio:1,minHeight:0,minWidth:0,nTries:20,tolerance:.02,verbose:false},e);var r=e.angle instanceof Array?e.angle:typeof e.angle==="number"?[e.angle]:typeof e.angle==="string"&&!isNaN(e.angle)?[Number(e.angle)]:[];var i=e.aspectRatio instanceof Array?e.aspectRatio:typeof e.aspectRatio==="number"?[e.aspectRatio]:typeof e.aspectRatio==="string"&&!isNaN(e.aspectRatio)?[Number(e.aspectRatio)]:[];var a=e.origin&&e.origin instanceof Array?e.origin[0]instanceof Array?e.origin:[e.origin]:[];var o;if(e.cache){o=Ae(t).join(",");o+="-".concat(e.minAspectRatio);o+="-".concat(e.maxAspectRatio);o+="-".concat(e.minHeight);o+="-".concat(e.minWidth);o+="-".concat(r.join(","));o+="-".concat(a.join(","));if(Hk[o])return Hk[o]}var s=Math.abs(nk(t));if(s===0){if(e.verbose)console.error("polygon has 0 area",t);return null}var u=ke(t,function(t){return t[0]}),l=Bk(u,2),c=l[0],f=l[1];var h=ke(t,function(t){return t[1]}),d=Bk(h,2),g=d[0],v=d[1];var p=Math.min(f-c,v-g)*e.tolerance;if(p>0)t=Pk(t,p);if(e.events)n.push({type:"simplify",poly:t});var y=ke(t,function(t){return t[0]});var m=Bk(y,2);c=m[0];f=m[1];var _=ke(t,function(t){return t[1]});var b=Bk(_,2);g=b[0];v=b[1];var w=f-c,x=v-g;var k=Math.min(w,x)/50;if(!a.length){var S=rk(t);if(!isFinite(S[0])){if(e.verbose)console.error("cannot find centroid",t);return null}if(uk(t,S))a.push(S);var C=e.nTries;while(C){var E=Math.random()*w+c;var A=Math.random()*x+g;var M=[E,A];if(uk(t,M)){a.push(M)}C--}}if(e.events)n.push({type:"origins",points:a});var R=0;var T=null;for(var O=0;O<r.length;O++){var P=r[O];var B=-P*Math.PI/180;if(e.events)n.push({type:"angle",angle:P});for(var D=0;D<a.length;D++){var N=a[D];var z=Ck(t,N,B),F=Bk(z,2),j=F[0],I=F[1];var L=Ck(t,N,B+Math.PI/2),H=Bk(L,2),U=H[0],G=H[1];var V=[];if(j&&I)V.push([(j[0]+I[0])/2,(j[1]+I[1])/2]);if(U&&G)V.push([(U[0]+G[0])/2,(U[1]+G[1])/2]);if(e.events)n.push({type:"modifOrigin",idx:D,p1W:j,p2W:I,p1H:U,p2H:G,modifOrigins:V});for(var W=0;W<V.length;W++){var q=V[W];if(e.events)n.push({type:"origin",cx:q[0],cy:q[1]});var K=Ck(t,q,B),Y=Bk(K,2),X=Y[0],Z=Y[1];if(X===null||Z===null)continue;var $=Math.min(w9(q,X),w9(q,Z));var J=2*Math.sqrt($);var Q=Ck(t,q,B+Math.PI/2),tt=Bk(Q,2),et=tt[0],nt=tt[1];if(et===null||nt===null)continue;var rt=Math.min(w9(q,et),w9(q,nt));var it=2*Math.sqrt(rt);if(J*it<R)continue;var at=i;if(!at.length){var ot=Math.max(e.minAspectRatio,e.minWidth/it,R/(it*it));var st=Math.min(e.maxAspectRatio,J/e.minHeight,J*J/R);at=Me(ot,st+Ik,Ik)}for(var ut=0;ut<at.length;ut++){var lt=at[ut];var ct=Math.max(e.minWidth,Math.sqrt(R*lt));var ft=Math.min(J,it*lt);if(ft*it<R)continue;if(e.events&&ft-ct>=k)n.push({type:"aRatio",aRatio:lt});while(ft-ct>=k){var ht=(ct+ft)/2;var dt=ht/lt;var gt=Bk(q,2),vt=gt[0],pt=gt[1];var yt=[[vt-ht/2,pt-dt/2],[vt+ht/2,pt-dt/2],[vt+ht/2,pt+dt/2],[vt-ht/2,pt+dt/2]];yt=Ak(yt,B,q);var mt=mk(yt,t);if(mt){R=ht*dt;yt.push(yt[0]);T={area:R,cx:vt,cy:pt,width:ht,height:dt,angle:-P,points:yt};ct=ht}else{ft=ht}if(e.events)n.push({type:"rectangle",areaFraction:ht*dt/s,cx:vt,cy:pt,width:ht,height:dt,angle:P,insidePoly:mt})}}}}}if(e.cache){Hk[o]=T}return e.events?Object.assign(T||{},{events:n}):T}function Gk(t){"@babel/helpers - typeof";return Gk="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gk(t)}function Vk(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function Wk(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function qk(t,e,n){if(e)Wk(t.prototype,e);if(n)Wk(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function Kk(){if(typeof Reflect!=="undefined"&&Reflect.get){Kk=Reflect.get}else{Kk=function t(e,n,r){var i=Yk(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(arguments.length<3?e:r)}return a.value}}return Kk.apply(this,arguments)}function Yk(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=eS(t);if(t===null)break}return t}function Xk(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}}),writable:false});if(e)Zk(t,e)}function Zk(t,e){Zk=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return Zk(t,e)}function $k(i){var a=tS();return function t(){var e=eS(i),n;if(a){var r=eS(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return Jk(this,n)}}function Jk(t,e){if(e&&(Gk(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return Qk(t)}function Qk(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function tS(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function eS(t){eS=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return eS(t)}var nS=function(t){Xk(s,t);var e=$k(s);function s(){var i;Vk(this,s);i=e.call(this);i._curve=cb("linear");i._defined=function(){return true};i._labelBounds=function(t,e,n){var r=Uk(n.points);if(!r)return null;return{angle:r.angle,width:r.width,height:r.height,x:r.cx-r.width/2-i._x(t,e),y:r.cy-r.height/2-i._y(t,e)}};i._labelConfig=Object.assign(i._labelConfig,{textAnchor:"middle",verticalAlign:"middle"});i._name="Area";i._x=Zl("x");i._x0=Zl("x");i._x1=null;i._y=cb(0);i._y0=cb(0);i._y1=Zl("y");return i}qk(s,[{key:"_aes",value:function t(e){var n=this;var r=e.values.slice().sort(function(t,e){return n._y1?n._x(t)-n._x(e):n._y(t)-n._y(e)});var i=r.map(function(t,e){return[n._x0(t,e),n._y0(t,e)]});var a=r.reverse().map(function(t,e){return n._y1?[n._x(t,e),n._y1(t,e)]:[n._x1(t,e),n._y(t,e)]});var o=i.concat(a);if(i[0][1]>a[0][1])o=o.reverse();o.push(o[0]);return{points:o}}},{key:"_dataFilter",value:function t(r){var i=this;var e=vb().key(this._id).entries(r).map(function(t){t.data=Sb(t.values);t.i=r.indexOf(t.values[0]);var e=ke(t.values.map(i._x).concat(t.values.map(i._x0)).concat(i._x1?t.values.map(i._x1):[]));t.xR=e;t.width=e[1]-e[0];t.x=e[0]+t.width/2;var n=ke(t.values.map(i._y).concat(t.values.map(i._y0)).concat(i._y1?t.values.map(i._y1):[]));t.yR=n;t.height=n[1]-n[0];t.y=n[0]+t.height/2;t.nested=true;t.translate=[t.x,t.y];t.__d3plusShape__=true;return t});e.key=function(t){return t.key};return e}},{key:"render",value:function t(e){var n=this;Kk(eS(s.prototype),"render",this).call(this,e);var r=this._curve.bind(this)(this.config());var i=S6["curve".concat(r.charAt(0).toUpperCase()).concat(r.slice(1))];var a=this._path=O3().defined(this._defined).curve(i).x(this._x).x0(this._x0).x1(this._x1).y(this._y).y0(this._y0).y1(this._y1);var o=O3().defined(function(t){return t}).curve(i).x(this._x).y(this._y).x0(function(t,e){return n._x1?n._x0(t,e)+(n._x1(t,e)-n._x0(t,e))/2:n._x0(t,e)}).x1(function(t,e){return n._x1?n._x0(t,e)+(n._x1(t,e)-n._x0(t,e))/2:n._x0(t,e)}).y0(function(t,e){return n._y1?n._y0(t,e)+(n._y1(t,e)-n._y0(t,e))/2:n._y0(t,e)}).y1(function(t,e){return n._y1?n._y0(t,e)+(n._y1(t,e)-n._y0(t,e))/2:n._y0(t,e)});this._enter.append("path").attr("transform",function(t){return"translate(".concat(-t.xR[0]-t.width/2,", ").concat(-t.yR[0]-t.height/2,")")}).attr("d",function(t){return o(t.values)}).call(this._applyStyle.bind(this)).transition(this._transition).attrTween("d",function(t){return ek(Ks(this).attr("d"),a(t.values))});this._update.select("path").transition(this._transition).attr("transform",function(t){return"translate(".concat(-t.xR[0]-t.width/2,", ").concat(-t.yR[0]-t.height/2,")")}).attrTween("d",function(t){return ek(Ks(this).attr("d"),a(t.values))}).call(this._applyStyle.bind(this));this._exit.select("path").transition(this._transition).attrTween("d",function(t){return ek(Ks(this).attr("d"),o(t.values))});return this}},{key:"curve",value:function t(e){return arguments.length?(this._curve=typeof e==="function"?e:cb(e),this):this._curve}},{key:"defined",value:function t(e){return arguments.length?(this._defined=e,this):this._defined}},{key:"x",value:function t(e){if(!arguments.length)return this._x;this._x=typeof e==="function"?e:cb(e);this._x0=this._x;return this}},{key:"x0",value:function t(e){if(!arguments.length)return this._x0;this._x0=typeof e==="function"?e:cb(e);this._x=this._x0;return this}},{key:"x1",value:function t(e){return arguments.length?(this._x1=typeof e==="function"||e===null?e:cb(e),this):this._x1}},{key:"y",value:function t(e){if(!arguments.length)return this._y;this._y=typeof e==="function"?e:cb(e);this._y0=this._y;return this}},{key:"y0",value:function t(e){if(!arguments.length)return this._y0;this._y0=typeof e==="function"?e:cb(e);this._y=this._y0;return this}},{key:"y1",value:function t(e){return arguments.length?(this._y1=typeof e==="function"||e===null?e:cb(e),this):this._y1}}]);return s}(D9);function rS(t){"@babel/helpers - typeof";return rS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rS(t)}function iS(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function aS(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function oS(t,e,n){if(e)aS(t.prototype,e);if(n)aS(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function sS(){if(typeof Reflect!=="undefined"&&Reflect.get){sS=Reflect.get}else{sS=function t(e,n,r){var i=uS(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(arguments.length<3?e:r)}return a.value}}return sS.apply(this,arguments)}function uS(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=vS(t);if(t===null)break}return t}function lS(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}}),writable:false});if(e)cS(t,e)}function cS(t,e){cS=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return cS(t,e)}function fS(i){var a=gS();return function t(){var e=vS(i),n;if(a){var r=vS(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return hS(this,n)}}function hS(t,e){if(e&&(rS(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return dS(t)}function dS(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function gS(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function vS(t){vS=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return vS(t)}var pS=function(t){lS(a,t);var e=fS(a);function a(){var r;iS(this,a);r=e.call(this,"rect");r._name="Bar";r._height=cb(10);r._labelBounds=function(t,e,n){return{width:n.width,height:n.height,x:r._x1!==null?r._getX(t,e):-n.width/2,y:r._x1===null?r._getY(t,e):-n.height/2}};r._width=cb(10);r._x=Zl("x");r._x0=Zl("x");r._x1=null;r._y=cb(0);r._y0=cb(0);r._y1=Zl("y");return r}oS(a,[{key:"render",value:function t(e){var n=this;sS(vS(a.prototype),"render",this).call(this,e);var r=this._enter.attr("width",function(t,e){return n._x1===null?n._getWidth(t,e):0}).attr("height",function(t,e){return n._x1!==null?n._getHeight(t,e):0}).attr("x",function(t,e){return n._x1===null?-n._getWidth(t,e)/2:0}).attr("y",function(t,e){return n._x1!==null?-n._getHeight(t,e)/2:0}).call(this._applyStyle.bind(this));var i=this._update;if(this._duration){r=r.transition(this._transition);i=i.transition(this._transition);this._exit.transition(this._transition).attr("width",function(t,e){return n._x1===null?n._getWidth(t,e):0}).attr("height",function(t,e){return n._x1!==null?n._getHeight(t,e):0}).attr("x",function(t,e){return n._x1===null?-n._getWidth(t,e)/2:0}).attr("y",function(t,e){return n._x1!==null?-n._getHeight(t,e)/2:0})}r.call(this._applyPosition.bind(this));i.call(this._applyStyle.bind(this)).call(this._applyPosition.bind(this));return this}},{key:"_aes",value:function t(e,n){return{height:this._getHeight(e,n),width:this._getWidth(e,n)}}},{key:"_applyPosition",value:function t(e){var n=this;e.attr("width",function(t,e){return n._getWidth(t,e)}).attr("height",function(t,e){return n._getHeight(t,e)}).attr("x",function(t,e){return n._x1!==null?n._getX(t,e):-n._getWidth(t,e)/2}).attr("y",function(t,e){return n._x1===null?n._getY(t,e):-n._getHeight(t,e)/2})}},{key:"_getHeight",value:function t(e,n){if(this._x1!==null)return this._height(e,n);return Math.abs(this._y1(e,n)-this._y(e,n))}},{key:"_getWidth",value:function t(e,n){if(this._x1===null)return this._width(e,n);return Math.abs(this._x1(e,n)-this._x(e,n))}},{key:"_getX",value:function t(e,n){var r=this._x1===null?this._x(e,n):this._x1(e,n)-this._x(e,n);if(r<0)return r;else return 0}},{key:"_getY",value:function t(e,n){var r=this._x1!==null?this._y(e,n):this._y1(e,n)-this._y(e,n);if(r<0)return r;else return 0}},{key:"height",value:function t(e){return arguments.length?(this._height=typeof e==="function"?e:cb(e),this):this._height}},{key:"width",value:function t(e){return arguments.length?(this._width=typeof e==="function"?e:cb(e),this):this._width}},{key:"x0",value:function t(e){if(!arguments.length)return this._x0;this._x0=typeof e==="function"?e:cb(e);this._x=this._x0;return this}},{key:"x1",value:function t(e){return arguments.length?(this._x1=typeof e==="function"||e===null?e:cb(e),this):this._x1}},{key:"y0",value:function t(e){if(!arguments.length)return this._y0;this._y0=typeof e==="function"?e:cb(e);this._y=this._y0;return this}},{key:"y1",value:function t(e){return arguments.length?(this._y1=typeof e==="function"||e===null?e:cb(e),this):this._y1}}]);return a}(D9);function yS(t){"@babel/helpers - typeof";return yS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yS(t)}function mS(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function _S(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function bS(t,e,n){if(e)_S(t.prototype,e);if(n)_S(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function wS(){if(typeof Reflect!=="undefined"&&Reflect.get){wS=Reflect.get}else{wS=function t(e,n,r){var i=xS(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(arguments.length<3?e:r)}return a.value}}return wS.apply(this,arguments)}function xS(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=RS(t);if(t===null)break}return t}function kS(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}}),writable:false});if(e)SS(t,e)}function SS(t,e){SS=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return SS(t,e)}function CS(i){var a=MS();return function t(){var e=RS(i),n;if(a){var r=RS(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return ES(this,n)}}function ES(t,e){if(e&&(yS(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return AS(t)}function AS(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function MS(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function RS(t){RS=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return RS(t)}var TS=function(t){kS(i,t);var e=CS(i);function i(){var t;mS(this,i);t=e.call(this,"circle");t._labelBounds=function(t,e,n){return{width:n.r*1.5,height:n.r*1.5,x:-n.r*.75,y:-n.r*.75}};t._labelConfig=tc(t._labelConfig,{textAnchor:"middle",verticalAlign:"middle"});t._name="Circle";t._r=Zl("r");return t}bS(i,[{key:"_applyPosition",value:function t(e){var n=this;e.attr("r",function(t,e){return n._r(t,e)}).attr("x",function(t,e){return-n._r(t,e)/2}).attr("y",function(t,e){return-n._r(t,e)/2})}},{key:"render",value:function t(e){wS(RS(i.prototype),"render",this).call(this,e);var n=this._enter.call(this._applyStyle.bind(this));var r=this._update;if(this._duration){n.attr("r",0).attr("x",0).attr("y",0).transition(this._transition).call(this._applyPosition.bind(this));r=r.transition(this._transition);this._exit.transition(this._transition).attr("r",0).attr("x",0).attr("y",0)}else{n.call(this._applyPosition.bind(this))}r.call(this._applyStyle.bind(this)).call(this._applyPosition.bind(this));return this}},{key:"_aes",value:function t(e,n){return{r:this._r(e,n)}}},{key:"r",value:function t(e){return arguments.length?(this._r=typeof e==="function"?e:cb(e),this):this._r}}]);return i}(D9);function OS(t){"@babel/helpers - typeof";return OS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},OS(t)}function PS(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function BS(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function DS(t,e,n){if(e)BS(t.prototype,e);if(n)BS(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function NS(){if(typeof Reflect!=="undefined"&&Reflect.get){NS=Reflect.get}else{NS=function t(e,n,r){var i=zS(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(arguments.length<3?e:r)}return a.value}}return NS.apply(this,arguments)}function zS(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=GS(t);if(t===null)break}return t}function FS(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}}),writable:false});if(e)jS(t,e)}function jS(t,e){jS=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return jS(t,e)}function IS(i){var a=US();return function t(){var e=GS(i),n;if(a){var r=GS(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return LS(this,n)}}function LS(t,e){if(e&&(OS(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return HS(t)}function HS(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function US(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function GS(t){GS=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return GS(t)}var VS=function(t){FS(i,t);var e=IS(i);function i(){var t;PS(this,i);t=e.call(this,"rect");t._height=Zl("height");t._labelBounds=function(t,e,n){return{width:n.width,height:n.height,x:-n.width/2,y:-n.height/2}};t._name="Rect";t._width=Zl("width");return t}DS(i,[{key:"render",value:function t(e){NS(GS(i.prototype),"render",this).call(this,e);var n=this._enter.attr("width",0).attr("height",0).attr("x",0).attr("y",0).call(this._applyStyle.bind(this));var r=this._update;if(this._duration){n=n.transition(this._transition);r=r.transition(this._transition);this._exit.transition(this._transition).attr("width",0).attr("height",0).attr("x",0).attr("y",0)}n.call(this._applyPosition.bind(this));r.call(this._applyStyle.bind(this)).call(this._applyPosition.bind(this));return this}},{key:"_aes",value:function t(e,n){return{width:this._width(e,n),height:this._height(e,n)}}},{key:"_applyPosition",value:function t(e){var n=this;e.attr("width",function(t,e){return n._width(t,e)}).attr("height",function(t,e){return n._height(t,e)}).attr("x",function(t,e){return-n._width(t,e)/2}).attr("y",function(t,e){return-n._height(t,e)/2})}},{key:"height",value:function t(e){return arguments.length?(this._height=typeof e==="function"?e:cb(e),this):this._height}},{key:"width",value:function t(e){return arguments.length?(this._width=typeof e==="function"?e:cb(e),this):this._width}}]);return i}(D9);function WS(t){"@babel/helpers - typeof";return WS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},WS(t)}function qS(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function KS(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function YS(t,e,n){if(e)KS(t.prototype,e);if(n)KS(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function XS(){if(typeof Reflect!=="undefined"&&Reflect.get){XS=Reflect.get}else{XS=function t(e,n,r){var i=ZS(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(arguments.length<3?e:r)}return a.value}}return XS.apply(this,arguments)}function ZS(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=r4(t);if(t===null)break}return t}function $S(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}}),writable:false});if(e)JS(t,e)}function JS(t,e){JS=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return JS(t,e)}function QS(i){var a=n4();return function t(){var e=r4(i),n;if(a){var r=r4(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return t4(this,n)}}function t4(t,e){if(e&&(WS(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return e4(t)}function e4(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function n4(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function r4(t){r4=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return r4(t)}var i4=function(t){$S(l,t);var e=QS(l);function l(){var n;qS(this,l);n=e.call(this);n._curve=cb("linear");n._defined=function(t){return t};n._fill=cb("none");n._hitArea=cb({d:function t(e){return n._path(e.values)},fill:"none","stroke-width":10,transform:null});n._name="Line";n._path=T3();n._stroke=cb("black");n._strokeWidth=cb(1);return n}YS(l,[{key:"_dataFilter",value:function t(r){var i=this;var e=vb().key(this._id).entries(r).map(function(t){t.data=Sb(t.values);t.i=r.indexOf(t.values[0]);var e=ke(t.values,i._x);t.xR=e;t.width=e[1]-e[0];t.x=e[0]+t.width/2;var n=ke(t.values,i._y);t.yR=n;t.height=n[1]-n[0];t.y=n[0]+t.height/2;t.nested=true;t.translate=[t.x,t.y];t.__d3plusShape__=true;return t});e.key=function(t){return t.key};return e}},{key:"render",value:function t(e){var n=this;XS(r4(l.prototype),"render",this).call(this,e);var o=this;function r(t){t.initialLength=this.getTotalLength();var e=o._strokeDasharray(t.values[0],o._data.indexOf(t.values[0])).split(" ").map(Number);if(e.length===1&&e[0]===0)e=[t.initialLength];else if(e.length===1)e.push(e[0]);else if(e.length%2)e=e.concat(e);var n=[];var r=0;while(r<t.initialLength){for(var i=0;i<e.length;i++){var a=e[i];r+=a;n.push(a);if(r>=t.initialLength)break}}if(n.length>1&&n.length%2)n.pop();n[n.length-1]+=t.initialLength-Re(n);if(n.length%2===0)n.push(0);t.initialStrokeArray=n.join(" ")}var i=this._curve.bind(this)(this.config());var a=S6["curve".concat(i.charAt(0).toUpperCase()).concat(i.slice(1))];this._path.curve(a).defined(this._defined).x(this._x).y(this._y);var s=this._enter.append("path").attr("transform",function(t){return"translate(".concat(-t.xR[0]-t.width/2,", ").concat(-t.yR[0]-t.height/2,")")}).attr("d",function(t){return n._path(t.values)}).call(this._applyStyle.bind(this));var u=this._update.select("path").attr("stroke-dasharray",function(t){return o._strokeDasharray(t.values[0],o._data.indexOf(t.values[0]))});if(this._duration){s.each(r).attr("stroke-dasharray",function(t){return"".concat(t.initialStrokeArray," ").concat(t.initialLength)}).attr("stroke-dashoffset",function(t){return t.initialLength}).transition(this._transition).attr("stroke-dashoffset",0);u=u.transition(this._transition).attrTween("d",function(t){return ek(Ks(this).attr("d"),o._path(t.values))});this._exit.selectAll("path").each(r).attr("stroke-dasharray",function(t){return"".concat(t.initialStrokeArray," ").concat(t.initialLength)}).transition(this._transition).attr("stroke-dashoffset",function(t){return-t.initialLength})}else{u=u.attr("d",function(t){return o._path(t.values)})}u.attr("transform",function(t){return"translate(".concat(-t.xR[0]-t.width/2,", ").concat(-t.yR[0]-t.height/2,")")}).call(this._applyStyle.bind(this));return this}},{key:"_aes",value:function t(e,n){var r=this;return{points:e.values.map(function(t){return[r._x(t,n),r._y(t,n)]})}}},{key:"curve",value:function t(e){return arguments.length?(this._curve=typeof e==="function"?e:cb(e),this):this._curve}},{key:"defined",value:function t(e){return arguments.length?(this._defined=e,this):this._defined}}]);return l}(D9);function a4(t){"@babel/helpers - typeof";return a4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a4(t)}function o4(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function s4(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function u4(t,e,n){if(e)s4(t.prototype,e);if(n)s4(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function l4(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}}),writable:false});if(e)c4(t,e)}function c4(t,e){c4=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return c4(t,e)}function f4(i){var a=g4();return function t(){var e=v4(i),n;if(a){var r=v4(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return h4(this,n)}}function h4(t,e){if(e&&(a4(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return d4(t)}function d4(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function g4(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function v4(t){v4=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return v4(t)}var p4={Circle:TS,Rect:VS};var y4=function(t){l4(n,t);var e=f4(n);function n(){var t;o4(this,n);t=e.call(this);t._endpoint=Zl("endpoint","Rect");t._endpointConfig={Circle:{r:Zl("r",5)}};t._length=Zl("length",25);t._lineConfig={};t._orient=Zl("orient","top");t._x=Zl("x",0);t._y=Zl("y",0);return t}u4(n,[{key:"render",value:function t(e){var s=this;if(this._select===void 0){this.select(Ks("body").append("svg").style("width","".concat(window.innerWidth,"px")).style("height","".concat(window.innerHeight,"px")).style("display","block").node())}var u=[];this._data.forEach(function(t,e){var n=s._orient(t,e);var r=s._x(t,e);var i=s._y(t,e);var a=r;if(n==="left")a-=s._length(t,e);else if(n==="right")a+=s._length(t,e);var o=i;if(n==="top")o-=s._length(t,e);else if(n==="bottom")o+=s._length(t,e);u.push({__d3plus__:true,data:t,i:e,id:e,x:r,y:i});u.push({__d3plus__:true,data:t,i:e,id:e,x:a,y:o})});this._line=(new i4).data(u).select(fb("g.d3plus-Whisker",{parent:this._select}).node()).config(lb.bind(this)(this._lineConfig,"shape")).render(e);var n=this._data.map(function(t,e){var n={};n.__d3plus__=true;n.data=t;n.i=e;n.endpoint=s._endpoint(t,e);n.length=s._length(t,e);n.orient=s._orient(t,e);var r=s._x(t,e);if(n.orient==="left")r-=n.length;else if(n.orient==="right")r+=n.length;var i=s._y(t,e);if(n.orient==="top")i-=n.length;else if(n.orient==="bottom")i+=n.length;n.x=r;n.y=i;return n});this._whiskerEndpoint=[];vb().key(function(t){return t.endpoint}).entries(n).forEach(function(t){var e=t.key;s._whiskerEndpoint.push((new p4[e]).data(t.values).select(fb("g.d3plus-Whisker-Endpoint-".concat(e),{parent:s._select}).node()).config({height:function t(e){return e.orient==="top"||e.orient==="bottom"?5:20},width:function t(e){return e.orient==="top"||e.orient==="bottom"?20:5}}).config(lb.bind(s)(s._endpointConfig,"shape",e)).render())});return this}},{key:"active",value:function t(e){if(this._line)this._line.active(e);if(this._whiskerEndpoint)this._whiskerEndpoint.forEach(function(t){return t.active(e)})}},{key:"data",value:function t(e){return arguments.length?(this._data=e,this):this._data}},{key:"endpoint",value:function t(e){return arguments.length?(this._endpoint=typeof e==="function"?e:cb(e),this):this._endpoint}},{key:"endpointConfig",value:function t(e){return arguments.length?(this._endpointConfig=tc(this._endpointConfig,e),this):this._endpointConfig}},{key:"hover",value:function t(e){if(this._line)this._line.hover(e);if(this._whiskerEndpoint)this._whiskerEndpoint.forEach(function(t){return t.hover(e)})}},{key:"length",value:function t(e){return arguments.length?(this._length=typeof e==="function"?e:cb(e),this):this._length}},{key:"lineConfig",value:function t(e){return arguments.length?(this._lineConfig=tc(this._lineConfig,e),this):this._lineConfig}},{key:"orient",value:function t(e){return arguments.length?(this._orient=typeof e==="function"?e:cb(e),this):this._orient}},{key:"select",value:function t(e){return arguments.length?(this._select=Ks(e),this):this._select}},{key:"x",value:function t(e){return arguments.length?(this._x=typeof e==="function"?e:cb(e),this):this._x}},{key:"y",value:function t(e){return arguments.length?(this._y=typeof e==="function"?e:cb(e),this):this._y}}]);return n}(ob);function m4(t){"@babel/helpers - typeof";return m4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m4(t)}function _4(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function b4(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function w4(t,e,n){if(e)b4(t.prototype,e);if(n)b4(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function x4(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}}),writable:false});if(e)k4(t,e)}function k4(t,e){k4=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return k4(t,e)}function S4(i){var a=A4();return function t(){var e=M4(i),n;if(a){var r=M4(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return C4(this,n)}}function C4(t,e){if(e&&(m4(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return E4(t)}function E4(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function A4(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function M4(t){M4=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return M4(t)}var R4={Circle:TS,Rect:VS};var T4=function(t){x4(n,t);var e=S4(n);function n(){var r;_4(this,n);r=e.call(this);r._medianConfig={fill:cb("black")};r._orient=Zl("orient","vertical");r._outlier=Zl("outlier","Circle");r._outlierConfig={Circle:{r:Zl("r",5)},Rect:{height:function t(e,n){return r._orient(e,n)==="vertical"?5:20},width:function t(e,n){return r._orient(e,n)==="vertical"?20:5}}};r._rectConfig={fill:cb("white"),stroke:cb("black"),strokeWidth:cb(1)};r._rectWidth=cb(50);r._whiskerConfig={};r._whiskerMode=["tukey","tukey"];r._x=Zl("x",250);r._y=Zl("y",250);return r}w4(n,[{key:"render",value:function t(){var a=this;if(this._select===void 0){this.select(Ks("body").append("svg").style("width","".concat(window.innerWidth,"px")).style("height","".concat(window.innerHeight,"px")).style("display","block").node())}var o=[];var e=vb().key(function(t,e){return a._orient(t,e)==="vertical"?a._x(t,e):a._y(t,e)}).entries(this._data).map(function(i){i.data=Sb(i.values);i.i=a._data.indexOf(i.values[0]);i.orient=a._orient(i.data,i.i);var t=i.values.map(i.orient==="vertical"?a._y:a._x);t.sort(function(t,e){return t-e});i.first=Nt(t,.25);i.median=Nt(t,.5);i.third=Nt(t,.75);var e=a._whiskerMode;if(e[0]==="tukey"){i.lowerLimit=i.first-(i.third-i.first)*1.5;if(i.lowerLimit<Ce(t))i.lowerLimit=Ce(t)}else if(e[0]==="extent")i.lowerLimit=Ce(t);else if(typeof e[0]==="number")i.lowerLimit=Nt(t,e[0]);if(e[1]==="tukey"){i.upperLimit=i.third+(i.third-i.first)*1.5;if(i.upperLimit>Se(t))i.upperLimit=Se(t)}else if(e[1]==="extent")i.upperLimit=Se(t);else if(typeof e[1]==="number")i.upperLimit=Nt(t,e[1]);var n=i.third-i.first;if(i.orient==="vertical"){i.height=n;i.width=a._rectWidth(i.data,i.i);i.x=a._x(i.data,i.i);i.y=i.first+n/2}else if(i.orient==="horizontal"){i.height=a._rectWidth(i.data,i.i);i.width=n;i.x=i.first+n/2;i.y=a._y(i.data,i.i)}i.values.forEach(function(t,e){var n=i.orient==="vertical"?a._y(t,e):a._x(t,e);if(n<i.lowerLimit||n>i.upperLimit){var r={};r.__d3plus__=true;r.data=t;r.i=e;r.outlier=a._outlier(t,e);if(i.orient==="vertical"){r.x=i.x;r.y=n;o.push(r)}else if(i.orient==="horizontal"){r.y=i.y;r.x=n;o.push(r)}}});i.__d3plus__=true;return i});this._box=(new VS).data(e).x(function(t){return t.x}).y(function(t){return t.y}).select(fb("g.d3plus-Box",{parent:this._select}).node()).config(lb.bind(this)(this._rectConfig,"shape")).render();this._median=(new VS).data(e).x(function(t){return t.orient==="vertical"?t.x:t.median}).y(function(t){return t.orient==="vertical"?t.median:t.y}).height(function(t){return t.orient==="vertical"?1:t.height}).width(function(t){return t.orient==="vertical"?t.width:1}).select(fb("g.d3plus-Box-Median",{parent:this._select}).node()).config(lb.bind(this)(this._medianConfig,"shape")).render();var c=[];e.forEach(function(t,e){var n=t.x;var r=t.y;var i=t.first-t.lowerLimit;var a=t.upperLimit-t.third;if(t.orient==="vertical"){var o=r-t.height/2;var s=r+t.height/2;c.push({__d3plus__:true,data:t,i:e,x:n,y:o,length:i,orient:"top"},{__d3plus__:true,data:t,i:e,x:n,y:s,length:a,orient:"bottom"})}else if(t.orient==="horizontal"){var u=n+t.width/2;var l=n-t.width/2;c.push({__d3plus__:true,data:t,i:e,x:u,y:r,length:a,orient:"right"},{__d3plus__:true,data:t,i:e,x:l,y:r,length:i,orient:"left"})}});this._whisker=(new y4).data(c).select(fb("g.d3plus-Box-Whisker",{parent:this._select}).node()).config(lb.bind(this)(this._whiskerConfig,"shape")).render();this._whiskerEndpoint=[];vb().key(function(t){return t.outlier}).entries(o).forEach(function(t){var e=t.key;a._whiskerEndpoint.push((new R4[e]).data(t.values).select(fb("g.d3plus-Box-Outlier-".concat(e),{parent:a._select}).node()).config(lb.bind(a)(a._outlierConfig,"shape",e)).render())});return this}},{key:"active",value:function t(e){if(this._box)this._box.active(e);if(this._median)this._median.active(e);if(this._whisker)this._whisker.active(e);if(this._whiskerEndpoint)this._whiskerEndpoint.forEach(function(t){return t.active(e)})}},{key:"data",value:function t(e){return arguments.length?(this._data=e,this):this._data}},{key:"hover",value:function t(e){if(this._box)this._box.hover(e);if(this._median)this._median.hover(e);if(this._whisker)this._whisker.hover(e);if(this._whiskerEndpoint)this._whiskerEndpoint.forEach(function(t){return t.hover(e)})}},{key:"medianConfig",value:function t(e){return arguments.length?(this._medianConfig=tc(this._medianConfig,e),this):this._medianConfig}},{key:"orient",value:function t(e){return arguments.length?(this._orient=typeof e==="function"?e:cb(e),this):this._orient}},{key:"outlier",value:function t(e){return arguments.length?(this._outlier=typeof e==="function"?e:cb(e),this):this._outlier}},{key:"outlierConfig",value:function t(e){return arguments.length?(this._outlierConfig=tc(this._outlierConfig,e),this):this._outlierConfig}},{key:"rectConfig",value:function t(e){return arguments.length?(this._rectConfig=tc(this._rectConfig,e),this):this._rectConfig}},{key:"rectWidth",value:function t(e){return arguments.length?(this._rectWidth=typeof e==="function"?e:cb(e),this):this._rectWidth}},{key:"select",value:function t(e){return arguments.length?(this._select=Ks(e),this):this._select}},{key:"whiskerConfig",value:function t(e){return arguments.length?(this._whiskerConfig=tc(this._whiskerConfig,e),this):this._whiskerConfig}},{key:"whiskerMode",value:function t(e){return arguments.length?(this._whiskerMode=e instanceof Array?e:[e,e],this):this._whiskerMode}},{key:"x",value:function t(e){return arguments.length?(this._x=typeof e==="function"?e:Zl(e),this):this._x}},{key:"y",value:function t(e){return arguments.length?(this._y=typeof e==="function"?e:Zl(e),this):this._y}}]);return n}(ob);var O4=Math.PI;var P4=function t(e,n){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"circle";if(e<0)e=O4*2+e;if(r==="square"){var i=45*(O4/180);var a=0,o=0;if(e<O4/2){var s=Math.tan(e);a+=e<i?n:n/s;o+=e<i?s*n:n}else if(e<=O4){var u=Math.tan(O4-e);a-=e<O4-i?n/u:n;o+=e<O4-i?n:u*n}else if(e<i+O4){a-=n;o-=Math.tan(e-O4)*n}else if(e<3*O4/2){a-=n/Math.tan(e-O4);o-=n}else if(e<2*O4-i){a+=n/Math.tan(2*O4-e);o-=n}else{a+=n;o-=Math.tan(2*O4-e)*n}return[a,o]}else if(r==="circle"){return[n*Math.cos(e),n*Math.sin(e)]}else return null};var B4=Math.PI;var D4=function t(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:20;var r=[],i=/([MLA])([^MLAZ]+)/gi;var a=i.exec(e);while(a!==null){if(["M","L"].includes(a[1]))r.push(a[2].split(",").map(Number));else if(a[1]==="A"){var o=a[2].split(",").map(Number);var s=o.slice(o.length-2,o.length),u=r[r.length-1],l=o[0],c=x9(u,s);var f=Math.acos((l*l+l*l-c*c)/(2*l*l));if(o[2])f=B4*2-f;var h=f/(f/(B4*2)*(l*B4*2)/n);var d=Math.atan2(-u[1],-u[0])-B4;var g=h;while(g<f){r.push(P4(o[4]?d+g:d-g,l));g+=h}r.push(s)}a=i.exec(e)}return r};function N4(t){"@babel/helpers - typeof";return N4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N4(t)}function z4(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function F4(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function j4(t,e,n){if(e)F4(t.prototype,e);if(n)F4(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function I4(){if(typeof Reflect!=="undefined"&&Reflect.get){I4=Reflect.get}else{I4=function t(e,n,r){var i=L4(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(arguments.length<3?e:r)}return a.value}}return I4.apply(this,arguments)}function L4(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=K4(t);if(t===null)break}return t}function H4(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}Object.defineProperty(t,"prototype",{value:Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}}),writable:false});if(e)U4(t,e)}function U4(t,e){U4=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return U4(t,e)}function G4(i){var a=q4();return function t(){var e=K4(i),n;if(a){var r=K4(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return V4(this,n)}}function V4(t,e){if(e&&(N4(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return W4(t)}function W4(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function q4(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function K4(t){K4=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return K4(t)}var Y4=function(t){H4(a,t);var e=G4(a);function a(){var i;z4(this,a);i=e.call(this,"path");i._d=Zl("path");i._labelBounds=function(t,e,n){var r=Uk(n.points,{angle:i._labelConfig.rotate?i._labelConfig.rotate(t,e):0});return r?{angle:r.angle,width:r.width,height:r.height,x:r.cx-r.width/2,y:r.cy-r.height/2}:false};i._name="Path";i._labelConfig=Object.assign(i._labelConfig,{textAnchor:"middle",verticalAlign:"middle"});return i}j4(a,[{key:"_aes",value:function t(e,n){return{points:D4(this._d(e,n))}}},{key:"render",value:function t(e){I4(K4(a.prototype),"render",this).call(this,e);var n=this._enter.attr("d",this._d).call(this._applyStyle.bind(this));var r=this._update;if(this._duration){n.attr("opacity",0).transition(this._transition).attr("opacity",1);r=r.transition(this._transition);this._exit.transition(this._transition).attr("opacity",0)}r.call(this._applyStyle.bind(this)).attr("d",this._d);return this}},{key:"d",value:function t(e){return arguments.length?(this._d=typeof e==="function"?e:cb(e),this):this._d}}]);return a}(D9);var X4=Object.freeze({__proto__:null,Image:Xw,Shape:D9,Area:nS,Bar:pS,Box:T4,Circle:TS,Line:i4,Path:Y4,Rect:VS,Whisker:y4,largestRect:Uk,lineIntersection:lk,path2polygon:D4,pointDistance:x9,pointDistanceSquared:w9,pointRotate:Ek,polygonInside:mk,polygonRayCast:Ck,polygonRotate:Ak,segmentBoxContains:pk,segmentsIntersect:yk,shapeEdgePoint:P4,simplify:Pk});function Z4(t){if(t.constructor===Date)return t;else if(t.constructor===Number&&"".concat(t).length>5&&t%1===0)return new Date(t);var e="".concat(t);var n=new RegExp(/^\d{1,2}[./-]\d{1,2}[./-](-*\d{1,4})$/g).exec(e);if(n){var r=n[1];if(r.indexOf("-")===0)e=e.replace(r,r.substring(1));var i=new Date(e);i.setFullYear(r);return i}var a=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(e);if(a){var o=a[1];if(o.indexOf("-")===0)e=e.replace(o,o.substring(1));var s=new Date(e);s.setFullYear(o);return s}var u=new RegExp(/^([qQ]{1}[1-4]{1}|[1-4]{1}[qQ]{1})[\s|-]{0,1}(-*\d{1,4})$/g).exec(e);var l=new RegExp(/^(-*\d{1,4})[\s|-]{0,1}([qQ]{1}[1-4]{1}|[1-4]{1}[qQ]{1})$/g).exec(e);if(u||l){var c=+(u?u[1]:l[2]).toLowerCase().replace("q","");var f=+(u?u[2]:l[1]);var h=new Date(f,c*3-3,1);h.setFullYear(f);return h}if(!e.includes("/")&&!e.includes(" ")&&(!e.includes("-")||!e.indexOf("-"))){var d=new Date(+e,0,1);d.setFullYear(t);return d}return new Date(e)}var $4={"de-DE":{dateTime:"%A, der %e. %B %Y, %X",date:"%d.%m.%Y",time:"%H:%M:%S",quarter:"Q",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",quarter:"Q",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",quarter:"Q",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",quarter:"T",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",quarter:"T",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",quarter:"T",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",quarter:"T",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",quarter:"T",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 J4(t,e,n){if(e in t){Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true})}else{t[e]=n}return t}function Q4(t){return rC(t)||nC(t)||eC(t)||tC()}function tC(){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 eC(t,e){if(!t)return;if(typeof t==="string")return iC(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return iC(t,e)}function nC(t){if(typeof Symbol!=="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function rC(t){if(Array.isArray(t))return iC(t)}function iC(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,r=new Array(e);n<e;n++){r[n]=t[n]}return r}function aC(t){"@babel/helpers - typeof";return aC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},aC(t)}function oC(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function sC(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function uC(t,e,n){if(e)sC(t.prototype,e);if(n)sC(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function lC(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});Object.defineProperty(t,"prototype",{writable:false});if(e)cC(t,e)}function cC(t,e){cC=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return cC(t,e)}function fC(i){var a=gC();return function t(){var e=vC(i),n;if(a){var r=vC(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return hC(this,n)}}function hC(t,e){if(e&&(aC(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return dC(t)}function dC(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function gC(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function vC(t){vC=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return vC(t)}var pC=function t(e){return Math.pow(10,Math.floor(Math.log10(e)))};function yC(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var n=Mi().domain([10,400]).range([10,50]);var r=t.range();var i=Math.abs(r[1]-r[0]);var a=Math.floor(i/n(i));if(this._scale==="time"&&this._data&&this._data.length){var o=ke(this._data);var s=this._data.reduce(function(t,e,n,r){if(n){var i=Math.abs(e-r[n-1]);if(i<t)t=i}return t},Infinity);var u=Math.round((o[1]-o[0])/s);a=e?Ce([a*2,u]):Ce([a,u])}return t.ticks(a)}var mC=function(t){lC(r,t);var e=fC(r);function r(){var n;oC(this,r);n=e.call(this);n._align="middle";n._barConfig={stroke:"#999","stroke-width":1};n._data=[];n._domain=[0,10];n._duration=600;n._gridConfig={stroke:"#eee","stroke-width":1};n._gridLog=false;n._height=400;n._labelOffset=false;n._labelRotation=false;n.orient("bottom");n._outerBounds={width:0,height:0,x:0,y:0};n._padding=5;n._paddingInner=.1;n._paddingOuter=.1;n._scale="linear";n._scalePadding=.5;n._shape="Line";n._shapeConfig={fill:"#999",height:function t(e){return e.tick?8:0},label:function t(e){return e.text},labelBounds:function t(e){return e.labelBounds},labelConfig:{fontColor:"#999",fontFamily:(new y9).fontFamily(),fontResize:false,fontSize:cb(14),padding:0,textAnchor:function t(){var e=I6();return n._orient==="left"?e?"start":"end":n._orient==="right"?e?"end":"start":n._labelRotation?n._orient==="bottom"?"end":"start":"middle"},verticalAlign:function t(){return n._orient==="bottom"?"top":n._orient==="top"?"bottom":"middle"}},r:function t(e){return e.tick?4:0},stroke:"#999",strokeWidth:1,width:function t(e){return e.tick?8:0}};n._tickSize=8;n._tickSuffix="normal";n._tickUnit=0;n._timeLocale=undefined;n._titleClass=new y9;n._titleConfig={fontColor:Q2.dark,fontSize:12,textAnchor:"middle"};n._width=400;return n}uC(r,[{key:"_barPosition",value:function t(e){var n=this._position,r=n.height,i=n.x,a=n.y,o=n.opposite,s=this._margin[o],u=["top","left"].includes(this._orient)?this._outerBounds[a]+this._outerBounds[r]-s:this._outerBounds[a]+s;var l=this._scale==="band"?this._d3Scale.step()-this._d3Scale.bandwidth():this._scale==="point"?this._d3Scale.step()*this._d3Scale.padding():0;var c=this._scale==="band"?this._d3Scale.step():this._scale==="point"?this._d3Scale.step()*this._d3Scale.padding():0;var f=(this._d3ScaleNegative?this._d3ScaleNegative.domain():[]).concat(this._d3Scale?this._d3Scale.domain():[]).sort(function(t,e){return t-e});e.call(ec,this._barConfig).attr("".concat(i,"1"),this._getPosition(f[0])-l).attr("".concat(i,"2"),this._getPosition(f[f.length-1])+c).attr("".concat(a,"1"),u).attr("".concat(a,"2"),u)}},{key:"_getDomain",value:function t(){var e=[];if(this._d3ScaleNegative)e=this._d3ScaleNegative.domain();if(this._d3Scale)e=e.concat(this._d3Scale.domain());var n=["band","ordinal","point"].includes(this._scale)?e:ke(e);return e[0]>e[1]?n.reverse():n}},{key:"_getPosition",value:function t(e){return this._scale==="log"&&e===0?(this._d3Scale||this._d3ScaleNegative).range()[this._d3Scale?0:1]:(this._scale==="log"&&e<0?this._d3ScaleNegative:this._d3Scale)(e)}},{key:"_getRange",value:function t(){var e=[];if(this._d3ScaleNegative)e=this._d3ScaleNegative.range();if(this._d3Scale)e=e.concat(this._d3Scale.range());return e[0]>e[1]?ke(e).reverse():ke(e)}},{key:"_getLabels",value:function t(){var e=[];if(this._d3ScaleNegative)e=e.concat(yC.bind(this)(this._d3ScaleNegative,false));if(this._d3Scale)e=e.concat(yC.bind(this)(this._d3Scale,false));return e}},{key:"_getTicks",value:function t(){var e=[];if(this._d3ScaleNegative)e=e.concat(yC.bind(this)(this._d3ScaleNegative,true));if(this._d3Scale)e=e.concat(yC.bind(this)(this._d3Scale,true));return e}},{key:"_gridPosition",value:function t(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;var r=this._position,i=r.height,a=r.x,o=r.y,s=r.opposite,u=this._margin[s],l=["top","left"].includes(this._orient)?this._outerBounds[o]+this._outerBounds[i]-u:this._outerBounds[o]+u,c=n?this._lastScale||this._getPosition.bind(this):this._getPosition.bind(this),f=["top","left"].includes(this._orient)?u:-u,h=this._scale==="band"?this._d3Scale.bandwidth()/2:0,d=function t(e){return c(e.id)+h};e.call(ec,this._gridConfig).attr("".concat(a,"1"),d).attr("".concat(a,"2"),d).attr("".concat(o,"1"),l).attr("".concat(o,"2"),n?l:l+f)}},{key:"render",value:function t(e){var d=this,n;if(this._select===void 0){this.select(Ks("body").append("svg").attr("width","".concat(this._width,"px")).attr("height","".concat(this._height,"px")).node())}var s=this._timeLocale||$4[this._locale]||$4["en-US"];en(s).format();var r=this._position,i=r.width,g=r.height,v=r.x,p=r.y,y=r.horizontal,m=r.opposite,a="d3plus-Axis-clip-".concat(this._uuid),_=["top","left"].includes(this._orient),b=this._padding,o=this._select,P=[b,this["_".concat(i)]-b],u=Gl().duration(this._duration);var l=this._shape==="Circle"?this._shapeConfig.r:this._shape==="Rect"?this._shapeConfig[i]:this._shapeConfig.strokeWidth;var B=typeof l!=="function"?function(){return l}:l;var w=this._margin={top:0,right:0,bottom:0,left:0};var D,N,z;var F=this._tickFormat?this._tickFormat:function(t){if(isNaN(t)||["band","ordinal","point"].includes(d._scale)){return t}else if(d._scale==="time"){return Gw(t,(d._data||D).map(Z4)).replace(/^Q/g,s.quarter)}else if(d._scale==="linear"&&d._tickSuffix==="smallest"){var e=aC(d._locale)==="object"?d._locale:aw[d._locale];var n=e.separator,r=e.suffixes;var i=t>=1e3?r[d._tickUnit+8]:"";var a=t/Math.pow(10,3*d._tickUnit);var o=cw(a,e,",.".concat(a.toString().length,"r"));return"".concat(o).concat(n).concat(i)}else{return cw(t,d._locale)}};function c(){var i=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this._range;N=t?t.slice():[undefined,undefined];var e=P[0],n=P[1];if(this._range){if(this._range[0]!==undefined)e=this._range[0];if(this._range[this._range.length-1]!==undefined)n=this._range[this._range.length-1]}if(N[0]===undefined||N[0]<e)N[0]=e;if(N[1]===undefined||N[1]>n)N[1]=n;var r=n-e;if(this._scale==="ordinal"&&this._domain.length>N.length){if(t===this._range){var a=this._domain.length+1;N=Me(a).map(function(t){return N[0]+r*(t/(a-1))}).slice(1,a);N=N.map(function(t){return t-N[0]/2})}else{var o=this._domain.length;var s=N[1]-N[0];N=Me(o).map(function(t){return N[0]+s*(t/(o-1))})}}else if(t===this._range){var u=Mi().domain([10,400]).range([10,50]);var l=this._scale==="time"?this._domain.map(Z4):this._domain;var c=ft(l[0],l[1],Math.floor(r/u(r)));z=(this._ticks?this._scale==="time"?this._ticks.map(Z4):this._ticks:c).slice();D=(this._labels?this._scale==="time"?this._labels.map(Z4):this._labels:c).slice();var f=D.length;if(f){var h=Math.ceil(r/f/2);N=[N[0]+h,N[1]-h]}}var d="scale".concat(this._scale.charAt(0).toUpperCase()).concat(this._scale.slice(1));this._d3Scale=Ka[d]().domain(this._scale==="time"?this._domain.map(Z4):this._domain).range(N);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){var v=Ce([Ce(this._data),Math.abs(g[1])]);g[0]=v===0||v===1?1e-6:v<=1?pC(v):1;if(g[1]<0)g[0]*=-1}else if(g[g.length-1]===0){var p=Ce([Ce(this._data),Math.abs(g[0])]);g[g.length-1]=p===0||p===1?1e-6:p<=1?pC(p):1;if(g[0]<0)g[g.length-1]*=-1}var y=this._d3Scale.range();if(g[0]<0&&g[g.length-1]<0){this._d3ScaleNegative=this._d3Scale.copy().domain(g).range(y);this._d3Scale=null}else if(g[0]>0&&g[g.length-1]>0){this._d3Scale.domain(g).range(y)}else{var m=oi().domain(g).range([0,1]);var _=m(0);var b=_*(y[1]-y[0]);var w=Ce([Ce(this._data.filter(function(t){return t>=0})),Math.abs(g[1])]);var x=Ce([Ce(this._data.filter(function(t){return t<=-0})),Math.abs(g[0])]);var k=w===0?1e-6:w<=1?pC(w):1;var S=x===0?-1e-6:x<=1?pC(x):1;var C=Ce([k,S]);this._d3ScaleNegative=this._d3Scale.copy();(g[0]<0?this._d3Scale:this._d3ScaleNegative).domain([g[0]<0?C:-C,g[1]]).range([y[0]+b,y[1]]);(g[0]<0?this._d3ScaleNegative:this._d3Scale).domain([g[0],g[0]<0?-C:C]).range([y[0],y[0]+b])}}z=(this._ticks?this._scale==="time"?this._ticks.map(Z4):this._ticks:(this._d3Scale?this._d3Scale.ticks:this._d3ScaleNegative.ticks)?this._getTicks():this._domain).slice();D=(this._labels?this._scale==="time"?this._labels.map(Z4):this._labels:(this._d3Scale?this._d3Scale.ticks:this._d3ScaleNegative.ticks)?this._getLabels():z).slice();if(this._scale==="log"){var E=D.filter(function(t,e){return!e||e===D.length-1||Math.abs(t).toString().charAt(0)==="1"&&(i._d3Scale?t!==-1:t!==1)});if(E.length>2){D=E}else if(D.length>=10){D=D.filter(function(t){return t%5===0||F(t).substr(-1)==="1"})}if(D.includes(-1)&&D.includes(1)&&D.some(function(t){return t>10||t<10})){D.splice(D.indexOf(-1),1)}}if(this._scale==="time"){z=z.map(Number);D=D.map(Number)}z=z.sort(function(t,e){return i._getPosition(t)-i._getPosition(e)});D=D.sort(function(t,e){return i._getPosition(t)-i._getPosition(e)});if(this._scale==="linear"&&this._tickSuffix==="smallest"){var A=D.filter(function(t){return t>=1e3});if(A.length>0){var M=Math.min.apply(Math,Q4(A));var R=1;while(R&&R<7){var T=Math.pow(10,3*R);if(M/T>=1){this._tickUnit=R;R+=1}else{break}}}}var O=[];this._availableTicks=z;z.forEach(function(t,e){var n=B({id:t,tick:true},e);if(i._shape==="Circle")n*=2;var r=i._getPosition(t);if(!O.length||Math.abs(sb(r,O)-r)>n*2)O.push(r);else O.push(false)});z=z.filter(function(t,e){return O[e]!==false});this._visibleTicks=z}c.bind(this)();function f(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;var n=t.i,r=t.position;if(this._scale==="band"){return this._d3Scale.bandwidth()}else{var i=n-e<0?j.length===1||!this._range?P[0]:(r-j[n+e].position)/2-r:r-(r-j[n-e].position)/2;var a=Math.abs(r-i);var o=n+e>j.length-1?j.length===1||!this._range?P[1]:(r-j[n-e].position)/2-r:r-(r-j[n+e].position)/2;var s=Math.abs(r-o);return Ce([a,s])*2}}if(this._title){var h=this._titleConfig,x=h.fontFamily,k=h.fontSize,S=h.lineHeight;var C=i9().fontFamily(typeof x==="function"?x():x).fontSize(typeof k==="function"?k():k).lineHeight(typeof S==="function"?S():S).width(N[N.length-1]-N[0]-b*2).height(this["_".concat(g)]-this._tickSize-b*2);var E=C(this._title).lines.length;w[this._orient]=E*C.lineHeight()+b}var A=this._shape==="Circle"?typeof this._shapeConfig.r==="function"?this._shapeConfig.r({tick:true}):this._shapeConfig.r:this._shape==="Rect"?typeof this._shapeConfig[g]==="function"?this._shapeConfig[g]({tick:true}):this._shapeConfig[g]:this._tickSize,M=B({tick:true});if(typeof A==="function")A=Se(z.map(A));if(this._shape==="Rect")A/=2;if(typeof M==="function")M=Se(z.map(M));if(this._shape!=="Circle")M/=2;var R=this._shapeConfig.labelConfig,T=R.fontFamily,O=R.fontSize;var j=D.map(function(t,e){var n=typeof T==="function"?T(t,e):T,r=typeof O==="function"?O(t,e):O,i=d._getPosition(t);var a=d._shapeConfig.lineHeight?d._shapeConfig.lineHeight(t,e):r*1.4;return{d:t,i:e,fF:n,fS:r,lineHeight:a,position:i}});function I(t){var e=t.d,n=t.i,r=t.fF,i=t.fS,a=t.rotate,o=t.space;var s=a?"width":"height",u=a?"height":"width";var l=Ce([this._maxSize,this._width]);var c=Ce([this._maxSize,this._height]);var f=i9().fontFamily(r).fontSize(i).lineHeight(this._shapeConfig.lineHeight?this._shapeConfig.lineHeight(e,n):undefined)[u](y?o:l-A-b-this._margin.left-this._margin.right)[s](y?c-A-b-this._margin.top-this._margin.bottom:o);var h=f(F(e));h.lines=h.lines.filter(function(t){return t!==""});h.width=h.lines.length?Math.ceil(Se(h.widths))+i/4:0;if(h.width%2)h.width++;h.height=h.lines.length?Math.ceil(h.lines.length*f.lineHeight())+i/4:0;if(h.height%2)h.height++;return h}function L(){var i=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var a=0;i.forEach(function(t){var e=i[t.i-1];var n=t.rotate&&y||!t.rotate&&!y?"width":"height",r=t.rotate&&y||!t.rotate&&!y?"height":"width";if(!e){a=1}else if(e.position+e[r]/2>t.position-t[r]/2){if(a){t.offset=e[n];a=0}else a=1}})}j=j.map(function(t){t.rotate=d._labelRotation;t.space=f.bind(d)(t);var e=I.bind(d)(t);return Object.assign(e,t)});var H=this._labelOffset&&j.some(function(t){return t.truncated});if(this._labelRotation){j=j.map(function(t){t.rotate=true;var e=I.bind(d)(t);return Object.assign(t,e)})}else if(H){j=j.map(function(t){t.space=f.bind(d)(t,2);var e=I.bind(d)(t);return Object.assign(t,e)});L.bind(this)(j)}var U=[0,0];for(var G=0;G<2;G++){var V=j[G?j.length-1:0];if(!V)break;var W=V.height,q=V.position,K=V.rotate,Y=V.width;var X=G?P[1]:P[0];var Z=(K||!y?W:Y)/2;var $=G?q+Z-X:q-Z-X;U[G]=$}var J=N[0];var Q=N[N.length-1];var tt=[J-U[0],Q-U[1]];if(this._range){if(this._range[0]!==undefined)tt[0]=this._range[0];if(this._range[this._range.length-1]!==undefined)tt[1]=this._range[this._range.length-1]}if(tt[0]!==J||tt[1]!==Q){c.bind(this)(tt);j=D.map(function(t,e){var n=typeof T==="function"?T(t,e):T,r=typeof O==="function"?O(t,e):O,i=d._getPosition(t);var a=d._shapeConfig.lineHeight?d._shapeConfig.lineHeight(t,e):r*1.4;return{d:t,i:e,fF:n,fS:r,lineHeight:a,position:i}});j=j.map(function(t){t.rotate=d._labelRotation;t.space=f.bind(d)(t,H?2:1);var e=I.bind(d)(t);return Object.assign(e,t)});L.bind(this)(j)}var et=Se(j,function(t){return t.height})||0;this._labelRotation=y&&this._labelRotation===undefined?j.some(function(t){var e=t.i,n=t.height,r=t.position,i=t.truncated;var a=j[e-1];return i||e&&a.position+a.height/2>r-n/2}):this._labelRotation;var nt=this._labelOffset?Se(j,function(t){return t.offset||0}):0;j.forEach(function(t){return t.offset=t.offset?nt:0});var rt=this._shape==="Line"?0:A;var it=this._outerBounds=(n={},J4(n,g,(Se(j,function(t){return Math.ceil(t[t.rotate||!y?"width":"height"]+t.offset)})||0)+(j.length?b:0)),J4(n,i,P[P.length-1]-P[0]),J4(n,v,P[0]),n);it[g]=Se([this._minSize,it[g]]);w[this._orient]+=A;w[m]=this._gridSize!==undefined?Se([this._gridSize,rt]):this["_".concat(g)]-w[this._orient]-it[g]-b;it[g]+=w[m]+w[this._orient];it[p]=this._align==="start"?this._padding:this._align==="end"?this["_".concat(g)]-it[g]-this._padding:this["_".concat(g)]/2-it[g]/2;var at=fb("g#d3plus-Axis-".concat(this._uuid),{parent:o});this._group=at;var ot=fb("g.grid",{parent:at}).selectAll("line").data((this._gridSize!==0?this._grid||this._scale==="log"&&!this._gridLog?D:z:[]).map(function(t){return{id:t}}),function(t){return t.id});ot.exit().transition(u).attr("opacity",0).call(this._gridPosition.bind(this)).remove();ot.enter().append("line").attr("opacity",0).attr("clip-path","url(#".concat(a,")")).call(this._gridPosition.bind(this),true).merge(ot).transition(u).attr("opacity",1).call(this._gridPosition.bind(this));var st=D.filter(function(t,e){return j[e].lines.length&&!z.includes(t)});var ut=j.some(function(t){return t.rotate});var lt=z.concat(st).map(function(e){var t;var n=j.find(function(t){return t.d===e});var r=d._getPosition(e);var i=n?n.space:0;var a=n?n.lines.length:1;var o=n?n.lineHeight:1;var s=n&&d._labelOffset?n.offset:0;var u=y?i:it.width-w[d._position.opposite]-A-w[d._orient]+b;var l=w[m],c=(A+s)*(_?-1:1),f=_?it[p]+it[g]-l:it[p]+l;var h=(t={id:e,labelBounds:ut&&n?{x:-n.width/2+n.fS/4,y:d._orient==="bottom"?c+b+(n.width-o*a)/2:c-b*2-(n.width+o*a)/2,width:n.width,height:n.height}:{x:y?-i/2:d._orient==="left"?-u-b+c:c+b,y:y?d._orient==="bottom"?c+b:c-b-et:-i/2,width:y?i:u,height:y?et:i},rotate:n?n.rotate:false,size:D.includes(e)?c:d._data.find(function(t){return+t===e})?Math.ceil(c/2):0,text:D.includes(e)?F(e):false,tick:z.includes(e)},J4(t,v,r+(d._scale==="band"?d._d3Scale.bandwidth()/2:0)),J4(t,p,f),t);return h});if(this._shape==="Line"){lt=lt.concat(lt.map(function(t){var e=Object.assign({},t);e[p]+=t.size;return e}))}(new X4[this._shape]).data(lt).duration(this._duration).labelConfig({ellipsis:function t(e){return e&&e.length?"".concat(e,"..."):""},rotate:function t(e){return e.rotate?-90:0}}).select(fb("g.ticks",{parent:at}).node()).config(this._shapeConfig).render();var ct=at.selectAll("line.bar").data([null]);ct.enter().append("line").attr("class","bar").attr("opacity",0).call(this._barPosition.bind(this)).merge(ct).transition(u).attr("opacity",1).call(this._barPosition.bind(this));this._titleClass.data(this._title?[{text:this._title}]:[]).duration(this._duration).height(w[this._orient]).rotate(this._orient==="left"?-90:this._orient==="right"?90:0).select(fb("g.d3plus-Axis-title",{parent:at}).node()).text(function(t){return t.text}).verticalAlign("middle").width(N[N.length-1]-N[0]).x(y?N[0]:this._orient==="left"?it.x+w.left/2-(N[N.length-1]-N[0])/2:it.x+it.width-w.right/2-(N[N.length-1]-N[0])/2).y(y?this._orient==="bottom"?it.y+it.height-w.bottom:it.y:N[0]+(N[N.length-1]-N[0])/2-w[this._orient]/2).config(this._titleConfig).render();this._lastScale=this._getPosition.bind(this);if(e)setTimeout(e,this._duration+100);return this}},{key:"align",value:function t(e){return arguments.length?(this._align=e,this):this._align}},{key:"barConfig",value:function t(e){return arguments.length?(this._barConfig=Object.assign(this._barConfig,e),this):this._barConfig}},{key:"data",value:function t(e){return arguments.length?(this._data=e,this):this._data}},{key:"domain",value:function t(e){return arguments.length?(this._domain=e,this):this._domain}},{key:"duration",value:function t(e){return arguments.length?(this._duration=e,this):this._duration}},{key:"grid",value:function t(e){return arguments.length?(this._grid=e,this):this._grid}},{key:"gridConfig",value:function t(e){return arguments.length?(this._gridConfig=Object.assign(this._gridConfig,e),this):this._gridConfig}},{key:"gridLog",value:function t(e){return arguments.length?(this._gridLog=e,this):this._gridLog}},{key:"gridSize",value:function t(e){return arguments.length?(this._gridSize=e,this):this._gridSize}},{key:"height",value:function t(e){return arguments.length?(this._height=e,this):this._height}},{key:"labels",value:function t(e){return arguments.length?(this._labels=e,this):this._labels}},{key:"labelOffset",value:function t(e){return arguments.length?(this._labelOffset=e,this):this._labelOffset}},{key:"labelRotation",value:function t(e){return arguments.length?(this._labelRotation=e,this):this._labelRotation}},{key:"maxSize",value:function t(e){return arguments.length?(this._maxSize=e,this):this._maxSize}},{key:"minSize",value:function t(e){return arguments.length?(this._minSize=e,this):this._minSize}},{key:"orient",value:function t(e){if(arguments.length){var n=["top","bottom"].includes(e),r={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:r[e]};return this._orient=e,this}return this._orient}},{key:"outerBounds",value:function t(){return this._outerBounds}},{key:"padding",value:function t(e){return arguments.length?(this._padding=e,this):this._padding}},{key:"paddingInner",value:function t(e){return arguments.length?(this._paddingInner=e,this):this._paddingInner}},{key:"paddingOuter",value:function t(e){return arguments.length?(this._paddingOuter=e,this):this._paddingOuter}},{key:"range",value:function t(e){return arguments.length?(this._range=e,this):this._range}},{key:"scale",value:function t(e){return arguments.length?(this._scale=e,this):this._scale}},{key:"scalePadding",value:function t(e){return arguments.length?(this._scalePadding=e,this):this._scalePadding}},{key:"select",value:function t(e){return arguments.length?(this._select=Ks(e),this):this._select}},{key:"shape",value:function t(e){return arguments.length?(this._shape=e,this):this._shape}},{key:"shapeConfig",value:function t(e){return arguments.length?(this._shapeConfig=tc(this._shapeConfig,e),this):this._shapeConfig}},{key:"tickFormat",value:function t(e){return arguments.length?(this._tickFormat=e,this):this._tickFormat}},{key:"ticks",value:function t(e){return arguments.length?(this._ticks=e,this):this._ticks}},{key:"tickSize",value:function t(e){return arguments.length?(this._tickSize=e,this):this._tickSize}},{key:"tickSuffix",value:function t(e){return arguments.length?(this._tickSuffix=e,this):this._tickSuffix}},{key:"timeLocale",value:function t(e){return arguments.length?(this._timeLocale=e,this):this._timeLocale}},{key:"title",value:function t(e){return arguments.length?(this._title=e,this):this._title}},{key:"titleConfig",value:function t(e){return arguments.length?(this._titleConfig=Object.assign(this._titleConfig,e),this):this._titleConfig}},{key:"width",value:function t(e){return arguments.length?(this._width=e,this):this._width}}]);return r}(ob);function _C(t){"@babel/helpers - typeof";return _C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_C(t)}function bC(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function wC(t,e,n){if(e)bC(t.prototype,e);if(n)bC(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function xC(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function kC(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});Object.defineProperty(t,"prototype",{writable:false});if(e)SC(t,e)}function SC(t,e){SC=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return SC(t,e)}function CC(i){var a=MC();return function t(){var e=RC(i),n;if(a){var r=RC(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return EC(this,n)}}function EC(t,e){if(e&&(_C(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return AC(t)}function AC(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function MC(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function RC(t){RC=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return RC(t)}var TC=function(t){kC(n,t);var e=CC(n);function n(){var t;xC(this,n);t=e.call(this);t.orient("bottom");return t}return wC(n)}(mC);function OC(t){"@babel/helpers - typeof";return OC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},OC(t)}function PC(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function BC(t,e,n){if(e)PC(t.prototype,e);if(n)PC(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function DC(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function NC(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});Object.defineProperty(t,"prototype",{writable:false});if(e)zC(t,e)}function zC(t,e){zC=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return zC(t,e)}function FC(i){var a=LC();return function t(){var e=HC(i),n;if(a){var r=HC(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return jC(this,n)}}function jC(t,e){if(e&&(OC(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return IC(t)}function IC(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function LC(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function HC(t){HC=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return HC(t)}var UC=function(t){NC(n,t);var e=FC(n);function n(){var t;DC(this,n);t=e.call(this);t.orient("left");return t}return BC(n)}(mC);function GC(t){"@babel/helpers - typeof";return GC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},GC(t)}function VC(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function WC(t,e,n){if(e)VC(t.prototype,e);if(n)VC(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function qC(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function KC(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});Object.defineProperty(t,"prototype",{writable:false});if(e)YC(t,e)}function YC(t,e){YC=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return YC(t,e)}function XC(i){var a=JC();return function t(){var e=QC(i),n;if(a){var r=QC(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return ZC(this,n)}}function ZC(t,e){if(e&&(GC(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return $C(t)}function $C(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function JC(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function QC(t){QC=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return QC(t)}var t5=function(t){KC(n,t);var e=XC(n);function n(){var t;qC(this,n);t=e.call(this);t.orient("right");return t}return WC(n)}(mC);function e5(t){"@babel/helpers - typeof";return e5="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e5(t)}function n5(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function r5(t,e,n){if(e)n5(t.prototype,e);if(n)n5(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function i5(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function a5(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});Object.defineProperty(t,"prototype",{writable:false});if(e)o5(t,e)}function o5(t,e){o5=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return o5(t,e)}function s5(i){var a=c5();return function t(){var e=f5(i),n;if(a){var r=f5(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return u5(this,n)}}function u5(t,e){if(e&&(e5(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return l5(t)}function l5(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function c5(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function f5(t){f5=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return f5(t)}var h5=function(t){a5(n,t);var e=s5(n);function n(){var t;i5(this,n);t=e.call(this);t.orient("top");return t}return r5(n)}(mC);var d5=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{};function g5(t){var e={exports:{}};return t(e,e.exports),e.exports}function v5(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets option of @rollup/plugin-commonjs appropriately for this require call to behave properly.')}var p5=g5(function(e,t){(function(t){{e.exports=t()}})(function(){return function a(o,s,u){function l(n,t){if(!s[n]){if(!o[n]){var e=typeof v5=="function"&&v5;if(!t&&e)return e(n,!0);if(c)return c(n,!0);var r=new Error("Cannot find module '"+n+"'");throw r.code="MODULE_NOT_FOUND",r}var i=s[n]={exports:{}};o[n][0].call(i.exports,function(t){var e=o[n][1][t];return l(e?e:t)},i,i.exports,a,o,s,u)}return s[n].exports}var c=typeof v5=="function"&&v5;for(var t=0;t<u.length;t++){l(u[t])}return l}({1:[function(t,N,z){(function(D){(function(t){var e=_typeof2(z)=="object"&&z&&!z.nodeType&&z;var n=_typeof2(N)=="object"&&N&&!N.nodeType&&N;var r=_typeof2(D)=="object"&&D;if(r.global===r||r.window===r||r.self===r){t=r}var i,y=2147483647,m=36,_=1,b=26,a=38,o=700,w=72,x=128,k="-",s=/^xn--/,u=/[^\x20-\x7E]/,l=/[\x2E\u3002\uFF0E\uFF61]/g,c={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},f=m-_,S=Math.floor,C=String.fromCharCode,h;function E(t){throw new RangeError(c[t])}function d(t,e){var n=t.length;var r=[];while(n--){r[n]=e(t[n])}return r}function g(t,e){var n=t.split("@");var r="";if(n.length>1){r=n[0]+"@";t=n[1]}t=t.replace(l,".");var i=t.split(".");var a=d(i,e).join(".");return r+a}function A(t){var e=[],n=0,r=t.length,i,a;while(n<r){i=t.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){a=t.charCodeAt(n++);if((a&64512)==56320){e.push(((i&1023)<<10)+(a&1023)+65536)}else{e.push(i);n--}}else{e.push(i)}}return e}function p(t){return d(t,function(t){var e="";if(t>65535){t-=65536;e+=C(t>>>10&1023|55296);t=56320|t&1023}e+=C(t);return e}).join("")}function M(t){if(t-48<10){return t-22}if(t-65<26){return t-65}if(t-97<26){return t-97}return m}function R(t,e){return t+22+75*(t<26)-((e!=0)<<5)}function T(t,e,n){var r=0;t=n?S(t/o):t>>1;t+=S(t/e);for(;t>f*b>>1;r+=m){t=S(t/f)}return S(r+(f+1)*t/(t+a))}function v(t){var e=[],n=t.length,r,i=0,a=x,o=w,s,u,l,c,f,h,d,g,v;s=t.lastIndexOf(k);if(s<0){s=0}for(u=0;u<s;++u){if(t.charCodeAt(u)>=128){E("not-basic")}e.push(t.charCodeAt(u))}for(l=s>0?s+1:0;l<n;){for(c=i,f=1,h=m;;h+=m){if(l>=n){E("invalid-input")}d=M(t.charCodeAt(l++));if(d>=m||d>S((y-i)/f)){E("overflow")}i+=d*f;g=h<=o?_:h>=o+b?b:h-o;if(d<g){break}v=m-g;if(f>S(y/v)){E("overflow")}f*=v}r=e.length+1;o=T(i-c,r,c==0);if(S(i/r)>y-a){E("overflow")}a+=S(i/r);i%=r;e.splice(i++,0,a)}return p(e)}function O(t){var e,n,r,i,a,o,s,u,l,c,f,h=[],d,g,v,p;t=A(t);d=t.length;e=x;n=0;a=w;for(o=0;o<d;++o){f=t[o];if(f<128){h.push(C(f))}}r=i=h.length;if(i){h.push(k)}while(r<d){for(s=y,o=0;o<d;++o){f=t[o];if(f>=e&&f<s){s=f}}g=r+1;if(s-e>S((y-n)/g)){E("overflow")}n+=(s-e)*g;e=s;for(o=0;o<d;++o){f=t[o];if(f<e&&++n>y){E("overflow")}if(f==e){for(u=n,l=m;;l+=m){c=l<=a?_:l>=a+b?b:l-a;if(u<c){break}p=u-c;v=m-c;h.push(C(R(c+p%v,0)));u=S(p/v)}h.push(C(R(u,0)));a=T(n,g,r==i);n=0;++r}}++n;++e}return h.join("")}function P(t){return g(t,function(t){return s.test(t)?v(t.slice(4).toLowerCase()):t})}function B(t){return g(t,function(t){return u.test(t)?"xn--"+O(t):t})}i={version:"1.3.2",ucs2:{decode:A,encode:p},decode:v,encode:O,toASCII:B,toUnicode:P};if(e&&n){if(N.exports==e){n.exports=i}else{for(h in i){i.hasOwnProperty(h)&&(e[h]=i[h])}}}else{t.punycode=i}})(this)}).call(this,typeof d5!=="undefined"?d5:typeof self!=="undefined"?self:typeof window!=="undefined"?window:{})},{}],2:[function(t,e,n){var r=t("./log");function l(t,e,n){if(t.defaultView&&(e!==t.defaultView.pageXOffset||n!==t.defaultView.pageYOffset)){t.defaultView.scrollTo(e,n)}}function i(e,t){try{if(t){t.width=e.width;t.height=e.height;t.getContext("2d").putImageData(e.getContext("2d").getImageData(0,0,e.width,e.height),0,0)}}catch(t){r("Unable to copy canvas content from",e,t)}}function c(t,e){var n=t.nodeType===3?document.createTextNode(t.nodeValue):t.cloneNode(false);var r=t.firstChild;while(r){if(e===true||r.nodeType!==1||r.nodeName!=="SCRIPT"){n.appendChild(c(r,e))}r=r.nextSibling}if(t.nodeType===1){n._scrollTop=t.scrollTop;n._scrollLeft=t.scrollLeft;if(t.nodeName==="CANVAS"){i(t,n)}else if(t.nodeName==="TEXTAREA"||t.nodeName==="SELECT"){n.value=t.value}}return n}function f(t){if(t.nodeType===1){t.scrollTop=t._scrollTop;t.scrollLeft=t._scrollLeft;var e=t.firstChild;while(e){f(e);e=e.nextSibling}}}e.exports=function(t,e,n,r,i,a,o){var s=c(t.documentElement,i.javascriptEnabled);var u=e.createElement("iframe");u.className="html2canvas-container";u.style.visibility="hidden";u.style.position="fixed";u.style.left="-10000px";u.style.top="0px";u.style.border="0";u.width=n;u.height=r;u.scrolling="no";e.body.appendChild(u);return new Promise(function(e){var n=u.contentWindow.document;u.contentWindow.onload=u.onload=function(){var t=setInterval(function(){if(n.body.childNodes.length>0){f(n.documentElement);clearInterval(t);if(i.type==="view"){u.contentWindow.scrollTo(a,o);if(/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(u.contentWindow.scrollY!==o||u.contentWindow.scrollX!==a)){n.documentElement.style.top=-o+"px";n.documentElement.style.left=-a+"px";n.documentElement.style.position="absolute"}}e(u)}},50)};n.open();n.write("<!DOCTYPE html><html></html>");l(t,a,o);n.replaceChild(n.adoptNode(s),n.documentElement);n.close()})}},{"./log":13}],3:[function(t,e,n){function r(t){this.r=0;this.g=0;this.b=0;this.a=null;this.fromArray(t)||this.namedColor(t)||this.rgb(t)||this.rgba(t)||this.hex6(t)||this.hex3(t)}r.prototype.darken=function(t){var e=1-t;return new r([Math.round(this.r*e),Math.round(this.g*e),Math.round(this.b*e),this.a])};r.prototype.isTransparent=function(){return this.a===0};r.prototype.isBlack=function(){return this.r===0&&this.g===0&&this.b===0};r.prototype.fromArray=function(t){if(Array.isArray(t)){this.r=Math.min(t[0],255);this.g=Math.min(t[1],255);this.b=Math.min(t[2],255);if(t.length>3){this.a=t[3]}}return Array.isArray(t)};var i=/^#([a-f0-9]{3})$/i;r.prototype.hex3=function(t){var e=null;if((e=t.match(i))!==null){this.r=parseInt(e[1][0]+e[1][0],16);this.g=parseInt(e[1][1]+e[1][1],16);this.b=parseInt(e[1][2]+e[1][2],16)}return e!==null};var a=/^#([a-f0-9]{6})$/i;r.prototype.hex6=function(t){var e=null;if((e=t.match(a))!==null){this.r=parseInt(e[1].substring(0,2),16);this.g=parseInt(e[1].substring(2,4),16);this.b=parseInt(e[1].substring(4,6),16)}return e!==null};var o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/;r.prototype.rgb=function(t){var e=null;if((e=t.match(o))!==null){this.r=Number(e[1]);this.g=Number(e[2]);this.b=Number(e[3])}return e!==null};var s=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d?\.?\d+)\s*\)$/;r.prototype.rgba=function(t){var e=null;if((e=t.match(s))!==null){this.r=Number(e[1]);this.g=Number(e[2]);this.b=Number(e[3]);this.a=Number(e[4])}return e!==null};r.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(",")+")"};r.prototype.namedColor=function(t){t=t.toLowerCase();var e=u[t];if(e){this.r=e[0];this.g=e[1];this.b=e[2]}else if(t==="transparent"){this.r=this.g=this.b=this.a=0;return true}return!!e};r.prototype.isColor=true;var u={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]};e.exports=r},{}],4:[function(t,e,n){var d=t("./support");var o=t("./renderers/canvas");var g=t("./imageloader");var v=t("./nodeparser");var r=t("./nodecontainer");var p=t("./log");var i=t("./utils");var a=t("./clone");var s=t("./proxy").loadUrlDocument;var y=i.getBounds;var f="data-html2canvas-node";var u=0;function l(t,e){var n=u++;e=e||{};if(e.logging){p.options.logging=true;p.options.start=Date.now()}e.async=typeof e.async==="undefined"?true:e.async;e.allowTaint=typeof e.allowTaint==="undefined"?false:e.allowTaint;e.removeContainer=typeof e.removeContainer==="undefined"?true:e.removeContainer;e.javascriptEnabled=typeof e.javascriptEnabled==="undefined"?false:e.javascriptEnabled;e.imageTimeout=typeof e.imageTimeout==="undefined"?1e4:e.imageTimeout;e.renderer=typeof e.renderer==="function"?e.renderer:o;e.strict=!!e.strict;if(typeof t==="string"){if(typeof e.proxy!=="string"){return Promise.reject("Proxy must be used when rendering url")}var r=e.width!=null?e.width:window.innerWidth;var i=e.height!=null?e.height:window.innerHeight;return s(k(t),e.proxy,document,r,i,e).then(function(t){return m(t.contentWindow.document.documentElement,t,e,r,i)})}var a=(t===undefined?[document.documentElement]:t.length?t:[t])[0];a.setAttribute(f+n,n);return h(a.ownerDocument,e,a.ownerDocument.defaultView.innerWidth,a.ownerDocument.defaultView.innerHeight,n).then(function(t){if(typeof e.onrendered==="function"){p("options.onrendered is deprecated, html2canvas returns a Promise containing the canvas");e.onrendered(t)}return t})}l.CanvasRenderer=o;l.NodeContainer=r;l.log=p;l.utils=i;var c=typeof document==="undefined"||typeof Object.create!=="function"||typeof document.createElement("canvas").getContext!=="function"?function(){return Promise.reject("No canvas support")}:l;e.exports=c;function h(o,s,u,l,c){return a(o,o,u,l,s,o.defaultView.pageXOffset,o.defaultView.pageYOffset).then(function(t){p("Document cloned");var e=f+c;var n="["+e+"='"+c+"']";o.querySelector(n).removeAttribute(e);var r=t.contentWindow;var i=r.document.querySelector(n);var a=typeof s.onclone==="function"?Promise.resolve(s.onclone(r.document)):Promise.resolve(true);return a.then(function(){return m(i,t,s,u,l)})})}function m(e,n,r,t,i){var a=n.contentWindow;var o=new d(a.document);var s=new g(r,o);var u=y(e);var l=r.type==="view"?t:w(a.document);var c=r.type==="view"?i:x(a.document);var f=new r.renderer(l,c,s,r,document);var h=new v(e,f,o,s,r);return h.ready.then(function(){p("Finished rendering");var t;if(r.type==="view"){t=b(f.canvas,{width:f.canvas.width,height:f.canvas.height,top:0,left:0,x:0,y:0})}else if(e===a.document.body||e===a.document.documentElement||r.canvas!=null){t=f.canvas}else{t=b(f.canvas,{width:r.width!=null?r.width:u.width,height:r.height!=null?r.height:u.height,top:u.top,left:u.left,x:0,y:0})}_(n,r);return t})}function _(t,e){if(e.removeContainer){t.parentNode.removeChild(t);p("Cleaned up container")}}function b(t,e){var n=document.createElement("canvas");var r=Math.min(t.width-1,Math.max(0,e.left));var i=Math.min(t.width,Math.max(1,e.left+e.width));var a=Math.min(t.height-1,Math.max(0,e.top));var o=Math.min(t.height,Math.max(1,e.top+e.height));n.width=e.width;n.height=e.height;var s=i-r;var u=o-a;p("Cropping canvas at:","left:",e.left,"top:",e.top,"width:",s,"height:",u);p("Resulting crop with width",e.width,"and height",e.height,"with x",r,"and y",a);n.getContext("2d").drawImage(t,r,a,s,u,e.x,e.y,s,u);return n}function w(t){return Math.max(Math.max(t.body.scrollWidth,t.documentElement.scrollWidth),Math.max(t.body.offsetWidth,t.documentElement.offsetWidth),Math.max(t.body.clientWidth,t.documentElement.clientWidth))}function x(t){return Math.max(Math.max(t.body.scrollHeight,t.documentElement.scrollHeight),Math.max(t.body.offsetHeight,t.documentElement.offsetHeight),Math.max(t.body.clientHeight,t.documentElement.clientHeight))}function k(t){var e=document.createElement("a");e.href=t;e.href=e.href;return e}},{"./clone":2,"./imageloader":11,"./log":13,"./nodecontainer":14,"./nodeparser":15,"./proxy":16,"./renderers/canvas":20,"./support":22,"./utils":26}],5:[function(t,e,n){var r=t("./log");var i=t("./utils").smallImage;function a(t){this.src=t;r("DummyImageContainer for",t);if(!this.promise||!this.image){r("Initiating DummyImageContainer");a.prototype.image=new Image;var n=this.image;a.prototype.promise=new Promise(function(t,e){n.onload=t;n.onerror=e;n.src=i();if(n.complete===true){t(n)}})}}e.exports=a},{"./log":13,"./utils":26}],6:[function(t,e,n){var u=t("./utils").smallImage;function r(t,e){var n=document.createElement("div"),r=document.createElement("img"),i=document.createElement("span"),a="Hidden Text",o,s;n.style.visibility="hidden";n.style.fontFamily=t;n.style.fontSize=e;n.style.margin=0;n.style.padding=0;document.body.appendChild(n);r.src=u();r.width=1;r.height=1;r.style.margin=0;r.style.padding=0;r.style.verticalAlign="baseline";i.style.fontFamily=t;i.style.fontSize=e;i.style.margin=0;i.style.padding=0;i.appendChild(document.createTextNode(a));n.appendChild(i);n.appendChild(r);o=r.offsetTop-i.offsetTop+1;n.removeChild(i);n.appendChild(document.createTextNode(a));n.style.lineHeight="normal";r.style.verticalAlign="super";s=r.offsetTop-n.offsetTop+1;document.body.removeChild(n);this.baseline=o;this.lineWidth=1;this.middle=s}e.exports=r},{"./utils":26}],7:[function(t,e,n){var r=t("./font");function i(){this.data={}}i.prototype.getMetrics=function(t,e){if(this.data[t+"-"+e]===undefined){this.data[t+"-"+e]=new r(t,e)}return this.data[t+"-"+e]};e.exports=i},{"./font":6}],8:[function(a,t,e){var n=a("./utils");var o=n.getBounds;var i=a("./proxy").loadUrlDocument;function r(e,t,n){this.image=null;this.src=e;var r=this;var i=o(e);this.promise=(!t?this.proxyLoad(n.proxy,i,n):new Promise(function(t){if(e.contentWindow.document.URL==="about:blank"||e.contentWindow.document.documentElement==null){e.contentWindow.onload=e.onload=function(){t(e)}}else{t(e)}})).then(function(t){var e=a("./core");return e(t.contentWindow.document.documentElement,{type:"view",width:t.width,height:t.height,proxy:n.proxy,javascriptEnabled:n.javascriptEnabled,removeContainer:n.removeContainer,allowTaint:n.allowTaint,imageTimeout:n.imageTimeout/2})}).then(function(t){return r.image=t})}r.prototype.proxyLoad=function(t,e,n){var r=this.src;return i(r.src,t,r.ownerDocument,e.width,e.height,n)};t.exports=r},{"./core":4,"./proxy":16,"./utils":26}],9:[function(t,e,n){function r(t){this.src=t.value;this.colorStops=[];this.type=null;this.x0=.5;this.y0=.5;this.x1=.5;this.y1=.5;this.promise=Promise.resolve(true)}r.TYPES={LINEAR:1,RADIAL:2};r.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;e.exports=r},{}],10:[function(t,e,n){function r(n,r){this.src=n;this.image=new Image;var i=this;this.tainted=null;this.promise=new Promise(function(t,e){i.image.onload=t;i.image.onerror=e;if(r){i.image.crossOrigin="anonymous"}i.image.src=n;if(i.image.complete===true){t(i.image)}})}e.exports=r},{}],11:[function(t,e,n){var a=t("./log");var r=t("./imagecontainer");var i=t("./dummyimagecontainer");var o=t("./proxyimagecontainer");var s=t("./framecontainer");var u=t("./svgcontainer");var l=t("./svgnodecontainer");var c=t("./lineargradientcontainer");var f=t("./webkitgradientcontainer");var h=t("./utils").bind;function d(t,e){this.link=null;this.options=t;this.support=e;this.origin=this.getOrigin(window.location.href)}d.prototype.findImages=function(t){var e=[];t.reduce(function(t,e){switch(e.node.nodeName){case"IMG":return t.concat([{args:[e.node.src],method:"url"}]);case"svg":case"IFRAME":return t.concat([{args:[e.node],method:e.node.nodeName}])}return t},[]).forEach(this.addImage(e,this.loadImage),this);return e};d.prototype.findBackgroundImage=function(t,e){e.parseBackgroundImages().filter(this.hasImageBackground).forEach(this.addImage(t,this.loadImage),this);return t};d.prototype.addImage=function(n,r){return function(e){e.args.forEach(function(t){if(!this.imageExists(n,t)){n.splice(0,0,r.call(this,e));a("Added image #"+n.length,typeof t==="string"?t.substring(0,100):t)}},this)}};d.prototype.hasImageBackground=function(t){return t.method!=="none"};d.prototype.loadImage=function(t){if(t.method==="url"){var e=t.args[0];if(this.isSVG(e)&&!this.support.svg&&!this.options.allowTaint){return new u(e)}else if(e.match(/data:image\/.*;base64,/i)){return new r(e.replace(/url\(['"]{0,}|['"]{0,}\)$/gi,""),false)}else if(this.isSameOrigin(e)||this.options.allowTaint===true||this.isSVG(e)){return new r(e,false)}else if(this.support.cors&&!this.options.allowTaint&&this.options.useCORS){return new r(e,true)}else if(this.options.proxy){return new o(e,this.options.proxy)}else{return new i(e)}}else if(t.method==="linear-gradient"){return new c(t)}else if(t.method==="gradient"){return new f(t)}else if(t.method==="svg"){return new l(t.args[0],this.support.svg)}else if(t.method==="IFRAME"){return new s(t.args[0],this.isSameOrigin(t.args[0].src),this.options)}else{return new i(t)}};d.prototype.isSVG=function(t){return t.substring(t.length-3).toLowerCase()==="svg"||u.prototype.isInline(t)};d.prototype.imageExists=function(t,e){return t.some(function(t){return t.src===e})};d.prototype.isSameOrigin=function(t){return this.getOrigin(t)===this.origin};d.prototype.getOrigin=function(t){var e=this.link||(this.link=document.createElement("a"));e.href=t;e.href=e.href;return e.protocol+e.hostname+e.port};d.prototype.getPromise=function(e){return this.timeout(e,this.options.imageTimeout)["catch"](function(){var t=new i(e.src);return t.promise.then(function(t){e.image=t})})};d.prototype.get=function(e){var n=null;return this.images.some(function(t){return(n=t).src===e})?n:null};d.prototype.fetch=function(t){this.images=t.reduce(h(this.findBackgroundImage,this),this.findImages(t));this.images.forEach(function(e,n){e.promise.then(function(){a("Succesfully loaded image #"+(n+1),e)},function(t){a("Failed loading image #"+(n+1),e,t)})});this.ready=Promise.all(this.images.map(this.getPromise,this));a("Finished searching images");return this};d.prototype.timeout=function(n,r){var i;var t=Promise.race([n.promise,new Promise(function(t,e){i=setTimeout(function(){a("Timed out loading image",n);e(n)},r)})]).then(function(t){clearTimeout(i);return t});t["catch"](function(){clearTimeout(i)});return t};e.exports=d},{"./dummyimagecontainer":5,"./framecontainer":8,"./imagecontainer":10,"./lineargradientcontainer":12,"./log":13,"./proxyimagecontainer":17,"./svgcontainer":23,"./svgnodecontainer":24,"./utils":26,"./webkitgradientcontainer":27}],12:[function(t,e,n){var i=t("./gradientcontainer");var a=t("./color");function r(t){i.apply(this,arguments);this.type=i.TYPES.LINEAR;var e=r.REGEXP_DIRECTION.test(t.args[0])||!i.REGEXP_COLORSTOP.test(t.args[0]);if(e){t.args[0].split(/\s+/).reverse().forEach(function(t,e){switch(t){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 r=this.x0;this.y0=this.y1;this.x0=this.x1;this.x1=r;this.y1=n;break;case"center":break;default:var i=parseFloat(t,10)*.01;if(isNaN(i)){break}if(e===0){this.y0=i;this.y1=1-this.y0}else{this.x0=i;this.x1=1-this.x0}break}},this)}else{this.y0=0;this.y1=1}this.colorStops=t.args.slice(e?1:0).map(function(t){var e=t.match(i.REGEXP_COLORSTOP);var n=+e[2];var r=n===0?"%":e[3];return{color:new a(e[1]),stop:r==="%"?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,r){if(n.stop===null){this.colorStops.slice(r).some(function(t,e){if(t.stop!==null){n.stop=(t.stop-this.colorStops[r-1].stop)/(e+1)+this.colorStops[r-1].stop;return true}else{return false}},this)}},this)}r.prototype=Object.create(i.prototype);r.REGEXP_DIRECTION=/^\s*(?:to|left|right|top|bottom|center|\d{1,3}(?:\.\d+)?%?)(?:\s|$)/i;e.exports=r},{"./color":3,"./gradientcontainer":9}],13:[function(t,e,n){var r=function t(){if(t.options.logging&&window.console&&window.console.log){Function.prototype.bind.call(window.console.log,window.console).apply(window.console,[Date.now()-t.options.start+"ms","html2canvas:"].concat([].slice.call(arguments,0)))}};r.options={logging:false};e.exports=r},{}],14:[function(t,e,n){var a=t("./color");var r=t("./utils");var i=r.getBounds;var o=r.parseBackgrounds;var s=r.offsetBounds;function u(t,e){this.node=t;this.parent=e;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}u.prototype.cloneTo=function(t){t.visible=this.visible;t.borders=this.borders;t.bounds=this.bounds;t.clip=this.clip;t.backgroundClip=this.backgroundClip;t.computedStyles=this.computedStyles;t.styles=this.styles;t.backgroundImages=this.backgroundImages;t.opacity=this.opacity};u.prototype.getOpacity=function(){return this.opacity===null?this.opacity=this.cssFloat("opacity"):this.opacity};u.prototype.assignStack=function(t){this.stack=t;t.children.push(this)};u.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")};u.prototype.css=function(t){if(!this.computedStyles){this.computedStyles=this.isPseudoElement?this.parent.computedStyle(this.before?":before":":after"):this.computedStyle(null)}return this.styles[t]||(this.styles[t]=this.computedStyles[t])};u.prototype.prefixedCss=function(e){var t=["webkit","moz","ms","o"];var n=this.css(e);if(n===undefined){t.some(function(t){n=this.css(t+e.substr(0,1).toUpperCase()+e.substr(1));return n!==undefined},this)}return n===undefined?null:n};u.prototype.computedStyle=function(t){return this.node.ownerDocument.defaultView.getComputedStyle(this.node,t)};u.prototype.cssInt=function(t){var e=parseInt(this.css(t),10);return isNaN(e)?0:e};u.prototype.color=function(t){return this.colors[t]||(this.colors[t]=new a(this.css(t)))};u.prototype.cssFloat=function(t){var e=parseFloat(this.css(t));return isNaN(e)?0:e};u.prototype.fontWeight=function(){var t=this.css("fontWeight");switch(parseInt(t,10)){case 401:t="bold";break;case 400:t="normal";break}return t};u.prototype.parseClip=function(){var t=this.css("clip").match(this.CLIP);if(t){return{top:parseInt(t[1],10),right:parseInt(t[2],10),bottom:parseInt(t[3],10),left:parseInt(t[4],10)}}return null};u.prototype.parseBackgroundImages=function(){return this.backgroundImages||(this.backgroundImages=o(this.css("backgroundImage")))};u.prototype.cssList=function(t,e){var n=(this.css(t)||"").split(",");n=n[e||0]||n[0]||"auto";n=n.trim().split(" ");if(n.length===1){n=[n[0],f(n[0])?"auto":n[0]]}return n};u.prototype.parseBackgroundSize=function(t,e,n){var r=this.cssList("backgroundSize",n);var i,a;if(f(r[0])){i=t.width*parseFloat(r[0])/100}else if(/contain|cover/.test(r[0])){var o=t.width/t.height,s=e.width/e.height;return o<s^r[0]==="contain"?{width:t.height*s,height:t.height}:{width:t.width,height:t.width/s}}else{i=parseInt(r[0],10)}if(r[0]==="auto"&&r[1]==="auto"){a=e.height}else if(r[1]==="auto"){a=i/e.width*e.height}else if(f(r[1])){a=t.height*parseFloat(r[1])/100}else{a=parseInt(r[1],10)}if(r[0]==="auto"){i=a/e.height*e.width}return{width:i,height:a}};u.prototype.parseBackgroundPosition=function(t,e,n,r){var i=this.cssList("backgroundPosition",n);var a,o;if(f(i[0])){a=(t.width-(r||e).width)*(parseFloat(i[0])/100)}else{a=parseInt(i[0],10)}if(i[1]==="auto"){o=a/e.width*e.height}else if(f(i[1])){o=(t.height-(r||e).height)*parseFloat(i[1])/100}else{o=parseInt(i[1],10)}if(i[0]==="auto"){a=o/e.height*e.width}return{left:a,top:o}};u.prototype.parseBackgroundRepeat=function(t){return this.cssList("backgroundRepeat",t)[0]};u.prototype.parseTextShadows=function(){var t=this.css("textShadow");var e=[];if(t&&t!=="none"){var n=t.match(this.TEXT_SHADOW_PROPERTY);for(var r=0;n&&r<n.length;r++){var i=n[r].match(this.TEXT_SHADOW_VALUES);e.push({color:new a(i[0]),offsetX:i[1]?parseFloat(i[1].replace("px","")):0,offsetY:i[2]?parseFloat(i[2].replace("px","")):0,blur:i[3]?i[3].replace("px",""):0})}}return e};u.prototype.parseTransform=function(){if(!this.transformData){if(this.hasTransform()){var t=this.parseBounds();var e=this.prefixedCss("transformOrigin").split(" ").map(h).map(d);e[0]+=t.left;e[1]+=t.top;this.transformData={origin:e,matrix:this.parseTransformMatrix()}}else{this.transformData={origin:[0,0],matrix:[1,0,0,1,0,0]}}}return this.transformData};u.prototype.parseTransformMatrix=function(){if(!this.transformMatrix){var t=this.prefixedCss("transform");var e=t?c(t.match(this.MATRIX_PROPERTY)):null;this.transformMatrix=e?e:[1,0,0,1,0,0]}return this.transformMatrix};u.prototype.parseBounds=function(){return this.bounds||(this.bounds=this.hasTransform()?s(this.node):i(this.node))};u.prototype.hasTransform=function(){return this.parseTransformMatrix().join(",")!=="1,0,0,1,0,0"||this.parent&&this.parent.hasTransform()};u.prototype.getValue=function(){var t=this.node.value||"";if(this.node.tagName==="SELECT"){t=l(this.node)}else if(this.node.type==="password"){t=Array(t.length+1).join("•")}return t.length===0?this.node.placeholder||"":t};u.prototype.MATRIX_PROPERTY=/(matrix|matrix3d)\((.+)\)/;u.prototype.TEXT_SHADOW_PROPERTY=/((rgba|rgb)\([^\)]+\)(\s-?\d+px){0,})/g;u.prototype.TEXT_SHADOW_VALUES=/(-?\d+px)|(#.+)|(rgb\(.+\))|(rgba\(.+\))/g;u.prototype.CLIP=/^rect\((\d+)px,? (\d+)px,? (\d+)px,? (\d+)px\)$/;function l(t){var e=t.options[t.selectedIndex||0];return e?e.text||"":""}function c(t){if(t&&t[1]==="matrix"){return t[2].split(",").map(function(t){return parseFloat(t.trim())})}else if(t&&t[1]==="matrix3d"){var e=t[2].split(",").map(function(t){return parseFloat(t.trim())});return[e[0],e[1],e[4],e[5],e[12],e[13]]}}function f(t){return t.toString().indexOf("%")!==-1}function h(t){return t.replace("px","")}function d(t){return parseFloat(t)}e.exports=u},{"./color":3,"./utils":26}],15:[function(t,e,n){var s=t("./log");var u=t("punycode");var l=t("./nodecontainer");var c=t("./textcontainer");var f=t("./pseudoelementcontainer");var h=t("./fontmetrics");var d=t("./color");var g=t("./stackingcontext");var r=t("./utils");var v=r.bind;var o=r.getBounds;var p=r.parseBackgrounds;var y=r.offsetBounds;function i(t,e,n,r,i){s("Starting NodeParser");this.renderer=e;this.options=i;this.range=null;this.support=n;this.renderQueue=[];this.stack=new g(true,1,t.ownerDocument,null);var a=new l(t,null);if(i.background){e.rectangle(0,0,e.width,e.height,new d(i.background))}if(t===t.ownerDocument.documentElement){var o=new l(a.color("backgroundColor").isTransparent()?t.ownerDocument.body:t.ownerDocument.documentElement,null);e.rectangle(0,0,e.width,e.height,o.color("backgroundColor"))}a.visibile=a.isElementVisible();this.createPseudoHideStyles(t.ownerDocument);this.disableAnimations(t.ownerDocument);this.nodes=X([a].concat(this.getChildren(a)).filter(function(t){return t.visible=t.isElementVisible()}).map(this.getPseudoElements,this));this.fontMetrics=new h;s("Fetched nodes, total:",this.nodes.length);s("Calculate overflow clips");this.calculateOverflowClips();s("Start fetching images");this.images=r.fetch(this.nodes.filter(H));this.ready=this.images.ready.then(v(function(){s("Images loaded, starting parsing");s("Creating stacking contexts");this.createStackingContexts();s("Sorting stacking contexts");this.sortStackingContexts(this.stack);this.parse(this.stack);s("Render queue created with "+this.renderQueue.length+" items");return new Promise(v(function(t){if(!i.async){this.renderQueue.forEach(this.paint,this);t()}else if(typeof i.async==="function"){i.async.call(this,this.renderQueue,t)}else if(this.renderQueue.length>0){this.renderIndex=0;this.asyncRenderer(this.renderQueue,t)}else{t()}},this))},this))}i.prototype.calculateOverflowClips=function(){this.nodes.forEach(function(t){if(H(t)){if(U(t)){t.appendToDOM()}t.borders=this.parseBorders(t);var e=t.css("overflow")==="hidden"?[t.borders.clip]:[];var n=t.parseClip();if(n&&["absolute","fixed"].indexOf(t.css("position"))!==-1){e.push([["rect",t.bounds.left+n.left,t.bounds.top+n.top,n.right-n.left,n.bottom-n.top]])}t.clip=a(t)?t.parent.clip.concat(e):e;t.backgroundClip=t.css("overflow")!=="hidden"?t.clip.concat([t.borders.clip]):t.clip;if(U(t)){t.cleanDOM()}}else if(G(t)){t.clip=a(t)?t.parent.clip:[]}if(!U(t)){t.bounds=null}},this)};function a(t){return t.parent&&t.parent.clip.length}i.prototype.asyncRenderer=function(t,e,n){n=n||Date.now();this.paint(t[this.renderIndex++]);if(t.length===this.renderIndex){e()}else if(n+20>Date.now()){this.asyncRenderer(t,e,n)}else{setTimeout(v(function(){this.asyncRenderer(t,e)},this),0)}};i.prototype.createPseudoHideStyles=function(t){this.createStyles(t,"."+f.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+':before { content: "" !important; display: none !important; }'+"."+f.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER+':after { content: "" !important; display: none !important; }')};i.prototype.disableAnimations=function(t){this.createStyles(t,"* { -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;}")};i.prototype.createStyles=function(t,e){var n=t.createElement("style");n.innerHTML=e;t.body.appendChild(n)};i.prototype.getPseudoElements=function(t){var e=[[t]];if(t.node.nodeType===Node.ELEMENT_NODE){var n=this.getPseudoElement(t,":before");var r=this.getPseudoElement(t,":after");if(n){e.push(n)}if(r){e.push(r)}}return X(e)};function m(t){return t.replace(/(\-[a-z])/g,function(t){return t.toUpperCase().replace("-","")})}i.prototype.getPseudoElement=function(t,e){var n=t.computedStyle(e);if(!n||!n.content||n.content==="none"||n.content==="-moz-alt-content"||n.display==="none"){return null}var r=Z(n.content);var i=r.substr(0,3)==="url";var a=document.createElement(i?"img":"html2canvaspseudoelement");var o=new f(a,t,e);for(var s=n.length-1;s>=0;s--){var u=m(n.item(s));a.style[u]=n[u]}a.className=f.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE+" "+f.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER;if(i){a.src=p(r)[0].args[0];return[o]}else{var l=document.createTextNode(r);a.appendChild(l);return[o,new c(l,o)]}};i.prototype.getChildren=function(n){return X([].filter.call(n.node.childNodes,N).map(function(t){var e=[t.nodeType===Node.TEXT_NODE?new c(t,n):new l(t,n)].filter(Y);return t.nodeType===Node.ELEMENT_NODE&&e.length&&t.tagName!=="TEXTAREA"?e[0].isElementVisible()?e.concat(this.getChildren(e[0])):[]:e},this))};i.prototype.newStackingContext=function(t,e){var n=new g(e,t.getOpacity(),t.node,t.parent);t.cloneTo(n);var r=e?n.getParentStack(this):n.parent.stack;r.contexts.push(n);t.stack=n};i.prototype.createStackingContexts=function(){this.nodes.forEach(function(t){if(H(t)&&(this.isRootElement(t)||W(t)||z(t)||this.isBodyWithTransparentRoot(t)||t.hasTransform())){this.newStackingContext(t,true)}else if(H(t)&&(F(t)&&R(t)||I(t)||j(t))){this.newStackingContext(t,false)}else{t.assignStack(t.parent.stack)}},this)};i.prototype.isBodyWithTransparentRoot=function(t){return t.node.nodeName==="BODY"&&t.parent.color("backgroundColor").isTransparent()};i.prototype.isRootElement=function(t){return t.parent===null};i.prototype.sortStackingContexts=function(t){t.contexts.sort(V(t.contexts.slice(0)));t.contexts.forEach(this.sortStackingContexts,this)};i.prototype.parseTextBounds=function(o){return function(t,e,n){if(o.parent.css("textDecoration").substr(0,4)!=="none"||t.trim().length!==0){if(this.support.rangeBounds&&!o.parent.hasTransform()){var r=n.slice(0,e).join("").length;return this.getRangeBounds(o.node,r,t.length)}else if(o.node&&typeof o.node.data==="string"){var i=o.node.splitText(t.length);var a=this.getWrapperBounds(o.node,o.parent.hasTransform());o.node=i;return a}}else if(!this.support.rangeBounds||o.parent.hasTransform()){o.node=o.node.splitText(t.length)}return{}}};i.prototype.getWrapperBounds=function(t,e){var n=t.ownerDocument.createElement("html2canvaswrapper");var r=t.parentNode,i=t.cloneNode(true);n.appendChild(t.cloneNode(true));r.replaceChild(n,t);var a=e?y(n):o(n);r.replaceChild(i,n);return a};i.prototype.getRangeBounds=function(t,e,n){var r=this.range||(this.range=t.ownerDocument.createRange());r.setStart(t,e);r.setEnd(t,e+n);return r.getBoundingClientRect()};function _(){}i.prototype.parse=function(t){var e=t.contexts.filter(A);var n=t.children.filter(H);var r=n.filter(L(j));var i=r.filter(L(F)).filter(L(T));var a=n.filter(L(F)).filter(j);var o=r.filter(L(F)).filter(T);var s=t.contexts.concat(r.filter(F)).filter(R);var u=t.children.filter(G).filter(P);var l=t.contexts.filter(M);e.concat(i).concat(a).concat(o).concat(s).concat(u).concat(l).forEach(function(t){this.renderQueue.push(t);if(O(t)){this.parse(t);this.renderQueue.push(new _)}},this)};i.prototype.paint=function(t){try{if(t instanceof _){this.renderer.ctx.restore()}else if(G(t)){if(U(t.parent)){t.parent.appendToDOM()}this.paintText(t);if(U(t.parent)){t.parent.cleanDOM()}}else{this.paintNode(t)}}catch(t){s(t);if(this.options.strict){throw t}}};i.prototype.paintNode=function(t){if(O(t)){this.renderer.setOpacity(t.opacity);this.renderer.ctx.save();if(t.hasTransform()){this.renderer.setTransform(t.parseTransform())}}if(t.node.nodeName==="INPUT"&&t.node.type==="checkbox"){this.paintCheckbox(t)}else if(t.node.nodeName==="INPUT"&&t.node.type==="radio"){this.paintRadio(t)}else{this.paintElement(t)}};i.prototype.paintElement=function(n){var r=n.parseBounds();this.renderer.clip(n.backgroundClip,function(){this.renderer.renderBackground(n,r,n.borders.borders.map(K))},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 t=this.images.get(n.node);if(t){this.renderer.renderImage(n,r,n.borders,t)}else{s("Error loading <"+n.node.nodeName+">",n.node)}break;case"IMG":var e=this.images.get(n.node.src);if(e){this.renderer.renderImage(n,r,n.borders,e)}else{s("Error loading <img>",n.node.src)}break;case"CANVAS":this.renderer.renderImage(n,r,n.borders,{image:n.node});break;case"SELECT":case"INPUT":case"TEXTAREA":this.paintFormValue(n);break}},this)};i.prototype.paintCheckbox=function(t){var e=t.parseBounds();var n=Math.min(e.width,e.height);var r={width:n-1,height:n-1,top:e.top,left:e.left};var i=[3,3];var a=[i,i,i,i];var o=[1,1,1,1].map(function(t){return{color:new d("#A5A5A5"),width:t}});var s=k(r,a,o);this.renderer.clip(t.backgroundClip,function(){this.renderer.rectangle(r.left+1,r.top+1,r.width-2,r.height-2,new d("#DEDEDE"));this.renderer.renderBorders(w(o,r,s,a));if(t.node.checked){this.renderer.font(new d("#424242"),"normal","normal","bold",n-3+"px","arial");this.renderer.text("✔",r.left+n/6,r.top+n-1)}},this)};i.prototype.paintRadio=function(t){var e=t.parseBounds();var n=Math.min(e.width,e.height)-2;this.renderer.clip(t.backgroundClip,function(){this.renderer.circleStroke(e.left+1,e.top+1,n,new d("#DEDEDE"),1,new d("#A5A5A5"));if(t.node.checked){this.renderer.circle(Math.ceil(e.left+n/4)+1,Math.ceil(e.top+n/4)+1,Math.floor(n/2),new d("#424242"))}},this)};i.prototype.paintFormValue=function(e){var t=e.getValue();if(t.length>0){var n=e.node.ownerDocument;var r=n.createElement("html2canvaswrapper");var i=["lineHeight","textAlign","fontFamily","fontWeight","fontSize","color","paddingLeft","paddingTop","paddingRight","paddingBottom","width","height","borderLeftStyle","borderTopStyle","borderLeftWidth","borderTopWidth","boxSizing","whiteSpace","wordWrap"];i.forEach(function(t){try{r.style[t]=e.css(t)}catch(t){s("html2canvas: Parse: Exception caught in renderFormValue: "+t.message)}});var a=e.parseBounds();r.style.position="fixed";r.style.left=a.left+"px";r.style.top=a.top+"px";r.textContent=t;n.body.appendChild(r);this.paintText(new c(r.firstChild,e));n.body.removeChild(r)}};i.prototype.paintText=function(n){n.applyTextTransform();var t=u.ucs2.decode(n.node.data);var r=(!this.options.letterRendering||B(n))&&!Q(n.node.data)?$(t):t.map(function(t){return u.ucs2.encode([t])});var e=n.parent.fontWeight();var i=n.parent.css("fontSize");var a=n.parent.css("fontFamily");var o=n.parent.parseTextShadows();this.renderer.font(n.parent.color("color"),n.parent.css("fontStyle"),n.parent.css("fontVariant"),e,i,a);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(){r.map(this.parseTextBounds(n),this).forEach(function(t,e){if(t){this.renderer.text(r[e],t.left,t.bottom);this.renderTextDecoration(n.parent,t,this.fontMetrics.getMetrics(a,i))}},this)},this)};i.prototype.renderTextDecoration=function(t,e,n){switch(t.css("textDecoration").split(" ")[0]){case"underline":this.renderer.rectangle(e.left,Math.round(e.top+n.baseline+n.lineWidth),e.width,1,t.color("color"));break;case"overline":this.renderer.rectangle(e.left,Math.round(e.top),e.width,1,t.color("color"));break;case"line-through":this.renderer.rectangle(e.left,Math.ceil(e.top+n.middle+n.lineWidth),e.width,1,t.color("color"));break}};var b={inset:[["darken",.6],["darken",.1],["darken",.1],["darken",.6]]};i.prototype.parseBorders=function(a){var t=a.parseBounds();var e=D(a);var n=["Top","Right","Bottom","Left"].map(function(t,e){var n=a.css("border"+t+"Style");var r=a.color("border"+t+"Color");if(n==="inset"&&r.isBlack()){r=new d([255,255,255,r.a])}var i=b[n]?b[n][e]:null;return{width:a.cssInt("border"+t+"Width"),color:i?r[i[0]](i[1]):r,args:null}});var r=k(t,e,n);return{clip:this.parseBackgroundClip(a,r,n,e,t),borders:w(n,t,r,e)}};function w(o,s,u,l){return o.map(function(t,e){if(t.width>0){var n=s.left;var r=s.top;var i=s.width;var a=s.height-o[2].width;switch(e){case 0:a=o[0].width;t.args=C({c1:[n,r],c2:[n+i,r],c3:[n+i-o[1].width,r+a],c4:[n+o[3].width,r+a]},l[0],l[1],u.topLeftOuter,u.topLeftInner,u.topRightOuter,u.topRightInner);break;case 1:n=s.left+s.width-o[1].width;i=o[1].width;t.args=C({c1:[n+i,r],c2:[n+i,r+a+o[2].width],c3:[n,r+a],c4:[n,r+o[0].width]},l[1],l[2],u.topRightOuter,u.topRightInner,u.bottomRightOuter,u.bottomRightInner);break;case 2:r=r+s.height-o[2].width;a=o[2].width;t.args=C({c1:[n+i,r+a],c2:[n,r+a],c3:[n+o[3].width,r],c4:[n+i-o[3].width,r]},l[2],l[3],u.bottomRightOuter,u.bottomRightInner,u.bottomLeftOuter,u.bottomLeftInner);break;case 3:i=o[3].width;t.args=C({c1:[n,r+a+o[2].width],c2:[n,r],c3:[n+i,r+o[0].width],c4:[n+i,r+a]},l[3],l[0],u.bottomLeftOuter,u.bottomLeftInner,u.topLeftOuter,u.topLeftInner);break}}return t})}i.prototype.parseBackgroundClip=function(t,e,n,r,i){var a=t.css("backgroundClip"),o=[];switch(a){case"content-box":case"padding-box":E(o,r[0],r[1],e.topLeftInner,e.topRightInner,i.left+n[3].width,i.top+n[0].width);E(o,r[1],r[2],e.topRightInner,e.bottomRightInner,i.left+i.width-n[1].width,i.top+n[0].width);E(o,r[2],r[3],e.bottomRightInner,e.bottomLeftInner,i.left+i.width-n[1].width,i.top+i.height-n[2].width);E(o,r[3],r[0],e.bottomLeftInner,e.topLeftInner,i.left+n[3].width,i.top+i.height-n[2].width);break;default:E(o,r[0],r[1],e.topLeftOuter,e.topRightOuter,i.left,i.top);E(o,r[1],r[2],e.topRightOuter,e.bottomRightOuter,i.left+i.width,i.top);E(o,r[2],r[3],e.bottomRightOuter,e.bottomLeftOuter,i.left+i.width,i.top+i.height);E(o,r[3],r[0],e.bottomLeftOuter,e.topLeftOuter,i.left,i.top+i.height);break}return o};function x(t,e,n,r){var i=4*((Math.sqrt(2)-1)/3);var a=n*i,o=r*i,s=t+n,u=e+r;return{topLeft:S({x:t,y:u},{x:t,y:u-o},{x:s-a,y:e},{x:s,y:e}),topRight:S({x:t,y:e},{x:t+a,y:e},{x:s,y:u-o},{x:s,y:u}),bottomRight:S({x:s,y:e},{x:s,y:e+o},{x:t+a,y:u},{x:t,y:u}),bottomLeft:S({x:s,y:u},{x:s-a,y:u},{x:t,y:e+o},{x:t,y:e})}}function k(t,e,n){var r=t.left,i=t.top,a=t.width,o=t.height,s=e[0][0]<a/2?e[0][0]:a/2,u=e[0][1]<o/2?e[0][1]:o/2,l=e[1][0]<a/2?e[1][0]:a/2,c=e[1][1]<o/2?e[1][1]:o/2,f=e[2][0]<a/2?e[2][0]:a/2,h=e[2][1]<o/2?e[2][1]:o/2,d=e[3][0]<a/2?e[3][0]:a/2,g=e[3][1]<o/2?e[3][1]:o/2;var v=a-l,p=o-h,y=a-f,m=o-g;return{topLeftOuter:x(r,i,s,u).topLeft.subdivide(.5),topLeftInner:x(r+n[3].width,i+n[0].width,Math.max(0,s-n[3].width),Math.max(0,u-n[0].width)).topLeft.subdivide(.5),topRightOuter:x(r+v,i,l,c).topRight.subdivide(.5),topRightInner:x(r+Math.min(v,a+n[3].width),i+n[0].width,v>a+n[3].width?0:l-n[3].width,c-n[0].width).topRight.subdivide(.5),bottomRightOuter:x(r+y,i+p,f,h).bottomRight.subdivide(.5),bottomRightInner:x(r+Math.min(y,a-n[3].width),i+Math.min(p,o+n[0].width),Math.max(0,f-n[1].width),h-n[2].width).bottomRight.subdivide(.5),bottomLeftOuter:x(r,i+m,d,g).bottomLeft.subdivide(.5),bottomLeftInner:x(r+n[3].width,i+m,Math.max(0,d-n[3].width),g-n[2].width).bottomLeft.subdivide(.5)}}function S(u,l,c,f){var h=function t(e,n,r){return{x:e.x+(n.x-e.x)*r,y:e.y+(n.y-e.y)*r}};return{start:u,startControl:l,endControl:c,end:f,subdivide:function t(e){var n=h(u,l,e),r=h(l,c,e),i=h(c,f,e),a=h(n,r,e),o=h(r,i,e),s=h(a,o,e);return[S(u,n,a,s),S(s,o,i,f)]},curveTo:function t(e){e.push(["bezierCurve",l.x,l.y,c.x,c.y,f.x,f.y])},curveToReversed:function t(e){e.push(["bezierCurve",c.x,c.y,l.x,l.y,u.x,u.y])}}}function C(t,e,n,r,i,a,o){var s=[];if(e[0]>0||e[1]>0){s.push(["line",r[1].start.x,r[1].start.y]);r[1].curveTo(s)}else{s.push(["line",t.c1[0],t.c1[1]])}if(n[0]>0||n[1]>0){s.push(["line",a[0].start.x,a[0].start.y]);a[0].curveTo(s);s.push(["line",o[0].end.x,o[0].end.y]);o[0].curveToReversed(s)}else{s.push(["line",t.c2[0],t.c2[1]]);s.push(["line",t.c3[0],t.c3[1]])}if(e[0]>0||e[1]>0){s.push(["line",i[1].end.x,i[1].end.y]);i[1].curveToReversed(s)}else{s.push(["line",t.c4[0],t.c4[1]])}return s}function E(t,e,n,r,i,a,o){if(e[0]>0||e[1]>0){t.push(["line",r[0].start.x,r[0].start.y]);r[0].curveTo(t);r[1].curveTo(t)}else{t.push(["line",a,o])}if(n[0]>0||n[1]>0){t.push(["line",i[0].start.x,i[0].start.y])}}function A(t){return t.cssInt("zIndex")<0}function M(t){return t.cssInt("zIndex")>0}function R(t){return t.cssInt("zIndex")===0}function T(t){return["inline","inline-block","inline-table"].indexOf(t.css("display"))!==-1}function O(t){return t instanceof g}function P(t){return t.node.data.trim().length>0}function B(t){return/^(normal|none|0px)$/.test(t.parent.css("letterSpacing"))}function D(r){return["TopLeft","TopRight","BottomRight","BottomLeft"].map(function(t){var e=r.css("border"+t+"Radius");var n=e.split(" ");if(n.length<=1){n[1]=n[0]}return n.map(q)})}function N(t){return t.nodeType===Node.TEXT_NODE||t.nodeType===Node.ELEMENT_NODE}function z(t){var e=t.css("position");var n=["absolute","relative","fixed"].indexOf(e)!==-1?t.css("zIndex"):"auto";return n!=="auto"}function F(t){return t.css("position")!=="static"}function j(t){return t.css("float")!=="none"}function I(t){return["inline-block","inline-table"].indexOf(t.css("display"))!==-1}function L(t){var e=this;return function(){return!t.apply(e,arguments)}}function H(t){return t.node.nodeType===Node.ELEMENT_NODE}function U(t){return t.isPseudoElement===true}function G(t){return t.node.nodeType===Node.TEXT_NODE}function V(n){return function(t,e){return t.cssInt("zIndex")+n.indexOf(t)/n.length-(e.cssInt("zIndex")+n.indexOf(e)/n.length)}}function W(t){return t.getOpacity()<1}function q(t){return parseInt(t,10)}function K(t){return t.width}function Y(t){return t.node.nodeType!==Node.ELEMENT_NODE||["SCRIPT","HEAD","TITLE","OBJECT","BR","OPTION"].indexOf(t.node.nodeName)===-1}function X(t){return[].concat.apply([],t)}function Z(t){var e=t.substr(0,1);return e===t.substr(t.length-1)&&e.match(/'|"/)?t.substr(1,t.length-2):t}function $(t){var e=[],n=0,r=false,i;while(t.length){if(J(t[n])===r){i=t.splice(0,n);if(i.length){e.push(u.ucs2.encode(i))}r=!r;n=0}else{n++}if(n>=t.length){i=t.splice(0,n);if(i.length){e.push(u.ucs2.encode(i))}}}return e}function J(t){return[32,13,10,9,45].indexOf(t)!==-1}function Q(t){return/[^\u0000-\u00ff]/.test(t)}e.exports=i},{"./color":3,"./fontmetrics":7,"./log":13,"./nodecontainer":14,"./pseudoelementcontainer":18,"./stackingcontext":21,"./textcontainer":25,"./utils":26,punycode:1}],16:[function(t,e,n){var o=t("./xhr");var r=t("./utils");var s=t("./log");var u=t("./clone");var l=r.decode64;function c(t,e,n){var r="withCredentials"in new XMLHttpRequest;if(!e){return Promise.reject("No proxy configured")}var i=h(r);var a=d(e,t,i);return r?o(a):f(n,a,i).then(function(t){return l(t.content)})}var i=0;function a(t,e,n){var r="crossOrigin"in new Image;var i=h(r);var a=d(e,t,i);return r?Promise.resolve(a):f(n,a,i).then(function(t){return"data:"+t.type+";base64,"+t.content})}function f(a,t,o){return new Promise(function(e,n){var r=a.createElement("script");var i=function t(){delete window.html2canvas.proxy[o];a.body.removeChild(r)};window.html2canvas.proxy[o]=function(t){i();e(t)};r.src=t;r.onerror=function(t){i();n(t)};a.body.appendChild(r)})}function h(t){return!t?"html2canvas_"+Date.now()+"_"+ ++i+"_"+Math.round(Math.random()*1e5):""}function d(t,e,n){return t+"?url="+encodeURIComponent(e)+(n.length?"&callback=html2canvas.proxy."+n:"")}function g(a){return function(e){var t=new DOMParser,n;try{n=t.parseFromString(e,"text/html")}catch(t){s("DOMParser not supported, falling back to createHTMLDocument");n=document.implementation.createHTMLDocument("");try{n.open();n.write(e);n.close()}catch(t){s("createHTMLDocument write not supported, falling back to document.body.innerHTML");n.body.innerHTML=e}}var r=n.querySelector("base");if(!r||!r.href.host){var i=n.createElement("base");i.href=a;n.head.insertBefore(i,n.head.firstChild)}return n}}function v(t,e,n,r,i,a){return new c(t,e,window.document).then(g(t)).then(function(t){return u(t,n,r,i,a,0,0)})}n.Proxy=c;n.ProxyURL=a;n.loadUrlDocument=v},{"./clone":2,"./log":13,"./utils":26,"./xhr":28}],17:[function(t,e,n){var a=t("./proxy").ProxyURL;function r(n,r){var t=document.createElement("a");t.href=n;n=t.href;this.src=n;this.image=new Image;var i=this;this.promise=new Promise(function(t,e){i.image.crossOrigin="Anonymous";i.image.onload=t;i.image.onerror=e;new a(n,r,document).then(function(t){i.image.src=t})["catch"](e)})}e.exports=r},{"./proxy":16}],18:[function(t,e,n){var r=t("./nodecontainer");function i(t,e,n){r.call(this,t,e);this.isPseudoElement=true;this.before=n===":before"}i.prototype.cloneTo=function(t){i.prototype.cloneTo.call(this,t);t.isPseudoElement=true;t.before=this.before};i.prototype=Object.create(r.prototype);i.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()};i.prototype.cleanDOM=function(){this.node.parentNode.removeChild(this.node);this.parent.node.className=this.parent.node.className.replace(this.getHideClass(),"")};i.prototype.getHideClass=function(){return this["PSEUDO_HIDE_ELEMENT_CLASS_"+(this.before?"BEFORE":"AFTER")]};i.prototype.PSEUDO_HIDE_ELEMENT_CLASS_BEFORE="___html2canvas___pseudoelement_before";i.prototype.PSEUDO_HIDE_ELEMENT_CLASS_AFTER="___html2canvas___pseudoelement_after";e.exports=i},{"./nodecontainer":14}],19:[function(t,e,n){var u=t("./log");function r(t,e,n,r,i){this.width=t;this.height=e;this.images=n;this.options=r;this.document=i}r.prototype.renderImage=function(t,e,n,r){var i=t.cssInt("paddingLeft"),a=t.cssInt("paddingTop"),o=t.cssInt("paddingRight"),s=t.cssInt("paddingBottom"),u=n.borders;var l=e.width-(u[1].width+u[3].width+i+o);var c=e.height-(u[0].width+u[2].width+a+s);this.drawImage(r,0,0,r.image.width||l,r.image.height||c,e.left+i+u[3].width,e.top+a+u[0].width,l,c)};r.prototype.renderBackground=function(t,e,n){if(e.height>0&&e.width>0){this.renderBackgroundColor(t,e);this.renderBackgroundImage(t,e,n)}};r.prototype.renderBackgroundColor=function(t,e){var n=t.color("backgroundColor");if(!n.isTransparent()){this.rectangle(e.left,e.top,e.width,e.height,n)}};r.prototype.renderBorders=function(t){t.forEach(this.renderBorder,this)};r.prototype.renderBorder=function(t){if(!t.color.isTransparent()&&t.args!==null){this.drawShape(t.args,t.color)}};r.prototype.renderBackgroundImage=function(a,o,s){var t=a.parseBackgroundImages();t.reverse().forEach(function(t,e,n){switch(t.method){case"url":var r=this.images.get(t.args[0]);if(r){this.renderBackgroundRepeating(a,o,r,n.length-(e+1),s)}else{u("Error loading background-image",t.args[0])}break;case"linear-gradient":case"gradient":var i=this.images.get(t.value);if(i){this.renderBackgroundGradient(i,o,s)}else{u("Error loading background-image",t.args[0])}break;case"none":break;default:u("Unknown background-image type",t.args[0])}},this)};r.prototype.renderBackgroundRepeating=function(t,e,n,r,i){var a=t.parseBackgroundSize(e,n.image,r);var o=t.parseBackgroundPosition(e,n.image,r,a);var s=t.parseBackgroundRepeat(r);switch(s){case"repeat-x":case"repeat no-repeat":this.backgroundRepeatShape(n,o,a,e,e.left+i[3],e.top+o.top+i[0],99999,a.height,i);break;case"repeat-y":case"no-repeat repeat":this.backgroundRepeatShape(n,o,a,e,e.left+o.left+i[3],e.top+i[0],a.width,99999,i);break;case"no-repeat":this.backgroundRepeatShape(n,o,a,e,e.left+o.left+i[3],e.top+o.top+i[0],a.width,a.height,i);break;default:this.renderBackgroundRepeat(n,o,a,{top:e.top,left:e.left},i[3],i[0]);break}};e.exports=r},{"./log":13}],20:[function(t,e,n){var r=t("../renderer");var i=t("../lineargradientcontainer");var a=t("../log");function o(t,e){r.apply(this,arguments);this.canvas=this.options.canvas||this.document.createElement("canvas");if(!this.options.canvas){this.canvas.width=t;this.canvas.height=e}this.ctx=this.canvas.getContext("2d");this.taintCtx=this.document.createElement("canvas").getContext("2d");this.ctx.textBaseline="bottom";this.variables={};a("Initialized CanvasRenderer with size",t,"x",e)}o.prototype=Object.create(r.prototype);o.prototype.setFillStyle=function(t){this.ctx.fillStyle=_typeof2(t)==="object"&&!!t.isColor?t.toString():t;return this.ctx};o.prototype.rectangle=function(t,e,n,r,i){this.setFillStyle(i).fillRect(t,e,n,r)};o.prototype.circle=function(t,e,n,r){this.setFillStyle(r);this.ctx.beginPath();this.ctx.arc(t+n/2,e+n/2,n/2,0,Math.PI*2,true);this.ctx.closePath();this.ctx.fill()};o.prototype.circleStroke=function(t,e,n,r,i,a){this.circle(t,e,n,r);this.ctx.strokeStyle=a.toString();this.ctx.stroke()};o.prototype.drawShape=function(t,e){this.shape(t);this.setFillStyle(e).fill()};o.prototype.taints=function(e){if(e.tainted===null){this.taintCtx.drawImage(e.image,0,0);try{this.taintCtx.getImageData(0,0,1,1);e.tainted=false}catch(t){this.taintCtx=document.createElement("canvas").getContext("2d");e.tainted=true}}return e.tainted};o.prototype.drawImage=function(t,e,n,r,i,a,o,s,u){if(!this.taints(t)||this.options.allowTaint){this.ctx.drawImage(t.image,e,n,r,i,a,o,s,u)}};o.prototype.clip=function(t,e,n){this.ctx.save();t.filter(s).forEach(function(t){this.shape(t).clip()},this);e.call(n);this.ctx.restore()};o.prototype.shape=function(t){this.ctx.beginPath();t.forEach(function(t,e){if(t[0]==="rect"){this.ctx.rect.apply(this.ctx,t.slice(1))}else{this.ctx[e===0?"moveTo":t[0]+"To"].apply(this.ctx,t.slice(1))}},this);this.ctx.closePath();return this.ctx};o.prototype.font=function(t,e,n,r,i,a){this.setFillStyle(t).font=[e,n,r,i,a].join(" ").split(",")[0]};o.prototype.fontShadow=function(t,e,n,r){this.setVariable("shadowColor",t.toString()).setVariable("shadowOffsetY",e).setVariable("shadowOffsetX",n).setVariable("shadowBlur",r)};o.prototype.clearShadow=function(){this.setVariable("shadowColor","rgba(0,0,0,0)")};o.prototype.setOpacity=function(t){this.ctx.globalAlpha=t};o.prototype.setTransform=function(t){this.ctx.translate(t.origin[0],t.origin[1]);this.ctx.transform.apply(this.ctx,t.matrix);this.ctx.translate(-t.origin[0],-t.origin[1])};o.prototype.setVariable=function(t,e){if(this.variables[t]!==e){this.variables[t]=this.ctx[t]=e}return this};o.prototype.text=function(t,e,n){this.ctx.fillText(t,e,n)};o.prototype.backgroundRepeatShape=function(t,e,n,r,i,a,o,s,u){var l=[["line",Math.round(i),Math.round(a)],["line",Math.round(i+o),Math.round(a)],["line",Math.round(i+o),Math.round(s+a)],["line",Math.round(i),Math.round(s+a)]];this.clip([l],function(){this.renderBackgroundRepeat(t,e,n,r,u[3],u[0])},this)};o.prototype.renderBackgroundRepeat=function(t,e,n,r,i,a){var o=Math.round(r.left+e.left+i),s=Math.round(r.top+e.top+a);this.setFillStyle(this.ctx.createPattern(this.resizeImage(t,n),"repeat"));this.ctx.translate(o,s);this.ctx.fill();this.ctx.translate(-o,-s)};o.prototype.renderBackgroundGradient=function(t,e){if(t instanceof i){var n=this.ctx.createLinearGradient(e.left+e.width*t.x0,e.top+e.height*t.y0,e.left+e.width*t.x1,e.top+e.height*t.y1);t.colorStops.forEach(function(t){n.addColorStop(t.stop,t.color.toString())});this.rectangle(e.left,e.top,e.width,e.height,n)}};o.prototype.resizeImage=function(t,e){var n=t.image;if(n.width===e.width&&n.height===e.height){return n}var r,i=document.createElement("canvas");i.width=e.width;i.height=e.height;r=i.getContext("2d");r.drawImage(n,0,0,n.width,n.height,0,0,e.width,e.height);return i};function s(t){return t.length>0}e.exports=o},{"../lineargradientcontainer":12,"../log":13,"../renderer":19}],21:[function(t,e,n){var i=t("./nodecontainer");function r(t,e,n,r){i.call(this,n,r);this.ownStacking=t;this.contexts=[];this.children=[];this.opacity=(this.parent?this.parent.stack.opacity:1)*e}r.prototype=Object.create(i.prototype);r.prototype.getParentStack=function(t){var e=this.parent?this.parent.stack:null;return e?e.ownStacking?e:e.getParentStack(t):t.stack};e.exports=r},{"./nodecontainer":14}],22:[function(t,e,n){function r(t){this.rangeBounds=this.testRangeBounds(t);this.cors=this.testCORS();this.svg=this.testSVG()}r.prototype.testRangeBounds=function(t){var e,n,r,i,a=false;if(t.createRange){e=t.createRange();if(e.getBoundingClientRect){n=t.createElement("boundtest");n.style.height="123px";n.style.display="block";t.body.appendChild(n);e.selectNode(n);r=e.getBoundingClientRect();i=r.height;if(i===123){a=true}t.body.removeChild(n)}}return a};r.prototype.testCORS=function(){return typeof(new Image).crossOrigin!=="undefined"};r.prototype.testSVG=function(){var t=new Image;var e=document.createElement("canvas");var n=e.getContext("2d");t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{n.drawImage(t,0,0);e.toDataURL()}catch(t){return false}return true};e.exports=r},{}],23:[function(t,e,n){var r=t("./xhr");var i=t("./utils").decode64;function a(t){this.src=t;this.image=null;var n=this;this.promise=this.hasFabric().then(function(){return n.isInline(t)?Promise.resolve(n.inlineFormatting(t)):r(t)}).then(function(e){return new Promise(function(t){window.html2canvas.svg.fabric.loadSVGFromString(e,n.createCanvas.call(n,t))})})}a.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()};a.prototype.inlineFormatting=function(t){return/^data:image\/svg\+xml;base64,/.test(t)?this.decode64(this.removeContentType(t)):this.removeContentType(t)};a.prototype.removeContentType=function(t){return t.replace(/^data:image\/svg\+xml(;base64)?,/,"")};a.prototype.isInline=function(t){return/^data:image\/svg\+xml/i.test(t)};a.prototype.createCanvas=function(r){var i=this;return function(t,e){var n=new window.html2canvas.svg.fabric.StaticCanvas("c");i.image=n.lowerCanvasEl;n.setWidth(e.width).setHeight(e.height).add(window.html2canvas.svg.fabric.util.groupSVGElements(t,e)).renderAll();r(n.lowerCanvasEl)}};a.prototype.decode64=function(t){return typeof window.atob==="function"?window.atob(t):i(t)};e.exports=a},{"./utils":26,"./xhr":28}],24:[function(t,e,n){var r=t("./svgcontainer");function i(n,t){this.src=n;this.image=null;var r=this;this.promise=t?new Promise(function(t,e){r.image=new Image;r.image.onload=t;r.image.onerror=e;r.image.src="data:image/svg+xml,"+(new XMLSerializer).serializeToString(n);if(r.image.complete===true){t(r.image)}}):this.hasFabric().then(function(){return new Promise(function(t){window.html2canvas.svg.fabric.parseSVGDocument(n,r.createCanvas.call(r,t))})})}i.prototype=Object.create(r.prototype);e.exports=i},{"./svgcontainer":23}],25:[function(t,e,n){var r=t("./nodecontainer");function i(t,e){r.call(this,t,e)}i.prototype=Object.create(r.prototype);i.prototype.applyTextTransform=function(){this.node.data=this.transform(this.parent.css("textTransform"))};i.prototype.transform=function(t){var e=this.node.data;switch(t){case"lowercase":return e.toLowerCase();case"capitalize":return e.replace(/(^|\s|:|-|\(|\))([a-z])/g,a);case"uppercase":return e.toUpperCase();default:return e}};function a(t,e,n){if(t.length>0){return e+n.toUpperCase()}}e.exports=i},{"./nodecontainer":14}],26:[function(t,e,n){n.smallImage=function t(){return"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"};n.bind=function(t,e){return function(){return t.apply(e,arguments)}};n.decode64=function(t){var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";var n=t.length,r,i,a,o,s,u,l,c;var f="";for(r=0;r<n;r+=4){i=e.indexOf(t[r]);a=e.indexOf(t[r+1]);o=e.indexOf(t[r+2]);s=e.indexOf(t[r+3]);u=i<<2|a>>4;l=(a&15)<<4|o>>2;c=(o&3)<<6|s;if(o===64){f+=String.fromCharCode(u)}else if(s===64||s===-1){f+=String.fromCharCode(u,l)}else{f+=String.fromCharCode(u,l,c)}}return f};n.getBounds=function(t){if(t.getBoundingClientRect){var e=t.getBoundingClientRect();var n=t.offsetWidth==null?e.width:t.offsetWidth;return{top:e.top,bottom:e.bottom||e.top+e.height,right:e.left+n,left:e.left,width:n,height:t.offsetHeight==null?e.height:t.offsetHeight}}return{}};n.offsetBounds=function(t){var e=t.offsetParent?n.offsetBounds(t.offsetParent):{top:0,left:0};return{top:t.offsetTop+e.top,bottom:t.offsetTop+t.offsetHeight+e.top,right:t.offsetLeft+e.left+t.offsetWidth,left:t.offsetLeft+e.left,width:t.offsetWidth,height:t.offsetHeight}};n.parseBackgrounds=function(t){var e=" \r\n\t",n,r,i,a,o,s=[],u=0,l=0,c,f;var h=function t(){if(n){if(r.substr(0,1)==='"'){r=r.substr(1,r.length-2)}if(r){f.push(r)}if(n.substr(0,1)==="-"&&(a=n.indexOf("-",1)+1)>0){i=n.substr(0,a);n=n.substr(a)}s.push({prefix:i,method:n.toLowerCase(),value:o,args:f,image:null})}f=[];n=i=r=o=""};f=[];n=i=r=o="";t.split("").forEach(function(t){if(u===0&&e.indexOf(t)>-1){return}switch(t){case'"':if(!c){c=t}else if(c===t){c=null}break;case"(":if(c){break}else if(u===0){u=1;o+=t;return}else{l++}break;case")":if(c){break}else if(u===1){if(l===0){u=0;o+=t;h();return}else{l--}}break;case",":if(c){break}else if(u===0){h();return}else if(u===1){if(l===0&&!n.match(/^url$/i)){f.push(r);r="";o+=t;return}}break}o+=t;if(u===0){n+=t}else{r+=t}});h();return s}},{}],27:[function(t,e,n){var r=t("./gradientcontainer");function i(t){r.apply(this,arguments);this.type=t.args[0]==="linear"?r.TYPES.LINEAR:r.TYPES.RADIAL}i.prototype=Object.create(r.prototype);e.exports=i},{"./gradientcontainer":9}],28:[function(t,e,n){function r(r){return new Promise(function(t,e){var n=new XMLHttpRequest;n.open("GET",r);n.onload=function(){if(n.status===200){t(n.responseText)}else{e(new Error(n.statusText))}};n.onerror=function(){e(new Error("Network Error"))};n.send()})}e.exports=r},{}]},{},[4])(4)})});var y5=function t(e){this.ok=false;this.alpha=1;if(e.charAt(0)=="#"){e=e.substr(1,6)}e=e.replace(/ /g,"");e=e.toLowerCase();var c={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"};e=c[e]||e;var f=[{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 t(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3]),parseFloat(e[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 t(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function t(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function t(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}];for(var n=0;n<f.length;n++){var r=f[n].re;var i=f[n].process;var a=r.exec(e);if(a){var o=i(a);this.r=o[0];this.g=o[1];this.b=o[2];if(o.length>3){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 t=this.r.toString(16);var e=this.g.toString(16);var n=this.b.toString(16);if(t.length==1)t="0"+t;if(e.length==1)e="0"+e;if(n.length==1)n="0"+n;return"#"+t+e+n};this.getHelpXML=function(){var t=new Array;for(var e=0;e<f.length;e++){var n=f[e].example;for(var r=0;r<n.length;r++){t[t.length]=n[r]}}for(var i in c){t[t.length]=i}var a=document.createElement("ul");a.setAttribute("id","rgbcolor-examples");for(var e=0;e<t.length;e++){try{var o=document.createElement("li");var s=new RGBColor(t[e]);var u=document.createElement("div");u.style.cssText="margin: 3px; "+"border: 1px solid black; "+"background:"+s.toHex()+"; "+"color:"+s.toHex();u.appendChild(document.createTextNode("test"));var l=document.createTextNode(" "+t[e]+" -> "+s.toRGB()+" -> "+s.toHex());o.appendChild(u);o.appendChild(l);a.appendChild(o)}catch(t){}}return a}};var m5=[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 _5=[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 b5(t,e,n,r){if(isNaN(r)||r<1)return;r|=0;var i,a,o,s,u,l,c,f,h,d,g,v,p,y,m,_,b,w,x,k,S,C,E,A;var M=r+r+1;var R=e-1;var T=n-1;var O=r+1;var P=O*(O+1)/2;var B=new w5;var D=B;for(o=1;o<M;o++){D=D.next=new w5;if(o==O)var N=D}D.next=B;var z=null;var F=null;c=l=0;var j=m5[r];var I=_5[r];for(a=0;a<n;a++){_=b=w=x=f=h=d=g=0;v=O*(k=t[l]);p=O*(S=t[l+1]);y=O*(C=t[l+2]);m=O*(E=t[l+3]);f+=P*k;h+=P*S;d+=P*C;g+=P*E;D=B;for(o=0;o<O;o++){D.r=k;D.g=S;D.b=C;D.a=E;D=D.next}for(o=1;o<O;o++){s=l+((R<o?R:o)<<2);f+=(D.r=k=t[s])*(A=O-o);h+=(D.g=S=t[s+1])*A;d+=(D.b=C=t[s+2])*A;g+=(D.a=E=t[s+3])*A;_+=k;b+=S;w+=C;x+=E;D=D.next}z=B;F=N;for(i=0;i<e;i++){t[l+3]=E=g*j>>I;if(E!=0){E=255/E;t[l]=(f*j>>I)*E;t[l+1]=(h*j>>I)*E;t[l+2]=(d*j>>I)*E}else{t[l]=t[l+1]=t[l+2]=0}f-=v;h-=p;d-=y;g-=m;v-=z.r;p-=z.g;y-=z.b;m-=z.a;s=c+((s=i+r+1)<R?s:R)<<2;_+=z.r=t[s];b+=z.g=t[s+1];w+=z.b=t[s+2];x+=z.a=t[s+3];f+=_;h+=b;d+=w;g+=x;z=z.next;v+=k=F.r;p+=S=F.g;y+=C=F.b;m+=E=F.a;_-=k;b-=S;w-=C;x-=E;F=F.next;l+=4}c+=e}for(i=0;i<e;i++){b=w=x=_=h=d=g=f=0;l=i<<2;v=O*(k=t[l]);p=O*(S=t[l+1]);y=O*(C=t[l+2]);m=O*(E=t[l+3]);f+=P*k;h+=P*S;d+=P*C;g+=P*E;D=B;for(o=0;o<O;o++){D.r=k;D.g=S;D.b=C;D.a=E;D=D.next}u=e;for(o=1;o<=r;o++){l=u+i<<2;f+=(D.r=k=t[l])*(A=O-o);h+=(D.g=S=t[l+1])*A;d+=(D.b=C=t[l+2])*A;g+=(D.a=E=t[l+3])*A;_+=k;b+=S;w+=C;x+=E;D=D.next;if(o<T){u+=e}}l=i;z=B;F=N;for(a=0;a<n;a++){s=l<<2;t[s+3]=E=g*j>>I;if(E>0){E=255/E;t[s]=(f*j>>I)*E;t[s+1]=(h*j>>I)*E;t[s+2]=(d*j>>I)*E}else{t[s]=t[s+1]=t[s+2]=0}f-=v;h-=p;d-=y;g-=m;v-=z.r;p-=z.g;y-=z.b;m-=z.a;s=i+((s=a+O)<T?s:T)*e<<2;f+=_+=z.r=t[s];h+=b+=z.g=t[s+1];d+=w+=z.b=t[s+2];g+=x+=z.a=t[s+3];z=z.next;v+=k=F.r;p+=S=F.g;y+=C=F.b;m+=E=F.a;_-=k;b-=S;w-=C;x-=E;F=F.next;l+=e}}}function w5(){this.r=0;this.g=0;this.b=0;this.a=0;this.next=null}var x5=b5;var k5=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/;var S5=new RegExp("[\\-\\.0-9"+k5.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]");var C5=new RegExp("^"+k5.source+S5.source+"*(?::"+k5.source+S5.source+"*)?$");var E5=0;var A5=1;var M5=2;var R5=3;var T5=4;var O5=5;var P5=6;var B5=7;function D5(){}D5.prototype={parse:function t(e,n,r){var i=this.domBuilder;i.startDocument();H5(n,n={});N5(e,n,r,i,this.errorHandler);i.endDocument()}};function N5(n,t,r,i,a){function o(t){if(t>65535){t-=65536;var e=55296+(t>>10),n=56320+(t&1023);return String.fromCharCode(e,n)}else{return String.fromCharCode(t)}}function s(t){var e=t.slice(1,-1);if(e in r){return r[e]}else if(e.charAt(0)==="#"){return o(parseInt(e.substr(1).replace("x","0x")))}else{a.error("entity not found:"+t);return t}}function e(t){if(t>v){var e=n.substring(v,t).replace(/&#?\w+;/g,s);h&&u(v);i.characters(e,0,t-v);v=t}}function u(t,e){while(t>=c&&(e=f.exec(n))){l=e.index;c=l+e[0].length;h.lineNumber++}h.columnNumber=t-l+1}var l=0;var c=0;var f=/.*(?:\r\n?|\n)|.*$/g;var h=i.locator;var d=[{currentNSMap:t}];var g={};var v=0;while(true){try{var p=n.indexOf("<",v);if(p<0){if(!n.substr(v).match(/^\s*$/)){var y=i.doc;var m=y.createTextNode(n.substr(v));y.appendChild(m);i.currentElement=m}return}if(p>v){e(p)}switch(n.charAt(p+1)){case"/":var _=n.indexOf(">",p+3);var b=n.substring(p+2,_);var w=d.pop();if(_<0){b=n.substring(p+2).replace(/[\s<].*/,"");a.error("end tag name: "+b+" is not complete:"+w.tagName);_=p+1+b.length}else if(b.match(/\s</)){b=b.replace(/[\s<].*/,"");a.error("end tag name: "+b+" maybe not complete");_=p+1+b.length}var x=w.localNSMap;var k=w.tagName==b;var S=k||w.tagName&&w.tagName.toLowerCase()==b.toLowerCase();if(S){i.endElement(w.uri,w.localName,b);if(x){for(var C in x){i.endPrefixMapping(C)}}if(!k){a.fatalError("end tag name: "+b+" is not match the current start tagName:"+w.tagName)}}else{d.push(w)}_++;break;case"?":h&&u(p);_=G5(n,p,i);break;case"!":h&&u(p);_=U5(n,p,i,a);break;default:h&&u(p);var E=new V5;var A=d[d.length-1].currentNSMap;var _=F5(n,p,E,A,s,a);var M=E.length;if(!E.closed&&L5(n,_,E.tagName,g)){E.closed=true;if(!r.nbsp){a.warning("unclosed xml attribute")}}if(h&&M){var R=z5(h,{});for(var T=0;T<M;T++){var O=E[T];u(O.offset);O.locator=z5(h,{})}i.locator=R;if(j5(E,i,A)){d.push(E)}i.locator=h}else{if(j5(E,i,A)){d.push(E)}}if(E.uri==="http://www.w3.org/1999/xhtml"&&!E.closed){_=I5(n,_,E.tagName,s,i)}else{_++}}}catch(t){a.error("element parse error: "+t);_=-1}if(_>v){v=_}else{e(Math.max(p,v)+1)}}}function z5(t,e){e.lineNumber=t.lineNumber;e.columnNumber=t.columnNumber;return e}function F5(t,e,n,r,i,a){var o;var s;var u=++e;var l=E5;while(true){var c=t.charAt(u);switch(c){case"=":if(l===A5){o=t.slice(e,u);l=R5}else if(l===M5){l=R5}else{throw new Error("attribute equal must after attrName")}break;case"'":case'"':if(l===R5||l===A5){if(l===A5){a.warning('attribute value must after "="');o=t.slice(e,u)}e=u+1;u=t.indexOf(c,e);if(u>0){s=t.slice(e,u).replace(/&#?\w+;/g,i);n.add(o,s,e-1);l=O5}else{throw new Error("attribute value no end '"+c+"' match")}}else if(l==T5){s=t.slice(e,u).replace(/&#?\w+;/g,i);n.add(o,s,e);a.warning('attribute "'+o+'" missed start quot('+c+")!!");e=u+1;l=O5}else{throw new Error('attribute value must after "="')}break;case"/":switch(l){case E5:n.setTagName(t.slice(e,u));case O5:case P5:case B5:l=B5;n.closed=true;case T5:case A5:case M5:break;default:throw new Error("attribute invalid close char('/')")}break;case"":a.error("unexpected end of input");if(l==E5){n.setTagName(t.slice(e,u))}return u;case">":switch(l){case E5:n.setTagName(t.slice(e,u));case O5:case P5:case B5:break;case T5:case A5:s=t.slice(e,u);if(s.slice(-1)==="/"){n.closed=true;s=s.slice(0,-1)}case M5:if(l===M5){s=o}if(l==T5){a.warning('attribute "'+s+'" missed quot(")!!');n.add(o,s.replace(/&#?\w+;/g,i),e)}else{if(r[""]!=="http://www.w3.org/1999/xhtml"||!s.match(/^(?:disabled|checked|selected)$/i)){a.warning('attribute "'+s+'" missed value!! "'+s+'" instead!!')}n.add(s,s,e)}break;case R5:throw new Error("attribute value missed!!")}return u;case"€":c=" ";default:if(c<=" "){switch(l){case E5:n.setTagName(t.slice(e,u));l=P5;break;case A5:o=t.slice(e,u);l=M5;break;case T5:var s=t.slice(e,u).replace(/&#?\w+;/g,i);a.warning('attribute "'+s+'" missed quot(")!!');n.add(o,s,e);case O5:l=P5;break}}else{switch(l){case M5:n.tagName;if(r[""]!=="http://www.w3.org/1999/xhtml"||!o.match(/^(?:disabled|checked|selected)$/i)){a.warning('attribute "'+o+'" missed value!! "'+o+'" instead2!!')}n.add(o,o,e);e=u;l=A5;break;case O5:a.warning('attribute space is required"'+o+'"!!');case P5:l=A5;e=u;break;case R5:l=T5;e=u;break;case B5:throw new Error("elements closed character '/' and '>' must be connected to")}}}u++}}function j5(t,e,n){var r=t.tagName;var i=null;var a=t.length;while(a--){var o=t[a];var s=o.qName;var u=o.value;var l=s.indexOf(":");if(l>0){var c=o.prefix=s.slice(0,l);var f=s.slice(l+1);var h=c==="xmlns"&&f}else{f=s;c=null;h=s==="xmlns"&&""}o.localName=f;if(h!==false){if(i==null){i={};H5(n,n={})}n[h]=i[h]=u;o.uri="http://www.w3.org/2000/xmlns/";e.startPrefixMapping(h,u)}}var a=t.length;while(a--){o=t[a];var c=o.prefix;if(c){if(c==="xml"){o.uri="http://www.w3.org/XML/1998/namespace"}if(c!=="xmlns"){o.uri=n[c||""]}}}var l=r.indexOf(":");if(l>0){c=t.prefix=r.slice(0,l);f=t.localName=r.slice(l+1)}else{c=null;f=t.localName=r}var d=t.uri=n[c||""];e.startElement(d,f,r,t);if(t.closed){e.endElement(d,f,r);if(i){for(c in i){e.endPrefixMapping(c)}}}else{t.currentNSMap=n;t.localNSMap=i;return true}}function I5(t,e,n,r,i){if(/^(?:script|textarea)$/i.test(n)){var a=t.indexOf("</"+n+">",e);var o=t.substring(e+1,a);if(/[&<]/.test(o)){if(/^script$/i.test(n)){i.characters(o,0,o.length);return a}o=o.replace(/&#?\w+;/g,r);i.characters(o,0,o.length);return a}}return e+1}function L5(t,e,n,r){var i=r[n];if(i==null){i=t.lastIndexOf("</"+n+">");if(i<e){i=t.lastIndexOf("</"+n)}r[n]=i}return i<e}function H5(t,e){for(var n in t){e[n]=t[n]}}function U5(t,e,n,r){var i=t.charAt(e+2);switch(i){case"-":if(t.charAt(e+3)==="-"){var a=t.indexOf("--\x3e",e+4);if(a>e){n.comment(t,e+4,a-e-4);return a+3}else{r.error("Unclosed comment");return-1}}else{return-1}default:if(t.substr(e+3,6)=="CDATA["){var a=t.indexOf("]]>",e+9);n.startCDATA();n.characters(t,e+9,a-e-9);n.endCDATA();return a+3}var o=q5(t,e);var s=o.length;if(s>1&&/!doctype/i.test(o[0][0])){var u=o[1][0];var l=s>3&&/^public$/i.test(o[2][0])&&o[3][0];var c=s>4&&o[4][0];var f=o[s-1];n.startDTD(u,l&&l.replace(/^(['"])(.*?)\1$/,"$2"),c&&c.replace(/^(['"])(.*?)\1$/,"$2"));n.endDTD();return f.index+f[0].length}}return-1}function G5(t,e,n){var r=t.indexOf("?>",e);if(r){var i=t.substring(e,r).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(i){i[0].length;n.processingInstruction(i[1],i[2]);return r+2}else{return-1}}return-1}function V5(t){}V5.prototype={setTagName:function t(e){if(!C5.test(e)){throw new Error("invalid tagName:"+e)}this.tagName=e},add:function t(e,n,r){if(!C5.test(e)){throw new Error("invalid attribute:"+e)}this[this.length++]={qName:e,value:n,offset:r}},length:0,getLocalName:function t(e){return this[e].localName},getLocator:function t(e){return this[e].locator},getQName:function t(e){return this[e].qName},getURI:function t(e){return this[e].uri},getValue:function t(e){return this[e].value}};function W5(t,e){t.__proto__=e;return t}if(!(W5({},W5.prototype)instanceof W5)){W5=function t(e,n){function r(){}r.prototype=n;r=new r;for(n in e){r[n]=e[n]}return r}}function q5(t,e){var n;var r=[];var i=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;i.lastIndex=e;i.exec(t);while(n=i.exec(t)){r.push(n);if(n[1])return r}}var K5=D5;var Y5={XMLReader:K5};function X5(t,e){for(var n in t){e[n]=t[n]}}function Z5(t,e){var n=t.prototype;if(Object.create){var r=Object.create(e.prototype);n.__proto__=r}if(!(n instanceof e)){var i=function t(){};i.prototype=e.prototype;i=new i;X5(n,i);t.prototype=n=i}if(n.constructor!=t){if(typeof t!="function"){console.error("unknow Class:"+t)}n.constructor=t}}var $5="http://www.w3.org/1999/xhtml";var J5={};var Q5=J5.ELEMENT_NODE=1;var tE=J5.ATTRIBUTE_NODE=2;var eE=J5.TEXT_NODE=3;var nE=J5.CDATA_SECTION_NODE=4;var rE=J5.ENTITY_REFERENCE_NODE=5;var iE=J5.ENTITY_NODE=6;var aE=J5.PROCESSING_INSTRUCTION_NODE=7;var oE=J5.COMMENT_NODE=8;var sE=J5.DOCUMENT_NODE=9;var uE=J5.DOCUMENT_TYPE_NODE=10;var lE=J5.DOCUMENT_FRAGMENT_NODE=11;var cE=J5.NOTATION_NODE=12;var fE={};var hE={};fE.INDEX_SIZE_ERR=(hE[1]="Index size error",1);fE.DOMSTRING_SIZE_ERR=(hE[2]="DOMString size error",2);var dE=fE.HIERARCHY_REQUEST_ERR=(hE[3]="Hierarchy request error",3);fE.WRONG_DOCUMENT_ERR=(hE[4]="Wrong document",4);fE.INVALID_CHARACTER_ERR=(hE[5]="Invalid character",5);fE.NO_DATA_ALLOWED_ERR=(hE[6]="No data allowed",6);fE.NO_MODIFICATION_ALLOWED_ERR=(hE[7]="No modification allowed",7);var gE=fE.NOT_FOUND_ERR=(hE[8]="Not found",8);fE.NOT_SUPPORTED_ERR=(hE[9]="Not supported",9);var vE=fE.INUSE_ATTRIBUTE_ERR=(hE[10]="Attribute in use",10);fE.INVALID_STATE_ERR=(hE[11]="Invalid state",11);fE.SYNTAX_ERR=(hE[12]="Syntax error",12);fE.INVALID_MODIFICATION_ERR=(hE[13]="Invalid modification",13);fE.NAMESPACE_ERR=(hE[14]="Invalid namespace",14);fE.INVALID_ACCESS_ERR=(hE[15]="Invalid access",15);function pE(t,e){if(e instanceof Error){var n=e}else{n=this;Error.call(this,hE[t]);this.message=hE[t];if(Error.captureStackTrace)Error.captureStackTrace(this,pE)}n.code=t;if(e)this.message=this.message+": "+e;return n}pE.prototype=Error.prototype;X5(fE,pE);function yE(){}yE.prototype={length:0,item:function t(e){return this[e]||null},toString:function t(e,n){for(var r=[],i=0;i<this.length;i++){ZE(this[i],r,e,n)}return r.join("")}};function mE(t,e){this._node=t;this._refresh=e;_E(this)}function _E(t){var e=t._node._inc||t._node.ownerDocument._inc;if(t._inc!=e){var n=t._refresh(t._node);QE(t,"length",n.length);X5(n,t);t._inc=e}}mE.prototype.item=function(t){_E(this);return this[t]};Z5(mE,yE);function bE(){}function wE(t,e){var n=t.length;while(n--){if(t[n]===e){return n}}}function xE(t,e,n,r){if(r){e[wE(e,r)]=n}else{e[e.length++]=n}if(t){n.ownerElement=t;var i=t.ownerDocument;if(i){r&&TE(i,t,r);RE(i,t,n)}}}function kE(t,e,n){var r=wE(e,n);if(r>=0){var i=e.length-1;while(r<i){e[r]=e[++r]}e.length=i;if(t){var a=t.ownerDocument;if(a){TE(a,t,n);n.ownerElement=null}}}else{throw pE(gE,new Error(t.tagName+"@"+n))}}bE.prototype={length:0,item:yE.prototype.item,getNamedItem:function t(e){var n=this.length;while(n--){var r=this[n];if(r.nodeName==e){return r}}},setNamedItem:function t(e){var n=e.ownerElement;if(n&&n!=this._ownerElement){throw new pE(vE)}var r=this.getNamedItem(e.nodeName);xE(this._ownerElement,this,e,r);return r},setNamedItemNS:function t(e){var n=e.ownerElement,r;if(n&&n!=this._ownerElement){throw new pE(vE)}r=this.getNamedItemNS(e.namespaceURI,e.localName);xE(this._ownerElement,this,e,r);return r},removeNamedItem:function t(e){var n=this.getNamedItem(e);kE(this._ownerElement,this,n);return n},removeNamedItemNS:function t(e,n){var r=this.getNamedItemNS(e,n);kE(this._ownerElement,this,r);return r},getNamedItemNS:function t(e,n){var r=this.length;while(r--){var i=this[r];if(i.localName==n&&i.namespaceURI==e){return i}}return null}};function SE(t){this._features={};if(t){for(var e in t){this._features=t[e]}}}SE.prototype={hasFeature:function t(e,n){var r=this._features[e.toLowerCase()];if(r&&(!n||n in r)){return true}else{return false}},createDocument:function t(e,n,r){var i=new ME;i.implementation=this;i.childNodes=new yE;i.doctype=r;if(r){i.appendChild(r)}if(n){var a=i.createElementNS(e,n);i.appendChild(a)}return i},createDocumentType:function t(e,n,r){var i=new HE;i.name=e;i.nodeName=e;i.publicId=n;i.systemId=r;return i}};function CE(){}CE.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function t(e,n){return BE(this,e,n)},replaceChild:function t(e,n){this.insertBefore(e,n);if(n){this.removeChild(n)}},removeChild:function t(e){return PE(this,e)},appendChild:function t(e){return this.insertBefore(e,null)},hasChildNodes:function t(){return this.firstChild!=null},cloneNode:function t(e){return JE(this.ownerDocument||this,this,e)},normalize:function t(){var e=this.firstChild;while(e){var n=e.nextSibling;if(n&&n.nodeType==eE&&e.nodeType==eE){this.removeChild(n);e.appendData(n.data)}else{e.normalize();e=n}}},isSupported:function t(e,n){return this.ownerDocument.implementation.hasFeature(e,n)},hasAttributes:function t(){return this.attributes.length>0},lookupPrefix:function t(e){var n=this;while(n){var r=n._nsMap;if(r){for(var i in r){if(r[i]==e){return i}}}n=n.nodeType==tE?n.ownerDocument:n.parentNode}return null},lookupNamespaceURI:function t(e){var n=this;while(n){var r=n._nsMap;if(r){if(e in r){return r[e]}}n=n.nodeType==tE?n.ownerDocument:n.parentNode}return null},isDefaultNamespace:function t(e){var n=this.lookupPrefix(e);return n==null}};function EE(t){return t=="<"&&"&lt;"||t==">"&&"&gt;"||t=="&"&&"&amp;"||t=='"'&&"&quot;"||"&#"+t.charCodeAt()+";"}X5(J5,CE);X5(J5,CE.prototype);function AE(t,e){if(e(t)){return true}if(t=t.firstChild){do{if(AE(t,e)){return true}}while(t=t.nextSibling)}}function ME(){}function RE(t,e,n){t&&t._inc++;var r=n.namespaceURI;if(r=="http://www.w3.org/2000/xmlns/"){e._nsMap[n.prefix?n.localName:""]=n.value}}function TE(t,e,n,r){t&&t._inc++;var i=n.namespaceURI;if(i=="http://www.w3.org/2000/xmlns/"){delete e._nsMap[n.prefix?n.localName:""]}}function OE(t,e,n){if(t&&t._inc){t._inc++;var r=e.childNodes;if(n){r[r.length++]=n}else{var i=e.firstChild;var a=0;while(i){r[a++]=i;i=i.nextSibling}r.length=a}}}function PE(t,e){var n=e.previousSibling;var r=e.nextSibling;if(n){n.nextSibling=r}else{t.firstChild=r}if(r){r.previousSibling=n}else{t.lastChild=n}OE(t.ownerDocument,t);return e}function BE(t,e,n){var r=e.parentNode;if(r){r.removeChild(e)}if(e.nodeType===lE){var i=e.firstChild;if(i==null){return e}var a=e.lastChild}else{i=a=e}var o=n?n.previousSibling:t.lastChild;i.previousSibling=o;a.nextSibling=n;if(o){o.nextSibling=i}else{t.firstChild=i}if(n==null){t.lastChild=a}else{n.previousSibling=a}do{i.parentNode=t}while(i!==a&&(i=i.nextSibling));OE(t.ownerDocument||t,t);if(e.nodeType==lE){e.firstChild=e.lastChild=null}return e}function DE(t,e){var n=e.parentNode;if(n){var r=t.lastChild;n.removeChild(e);var r=t.lastChild}var r=t.lastChild;e.parentNode=t;e.previousSibling=r;e.nextSibling=null;if(r){r.nextSibling=e}else{t.firstChild=e}t.lastChild=e;OE(t.ownerDocument,t,e);return e}ME.prototype={nodeName:"#document",nodeType:sE,doctype:null,documentElement:null,_inc:1,insertBefore:function t(e,n){if(e.nodeType==lE){var r=e.firstChild;while(r){var i=r.nextSibling;this.insertBefore(r,n);r=i}return e}if(this.documentElement==null&&e.nodeType==Q5){this.documentElement=e}return BE(this,e,n),e.ownerDocument=this,e},removeChild:function t(e){if(this.documentElement==e){this.documentElement=null}return PE(this,e)},importNode:function t(e,n){return $E(this,e,n)},getElementById:function t(e){var n=null;AE(this.documentElement,function(t){if(t.nodeType==Q5){if(t.getAttribute("id")==e){n=t;return true}}});return n},createElement:function t(e){var n=new NE;n.ownerDocument=this;n.nodeName=e;n.tagName=e;n.childNodes=new yE;var r=n.attributes=new bE;r._ownerElement=n;return n},createDocumentFragment:function t(){var e=new WE;e.ownerDocument=this;e.childNodes=new yE;return e},createTextNode:function t(e){var n=new jE;n.ownerDocument=this;n.appendData(e);return n},createComment:function t(e){var n=new IE;n.ownerDocument=this;n.appendData(e);return n},createCDATASection:function t(e){var n=new LE;n.ownerDocument=this;n.appendData(e);return n},createProcessingInstruction:function t(e,n){var r=new qE;r.ownerDocument=this;r.tagName=r.target=e;r.nodeValue=r.data=n;return r},createAttribute:function t(e){var n=new zE;n.ownerDocument=this;n.name=e;n.nodeName=e;n.localName=e;n.specified=true;return n},createEntityReference:function t(e){var n=new VE;n.ownerDocument=this;n.nodeName=e;return n},createElementNS:function t(e,n){var r=new NE;var i=n.split(":");var a=r.attributes=new bE;r.childNodes=new yE;r.ownerDocument=this;r.nodeName=n;r.tagName=n;r.namespaceURI=e;if(i.length==2){r.prefix=i[0];r.localName=i[1]}else{r.localName=n}a._ownerElement=r;return r},createAttributeNS:function t(e,n){var r=new zE;var i=n.split(":");r.ownerDocument=this;r.nodeName=n;r.name=n;r.namespaceURI=e;r.specified=true;if(i.length==2){r.prefix=i[0];r.localName=i[1]}else{r.localName=n}return r}};Z5(ME,CE);function NE(){this._nsMap={}}NE.prototype={nodeType:Q5,hasAttribute:function t(e){return this.getAttributeNode(e)!=null},getAttribute:function t(e){var n=this.getAttributeNode(e);return n&&n.value||""},getAttributeNode:function t(e){return this.attributes.getNamedItem(e)},setAttribute:function t(e,n){var r=this.ownerDocument.createAttribute(e);r.value=r.nodeValue=""+n;this.setAttributeNode(r)},removeAttribute:function t(e){var n=this.getAttributeNode(e);n&&this.removeAttributeNode(n)},appendChild:function t(e){if(e.nodeType===lE){return this.insertBefore(e,null)}else{return DE(this,e)}},setAttributeNode:function t(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function t(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function t(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function t(e,n){var r=this.getAttributeNodeNS(e,n);r&&this.removeAttributeNode(r)},hasAttributeNS:function t(e,n){return this.getAttributeNodeNS(e,n)!=null},getAttributeNS:function t(e,n){var r=this.getAttributeNodeNS(e,n);return r&&r.value||""},setAttributeNS:function t(e,n,r){var i=this.ownerDocument.createAttributeNS(e,n);i.value=i.nodeValue=""+r;this.setAttributeNode(i)},getAttributeNodeNS:function t(e,n){return this.attributes.getNamedItemNS(e,n)},getElementsByTagName:function t(r){return new mE(this,function(e){var n=[];AE(e,function(t){if(t!==e&&t.nodeType==Q5&&(r==="*"||t.tagName==r)){n.push(t)}});return n})},getElementsByTagNameNS:function t(r,i){return new mE(this,function(e){var n=[];AE(e,function(t){if(t!==e&&t.nodeType===Q5&&(r==="*"||t.namespaceURI===r)&&(i==="*"||t.localName==i)){n.push(t)}});return n})}};ME.prototype.getElementsByTagName=NE.prototype.getElementsByTagName;ME.prototype.getElementsByTagNameNS=NE.prototype.getElementsByTagNameNS;Z5(NE,CE);function zE(){}zE.prototype.nodeType=tE;Z5(zE,CE);function FE(){}FE.prototype={data:"",substringData:function t(e,n){return this.data.substring(e,e+n)},appendData:function t(e){e=this.data+e;this.nodeValue=this.data=e;this.length=e.length},insertData:function t(e,n){this.replaceData(e,0,n)},appendChild:function t(e){throw new Error(hE[dE])},deleteData:function t(e,n){this.replaceData(e,n,"")},replaceData:function t(e,n,r){var i=this.data.substring(0,e);var a=this.data.substring(e+n);r=i+r+a;this.nodeValue=this.data=r;this.length=r.length}};Z5(FE,CE);function jE(){}jE.prototype={nodeName:"#text",nodeType:eE,splitText:function t(e){var n=this.data;var r=n.substring(e);n=n.substring(0,e);this.data=this.nodeValue=n;this.length=n.length;var i=this.ownerDocument.createTextNode(r);if(this.parentNode){this.parentNode.insertBefore(i,this.nextSibling)}return i}};Z5(jE,FE);function IE(){}IE.prototype={nodeName:"#comment",nodeType:oE};Z5(IE,FE);function LE(){}LE.prototype={nodeName:"#cdata-section",nodeType:nE};Z5(LE,FE);function HE(){}HE.prototype.nodeType=uE;Z5(HE,CE);function UE(){}UE.prototype.nodeType=cE;Z5(UE,CE);function GE(){}GE.prototype.nodeType=iE;Z5(GE,CE);function VE(){}VE.prototype.nodeType=rE;Z5(VE,CE);function WE(){}WE.prototype.nodeName="#document-fragment";WE.prototype.nodeType=lE;Z5(WE,CE);function qE(){}qE.prototype.nodeType=aE;Z5(qE,CE);function KE(){}KE.prototype.serializeToString=function(t,e,n){return YE.call(t,e,n)};CE.prototype.toString=YE;function YE(t,e){var n=[];var r=this.nodeType==9?this.documentElement:this;var i=r.prefix;var a=r.namespaceURI;if(a&&i==null){var i=r.lookupPrefix(a);if(i==null){var o=[{namespace:a,prefix:null}]}}ZE(this,n,t,e,o);return n.join("")}function XE(t,e,n){var r=t.prefix||"";var i=t.namespaceURI;if(!r&&!i){return false}if(r==="xml"&&i==="http://www.w3.org/XML/1998/namespace"||i=="http://www.w3.org/2000/xmlns/"){return false}var a=n.length;while(a--){var o=n[a];if(o.prefix==r){return o.namespace!=i}}return true}function ZE(t,e,n,r,i){if(r){t=r(t);if(t){if(typeof t=="string"){e.push(t);return}}else{return}}switch(t.nodeType){case Q5:if(!i)i=[];i.length;var a=t.attributes;var o=a.length;var s=t.firstChild;var u=t.tagName;n=$5===t.namespaceURI||n;e.push("<",u);for(var l=0;l<o;l++){var c=a.item(l);if(c.prefix=="xmlns"){i.push({prefix:c.localName,namespace:c.value})}else if(c.nodeName=="xmlns"){i.push({prefix:"",namespace:c.value})}}for(var l=0;l<o;l++){var c=a.item(l);if(XE(c,n,i)){var f=c.prefix||"";var h=c.namespaceURI;var d=f?" xmlns:"+f:" xmlns";e.push(d,'="',h,'"');i.push({prefix:f,namespace:h})}ZE(c,e,n,r,i)}if(XE(t,n,i)){var f=t.prefix||"";var h=t.namespaceURI;var d=f?" xmlns:"+f:" xmlns";e.push(d,'="',h,'"');i.push({prefix:f,namespace:h})}if(s||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(u)){e.push(">");if(n&&/^script$/i.test(u)){while(s){if(s.data){e.push(s.data)}else{ZE(s,e,n,r,i)}s=s.nextSibling}}else{while(s){ZE(s,e,n,r,i);s=s.nextSibling}}e.push("</",u,">")}else{e.push("/>")}return;case sE:case lE:var s=t.firstChild;while(s){ZE(s,e,n,r,i);s=s.nextSibling}return;case tE:return e.push(" ",t.name,'="',t.value.replace(/[<&"]/g,EE),'"');case eE:return e.push(t.data.replace(/[<&]/g,EE));case nE:return e.push("<![CDATA[",t.data,"]]>");case oE:return e.push("\x3c!--",t.data,"--\x3e");case uE:var g=t.publicId;var v=t.systemId;e.push("<!DOCTYPE ",t.name);if(g){e.push(' PUBLIC "',g);if(v&&v!="."){e.push('" "',v)}e.push('">')}else if(v&&v!="."){e.push(' SYSTEM "',v,'">')}else{var p=t.internalSubset;if(p){e.push(" [",p,"]")}e.push(">")}return;case aE:return e.push("<?",t.target," ",t.data,"?>");case rE:return e.push("&",t.nodeName,";");default:e.push("??",t.nodeName)}}function $E(t,e,n){var r;switch(e.nodeType){case Q5:r=e.cloneNode(false);r.ownerDocument=t;case lE:break;case tE:n=true;break}if(!r){r=e.cloneNode(false)}r.ownerDocument=t;r.parentNode=null;if(n){var i=e.firstChild;while(i){r.appendChild($E(t,i,n));i=i.nextSibling}}return r}function JE(t,e,n){var r=new e.constructor;for(var i in e){var a=e[i];if(_typeof2(a)!="object"){if(a!=r[i]){r[i]=a}}}if(e.childNodes){r.childNodes=new yE}r.ownerDocument=t;switch(r.nodeType){case Q5:var o=e.attributes;var s=r.attributes=new bE;var u=o.length;s._ownerElement=r;for(var l=0;l<u;l++){r.setAttributeNode(JE(t,o.item(l),true))}break;case tE:n=true}if(n){var c=e.firstChild;while(c){r.appendChild(JE(t,c,n));c=c.nextSibling}}return r}function QE(t,e,n){t[e]=n}try{if(Object.defineProperty){var tA=function t(e){switch(e.nodeType){case Q5:case lE:var n=[];e=e.firstChild;while(e){if(e.nodeType!==7&&e.nodeType!==8){n.push(t(e))}e=e.nextSibling}return n.join("");default:return e.nodeValue}};Object.defineProperty(mE.prototype,"length",{get:function t(){_E(this);return this.$$length}});Object.defineProperty(CE.prototype,"textContent",{get:function t(){return tA(this)},set:function t(e){switch(this.nodeType){case Q5:case lE:while(this.firstChild){this.removeChild(this.firstChild)}if(e||String(e)){this.appendChild(this.ownerDocument.createTextNode(e))}break;default:this.data=e;this.value=e;this.nodeValue=e}}});QE=function t(e,n,r){e["$$"+n]=r}}}catch(t){}var eA=SE;var nA=KE;var rA={DOMImplementation:eA,XMLSerializer:nA};g5(function(t,e){function n(t){this.options=t||{locator:{}}}n.prototype.parseFromString=function(t,e){var n=this.options;var r=new d;var i=n.domBuilder||new c;var a=n.errorHandler;var o=n.locator;var s=n.xmlns||{};var u={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"};if(o){i.setDocumentLocator(o)}r.errorHandler=l(a,i,o);r.domBuilder=n.domBuilder||i;if(/\/x?html?$/.test(e)){u.nbsp=" ";u.copy="©";s[""]="http://www.w3.org/1999/xhtml"}s.xml=s.xml||"http://www.w3.org/XML/1998/namespace";if(t){r.parse(t,s,u)}else{r.errorHandler.error("invalid doc source")}return i.doc};function l(r,t,i){if(!r){if(t instanceof c){return t}r=t}var a={};var o=r instanceof Function;i=i||{};function e(e){var n=r[e];if(!n&&o){n=r.length==2?function(t){r(e,t)}:r}a[e]=n&&function(t){n("[xmldom "+e+"]\t"+t+s(i))}||function(){}}e("warning");e("error");e("fatalError");return a}function c(){this.cdata=false}function f(t,e){e.lineNumber=t.lineNumber;e.columnNumber=t.columnNumber}c.prototype={startDocument:function t(){this.doc=(new r).createDocument(null,null,null);if(this.locator){this.doc.documentURI=this.locator.systemId}},startElement:function t(e,n,r,i){var a=this.doc;var o=a.createElementNS(e,r||n);var s=i.length;h(this,o);this.currentElement=o;this.locator&&f(this.locator,o);for(var u=0;u<s;u++){var e=i.getURI(u);var l=i.getValue(u);var r=i.getQName(u);var c=a.createAttributeNS(e,r);this.locator&&f(i.getLocator(u),c);c.value=c.nodeValue=l;o.setAttributeNode(c)}},endElement:function t(e,n,r){var i=this.currentElement;i.tagName;this.currentElement=i.parentNode},startPrefixMapping:function t(e,n){},endPrefixMapping:function t(e){},processingInstruction:function t(e,n){var r=this.doc.createProcessingInstruction(e,n);this.locator&&f(this.locator,r);h(this,r)},ignorableWhitespace:function t(e,n,r){},characters:function t(e,n,r){e=a.apply(this,arguments);if(e){if(this.cdata){var i=this.doc.createCDATASection(e)}else{var i=this.doc.createTextNode(e)}if(this.currentElement){this.currentElement.appendChild(i)}else if(/^\s*$/.test(e)){this.doc.appendChild(i)}this.locator&&f(this.locator,i)}},skippedEntity:function t(e){},endDocument:function t(){this.doc.normalize()},setDocumentLocator:function t(e){if(this.locator=e){e.lineNumber=0}},comment:function t(e,n,r){e=a.apply(this,arguments);var i=this.doc.createComment(e);this.locator&&f(this.locator,i);h(this,i)},startCDATA:function t(){this.cdata=true},endCDATA:function t(){this.cdata=false},startDTD:function t(e,n,r){var i=this.doc.implementation;if(i&&i.createDocumentType){var a=i.createDocumentType(e,n,r);this.locator&&f(this.locator,a);h(this,a)}},warning:function t(e){console.warn("[xmldom warning]\t"+e,s(this.locator))},error:function t(e){console.error("[xmldom error]\t"+e,s(this.locator))},fatalError:function t(e){console.error("[xmldom fatalError]\t"+e,s(this.locator));throw e}};function s(t){if(t){return"\n@"+(t.systemId||"")+"#[line:"+t.lineNumber+",col:"+t.columnNumber+"]"}}function a(t,e,n){if(typeof t=="string"){return t.substr(e,n)}else{if(t.length>=e+n||e){return new java.lang.String(t,e,n)+""}return t}}"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(t){c.prototype[t]=function(){return null}});function h(t,e){if(!t.currentElement){t.doc.appendChild(e)}else{t.currentElement.appendChild(e)}}var d=Y5.XMLReader;var r=e.DOMImplementation=rA.DOMImplementation;e.XMLSerializer=rA.XMLSerializer;e.DOMParser=n});function iA(t,e,n){if(t==null&&e==null&&n==null){var r=document.querySelectorAll("svg");for(var i=0;i<r.length;i++){var a=r[i];var o=document.createElement("canvas");o.width=a.clientWidth;o.height=a.clientHeight;a.parentNode.insertBefore(o,a);a.parentNode.removeChild(a);var s=document.createElement("div");s.appendChild(a);iA(o,s.innerHTML)}return}if(typeof t=="string"){t=document.getElementById(t)}if(t.svg!=null)t.svg.stop();var u=sA(n||{});if(!(t.childNodes.length==1&&t.childNodes[0].nodeName=="OBJECT"))t.svg=u;var l=t.getContext("2d");if(typeof e.documentElement!="undefined"){u.loadXmlDoc(l,e)}else if(e.substr(0,1)=="<"){u.loadXml(l,e)}else{u.load(l,e)}}function aA(){var t;if(typeof Element.prototype.matches!="undefined"){t=function t(e,n){return e.matches(n)}}else if(typeof Element.prototype.webkitMatchesSelector!="undefined"){t=function t(e,n){return e.webkitMatchesSelector(n)}}else if(typeof Element.prototype.mozMatchesSelector!="undefined"){t=function t(e,n){return e.mozMatchesSelector(n)}}else if(typeof Element.prototype.msMatchesSelector!="undefined"){t=function t(e,n){return e.msMatchesSelector(n)}}else if(typeof Element.prototype.oMatchesSelector!="undefined"){t=function t(e,n){return e.oMatchesSelector(n)}}else{if(typeof jQuery=="function"||typeof Zepto=="function"){t=function t(e,n){return $(e).is(n)}}if(typeof t=="undefined"){t=Sizzle.matchesSelector}}return t}function oA(i){var a=[0,0,0];var t=/(\[[^\]]+\])/g;var e=/(#[^\s\+>~\.\[:]+)/g;var n=/(\.[^\s\+>~\.\[:]+)/g;var r=/(::[^\s\+>~\.\[:]+|:first-line|:first-letter|:before|:after)/gi;var o=/(:[\w-]+\([^\)]*\))/gi;var s=/(:[^\s\+>~\.\[:]+)/g;var u=/([^\s\+>~\.\[:]+)/g;var l=function t(e,n){var r=i.match(e);if(r==null){return}a[n]+=r.length;i=i.replace(e," ")};i=i.replace(/:not\(([^\)]*)\)/g," $1 ");i=i.replace(/{[^]*/gm," ");l(t,1);l(e,0);l(n,1);l(r,2);l(o,1);l(s,1);i=i.replace(/[\*\s\+>~]/g," ");i=i.replace(/[#\.]/g," ");l(u,2);return a.join("")}function sA(t){var P={opts:t};var l=aA();if(typeof CanvasRenderingContext2D!="undefined"){CanvasRenderingContext2D.prototype.drawSvg=function(t,e,n,r,i,a){var o={ignoreMouse:true,ignoreAnimation:true,ignoreDimensions:true,ignoreClear:true,offsetX:e,offsetY:n,scaleWidth:r,scaleHeight:i};for(var s in a){if(a.hasOwnProperty(s)){o[s]=a[s]}}iA(this.canvas,t,o)}}P.FRAMERATE=30;P.MAX_VIRTUAL_PIXELS=3e4;P.log=function(t){};if(P.opts.log==true&&typeof console!="undefined"){P.log=function(t){console.log(t)}}P.init=function(t){var e=0;P.UniqueId=function(){e++;return"canvg"+e};P.Definitions={};P.Styles={};P.StylesSpecificity={};P.Animations=[];P.Images=[];P.ctx=t;P.ViewPort=new function(){this.viewPorts=[];this.Clear=function(){this.viewPorts=[]};this.SetCurrent=function(t,e){this.viewPorts.push({width:t,height:e})};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(t){if(t!=null&&typeof t=="number")return t;if(t=="x")return this.width();if(t=="y")return this.height();return Math.sqrt(Math.pow(this.width(),2)+Math.pow(this.height(),2))/Math.sqrt(2)}}};P.init();P.ImagesLoaded=function(){for(var t=0;t<P.Images.length;t++){if(!P.Images[t].loaded)return false}return true};P.trim=function(t){return t.replace(/^\s+|\s+$/g,"")};P.compressSpaces=function(t){return t.replace(/[\s\r\t\n]+/gm," ")};P.ajax=function(t){var e;if(window.XMLHttpRequest){e=new XMLHttpRequest}else{e=new ActiveXObject("Microsoft.XMLHTTP")}if(e){e.open("GET",t,false);e.send(null);return e.responseText}return null};P.parseXml=function(t){if(typeof Windows!="undefined"&&typeof Windows.Data!="undefined"&&typeof Windows.Data.Xml!="undefined"){var e=new Windows.Data.Xml.Dom.XmlDocument;var n=new Windows.Data.Xml.Dom.XmlLoadSettings;n.prohibitDtd=false;e.loadXml(t,n);return e}else if(window.DOMParser){var r=new DOMParser;return r.parseFromString(t,"text/xml")}else{t=t.replace(/<!DOCTYPE svg[^>]*>/,"");var e=new ActiveXObject("Microsoft.XMLDOM");e.async="false";e.loadXML(t);return e}};P.Property=function(t,e){this.name=t;this.value=e};P.Property.prototype.getValue=function(){return this.value};P.Property.prototype.hasValue=function(){return this.value!=null&&this.value!=""};P.Property.prototype.numValue=function(){if(!this.hasValue())return 0;var t=parseFloat(this.value);if((this.value+"").match(/%$/)){t=t/100}return t};P.Property.prototype.valueOrDefault=function(t){if(this.hasValue())return this.value;return t};P.Property.prototype.numValueOrDefault=function(t){if(this.hasValue())return this.numValue();return t};P.Property.prototype.addOpacity=function(t){var e=this.value;if(t.value!=null&&t.value!=""&&typeof this.value=="string"){var n=new y5(this.value);if(n.ok){e="rgba("+n.r+", "+n.g+", "+n.b+", "+t.numValue()+")"}}return new P.Property(this.name,e)};P.Property.prototype.getDefinition=function(){var t=this.value.match(/#([^\)'"]+)/);if(t){t=t[1]}if(!t){t=this.value}return P.Definitions[t]};P.Property.prototype.isUrlDefinition=function(){return this.value.indexOf("url(")==0};P.Property.prototype.getFillStyleDefinition=function(t,e){var n=this.getDefinition();if(n!=null&&n.createGradient){return n.createGradient(P.ctx,t,e)}if(n!=null&&n.createPattern){if(n.getHrefAttribute().hasValue()){var r=n.attribute("patternTransform");n=n.getHrefAttribute().getDefinition();if(r.hasValue()){n.attribute("patternTransform",true).value=r.value}}return n.createPattern(P.ctx,t)}return null};P.Property.prototype.getDPI=function(t){return 96};P.Property.prototype.getEM=function(t){var e=12;var n=new P.Property("fontSize",P.Font.Parse(P.ctx.font).fontSize);if(n.hasValue())e=n.toPixels(t);return e};P.Property.prototype.getUnits=function(){var t=this.value+"";return t.replace(/[0-9\.\-]/g,"")};P.Property.prototype.toPixels=function(t,e){if(!this.hasValue())return 0;var n=this.value+"";if(n.match(/em$/))return this.numValue()*this.getEM(t);if(n.match(/ex$/))return this.numValue()*this.getEM(t)/2;if(n.match(/px$/))return this.numValue();if(n.match(/pt$/))return this.numValue()*this.getDPI(t)*(1/72);if(n.match(/pc$/))return this.numValue()*15;if(n.match(/cm$/))return this.numValue()*this.getDPI(t)/2.54;if(n.match(/mm$/))return this.numValue()*this.getDPI(t)/25.4;if(n.match(/in$/))return this.numValue()*this.getDPI(t);if(n.match(/%$/))return this.numValue()*P.ViewPort.ComputeSize(t);var r=this.numValue();if(e&&r<1)return r*P.ViewPort.ComputeSize(t);return r};P.Property.prototype.toMilliseconds=function(){if(!this.hasValue())return 0;var t=this.value+"";if(t.match(/s$/))return this.numValue()*1e3;if(t.match(/ms$/))return this.numValue();return this.numValue()};P.Property.prototype.toRadians=function(){if(!this.hasValue())return 0;var t=this.value+"";if(t.match(/deg$/))return this.numValue()*(Math.PI/180);if(t.match(/grad$/))return this.numValue()*(Math.PI/200);if(t.match(/rad$/))return this.numValue();return this.numValue()*(Math.PI/180)};var e={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"};P.Property.prototype.toTextBaseline=function(){if(!this.hasValue())return null;return e[this.value]};P.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(t,e,n,r,i,a){var o=a!=null?this.Parse(a):this.CreateFont("","","","","",P.ctx.font);return{fontFamily:i||o.fontFamily,fontSize:r||o.fontSize,fontStyle:t||o.fontStyle,fontWeight:n||o.fontWeight,fontVariant:e||o.fontVariant,toString:function t(){return[this.fontStyle,this.fontVariant,this.fontWeight,this.fontSize,this.fontFamily].join(" ")}}};var o=this;this.Parse=function(t){var e={};var n=P.trim(P.compressSpaces(t||"")).split(" ");var r={fontSize:false,fontStyle:false,fontWeight:false,fontVariant:false};var i="";for(var a=0;a<n.length;a++){if(!r.fontStyle&&o.Styles.indexOf(n[a])!=-1){if(n[a]!="inherit")e.fontStyle=n[a];r.fontStyle=true}else if(!r.fontVariant&&o.Variants.indexOf(n[a])!=-1){if(n[a]!="inherit")e.fontVariant=n[a];r.fontStyle=r.fontVariant=true}else if(!r.fontWeight&&o.Weights.indexOf(n[a])!=-1){if(n[a]!="inherit")e.fontWeight=n[a];r.fontStyle=r.fontVariant=r.fontWeight=true}else if(!r.fontSize){if(n[a]!="inherit")e.fontSize=n[a].split("/")[0];r.fontStyle=r.fontVariant=r.fontWeight=r.fontSize=true}else{if(n[a]!="inherit")i+=n[a]}}if(i!="")e.fontFamily=i;return e}};P.ToNumberArray=function(t){var e=P.trim(P.compressSpaces((t||"").replace(/,/g," "))).split(" ");for(var n=0;n<e.length;n++){e[n]=parseFloat(e[n])}return e};P.Point=function(t,e){this.x=t;this.y=e};P.Point.prototype.angleTo=function(t){return Math.atan2(t.y-this.y,t.x-this.x)};P.Point.prototype.applyTransform=function(t){var e=this.x*t[0]+this.y*t[2]+t[4];var n=this.x*t[1]+this.y*t[3]+t[5];this.x=e;this.y=n};P.CreatePoint=function(t){var e=P.ToNumberArray(t);return new P.Point(e[0],e[1])};P.CreatePath=function(t){var e=P.ToNumberArray(t);var n=[];for(var r=0;r<e.length;r+=2){n.push(new P.Point(e[r],e[r+1]))}return n};P.BoundingBox=function(t,e,n,r){this.x1=Number.NaN;this.y1=Number.NaN;this.x2=Number.NaN;this.y2=Number.NaN;this.x=function(){return this.x1};this.y=function(){return this.y1};this.width=function(){return this.x2-this.x1};this.height=function(){return this.y2-this.y1};this.addPoint=function(t,e){if(t!=null){if(isNaN(this.x1)||isNaN(this.x2)){this.x1=t;this.x2=t}if(t<this.x1)this.x1=t;if(t>this.x2)this.x2=t}if(e!=null){if(isNaN(this.y1)||isNaN(this.y2)){this.y1=e;this.y2=e}if(e<this.y1)this.y1=e;if(e>this.y2)this.y2=e}};this.addX=function(t){this.addPoint(t,null)};this.addY=function(t){this.addPoint(null,t)};this.addBoundingBox=function(t){this.addPoint(t.x1,t.y1);this.addPoint(t.x2,t.y2)};this.addQuadraticCurve=function(t,e,n,r,i,a){var o=t+2/3*(n-t);var s=e+2/3*(r-e);var u=o+1/3*(i-t);var l=s+1/3*(a-e);this.addBezierCurve(t,e,o,u,s,l,i,a)};this.addBezierCurve=function(t,e,n,r,i,a,o,s){var u=[t,e],l=[n,r],c=[i,a],f=[o,s];this.addPoint(u[0],u[1]);this.addPoint(f[0],f[1]);for(var h=0;h<=1;h++){var d=function t(e){return Math.pow(1-e,3)*u[h]+3*Math.pow(1-e,2)*e*l[h]+3*(1-e)*Math.pow(e,2)*c[h]+Math.pow(e,3)*f[h]};var g=6*u[h]-12*l[h]+6*c[h];var v=-3*u[h]+9*l[h]-9*c[h]+3*f[h];var p=3*l[h]-3*u[h];if(v==0){if(g==0)continue;var y=-p/g;if(0<y&&y<1){if(h==0)this.addX(d(y));if(h==1)this.addY(d(y))}continue}var m=Math.pow(g,2)-4*p*v;if(m<0)continue;var _=(-g+Math.sqrt(m))/(2*v);if(0<_&&_<1){if(h==0)this.addX(d(_));if(h==1)this.addY(d(_))}var b=(-g-Math.sqrt(m))/(2*v);if(0<b&&b<1){if(h==0)this.addX(d(b));if(h==1)this.addY(d(b))}}};this.isPointInBox=function(t,e){return this.x1<=t&&t<=this.x2&&this.y1<=e&&e<=this.y2};this.addPoint(t,e);this.addPoint(n,r)};P.Transform=function(t){var e=this;this.Type={};this.Type.translate=function(t){this.p=P.CreatePoint(t);this.apply=function(t){t.translate(this.p.x||0,this.p.y||0)};this.unapply=function(t){t.translate(-1*this.p.x||0,-1*this.p.y||0)};this.applyToPoint=function(t){t.applyTransform([1,0,0,1,this.p.x||0,this.p.y||0])}};this.Type.rotate=function(t){var e=P.ToNumberArray(t);this.angle=new P.Property("angle",e[0]);this.cx=e[1]||0;this.cy=e[2]||0;this.apply=function(t){t.translate(this.cx,this.cy);t.rotate(this.angle.toRadians());t.translate(-this.cx,-this.cy)};this.unapply=function(t){t.translate(this.cx,this.cy);t.rotate(-1*this.angle.toRadians());t.translate(-this.cx,-this.cy)};this.applyToPoint=function(t){var e=this.angle.toRadians();t.applyTransform([1,0,0,1,this.p.x||0,this.p.y||0]);t.applyTransform([Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e),0,0]);t.applyTransform([1,0,0,1,-this.p.x||0,-this.p.y||0])}};this.Type.scale=function(t){this.p=P.CreatePoint(t);this.apply=function(t){t.scale(this.p.x||1,this.p.y||this.p.x||1)};this.unapply=function(t){t.scale(1/this.p.x||1,1/this.p.y||this.p.x||1)};this.applyToPoint=function(t){t.applyTransform([this.p.x||0,0,0,this.p.y||0,0,0])}};this.Type.matrix=function(t){this.m=P.ToNumberArray(t);this.apply=function(t){t.transform(this.m[0],this.m[1],this.m[2],this.m[3],this.m[4],this.m[5])};this.unapply=function(t){var e=this.m[0];var n=this.m[2];var r=this.m[4];var i=this.m[1];var a=this.m[3];var o=this.m[5];var s=0;var u=0;var l=1;var c=1/(e*(a*l-o*u)-n*(i*l-o*s)+r*(i*u-a*s));t.transform(c*(a*l-o*u),c*(o*s-i*l),c*(r*u-n*l),c*(e*l-r*s),c*(n*o-r*a),c*(r*i-e*o))};this.applyToPoint=function(t){t.applyTransform(this.m)}};this.Type.SkewBase=function(t){this.base=e.Type.matrix;this.base(t);this.angle=new P.Property("angle",t)};this.Type.SkewBase.prototype=new this.Type.matrix;this.Type.skewX=function(t){this.base=e.Type.SkewBase;this.base(t);this.m=[1,0,Math.tan(this.angle.toRadians()),1,0,0]};this.Type.skewX.prototype=new this.Type.SkewBase;this.Type.skewY=function(t){this.base=e.Type.SkewBase;this.base(t);this.m=[1,Math.tan(this.angle.toRadians()),0,1,0,0]};this.Type.skewY.prototype=new this.Type.SkewBase;this.transforms=[];this.apply=function(t){for(var e=0;e<this.transforms.length;e++){this.transforms[e].apply(t)}};this.unapply=function(t){for(var e=this.transforms.length-1;e>=0;e--){this.transforms[e].unapply(t)}};this.applyToPoint=function(t){for(var e=0;e<this.transforms.length;e++){this.transforms[e].applyToPoint(t)}};var n=P.trim(P.compressSpaces(t)).replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/);for(var r=0;r<n.length;r++){var i=P.trim(n[r].split("(")[0]);var a=n[r].split("(")[1].replace(")","");var o=this.Type[i];if(typeof o!="undefined"){var s=new o(a);s.type=i;this.transforms.push(s)}}};P.AspectRatio=function(t,e,n,r,i,a,o,s,u,l){e=P.compressSpaces(e);e=e.replace(/^defer\s/,"");var c=e.split(" ")[0]||"xMidYMid";var f=e.split(" ")[1]||"meet";var h=n/r;var d=i/a;var g=Math.min(h,d);var v=Math.max(h,d);if(f=="meet"){r*=g;a*=g}if(f=="slice"){r*=v;a*=v}u=new P.Property("refX",u);l=new P.Property("refY",l);if(u.hasValue()&&l.hasValue()){t.translate(-g*u.toPixels("x"),-g*l.toPixels("y"))}else{if(c.match(/^xMid/)&&(f=="meet"&&g==d||f=="slice"&&v==d))t.translate(n/2-r/2,0);if(c.match(/YMid$/)&&(f=="meet"&&g==h||f=="slice"&&v==h))t.translate(0,i/2-a/2);if(c.match(/^xMax/)&&(f=="meet"&&g==d||f=="slice"&&v==d))t.translate(n-r,0);if(c.match(/YMax$/)&&(f=="meet"&&g==h||f=="slice"&&v==h))t.translate(0,i-a)}if(c=="none")t.scale(h,d);else if(f=="meet")t.scale(g,g);else if(f=="slice")t.scale(v,v);t.translate(o==null?0:-o,s==null?0:-s)};P.Element={};P.EmptyProperty=new P.Property("EMPTY","");P.Element.ElementBase=function(a){this.attributes={};this.styles={};this.stylesSpecificity={};this.children=[];this.attribute=function(t,e){var n=this.attributes[t];if(n!=null)return n;if(e==true){n=new P.Property(t,"");this.attributes[t]=n}return n||P.EmptyProperty};this.getHrefAttribute=function(){for(var t in this.attributes){if(t=="href"||t.match(/:href$/)){return this.attributes[t]}}return P.EmptyProperty};this.style=function(t,e,n){var r=this.styles[t];if(r!=null)return r;var i=this.attribute(t);if(i!=null&&i.hasValue()){this.styles[t]=i;return i}if(n!=true){var a=this.parent;if(a!=null){var o=a.style(t);if(o!=null&&o.hasValue()){return o}}}if(e==true){r=new P.Property(t,"");this.styles[t]=r}return r||P.EmptyProperty};this.render=function(t){if(this.style("display").value=="none")return;if(this.style("visibility").value=="hidden")return;t.save();if(this.style("mask").hasValue()){var e=this.style("mask").getDefinition();if(e!=null)e.apply(t,this)}else if(this.style("filter").hasValue()){var n=this.style("filter").getDefinition();if(n!=null)n.apply(t,this)}else{this.setContext(t);this.renderChildren(t);this.clearContext(t)}t.restore()};this.setContext=function(t){};this.clearContext=function(t){};this.renderChildren=function(t){for(var e=0;e<this.children.length;e++){this.children[e].render(t)}};this.addChild=function(t,e){var n=t;if(e)n=P.CreateElement(t);n.parent=this;if(n.type!="title"){this.children.push(n)}};this.addStylesFromStyleDefinition=function(){for(var t in P.Styles){if(t[0]!="@"&&l(a,t)){var e=P.Styles[t];var n=P.StylesSpecificity[t];if(e!=null){for(var r in e){var i=this.stylesSpecificity[r];if(typeof i=="undefined"){i="000"}if(n>i){this.styles[r]=e[r];this.stylesSpecificity[r]=n}}}}}};if(a!=null&&a.nodeType==1){for(var t=0;t<a.attributes.length;t++){var e=a.attributes[t];this.attributes[e.nodeName]=new P.Property(e.nodeName,e.value)}this.addStylesFromStyleDefinition();if(this.attribute("style").hasValue()){var n=this.attribute("style").value.split(";");for(var t=0;t<n.length;t++){if(P.trim(n[t])!=""){var r=n[t].split(":");var i=P.trim(r[0]);var o=P.trim(r[1]);this.styles[i]=new P.Property(i,o)}}}if(this.attribute("id").hasValue()){if(P.Definitions[this.attribute("id").value]==null){P.Definitions[this.attribute("id").value]=this}}for(var t=0;t<a.childNodes.length;t++){var s=a.childNodes[t];if(s.nodeType==1)this.addChild(s,true);if(this.captureTextNodes&&(s.nodeType==3||s.nodeType==4)){var u=s.value||s.text||s.textContent||"";if(P.compressSpaces(u)!=""){this.addChild(new P.Element.tspan(s),false)}}}}};P.Element.RenderedElementBase=function(t){this.base=P.Element.ElementBase;this.base(t);this.setContext=function(t){if(this.style("fill").isUrlDefinition()){var e=this.style("fill").getFillStyleDefinition(this,this.style("fill-opacity"));if(e!=null)t.fillStyle=e}else if(this.style("fill").hasValue()){var n=this.style("fill");if(n.value=="currentColor")n.value=this.style("color").value;if(n.value!="inherit")t.fillStyle=n.value=="none"?"rgba(0,0,0,0)":n.value}if(this.style("fill-opacity").hasValue()){var n=new P.Property("fill",t.fillStyle);n=n.addOpacity(this.style("fill-opacity"));t.fillStyle=n.value}if(this.style("stroke").isUrlDefinition()){var e=this.style("stroke").getFillStyleDefinition(this,this.style("stroke-opacity"));if(e!=null)t.strokeStyle=e}else if(this.style("stroke").hasValue()){var r=this.style("stroke");if(r.value=="currentColor")r.value=this.style("color").value;if(r.value!="inherit")t.strokeStyle=r.value=="none"?"rgba(0,0,0,0)":r.value}if(this.style("stroke-opacity").hasValue()){var r=new P.Property("stroke",t.strokeStyle);r=r.addOpacity(this.style("stroke-opacity"));t.strokeStyle=r.value}if(this.style("stroke-width").hasValue()){var i=this.style("stroke-width").toPixels();t.lineWidth=i==0?.001:i}if(this.style("stroke-linecap").hasValue())t.lineCap=this.style("stroke-linecap").value;if(this.style("stroke-linejoin").hasValue())t.lineJoin=this.style("stroke-linejoin").value;if(this.style("stroke-miterlimit").hasValue())t.miterLimit=this.style("stroke-miterlimit").value;if(this.style("stroke-dasharray").hasValue()&&this.style("stroke-dasharray").value!="none"){var a=P.ToNumberArray(this.style("stroke-dasharray").value);if(typeof t.setLineDash!="undefined"){t.setLineDash(a)}else if(typeof t.webkitLineDash!="undefined"){t.webkitLineDash=a}else if(typeof t.mozDash!="undefined"&&!(a.length==1&&a[0]==0)){t.mozDash=a}var o=this.style("stroke-dashoffset").numValueOrDefault(1);if(typeof t.lineDashOffset!="undefined"){t.lineDashOffset=o}else if(typeof t.webkitLineDashOffset!="undefined"){t.webkitLineDashOffset=o}else if(typeof t.mozDashOffset!="undefined"){t.mozDashOffset=o}}if(typeof t.font!="undefined"){t.font=P.Font.CreateFont(this.style("font-style").value,this.style("font-variant").value,this.style("font-weight").value,this.style("font-size").hasValue()?this.style("font-size").toPixels()+"px":"",this.style("font-family").value).toString()}if(this.style("transform",false,true).hasValue()){var s=new P.Transform(this.style("transform",false,true).value);s.apply(t)}if(this.style("clip-path",false,true).hasValue()){var u=this.style("clip-path",false,true).getDefinition();if(u!=null)u.apply(t)}if(this.style("opacity").hasValue()){t.globalAlpha=this.style("opacity").numValue()}}};P.Element.RenderedElementBase.prototype=new P.Element.ElementBase;P.Element.PathElementBase=function(t){this.base=P.Element.RenderedElementBase;this.base(t);this.path=function(t){if(t!=null)t.beginPath();return new P.BoundingBox};this.renderChildren=function(t){this.path(t);P.Mouse.checkPath(this,t);if(t.fillStyle!=""){if(this.style("fill-rule").valueOrDefault("inherit")!="inherit"){t.fill(this.style("fill-rule").value)}else{t.fill()}}if(t.strokeStyle!="")t.stroke();var e=this.getMarkers();if(e!=null){if(this.style("marker-start").isUrlDefinition()){var n=this.style("marker-start").getDefinition();n.render(t,e[0][0],e[0][1])}if(this.style("marker-mid").isUrlDefinition()){var n=this.style("marker-mid").getDefinition();for(var r=1;r<e.length-1;r++){n.render(t,e[r][0],e[r][1])}}if(this.style("marker-end").isUrlDefinition()){var n=this.style("marker-end").getDefinition();n.render(t,e[e.length-1][0],e[e.length-1][1])}}};this.getBoundingBox=function(){return this.path()};this.getMarkers=function(){return null}};P.Element.PathElementBase.prototype=new P.Element.RenderedElementBase;P.Element.svg=function(t){this.base=P.Element.RenderedElementBase;this.base(t);this.baseClearContext=this.clearContext;this.clearContext=function(t){this.baseClearContext(t);P.ViewPort.RemoveCurrent()};this.baseSetContext=this.setContext;this.setContext=function(t){t.strokeStyle="rgba(0,0,0,0)";t.lineCap="butt";t.lineJoin="miter";t.miterLimit=4;if(typeof t.font!="undefined"&&typeof window.getComputedStyle!="undefined"){t.font=window.getComputedStyle(t.canvas).getPropertyValue("font")}this.baseSetContext(t);if(!this.attribute("x").hasValue())this.attribute("x",true).value=0;if(!this.attribute("y").hasValue())this.attribute("y",true).value=0;t.translate(this.attribute("x").toPixels("x"),this.attribute("y").toPixels("y"));var e=P.ViewPort.width();var n=P.ViewPort.height();if(!this.attribute("width").hasValue())this.attribute("width",true).value="100%";if(!this.attribute("height").hasValue())this.attribute("height",true).value="100%";if(typeof this.root=="undefined"){e=this.attribute("width").toPixels("x");n=this.attribute("height").toPixels("y");var r=0;var i=0;if(this.attribute("refX").hasValue()&&this.attribute("refY").hasValue()){r=-this.attribute("refX").toPixels("x");i=-this.attribute("refY").toPixels("y")}if(this.attribute("overflow").valueOrDefault("hidden")!="visible"){t.beginPath();t.moveTo(r,i);t.lineTo(e,i);t.lineTo(e,n);t.lineTo(r,n);t.closePath();t.clip()}}P.ViewPort.SetCurrent(e,n);if(this.attribute("viewBox").hasValue()){var a=P.ToNumberArray(this.attribute("viewBox").value);var o=a[0];var s=a[1];e=a[2];n=a[3];P.AspectRatio(t,this.attribute("preserveAspectRatio").value,P.ViewPort.width(),e,P.ViewPort.height(),n,o,s,this.attribute("refX").value,this.attribute("refY").value);P.ViewPort.RemoveCurrent();P.ViewPort.SetCurrent(a[2],a[3])}}};P.Element.svg.prototype=new P.Element.RenderedElementBase;P.Element.rect=function(t){this.base=P.Element.PathElementBase;this.base(t);this.path=function(t){var e=this.attribute("x").toPixels("x");var n=this.attribute("y").toPixels("y");var r=this.attribute("width").toPixels("x");var i=this.attribute("height").toPixels("y");var a=this.attribute("rx").toPixels("x");var o=this.attribute("ry").toPixels("y");if(this.attribute("rx").hasValue()&&!this.attribute("ry").hasValue())o=a;if(this.attribute("ry").hasValue()&&!this.attribute("rx").hasValue())a=o;a=Math.min(a,r/2);o=Math.min(o,i/2);if(t!=null){t.beginPath();t.moveTo(e+a,n);t.lineTo(e+r-a,n);t.quadraticCurveTo(e+r,n,e+r,n+o);t.lineTo(e+r,n+i-o);t.quadraticCurveTo(e+r,n+i,e+r-a,n+i);t.lineTo(e+a,n+i);t.quadraticCurveTo(e,n+i,e,n+i-o);t.lineTo(e,n+o);t.quadraticCurveTo(e,n,e+a,n);t.closePath()}return new P.BoundingBox(e,n,e+r,n+i)}};P.Element.rect.prototype=new P.Element.PathElementBase;P.Element.circle=function(t){this.base=P.Element.PathElementBase;this.base(t);this.path=function(t){var e=this.attribute("cx").toPixels("x");var n=this.attribute("cy").toPixels("y");var r=this.attribute("r").toPixels();if(t!=null){t.beginPath();t.arc(e,n,r,0,Math.PI*2,true);t.closePath()}return new P.BoundingBox(e-r,n-r,e+r,n+r)}};P.Element.circle.prototype=new P.Element.PathElementBase;P.Element.ellipse=function(t){this.base=P.Element.PathElementBase;this.base(t);this.path=function(t){var e=4*((Math.sqrt(2)-1)/3);var n=this.attribute("rx").toPixels("x");var r=this.attribute("ry").toPixels("y");var i=this.attribute("cx").toPixels("x");var a=this.attribute("cy").toPixels("y");if(t!=null){t.beginPath();t.moveTo(i,a-r);t.bezierCurveTo(i+e*n,a-r,i+n,a-e*r,i+n,a);t.bezierCurveTo(i+n,a+e*r,i+e*n,a+r,i,a+r);t.bezierCurveTo(i-e*n,a+r,i-n,a+e*r,i-n,a);t.bezierCurveTo(i-n,a-e*r,i-e*n,a-r,i,a-r);t.closePath()}return new P.BoundingBox(i-n,a-r,i+n,a+r)}};P.Element.ellipse.prototype=new P.Element.PathElementBase;P.Element.line=function(t){this.base=P.Element.PathElementBase;this.base(t);this.getPoints=function(){return[new P.Point(this.attribute("x1").toPixels("x"),this.attribute("y1").toPixels("y")),new P.Point(this.attribute("x2").toPixels("x"),this.attribute("y2").toPixels("y"))]};this.path=function(t){var e=this.getPoints();if(t!=null){t.beginPath();t.moveTo(e[0].x,e[0].y);t.lineTo(e[1].x,e[1].y)}return new P.BoundingBox(e[0].x,e[0].y,e[1].x,e[1].y)};this.getMarkers=function(){var t=this.getPoints();var e=t[0].angleTo(t[1]);return[[t[0],e],[t[1],e]]}};P.Element.line.prototype=new P.Element.PathElementBase;P.Element.polyline=function(t){this.base=P.Element.PathElementBase;this.base(t);this.points=P.CreatePath(this.attribute("points").value);this.path=function(t){var e=new P.BoundingBox(this.points[0].x,this.points[0].y);if(t!=null){t.beginPath();t.moveTo(this.points[0].x,this.points[0].y)}for(var n=1;n<this.points.length;n++){e.addPoint(this.points[n].x,this.points[n].y);if(t!=null)t.lineTo(this.points[n].x,this.points[n].y)}return e};this.getMarkers=function(){var t=[];for(var e=0;e<this.points.length-1;e++){t.push([this.points[e],this.points[e].angleTo(this.points[e+1])])}if(t.length>0){t.push([this.points[this.points.length-1],t[t.length-1][1]])}return t}};P.Element.polyline.prototype=new P.Element.PathElementBase;P.Element.polygon=function(t){this.base=P.Element.polyline;this.base(t);this.basePath=this.path;this.path=function(t){var e=this.basePath(t);if(t!=null){t.lineTo(this.points[0].x,this.points[0].y);t.closePath()}return e}};P.Element.polygon.prototype=new P.Element.polyline;P.Element.path=function(t){this.base=P.Element.PathElementBase;this.base(t);var e=this.attribute("d").value;e=e.replace(/,/gm," ");for(var n=0;n<2;n++){e=e.replace(/([MmZzLlHhVvCcSsQqTtAa])([^\s])/gm,"$1 $2")}e=e.replace(/([^\s])([MmZzLlHhVvCcSsQqTtAa])/gm,"$1 $2");e=e.replace(/([0-9])([+\-])/gm,"$1 $2");for(var n=0;n<2;n++){e=e.replace(/(\.[0-9]*)(\.)/gm,"$1 $2")}e=e.replace(/([Aa](\s+[0-9]+){3})\s+([01])\s*([01])/gm,"$1 $3 $4 ");e=P.compressSpaces(e);e=P.trim(e);this.PathParser=new function(t){this.tokens=t.split(" ");this.reset=function(){this.i=-1;this.command="";this.previousCommand="";this.start=new P.Point(0,0);this.control=new P.Point(0,0);this.current=new P.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 t=new P.Point(this.getScalar(),this.getScalar());return this.makeAbsolute(t)};this.getAsControlPoint=function(){var t=this.getPoint();this.control=t;return t};this.getAsCurrentPoint=function(){var t=this.getPoint();this.current=t;return t};this.getReflectedControlPoint=function(){if(this.previousCommand.toLowerCase()!="c"&&this.previousCommand.toLowerCase()!="s"&&this.previousCommand.toLowerCase()!="q"&&this.previousCommand.toLowerCase()!="t"){return this.current}var t=new P.Point(2*this.current.x-this.control.x,2*this.current.y-this.control.y);return t};this.makeAbsolute=function(t){if(this.isRelativeCommand()){t.x+=this.current.x;t.y+=this.current.y}return t};this.addMarker=function(t,e,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(t,e==null?null:e.angleTo(t))};this.addMarkerAngle=function(t,e){this.points.push(t);this.angles.push(e)};this.getMarkerPoints=function(){return this.points};this.getMarkerAngles=function(){for(var t=0;t<this.angles.length;t++){if(this.angles[t]==null){for(var e=t+1;e<this.angles.length;e++){if(this.angles[e]!=null){this.angles[t]=this.angles[e];break}}}}return this.angles}}(e);this.path=function(t){var e=this.PathParser;e.reset();var n=new P.BoundingBox;if(t!=null)t.beginPath();while(!e.isEnd()){e.nextCommand();switch(e.command){case"M":case"m":var r=e.getAsCurrentPoint();e.addMarker(r);n.addPoint(r.x,r.y);if(t!=null)t.moveTo(r.x,r.y);e.start=e.current;while(!e.isCommandOrEnd()){var r=e.getAsCurrentPoint();e.addMarker(r,e.start);n.addPoint(r.x,r.y);if(t!=null)t.lineTo(r.x,r.y)}break;case"L":case"l":while(!e.isCommandOrEnd()){var i=e.current;var r=e.getAsCurrentPoint();e.addMarker(r,i);n.addPoint(r.x,r.y);if(t!=null)t.lineTo(r.x,r.y)}break;case"H":case"h":while(!e.isCommandOrEnd()){var a=new P.Point((e.isRelativeCommand()?e.current.x:0)+e.getScalar(),e.current.y);e.addMarker(a,e.current);e.current=a;n.addPoint(e.current.x,e.current.y);if(t!=null)t.lineTo(e.current.x,e.current.y)}break;case"V":case"v":while(!e.isCommandOrEnd()){var a=new P.Point(e.current.x,(e.isRelativeCommand()?e.current.y:0)+e.getScalar());e.addMarker(a,e.current);e.current=a;n.addPoint(e.current.x,e.current.y);if(t!=null)t.lineTo(e.current.x,e.current.y)}break;case"C":case"c":while(!e.isCommandOrEnd()){var o=e.current;var s=e.getPoint();var u=e.getAsControlPoint();var l=e.getAsCurrentPoint();e.addMarker(l,u,s);n.addBezierCurve(o.x,o.y,s.x,s.y,u.x,u.y,l.x,l.y);if(t!=null)t.bezierCurveTo(s.x,s.y,u.x,u.y,l.x,l.y)}break;case"S":case"s":while(!e.isCommandOrEnd()){var o=e.current;var s=e.getReflectedControlPoint();var u=e.getAsControlPoint();var l=e.getAsCurrentPoint();e.addMarker(l,u,s);n.addBezierCurve(o.x,o.y,s.x,s.y,u.x,u.y,l.x,l.y);if(t!=null)t.bezierCurveTo(s.x,s.y,u.x,u.y,l.x,l.y)}break;case"Q":case"q":while(!e.isCommandOrEnd()){var o=e.current;var u=e.getAsControlPoint();var l=e.getAsCurrentPoint();e.addMarker(l,u,u);n.addQuadraticCurve(o.x,o.y,u.x,u.y,l.x,l.y);if(t!=null)t.quadraticCurveTo(u.x,u.y,l.x,l.y)}break;case"T":case"t":while(!e.isCommandOrEnd()){var o=e.current;var u=e.getReflectedControlPoint();e.control=u;var l=e.getAsCurrentPoint();e.addMarker(l,u,u);n.addQuadraticCurve(o.x,o.y,u.x,u.y,l.x,l.y);if(t!=null)t.quadraticCurveTo(u.x,u.y,l.x,l.y)}break;case"A":case"a":while(!e.isCommandOrEnd()){var o=e.current;var c=e.getScalar();var f=e.getScalar();var h=e.getScalar()*(Math.PI/180);var d=e.getScalar();var g=e.getScalar();var l=e.getAsCurrentPoint();var v=new P.Point(Math.cos(h)*(o.x-l.x)/2+Math.sin(h)*(o.y-l.y)/2,-Math.sin(h)*(o.x-l.x)/2+Math.cos(h)*(o.y-l.y)/2);var p=Math.pow(v.x,2)/Math.pow(c,2)+Math.pow(v.y,2)/Math.pow(f,2);if(p>1){c*=Math.sqrt(p);f*=Math.sqrt(p)}var y=(d==g?-1:1)*Math.sqrt((Math.pow(c,2)*Math.pow(f,2)-Math.pow(c,2)*Math.pow(v.y,2)-Math.pow(f,2)*Math.pow(v.x,2))/(Math.pow(c,2)*Math.pow(v.y,2)+Math.pow(f,2)*Math.pow(v.x,2)));if(isNaN(y))y=0;var m=new P.Point(y*c*v.y/f,y*-f*v.x/c);var _=new P.Point((o.x+l.x)/2+Math.cos(h)*m.x-Math.sin(h)*m.y,(o.y+l.y)/2+Math.sin(h)*m.x+Math.cos(h)*m.y);var b=function t(e){return Math.sqrt(Math.pow(e[0],2)+Math.pow(e[1],2))};var w=function t(e,n){return(e[0]*n[0]+e[1]*n[1])/(b(e)*b(n))};var x=function t(e,n){return(e[0]*n[1]<e[1]*n[0]?-1:1)*Math.acos(w(e,n))};var k=x([1,0],[(v.x-m.x)/c,(v.y-m.y)/f]);var S=[(v.x-m.x)/c,(v.y-m.y)/f];var C=[(-v.x-m.x)/c,(-v.y-m.y)/f];var E=x(S,C);if(w(S,C)<=-1)E=Math.PI;if(w(S,C)>=1)E=0;var A=1-g?1:-1;var M=k+A*(E/2);var R=new P.Point(_.x+c*Math.cos(M),_.y+f*Math.sin(M));e.addMarkerAngle(R,M-A*Math.PI/2);e.addMarkerAngle(l,M-A*Math.PI);n.addPoint(l.x,l.y);if(t!=null){var w=c>f?c:f;var T=c>f?1:c/f;var O=c>f?f/c:1;t.translate(_.x,_.y);t.rotate(h);t.scale(T,O);t.arc(0,0,w,k,k+E,1-g);t.scale(1/T,1/O);t.rotate(-h);t.translate(-_.x,-_.y)}}break;case"Z":case"z":if(t!=null)t.closePath();e.current=e.start}}return n};this.getMarkers=function(){var t=this.PathParser.getMarkerPoints();var e=this.PathParser.getMarkerAngles();var n=[];for(var r=0;r<t.length;r++){n.push([t[r],e[r]])}return n}};P.Element.path.prototype=new P.Element.PathElementBase;P.Element.pattern=function(t){this.base=P.Element.ElementBase;this.base(t);this.createPattern=function(t,e){var n=this.attribute("width").toPixels("x",true);var r=this.attribute("height").toPixels("y",true);var i=new P.Element.svg;i.attributes["viewBox"]=new P.Property("viewBox",this.attribute("viewBox").value);i.attributes["width"]=new P.Property("width",n+"px");i.attributes["height"]=new P.Property("height",r+"px");i.attributes["transform"]=new P.Property("transform",this.attribute("patternTransform").value);i.children=this.children;var a=document.createElement("canvas");a.width=n;a.height=r;var o=a.getContext("2d");if(this.attribute("x").hasValue()&&this.attribute("y").hasValue()){o.translate(this.attribute("x").toPixels("x",true),this.attribute("y").toPixels("y",true))}for(var s=-1;s<=1;s++){for(var u=-1;u<=1;u++){o.save();i.attributes["x"]=new P.Property("x",s*a.width);i.attributes["y"]=new P.Property("y",u*a.height);i.render(o);o.restore()}}var l=t.createPattern(a,"repeat");return l}};P.Element.pattern.prototype=new P.Element.ElementBase;P.Element.marker=function(t){this.base=P.Element.ElementBase;this.base(t);this.baseRender=this.render;this.render=function(t,e,n){t.translate(e.x,e.y);if(this.attribute("orient").valueOrDefault("auto")=="auto")t.rotate(n);if(this.attribute("markerUnits").valueOrDefault("strokeWidth")=="strokeWidth")t.scale(t.lineWidth,t.lineWidth);t.save();var r=new P.Element.svg;r.attributes["viewBox"]=new P.Property("viewBox",this.attribute("viewBox").value);r.attributes["refX"]=new P.Property("refX",this.attribute("refX").value);r.attributes["refY"]=new P.Property("refY",this.attribute("refY").value);r.attributes["width"]=new P.Property("width",this.attribute("markerWidth").value);r.attributes["height"]=new P.Property("height",this.attribute("markerHeight").value);r.attributes["fill"]=new P.Property("fill",this.attribute("fill").valueOrDefault("black"));r.attributes["stroke"]=new P.Property("stroke",this.attribute("stroke").valueOrDefault("none"));r.children=this.children;r.render(t);t.restore();if(this.attribute("markerUnits").valueOrDefault("strokeWidth")=="strokeWidth")t.scale(1/t.lineWidth,1/t.lineWidth);if(this.attribute("orient").valueOrDefault("auto")=="auto")t.rotate(-n);t.translate(-e.x,-e.y)}};P.Element.marker.prototype=new P.Element.ElementBase;P.Element.defs=function(t){this.base=P.Element.ElementBase;this.base(t);this.render=function(t){}};P.Element.defs.prototype=new P.Element.ElementBase;P.Element.GradientBase=function(t){this.base=P.Element.ElementBase;this.base(t);this.stops=[];for(var e=0;e<this.children.length;e++){var n=this.children[e];if(n.type=="stop")this.stops.push(n)}this.getGradient=function(){};this.gradientUnits=function(){return this.attribute("gradientUnits").valueOrDefault("objectBoundingBox")};this.attributesToInherit=["gradientUnits"];this.inheritStopContainer=function(t){for(var e=0;e<this.attributesToInherit.length;e++){var n=this.attributesToInherit[e];if(!this.attribute(n).hasValue()&&t.attribute(n).hasValue()){this.attribute(n,true).value=t.attribute(n).value}}};this.createGradient=function(t,e,r){var n=this;if(this.getHrefAttribute().hasValue()){n=this.getHrefAttribute().getDefinition();this.inheritStopContainer(n)}var i=function t(e){if(r.hasValue()){var n=new P.Property("color",e);return n.addOpacity(r).value}return e};var a=this.getGradient(t,e);if(a==null)return i(n.stops[n.stops.length-1].color);for(var o=0;o<n.stops.length;o++){a.addColorStop(n.stops[o].offset,i(n.stops[o].color))}if(this.attribute("gradientTransform").hasValue()){var s=P.ViewPort.viewPorts[0];var u=new P.Element.rect;u.attributes["x"]=new P.Property("x",-P.MAX_VIRTUAL_PIXELS/3);u.attributes["y"]=new P.Property("y",-P.MAX_VIRTUAL_PIXELS/3);u.attributes["width"]=new P.Property("width",P.MAX_VIRTUAL_PIXELS);u.attributes["height"]=new P.Property("height",P.MAX_VIRTUAL_PIXELS);var l=new P.Element.g;l.attributes["transform"]=new P.Property("transform",this.attribute("gradientTransform").value);l.children=[u];var c=new P.Element.svg;c.attributes["x"]=new P.Property("x",0);c.attributes["y"]=new P.Property("y",0);c.attributes["width"]=new P.Property("width",s.width);c.attributes["height"]=new P.Property("height",s.height);c.children=[l];var f=document.createElement("canvas");f.width=s.width;f.height=s.height;var h=f.getContext("2d");h.fillStyle=a;c.render(h);return h.createPattern(f,"no-repeat")}return a}};P.Element.GradientBase.prototype=new P.Element.ElementBase;P.Element.linearGradient=function(t){this.base=P.Element.GradientBase;this.base(t);this.attributesToInherit.push("x1");this.attributesToInherit.push("y1");this.attributesToInherit.push("x2");this.attributesToInherit.push("y2");this.getGradient=function(t,e){var n=this.gradientUnits()=="objectBoundingBox"?e.getBoundingBox():null;if(!this.attribute("x1").hasValue()&&!this.attribute("y1").hasValue()&&!this.attribute("x2").hasValue()&&!this.attribute("y2").hasValue()){this.attribute("x1",true).value=0;this.attribute("y1",true).value=0;this.attribute("x2",true).value=1;this.attribute("y2",true).value=0}var r=this.gradientUnits()=="objectBoundingBox"?n.x()+n.width()*this.attribute("x1").numValue():this.attribute("x1").toPixels("x");var i=this.gradientUnits()=="objectBoundingBox"?n.y()+n.height()*this.attribute("y1").numValue():this.attribute("y1").toPixels("y");var a=this.gradientUnits()=="objectBoundingBox"?n.x()+n.width()*this.attribute("x2").numValue():this.attribute("x2").toPixels("x");var o=this.gradientUnits()=="objectBoundingBox"?n.y()+n.height()*this.attribute("y2").numValue():this.attribute("y2").toPixels("y");if(r==a&&i==o)return null;return t.createLinearGradient(r,i,a,o)}};P.Element.linearGradient.prototype=new P.Element.GradientBase;P.Element.radialGradient=function(t){this.base=P.Element.GradientBase;this.base(t);this.attributesToInherit.push("cx");this.attributesToInherit.push("cy");this.attributesToInherit.push("r");this.attributesToInherit.push("fx");this.attributesToInherit.push("fy");this.getGradient=function(t,e){var n=e.getBoundingBox();if(!this.attribute("cx").hasValue())this.attribute("cx",true).value="50%";if(!this.attribute("cy").hasValue())this.attribute("cy",true).value="50%";if(!this.attribute("r").hasValue())this.attribute("r",true).value="50%";var r=this.gradientUnits()=="objectBoundingBox"?n.x()+n.width()*this.attribute("cx").numValue():this.attribute("cx").toPixels("x");var i=this.gradientUnits()=="objectBoundingBox"?n.y()+n.height()*this.attribute("cy").numValue():this.attribute("cy").toPixels("y");var a=r;var o=i;if(this.attribute("fx").hasValue()){a=this.gradientUnits()=="objectBoundingBox"?n.x()+n.width()*this.attribute("fx").numValue():this.attribute("fx").toPixels("x")}if(this.attribute("fy").hasValue()){o=this.gradientUnits()=="objectBoundingBox"?n.y()+n.height()*this.attribute("fy").numValue():this.attribute("fy").toPixels("y")}var s=this.gradientUnits()=="objectBoundingBox"?(n.width()+n.height())/2*this.attribute("r").numValue():this.attribute("r").toPixels();return t.createRadialGradient(a,o,0,r,i,s)}};P.Element.radialGradient.prototype=new P.Element.GradientBase;P.Element.stop=function(t){this.base=P.Element.ElementBase;this.base(t);this.offset=this.attribute("offset").numValue();if(this.offset<0)this.offset=0;if(this.offset>1)this.offset=1;var e=this.style("stop-color",true);if(e.value=="")e.value="#000";if(this.style("stop-opacity").hasValue())e=e.addOpacity(this.style("stop-opacity"));this.color=e.value};P.Element.stop.prototype=new P.Element.ElementBase;P.Element.AnimateBase=function(t){this.base=P.Element.ElementBase;this.base(t);P.Animations.push(this);this.duration=0;this.begin=this.attribute("begin").toMilliseconds();this.maxDuration=this.begin+this.attribute("dur").toMilliseconds();this.getProperty=function(){var t=this.attribute("attributeType").value;var e=this.attribute("attributeName").value;if(t=="CSS"){return this.parent.style(e,true)}return this.parent.attribute(e,true)};this.initialValue=null;this.initialUnits="";this.removed=false;this.calcValue=function(){return""};this.update=function(t){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+t;var e=false;if(this.begin<this.duration){var n=this.calcValue();if(this.attribute("type").hasValue()){var r=this.attribute("type").value;n=r+"("+n+")"}this.getProperty().value=n;e=true}return e};this.from=this.attribute("from");this.to=this.attribute("to");this.values=this.attribute("values");if(this.values.hasValue())this.values.value=this.values.value.split(";");this.progress=function(){var t={progress:(this.duration-this.begin)/(this.maxDuration-this.begin)};if(this.values.hasValue()){var e=t.progress*(this.values.value.length-1);var n=Math.floor(e),r=Math.ceil(e);t.from=new P.Property("from",parseFloat(this.values.value[n]));t.to=new P.Property("to",parseFloat(this.values.value[r]));t.progress=(e-n)/(r-n)}else{t.from=this.from;t.to=this.to}return t}};P.Element.AnimateBase.prototype=new P.Element.ElementBase;P.Element.animate=function(t){this.base=P.Element.AnimateBase;this.base(t);this.calcValue=function(){var t=this.progress();var e=t.from.numValue()+(t.to.numValue()-t.from.numValue())*t.progress;return e+this.initialUnits}};P.Element.animate.prototype=new P.Element.AnimateBase;P.Element.animateColor=function(t){this.base=P.Element.AnimateBase;this.base(t);this.calcValue=function(){var t=this.progress();var e=new y5(t.from.value);var n=new y5(t.to.value);if(e.ok&&n.ok){var r=e.r+(n.r-e.r)*t.progress;var i=e.g+(n.g-e.g)*t.progress;var a=e.b+(n.b-e.b)*t.progress;return"rgb("+parseInt(r,10)+","+parseInt(i,10)+","+parseInt(a,10)+")"}return this.attribute("from").value}};P.Element.animateColor.prototype=new P.Element.AnimateBase;P.Element.animateTransform=function(t){this.base=P.Element.AnimateBase;this.base(t);this.calcValue=function(){var t=this.progress();var e=P.ToNumberArray(t.from.value);var n=P.ToNumberArray(t.to.value);var r="";for(var i=0;i<e.length;i++){r+=e[i]+(n[i]-e[i])*t.progress+" "}return r}};P.Element.animateTransform.prototype=new P.Element.animate;P.Element.font=function(t){this.base=P.Element.ElementBase;this.base(t);this.horizAdvX=this.attribute("horiz-adv-x").numValue();this.isRTL=false;this.isArabic=false;this.fontFace=null;this.missingGlyph=null;this.glyphs=[];for(var e=0;e<this.children.length;e++){var n=this.children[e];if(n.type=="font-face"){this.fontFace=n;if(n.style("font-family").hasValue()){P.Definitions[n.style("font-family").value]=this}}else if(n.type=="missing-glyph")this.missingGlyph=n;else if(n.type=="glyph"){if(n.arabicForm!=""){this.isRTL=true;this.isArabic=true;if(typeof this.glyphs[n.unicode]=="undefined")this.glyphs[n.unicode]=[];this.glyphs[n.unicode][n.arabicForm]=n}else{this.glyphs[n.unicode]=n}}}};P.Element.font.prototype=new P.Element.ElementBase;P.Element.fontface=function(t){this.base=P.Element.ElementBase;this.base(t);this.ascent=this.attribute("ascent").value;this.descent=this.attribute("descent").value;this.unitsPerEm=this.attribute("units-per-em").numValue()};P.Element.fontface.prototype=new P.Element.ElementBase;P.Element.missingglyph=function(t){this.base=P.Element.path;this.base(t);this.horizAdvX=0};P.Element.missingglyph.prototype=new P.Element.path;P.Element.glyph=function(t){this.base=P.Element.path;this.base(t);this.horizAdvX=this.attribute("horiz-adv-x").numValue();this.unicode=this.attribute("unicode").value;this.arabicForm=this.attribute("arabic-form").value};P.Element.glyph.prototype=new P.Element.path;P.Element.text=function(t){this.captureTextNodes=true;this.base=P.Element.RenderedElementBase;this.base(t);this.baseSetContext=this.setContext;this.setContext=function(t){this.baseSetContext(t);var e=this.style("dominant-baseline").toTextBaseline();if(e==null)e=this.style("alignment-baseline").toTextBaseline();if(e!=null)t.textBaseline=e};this.getBoundingBox=function(){var t=this.attribute("x").toPixels("x");var e=this.attribute("y").toPixels("y");var n=this.parent.style("font-size").numValueOrDefault(P.Font.Parse(P.ctx.font).fontSize);return new P.BoundingBox(t,e-n,t+Math.floor(n*2/3)*this.children[0].getText().length,e)};this.renderChildren=function(t){this.x=this.attribute("x").toPixels("x");this.y=this.attribute("y").toPixels("y");if(this.attribute("dx").hasValue())this.x+=this.attribute("dx").toPixels("x");if(this.attribute("dy").hasValue())this.y+=this.attribute("dy").toPixels("y");this.x+=this.getAnchorDelta(t,this,0);for(var e=0;e<this.children.length;e++){this.renderChild(t,this,this,e)}};this.getAnchorDelta=function(t,e,n){var r=this.style("text-anchor").valueOrDefault("start");if(r!="start"){var i=0;for(var a=n;a<e.children.length;a++){var o=e.children[a];if(a>n&&o.attribute("x").hasValue())break;i+=o.measureTextRecursive(t)}return-1*(r=="end"?i:i/2)}return 0};this.renderChild=function(t,e,n,r){var i=n.children[r];if(i.attribute("x").hasValue()){i.x=i.attribute("x").toPixels("x")+e.getAnchorDelta(t,n,r);if(i.attribute("dx").hasValue())i.x+=i.attribute("dx").toPixels("x")}else{if(i.attribute("dx").hasValue())e.x+=i.attribute("dx").toPixels("x");i.x=e.x}e.x=i.x+i.measureText(t);if(i.attribute("y").hasValue()){i.y=i.attribute("y").toPixels("y");if(i.attribute("dy").hasValue())i.y+=i.attribute("dy").toPixels("y")}else{if(i.attribute("dy").hasValue())e.y+=i.attribute("dy").toPixels("y");i.y=e.y}e.y=i.y;i.render(t);for(var r=0;r<i.children.length;r++){e.renderChild(t,e,i,r)}}};P.Element.text.prototype=new P.Element.RenderedElementBase;P.Element.TextElementBase=function(t){this.base=P.Element.RenderedElementBase;this.base(t);this.getGlyph=function(t,e,n){var r=e[n];var i=null;if(t.isArabic){var a="isolated";if((n==0||e[n-1]==" ")&&n<e.length-2&&e[n+1]!=" ")a="terminal";if(n>0&&e[n-1]!=" "&&n<e.length-2&&e[n+1]!=" ")a="medial";if(n>0&&e[n-1]!=" "&&(n==e.length-1||e[n+1]==" "))a="initial";if(typeof t.glyphs[r]!="undefined"){i=t.glyphs[r][a];if(i==null&&t.glyphs[r].type=="glyph")i=t.glyphs[r]}}else{i=t.glyphs[r]}if(i==null)i=t.missingGlyph;return i};this.renderChildren=function(t){var e=this.parent.style("font-family").getDefinition();if(e!=null){var n=this.parent.style("font-size").numValueOrDefault(P.Font.Parse(P.ctx.font).fontSize);var r=this.parent.style("font-style").valueOrDefault(P.Font.Parse(P.ctx.font).fontStyle);var i=this.getText();if(e.isRTL)i=i.split("").reverse().join("");var a=P.ToNumberArray(this.parent.attribute("dx").value);for(var o=0;o<i.length;o++){var s=this.getGlyph(e,i,o);var u=n/e.fontFace.unitsPerEm;t.translate(this.x,this.y);t.scale(u,-u);var l=t.lineWidth;t.lineWidth=t.lineWidth*e.fontFace.unitsPerEm/n;if(r=="italic")t.transform(1,0,.4,1,0,0);s.render(t);if(r=="italic")t.transform(1,0,-.4,1,0,0);t.lineWidth=l;t.scale(1/u,-1/u);t.translate(-this.x,-this.y);this.x+=n*(s.horizAdvX||e.horizAdvX)/e.fontFace.unitsPerEm;if(typeof a[o]!="undefined"&&!isNaN(a[o])){this.x+=a[o]}}return}if(t.fillStyle!="")t.fillText(P.compressSpaces(this.getText()),this.x,this.y);if(t.strokeStyle!="")t.strokeText(P.compressSpaces(this.getText()),this.x,this.y)};this.getText=function(){};this.measureTextRecursive=function(t){var e=this.measureText(t);for(var n=0;n<this.children.length;n++){e+=this.children[n].measureTextRecursive(t)}return e};this.measureText=function(t){var e=this.parent.style("font-family").getDefinition();if(e!=null){var n=this.parent.style("font-size").numValueOrDefault(P.Font.Parse(P.ctx.font).fontSize);var r=0;var i=this.getText();if(e.isRTL)i=i.split("").reverse().join("");var a=P.ToNumberArray(this.parent.attribute("dx").value);for(var o=0;o<i.length;o++){var s=this.getGlyph(e,i,o);r+=(s.horizAdvX||e.horizAdvX)*n/e.fontFace.unitsPerEm;if(typeof a[o]!="undefined"&&!isNaN(a[o])){r+=a[o]}}return r}var u=P.compressSpaces(this.getText());if(!t.measureText)return u.length*10;t.save();this.setContext(t);var l=t.measureText(u).width;t.restore();return l}};P.Element.TextElementBase.prototype=new P.Element.RenderedElementBase;P.Element.tspan=function(t){this.captureTextNodes=true;this.base=P.Element.TextElementBase;this.base(t);this.text=P.compressSpaces(t.value||t.text||t.textContent||"");this.getText=function(){if(this.children.length>0){return""}return this.text}};P.Element.tspan.prototype=new P.Element.TextElementBase;P.Element.tref=function(t){this.base=P.Element.TextElementBase;this.base(t);this.getText=function(){var t=this.getHrefAttribute().getDefinition();if(t!=null)return t.children[0].getText()}};P.Element.tref.prototype=new P.Element.TextElementBase;P.Element.a=function(t){this.base=P.Element.TextElementBase;this.base(t);this.hasText=t.childNodes.length>0;for(var e=0;e<t.childNodes.length;e++){if(t.childNodes[e].nodeType!=3)this.hasText=false}this.text=this.hasText?t.childNodes[0].value:"";this.getText=function(){return this.text};this.baseRenderChildren=this.renderChildren;this.renderChildren=function(t){if(this.hasText){this.baseRenderChildren(t);var e=new P.Property("fontSize",P.Font.Parse(P.ctx.font).fontSize);P.Mouse.checkBoundingBox(this,new P.BoundingBox(this.x,this.y-e.toPixels("y"),this.x+this.measureText(t),this.y))}else if(this.children.length>0){var n=new P.Element.g;n.children=this.children;n.parent=this;n.render(t)}};this.onclick=function(){window.open(this.getHrefAttribute().value)};this.onmousemove=function(){P.ctx.canvas.style.cursor="pointer"}};P.Element.a.prototype=new P.Element.TextElementBase;P.Element.image=function(t){this.base=P.Element.RenderedElementBase;this.base(t);var e=this.getHrefAttribute().value;if(e==""){return}var a=e.match(/\.svg$/);P.Images.push(this);this.loaded=false;if(!a){this.img=document.createElement("img");if(P.opts["useCORS"]==true){this.img.crossOrigin="Anonymous"}var n=this;this.img.onload=function(){n.loaded=true};this.img.onerror=function(){P.log('ERROR: image "'+e+'" not found');n.loaded=true};this.img.src=e}else{this.img=P.ajax(e);this.loaded=true}this.renderChildren=function(t){var e=this.attribute("x").toPixels("x");var n=this.attribute("y").toPixels("y");var r=this.attribute("width").toPixels("x");var i=this.attribute("height").toPixels("y");if(r==0||i==0)return;t.save();if(a){t.drawSvg(this.img,e,n,r,i)}else{t.translate(e,n);P.AspectRatio(t,this.attribute("preserveAspectRatio").value,r,this.img.width,i,this.img.height,0,0);t.drawImage(this.img,0,0)}t.restore()};this.getBoundingBox=function(){var t=this.attribute("x").toPixels("x");var e=this.attribute("y").toPixels("y");var n=this.attribute("width").toPixels("x");var r=this.attribute("height").toPixels("y");return new P.BoundingBox(t,e,t+n,e+r)}};P.Element.image.prototype=new P.Element.RenderedElementBase;P.Element.g=function(t){this.base=P.Element.RenderedElementBase;this.base(t);this.getBoundingBox=function(){var t=new P.BoundingBox;for(var e=0;e<this.children.length;e++){t.addBoundingBox(this.children[e].getBoundingBox())}return t}};P.Element.g.prototype=new P.Element.RenderedElementBase;P.Element.symbol=function(t){this.base=P.Element.RenderedElementBase;this.base(t);this.render=function(t){}};P.Element.symbol.prototype=new P.Element.RenderedElementBase;P.Element.style=function(t){this.base=P.Element.ElementBase;this.base(t);var e="";for(var n=0;n<t.childNodes.length;n++){e+=t.childNodes[n].data}e=e.replace(/(\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"");e=P.compressSpaces(e);var r=e.split("}");for(var n=0;n<r.length;n++){if(P.trim(r[n])!=""){var i=r[n].split("{");var a=i[0].split(",");var o=i[1].split(";");for(var s=0;s<a.length;s++){var u=P.trim(a[s]);if(u!=""){var l=P.Styles[u]||{};for(var c=0;c<o.length;c++){var f=o[c].indexOf(":");var h=o[c].substr(0,f);var d=o[c].substr(f+1,o[c].length-f);if(h!=null&&d!=null){l[P.trim(h)]=new P.Property(P.trim(h),P.trim(d))}}P.Styles[u]=l;P.StylesSpecificity[u]=oA(u);if(u=="@font-face"){var g=l["font-family"].value.replace(/"/g,"");var v=l["src"].value.split(",");for(var p=0;p<v.length;p++){if(v[p].indexOf('format("svg")')>0){var y=v[p].indexOf("url");var m=v[p].indexOf(")",y);var _=v[p].substr(y+5,m-y-6);var b=P.parseXml(P.ajax(_));var w=b.getElementsByTagName("font");for(var x=0;x<w.length;x++){var k=P.CreateElement(w[x]);P.Definitions[g]=k}}}}}}}}};P.Element.style.prototype=new P.Element.ElementBase;P.Element.use=function(t){this.base=P.Element.RenderedElementBase;this.base(t);this.baseSetContext=this.setContext;this.setContext=function(t){this.baseSetContext(t);if(this.attribute("x").hasValue())t.translate(this.attribute("x").toPixels("x"),0);if(this.attribute("y").hasValue())t.translate(0,this.attribute("y").toPixels("y"))};var r=this.getHrefAttribute().getDefinition();this.path=function(t){if(r!=null)r.path(t)};this.getBoundingBox=function(){if(r!=null)return r.getBoundingBox()};this.renderChildren=function(t){if(r!=null){var e=r;if(r.type=="symbol"){e=new P.Element.svg;e.type="svg";e.attributes["viewBox"]=new P.Property("viewBox",r.attribute("viewBox").value);e.attributes["preserveAspectRatio"]=new P.Property("preserveAspectRatio",r.attribute("preserveAspectRatio").value);e.attributes["overflow"]=new P.Property("overflow",r.attribute("overflow").value);e.children=r.children}if(e.type=="svg"){if(this.attribute("width").hasValue())e.attributes["width"]=new P.Property("width",this.attribute("width").value);if(this.attribute("height").hasValue())e.attributes["height"]=new P.Property("height",this.attribute("height").value)}var n=e.parent;e.parent=null;e.render(t);e.parent=n}}};P.Element.use.prototype=new P.Element.RenderedElementBase;P.Element.mask=function(t){this.base=P.Element.ElementBase;this.base(t);this.apply=function(t,e){var n=this.attribute("x").toPixels("x");var r=this.attribute("y").toPixels("y");var i=this.attribute("width").toPixels("x");var a=this.attribute("height").toPixels("y");if(i==0&&a==0){var o=new P.BoundingBox;for(var s=0;s<this.children.length;s++){o.addBoundingBox(this.children[s].getBoundingBox())}var n=Math.floor(o.x1);var r=Math.floor(o.y1);var i=Math.floor(o.width());var a=Math.floor(o.height())}var u=e.attribute("mask").value;e.attribute("mask").value="";var l=document.createElement("canvas");l.width=n+i;l.height=r+a;var c=l.getContext("2d");this.renderChildren(c);var f=document.createElement("canvas");f.width=n+i;f.height=r+a;var h=f.getContext("2d");e.render(h);h.globalCompositeOperation="destination-in";h.fillStyle=c.createPattern(l,"no-repeat");h.fillRect(0,0,n+i,r+a);t.fillStyle=h.createPattern(f,"no-repeat");t.fillRect(0,0,n+i,r+a);e.attribute("mask").value=u};this.render=function(t){}};P.Element.mask.prototype=new P.Element.ElementBase;P.Element.clipPath=function(t){this.base=P.Element.ElementBase;this.base(t);this.apply=function(t){var e=CanvasRenderingContext2D.prototype.beginPath;CanvasRenderingContext2D.prototype.beginPath=function(){};var n=CanvasRenderingContext2D.prototype.closePath;CanvasRenderingContext2D.prototype.closePath=function(){};e.call(t);for(var r=0;r<this.children.length;r++){var i=this.children[r];if(typeof i.path!="undefined"){var a=null;if(i.style("transform",false,true).hasValue()){a=new P.Transform(i.style("transform",false,true).value);a.apply(t)}i.path(t);CanvasRenderingContext2D.prototype.closePath=n;if(a){a.unapply(t)}}}n.call(t);t.clip();CanvasRenderingContext2D.prototype.beginPath=e;CanvasRenderingContext2D.prototype.closePath=n};this.render=function(t){}};P.Element.clipPath.prototype=new P.Element.ElementBase;P.Element.filter=function(t){this.base=P.Element.ElementBase;this.base(t);this.apply=function(t,e){var n=e.getBoundingBox();var r=Math.floor(n.x1);var i=Math.floor(n.y1);var a=Math.floor(n.width());var o=Math.floor(n.height());var s=e.style("filter").value;e.style("filter").value="";var u=0,l=0;for(var c=0;c<this.children.length;c++){var f=this.children[c].extraFilterDistance||0;u=Math.max(u,f);l=Math.max(l,f)}var h=document.createElement("canvas");h.width=a+2*u;h.height=o+2*l;var d=h.getContext("2d");d.translate(-r+u,-i+l);e.render(d);for(var c=0;c<this.children.length;c++){if(typeof this.children[c].apply=="function"){this.children[c].apply(d,0,0,a+2*u,o+2*l)}}t.drawImage(h,0,0,a+2*u,o+2*l,r-u,i-l,a+2*u,o+2*l);e.style("filter",true).value=s};this.render=function(t){}};P.Element.filter.prototype=new P.Element.ElementBase;P.Element.feMorphology=function(t){this.base=P.Element.ElementBase;this.base(t);this.apply=function(t,e,n,r,i){}};P.Element.feMorphology.prototype=new P.Element.ElementBase;P.Element.feComposite=function(t){this.base=P.Element.ElementBase;this.base(t);this.apply=function(t,e,n,r,i){}};P.Element.feComposite.prototype=new P.Element.ElementBase;P.Element.feColorMatrix=function(t){this.base=P.Element.ElementBase;this.base(t);var r=P.ToNumberArray(this.attribute("values").value);switch(this.attribute("type").valueOrDefault("matrix")){case"saturate":var e=r[0];r=[.213+.787*e,.715-.715*e,.072-.072*e,0,0,.213-.213*e,.715+.285*e,.072-.072*e,0,0,.213-.213*e,.715-.715*e,.072+.928*e,0,0,0,0,0,1,0,0,0,0,0,1];break;case"hueRotate":var i=r[0]*Math.PI/180;var n=function t(e,n,r){return e+Math.cos(i)*n+Math.sin(i)*r};r=[n(.213,.787,-.213),n(.715,-.715,-.715),n(.072,-.072,.928),0,0,n(.213,-.213,.143),n(.715,.285,.14),n(.072,-.072,-.283),0,0,n(.213,-.213,-.787),n(.715,-.715,.715),n(.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break;case"luminanceToAlpha":r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}function c(t,e,n,r,i,a){return t[n*r*4+e*4+a]}function f(t,e,n,r,i,a,o){t[n*r*4+e*4+a]=o}function h(t,e){var n=r[t];return n*(n<0?e-255:e)}this.apply=function(t,e,n,r,i){var a=t.getImageData(0,0,r,i);for(var n=0;n<i;n++){for(var e=0;e<r;e++){var o=c(a.data,e,n,r,i,0);var s=c(a.data,e,n,r,i,1);var u=c(a.data,e,n,r,i,2);var l=c(a.data,e,n,r,i,3);f(a.data,e,n,r,i,0,h(0,o)+h(1,s)+h(2,u)+h(3,l)+h(4,1));f(a.data,e,n,r,i,1,h(5,o)+h(6,s)+h(7,u)+h(8,l)+h(9,1));f(a.data,e,n,r,i,2,h(10,o)+h(11,s)+h(12,u)+h(13,l)+h(14,1));f(a.data,e,n,r,i,3,h(15,o)+h(16,s)+h(17,u)+h(18,l)+h(19,1))}}t.clearRect(0,0,r,i);t.putImageData(a,0,0)}};P.Element.feColorMatrix.prototype=new P.Element.ElementBase;P.Element.feGaussianBlur=function(t){this.base=P.Element.ElementBase;this.base(t);this.blurRadius=Math.floor(this.attribute("stdDeviation").numValue());this.extraFilterDistance=this.blurRadius;this.apply=function(t,e,n,r,i){if(typeof x5.canvasRGBA=="undefined"){P.log("ERROR: StackBlur.js must be included for blur to work");return}t.canvas.id=P.UniqueId();t.canvas.style.display="none";document.body.appendChild(t.canvas);x5.canvasRGBA(t.canvas.id,e,n,r,i,this.blurRadius);document.body.removeChild(t.canvas)}};P.Element.feGaussianBlur.prototype=new P.Element.ElementBase;P.Element.title=function(t){};P.Element.title.prototype=new P.Element.ElementBase;P.Element.desc=function(t){};P.Element.desc.prototype=new P.Element.ElementBase;P.Element.MISSING=function(t){P.log("ERROR: Element '"+t.nodeName+"' not yet implemented.")};P.Element.MISSING.prototype=new P.Element.ElementBase;P.CreateElement=function(t){var e=t.nodeName.replace(/^[^:]+:/,"");e=e.replace(/\-/g,"");var n=null;if(typeof P.Element[e]!="undefined"){n=new P.Element[e](t)}else{n=new P.Element.MISSING(t)}n.type=t.nodeName;return n};P.load=function(t,e){P.loadXml(t,P.ajax(e))};P.loadXml=function(t,e){P.loadXmlDoc(t,P.parseXml(e))};P.loadXmlDoc=function(o,s){P.init(o);var n=function t(e){var n=o.canvas;while(n){e.x-=n.offsetLeft;e.y-=n.offsetTop;n=n.offsetParent}if(window.scrollX)e.x+=window.scrollX;if(window.scrollY)e.y+=window.scrollY;return e};if(P.opts["ignoreMouse"]!=true){o.canvas.onclick=function(t){var e=n(new P.Point(t!=null?t.clientX:event.clientX,t!=null?t.clientY:event.clientY));P.Mouse.onclick(e.x,e.y)};o.canvas.onmousemove=function(t){var e=n(new P.Point(t!=null?t.clientX:event.clientX,t!=null?t.clientY:event.clientY));P.Mouse.onmousemove(e.x,e.y)}}var u=P.CreateElement(s.documentElement);u.root=true;u.addStylesFromStyleDefinition();var l=true;var r=function t(){P.ViewPort.Clear();if(o.canvas.parentNode)P.ViewPort.SetCurrent(o.canvas.parentNode.clientWidth,o.canvas.parentNode.clientHeight);if(P.opts["ignoreDimensions"]!=true){if(u.style("width").hasValue()){o.canvas.width=u.style("width").toPixels("x");o.canvas.style.width=o.canvas.width+"px"}if(u.style("height").hasValue()){o.canvas.height=u.style("height").toPixels("y");o.canvas.style.height=o.canvas.height+"px"}}var e=o.canvas.clientWidth||o.canvas.width;var n=o.canvas.clientHeight||o.canvas.height;if(P.opts["ignoreDimensions"]==true&&u.style("width").hasValue()&&u.style("height").hasValue()){e=u.style("width").toPixels("x");n=u.style("height").toPixels("y")}P.ViewPort.SetCurrent(e,n);if(P.opts["offsetX"]!=null)u.attribute("x",true).value=P.opts["offsetX"];if(P.opts["offsetY"]!=null)u.attribute("y",true).value=P.opts["offsetY"];if(P.opts["scaleWidth"]!=null||P.opts["scaleHeight"]!=null){var r=null,i=null,a=P.ToNumberArray(u.attribute("viewBox").value);if(P.opts["scaleWidth"]!=null){if(u.attribute("width").hasValue())r=u.attribute("width").toPixels("x")/P.opts["scaleWidth"];else if(!isNaN(a[2]))r=a[2]/P.opts["scaleWidth"]}if(P.opts["scaleHeight"]!=null){if(u.attribute("height").hasValue())i=u.attribute("height").toPixels("y")/P.opts["scaleHeight"];else if(!isNaN(a[3]))i=a[3]/P.opts["scaleHeight"]}if(r==null){r=i}if(i==null){i=r}u.attribute("width",true).value=P.opts["scaleWidth"];u.attribute("height",true).value=P.opts["scaleHeight"];u.style("transform",true,true).value+=" scale("+1/r+","+1/i+")"}if(P.opts["ignoreClear"]!=true){o.clearRect(0,0,e,n)}u.render(o);if(l){l=false;if(typeof P.opts["renderCallback"]=="function")P.opts["renderCallback"](s)}};var i=true;if(P.ImagesLoaded()){i=false;r()}P.intervalID=setInterval(function(){var t=false;if(i&&P.ImagesLoaded()){i=false;t=true}if(P.opts["ignoreMouse"]!=true){t=t|P.Mouse.hasEvents()}if(P.opts["ignoreAnimation"]!=true){for(var e=0;e<P.Animations.length;e++){t=t|P.Animations[e].update(1e3/P.FRAMERATE)}}if(typeof P.opts["forceRedraw"]=="function"){if(P.opts["forceRedraw"]()==true)t=true}if(t){r();P.Mouse.runEvents()}},1e3/P.FRAMERATE)};P.stop=function(){if(P.intervalID){clearInterval(P.intervalID)}};P.Mouse=new function(){this.events=[];this.hasEvents=function(){return this.events.length!=0};this.onclick=function(t,e){this.events.push({type:"onclick",x:t,y:e,run:function t(e){if(e.onclick)e.onclick()}})};this.onmousemove=function(t,e){this.events.push({type:"onmousemove",x:t,y:e,run:function t(e){if(e.onmousemove)e.onmousemove()}})};this.eventElements=[];this.checkPath=function(t,e){for(var n=0;n<this.events.length;n++){var r=this.events[n];if(e.isPointInPath&&e.isPointInPath(r.x,r.y))this.eventElements[n]=t}};this.checkBoundingBox=function(t,e){for(var n=0;n<this.events.length;n++){var r=this.events[n];if(e.isPointInBox(r.x,r.y))this.eventElements[n]=t}};this.runEvents=function(){P.ctx.canvas.style.cursor="";for(var t=0;t<this.events.length;t++){var e=this.events[t];var n=this.eventElements[t];while(n){e.run(n);n=n.parent}}this.events=[];this.eventElements=[]}};return P}var uA=iA;function lA(t){if(!t||!t.size())return;var e=t.attr("stroke-width");t.attr("stroke-width",!e?0:e);if(!e)t.attr("stroke","transparent");var n=t.attr("fill");if(!n&&t.node().tagName==="text")t.attr("fill","#000");var r=["none","transparent"].includes(t.attr("fill"));var i=t.attr("fill-opacity");t.attr("fill-opacity",r?0:i);t.attr("aria-label",null);var a=t.attr("x");if(a==="NaN")t.attr("x","0px");var o=t.attr("y");if(o==="NaN")t.attr("y","0px");var s=t.attr("xlink:href");if(s&&typeof window!=="undefined"&&s.charAt(0)==="/"){t.attr("xlink:href","".concat(window.location.origin).concat(s))}}function cA(t){t.selectAll("*").each(function(){var t=this.tagName.toLowerCase();if(!["option"].includes(t)){var e=Ks(this);var n=e.style("letter-spacing");e.style("letter-spacing",n==="normal"?"0.1px":n)}})}function fA(t,e){return pA(t)||vA(t,e)||dA(t,e)||hA()}function hA(){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 dA(t,e){if(!t)return;if(typeof t==="string")return gA(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gA(t,e)}function gA(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,r=new Array(e);n<e;n++){r[n]=t[n]}return r}function vA(t,e){var n=t==null?null:typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n==null)return;var r=[];var i=true;var a=false;var o,s;try{for(n=n.call(t);!(i=(o=n.next()).done);i=true){r.push(o.value);if(e&&r.length===e)break}}catch(t){a=true;s=t}finally{try{if(!i&&n["return"]!=null)n["return"]()}finally{if(a)throw s}}return r}function pA(t){if(Array.isArray(t))return t}var yA={background:false,callback:function t(){},exclude:[],padding:0,scale:1};var mA={ignoreMouse:true,ignoreAnimation:true,ignoreDimensions:true,ignoreClear:true};function _A(t){var e=Ks(t).attr("transform");var n=1,r=0,i=0;if(e){n=e.match(/scale\(([^a-z]+)\)/i);if(n)n=parseFloat(n[1]);else n=1;var a=e.match(/translate\(([^a-z]+)\)/i);if(a){var o=a[1].replace(", ",",").replace(/([^a-z]),*\s([^a-z])/gi,"$1,$2").split(",").map(function(t){return parseFloat(t)*n});var s=fA(o,2);r=s[0];i=s[1]}}return[n,r,i]}function bA(t,K){if(!t)return;if(!(t instanceof Array))t=[t];K=Object.assign({},yA,K);var c=new RegExp(/(MSIE|Trident\/|Edge\/)/i).test(navigator.userAgent);var Y=window?window.devicePixelRatio||1:1;var e=t[0];if(e.constructor===Object)e=e.element;var X=K.height||parseFloat(Ks(e).style("height"))+parseFloat(Ks(e).style("padding-top"))+parseFloat(Ks(e).style("padding-bottom")),Z=K.width||parseFloat(Ks(e).style("width"))+parseFloat(Ks(e).style("padding-left"))+parseFloat(Ks(e).style("padding-right"));var $,J,Q=0,tt=0;if(e.getBoundingClientRect){var n=e.getBoundingClientRect();Q=n.left;tt=n.top}else{Q=e.offsetLeft;tt=e.offsetTop}var f=K.canvas||document.createElement("canvas");f.width=(Z+K.padding*2)*K.scale*Y;f.height=(X+K.padding*2)*K.scale*Y;f.style.width=(Z+K.padding*2)*K.scale;f.style.height=(X+K.padding*2)*K.scale;var h=f.getContext("2d");h.scale(K.scale*Y,K.scale*Y);h.clearRect(0,0,f.width/Y,f.height/Y);if(K.background){h.beginPath();h.rect(0,0,f.width/Y,f.height/Y);h.fillStyle=K.background;h.fill()}var et=[];function r(t){var e=(this.tagName||"").toLowerCase();if(K.exclude.includes(this)||e==="foreignobject")return;var n=Object.assign({},t);if(this.tagName){var r=Ks(this).attr("opacity")||Ks(this).style("opacity");var i=Ks(this).style("display");var a=Ks(this).style("visibility");if(i==="none"||a==="hidden"||r&&parseFloat(r)===0)return;var o=this.tagName.toLowerCase();if(o.length&&["defs","title","desc"].includes(o))return;if(o==="svg"){if(!n.svg){var s=this.getBoundingClientRect(),u=s.left,l=s.top;n.x+=u-Q;n.y+=l-tt;n.svg=true}var c=Ks(this).attr("x");c=c?parseFloat(c)*n.scale:0;n.x+=c;var f=Ks(this).attr("y");f=f?parseFloat(f)*n.scale:0;n.y+=f;n.clip={height:parseFloat(Ks(this).attr("height")||Ks(this).style("height")),width:parseFloat(Ks(this).attr("width")||Ks(this).style("width")),x:c,y:f}}else{var h=Ks(this).attr("x");if(h)n.x+=parseFloat(h)*n.scale;var d=Ks(this).attr("y");if(d)n.y+=parseFloat(d)*n.scale}}if(!e.length){var g=(this.wholeText||"").replace(/\s/g,"");if(g.length){var v=this.nodeValue.replace(/^\s*/,"").replace(/^\n/,"").replace(/^\s*/,"").replace(/\n$/,"").replace(/\s*$/,"").replace(/\n$/,"");et.push({type:"text",style:this.parentNode,value:v,x:n.x,y:n.y})}}else if(e==="text"){var p=this.cloneNode(true);Ks(p).call(lA);et.push(Object.assign({},n,{type:"svg",value:p}))}else if(["image","img"].includes(e)){var y=Ks(this).attr("href")||Ks(this).attr("xlink:href");if(y.length){var m=parseFloat(Ks(this).attr("height"))*n.scale,_=parseFloat(Ks(this).attr("width"))*n.scale;var b={clip:n.clip,height:m,loaded:false,type:"img",width:_,x:n.x,y:n.y};et.push(b);var w=new Image;w.crossOrigin="Anonymous";w.onload=function(){var t=document.createElement("canvas");var e=t.getContext("2d");t.height=m*Y;t.width=_*Y;e.drawImage(this,0,0,_*Y,m*Y);var n=document.createElement("img");n.src=t.toDataURL("image/png");b.value=n;b.loaded=true};w.onerror=function(){b.loaded=true;b.value=false};w.src=y}}else if(!["svg","g","text"].includes(e)&&!Ks(this).selectAll("svg").size()){var x=K.scale*Y;var k={height:Math.floor(X+K.padding*2+tt),loaded:false,type:"html",width:Math.floor(Z+K.padding*2+Q),x:Math.floor($-Q),y:Math.floor(J-tt)};var S=document.createElement("canvas");S.width=k.width*x;S.height=k.height*x;S.style.width="".concat(k.width*x,"px");S.style.height="".concat(k.height*x,"px");var C=S.getContext("2d");C.scale(x,x);et.push(k);cA(Ks(this));p5(this,{allowTaint:true,canvas:S,letterRendering:true}).then(function(t){k.value=t;k.loaded=true})}else if(e!=="svg"&&this.childNodes.length>0&&!Ks(this).selectAll("image, img, svg").size()){var E=this.cloneNode(true);Ks(E).selectAll("*").each(function(){Ks(this).call(lA);if(Ks(this).attr("opacity")==="0")this.parentNode.removeChild(this)});et.push(Object.assign({},n,{type:"svg",value:E,tag:e}))}else if(this.childNodes.length>0){var A=_A(this),M=fA(A,3),R=M[0],T=M[1],O=M[2];n.scale*=R;n.x+=T;n.y+=O;nt(this,n)}else{var P=this.cloneNode(true);Ks(P).selectAll("*").each(function(){if(Ks(this).attr("opacity")==="0")this.parentNode.removeChild(this)});if(e==="line"){Ks(P).attr("x1",parseFloat(Ks(P).attr("x1"))+n.x);Ks(P).attr("x2",parseFloat(Ks(P).attr("x2"))+n.x);Ks(P).attr("y1",parseFloat(Ks(P).attr("y1"))+n.y);Ks(P).attr("y2",parseFloat(Ks(P).attr("y2"))+n.y)}else if(e==="path"){var B=_A(P),D=fA(B,3),N=D[0],z=D[1],F=D[2];if(Ks(P).attr("transform"))Ks(P).attr("transform","scale(".concat(N,")translate(").concat(z+n.x,",").concat(F+n.y,")"))}Ks(P).call(lA);var j=Ks(P).attr("fill");var I=j&&j.indexOf("url")===0;et.push(Object.assign({},n,{type:"svg",value:P,tag:e}));if(I){var L=Ks(j.slice(4,-1)).node().cloneNode(true);var H=(L.tagName||"").toLowerCase();if(H==="pattern"){var U=_A(P),G=fA(U,3),V=G[0],W=G[1],q=G[2];n.scale*=V;n.x+=W;n.y+=q;nt(L,n)}}}}function nt(t,e){Zs(t.childNodes).each(function(){r.bind(this)(e)})}for(var i=0;i<t.length;i++){var a=t[i],o={scale:1,x:0,y:0,svg:false};if(a.constructor===Object){o=Object.assign(o,a);a=a.element}$=o.x;J=o.y;r.bind(a)(o)}function s(){var t=true;for(var e=0;e<et.length;e++){if(et[e].loaded===false){t=false;break}}if(t)u();else setTimeout(s,500)}s();function u(){for(var t=0;t<et.length;t++){var e=et[t];var n=e.clip||{height:X,width:Z,x:0,y:0};switch(e.type){case"img":if(e.value){h.save();h.beginPath();h.translate(K.padding+n.x,K.padding+n.y);h.rect(0,0,n.width,n.height);h.clip();h.drawImage(e.value,e.x+n.x,e.y+n.y,e.width,e.height);h.restore()}break;case"html":h.save();h.beginPath();h.translate(K.padding,K.padding);h.drawImage(e.value,e.x,e.y,e.width,e.height);h.restore();break;case"text":var r=Ks(e.style);var i=e.value.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#039;");var a=r.style("color"),o=r.style("font-size");var s=r.style("font-family").split(",")[0];if(s.indexOf("'")!==0)s="'".concat(s,"'");var u="<text stroke='none' dy='".concat(o,"' fill='").concat(a,"' font-family=").concat(s," font-size='").concat(o,"'>").concat(i,"</text>");h.save();h.translate(K.padding,K.padding);uA(f,u,Object.assign({},mA,{offsetX:e.x,offsetY:e.y}));h.restore();break;case"svg":var l=c?(new XMLSerializer).serializeToString(e.value):e.value.outerHTML;h.save();h.translate(K.padding+n.x+e.x,K.padding+n.y+e.y);h.rect(0,0,n.width,n.height);h.clip();uA(f,l,Object.assign({},mA,{offsetX:e.x+n.x,offsetY:e.y+n.y}));h.restore();break;default:console.warn("uncaught",e);break}}K.callback(f)}}(function(t){var h=t.Uint8Array,e=t.HTMLCanvasElement,n=e&&e.prototype,u=/\s*;\s*base64\s*(?:;|$)/i,l="toDataURL",d,c=function t(e){var n=e.length,r=new h(n/4*3|0),i=0,a=0,o=[0,0],s=0,u=0,l,c,f;while(n--){c=e.charCodeAt(i++);l=d[c-43];if(l!==255&&l!==f){o[1]=o[0];o[0]=c;u=u<<6|l;s++;if(s===4){r[a++]=u>>>16;if(o[1]!==61){r[a++]=u>>>8}if(o[0]!==61){r[a++]=u}s=0}}}return r};if(h){d=new h([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(e&&(!n.toBlob||!n.toBlobHD)){if(!n.toBlob)n.toBlob=function(t,e){if(!e){e="image/png"}if(this.mozGetAsFile){t(this.mozGetAsFile("canvas",e));return}if(this.msToBlob&&/^\s*image\/png\s*(?:$|;)/i.test(e)){t(this.msToBlob());return}var n=Array.prototype.slice.call(arguments,1),r=this[l].apply(this,n),i=r.indexOf(","),a=r.substring(i+1),o=u.test(r.substring(0,i)),s;if(Blob.fake){s=new Blob;if(o){s.encoding="base64"}else{s.encoding="URI"}s.data=a;s.size=a.length}else if(h){if(o){s=new Blob([c(a)],{type:e})}else{s=new Blob([decodeURIComponent(a)],{type:e})}}t(s)};if(!n.toBlobHD&&n.toDataURLHD){n.toBlobHD=function(){l="toDataURLHD";var t=this.toBlob();l="toDataURL";return t}}else{n.toBlobHD=n.toBlob}}})(typeof self!=="undefined"&&self||typeof window!=="undefined"&&window||d5.content||d5);var wA=g5(function(t){var e=e||function(c){if(typeof c==="undefined"||typeof navigator!=="undefined"&&/MSIE [1-9]\./.test(navigator.userAgent)){return}var t=c.document,f=function t(){return c.URL||c.webkitURL||c},h=t.createElementNS("http://www.w3.org/1999/xhtml","a"),d="download"in h,g=function t(e){var n=new MouseEvent("click");e.dispatchEvent(n)},v=/constructor/i.test(c.HTMLElement)||c.safari,p=/CriOS\/[\d]+/.test(navigator.userAgent),o=function t(e){(c.setImmediate||c.setTimeout)(function(){throw e},0)},y="application/octet-stream",r=1e3*40,m=function t(e){var n=function t(){if(typeof e==="string"){f().revokeObjectURL(e)}else{e.remove()}};setTimeout(n,r)},_=function t(e,n,r){n=[].concat(n);var i=n.length;while(i--){var a=e["on"+n[i]];if(typeof a==="function"){try{a.call(e,r||e)}catch(t){o(t)}}}},b=function t(e){if(/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)){return new Blob([String.fromCharCode(65279),e],{type:e.type})}return e},i=function t(r,e,n){if(!n){r=b(r)}var i=this,a=r.type,o=a===y,s,u=function t(){_(i,"writestart progress write writeend".split(" "))},l=function t(){if((p||o&&v)&&c.FileReader){var n=new FileReader;n.onloadend=function(){var t=p?n.result:n.result.replace(/^data:[^;]*;/,"data:attachment/file;");var e=c.open(t,"_blank");if(!e)c.location.href=t;t=undefined;i.readyState=i.DONE;u()};n.readAsDataURL(r);i.readyState=i.INIT;return}if(!s){s=f().createObjectURL(r)}if(o){c.location.href=s}else{var e=c.open(s,"_blank");if(!e){c.location.href=s}}i.readyState=i.DONE;u();m(s)};i.readyState=i.INIT;if(d){s=f().createObjectURL(r);setTimeout(function(){h.href=s;h.download=e;g(h);u();m(s);i.readyState=i.DONE});return}l()},e=i.prototype,n=function t(e,n,r){return new i(e,n||e.name||"download",r)};if(typeof navigator!=="undefined"&&navigator.msSaveOrOpenBlob){return function(t,e,n){e=e||t.name||"download";if(!n){t=b(t)}return navigator.msSaveOrOpenBlob(t,e)}}e.abort=function(){};e.readyState=e.INIT=0;e.WRITING=1;e.DONE=2;e.error=e.onwritestart=e.onprogress=e.onwrite=e.onabort=e.onerror=e.onwriteend=null;return n}(typeof self!=="undefined"&&self||typeof window!=="undefined"&&window||d5.content);if(t.exports){t.exports.saveAs=e}});var xA={filename:"download",type:"png"};function kA(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var e=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};if(!t)return;n=Object.assign({},xA,n);var r=new RegExp(/(MSIE|Trident\/|Edge\/)/i).test(navigator.userAgent);if(!(t instanceof Array)&&n.type==="svg"){var i=t.cloneNode(true);Ks(i).call(lA);Ks(i).selectAll("*").each(function(){Ks(this).call(lA)});var a=r?(new XMLSerializer).serializeToString(i):i.outerHTML;wA.saveAs(new Blob([a],{type:"application/svg+xml"}),"".concat(n.filename,".svg"));if(n.callback)n.callback()}else{bA(t,Object.assign({},e,{callback:function t(e){if(["jpg","png"].includes(n.type)){e.toBlob(function(t){return wA.saveAs(t,"".concat(n.filename,".").concat(n.type))})}if(n.callback)n.callback()}}))}}function SA(t){t.preventDefault();t.stopImmediatePropagation()}function CA(t){var e=t.document.documentElement,n=Ks(t).on("dragstart.drag",SA,true);if("onselectstart"in e){n.on("selectstart.drag",SA,true)}else{e.__noselect=e.style.MozUserSelect;e.style.MozUserSelect="none"}}function EA(t,e){var n=t.document.documentElement,r=Ks(t).on("dragstart.drag",null);if(e){r.on("click.drag",SA,true);setTimeout(function(){r.on("click.drag",null)},0)}if("onselectstart"in n){r.on("selectstart.drag",null)}else{n.style.MozUserSelect=n.__noselect;delete n.__noselect}}var AA=function t(e){return function(){return e}};function MA(t,e){var n=e.sourceEvent,r=e.target,i=e.transform,a=e.dispatch;Object.defineProperties(this,{type:{value:t,enumerable:true,configurable:true},sourceEvent:{value:n,enumerable:true,configurable:true},target:{value:r,enumerable:true,configurable:true},transform:{value:i,enumerable:true,configurable:true},_:{value:a}})}function RA(t,e,n){this.k=t;this.x=e;this.y=n}RA.prototype={constructor:RA,scale:function t(e){return e===1?this:new RA(this.k*e,this.x,this.y)},translate:function t(e,n){return e===0&n===0?this:new RA(this.k,this.x+this.k*e,this.y+this.k*n)},apply:function t(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function t(e){return e*this.k+this.x},applyY:function t(e){return e*this.k+this.y},invert:function t(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function t(e){return(e-this.x)/this.k},invertY:function t(e){return(e-this.y)/this.k},rescaleX:function t(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function t(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function t(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var TA=new RA(1,0,0);OA.prototype=RA.prototype;function OA(t){while(!t.__zoom){if(!(t=t.parentNode))return TA}return t.__zoom}function PA(t){t.stopImmediatePropagation()}function BA(t){t.preventDefault();t.stopImmediatePropagation()}function DA(t){return(!t.ctrlKey||t.type==="wheel")&&!t.button}function NA(){var t=this;if(t instanceof SVGElement){t=t.ownerSVGElement||t;if(t.hasAttribute("viewBox")){t=t.viewBox.baseVal;return[[t.x,t.y],[t.x+t.width,t.y+t.height]]}return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}return[[0,0],[t.clientWidth,t.clientHeight]]}function zA(){return this.__zoom||TA}function FA(t){return-t.deltaY*(t.deltaMode===1?.05:t.deltaMode?1:.002)*(t.ctrlKey?10:1)}function jA(){return navigator.maxTouchPoints||"ontouchstart"in this}function IA(t,e,n){var r=t.invertX(e[0][0])-n[0][0],i=t.invertX(e[1][0])-n[1][0],a=t.invertY(e[0][1])-n[0][1],o=t.invertY(e[1][1])-n[1][1];return t.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function LA(){var h=DA,d=NA,y=IA,l=FA,e=jA,c=[0,Infinity],m=[[-Infinity,-Infinity],[Infinity,Infinity]],f=250,g=wr,r=Js("start","zoom","end"),v,p,_,b=500,w=150,x=0,k=10;function S(t){t.property("__zoom",zA).on("wheel.zoom",n).on("mousedown.zoom",a).on("dblclick.zoom",o).filter(e).on("touchstart.zoom",s).on("touchmove.zoom",u).on("touchend.zoom touchcancel.zoom",T).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}S.transform=function(t,e,n,r){var i=t.selection?t.selection():t;i.property("__zoom",zA);if(t!==i){M(t,e,n,r)}else{i.interrupt().each(function(){R(this,arguments).event(r).start().zoom(null,typeof e==="function"?e.apply(this,arguments):e).end()})}};S.scaleBy=function(t,n,e,r){S.scaleTo(t,function(){var t=this.__zoom.k,e=typeof n==="function"?n.apply(this,arguments):n;return t*e},e,r)};S.scaleTo=function(t,a,o,e){S.transform(t,function(){var t=d.apply(this,arguments),e=this.__zoom,n=o==null?A(t):typeof o==="function"?o.apply(this,arguments):o,r=e.invert(n),i=typeof a==="function"?a.apply(this,arguments):a;return y(E(C(e,i),n,r),t,m)},o,e)};S.translateBy=function(t,e,n,r){S.transform(t,function(){return y(this.__zoom.translate(typeof e==="function"?e.apply(this,arguments):e,typeof n==="function"?n.apply(this,arguments):n),d.apply(this,arguments),m)},null,r)};S.translateTo=function(t,r,i,a,e){S.transform(t,function(){var t=d.apply(this,arguments),e=this.__zoom,n=a==null?A(t):typeof a==="function"?a.apply(this,arguments):a;return y(TA.translate(n[0],n[1]).scale(e.k).translate(typeof r==="function"?-r.apply(this,arguments):-r,typeof i==="function"?-i.apply(this,arguments):-i),t,m)},a,e)};function C(t,e){e=Math.max(c[0],Math.min(c[1],e));return e===t.k?t:new RA(e,t.x,t.y)}function E(t,e,n){var r=e[0]-n[0]*t.k,i=e[1]-n[1]*t.k;return r===t.x&&i===t.y?t:new RA(t.k,r,i)}function A(t){return[(+t[0][0]+ +t[1][0])/2,(+t[0][1]+ +t[1][1])/2]}function M(t,l,c,f){t.on("start.zoom",function(){R(this,arguments).event(f).start()}).on("interrupt.zoom end.zoom",function(){R(this,arguments).event(f).end()}).tween("zoom",function(){var t=this,e=arguments,r=R(t,e).event(f),n=d.apply(t,e),i=c==null?A(n):typeof c==="function"?c.apply(t,e):c,a=Math.max(n[1][0]-n[0][0],n[1][1]-n[0][1]),o=t.__zoom,s=typeof l==="function"?l.apply(t,e):l,u=g(o.invert(i).concat(a/o.k),s.invert(i).concat(a/s.k));return function(t){if(t===1)t=s;else{var e=u(t),n=a/e[2];t=new RA(n,i[0]-e[0]*n,i[1]-e[1]*n)}r.zoom(null,t)}})}function R(t,e,n){return!n&&t.__zooming||new i(t,e)}function i(t,e){this.that=t;this.args=e;this.active=0;this.sourceEvent=null;this.extent=d.apply(t,e);this.taps=0}i.prototype={event:function(e){function t(t){return e.apply(this,arguments)}t.toString=function(){return e.toString()};return t}(function(t){if(t)this.sourceEvent=t;return this}),start:function t(){if(++this.active===1){this.that.__zooming=this;this.emit("start")}return this},zoom:function t(e,n){if(this.mouse&&e!=="mouse")this.mouse[1]=n.invert(this.mouse[0]);if(this.touch0&&e!=="touch")this.touch0[1]=n.invert(this.touch0[0]);if(this.touch1&&e!=="touch")this.touch1[1]=n.invert(this.touch1[0]);this.that.__zoom=n;this.emit("zoom");return this},end:function t(){if(--this.active===0){delete this.that.__zooming;this.emit("end")}return this},emit:function t(e){var n=Ks(this.that).datum();r.call(e,this.that,new MA(e,{sourceEvent:this.sourceEvent,target:S,type:e,transform:this.that.__zoom,dispatch:r}),n)}};function n(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++){n[r-1]=arguments[r]}if(!h.apply(this,arguments))return;var i=R(this,n).event(t),a=this.__zoom,o=Math.max(c[0],Math.min(c[1],a.k*Math.pow(2,l.apply(this,arguments)))),s=Xs(t);if(i.wheel){if(i.mouse[0][0]!==s[0]||i.mouse[0][1]!==s[1]){i.mouse[1]=a.invert(i.mouse[0]=s)}clearTimeout(i.wheel)}else if(a.k===o)return;else{i.mouse=[s,a.invert(s)];ju(this);i.start()}BA(t);i.wheel=setTimeout(u,w);i.zoom("mouse",y(E(C(a,o),i.mouse[0],i.mouse[1]),i.extent,m));function u(){i.wheel=null;i.end()}}function a(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++){n[r-1]=arguments[r]}if(_||!h.apply(this,arguments))return;var i=R(this,n,true).event(t),a=Ks(t.view).on("mousemove.zoom",c,true).on("mouseup.zoom",f,true),o=Xs(t,s),s=t.currentTarget,u=t.clientX,l=t.clientY;CA(t.view);PA(t);i.mouse=[o,this.__zoom.invert(o)];ju(this);i.start();function c(t){BA(t);if(!i.moved){var e=t.clientX-u,n=t.clientY-l;i.moved=e*e+n*n>x}i.event(t).zoom("mouse",y(E(i.that.__zoom,i.mouse[0]=Xs(t,s),i.mouse[1]),i.extent,m))}function f(t){a.on("mousemove.zoom mouseup.zoom",null);EA(t.view,i.moved);BA(t);i.event(t).end()}}function o(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++){n[r-1]=arguments[r]}if(!h.apply(this,arguments))return;var i=this.__zoom,a=Xs(t.changedTouches?t.changedTouches[0]:t,this),o=i.invert(a),s=i.k*(t.shiftKey?.5:2),u=y(E(C(i,s),a,o),d.apply(this,n),m);BA(t);if(f>0)Ks(this).transition().duration(f).call(M,u,a,t);else Ks(this).call(S.transform,u,a,t)}function s(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++){n[r-1]=arguments[r]}if(!h.apply(this,arguments))return;var i=t.touches,a=i.length,o=R(this,n,t.changedTouches.length===a).event(t),s,u,l,c;PA(t);for(u=0;u<a;++u){l=i[u],c=Xs(l,this);c=[c,this.__zoom.invert(c),l.identifier];if(!o.touch0)o.touch0=c,s=true,o.taps=1+!!v;else if(!o.touch1&&o.touch0[2]!==c[2])o.touch1=c,o.taps=0}if(v)v=clearTimeout(v);if(s){if(o.taps<2)p=c[0],v=setTimeout(function(){v=null},b);ju(this);o.start()}}function u(t){if(!this.__zooming)return;for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++){n[r-1]=arguments[r]}var i=R(this,n).event(t),a=t.changedTouches,o=a.length,s,u,l,c;BA(t);for(s=0;s<o;++s){u=a[s],l=Xs(u,this);if(i.touch0&&i.touch0[2]===u.identifier)i.touch0[0]=l;else if(i.touch1&&i.touch1[2]===u.identifier)i.touch1[0]=l}u=i.that.__zoom;if(i.touch1){var f=i.touch0[0],h=i.touch0[1],d=i.touch1[0],g=i.touch1[1],v=(v=d[0]-f[0])*v+(v=d[1]-f[1])*v,p=(p=g[0]-h[0])*p+(p=g[1]-h[1])*p;u=C(u,Math.sqrt(v/p));l=[(f[0]+d[0])/2,(f[1]+d[1])/2];c=[(h[0]+g[0])/2,(h[1]+g[1])/2]}else if(i.touch0)l=i.touch0[0],c=i.touch0[1];else return;i.zoom("touch",y(E(u,l,c),i.extent,m))}function T(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++){n[r-1]=arguments[r]}if(!this.__zooming)return;var i=R(this,n).event(t),a=t.changedTouches,o=a.length,s,u;PA(t);if(_)clearTimeout(_);_=setTimeout(function(){_=null},b);for(s=0;s<o;++s){u=a[s];if(i.touch0&&i.touch0[2]===u.identifier)delete i.touch0;else if(i.touch1&&i.touch1[2]===u.identifier)delete i.touch1}if(i.touch1&&!i.touch0)i.touch0=i.touch1,delete i.touch1;if(i.touch0)i.touch0[1]=this.__zoom.invert(i.touch0[0]);else{i.end();if(i.taps===2){u=Xs(u,this);if(Math.hypot(p[0]-u[0],p[1]-u[1])<k){var l=Ks(this).on("dblclick.zoom");if(l)l.apply(this,arguments)}}}}S.wheelDelta=function(t){return arguments.length?(l=typeof t==="function"?t:AA(+t),S):l};S.filter=function(t){return arguments.length?(h=typeof t==="function"?t:AA(!!t),S):h};S.touchable=function(t){return arguments.length?(e=typeof t==="function"?t:AA(!!t),S):e};S.extent=function(t){return arguments.length?(d=typeof t==="function"?t:AA([[+t[0][0],+t[0][1]],[+t[1][0],+t[1][1]]]),S):d};S.scaleExtent=function(t){return arguments.length?(c[0]=+t[0],c[1]=+t[1],S):[c[0],c[1]]};S.translateExtent=function(t){return arguments.length?(m[0][0]=+t[0][0],m[1][0]=+t[1][0],m[0][1]=+t[0][1],m[1][1]=+t[1][1],S):[[m[0][0],m[0][1]],[m[1][0],m[1][1]]]};S.constrain=function(t){return arguments.length?(y=t,S):y};S.duration=function(t){return arguments.length?(f=+t,S):f};S.interpolate=function(t){return arguments.length?(g=t,S):g};S.on=function(){var t=r.on.apply(r,arguments);return t===r?S:t};S.clickDistance=function(t){return arguments.length?(x=(t=+t)*t,S):Math.sqrt(x)};S.tapDistance=function(t){return arguments.length?(k=+t,S):k};return S}var HA=1e-6;var UA=1e-12;var GA=Math.PI;var VA=GA/2;var WA=GA/4;var qA=GA*2;var KA=180/GA;var YA=GA/180;var XA=Math.abs;var ZA=Math.atan;var $A=Math.atan2;var JA=Math.cos;var QA=Math.ceil;var tM=Math.exp;var eM=Math.hypot;var nM=Math.log;var rM=Math.pow;var iM=Math.sin;var aM=Math.sign||function(t){return t>0?1:t<0?-1:0};var oM=Math.sqrt;var sM=Math.tan;function uM(t){return t>1?0:t<-1?GA:Math.acos(t)}function lM(t){return t>1?VA:t<-1?-VA:Math.asin(t)}function cM(t){return(t=iM(t/2))*t}function fM(){}function hM(t,e){if(t&&gM.hasOwnProperty(t.type)){gM[t.type](t,e)}}var dM={Feature:function t(e,n){hM(e.geometry,n)},FeatureCollection:function t(e,n){var r=e.features,i=-1,a=r.length;while(++i<a){hM(r[i].geometry,n)}}};var gM={Sphere:function t(e,n){n.sphere()},Point:function t(e,n){e=e.coordinates;n.point(e[0],e[1],e[2])},MultiPoint:function t(e,n){var r=e.coordinates,i=-1,a=r.length;while(++i<a){e=r[i],n.point(e[0],e[1],e[2])}},LineString:function t(e,n){vM(e.coordinates,n,0)},MultiLineString:function t(e,n){var r=e.coordinates,i=-1,a=r.length;while(++i<a){vM(r[i],n,0)}},Polygon:function t(e,n){pM(e.coordinates,n)},MultiPolygon:function t(e,n){var r=e.coordinates,i=-1,a=r.length;while(++i<a){pM(r[i],n)}},GeometryCollection:function t(e,n){var r=e.geometries,i=-1,a=r.length;while(++i<a){hM(r[i],n)}}};function vM(t,e,n){var r=-1,i=t.length-n,a;e.lineStart();while(++r<i){a=t[r],e.point(a[0],a[1],a[2])}e.lineEnd()}function pM(t,e){var n=-1,r=t.length;e.polygonStart();while(++n<r){vM(t[n],e,1)}e.polygonEnd()}function yM(t,e){if(t&&dM.hasOwnProperty(t.type)){dM[t.type](t,e)}else{hM(t,e)}}var mM=new P;var _M=new P,bM,wM,xM,kM,SM;var CM={point:fM,lineStart:fM,lineEnd:fM,polygonStart:function t(){mM=new P;CM.lineStart=EM;CM.lineEnd=AM},polygonEnd:function t(){var e=+mM;_M.add(e<0?qA+e:e);this.lineStart=this.lineEnd=this.point=fM},sphere:function t(){_M.add(qA)}};function EM(){CM.point=MM}function AM(){RM(bM,wM)}function MM(t,e){CM.point=RM;bM=t,wM=e;t*=YA,e*=YA;xM=t,kM=JA(e=e/2+WA),SM=iM(e)}function RM(t,e){t*=YA,e*=YA;e=e/2+WA;var n=t-xM,r=n>=0?1:-1,i=r*n,a=JA(e),o=iM(e),s=SM*o,u=kM*a+s*JA(i),l=s*r*iM(i);mM.add($A(l,u));xM=t,kM=a,SM=o}function TM(t){_M=new P;yM(t,CM);return _M*2}function OM(t){return[$A(t[1],t[0]),lM(t[2])]}function PM(t){var e=t[0],n=t[1],r=JA(n);return[r*JA(e),r*iM(e),iM(n)]}function BM(t,e){return t[0]*e[0]+t[1]*e[1]+t[2]*e[2]}function DM(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function NM(t,e){t[0]+=e[0],t[1]+=e[1],t[2]+=e[2]}function zM(t,e){return[t[0]*e,t[1]*e,t[2]*e]}function FM(t){var e=oM(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=e,t[1]/=e,t[2]/=e}var jM,IM,LM,HM,UM,GM,VM,WM,qM,KM,YM;var XM={point:ZM,lineStart:JM,lineEnd:QM,polygonStart:function t(){XM.point=tR;XM.lineStart=eR;XM.lineEnd=nR;qM=new P;CM.polygonStart()},polygonEnd:function t(){CM.polygonEnd();XM.point=ZM;XM.lineStart=JM;XM.lineEnd=QM;if(mM<0)jM=-(LM=180),IM=-(HM=90);else if(qM>HA)HM=90;else if(qM<-HA)IM=-90;YM[0]=jM,YM[1]=LM},sphere:function t(){jM=-(LM=180),IM=-(HM=90)}};function ZM(t,e){KM.push(YM=[jM=t,LM=t]);if(e<IM)IM=e;if(e>HM)HM=e}function $M(t,e){var n=PM([t*YA,e*YA]);if(WM){var r=DM(WM,n),i=[r[1],-r[0],0],a=DM(i,r);FM(a);a=OM(a);var o=t-UM,s=o>0?1:-1,u=a[0]*KA*s,l,c=XA(o)>180;if(c^(s*UM<u&&u<s*t)){l=a[1]*KA;if(l>HM)HM=l}else if(u=(u+360)%360-180,c^(s*UM<u&&u<s*t)){l=-a[1]*KA;if(l<IM)IM=l}else{if(e<IM)IM=e;if(e>HM)HM=e}if(c){if(t<UM){if(rR(jM,t)>rR(jM,LM))LM=t}else{if(rR(t,LM)>rR(jM,LM))jM=t}}else{if(LM>=jM){if(t<jM)jM=t;if(t>LM)LM=t}else{if(t>UM){if(rR(jM,t)>rR(jM,LM))LM=t}else{if(rR(t,LM)>rR(jM,LM))jM=t}}}}else{KM.push(YM=[jM=t,LM=t])}if(e<IM)IM=e;if(e>HM)HM=e;WM=n,UM=t}function JM(){XM.point=$M}function QM(){YM[0]=jM,YM[1]=LM;XM.point=ZM;WM=null}function tR(t,e){if(WM){var n=t-UM;qM.add(XA(n)>180?n+(n>0?360:-360):n)}else{GM=t,VM=e}CM.point(t,e);$M(t,e)}function eR(){CM.lineStart()}function nR(){tR(GM,VM);CM.lineEnd();if(XA(qM)>HA)jM=-(LM=180);YM[0]=jM,YM[1]=LM;WM=null}function rR(t,e){return(e-=t)<0?e+360:e}function iR(t,e){return t[0]-e[0]}function aR(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:e<t[0]||t[1]<e}function oR(t){var e,n,r,i,a,o,s;HM=LM=-(jM=IM=Infinity);KM=[];yM(t,XM);if(n=KM.length){KM.sort(iR);for(e=1,r=KM[0],a=[r];e<n;++e){i=KM[e];if(aR(r,i[0])||aR(r,i[1])){if(rR(r[0],i[1])>rR(r[0],r[1]))r[1]=i[1];if(rR(i[0],r[1])>rR(r[0],r[1]))r[0]=i[0]}else{a.push(r=i)}}for(o=-Infinity,n=a.length-1,e=0,r=a[n];e<=n;r=i,++e){i=a[e];if((s=rR(r[1],i[0]))>o)o=s,jM=i[0],LM=r[1]}}KM=YM=null;return jM===Infinity||IM===Infinity?[[NaN,NaN],[NaN,NaN]]:[[jM,IM],[LM,HM]]}var sR,uR,lR,cR,fR,hR,dR,gR,vR,pR,yR,mR,_R,bR,wR,xR;var kR={sphere:fM,point:SR,lineStart:ER,lineEnd:RR,polygonStart:function t(){kR.lineStart=TR;kR.lineEnd=OR},polygonEnd:function t(){kR.lineStart=ER;kR.lineEnd=RR}};function SR(t,e){t*=YA,e*=YA;var n=JA(e);CR(n*JA(t),n*iM(t),iM(e))}function CR(t,e,n){++sR;lR+=(t-lR)/sR;cR+=(e-cR)/sR;fR+=(n-fR)/sR}function ER(){kR.point=AR}function AR(t,e){t*=YA,e*=YA;var n=JA(e);bR=n*JA(t);wR=n*iM(t);xR=iM(e);kR.point=MR;CR(bR,wR,xR)}function MR(t,e){t*=YA,e*=YA;var n=JA(e),r=n*JA(t),i=n*iM(t),a=iM(e),o=$A(oM((o=wR*a-xR*i)*o+(o=xR*r-bR*a)*o+(o=bR*i-wR*r)*o),bR*r+wR*i+xR*a);uR+=o;hR+=o*(bR+(bR=r));dR+=o*(wR+(wR=i));gR+=o*(xR+(xR=a));CR(bR,wR,xR)}function RR(){kR.point=SR}function TR(){kR.point=PR}function OR(){BR(mR,_R);kR.point=SR}function PR(t,e){mR=t,_R=e;t*=YA,e*=YA;kR.point=BR;var n=JA(e);bR=n*JA(t);wR=n*iM(t);xR=iM(e);CR(bR,wR,xR)}function BR(t,e){t*=YA,e*=YA;var n=JA(e),r=n*JA(t),i=n*iM(t),a=iM(e),o=wR*a-xR*i,s=xR*r-bR*a,u=bR*i-wR*r,l=eM(o,s,u),c=lM(l),f=l&&-c/l;vR.add(f*o);pR.add(f*s);yR.add(f*u);uR+=c;hR+=c*(bR+(bR=r));dR+=c*(wR+(wR=i));gR+=c*(xR+(xR=a));CR(bR,wR,xR)}function DR(t){sR=uR=lR=cR=fR=hR=dR=gR=0;vR=new P;pR=new P;yR=new P;yM(t,kR);var e=+vR,n=+pR,r=+yR,i=eM(e,n,r);if(i<UA){e=hR,n=dR,r=gR;if(uR<HA)e=lR,n=cR,r=fR;i=eM(e,n,r);if(i<UA)return[NaN,NaN]}return[$A(n,e)*KA,lM(r/i)*KA]}function NR(t){return function(){return t}}function zR(n,r){function t(t,e){return t=n(t,e),r(t[0],t[1])}if(n.invert&&r.invert)t.invert=function(t,e){return t=r.invert(t,e),t&&n.invert(t[0],t[1])};return t}function FR(t,e){return[XA(t)>GA?t+Math.round(-t/qA)*qA:t,e]}FR.invert=FR;function jR(t,e,n){return(t%=qA)?e||n?zR(LR(t),HR(e,n)):LR(t):e||n?HR(e,n):FR}function IR(n){return function(t,e){return t+=n,[t>GA?t-qA:t<-GA?t+qA:t,e]}}function LR(t){var e=IR(t);e.invert=IR(-t);return e}function HR(t,e){var s=JA(t),u=iM(t),l=JA(e),c=iM(e);function n(t,e){var n=JA(e),r=JA(t)*n,i=iM(t)*n,a=iM(e),o=a*s+r*u;return[$A(i*l-o*c,r*s-a*u),lM(o*l+i*c)]}n.invert=function(t,e){var n=JA(e),r=JA(t)*n,i=iM(t)*n,a=iM(e),o=a*l-i*c;return[$A(i*l+a*c,r*s+o*u),lM(o*s-r*u)]};return n}function UR(e){e=jR(e[0]*YA,e[1]*YA,e.length>2?e[2]*YA:0);function t(t){t=e(t[0]*YA,t[1]*YA);return t[0]*=KA,t[1]*=KA,t}t.invert=function(t){t=e.invert(t[0]*YA,t[1]*YA);return t[0]*=KA,t[1]*=KA,t};return t}function GR(t,e,n,r,i,a){if(!n)return;var o=JA(e),s=iM(e),u=r*n;if(i==null){i=e+r*qA;a=e-u/2}else{i=VR(o,i);a=VR(o,a);if(r>0?i<a:i>a)i+=r*qA}for(var l,c=i;r>0?c>a:c<a;c-=u){l=OM([o,-s*JA(c),-s*iM(c)]);t.point(l[0],l[1])}}function VR(t,e){e=PM(e),e[0]-=t;FM(e);var n=uM(-e[1]);return((-e[2]<0?-n:n)+qA-HA)%qA}function WR(){var r=NR([0,0]),i=NR(90),a=NR(6),o,s,u={point:t};function t(t,e){o.push(t=s(t,e));t[0]*=KA,t[1]*=KA}function e(){var t=r.apply(this,arguments),e=i.apply(this,arguments)*YA,n=a.apply(this,arguments)*YA;o=[];s=jR(-t[0]*YA,-t[1]*YA,0).invert;GR(u,e,n,1);t={type:"Polygon",coordinates:[o]};o=s=null;return t}e.center=function(t){return arguments.length?(r=typeof t==="function"?t:NR([+t[0],+t[1]]),e):r};e.radius=function(t){return arguments.length?(i=typeof t==="function"?t:NR(+t),e):i};e.precision=function(t){return arguments.length?(a=typeof t==="function"?t:NR(+t),e):a};return e}function qR(){var e=[],i;return{point:function t(e,n,r){i.push([e,n,r])},lineStart:function t(){e.push(i=[])},lineEnd:fM,rejoin:function t(){if(e.length>1)e.push(e.pop().concat(e.shift()))},result:function t(){var t=e;e=[];i=null;return t}}}function KR(t,e){return XA(t[0]-e[0])<HA&&XA(t[1]-e[1])<HA}function YR(t,e,n,r){this.x=t;this.z=e;this.o=n;this.e=r;this.v=false;this.n=this.p=null}function XR(t,e,n,r,a){var o=[],s=[],u,i;t.forEach(function(t){if((e=t.length-1)<=0)return;var e,n=t[0],r=t[e],i;if(KR(n,r)){if(!n[2]&&!r[2]){a.lineStart();for(u=0;u<e;++u){a.point((n=t[u])[0],n[1])}a.lineEnd();return}r[0]+=2*HA}o.push(i=new YR(n,t,null,true));s.push(i.o=new YR(n,null,i,false));o.push(i=new YR(r,t,null,false));s.push(i.o=new YR(r,null,i,true))});if(!o.length)return;s.sort(e);ZR(o);ZR(s);for(u=0,i=s.length;u<i;++u){s[u].e=n=!n}var l=o[0],c,f;while(1){var h=l,d=true;while(h.v){if((h=h.n)===l)return}c=h.z;a.lineStart();do{h.v=h.o.v=true;if(h.e){if(d){for(u=0,i=c.length;u<i;++u){a.point((f=c[u])[0],f[1])}}else{r(h.x,h.n.x,1,a)}h=h.n}else{if(d){c=h.p.z;for(u=c.length-1;u>=0;--u){a.point((f=c[u])[0],f[1])}}else{r(h.x,h.p.x,-1,a)}h=h.p}h=h.o;c=h.z;d=!d}while(!h.v);a.lineEnd()}}function ZR(t){if(!(e=t.length))return;var e,n=0,r=t[0],i;while(++n<e){r.n=i=t[n];i.p=r;r=i}r.n=i=t[0];i.p=r}function $R(t){if(XA(t[0])<=GA)return t[0];else return aM(t[0])*((XA(t[0])+GA)%qA-GA)}function JR(t,e){var n=$R(e),r=e[1],i=iM(r),a=[iM(n),-JA(n),0],o=0,s=0;var u=new P;if(i===1)r=VA+HA;else if(i===-1)r=-VA-HA;for(var l=0,c=t.length;l<c;++l){if(!(h=(f=t[l]).length))continue;var f,h,d=f[h-1],g=$R(d),v=d[1]/2+WA,p=iM(v),y=JA(v);for(var m=0;m<h;++m,g=b,p=x,y=k,d=_){var _=f[m],b=$R(_),w=_[1]/2+WA,x=iM(w),k=JA(w),S=b-g,C=S>=0?1:-1,E=C*S,A=E>GA,M=p*x;u.add($A(M*C*iM(E),y*k+M*JA(E)));o+=A?S+C*qA:S;if(A^g>=n^b>=n){var R=DM(PM(d),PM(_));FM(R);var T=DM(a,R);FM(T);var O=(A^S>=0?-1:1)*lM(T[2]);if(r>O||r===O&&(R[0]||R[1])){s+=A^S>=0?1:-1}}}}return(o<-HA||o<HA&&u<-UA)^s&1}function QR(p,y,m,_){return function(s){var n=y(s),u=qR(),l=y(u),c=false,f,h,d;var r={point:i,lineStart:a,lineEnd:o,polygonStart:function t(){r.point=g;r.lineStart=e;r.lineEnd=v;h=[];f=[]},polygonEnd:function t(){r.point=i;r.lineStart=a;r.lineEnd=o;h=Ae(h);var e=JR(f,_);if(h.length){if(!c)s.polygonStart(),c=true;XR(h,eT,e,m,s)}else if(e){if(!c)s.polygonStart(),c=true;s.lineStart();m(null,null,1,s);s.lineEnd()}if(c)s.polygonEnd(),c=false;h=f=null},sphere:function t(){s.polygonStart();s.lineStart();m(null,null,1,s);s.lineEnd();s.polygonEnd()}};function i(t,e){if(p(t,e))s.point(t,e)}function t(t,e){n.point(t,e)}function a(){r.point=t;n.lineStart()}function o(){r.point=i;n.lineEnd()}function g(t,e){d.push([t,e]);l.point(t,e)}function e(){l.lineStart();d=[]}function v(){g(d[0][0],d[0][1]);l.lineEnd();var t=l.clean(),e=u.result(),n,r=e.length,i,a,o;d.pop();f.push(d);d=null;if(!r)return;if(t&1){a=e[0];if((i=a.length-1)>0){if(!c)s.polygonStart(),c=true;s.lineStart();for(n=0;n<i;++n){s.point((o=a[n])[0],o[1])}s.lineEnd()}return}if(r>1&&t&2)e.push(e.pop().concat(e.shift()));h.push(e.filter(tT))}return r}}function tT(t){return t.length>1}function eT(t,e){return((t=t.x)[0]<0?t[1]-VA-HA:VA-t[1])-((e=e.x)[0]<0?e[1]-VA-HA:VA-e[1])}var nT=QR(function(){return true},rT,aT,[-GA,-VA]);function rT(a){var o=NaN,s=NaN,u=NaN,l;return{lineStart:function t(){a.lineStart();l=1},point:function t(e,n){var r=e>0?GA:-GA,i=XA(e-o);if(XA(i-GA)<HA){a.point(o,s=(s+n)/2>0?VA:-VA);a.point(u,s);a.lineEnd();a.lineStart();a.point(r,s);a.point(e,s);l=0}else if(u!==r&&i>=GA){if(XA(o-u)<HA)o-=u*HA;if(XA(e-r)<HA)e-=r*HA;s=iT(o,s,e,n);a.point(u,s);a.lineEnd();a.lineStart();a.point(r,s);l=0}a.point(o=e,s=n);u=r},lineEnd:function t(){a.lineEnd();o=s=NaN},clean:function t(){return 2-l}}}function iT(t,e,n,r){var i,a,o=iM(t-n);return XA(o)>HA?ZA((iM(e)*(a=JA(r))*iM(n)-iM(r)*(i=JA(e))*iM(t))/(i*a*o)):(e+r)/2}function aT(t,e,n,r){var i;if(t==null){i=n*VA;r.point(-GA,i);r.point(0,i);r.point(GA,i);r.point(GA,0);r.point(GA,-i);r.point(0,-i);r.point(-GA,-i);r.point(-GA,0);r.point(-GA,i)}else if(XA(t[0]-e[0])>HA){var a=t[0]<e[0]?GA:-GA;i=n*a/2;r.point(-a,i);r.point(0,i);r.point(a,i)}else{r.point(e[0],e[1])}}function oT(i){var T=JA(i),a=6*YA,g=T>0,v=XA(T)>HA;function t(t,e,n,r){GR(r,i,a,n,t,e)}function p(t,e){return JA(t)*JA(e)>T}function e(u){var l,c,f,h,d;return{lineStart:function t(){h=f=false;d=1},point:function t(e,n){var r=[e,n],i,a=p(e,n),o=g?a?0:m(e,n):a?m(e+(e<0?GA:-GA),n):0;if(!l&&(h=f=a))u.lineStart();if(a!==f){i=y(l,r);if(!i||KR(l,i)||KR(r,i))r[2]=1}if(a!==f){d=0;if(a){u.lineStart();i=y(r,l);u.point(i[0],i[1])}else{i=y(l,r);u.point(i[0],i[1],2);u.lineEnd()}l=i}else if(v&&l&&g^a){var s;if(!(o&c)&&(s=y(r,l,true))){d=0;if(g){u.lineStart();u.point(s[0][0],s[0][1]);u.point(s[1][0],s[1][1]);u.lineEnd()}else{u.point(s[1][0],s[1][1]);u.lineEnd();u.lineStart();u.point(s[0][0],s[0][1],3)}}}if(a&&(!l||!KR(l,r))){u.point(r[0],r[1])}l=r,f=a,c=o},lineEnd:function t(){if(f)u.lineEnd();l=null},clean:function t(){return d|(h&&f)<<1}}}function y(t,e,n){var r=PM(t),i=PM(e);var a=[1,0,0],o=DM(r,i),s=BM(o,o),u=o[0],l=s-u*u;if(!l)return!n&&t;var c=T*s/l,f=-T*u/l,h=DM(a,o),d=zM(a,c),g=zM(o,f);NM(d,g);var v=h,p=BM(d,v),y=BM(v,v),m=p*p-y*(BM(d,d)-1);if(m<0)return;var _=oM(m),b=zM(v,(-p-_)/y);NM(b,d);b=OM(b);if(!n)return b;var w=t[0],x=e[0],k=t[1],S=e[1],C;if(x<w)C=w,w=x,x=C;var E=x-w,A=XA(E-GA)<HA,M=A||E<HA;if(!A&&S<k)C=k,k=S,S=C;if(M?A?k+S>0^b[1]<(XA(b[0]-w)<HA?k:S):k<=b[1]&&b[1]<=S:E>GA^(w<=b[0]&&b[0]<=x)){var R=zM(v,(-p+_)/y);NM(R,d);return[b,OM(R)]}}function m(t,e){var n=g?i:GA-i,r=0;if(t<-n)r|=1;else if(t>n)r|=2;if(e<-n)r|=4;else if(e>n)r|=8;return r}return QR(p,e,t,g?[0,-i]:[-GA,i-GA])}function sT(t,e,n,r,i,a){var o=t[0],s=t[1],u=e[0],l=e[1],c=0,f=1,h=u-o,d=l-s,g;g=n-o;if(!h&&g>0)return;g/=h;if(h<0){if(g<c)return;if(g<f)f=g}else if(h>0){if(g>f)return;if(g>c)c=g}g=i-o;if(!h&&g<0)return;g/=h;if(h<0){if(g>f)return;if(g>c)c=g}else if(h>0){if(g<c)return;if(g<f)f=g}g=r-s;if(!d&&g>0)return;g/=d;if(d<0){if(g<c)return;if(g<f)f=g}else if(d>0){if(g>f)return;if(g>c)c=g}g=a-s;if(!d&&g<0)return;g/=d;if(d<0){if(g>f)return;if(g>c)c=g}else if(d>0){if(g<c)return;if(g<f)f=g}if(c>0)t[0]=o+c*h,t[1]=s+c*d;if(f<1)e[0]=o+f*h,e[1]=s+f*d;return true}var uT=1e9,lT=-uT;function cT(x,k,S,C){function E(t,e){return x<=t&&t<=S&&k<=e&&e<=C}function A(t,e,n,r){var i=0,a=0;if(t==null||(i=o(t,n))!==(a=o(e,n))||s(t,e)<0^n>0){do{r.point(i===0||i===3?x:S,i>1?C:k)}while((i=(i+n+4)%4)!==a)}else{r.point(e[0],e[1])}}function o(t,e){return XA(t[0]-x)<HA?e>0?0:3:XA(t[0]-S)<HA?e>0?2:1:XA(t[1]-k)<HA?e>0?1:0:e>0?3:2}function M(t,e){return s(t.x,e.x)}function s(t,e){var n=o(t,1),r=o(e,1);return n!==r?n-r:n===0?e[1]-t[1]:n===1?t[0]-e[0]:n===2?t[1]-e[1]:e[0]-t[0]}return function(r){var a=r,t=qR(),i,f,o,s,u,l,c,h,d,g,v;var e={point:n,lineStart:_,lineEnd:b,polygonStart:y,polygonEnd:m};function n(t,e){if(E(t,e))a.point(t,e)}function p(){var t=0;for(var e=0,n=f.length;e<n;++e){for(var r=f[e],i=1,a=r.length,o=r[0],s,u,l=o[0],c=o[1];i<a;++i){s=l,u=c,o=r[i],l=o[0],c=o[1];if(u<=C){if(c>C&&(l-s)*(C-u)>(c-u)*(x-s))++t}else{if(c<=C&&(l-s)*(C-u)<(c-u)*(x-s))--t}}}return t}function y(){a=t,i=[],f=[],v=true}function m(){var t=p(),e=v&&t,n=(i=Ae(i)).length;if(e||n){r.polygonStart();if(e){r.lineStart();A(null,null,1,r);r.lineEnd()}if(n){XR(i,M,t,A,r)}r.polygonEnd()}a=r,i=f=o=null}function _(){e.point=w;if(f)f.push(o=[]);g=true;d=false;c=h=NaN}function b(){if(i){w(s,u);if(l&&d)t.rejoin();i.push(t.result())}e.point=n;if(d)a.lineEnd()}function w(t,e){var n=E(t,e);if(f)o.push([t,e]);if(g){s=t,u=e,l=n;g=false;if(n){a.lineStart();a.point(t,e)}}else{if(n&&d)a.point(t,e);else{var r=[c=Math.max(lT,Math.min(uT,c)),h=Math.max(lT,Math.min(uT,h))],i=[t=Math.max(lT,Math.min(uT,t)),e=Math.max(lT,Math.min(uT,e))];if(sT(r,i,x,k,S,C)){if(!d){a.lineStart();a.point(r[0],r[1])}a.point(i[0],i[1]);if(!n)a.lineEnd();v=false}else if(n){a.lineStart();a.point(t,e);v=false}}}c=t,h=e,d=n}return e}}function fT(){var n=0,r=0,i=960,a=500,o,s,u;return u={stream:function t(e){return o&&s===e?o:o=cT(n,r,i,a)(s=e)},extent:function t(e){return arguments.length?(n=+e[0][0],r=+e[0][1],i=+e[1][0],a=+e[1][1],o=s=null,u):[[n,r],[i,a]]}}}var hT,dT,gT,vT;var pT={sphere:fM,point:fM,lineStart:yT,lineEnd:fM,polygonStart:fM,polygonEnd:fM};function yT(){pT.point=_T;pT.lineEnd=mT}function mT(){pT.point=pT.lineEnd=fM}function _T(t,e){t*=YA,e*=YA;dT=t,gT=iM(e),vT=JA(e);pT.point=bT}function bT(t,e){t*=YA,e*=YA;var n=iM(e),r=JA(e),i=XA(t-dT),a=JA(i),o=iM(i),s=r*o,u=vT*n-gT*r*a,l=gT*n+vT*r*a;hT.add($A(oM(s*s+u*u),l));dT=t,gT=n,vT=r}function wT(t){hT=new P;yM(t,pT);return+hT}var xT=[null,null],kT={type:"LineString",coordinates:xT};function ST(t,e){xT[0]=t;xT[1]=e;return wT(kT)}var CT={Feature:function t(e,n){return AT(e.geometry,n)},FeatureCollection:function t(e,n){var r=e.features,i=-1,a=r.length;while(++i<a){if(AT(r[i].geometry,n))return true}return false}};var ET={Sphere:function t(){return true},Point:function t(e,n){return MT(e.coordinates,n)},MultiPoint:function t(e,n){var r=e.coordinates,i=-1,a=r.length;while(++i<a){if(MT(r[i],n))return true}return false},LineString:function t(e,n){return RT(e.coordinates,n)},MultiLineString:function t(e,n){var r=e.coordinates,i=-1,a=r.length;while(++i<a){if(RT(r[i],n))return true}return false},Polygon:function t(e,n){return TT(e.coordinates,n)},MultiPolygon:function t(e,n){var r=e.coordinates,i=-1,a=r.length;while(++i<a){if(TT(r[i],n))return true}return false},GeometryCollection:function t(e,n){var r=e.geometries,i=-1,a=r.length;while(++i<a){if(AT(r[i],n))return true}return false}};function AT(t,e){return t&&ET.hasOwnProperty(t.type)?ET[t.type](t,e):false}function MT(t,e){return ST(t,e)===0}function RT(t,e){var n,r,i;for(var a=0,o=t.length;a<o;a++){r=ST(t[a],e);if(r===0)return true;if(a>0){i=ST(t[a],t[a-1]);if(i>0&&n<=i&&r<=i&&(n+r-i)*(1-Math.pow((n-r)/i,2))<UA*i)return true}n=r}return false}function TT(t,e){return!!JR(t.map(OT),PT(e))}function OT(t){return t=t.map(PT),t.pop(),t}function PT(t){return[t[0]*YA,t[1]*YA]}function BT(t,e){return(t&&CT.hasOwnProperty(t.type)?CT[t.type]:AT)(t,e)}function DT(t,e,n){var r=Me(t,e-HA,n).concat(e);return function(e){return r.map(function(t){return[e,t]})}}function NT(t,e,n){var r=Me(t,e-HA,n).concat(e);return function(e){return r.map(function(t){return[t,e]})}}function zT(){var e,n,r,i,a,o,s,u,l=10,c=l,f=90,h=360,d,g,v,p,y=2.5;function m(){return{type:"MultiLineString",coordinates:t()}}function t(){return Me(QA(i/f)*f,r,f).map(v).concat(Me(QA(u/h)*h,s,h).map(p)).concat(Me(QA(n/l)*l,e,l).filter(function(t){return XA(t%f)>HA}).map(d)).concat(Me(QA(o/c)*c,a,c).filter(function(t){return XA(t%h)>HA}).map(g))}m.lines=function(){return t().map(function(t){return{type:"LineString",coordinates:t}})};m.outline=function(){return{type:"Polygon",coordinates:[v(i).concat(p(s).slice(1),v(r).reverse().slice(1),p(u).reverse().slice(1))]}};m.extent=function(t){if(!arguments.length)return m.extentMinor();return m.extentMajor(t).extentMinor(t)};m.extentMajor=function(t){if(!arguments.length)return[[i,u],[r,s]];i=+t[0][0],r=+t[1][0];u=+t[0][1],s=+t[1][1];if(i>r)t=i,i=r,r=t;if(u>s)t=u,u=s,s=t;return m.precision(y)};m.extentMinor=function(t){if(!arguments.length)return[[n,o],[e,a]];n=+t[0][0],e=+t[1][0];o=+t[0][1],a=+t[1][1];if(n>e)t=n,n=e,e=t;if(o>a)t=o,o=a,a=t;return m.precision(y)};m.step=function(t){if(!arguments.length)return m.stepMinor();return m.stepMajor(t).stepMinor(t)};m.stepMajor=function(t){if(!arguments.length)return[f,h];f=+t[0],h=+t[1];return m};m.stepMinor=function(t){if(!arguments.length)return[l,c];l=+t[0],c=+t[1];return m};m.precision=function(t){if(!arguments.length)return y;y=+t;d=DT(o,a,90);g=NT(n,e,y);v=DT(u,s,90);p=NT(i,r,y);return m};return m.extentMajor([[-180,-90+HA],[180,90-HA]]).extentMinor([[-180,-80-HA],[180,80+HA]])}function FT(){return zT()()}function jT(t,e){var n=t[0]*YA,r=t[1]*YA,i=e[0]*YA,a=e[1]*YA,o=JA(r),s=iM(r),u=JA(a),l=iM(a),c=o*JA(n),f=o*iM(n),h=u*JA(i),d=u*iM(i),g=2*lM(oM(cM(a-r)+o*u*cM(i-n))),v=iM(g);var p=g?function(t){var e=iM(t*=g)/v,n=iM(g-t)/v,r=n*c+e*h,i=n*f+e*d,a=n*s+e*l;return[$A(i,r)*KA,$A(a,oM(r*r+i*i))*KA]}:function(){return[n*KA,r*KA]};p.distance=g;return p}var IT=function t(e){return e};var LT=new P,HT=new P,UT,GT,VT,WT;var qT={point:fM,lineStart:fM,lineEnd:fM,polygonStart:function t(){qT.lineStart=KT;qT.lineEnd=ZT},polygonEnd:function t(){qT.lineStart=qT.lineEnd=qT.point=fM;LT.add(XA(HT));HT=new P},result:function t(){var e=LT/2;LT=new P;return e}};function KT(){qT.point=YT}function YT(t,e){qT.point=XT;UT=VT=t,GT=WT=e}function XT(t,e){HT.add(WT*t-VT*e);VT=t,WT=e}function ZT(){XT(UT,GT)}var $T=qT;var JT=Infinity,QT=JT,tO=-JT,eO=tO;var nO={point:rO,lineStart:fM,lineEnd:fM,polygonStart:fM,polygonEnd:fM,result:function t(){var e=[[JT,QT],[tO,eO]];tO=eO=-(QT=JT=Infinity);return e}};function rO(t,e){if(t<JT)JT=t;if(t>tO)tO=t;if(e<QT)QT=e;if(e>eO)eO=e}var iO=nO;var aO=0,oO=0,sO=0,uO=0,lO=0,cO=0,fO=0,hO=0,dO=0,gO,vO,pO,yO;var mO={point:_O,lineStart:bO,lineEnd:kO,polygonStart:function t(){mO.lineStart=SO;mO.lineEnd=CO},polygonEnd:function t(){mO.point=_O;mO.lineStart=bO;mO.lineEnd=kO},result:function t(){var e=dO?[fO/dO,hO/dO]:cO?[uO/cO,lO/cO]:sO?[aO/sO,oO/sO]:[NaN,NaN];aO=oO=sO=uO=lO=cO=fO=hO=dO=0;return e}};function _O(t,e){aO+=t;oO+=e;++sO}function bO(){mO.point=wO}function wO(t,e){mO.point=xO;_O(pO=t,yO=e)}function xO(t,e){var n=t-pO,r=e-yO,i=oM(n*n+r*r);uO+=i*(pO+t)/2;lO+=i*(yO+e)/2;cO+=i;_O(pO=t,yO=e)}function kO(){mO.point=_O}function SO(){mO.point=EO}function CO(){AO(gO,vO)}function EO(t,e){mO.point=AO;_O(gO=pO=t,vO=yO=e)}function AO(t,e){var n=t-pO,r=e-yO,i=oM(n*n+r*r);uO+=i*(pO+t)/2;lO+=i*(yO+e)/2;cO+=i;i=yO*t-pO*e;fO+=i*(pO+t);hO+=i*(yO+e);dO+=i*3;_O(pO=t,yO=e)}var MO=mO;function RO(t){this._context=t}RO.prototype={_radius:4.5,pointRadius:function t(e){return this._radius=e,this},polygonStart:function t(){this._line=0},polygonEnd:function t(){this._line=NaN},lineStart:function t(){this._point=0},lineEnd:function t(){if(this._line===0)this._context.closePath();this._point=NaN},point:function t(e,n){switch(this._point){case 0:{this._context.moveTo(e,n);this._point=1;break}case 1:{this._context.lineTo(e,n);break}default:{this._context.moveTo(e+this._radius,n);this._context.arc(e,n,this._radius,0,qA);break}}},result:fM};var TO=new P,OO,PO,BO,DO,NO;var zO={point:fM,lineStart:function t(){zO.point=FO},lineEnd:function t(){if(OO)jO(PO,BO);zO.point=fM},polygonStart:function t(){OO=true},polygonEnd:function t(){OO=null},result:function t(){var e=+TO;TO=new P;return e}};function FO(t,e){zO.point=jO;PO=DO=t,BO=NO=e}function jO(t,e){DO-=t,NO-=e;TO.add(oM(DO*DO+NO*NO));DO=t,NO=e}var IO=zO;function LO(){this._string=[]}LO.prototype={_radius:4.5,_circle:HO(4.5),pointRadius:function t(e){if((e=+e)!==this._radius)this._radius=e,this._circle=null;return this},polygonStart:function t(){this._line=0},polygonEnd:function t(){this._line=NaN},lineStart:function t(){this._point=0},lineEnd:function t(){if(this._line===0)this._string.push("Z");this._point=NaN},point:function t(e,n){switch(this._point){case 0:{this._string.push("M",e,",",n);this._point=1;break}case 1:{this._string.push("L",e,",",n);break}default:{if(this._circle==null)this._circle=HO(this._radius);this._string.push("M",e,",",n,this._circle);break}}},result:function t(){if(this._string.length){var t=this._string.join("");this._string=[];return t}else{return null}}};function HO(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function UO(e,n){var r=4.5,i,a;function o(t){if(t){if(typeof r==="function")a.pointRadius(+r.apply(this,arguments));yM(t,i(a))}return a.result()}o.area=function(t){yM(t,i($T));return $T.result()};o.measure=function(t){yM(t,i(IO));return IO.result()};o.bounds=function(t){yM(t,i(iO));return iO.result()};o.centroid=function(t){yM(t,i(MO));return MO.result()};o.projection=function(t){return arguments.length?(i=t==null?(e=null,IT):(e=t).stream,o):e};o.context=function(t){if(!arguments.length)return n;a=t==null?(n=null,new LO):new RO(n=t);if(typeof r!=="function")a.pointRadius(r);return o};o.pointRadius=function(t){if(!arguments.length)return r;r=typeof t==="function"?t:(a.pointRadius(+t),+t);return o};return o.projection(e).context(n)}function GO(t){return{stream:VO(t)}}function VO(r){return function(t){var e=new WO;for(var n in r){e[n]=r[n]}e.stream=t;return e}}function WO(){}WO.prototype={constructor:WO,point:function t(e,n){this.stream.point(e,n)},sphere:function t(){this.stream.sphere()},lineStart:function t(){this.stream.lineStart()},lineEnd:function t(){this.stream.lineEnd()},polygonStart:function t(){this.stream.polygonStart()},polygonEnd:function t(){this.stream.polygonEnd()}};function qO(t,e,n){var r=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]);if(r!=null)t.clipExtent(null);yM(n,t.stream(iO));e(iO.result());if(r!=null)t.clipExtent(r);return t}function KO(o,s,t){return qO(o,function(t){var e=s[1][0]-s[0][0],n=s[1][1]-s[0][1],r=Math.min(e/(t[1][0]-t[0][0]),n/(t[1][1]-t[0][1])),i=+s[0][0]+(e-r*(t[1][0]+t[0][0]))/2,a=+s[0][1]+(n-r*(t[1][1]+t[0][1]))/2;o.scale(150*r).translate([i,a])},t)}function YO(t,e,n){return KO(t,[[0,0],e],n)}function XO(a,o,t){return qO(a,function(t){var e=+o,n=e/(t[1][0]-t[0][0]),r=(e-n*(t[1][0]+t[0][0]))/2,i=-n*t[0][1];a.scale(150*n).translate([r,i])},t)}function ZO(a,o,t){return qO(a,function(t){var e=+o,n=e/(t[1][1]-t[0][1]),r=-n*t[0][0],i=(e-n*(t[1][1]+t[0][1]))/2;a.scale(150*n).translate([r,i])},t)}var $O=16,JO=JA(30*YA);function QO(t,e){return+e?eP(t,e):tP(t)}function tP(r){return VO({point:function t(e,n){e=r(e,n);this.stream.point(e[0],e[1])}})}function eP(R,T){function O(t,e,n,r,i,a,o,s,u,l,c,f,h,d){var g=o-t,v=s-e,p=g*g+v*v;if(p>4*T&&h--){var y=r+l,m=i+c,_=a+f,b=oM(y*y+m*m+_*_),w=lM(_/=b),x=XA(XA(_)-1)<HA||XA(n-u)<HA?(n+u)/2:$A(m,y),k=R(x,w),S=k[0],C=k[1],E=S-t,A=C-e,M=v*E-g*A;if(M*M/p>T||XA((g*E+v*A)/p-.5)>.3||r*l+i*c+a*f<JO){O(t,e,n,r,i,a,S,C,x,y/=b,m/=b,_,h,d);d.point(S,C);O(S,C,x,y,m,_,o,s,u,l,c,f,h,d)}}}return function(i){var n,r,a,o,s,u,l,c,f,h,d,g;var v={point:t,lineStart:e,lineEnd:y,polygonStart:function t(){i.polygonStart();v.lineStart=m},polygonEnd:function t(){i.polygonEnd();v.lineStart=e}};function t(t,e){t=R(t,e);i.point(t[0],t[1])}function e(){c=NaN;v.point=p;i.lineStart()}function p(t,e){var n=PM([t,e]),r=R(t,e);O(c,f,l,h,d,g,c=r[0],f=r[1],l=t,h=n[0],d=n[1],g=n[2],$O,i);i.point(c,f)}function y(){v.point=t;i.lineEnd()}function m(){e();v.point=_;v.lineEnd=b}function _(t,e){p(n=t,e),r=c,a=f,o=h,s=d,u=g;v.point=p}function b(){O(c,f,l,h,d,g,r,a,n,o,s,u,$O,i);v.lineEnd=y;y()}return v}}var nP=VO({point:function t(e,n){this.stream.point(e*YA,n*YA)}});function rP(i){return VO({point:function t(e,n){var r=i(e,n);return this.stream.point(r[0],r[1])}})}function iP(n,r,i,a,o){function t(t,e){t*=a;e*=o;return[r+n*t,i-n*e]}t.invert=function(t,e){return[(t-r)/n*a,(i-e)/n*o]};return t}function aP(t,n,r,i,a,e){if(!e)return iP(t,n,r,i,a);var o=JA(e),s=iM(e),u=o*t,l=s*t,c=o/t,f=s/t,h=(s*r-o*n)/t,d=(s*n+o*r)/t;function g(t,e){t*=i;e*=a;return[u*t-l*e+n,r-l*t-u*e]}g.invert=function(t,e){return[i*(c*t-f*e+h),a*(d-f*t-c*e)]};return g}function oP(t){return sP(function(){return t})()}function sP(t){var n,r=150,i=480,a=250,o=0,s=0,u=0,l=0,c=0,f,h=0,d=1,g=1,e=null,v=nT,p=null,y,m,_,b=IT,w=.5,x,k,S,C,E;function A(t){return S(t[0]*YA,t[1]*YA)}function M(t){t=S.invert(t[0],t[1]);return t&&[t[0]*KA,t[1]*KA]}A.stream=function(t){return C&&E===t?C:C=nP(rP(f)(v(x(b(E=t)))))};A.preclip=function(t){return arguments.length?(v=t,e=undefined,T()):v};A.postclip=function(t){return arguments.length?(b=t,p=y=m=_=null,T()):b};A.clipAngle=function(t){return arguments.length?(v=+t?oT(e=t*YA):(e=null,nT),T()):e*KA};A.clipExtent=function(t){return arguments.length?(b=t==null?(p=y=m=_=null,IT):cT(p=+t[0][0],y=+t[0][1],m=+t[1][0],_=+t[1][1]),T()):p==null?null:[[p,y],[m,_]]};A.scale=function(t){return arguments.length?(r=+t,R()):r};A.translate=function(t){return arguments.length?(i=+t[0],a=+t[1],R()):[i,a]};A.center=function(t){return arguments.length?(o=t[0]%360*YA,s=t[1]%360*YA,R()):[o*KA,s*KA]};A.rotate=function(t){return arguments.length?(u=t[0]%360*YA,l=t[1]%360*YA,c=t.length>2?t[2]%360*YA:0,R()):[u*KA,l*KA,c*KA]};A.angle=function(t){return arguments.length?(h=t%360*YA,R()):h*KA};A.reflectX=function(t){return arguments.length?(d=t?-1:1,R()):d<0};A.reflectY=function(t){return arguments.length?(g=t?-1:1,R()):g<0};A.precision=function(t){return arguments.length?(x=QO(k,w=t*t),T()):oM(w)};A.fitExtent=function(t,e){return KO(A,t,e)};A.fitSize=function(t,e){return YO(A,t,e)};A.fitWidth=function(t,e){return XO(A,t,e)};A.fitHeight=function(t,e){return ZO(A,t,e)};function R(){var t=aP(r,0,0,d,g,h).apply(null,n(o,s)),e=aP(r,i-t[0],a-t[1],d,g,h);f=jR(u,l,c);k=zR(n,e);S=zR(f,k);x=QO(k,w);return T()}function T(){C=E=null;return A}return function(){n=t.apply(this,arguments);A.invert=n.invert&&M;return R()}}function uP(t){var e=0,n=GA/3,r=sP(t),i=r(e,n);i.parallels=function(t){return arguments.length?r(e=t[0]*YA,n=t[1]*YA):[e*KA,n*KA]};return i}function lP(t){var n=JA(t);function e(t,e){return[t*n,iM(e)/n]}e.invert=function(t,e){return[t/n,lM(e*n)]};return e}function cP(t,e){var n=iM(t),i=(n+iM(e))/2;if(XA(i)<HA)return lP(t);var a=1+n*(2*i-n),o=oM(a)/i;function r(t,e){var n=oM(a-2*i*iM(e))/i;return[n*iM(t*=i),o-n*JA(t)]}r.invert=function(t,e){var n=o-e,r=$A(t,XA(n))*aM(n);if(n*i<0)r-=GA*aM(t)*aM(n);return[r/i,lM((a-(t*t+n*n)*i*i)/(2*i))]};return r}function fP(){return uP(cP).scale(155.424).center([0,33.6442])}function hP(){return fP().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function dP(i){var a=i.length;return{point:function t(e,n){var r=-1;while(++r<a){i[r].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){i[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){i[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){i[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){i[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){i[e].polygonEnd()}}}}function gP(){var e,n,a=hP(),i,o=fP().rotate([154,0]).center([-2,58.5]).parallels([55,65]),s,u=fP().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l,r,c={point:function t(e,n){r=[e,n]}};function f(t){var e=t[0],n=t[1];return r=null,(i.point(e,n),r)||(s.point(e,n),r)||(l.point(e,n),r)}f.invert=function(t){var e=a.scale(),n=a.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?o:i>=.166&&i<.234&&r>=-.214&&r<-.115?u:a).invert(t)};f.stream=function(t){return e&&n===t?e:e=dP([a.stream(n=t),o.stream(t),u.stream(t)])};f.precision=function(t){if(!arguments.length)return a.precision();a.precision(t),o.precision(t),u.precision(t);return h()};f.scale=function(t){if(!arguments.length)return a.scale();a.scale(t),o.scale(t*.35),u.scale(t);return f.translate(a.translate())};f.translate=function(t){if(!arguments.length)return a.translate();var e=a.scale(),n=+t[0],r=+t[1];i=a.translate(t).clipExtent([[n-.455*e,r-.238*e],[n+.455*e,r+.238*e]]).stream(c);s=o.translate([n-.307*e,r+.201*e]).clipExtent([[n-.425*e+HA,r+.12*e+HA],[n-.214*e-HA,r+.234*e-HA]]).stream(c);l=u.translate([n-.205*e,r+.212*e]).clipExtent([[n-.214*e+HA,r+.166*e+HA],[n-.115*e-HA,r+.234*e-HA]]).stream(c);return h()};f.fitExtent=function(t,e){return KO(f,t,e)};f.fitSize=function(t,e){return YO(f,t,e)};f.fitWidth=function(t,e){return XO(f,t,e)};f.fitHeight=function(t,e){return ZO(f,t,e)};function h(){e=n=null;return f}return f.scale(1070)}function vP(a){return function(t,e){var n=JA(t),r=JA(e),i=a(n*r);if(i===Infinity)return[2,0];return[i*r*iM(t),i*iM(e)]}}function pP(o){return function(t,e){var n=oM(t*t+e*e),r=o(n),i=iM(r),a=JA(r);return[$A(t*i,n*a),lM(n&&e*i/n)]}}var yP=vP(function(t){return oM(2/(1+t))});yP.invert=pP(function(t){return 2*lM(t/2)});function mP(){return oP(yP).scale(124.75).clipAngle(180-.001)}var _P=vP(function(t){return(t=uM(t))&&t/iM(t)});_P.invert=pP(function(t){return t});function bP(){return oP(_P).scale(79.4188).clipAngle(180-.001)}function wP(t,e){return[t,nM(sM((VA+e)/2))]}wP.invert=function(t,e){return[t,2*ZA(tM(e))-VA]};function xP(){return kP(wP).scale(961/qA)}function kP(n){var r=oP(n),e=r.center,i=r.scale,a=r.translate,o=r.clipExtent,s=null,u,l,c;r.scale=function(t){return arguments.length?(i(t),f()):i()};r.translate=function(t){return arguments.length?(a(t),f()):a()};r.center=function(t){return arguments.length?(e(t),f()):e()};r.clipExtent=function(t){return arguments.length?(t==null?s=u=l=c=null:(s=+t[0][0],u=+t[0][1],l=+t[1][0],c=+t[1][1]),f()):s==null?null:[[s,u],[l,c]]};function f(){var t=GA*i(),e=r(UR(r.rotate()).invert([0,0]));return o(s==null?[[e[0]-t,e[1]-t],[e[0]+t,e[1]+t]]:n===wP?[[Math.max(e[0]-t,s),u],[Math.min(e[0]+t,l),c]]:[[s,Math.max(e[1]-t,u)],[l,Math.min(e[1]+t,c)]])}return f()}function SP(t){return sM((VA+t)/2)}function CP(t,e){var n=JA(t),a=t===e?iM(t):nM(n/JA(e))/nM(SP(e)/SP(t)),o=n*rM(SP(t),a)/a;if(!a)return wP;function r(t,e){if(o>0){if(e<-VA+HA)e=-VA+HA}else{if(e>VA-HA)e=VA-HA}var n=o/rM(SP(e),a);return[n*iM(a*t),o-n*JA(a*t)]}r.invert=function(t,e){var n=o-e,r=aM(a)*oM(t*t+n*n),i=$A(t,XA(n))*aM(n);if(n*a<0)i-=GA*aM(t)*aM(n);return[i/a,2*ZA(rM(o/r,1/a))-VA]};return r}function EP(){return uP(CP).scale(109.5).parallels([30,30])}function AP(t,e){return[t,e]}AP.invert=AP;function MP(){return oP(AP).scale(152.63)}function RP(t,e){var n=JA(t),i=t===e?iM(t):(n-JA(e))/(e-t),a=n/i+t;if(XA(i)<HA)return AP;function r(t,e){var n=a-e,r=i*t;return[n*iM(r),a-n*JA(r)]}r.invert=function(t,e){var n=a-e,r=$A(t,XA(n))*aM(n);if(n*i<0)r-=GA*aM(t)*aM(n);return[r/i,a-aM(i)*oM(t*t+n*n)]};return r}function TP(){return uP(RP).scale(131.154).center([0,13.9389])}var OP=1.340264,PP=-.081106,BP=893e-6,DP=.003796,NP=oM(3)/2,zP=12;function FP(t,e){var n=lM(NP*iM(e)),r=n*n,i=r*r*r;return[t*JA(n)/(NP*(OP+3*PP*r+i*(7*BP+9*DP*r))),n*(OP+PP*r+i*(BP+DP*r))]}FP.invert=function(t,e){var n=e,r=n*n,i=r*r*r;for(var a=0,o,s,u;a<zP;++a){s=n*(OP+PP*r+i*(BP+DP*r))-e;u=OP+3*PP*r+i*(7*BP+9*DP*r);n-=o=s/u,r=n*n,i=r*r*r;if(XA(o)<UA)break}return[NP*t*(OP+3*PP*r+i*(7*BP+9*DP*r))/JA(n),lM(iM(n)/NP)]};function jP(){return oP(FP).scale(177.158)}function IP(t,e){var n=JA(e),r=JA(t)*n;return[n*iM(t)/r,iM(e)/r]}IP.invert=pP(ZA);function LP(){return oP(IP).scale(144.049).clipAngle(60)}function HP(){var e=1,i=0,a=0,n=1,r=1,o=0,s,u,l=null,c,f,h,d=1,g=1,v=VO({point:function t(e,n){var r=b([e,n]);this.stream.point(r[0],r[1])}}),p=IT,y,m;function _(){d=e*n;g=e*r;y=m=null;return b}function b(t){var e=t[0]*d,n=t[1]*g;if(o){var r=n*s-e*u;e=e*s+n*u;n=r}return[e+i,n+a]}b.invert=function(t){var e=t[0]-i,n=t[1]-a;if(o){var r=n*s+e*u;e=e*s-n*u;n=r}return[e/d,n/g]};b.stream=function(t){return y&&m===t?y:y=v(p(m=t))};b.postclip=function(t){return arguments.length?(p=t,l=c=f=h=null,_()):p};b.clipExtent=function(t){return arguments.length?(p=t==null?(l=c=f=h=null,IT):cT(l=+t[0][0],c=+t[0][1],f=+t[1][0],h=+t[1][1]),_()):l==null?null:[[l,c],[f,h]]};b.scale=function(t){return arguments.length?(e=+t,_()):e};b.translate=function(t){return arguments.length?(i=+t[0],a=+t[1],_()):[i,a]};b.angle=function(t){return arguments.length?(o=t%360*YA,u=iM(o),s=JA(o),_()):o*KA};b.reflectX=function(t){return arguments.length?(n=t?-1:1,_()):n<0};b.reflectY=function(t){return arguments.length?(r=t?-1:1,_()):r<0};b.fitExtent=function(t,e){return KO(b,t,e)};b.fitSize=function(t,e){return YO(b,t,e)};b.fitWidth=function(t,e){return XO(b,t,e)};b.fitHeight=function(t,e){return ZO(b,t,e)};return b}function UP(t,e){var n=e*e,r=n*n;return[t*(.8707-.131979*n+r*(-.013791+r*(.003971*n-.001529*r))),e*(1.007226+n*(.015085+r*(-.044475+.028874*n-.005916*r)))]}UP.invert=function(t,e){var n=e,r=25,i;do{var a=n*n,o=a*a;n-=i=(n*(1.007226+a*(.015085+o*(-.044475+.028874*a-.005916*o)))-e)/(1.007226+a*(.015085*3+o*(-.044475*7+.028874*9*a-.005916*11*o)))}while(XA(i)>HA&&--r>0);return[t/(.8707+(a=n*n)*(-.131979+a*(-.013791+a*a*a*(.003971-.001529*a)))),n]};function GP(){return oP(UP).scale(175.295)}function VP(t,e){return[JA(e)*iM(t),iM(e)]}VP.invert=pP(lM);function WP(){return oP(VP).scale(249.5).clipAngle(90+HA)}function qP(t,e){var n=JA(e),r=1+JA(t)*n;return[n*iM(t)/r,iM(e)/r]}qP.invert=pP(function(t){return 2*ZA(t)});function KP(){return oP(qP).scale(250).clipAngle(142)}function YP(t,e){return[nM(sM((VA+e)/2)),-t]}YP.invert=function(t,e){return[-e,2*ZA(tM(t))-VA]};function XP(){var t=kP(YP),e=t.center,n=t.rotate;t.center=function(t){return arguments.length?e([-t[1],t[0]]):(t=e(),[t[1],-t[0]])};t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):(t=n(),[t[0],t[1],t[2]-90])};return n([0,0,90]).scale(159.155)}var ZP=Object.freeze({__proto__:null,geoArea:TM,geoBounds:oR,geoCentroid:DR,geoCircle:WR,geoClipAntimeridian:nT,geoClipCircle:oT,geoClipExtent:fT,geoClipRectangle:cT,geoContains:BT,geoDistance:ST,geoGraticule:zT,geoGraticule10:FT,geoInterpolate:jT,geoLength:wT,geoPath:UO,geoAlbers:hP,geoAlbersUsa:gP,geoAzimuthalEqualArea:mP,geoAzimuthalEqualAreaRaw:yP,geoAzimuthalEquidistant:bP,geoAzimuthalEquidistantRaw:_P,geoConicConformal:EP,geoConicConformalRaw:CP,geoConicEqualArea:fP,geoConicEqualAreaRaw:cP,geoConicEquidistant:TP,geoConicEquidistantRaw:RP,geoEqualEarth:jP,geoEqualEarthRaw:FP,geoEquirectangular:MP,geoEquirectangularRaw:AP,geoGnomonic:LP,geoGnomonicRaw:IP,geoIdentity:HP,geoProjection:oP,geoProjectionMutator:sP,geoMercator:xP,geoMercatorRaw:wP,geoNaturalEarth1:GP,geoNaturalEarth1Raw:UP,geoOrthographic:WP,geoOrthographicRaw:VP,geoStereographic:KP,geoStereographicRaw:qP,geoTransverseMercator:XP,geoTransverseMercatorRaw:YP,geoRotation:UR,geoStream:yM,geoTransform:GO});var $P=Math.abs;var JP=Math.atan;var QP=Math.atan2;var t8=Math.cos;var e8=Math.exp;var n8=Math.floor;var r8=Math.log;var i8=Math.max;var a8=Math.min;var o8=Math.pow;var s8=Math.round;var u8=Math.sign||function(t){return t>0?1:t<0?-1:0};var l8=Math.sin;var c8=Math.tan;var f8=1e-6;var h8=1e-12;var d8=Math.PI;var g8=d8/2;var v8=d8/4;var p8=Math.SQRT1_2;var y8=C8(2);var m8=C8(d8);var _8=d8*2;var b8=180/d8;var w8=d8/180;function x8(t){return t?t/Math.sin(t):1}function k8(t){return t>1?g8:t<-1?-g8:Math.asin(t)}function S8(t){return t>1?0:t<-1?d8:Math.acos(t)}function C8(t){return t>0?Math.sqrt(t):0}function E8(t){t=e8(2*t);return(t-1)/(t+1)}function A8(t){return(e8(t)-e8(-t))/2}function M8(t){return(e8(t)+e8(-t))/2}function R8(t){return r8(t+C8(t*t+1))}function T8(t){return r8(t+C8(t*t-1))}function O8(h){var t=c8(h/2),d=2*r8(t8(h/2))/(t*t);function e(t,e){var n=t8(t),r=t8(e),i=l8(e),a=r*n,o=-((1-a?r8((1+a)/2)/(1-a):-.5)+d/(1+a));return[o*r*l8(t),o*i]}e.invert=function(t,e){var n=C8(t*t+e*e),r=-h/2,i=50,a;if(!n)return[0,0];do{var o=r/2,s=t8(o),u=l8(o),l=u/s,c=-r8($P(s));r-=a=(2/l*c-d*l-n)/(-c/(u*u)+1-d/(2*s*s))*(s<0?.7:1)}while($P(a)>f8&&--i>0);var f=l8(r);return[QP(t*f,n*t8(r)),k8(e*f/n)]};return e}function P8(){var e=g8,n=sP(O8),t=n(e);t.radius=function(t){return arguments.length?n(e=t*w8):e*b8};return t.scale(179.976).clipAngle(147)}function B8(t,e){var n=t8(e),r=x8(S8(n*t8(t/=2)));return[2*n*l8(t)*r,l8(e)*r]}B8.invert=function(t,e){if(t*t+4*e*e>d8*d8+f8)return;var n=t,r=e,i=25;do{var a=l8(n),o=l8(n/2),s=t8(n/2),u=l8(r),l=t8(r),c=l8(2*r),f=u*u,h=l*l,d=o*o,g=1-h*s*s,v=g?S8(l*s)*C8(p=1/g):p=0,p,y=2*v*l*o-t,m=v*u-e,_=p*(h*d+v*l*s*f),b=p*(.5*a*c-v*2*u*o),w=p*.25*(c*o-v*u*h*a),x=p*(f*s+v*d*l),k=b*w-x*_;if(!k)break;var S=(m*b-y*x)/k,C=(y*w-m*_)/k;n-=S,r-=C}while(($P(S)>f8||$P(C)>f8)&&--i>0);return[n,r]};function D8(){return oP(B8).scale(152.63)}function N8(t){var _=l8(t),b=t8(t),w=t>=0?1:-1,x=c8(w*t),k=(1+_-b)/2;function e(t,e){var n=t8(e),r=t8(t/=2);return[(1+n)*l8(t),(w*e>-QP(r,x)-.001?0:-w*10)+k+l8(e)*b-(1+n)*_*r]}e.invert=function(t,e){var n=0,r=0,i=50;do{var a=t8(n),o=l8(n),s=t8(r),u=l8(r),l=1+s,c=l*o-t,f=k+u*b-l*_*a-e,h=l*a/2,d=-o*u,g=_*l*o/2,v=b*s+_*a*u,p=d*g-v*h,y=(f*d-c*v)/p/2,m=(c*g-f*h)/p;if($P(m)>2)m/=2;n-=y,r-=m}while(($P(y)>f8||$P(m)>f8)&&--i>0);return w*r>-QP(t8(n),x)-.001?[n*2,r]:null};return e}function z8(){var a=20*w8,o=a>=0?1:-1,s=c8(o*a),e=sP(N8),u=e(a),l=u.stream;u.parallel=function(t){if(!arguments.length)return a*b8;s=c8((o=(a=t*w8)>=0?1:-1)*a);return e(a)};u.stream=function(t){var e=u.rotate(),n=l(t),r=(u.rotate([0,0]),l(t)),i=u.precision();u.rotate(e);n.sphere=function(){r.polygonStart(),r.lineStart();for(var t=o*-180;o*t<180;t+=o*90){r.point(t,o*90)}if(a)while(o*(t-=3*o*i)>=-180){r.point(t,o*-QP(t8(t*w8/2),s)*b8)}r.lineEnd(),r.polygonEnd()};return n};return u.scale(218.695).center([0,28.0974])}function F8(t,e){var n=c8(e/2),r=C8(1-n*n),i=1+r*t8(t/=2),a=l8(t)*r/i,o=n/i,s=a*a,u=o*o;return[4/3*a*(3+s-3*u),4/3*o*(3+3*s-u)]}F8.invert=function(t,e){t*=3/8,e*=3/8;if(!t&&$P(e)>1)return null;var n=t*t,r=e*e,i=1+n+r,a=C8((i-C8(i*i-4*e*e))/2),o=k8(a)/3,s=a?T8($P(e/a))/3:R8($P(t))/3,u=t8(o),l=M8(s),c=l*l-u*u;return[u8(t)*2*QP(A8(s)*u,.25-c),u8(e)*2*QP(l*l8(o),.25+c)]};function j8(){return oP(F8).scale(66.1603)}var I8=C8(8),L8=r8(1+y8);function H8(t,e){var n=$P(e);return n<v8?[t,r8(c8(v8+e/2))]:[t*t8(n)*(2*y8-1/l8(n)),u8(e)*(2*y8*(n-v8)-r8(c8(n/2)))]}H8.invert=function(t,e){if((a=$P(e))<L8)return[t,2*JP(e8(e))-g8];var n=v8,r=25,i,a;do{var o=t8(n/2),s=c8(n/2);n-=i=(I8*(n-v8)-r8(s)-a)/(I8-o*o/(2*s))}while($P(i)>h8&&--r>0);return[t/(t8(n)*(I8-1/l8(n))),u8(e)*n]};function U8(){return oP(H8).scale(112.314)}function G8(t){var u=2*d8/t;function e(t,e){var n=_P(t,e);if($P(t)>g8){var r=QP(n[1],n[0]),i=C8(n[0]*n[0]+n[1]*n[1]),a=u*s8((r-g8)/u)+g8,o=QP(l8(r-=a),2-t8(r));r=a+k8(d8/i*l8(o))-o;n[0]=i*t8(r);n[1]=i*l8(r)}return n}e.invert=function(t,e){var n=C8(t*t+e*e);if(n>g8){var r=QP(e,t),i=u*s8((r-g8)/u)+g8,a=r>i?-1:1,o=n*t8(i-r),s=1/c8(a*S8((o-d8)/C8(d8*(d8-2*o)+n*n)));r=i+2*JP((s+a*C8(s*s-3))/3);t=n*t8(r),e=n*l8(r)}return _P.invert(t,e)};return e}function V8(){var o=5,e=sP(G8),r=e(o),i=r.stream,s=.01,u=-t8(s*w8),l=l8(s*w8);r.lobes=function(t){return arguments.length?e(o=+t):o};r.stream=function(t){var e=r.rotate(),n=i(t),a=(r.rotate([0,0]),i(t));r.rotate(e);n.sphere=function(){a.polygonStart(),a.lineStart();for(var t=0,e=360/o,n=2*d8/o,r=90-180/o,i=g8;t<o;++t,r-=e,i-=n){a.point(QP(l*t8(i),u)*b8,k8(l*l8(i))*b8);if(r<-90){a.point(-90,-180-r-s);a.point(-90,-180-r+s)}else{a.point(90,r+s);a.point(90,r-s)}}a.lineEnd(),a.polygonEnd()};return n};return r.scale(87.8076).center([0,17.1875]).clipAngle(180-.001)}function W8(r,i){if(arguments.length<2)i=r;if(i===1)return yP;if(i===Infinity)return q8;function t(t,e){var n=yP(t/i,e);n[0]*=r;return n}t.invert=function(t,e){var n=yP.invert(t/r,e);n[0]*=i;return n};return t}function q8(t,e){return[t*t8(e)/t8(e/=2),2*l8(e)]}q8.invert=function(t,e){var n=2*k8(e/2);return[t*t8(n/2)/t8(n),n]};function K8(){var e=2,n=sP(W8),t=n(e);t.coefficient=function(t){if(!arguments.length)return e;return n(e=+t)};return t.scale(169.529)}function Y8(t,e,n){var r=100,i,a,o;n=n===undefined?0:+n;e=+e;do{a=t(n);o=t(n+f8);if(a===o)o=a+f8;n-=i=-1*f8*(a-e)/(a-o)}while(r-- >0&&$P(i)>f8);return r<0?NaN:n}function X8(x,k,S){if(k===undefined)k=40;if(S===undefined)S=h8;return function(t,e,n,r){var i,a,o;n=n===undefined?0:+n;r=r===undefined?0:+r;for(var s=0;s<k;s++){var u=x(n,r),l=u[0]-t,c=u[1]-e;if($P(l)<S&&$P(c)<S)break;var f=l*l+c*c;if(f>i){n-=a/=2;r-=o/=2;continue}i=f;var h=(n>0?-1:1)*S,d=(r>0?-1:1)*S,g=x(n+h,r),v=x(n,r+d),p=(g[0]-u[0])/h,y=(g[1]-u[1])/h,m=(v[0]-u[0])/d,_=(v[1]-u[1])/d,b=_*p-y*m,w=($P(b)<.5?.5:1)/b;a=(c*m-l*_)*w;o=(l*y-c*p)*w;n+=a;r+=o;if($P(a)<S&&$P(o)<S)break}return[n,r]}}function Z8(){var a=W8(1.68,2),o=1.4,s=12;function t(t,e){if(t+e<-o){var n=(t-e+1.6)*(t+e+o)/8;t+=n;e-=.8*n*l8(e+d8/2)}var r=a(t,e);var i=(1-t8(t*e))/s;if(r[1]<0){r[0]*=1+i}if(r[1]>0){r[1]*=1+i/1.5*r[0]*r[0]}return r}t.invert=X8(t);return t}function $8(){return oP(Z8()).rotate([-16.5,-42]).scale(176.57).center([7.93,.09])}function J8(t,e){var n=t*l8(e),r=30,i;do{e-=i=(e+l8(e)-n)/(1+t8(e))}while($P(i)>f8&&--r>0);return e/2}function Q8(n,r,i){function t(t,e){return[n*t*t8(e=J8(i,e)),r*l8(e)]}t.invert=function(t,e){return e=k8(e/r),[t/(n*t8(e)),k8((2*e+l8(2*e))/i)]};return t}var t7=Q8(y8/g8,y8,d8);function e7(){return oP(t7).scale(169.529)}var n7=2.00276,r7=1.11072;function i7(t,e){var n=J8(d8,e);return[n7*t/(1/t8(e)+r7/t8(n)),(e+y8*l8(n))/n7]}i7.invert=function(t,e){var n=n7*e,r=e<0?-v8:v8,i=25,a,o;do{o=n-y8*l8(r);r-=a=(l8(2*r)+2*r-d8*l8(o))/(2*t8(2*r)+2+d8*t8(o)*y8*t8(r))}while($P(a)>f8&&--i>0);o=n-y8*l8(r);return[t*(1/t8(o)+r7/t8(r))/n7,o]};function a7(){return oP(i7).scale(160.857)}function o7(t){var e=0,n=sP(t),r=n(e);r.parallel=function(t){return arguments.length?n(e=t*w8):e*b8};return r}function s7(t,e){return[t*t8(e),e]}s7.invert=function(t,e){return[t/t8(e),e]};function u7(){return oP(s7).scale(152.63)}function l7(i){if(!i)return s7;var a=1/c8(i);function t(t,e){var n=a+i-e,r=n?t*t8(e)/n:n;return[n*l8(r),a-n*t8(r)]}t.invert=function(t,e){var n=C8(t*t+(e=a-e)*e),r=a+i-n;return[n/t8(r)*QP(t,e),r]};return t}function c7(){return o7(l7).scale(123.082).center([0,26.1441]).parallel(45)}function f7(o){function t(t,e){var n=g8-e,r=n?t*o*l8(n)/n:n;return[n*l8(r)/o,g8-n*t8(r)]}t.invert=function(t,e){var n=t*o,r=g8-e,i=C8(n*n+r*r),a=QP(n,r);return[(i?i/l8(i):1)*a/o,g8-i]};return t}function h7(){var e=.5,n=sP(f7),t=n(e);t.fraction=function(t){return arguments.length?n(e=+t):e};return t.scale(158.837)}var d7=Q8(1,4/d8,d8);function g7(){return oP(d7).scale(152.63)}function v7(t,e,n,r,i,a){var o=t8(a),s;if($P(t)>1||$P(a)>1){s=S8(n*i+e*r*o)}else{var u=l8(t/2),l=l8(a/2);s=2*k8(C8(u*u+e*r*l*l))}return $P(s)>f8?[s,QP(r*l8(a),e*i-n*r*o)]:[0,0]}function p7(t,e,n){return S8((t*t+e*e-n*n)/(2*t*e))}function y7(t){return t-2*d8*n8((t+d8)/(2*d8))}function m7(t,e,n){var c=[[t[0],t[1],l8(t[1]),t8(t[1])],[e[0],e[1],l8(e[1]),t8(e[1])],[n[0],n[1],l8(n[1]),t8(n[1])]];for(var r=c[2],i,a=0;a<3;++a,r=i){i=c[a];r.v=v7(i[1]-r[1],r[3],r[2],i[3],i[2],i[0]-r[0]);r.point=[0,0]}var o=p7(c[0].v[0],c[2].v[0],c[1].v[0]),f=p7(c[0].v[0],c[1].v[0],c[2].v[0]),h=d8-o;c[2].point[1]=0;c[0].point[0]=-(c[1].point[0]=c[0].v[0]/2);var d=[c[2].point[0]=c[0].point[0]+c[2].v[0]*t8(o),2*(c[0].point[1]=c[1].point[1]=c[2].v[0]*l8(o))];function s(t,e){var n=l8(e),r=t8(e),i=new Array(3),a;for(a=0;a<3;++a){var o=c[a];i[a]=v7(e-o[1],o[3],o[2],r,n,t-o[0]);if(!i[a][0])return o.point;i[a][1]=y7(i[a][1]-o.v[1])}var s=d.slice();for(a=0;a<3;++a){var u=a==2?0:a+1;var l=p7(c[a].v[0],i[a][0],i[u][0]);if(i[a][1]<0)l=-l;if(!a){s[0]+=i[a][0]*t8(l);s[1]-=i[a][0]*l8(l)}else if(a==1){l=f-l;s[0]-=i[a][0]*t8(l);s[1]-=i[a][0]*l8(l)}else{l=h-l;s[0]+=i[a][0]*t8(l);s[1]+=i[a][0]*l8(l)}}s[0]/=3,s[1]/=3;return s}return s}function _7(t){return t[0]*=w8,t[1]*=w8,t}function b7(){return w7([0,22],[45,22],[22.5,-22]).scale(380).center([22.5,2])}function w7(t,e,n){var r=DR({type:"MultiPoint",coordinates:[t,e,n]}),i=[-r[0],-r[1]],a=UR(i),o=m7(_7(a(t)),_7(a(e)),_7(a(n)));o.invert=X8(o);var s=oP(o).rotate(i),u=s.center;delete s.rotate;s.center=function(t){return arguments.length?u(a(t)):a.invert(u())};return s.clipAngle(90)}function x7(t,e){var n=C8(1-l8(e));return[2/m8*t*n,m8*(1-n)]}x7.invert=function(t,e){var n=(n=e/m8-1)*n;return[n>0?t*C8(d8/n)/2:0,k8(1-n)]};function k7(){return oP(x7).scale(95.6464).center([0,30])}function S7(t){var r=c8(t);function e(t,e){return[t,(t?t/l8(t):1)*(l8(e)*t8(t)-r*t8(e))]}e.invert=r?function(t,e){if(t)e*=l8(t)/t;var n=t8(t);return[t,2*QP(C8(n*n+r*r-e*e)-n,r-e)]}:function(t,e){return[t,k8(t?e*c8(t)/t:e)]};return e}function C7(){return o7(S7).scale(249.828).clipAngle(90)}var E7=C8(3);function A7(t,e){return[E7*t*(2*t8(2*e/3)-1)/m8,E7*m8*l8(e/3)]}A7.invert=function(t,e){var n=3*k8(e/(E7*m8));return[m8*t/(E7*(2*t8(2*n/3)-1)),n]};function M7(){return oP(A7).scale(156.19)}function R7(t){var n=t8(t);function e(t,e){return[t*n,l8(e)/n]}e.invert=function(t,e){return[t/n,k8(e*n)]};return e}function T7(){return o7(R7).parallel(38.58).scale(195.044)}function O7(t){var n=t8(t);function e(t,e){return[t*n,(1+n)*c8(e/2)]}e.invert=function(t,e){return[t/n,JP(e/(1+n))*2]};return e}function P7(){return o7(O7).scale(124.75)}function B7(t,e){var n=C8(8/(3*d8));return[n*t*(1-$P(e)/d8),n*e]}B7.invert=function(t,e){var n=C8(8/(3*d8)),r=e/n;return[t/(n*(1-$P(r)/d8)),r]};function D7(){return oP(B7).scale(165.664)}function N7(t,e){var n=C8(4-3*l8($P(e)));return[2/C8(6*d8)*t*n,u8(e)*C8(2*d8/3)*(2-n)]}N7.invert=function(t,e){var n=2-$P(e)/C8(2*d8/3);return[t*C8(6*d8)/(2*n),u8(e)*k8((4-n*n)/3)]};function z7(){return oP(N7).scale(165.664)}function F7(t,e){var n=C8(d8*(4+d8));return[2/n*t*(1+C8(1-4*e*e/(d8*d8))),4/n*e]}F7.invert=function(t,e){var n=C8(d8*(4+d8))/2;return[t*n/(1+C8(1-e*e*(4+d8)/(4*d8))),e*n/2]};function j7(){return oP(F7).scale(180.739)}function I7(t,e){var n=(2+g8)*l8(e);e/=2;for(var r=0,i=Infinity;r<10&&$P(i)>f8;r++){var a=t8(e);e-=i=(e+l8(e)*(a+2)-n)/(2*a*(1+a))}return[2/C8(d8*(4+d8))*t*(1+t8(e)),2*C8(d8/(4+d8))*l8(e)]}I7.invert=function(t,e){var n=e*C8((4+d8)/d8)/2,r=k8(n),i=t8(r);return[t/(2/C8(d8*(4+d8))*(1+i)),k8((r+n*(i+2))/(2+g8))]};function L7(){return oP(I7).scale(180.739)}function H7(t,e){return[t*(1+t8(e))/C8(2+d8),2*e/C8(2+d8)]}H7.invert=function(t,e){var n=C8(2+d8),r=e*n/2;return[n*t/(1+t8(r)),r]};function U7(){return oP(H7).scale(173.044)}function G7(t,e){var n=(1+g8)*l8(e);for(var r=0,i=Infinity;r<10&&$P(i)>f8;r++){e-=i=(e+l8(e)-n)/(1+t8(e))}n=C8(2+d8);return[t*(1+t8(e))/n,2*e/n]}G7.invert=function(t,e){var n=1+g8,r=C8(n/2);return[t*2*r/(1+t8(e*=r)),k8((e+l8(e))/n)]};function V7(){return oP(G7).scale(173.044)}var W7=3+2*y8;function q7(t,e){var n=l8(t/=2),r=t8(t),i=C8(t8(e)),a=t8(e/=2),o=l8(e)/(a+y8*r*i),s=C8(2/(1+o*o)),u=C8((y8*a+(r+n)*i)/(y8*a+(r-n)*i));return[W7*(s*(u-1/u)-2*r8(u)),W7*(s*o*(u+1/u)-2*JP(o))]}q7.invert=function(t,e){if(!(a=F8.invert(t/1.2,e*1.065)))return null;var n=a[0],r=a[1],i=20,a;t/=W7,e/=W7;do{var o=n/2,s=r/2,u=l8(o),l=t8(o),c=l8(s),f=t8(s),h=t8(r),d=C8(h),g=c/(f+y8*l*d),v=g*g,p=C8(2/(1+v)),y=y8*f+(l+u)*d,m=y8*f+(l-u)*d,_=y/m,b=C8(_),w=b-1/b,x=b+1/b,k=p*w-2*r8(b)-t,S=p*g*x-2*JP(g)-e,C=c&&p8*d*u*v/c,E=(y8*l*f+d)/(2*(f+y8*l*d)*(f+y8*l*d)*d),A=-.5*g*p*p*p,M=A*C,R=A*E,T=(T=2*f+y8*d*(l-u))*T*b,O=(y8*l*f*d+h)/T,P=-(y8*u*c)/(d*T),B=w*M-2*O/b+p*(O+O/_),D=w*R-2*P/b+p*(P+P/_),N=g*x*M-2*C/(1+v)+p*x*C+p*g*(O-O/_),z=g*x*R-2*E/(1+v)+p*x*E+p*g*(P-P/_),F=D*N-z*B;if(!F)break;var j=(S*D-k*z)/F,I=(k*N-S*B)/F;n-=j;r=i8(-g8,a8(g8,r-I))}while(($P(j)>f8||$P(I)>f8)&&--i>0);return $P($P(r)-g8)<f8?[0,r]:i&&[n,r]};function K7(){return oP(q7).scale(62.5271)}var Y7=t8(35*w8);function X7(t,e){var n=c8(e/2);return[t*Y7*C8(1-n*n),(1+Y7)*n]}X7.invert=function(t,e){var n=e/(1+Y7);return[t&&t/(Y7*C8(1-n*n)),2*JP(n)]};function Z7(){return oP(X7).scale(137.152)}function $7(t,e){var n=e/2,r=t8(n);return[2*t/m8*t8(e)*r*r,m8*c8(n)]}$7.invert=function(t,e){var n=JP(e/m8),r=t8(n),i=2*n;return[t*m8/2/(t8(i)*r*r),i]};function J7(){return oP($7).scale(135.264)}function Q7(i){var a=1-i,t=r(d8,0)[0]-r(-d8,0)[0],e=r(0,g8)[1]-r(0,-g8)[1],o=C8(2*e/t);function r(t,e){var n=t8(e),r=l8(e);return[n/(a+i*n)*t,a*e+i*r]}function n(t,e){var n=r(t,e);return[n[0]*o,n[1]/o]}function s(t){return n(0,t)[1]}n.invert=function(t,e){var n=Y8(s,e),r=t/o*(i+a/t8(n));return[r,n]};return n}function tB(){var e=.5,n=sP(Q7),t=n(e);t.alpha=function(t){return arguments.length?n(e=+t):e};return t.scale(168.725)}function eB(t){return[t[0]/2,k8(c8(t[1]/2*w8))*b8]}function nB(t){return[t[0]*2,2*JP(l8(t[1]*w8))*b8]}function rB(t){if(t==null)t=WP;var n=t(),i=MP().scale(b8).precision(0).clipAngle(null).translate([0,0]);function e(t){return n(eB(t))}if(n.invert)e.invert=function(t){return nB(n.invert(t))};e.stream=function(t){var r=n.stream(t),e=i.stream({point:function t(e,n){r.point(e/2,k8(c8(-n/2*w8))*b8)},lineStart:function t(){r.lineStart()},lineEnd:function t(){r.lineEnd()},polygonStart:function t(){r.polygonStart()},polygonEnd:function t(){r.polygonEnd()}});e.sphere=r.sphere;return e};function r(t){e[t]=function(){return arguments.length?(n[t].apply(n,arguments),e):n[t]()}}e.rotate=function(t){return arguments.length?(i.rotate(t),e):i.rotate()};e.center=function(t){return arguments.length?(n.center(eB(t)),e):nB(n.center())};r("angle");r("clipAngle");r("clipExtent");r("fitExtent");r("fitHeight");r("fitSize");r("fitWidth");r("scale");r("translate");r("precision");return e.scale(249.5)}function iB(m,t){var _=2*d8/t,b=m*m;function e(t,e){var n=_P(t,e),r=n[0],i=n[1],a=r*r+i*i;if(a>b){var o=C8(a),s=QP(i,r),u=_*s8(s/_),l=s-u,c=m*t8(l),f=(m*l8(l)-l*l8(c))/(g8-c),h=aB(l,f),d=(d8-m)/oB(h,c,d8);r=o;var g=50,v;do{r-=v=(m+oB(h,c,r)*d-o)/(h(r)*d)}while($P(v)>f8&&--g>0);i=l*l8(r);if(r<g8)i-=f*(r-g8);var p=l8(u),y=t8(u);n[0]=r*y-i*p;n[1]=r*p+i*y}return n}e.invert=function(t,e){var n=t*t+e*e;if(n>b){var r=C8(n),i=QP(e,t),a=_*s8(i/_),o=i-a;t=r*t8(o);e=r*l8(o);var s=t-g8,u=l8(t),l=e/u,c=t<g8?Infinity:0,f=10;while(true){var h=m*l8(l),d=m*t8(l),g=l8(d),v=g8-d,p=(h-l*g)/v,y=aB(l,p);if($P(c)<h8||!--f)break;l-=c=(l*u-p*s-e)/(u-s*2*(v*(d+l*h*t8(d)-g)-h*(h-l*g))/(v*v))}r=m+oB(y,d,t)*(d8-m)/oB(y,d,d8);i=a+l;t=r*t8(i);e=r*l8(i)}return _P.invert(t,e)};return e}function aB(n,r){return function(t){var e=n*t8(t);if(t<g8)e-=r;return C8(1+e*e)}}function oB(t,e,n){var r=50,i=(n-e)/r,a=t(e)+t(n);for(var o=1,s=e;o<r;++o){a+=2*t(s+=i)}return a*.5*i}function sB(){var i=6,e=30*w8,a=t8(e),o=l8(e),n=sP(iB),s=n(e,i),u=s.stream,t=.01,l=-t8(t*w8),c=l8(t*w8);s.radius=function(t){if(!arguments.length)return e*b8;a=t8(e=t*w8);o=l8(e);return n(e,i)};s.lobes=function(t){if(!arguments.length)return i;return n(e,i=+t)};s.stream=function(t){var e=s.rotate(),n=u(t),r=(s.rotate([0,0]),u(t));s.rotate(e);n.sphere=function(){r.polygonStart(),r.lineStart();for(var t=0,e=2*d8/i,n=0;t<i;++t,n-=e){r.point(QP(c*t8(n),l)*b8,k8(c*l8(n))*b8);r.point(QP(o*t8(n-e/2),a)*b8,k8(o*l8(n-e/2))*b8)}r.lineEnd(),r.polygonEnd()};return n};return s.rotate([90,-40]).scale(91.7095).clipAngle(180-.001)}function uB(D,N,z,F,j,I,L,H){if(arguments.length<8)H=0;function t(t,e){if(!e)return[D*t/d8,0];var n=e*e,r=D+n*(N+n*(z+n*F)),i=e*(j-1+n*(I-H+n*L)),a=(r*r+i*i)/(2*i),o=t*k8(r/a)/d8;return[a*l8(o),e*(1+n*H)+a*(1-t8(o))]}t.invert=function(t,e){var n=d8*t/D,r=e,i,a,o=50;do{var s=r*r,u=D+s*(N+s*(z+s*F)),l=r*(j-1+s*(I-H+s*L)),c=u*u+l*l,f=2*l,h=c/f,d=h*h,g=k8(u/h)/d8,v=n*g,p=u*u,y=(2*N+s*(4*z+s*6*F))*r,m=j+s*(3*I+s*5*L),_=2*(u*y+l*(m-1)),b=2*(m-1),w=(_*f-c*b)/(f*f),x=t8(v),k=l8(v),S=h*x,C=h*k,E=n/d8*(1/C8(1-p/d))*(y*h-u*w)/d,A=C-t,M=r*(1+s*H)+h-S-e,R=w*k+S*E,T=S*g,O=1+w-(w*x-C*E),P=C*g,B=R*P-O*T;if(!B)break;n-=i=(M*R-A*O)/B;r-=a=(A*P-M*T)/B}while(($P(i)>f8||$P(a)>f8)&&--o>0);return[n,r]};return t}var lB=uB(2.8284,-1.6988,.75432,-.18071,1.76003,-.38914,.042555);function cB(){return oP(lB).scale(149.995)}var fB=uB(2.583819,-.835827,.170354,-.038094,1.543313,-.411435,.082742);function hB(){return oP(fB).scale(153.93)}var dB=uB(5/6*d8,-.62636,-.0344,0,1.3493,-.05524,0,.045);function gB(){return oP(dB).scale(130.945)}function vB(t,e){var n=t*t,r=e*e;return[t*(1-.162388*r)*(.87-952426e-9*n*n),e*(1+r/12)]}vB.invert=function(t,e){var n=t,r=e,i=50,a;do{var o=r*r;r-=a=(r*(1+o/12)-e)/(1+o/4)}while($P(a)>f8&&--i>0);i=50;t/=1-.162388*o;do{var s=(s=n*n)*s;n-=a=(n*(.87-952426e-9*s)-t)/(.87-.00476213*s)}while($P(a)>f8&&--i>0);return[n,r]};function pB(){return oP(vB).scale(131.747)}var yB=uB(2.6516,-.76534,.19123,-.047094,1.36289,-.13965,.031762);function mB(){return oP(yB).scale(131.087)}function _B(a){var o=a(g8,0)[0]-a(-g8,0)[0];function t(t,e){var n=t>0?-.5:.5,r=a(t+n*d8,e);r[0]-=n*o;return r}if(a.invert)t.invert=function(t,e){var n=t>0?-.5:.5,r=a.invert(t+n*o,e),i=r[0]-n*d8;if(i<-d8)i+=2*d8;else if(i>d8)i-=2*d8;r[0]=i;return r};return t}function bB(t,e){var n=u8(t),r=u8(e),i=t8(e),a=t8(t)*i,o=l8(t)*i,s=l8(r*e);t=$P(QP(o,s));e=k8(a);if($P(t-g8)>f8)t%=g8;var u=wB(t>d8/4?g8-t:t,e);if(t>d8/4)s=u[0],u[0]=-u[1],u[1]=-s;return u[0]*=n,u[1]*=-r,u}bB.invert=function(t,e){if($P(t)>1)t=u8(t)*2-t;if($P(e)>1)e=u8(e)*2-e;var n=u8(t),r=u8(e),i=-n*t,a=-r*e,o=a/i<1,s=xB(o?a:i,o?i:a),u=s[0],l=s[1],c=t8(l);if(o)u=-g8-u;return[n*(QP(l8(u)*c,-l8(l))+d8),r*k8(t8(u)*c)]};function wB(t,e){if(e===g8)return[0,0];var n=l8(e),r=n*n,i=r*r,a=1+i,o=1+3*i,s=1-i,u=k8(1/C8(a)),l=s+r*a*u,c=(1-n)/l,f=C8(c),h=c*a,d=C8(h),g=f*s,v,p;if(t===0)return[0,-(g+r*d)];var y=t8(e),m=1/y,_=2*n*y,b=(-3*r+u*o)*_,w=(-l*y-(1-n)*b)/(l*l),x=.5*w/f,k=s*x-2*r*f*_,S=r*a*w+c*o*_,C=-m*_,E=-m*S,A=-2*m*k,M=4*t/d8,R;if(t>.222*d8||e<d8/4&&t>.175*d8){v=(g+r*C8(h*(1+i)-g*g))/(1+i);if(t>d8/4)return[v,v];var T=v,O=.5*v;v=.5*(O+T),p=50;do{var P=C8(h-v*v),B=v*(A+C*P)+E*k8(v/d)-M;if(!B)break;if(B<0)O=v;else T=v;v=.5*(O+T)}while($P(T-O)>f8&&--p>0)}else{v=f8,p=25;do{var D=v*v,N=C8(h-D),z=A+C*N,F=v*z+E*k8(v/d)-M,j=z+(E-C*D)/N;v-=R=N?F/j:0}while($P(R)>f8&&--p>0)}return[v,-g-r*C8(h-v*v)]}function xB(t,e){var n=0,r=1,i=.5,a=50;while(true){var o=i*i,s=C8(i),u=k8(1/C8(1+o)),l=1-o+i*(1+o)*u,c=(1-s)/l,f=C8(c),h=c*(1+o),d=f*(1-o),g=h-t*t,v=C8(g),p=e+d+i*v;if($P(r-n)<h8||--a===0||p===0)break;if(p>0)n=i;else r=i;i=.5*(n+r)}if(!a)return null;var y=k8(s),m=t8(y),_=1/m,b=2*s*m,w=(-3*i+u*(1+3*o))*b,x=(-l*m-(1-s)*w)/(l*l),k=.5*x/f,S=(1-o)*k-2*i*f*b,C=-2*_*S,E=-_*b,A=-_*(i*(1+o)*x+c*(1+3*o)*b);return[d8/4*(t*(C+E*v)+A*k8(t/C8(h))),y]}function kB(){return oP(_B(bB)).scale(239.75)}function SB(t,e,n){var r,i,a;if(!t){i=CB(e,1-n);return[[0,i[0]/i[1]],[1/i[1],0],[i[2]/i[1],0]]}r=CB(t,n);if(!e)return[[r[0],0],[r[1],0],[r[2],0]];i=CB(e,1-n);a=i[1]*i[1]+n*r[0]*r[0]*i[0]*i[0];return[[r[0]*i[2]/a,r[1]*r[2]*i[0]*i[1]/a],[r[1]*i[1]/a,-r[0]*r[2]*i[0]*i[2]/a],[r[2]*i[1]*i[2]/a,-n*r[0]*r[1]*i[0]/a]]}function CB(t,e){var n,r,i,a,o;if(e<f8){a=l8(t);r=t8(t);n=e*(t-a*r)/4;return[a-n*r,r+n*a,1-e*a*a/2,t-n]}if(e>=1-f8){n=(1-e)/4;r=M8(t);a=E8(t);i=1/r;o=r*A8(t);return[a+n*(o-t)/(r*r),i-n*a*i*(o-t),i+n*a*i*(o+t),2*JP(e8(t))-g8+n*(o-t)/r]}var s=[1,0,0,0,0,0,0,0,0],u=[C8(e),0,0,0,0,0,0,0,0],l=0;r=C8(1-e);o=1;while($P(u[l]/s[l])>f8&&l<8){n=s[l++];u[l]=(n-r)/2;s[l]=(n+r)/2;r=C8(n*r);o*=2}i=o*s[l]*t;do{a=u[l]*l8(r=i)/s[l];i=(k8(a)+i)/2}while(--l);return[l8(i),a=t8(i),a/t8(i-r),i]}function EB(t,e,n){var r=$P(t),i=$P(e),a=A8(i);if(r){var o=1/l8(r),s=1/(c8(r)*c8(r)),u=-(s+n*(a*a*o*o)-1+n),l=(n-1)*s,c=(-u+C8(u*u-4*l))/2;return[AB(JP(1/C8(c)),n)*u8(t),AB(JP(C8((c/s-1)/n)),1-n)*u8(e)]}return[0,AB(JP(a),1-n)*u8(e)]}function AB(t,e){if(!e)return t;if(e===1)return r8(c8(t/2+v8));var n=1,r=C8(1-e),i=C8(e);for(var a=0;$P(i)>f8;a++){if(t%d8){var o=JP(r*c8(t)/n);if(o<0)o+=d8;t+=o+~~(t/d8)*d8}else t+=t;i=(n+r)/2;r=C8(n*r);i=((n=i)-r)/2}return t/(o8(2,a)*n)}function MB(t,e){var n=(y8-1)/(y8+1),r=C8(1-n*n),i=AB(g8,r*r),a=-1,o=r8(c8(d8/4+$P(e)/2)),s=e8(a*o)/C8(n),u=RB(s*t8(a*t),s*l8(a*t)),l=EB(u[0],u[1],r*r);return[-l[1],(e>=0?1:-1)*(.5*i-l[0])]}function RB(t,e){var n=t*t,r=e+1,i=1-n-e*e;return[.5*((t>=0?g8:-g8)-QP(i,2*t)),-.25*r8(i*i+4*n)+.5*r8(r*r+n)]}function TB(t,e){var n=e[0]*e[0]+e[1]*e[1];return[(t[0]*e[0]+t[1]*e[1])/n,(t[1]*e[0]-t[0]*e[1])/n]}MB.invert=function(t,e){var n=(y8-1)/(y8+1),r=C8(1-n*n),i=AB(g8,r*r),a=-1,o=SB(.5*i-e,-t,r*r),s=TB(o[0],o[1]),u=QP(s[1],s[0])/a;return[u,2*JP(e8(.5/a*r8(n*s[0]*s[0]+n*s[1]*s[1])))-g8]};function OB(){return oP(_B(MB)).scale(151.496)}function PB(t){var f=l8(t),l=t8(t),h=BB(t);h.invert=BB(-t);function e(t,e){var n=h(t,e);t=n[0],e=n[1];var r=l8(e),i=t8(e),a=t8(t),o=S8(f*r+l*i*a),s=l8(o),u=$P(s)>f8?o/s:1;return[u*l*l8(t),($P(t)>g8?u:-u)*(f*i-l*r*a)]}e.invert=function(t,e){var n=C8(t*t+e*e),r=-l8(n),i=t8(n),a=n*i,o=-e*r,s=n*f,u=C8(a*a+o*o-s*s),l=QP(a*s+o*u,o*s-a*u),c=(n>g8?-1:1)*QP(t*r,n*t8(l)*i+e*l8(l)*r);return h.invert(c,l)};return e}function BB(t){var o=l8(t),s=t8(t);return function(t,e){var n=t8(e),r=t8(t)*n,i=l8(t)*n,a=l8(e);return[QP(i,r*s-a*o),k8(a*s+r*o)]}}function DB(){var n=0,r=sP(PB),i=r(n),e=i.rotate,t=i.stream,o=WR();i.parallel=function(t){if(!arguments.length)return n*b8;var e=i.rotate();return r(n=t*w8).rotate(e)};i.rotate=function(t){if(!arguments.length)return t=e.call(i),t[1]+=n*b8,t;e.call(i,[t[0],t[1]-n*b8]);o.center([-t[0],-t[1]]);return i};i.stream=function(a){a=t(a);a.sphere=function(){a.polygonStart();var t=.01,e=o.radius(90-t)().coordinates[0],n=e.length-1,r=-1,i;a.lineStart();while(++r<n){a.point((i=e[r])[0],i[1])}a.lineEnd();e=o.radius(90+t)().coordinates[0];n=e.length-1;a.lineStart();while(--r>=0){a.point((i=e[r])[0],i[1])}a.lineEnd();a.polygonEnd()};return a};return i.scale(79.4187).parallel(45).clipAngle(180-.001)}var NB=3,zB=k8(1-1/NB)*b8,FB=R7(0);function jB(a){var o=zB*w8,s=x7(d8,o)[0]-x7(-d8,o)[0],u=FB(0,o)[1],l=x7(0,o)[1],c=m8-l,f=_8/a,h=4/_8,d=u+c*c*4/_8;function t(t,e){var n,r=$P(e);if(r>o){var i=a8(a-1,i8(0,n8((t+d8)/f)));t+=d8*(a-1)/a-i*f;n=x7(t,r);n[0]=n[0]*_8/s-_8*(a-1)/(2*a)+i*_8/a;n[1]=u+(n[1]-l)*4*c/_8;if(e<0)n[1]=-n[1]}else{n=FB(t,e)}n[0]*=h,n[1]/=d;return n}t.invert=function(t,e){t/=h,e*=d;var n=$P(e);if(n>u){var r=a8(a-1,i8(0,n8((t+d8)/f)));t=(t+d8*(a-1)/a-r*f)*s/_8;var i=x7.invert(t,.25*(n-u)*_8/c+l);i[0]-=d8*(a-1)/a-r*f;if(e<0)i[1]=-i[1];return i}return FB.invert(t,e)};return t}function IB(t,e){return[t,e&1?90-f8:zB]}function LB(t,e){return[t,e&1?-90+f8:-zB]}function HB(t){return[t[0]*(1-f8),t[1]]}function UB(t){var e=[].concat(Me(-180,180+t/2,t).map(IB),Me(180,-180-t/2,-t).map(LB));return{type:"Polygon",coordinates:[t===180?e.map(HB):e]}}function GB(){var i=4,e=sP(jB),a=e(i),o=a.stream;a.lobes=function(t){return arguments.length?e(i=+t):i};a.stream=function(t){var e=a.rotate(),n=o(t),r=(a.rotate([0,0]),o(t));a.rotate(e);n.sphere=function(){yM(UB(180/i),r)};return n};return a.scale(239.75)}function VB(h){var d=1+h,t=l8(1/d),g=k8(t),v=2*C8(d8/(p=d8+4*g*d)),p,y=.5*v*(d+C8(h*(2+h))),m=h*h,_=d*d;function e(t,e){var n=1-l8(e),r,i;if(n&&n<2){var a=g8-e,o=25,s;do{var u=l8(a),l=t8(a),c=g+QP(u,d-l),f=1+_-2*d*l;a-=s=(a-m*g-d*u+f*c-.5*n*p)/(2*d*u*c)}while($P(s)>h8&&--o>0);r=v*C8(f);i=t*c/d8}else{r=v*(h+n);i=t*g/d8}return[r*l8(i),y-r*t8(i)]}e.invert=function(t,e){var n=t*t+(e-=y)*e,r=(1+_-n/(v*v))/(2*d),i=S8(r),a=l8(i),o=g+QP(a,d-r);return[k8(t/C8(n))*d8/o,k8(1-2*(i-m*g-d*a+(1+_-2*d*r)*o)/p)]};return e}function WB(){var e=1,n=sP(VB),t=n(e);t.ratio=function(t){return arguments.length?n(e=+t):e};return t.scale(167.774).center([0,18.67])}var qB=.7109889596207567;var KB=.0528035274542;function YB(t,e){return e>-qB?(t=t7(t,e),t[1]+=KB,t):s7(t,e)}YB.invert=function(t,e){return e>-qB?t7.invert(t,e-KB):s7.invert(t,e)};function XB(){return oP(YB).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}function ZB(t,e){return $P(e)>qB?(t=t7(t,e),t[1]-=e>0?KB:-KB,t):s7(t,e)}ZB.invert=function(t,e){return $P(e)>qB?t7.invert(t,e+(e>0?KB:-KB)):s7.invert(t,e)};function $B(){return oP(ZB).scale(152.63)}function JB(n,r,a,t){var o=C8(4*d8/(2*a+(1+n-r/2)*l8(2*a)+(n+r)/2*l8(4*a)+r/2*l8(6*a))),s=C8(t*l8(a)*C8((1+n*t8(2*a)+r*t8(4*a))/(1+n+r))),u=a*c(1);function l(t){return C8(1+n*t8(2*t)+r*t8(4*t))}function c(t){var e=t*a;return(2*e+(1+n-r/2)*l8(2*e)+(n+r)/2*l8(4*e)+r/2*l8(6*e))/a}function i(t){return l(t)*l8(t)}var e=function t(e,n){var r=a*Y8(c,u*l8(n)/a,n/d8);if(isNaN(r))r=a*u8(n);var i=o*l(r);return[i*s*e/d8*t8(r),i/s*l8(r)]};e.invert=function(t,e){var n=Y8(i,e*s/o);return[t*d8/(t8(n)*o*s*l(n)),k8(a*c(n/a)/u)]};if(a===0){o=C8(t/d8);e=function t(e,n){return[e*o,l8(n)/o]};e.invert=function(t,e){return[t/o,k8(e*o)]}}return e}function QB(){var e=1,n=0,r=45*w8,i=2,a=sP(JB),t=a(e,n,r,i);t.a=function(t){return arguments.length?a(e=+t,n,r,i):e};t.b=function(t){return arguments.length?a(e,n=+t,r,i):n};t.psiMax=function(t){return arguments.length?a(e,n,r=+t*w8,i):r*b8};t.ratio=function(t){return arguments.length?a(e,n,r,i=+t):i};return t.scale(180.739)}function tD(t,e,n,r,i,a,o,s,u,l,c){if(c.nanEncountered){return NaN}var f,h,d,g,v,p,y,m,_,b;f=n-e;h=t(e+f*.25);d=t(n-f*.25);if(isNaN(h)){c.nanEncountered=true;return}if(isNaN(d)){c.nanEncountered=true;return}g=f*(r+4*h+i)/12;v=f*(i+4*d+a)/12;p=g+v;b=(p-o)/15;if(l>u){c.maxDepthCount++;return p+b}else if(Math.abs(b)<s){return p+b}else{y=e+f*.5;m=tD(t,e,y,r,h,i,g,s*.5,u,l+1,c);if(isNaN(m)){c.nanEncountered=true;return NaN}_=tD(t,y,n,i,d,a,v,s*.5,u,l+1,c);if(isNaN(_)){c.nanEncountered=true;return NaN}return m+_}}function eD(t,e,n,r,i){var a={maxDepthCount:0,nanEncountered:false};if(r===undefined){r=1e-8}if(i===undefined){i=20}var o=t(e);var s=t(.5*(e+n));var u=t(n);var l=(o+4*s+u)*(n-e)/6;var c=tD(t,e,n,o,s,u,l,r,i,1,a);return c}function nD(e,n,t){function a(t){return e+(1-e)*o8(1-o8(t,n),1/n)}function r(t){return eD(a,0,t,1e-4)}var i=1/r(1),o=1e3,s=(1+1e-8)*i,u=[];for(var l=0;l<=o;l++){u.push(r(l/o)*s)}function c(t){var e=0,n=o,r=o>>1;do{if(u[r]>t)n=r;else e=r;r=e+n>>1}while(r>e);var i=u[r+1]-u[r];if(i)i=(t-u[r+1])/i;return(r+1+i)/o}var f=2*c(1)/d8*i/t;var h=function t(e,n){var r=c($P(l8(n))),i=a(r)*e;r/=f;return[i,n>=0?r:-r]};h.invert=function(t,e){var n;e*=f;if($P(e)<1)n=u8(e)*k8(r($P(e))*i);return[t/a($P(e)),n]};return h}function rD(){var e=0,n=2.5,r=1.183136,i=sP(nD),t=i(e,n,r);t.alpha=function(t){return arguments.length?i(e=+t,n,r):e};t.k=function(t){return arguments.length?i(e,n=+t,r):n};t.gamma=function(t){return arguments.length?i(e,n,r=+t):r};return t.scale(152.63)}function iD(t,e){return $P(t[0]-e[0])<f8&&$P(t[1]-e[1])<f8}function aD(t,e){var n=-1,r=t.length,i=t[0],a,o,s,u=[];while(++n<r){a=t[n];o=(a[0]-i[0])/e;s=(a[1]-i[1])/e;for(var l=0;l<e;++l){u.push([i[0]+l*o,i[1]+l*s])}i=a}u.push(a);return u}function oD(t){var e=[],n,r,i,a,o,s,u,l=t[0].length;for(u=0;u<l;++u){n=t[0][u];r=n[0][0],i=n[0][1],a=n[1][1];o=n[2][0],s=n[2][1];e.push(aD([[r+f8,i+f8],[r+f8,a-f8],[o-f8,a-f8],[o-f8,s+f8]],30))}for(u=t[1].length-1;u>=0;--u){n=t[1][u];r=n[0][0],i=n[0][1],a=n[1][1];o=n[2][0],s=n[2][1];e.push(aD([[o-f8,s-f8],[o-f8,a+f8],[r+f8,a+f8],[r+f8,i-f8]],30))}return{type:"Polygon",coordinates:[Ae(e)]}}function sD(u,l,t){var i,c;function f(t,e){var n=e<0?-1:+1,r=l[+(e<0)];for(var i=0,a=r.length-1;i<a&&t>r[i][2][0];++i){}var o=u(t-r[i][1][0],e);o[0]+=u(r[i][1][0],n*e>n*r[i][0][1]?r[i][0][1]:e)[0];return o}if(t){f.invert=t(f)}else if(u.invert){f.invert=function(t,e){var n=c[+(e<0)],r=l[+(e<0)];for(var i=0,a=n.length;i<a;++i){var o=n[i];if(o[0][0]<=t&&t<o[1][0]&&o[0][1]<=e&&e<o[1][1]){var s=u.invert(t-u(r[i][1][0],0)[0],e);s[0]+=r[i][1][0];return iD(f(s[0],s[1]),[t,e])?s:null}}}}var a=oP(f),o=a.stream;a.stream=function(t){var e=a.rotate(),n=o(t),r=(a.rotate([0,0]),o(t));a.rotate(e);n.sphere=function(){yM(i,r)};return n};a.lobes=function(t){if(!arguments.length)return l.map(function(t){return t.map(function(t){return[[t[0][0]*b8,t[0][1]*b8],[t[1][0]*b8,t[1][1]*b8],[t[2][0]*b8,t[2][1]*b8]]})});i=oD(t);l=t.map(function(t){return t.map(function(t){return[[t[0][0]*w8,t[0][1]*w8],[t[1][0]*w8,t[1][1]*w8],[t[2][0]*w8,t[2][1]*w8]]})});c=l.map(function(t){return t.map(function(t){var e=u(t[0][0],t[0][1])[0],n=u(t[2][0],t[2][1])[0],r=u(t[1][0],t[0][1])[1],i=u(t[1][0],t[1][1])[1],a;if(r>i)a=r,r=i,i=a;return[[e,r],[n,i]]})});return a};if(l!=null)a.lobes(l);return a}var uD=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function lD(){return sD(i7,uD).scale(160.857)}var cD=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function fD(){return sD(ZB,cD).scale(152.63)}var hD=[[[[-180,0],[-100,90],[-40,0]],[[-40,0],[30,90],[180,0]]],[[[-180,0],[-160,-90],[-100,0]],[[-100,0],[-60,-90],[-20,0]],[[-20,0],[20,-90],[80,0]],[[80,0],[140,-90],[180,0]]]];function dD(){return sD(t7,hD).scale(169.529)}var gD=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function vD(){return sD(t7,gD).scale(169.529).rotate([20,0])}var pD=[[[[-180,35],[-30,90],[0,35]],[[0,35],[30,90],[180,35]]],[[[-180,-10],[-102,-90],[-65,-10]],[[-65,-10],[5,-90],[77,-10]],[[77,-10],[103,-90],[180,-10]]]];function yD(){return sD(YB,pD,X8).rotate([-20,-55]).scale(164.263).center([0,-5.4036])}var mD=[[[[-180,0],[-110,90],[-40,0]],[[-40,0],[0,90],[40,0]],[[40,0],[110,90],[180,0]]],[[[-180,0],[-110,-90],[-40,0]],[[-40,0],[0,-90],[40,0]],[[40,0],[110,-90],[180,0]]]];function _D(){return sD(s7,mD).scale(152.63).rotate([-20,0])}function bD(t,e){return[3/_8*t*C8(d8*d8/3-e*e),e]}bD.invert=function(t,e){return[_8/3*t/C8(d8*d8/3-e*e),e]};function wD(){return oP(bD).scale(158.837)}function xD(o){function t(t,e){if($P($P(e)-g8)<f8)return[0,e<0?-2:2];var n=l8(e),r=o8((1+n)/(1-n),o/2),i=.5*(r+1/r)+t8(t*=o);return[2*l8(t)/i,(r-1/r)/i]}t.invert=function(t,e){var n=$P(e);if($P(n-2)<f8)return t?null:[0,u8(e)*g8];if(n>2)return null;t/=2,e/=2;var r=t*t,i=e*e,a=2*e/(1+r+i);a=o8((1+a)/(1-a),1/o);return[QP(2*t,1-r-i)/o,k8((a-1)/(a+1))]};return t}function kD(){var e=.5,n=sP(xD),t=n(e);t.spacing=function(t){return arguments.length?n(e=+t):e};return t.scale(124.75)}var SD=d8/y8;function CD(t,e){return[t*(1+C8(t8(e)))/2,e/(t8(e/2)*t8(t/6))]}CD.invert=function(t,e){var n=$P(t),r=$P(e),i=f8,a=g8;if(r<SD)a*=r/SD;else i+=6*S8(SD/r);for(var o=0;o<25;o++){var s=l8(a),u=C8(t8(a)),l=l8(a/2),c=t8(a/2),f=l8(i/6),h=t8(i/6),d=.5*i*(1+u)-n,g=a/(c*h)-r,v=u?-.25*i*s/u:0,p=.5*(1+u),y=(1+.5*a*l/c)/(c*h),m=a/c*(f/6)/(h*h),_=v*m-y*p,b=(d*m-g*p)/_,w=(g*v-d*y)/_;a-=b;i-=w;if($P(b)<f8&&$P(w)<f8)break}return[t<0?-i:i,e<0?-a:a]};function ED(){return oP(CD).scale(97.2672)}function AD(t,e){var n=t*t,r=e*e;return[t*(.975534+r*(-.119161+n*-.0143059+r*-.0547009)),e*(1.00384+n*(.0802894+r*-.02855+n*199025e-9)+r*(.0998909+r*-.0491032))]}AD.invert=function(t,e){var n=u8(t)*d8,r=e/2,i=50;do{var a=n*n,o=r*r,s=n*r,u=n*(.975534+o*(-.119161+a*-.0143059+o*-.0547009))-t,l=r*(1.00384+a*(.0802894+o*-.02855+a*199025e-9)+o*(.0998909+o*-.0491032))-e,c=.975534-o*(.119161+3*a*.0143059+o*.0547009),f=-s*(2*.119161+4*.0547009*o+2*.0143059*a),h=s*(2*.0802894+4*199025e-9*a+2*-.02855*o),d=1.00384+a*(.0802894+199025e-9*a)+o*(3*(.0998909-.02855*a)-5*.0491032*o),g=f*h-d*c,v=(l*f-u*d)/g,p=(u*h-l*c)/g;n-=v,r-=p}while(($P(v)>f8||$P(p)>f8)&&--i>0);return i&&[n,r]};function MD(){return oP(AD).scale(139.98)}function RD(t,e){return[l8(t)/t8(e),c8(e)*t8(t)]}RD.invert=function(t,e){var n=t*t,r=e*e,i=r+1,a=n+i,o=t?p8*C8((a-C8(a*a-4*n))/n):1/C8(i);return[k8(t*o),u8(e)*S8(o)]};function TD(){return oP(RD).scale(144.049).clipAngle(90-.001)}function OD(i){var a=t8(i),o=c8(v8+i/2);function t(t,e){var n=e-i,r=$P(n)<f8?t*a:$P(r=v8+e/2)<f8||$P($P(r)-g8)<f8?0:t*n/r8(c8(r)/o);return[r,n]}t.invert=function(t,e){var n,r=e+i;return[$P(e)<f8?t/a:$P(n=v8+r/2)<f8||$P($P(n)-g8)<f8?0:t*r8(c8(n)/o)/e,r]};return t}function PD(){return o7(OD).parallel(40).scale(158.837)}function BD(t,e){return[t,1.25*r8(c8(v8+.4*e))]}BD.invert=function(t,e){return[t,2.5*JP(e8(.8*e))-.625*d8]};function DD(){return oP(BD).scale(108.318)}function ND(m){var _=m.length-1;function t(t,e){var n=t8(e),r=2/(1+n*t8(t)),i=r*n*l8(t),a=r*l8(e),o=_,s=m[o],u=s[0],l=s[1],c;while(--o>=0){s=m[o];u=s[0]+i*(c=u)-a*l;l=s[1]+i*l+a*c}u=i*(c=u)-a*l;l=i*l+a*c;return[u,l]}t.invert=function(t,e){var n=20,r=t,i=e;do{var a=_,o=m[a],s=o[0],u=o[1],l=0,c=0,f;while(--a>=0){o=m[a];l=s+r*(f=l)-i*c;c=u+r*c+i*f;s=o[0]+r*(f=s)-i*u;u=o[1]+r*u+i*f}l=s+r*(f=l)-i*c;c=u+r*c+i*f;s=r*(f=s)-i*u-t;u=r*u+i*f-e;var h=l*l+c*c,d,g;r-=d=(s*l+u*c)/h;i-=g=(u*l-s*c)/h}while($P(d)+$P(g)>f8*f8&&--n>0);if(n){var v=C8(r*r+i*i),p=2*JP(v*.5),y=l8(p);return[QP(r*y,v*t8(p)),v?k8(i*y/v):0]}};return t}var zD=[[.9972523,0],[.0052513,-.0041175],[.0074606,.0048125],[-.0153783,-.1968253],[.0636871,-.1408027],[.3660976,-.2937382]],FD=[[.98879,0],[0,0],[-.050909,0],[0,0],[.075528,0]],jD=[[.984299,0],[.0211642,.0037608],[-.1036018,-.0575102],[-.0329095,-.0320119],[.0499471,.1223335],[.026046,.0899805],[7388e-7,-.1435792],[.0075848,-.1334108],[-.0216473,.0776645],[-.0225161,.0853673]],ID=[[.9245,0],[0,0],[.01943,0]],LD=[[.721316,0],[0,0],[-.00881625,-.00617325]];function HD(){return qD(zD,[152,-64]).scale(1400).center([-160.908,62.4864]).clipAngle(30).angle(7.8)}function UD(){return qD(FD,[95,-38]).scale(1e3).clipAngle(55).center([-96.5563,38.8675])}function GD(){return qD(jD,[120,-45]).scale(359.513).clipAngle(55).center([-117.474,53.0628])}function VD(){return qD(ID,[-20,-18]).scale(209.091).center([20,16.7214]).clipAngle(82)}function WD(){return qD(LD,[165,10]).scale(250).clipAngle(130).center([-165,-10])}function qD(t,e){var n=oP(ND(t)).rotate(e).clipAngle(90),r=UR(e),i=n.center;delete n.rotate;n.center=function(t){return arguments.length?i(r(t)):r.invert(i())};return n}var KD=C8(6),YD=C8(7);function XD(t,e){var n=k8(7*l8(e)/(3*KD));return[KD*t*(2*t8(2*n/3)-1)/YD,9*l8(n/3)/YD]}XD.invert=function(t,e){var n=3*k8(e*YD/9);return[t*YD/(KD*(2*t8(2*n/3)-1)),k8(l8(n)*3*KD/7)]};function ZD(){return oP(XD).scale(164.859)}function $D(t,e){var n=(1+p8)*l8(e),r=e;for(var i=0,a;i<25;i++){r-=a=(l8(r/2)+l8(r)-n)/(.5*t8(r/2)+t8(r));if($P(a)<f8)break}return[t*(1+2*t8(r)/t8(r/2))/(3*y8),2*C8(3)*l8(r/2)/C8(2+y8)]}$D.invert=function(t,e){var n=e*C8(2+y8)/(2*C8(3)),r=2*k8(n);return[3*y8*t/(1+2*t8(r)/t8(r/2)),k8((n+l8(r))/(1+p8))]};function JD(){return oP($D).scale(188.209)}function QD(t,e){var n=C8(6/(4+d8)),r=(1+d8/4)*l8(e),i=e/2;for(var a=0,o;a<25;a++){i-=o=(i/2+l8(i)-r)/(.5+t8(i));if($P(o)<f8)break}return[n*(.5+t8(i))*t/1.5,n*i]}QD.invert=function(t,e){var n=C8(6/(4+d8)),r=e/n;if($P($P(r)-g8)<f8)r=r<0?-g8:g8;return[1.5*t/(n*(.5+t8(r))),k8((r/2+l8(r))/(1+d8/4))]};function tN(){return oP(QD).scale(166.518)}function eN(t,e){var n=e*e,r=n*n,i=n*r;return[t*(.84719-.13063*n+i*i*(-.04515+.05494*n-.02326*r+.00331*i)),e*(1.01183+r*r*(-.02625+.01926*n-.00396*r))]}eN.invert=function(t,e){var n=e,r=25,i,a,o,s;do{a=n*n;o=a*a;n-=i=(n*(1.01183+o*o*(-.02625+.01926*a-.00396*o))-e)/(1.01183+o*o*(9*-.02625+11*.01926*a+13*-.00396*o))}while($P(i)>h8&&--r>0);a=n*n;o=a*a;s=a*o;return[t/(.84719-.13063*a+s*s*(-.04515+.05494*a-.02326*o+.00331*s)),n]};function nN(){return oP(eN).scale(175.295)}function rN(t,e){return[t*(1+t8(e))/2,2*(e-c8(e/2))]}rN.invert=function(t,e){var n=e/2;for(var r=0,i=Infinity;r<10&&$P(i)>f8;++r){var a=t8(e/2);e-=i=(e-c8(e/2)-n)/(1-.5/(a*a))}return[2*t/(1+t8(e)),e]};function iN(){return oP(rN).scale(152.63)}var aN=[[[[-180,0],[-90,90],[0,0]],[[0,0],[90,90],[180,0]]],[[[-180,0],[-90,-90],[0,0]],[[0,0],[90,-90],[180,0]]]];function oN(){return sD(W8(Infinity),aN).rotate([20,0]).scale(152.63)}function sN(t,e){var n=l8(e),r=t8(e),i=u8(t);if(t===0||$P(e)===g8)return[0,e];else if(e===0)return[t,0];else if($P(t)===g8)return[t*r,g8*n];var a=d8/(2*t)-2*t/d8,o=2*e/d8,s=(1-o*o)/(n-o);var u=a*a,l=s*s,c=1+u/l,f=1+l/u;var h=(a*n/s-a/2)/c,d=(l*n/u+s/2)/f,g=h*h+r*r/c,v=d*d-(l*n*n/u+s*n-1)/f;return[g8*(h+C8(g)*i),g8*(d+C8(v<0?0:v)*u8(-e*a)*i)]}sN.invert=function(t,e){t/=g8;e/=g8;var n=t*t,r=e*e,i=n+r,a=d8*d8;return[t?(i-1+C8((1-i)*(1-i)+4*n))/(2*t)*g8:0,Y8(function(t){return i*(d8*l8(t)-2*t)*d8+4*t*t*(e-l8(t))+2*d8*t-a*e},0)]};function uN(){return oP(sN).scale(127.267)}var lN=1.0148,cN=.23185,fN=-.14499,hN=.02406,dN=lN,gN=5*cN,vN=7*fN,pN=9*hN,yN=1.790857183;function mN(t,e){var n=e*e;return[t,e*(lN+n*n*(cN+n*(fN+hN*n)))]}mN.invert=function(t,e){if(e>yN)e=yN;else if(e<-yN)e=-yN;var n=e,r;do{var i=n*n;n-=r=(n*(lN+i*i*(cN+i*(fN+hN*i)))-e)/(dN+i*i*(gN+i*(vN+pN*i)))}while($P(r)>f8);return[t,n]};function _N(){return oP(mN).scale(139.319)}function bN(t,e){if($P(e)<f8)return[t,0];var n=c8(e),r=t*l8(e);return[l8(r)/n,e+(1-t8(r))/n]}bN.invert=function(t,e){if($P(e)<f8)return[t,0];var n=t*t+e*e,r=e*.5,i=10,a;do{var o=c8(r),s=1/t8(r),u=n-2*e*r+r*r;r-=a=(o*u+2*(r-e))/(2+u*s*s+2*(r-e)*o)}while($P(a)>f8&&--i>0);o=c8(r);return[($P(e)<$P(r+1/o)?k8(t*o):u8(e)*u8(t)*(S8($P(t*o))+g8))/l8(r),r]};function wN(){return oP(bN).scale(103.74)}function xN(t,e){var n=CN(t[1],t[0]),r=CN(e[1],e[0]),i=AN(n,r),a=EN(n)/EN(r);return SN([1,0,t[0][0],0,1,t[0][1]],SN([a,0,0,0,a,0],SN([t8(i),l8(i),0,-l8(i),t8(i),0],[1,0,-e[0][0],0,1,-e[0][1]])))}function kN(t){var e=1/(t[0]*t[4]-t[1]*t[3]);return[e*t[4],-e*t[1],e*(t[1]*t[5]-t[2]*t[4]),-e*t[3],e*t[0],e*(t[2]*t[3]-t[0]*t[5])]}function SN(t,e){return[t[0]*e[0]+t[1]*e[3],t[0]*e[1]+t[1]*e[4],t[0]*e[2]+t[1]*e[5]+t[2],t[3]*e[0]+t[4]*e[3],t[3]*e[1]+t[4]*e[4],t[3]*e[2]+t[4]*e[5]+t[5]]}function CN(t,e){return[t[0]-e[0],t[1]-e[1]]}function EN(t){return C8(t[0]*t[0]+t[1]*t[1])}function AN(t,e){return QP(t[0]*e[1]-t[1]*e[0],t[0]*e[0]+t[1]*e[1])}function MN(i,a){s(i,{transform:null});function s(e,t){e.edges=PN(e.face);if(t.face){var n=e.shared=ON(e.face,t.face),r=xN(n.map(t.project),n.map(e.project));e.transform=t.transform?SN(t.transform,r):r;var i=t.edges;for(var a=0,o=i.length;a<o;++a){if(TN(n[0],i[a][1])&&TN(n[1],i[a][0]))i[a]=e;if(TN(n[0],i[a][0])&&TN(n[1],i[a][1]))i[a]=e}i=e.edges;for(a=0,o=i.length;a<o;++a){if(TN(n[0],i[a][0])&&TN(n[1],i[a][1]))i[a]=t;if(TN(n[0],i[a][1])&&TN(n[1],i[a][0]))i[a]=t}}else{e.transform=t.transform}if(e.children){e.children.forEach(function(t){s(t,e)})}return e}function t(t,e){var n=a(t,e),r=n.project([t*b8,e*b8]),i;if(i=n.transform){return[i[0]*r[0]+i[1]*r[1]+i[2],-(i[3]*r[0]+i[4]*r[1]+i[5])]}r[1]=-r[1];return r}if(BN(i))t.invert=function(t,e){var n=l(i,[t,-e]);return n&&(n[0]*=w8,n[1]*=w8,n)};function l(t,e){var n=t.project.invert,r=t.transform,i=e;if(r){r=kN(r);i=[r[0]*i[0]+r[1]*i[1]+r[2],r[3]*i[0]+r[4]*i[1]+r[5]]}if(n&&t===c(a=n(i)))return a;var a,o=t.children;for(var s=0,u=o&&o.length;s<u;++s){if(a=l(o[s],e))return a}}function c(t){return a(t[0]*w8,t[1]*w8)}var o=oP(t),u=o.stream;o.stream=function(t){var e=o.rotate(),n=u(t),r=(o.rotate([0,0]),u(t));o.rotate(e);n.sphere=function(){r.polygonStart();r.lineStart();RN(r,i);r.lineEnd();r.polygonEnd()};return n};return o.angle(-30)}function RN(t,e,n){var r,i=e.edges,a=i.length,o,s={type:"MultiPoint",coordinates:e.face},u=e.face.filter(function(t){return $P(t[1])!==90}),l=oR({type:"MultiPoint",coordinates:u}),c=false,f=-1,h=l[1][0]-l[0][0];var d=h===180||h===360?[(l[0][0]+l[1][0])/2,(l[0][1]+l[1][1])/2]:DR(s);if(n)while(++f<a){if(i[f]===n)break}++f;for(var g=0;g<a;++g){o=i[(g+f)%a];if(Array.isArray(o)){if(!c){t.point((r=jT(o[0],d)(f8))[0],r[1]);c=true}t.point((r=jT(o[1],d)(f8))[0],r[1])}else{c=false;if(o!==n)RN(t,o,e)}}}function TN(t,e){return t&&e&&t[0]===e[0]&&t[1]===e[1]}function ON(t,e){var n,r,i=t.length,a=null;for(var o=0;o<i;++o){n=t[o];for(var s=e.length;--s>=0;){r=e[s];if(n[0]===r[0]&&n[1]===r[1]){if(a)return[a,n];a=n}}}}function PN(t){var e=t.length,n=[];for(var r=t[e-1],i=0;i<e;++i){n.push([r,r=t[i]])}return n}function BN(t){return t.project.invert||t.children&&t.children.some(BN)}var DN=[[0,90],[-90,0],[0,0],[90,0],[180,0],[0,-90]];var NN=[[0,2,1],[0,3,2],[5,1,2],[5,2,3],[0,1,4],[0,4,3],[5,4,1],[5,3,4]].map(function(t){return t.map(function(t){return DN[t]})});function zN(e){e=e||function(t){var e=DR({type:"MultiPoint",coordinates:t});return LP().scale(1).translate([0,0]).rotate([-e[0],-e[1]])};var r=NN.map(function(t){return{face:t,project:e(t)}});[-1,0,0,1,0,1,4,5].forEach(function(t,e){var n=r[t];n&&(n.children||(n.children=[])).push(r[e])});return MN(r[0],function(t,e){return r[t<-d8/2?e<0?6:4:t<0?e<0?2:0:t<d8/2?e<0?3:1:e<0?7:5]}).angle(-30).scale(101.858).center([0,45])}var FN=2/C8(3);function jN(t,e){var n=x7(t,e);return[n[0]*FN,n[1]]}jN.invert=function(t,e){return x7.invert(t/FN,e)};function IN(e){e=e||function(t){var e=DR({type:"MultiPoint",coordinates:t});return oP(jN).translate([0,0]).scale(1).rotate(e[1]>0?[-e[0],0]:[180-e[0],180])};var r=NN.map(function(t){return{face:t,project:e(t)}});[-1,0,0,1,0,1,4,5].forEach(function(t,e){var n=r[t];n&&(n.children||(n.children=[])).push(r[e])});return MN(r[0],function(t,e){return r[t<-d8/2?e<0?6:4:t<0?e<0?2:0:t<d8/2?e<0?3:1:e<0?7:5]}).angle(-30).scale(121.906).center([0,48.5904])}function LN(e){e=e||function(t){var e=t.length===6?DR({type:"MultiPoint",coordinates:t}):t[0];return LP().scale(1).translate([0,0]).rotate([-e[0],-e[1]])};var o=NN.map(function(t){var e=t.map(VN),n=e.length,r=e[n-1],i,a=[];for(var o=0;o<n;++o){i=e[o];a.push(GN([r[0]*.9486832980505138+i[0]*.31622776601683794,r[1]*.9486832980505138+i[1]*.31622776601683794,r[2]*.9486832980505138+i[2]*.31622776601683794]),GN([i[0]*.9486832980505138+r[0]*.31622776601683794,i[1]*.9486832980505138+r[1]*.31622776601683794,i[2]*.9486832980505138+r[2]*.31622776601683794]));r=i}return a});var s=[];var u=[-1,0,0,1,0,1,4,5];o.forEach(function(t,e){var n=NN[e],r=n.length,i=s[e]=[];for(var a=0;a<r;++a){o.push([n[a],t[(a*2+2)%(2*r)],t[(a*2+1)%(2*r)]]);u.push(e);i.push(UN(VN(t[(a*2+2)%(2*r)]),VN(t[(a*2+1)%(2*r)])))}});var l=o.map(function(t){return{project:e(t),face:t}});u.forEach(function(t,e){var n=l[t];n&&(n.children||(n.children=[])).push(l[e])});function t(t,e){var n=t8(e),r=[n*t8(t),n*l8(t),l8(e)];var i=t<-d8/2?e<0?6:4:t<0?e<0?2:0:t<d8/2?e<0?3:1:e<0?7:5;var a=s[i];return l[HN(a[0],r)<0?8+3*i:HN(a[1],r)<0?8+3*i+1:HN(a[2],r)<0?8+3*i+2:i]}return MN(l[0],t).angle(-30).scale(110.625).center([0,45])}function HN(t,e){for(var n=0,r=t.length,i=0;n<r;++n){i+=t[n]*e[n]}return i}function UN(t,e){return[t[1]*e[2]-t[2]*e[1],t[2]*e[0]-t[0]*e[2],t[0]*e[1]-t[1]*e[0]]}function GN(t){return[QP(t[1],t[0])*b8,k8(i8(-1,a8(1,t[2])))*b8]}function VN(t){var e=t[0]*w8,n=t[1]*w8,r=t8(n);return[r*t8(e),r*l8(e),l8(n)]}var WN=function t(){};function qN(t){if((n=t.length)<4)return false;var e=0,n,r=t[n-1][1]*t[0][0]-t[n-1][0]*t[0][1];while(++e<n){r+=t[e-1][1]*t[e][0]-t[e-1][0]*t[e][1]}return r<=0}function KN(t,e){var n=e[0],r=e[1],i=false;for(var a=0,o=t.length,s=o-1;a<o;s=a++){var u=t[a],l=u[0],c=u[1],f=t[s],h=f[0],d=f[1];if(c>r^d>r&&n<(h-l)*(r-c)/(d-c)+l)i=!i}return i}function YN(t,e){var n=e.stream,r;if(!n)throw new Error("invalid projection");switch(t&&t.type){case"Feature":r=ZN;break;case"FeatureCollection":r=XN;break;default:r=JN;break}return r(t,n)}function XN(t,e){return{type:"FeatureCollection",features:t.features.map(function(t){return ZN(t,e)})}}function ZN(t,e){return{type:"Feature",id:t.id,properties:t.properties,geometry:JN(t.geometry,e)}}function $N(t,e){return{type:"GeometryCollection",geometries:t.geometries.map(function(t){return JN(t,e)})}}function JN(t,e){if(!t)return null;if(t.type==="GeometryCollection")return $N(t,e);var n;switch(t.type){case"Point":n=ez;break;case"MultiPoint":n=ez;break;case"LineString":n=nz;break;case"MultiLineString":n=nz;break;case"Polygon":n=rz;break;case"MultiPolygon":n=rz;break;case"Sphere":n=rz;break;default:return null}yM(t,e(n));return n.result()}var QN=[],tz=[];var ez={point:function t(e,n){QN.push([e,n])},result:function t(){var t=!QN.length?null:QN.length<2?{type:"Point",coordinates:QN[0]}:{type:"MultiPoint",coordinates:QN};QN=[];return t}};var nz={lineStart:WN,point:function t(e,n){QN.push([e,n])},lineEnd:function t(){if(QN.length)tz.push(QN),QN=[]},result:function t(){var t=!tz.length?null:tz.length<2?{type:"LineString",coordinates:tz[0]}:{type:"MultiLineString",coordinates:tz};tz=[];return t}};var rz={polygonStart:WN,lineStart:WN,point:function t(e,n){QN.push([e,n])},lineEnd:function t(){var e=QN.length;if(e){do{QN.push(QN[0].slice())}while(++e<4);tz.push(QN),QN=[]}},polygonEnd:WN,result:function t(){if(!tz.length)return null;var r=[],e=[];tz.forEach(function(t){if(qN(t))r.push([t]);else e.push(t)});e.forEach(function(e){var n=e[0];r.some(function(t){if(KN(t[0],n)){t.push(e);return true}})||r.push([e])});tz=[];return!r.length?null:r.length>1?{type:"MultiPolygon",coordinates:r}:{type:"Polygon",coordinates:r[0]}}};function iz(c){var f=c(g8,0)[0]-c(-g8,0)[0];function t(t,e){var n=$P(t)<g8,r=c(n?t:t>0?t-d8:t+d8,e),i=(r[0]-r[1])*p8,a=(r[0]+r[1])*p8;if(n)return[i,a];var o=f*p8,s=i>0^a>0?-1:1;return[s*i-u8(a)*o,s*a-u8(i)*o]}if(c.invert)t.invert=function(t,e){var n=(t+e)*p8,r=(e-t)*p8,i=$P(n)<.5*f&&$P(r)<.5*f;if(!i){var a=f*p8,o=n>0^r>0?-1:1,s=-o*t+(r>0?1:-1)*a,u=-o*e+(n>0?1:-1)*a;n=(-s-u)*p8;r=(s-u)*p8}var l=c.invert(n,r);if(!i)l[0]+=n>0?d8:-d8;return l};return oP(t).rotate([-90,-90,45]).clipAngle(180-.001)}function az(){return iz(bB).scale(176.423)}function oz(){return iz(MB).scale(111.48)}function sz(t,i){if(!(0<=(i=+i)&&i<=20))throw new Error("invalid digits");function a(t){var e=t.length,n=2,r=new Array(e);r[0]=+t[0].toFixed(i);r[1]=+t[1].toFixed(i);while(n<e){r[n]=t[n],++n}return r}function n(t){return t.map(a)}function r(t){var e=a(t[0]);var n=[e];for(var r=1;r<t.length;r++){var i=a(t[r]);if(i.length>2||i[0]!=e[0]||i[1]!=e[1]){n.push(i);e=i}}if(n.length===1&&t.length>1){n.push(a(t[t.length-1]))}return n}function o(t){return t.map(r)}function s(t){if(t==null)return t;var e;switch(t.type){case"GeometryCollection":e={type:"GeometryCollection",geometries:t.geometries.map(s)};break;case"Point":e={type:"Point",coordinates:a(t.coordinates)};break;case"MultiPoint":e={type:t.type,coordinates:n(t.coordinates)};break;case"LineString":e={type:t.type,coordinates:r(t.coordinates)};break;case"MultiLineString":case"Polygon":e={type:t.type,coordinates:o(t.coordinates)};break;case"MultiPolygon":e={type:"MultiPolygon",coordinates:t.coordinates.map(o)};break;default:return t}if(t.bbox!=null)e.bbox=t.bbox;return e}function e(t){var e={type:"Feature",properties:t.properties,geometry:s(t.geometry)};if(t.id!=null)e.id=t.id;if(t.bbox!=null)e.bbox=t.bbox;return e}if(t!=null)switch(t.type){case"Feature":return e(t);case"FeatureCollection":{var u={type:"FeatureCollection",features:t.features.map(e)};if(t.bbox!=null)u.bbox=t.bbox;return u}default:return s(t)}return t}function uz(f){var h=l8(f);function t(t,e){var n=h?c8(t*h/2)/h:t/2;if(!e)return[2*n,-f];var r=2*JP(n*l8(e)),i=1/c8(e);return[l8(r)*i,e+(1-t8(r))*i-f]}t.invert=function(t,e){if($P(e+=f)<f8)return[h?2*JP(h*t/2)/h:t,0];var n=t*t+e*e,r=0,i=10,a;do{var o=c8(r),s=1/t8(r),u=n-2*e*r+r*r;r-=a=(o*u+2*(r-e))/(2+u*s*s+2*(r-e)*o)}while($P(a)>f8&&--i>0);var l=t*(o=c8(r)),c=c8($P(e)<$P(r+1/o)?k8(l)*.5:S8(l)*.5+d8/4)/l8(r);return[h?2*JP(h*c)/h:2*c,r]};return t}function lz(){return o7(uz).scale(131.215)}var cz=[[.9986,-.062],[1,0],[.9986,.062],[.9954,.124],[.99,.186],[.9822,.248],[.973,.31],[.96,.372],[.9427,.434],[.9216,.4958],[.8962,.5571],[.8679,.6176],[.835,.6769],[.7986,.7346],[.7597,.7903],[.7186,.8435],[.6732,.8936],[.6213,.9394],[.5722,.9761],[.5322,1]];cz.forEach(function(t){t[1]*=1.0144});function fz(t,e){var n=a8(18,$P(e)*36/d8),r=n8(n),i=n-r,a=(f=cz[r])[0],o=f[1],s=(f=cz[++r])[0],u=f[1],l=(f=cz[a8(19,++r)])[0],c=f[1],f;return[t*(s+i*(l-a)/2+i*i*(l-2*s+a)/2),(e>0?g8:-g8)*(u+i*(c-o)/2+i*i*(c-2*u+o)/2)]}fz.invert=function(t,e){var n=e/g8,r=n*90,i=a8(18,$P(r/5)),a=i8(0,n8(i));do{var o=cz[a][1],s=cz[a+1][1],u=cz[a8(19,a+2)][1],l=u-o,c=u-2*s+o,f=2*($P(n)-s)/l,h=c/l,d=f*(1-h*f*(1-2*h*f));if(d>=0||a===1){r=(e>=0?5:-5)*(d+i);var g=50,v;do{i=a8(18,$P(r)/5);a=n8(i);d=i-a;o=cz[a][1];s=cz[a+1][1];u=cz[a8(19,a+2)][1];r-=(v=(e>=0?g8:-g8)*(s+d*(u-o)/2+d*d*(u-2*s+o)/2)-e)*b8}while($P(v)>h8&&--g>0);break}}while(--a>=0);var p=cz[a][0],y=cz[a+1][0],m=cz[a8(19,a+2)][0];return[t/(y+d*(m-p)/2+d*d*(m-2*y+p)/2),r*w8]};function hz(){return oP(fz).scale(152.63)}function dz(a){function t(t,e){var n=t8(e),r=(a-1)/(a-n*t8(t));return[r*n*l8(t),r*l8(e)]}t.invert=function(t,e){var n=t*t+e*e,r=C8(n),i=(a-C8(1-n*(a+1)/(a-1)))/((a-1)/r+r/(a-1));return[QP(t*i,r*C8(1-i*i)),r?k8(e*i/r):0]};return t}function gz(a,t){var o=dz(a);if(!t)return o;var s=t8(t),u=l8(t);function e(t,e){var n=o(t,e),r=n[1],i=r*u/(a-1)+s;return[n[0]*s/i,r/i]}e.invert=function(t,e){var n=(a-1)/(a-1-e*u);return o.invert(n*t,n*e*s)};return e}function vz(){var e=2,n=0,r=sP(gz),t=r(e,n);t.distance=function(t){if(!arguments.length)return e;return r(e=+t,n)};t.tilt=function(t){if(!arguments.length)return n*b8;return r(e,n=t*w8)};return t.scale(432.147).clipAngle(S8(1/e)*b8-1e-6)}var pz=1e-4,yz=1e4,mz=-180,_z=mz+pz,bz=180,wz=bz-pz,xz=-90,kz=xz+pz,Sz=90,Cz=Sz-pz;function Ez(t){return t.length>0}function Az(t){return Math.floor(t*yz)/yz}function Mz(t){return t===xz||t===Sz?[0,t]:[mz,Az(t)]}function Rz(t){var e=t[0],n=t[1],r=false;if(e<=_z)e=mz,r=true;else if(e>=wz)e=bz,r=true;if(n<=kz)n=xz,r=true;else if(n>=Cz)n=Sz,r=true;return r?[e,n]:t}function Tz(t){return t.map(Rz)}function Oz(t,e,n){for(var r=0,i=t.length;r<i;++r){var a=t[r].slice();n.push({index:-1,polygon:e,ring:a});for(var o=0,s=a.length;o<s;++o){var u=a[o],l=u[0],c=u[1];if(l<=_z||l>=wz||c<=kz||c>=Cz){a[o]=Rz(u);for(var f=o+1;f<s;++f){var h=a[f],d=h[0],g=h[1];if(d>_z&&d<wz&&g>kz&&g<Cz)break}if(f===o+1)continue;if(o){var v={index:-1,polygon:e,ring:a.slice(0,o+1)};v.ring[v.ring.length-1]=Mz(c);n[n.length-1]=v}else n.pop();if(f>=s)break;n.push({index:-1,polygon:e,ring:a=a.slice(f-1)});a[0]=Mz(a[0][1]);o=-1;s=a.length}}}}function Pz(t){var e,n=t.length;var r={},i={},a,o,s,u,l;for(e=0;e<n;++e){a=t[e];o=a.ring[0];u=a.ring[a.ring.length-1];if(o[0]===u[0]&&o[1]===u[1]){a.polygon.push(a.ring);t[e]=null;continue}a.index=e;r[o]=i[u]=a}for(e=0;e<n;++e){a=t[e];if(a){o=a.ring[0];u=a.ring[a.ring.length-1];s=i[o];l=r[u];delete r[o];delete i[u];if(o[0]===u[0]&&o[1]===u[1]){a.polygon.push(a.ring);continue}if(s){delete i[o];delete r[s.ring[0]];s.ring.pop();t[s.index]=null;a={index:-1,polygon:s.polygon,ring:s.ring.concat(a.ring)};if(s===l){a.polygon.push(a.ring)}else{a.index=n++;t.push(r[a.ring[0]]=i[a.ring[a.ring.length-1]]=a)}}else if(l){delete r[u];delete i[l.ring[l.ring.length-1]];a.ring.pop();a={index:n++,polygon:l.polygon,ring:a.ring.concat(l.ring)};t[l.index]=null;t.push(r[a.ring[0]]=i[a.ring[a.ring.length-1]]=a)}else{a.ring.push(a.ring[0]);a.polygon.push(a.ring)}}}}function Bz(t){var e={type:"Feature",geometry:Dz(t.geometry)};if(t.id!=null)e.id=t.id;if(t.bbox!=null)e.bbox=t.bbox;if(t.properties!=null)e.properties=t.properties;return e}function Dz(t){if(t==null)return t;var e,n,r,i;switch(t.type){case"GeometryCollection":e={type:"GeometryCollection",geometries:t.geometries.map(Dz)};break;case"Point":e={type:"Point",coordinates:Rz(t.coordinates)};break;case"MultiPoint":case"LineString":e={type:t.type,coordinates:Tz(t.coordinates)};break;case"MultiLineString":e={type:"MultiLineString",coordinates:t.coordinates.map(Tz)};break;case"Polygon":{var a=[];Oz(t.coordinates,a,n=[]);Pz(n);e={type:"Polygon",coordinates:a};break}case"MultiPolygon":{n=[],r=-1,i=t.coordinates.length;var o=new Array(i);while(++r<i){Oz(t.coordinates[r],o[r]=[],n)}Pz(n);e={type:"MultiPolygon",coordinates:o.filter(Ez)};break}default:return t}if(t.bbox!=null)e.bbox=t.bbox;return e}function Nz(t){if(t==null)return t;switch(t.type){case"Feature":return Bz(t);case"FeatureCollection":{var e={type:"FeatureCollection",features:t.features.map(Bz)};if(t.bbox!=null)e.bbox=t.bbox;return e}default:return Dz(t)}}function zz(t,e){var n=c8(e/2),r=l8(v8*n);return[t*(.74482-.34588*r*r),1.70711*n]}zz.invert=function(t,e){var n=e/1.70711,r=l8(v8*n);return[t/(.74482-.34588*r*r),2*JP(n)]};function Fz(){return oP(zz).scale(146.153)}function jz(t,e,n){var r=jT(e,n),i=r(.5),a=UR([-i[0],-i[1]])(e),o=r.distance/2,s=-k8(l8(a[1]*w8)/l8(o)),u=[-i[0],-i[1],-(a[0]>0?d8-s:s)*b8],l=oP(t(o)).rotate(u),c=UR(u),f=l.center;delete l.rotate;l.center=function(t){return arguments.length?f(c(t)):c.invert(f())};return l.clipAngle(90)}function Iz(t){var r=t8(t);function e(t,e){var n=IP(t,e);n[0]*=r;return n}e.invert=function(t,e){return IP.invert(t/r,e)};return e}function Lz(){return Hz([-158,21.5],[-77,39]).clipAngle(60).scale(400)}function Hz(t,e){return jz(Iz,t,e)}function Uz(a){if(!(a*=2))return _P;var s=-a/2,u=-s,o=a*a,l=c8(u),c=.5/l8(u);function t(t,e){var n=S8(t8(e)*t8(t-s)),r=S8(t8(e)*t8(t-u)),i=e<0?-1:1;n*=n,r*=r;return[(n-r)/(2*a),i*C8(4*o*r-(o-n+r)*(o-n+r))/(2*a)]}t.invert=function(t,e){var n=e*e,r=t8(C8(n+(a=t+s)*a)),i=t8(C8(n+(a=t+u)*a)),a,o;return[QP(o=r-i,a=(r+i)*l),(e<0?-1:1)*S8(C8(a*a+o*o)*c)]};return t}function Gz(){return Vz([-158,21.5],[-77,39]).clipAngle(130).scale(122.571)}function Vz(t,e){return jz(Uz,t,e)}function Wz(t,e){if($P(e)<f8)return[t,0];var n=$P(e/g8),r=k8(n);if($P(t)<f8||$P($P(e)-g8)<f8)return[0,u8(e)*d8*c8(r/2)];var i=t8(r),a=$P(d8/t-t/d8)/2,o=a*a,s=i/(n+i-1),u=s*(2/n-1),l=u*u,c=l+o,f=s-l,h=o+s;return[u8(t)*d8*(a*f+C8(o*f*f-c*(s*s-l)))/c,u8(e)*d8*(u*h-a*C8((o+1)*c-h*h))/c]}Wz.invert=function(t,e){if($P(e)<f8)return[t,0];if($P(t)<f8)return[0,g8*l8(2*JP(e/d8))];var n=(t/=d8)*t,r=(e/=d8)*e,i=n+r,a=i*i,o=-$P(e)*(1+i),s=o-2*r+n,u=-2*o+1+2*r+a,l=r/u+(2*s*s*s/(u*u*u)-9*o*s/(u*u))/27,c=(o-s*s/(3*u))/u,f=2*C8(-c/3),h=S8(3*l/(c*f))/3;return[d8*(i-1+C8(1+2*(n-r)+a))/(2*t),u8(e)*d8*(-f*t8(h+d8/3)-s/(3*u))]};function qz(){return oP(Wz).scale(79.4183)}function Kz(t,e){if($P(e)<f8)return[t,0];var n=$P(e/g8),r=k8(n);if($P(t)<f8||$P($P(e)-g8)<f8)return[0,u8(e)*d8*c8(r/2)];var i=t8(r),a=$P(d8/t-t/d8)/2,o=a*a,s=i*(C8(1+o)-a*i)/(1+o*n*n);return[u8(t)*d8*s,u8(e)*d8*C8(1-s*(2*a+s))]}Kz.invert=function(t,e){if(!t)return[0,g8*l8(2*JP(e/d8))];var n=$P(t/d8),r=(1-n*n-(e/=d8)*e)/(2*n),i=r*r,a=C8(i+1);return[u8(t)*d8*(a-r),u8(e)*g8*l8(2*QP(C8((1-2*r*n)*(r+a)-n),C8(a+r+n)))]};function Yz(){return oP(Kz).scale(79.4183)}function Xz(t,e){if($P(e)<f8)return[t,0];var n=e/g8,r=k8(n);if($P(t)<f8||$P($P(e)-g8)<f8)return[0,d8*c8(r/2)];var i=(d8/t-t/d8)/2,a=n/(1+t8(r));return[d8*(u8(t)*C8(i*i+1-a*a)-i),d8*a]}Xz.invert=function(t,e){if(!e)return[t,0];var n=e/d8,r=(d8*d8*(1-n*n)-t*t)/(2*d8*t);return[t?d8*(u8(t)*C8(r*r+1)-r):0,g8*l8(2*JP(n))]};function Zz(){return oP(Xz).scale(79.4183)}function $z(t,e){if(!e)return[t,0];var n=$P(e);if(!t||n===g8)return[0,e];var r=n/g8,i=r*r,a=(8*r-i*(i+2)-5)/(2*i*(r-1)),o=a*a,s=r*a,u=i+o+2*s,l=r+3*a,c=t/g8,f=c+1/c,h=u8($P(t)-g8)*C8(f*f-4),d=h*h,g=u*(i+o*d-1)+(1-i)*(i*(l*l+4*o)+12*s*o+4*o*o),v=(h*(u+o-1)+2*C8(g))/(4*u+d);return[u8(t)*g8*v,u8(e)*g8*C8(1+h*$P(v)-v*v)]}$z.invert=function(t,e){var n;if(!t||!e)return[t,e];var r=u8(e);e=$P(e)/d8;var i=u8(t)*t/g8,a=(i*i-1+4*e*e)/$P(i),o=a*a,s=e*(2-(e>.5?a8(e,$P(t)):0)),u=t*t+e*e,l=50;do{var c=s*s,f=(8*s-c*(c+2)-5)/(2*c*(s-1)),h=(3*s-c*s-10)/(2*c*s),d=f*f,g=s*f,v=s+f,p=v*v,y=s+3*f,m=p*(c+d*o-1)+(1-c)*(c*(y*y+4*d)+d*(12*g+4*d)),_=-2*v*(4*g*d+(1-4*c+3*c*c)*(1+h)+d*(-6+14*c-o+(-8+8*c-2*o)*h)+g*(-8+12*c+(-10+10*c-o)*h)),b=C8(m),w=a*(p+d-1)+2*b-i*(4*p+o),x=a*(2*f*h+2*v*(1+h))+_/b-8*v*(a*(-1+d+p)+2*b)*(1+h)/(o+4*p);s-=n=w/x}while(n*u*u>f8&&--l>0);return[u8(t)*(C8(a*a+4)+a)*d8/4,r*g8*s]};function Jz(){return oP($z).scale(127.16)}function Qz(o,s,u,l,c){function t(t,e){var n=u*l8(l*e),r=C8(1-n*n),i=C8(2/(1+r*t8(t*=c)));return[o*r*i*l8(t),s*n*i]}t.invert=function(t,e){var n=t/o,r=e/s,i=C8(n*n+r*r),a=2*k8(i/2);return[QP(t*c8(a),o*i)/c,i&&k8(e*l8(a)/(s*u*i))/l]};return t}function tF(t,e,n,r){var i=d8/3;t=i8(t,f8);e=i8(e,f8);t=a8(t,g8);e=a8(e,d8-f8);n=i8(n,0);n=a8(n,100-f8);r=i8(r,f8);var a=n/100+1;var o=r/100;var s=S8(a*t8(i))/i,u=l8(t)/l8(s*g8),l=e/d8,c=C8(o*l8(t/2)/l8(e/2)),f=c/C8(l*u*s),h=1/(c*C8(l*u*s));return Qz(f,h,u,s,l)}function eF(){var e=65*w8,n=60*w8,r=20,i=200,a=sP(tF),t=a(e,n,r,i);t.poleline=function(t){return arguments.length?a(e=+t*w8,n,r,i):e*b8};t.parallels=function(t){return arguments.length?a(e,n=+t*w8,r,i):n*b8};t.inflation=function(t){return arguments.length?a(e,n,r=+t,i):r};t.ratio=function(t){return arguments.length?a(e,n,r,i=+t):i};return t.scale(163.775)}function nF(){return eF().poleline(65).parallels(60).inflation(0).ratio(200).scale(172.633)}var rF=4*d8+3*C8(3),iF=2*C8(2*d8*C8(3)/rF);var aF=Q8(iF*C8(3)/d8,iF,rF/6);function oF(){return oP(aF).scale(176.84)}function sF(t,e){return[t*C8(1-3*e*e/(d8*d8)),e]}sF.invert=function(t,e){return[t/C8(1-3*e*e/(d8*d8)),e]};function uF(){return oP(sF).scale(152.63)}function lF(t,e){var n=t8(e),r=t8(t)*n,i=1-r,a=t8(t=QP(l8(t)*n,-l8(e))),o=l8(t);n=C8(1-r*r);return[o*n-a*i,-a*n-o*i]}lF.invert=function(t,e){var n=(t*t+e*e)/-2,r=C8(-n*(2+n)),i=e*n+t*r,a=t*n-e*r,o=C8(a*a+i*i);return[QP(r*i,o*(1+n)),o?-k8(r*a/o):0]};function cF(){return oP(lF).rotate([0,-90,45]).scale(124.75).clipAngle(180-.001)}function fF(t,e){var n=B8(t,e);return[(n[0]+t/g8)/2,(n[1]+e)/2]}fF.invert=function(t,e){var n=t,r=e,i=25;do{var a=t8(r),o=l8(r),s=l8(2*r),u=o*o,l=a*a,c=l8(n),f=t8(n/2),h=l8(n/2),d=h*h,g=1-l*f*f,v=g?S8(a*f)*C8(p=1/g):p=0,p,y=.5*(2*v*a*h+n/g8)-t,m=.5*(v*o+r)-e,_=.5*p*(l*d+v*a*f*u)+.5/g8,b=p*(c*s/4-v*o*h),w=.125*p*(s*h-v*o*l*c),x=.5*p*(u*f+v*d*a)+.5,k=b*w-x*_,S=(m*b-y*x)/k,C=(y*w-m*_)/k;n-=S,r-=C}while(($P(S)>f8||$P(C)>f8)&&--i>0);return[n,r]};function hF(){return oP(fF).scale(158.837)}var dF=Object.freeze({__proto__:null,geoAiry:P8,geoAiryRaw:O8,geoAitoff:D8,geoAitoffRaw:B8,geoArmadillo:z8,geoArmadilloRaw:N8,geoAugust:j8,geoAugustRaw:F8,geoBaker:U8,geoBakerRaw:H8,geoBerghaus:V8,geoBerghausRaw:G8,geoBertin1953:$8,geoBertin1953Raw:Z8,geoBoggs:a7,geoBoggsRaw:i7,geoBonne:c7,geoBonneRaw:l7,geoBottomley:h7,geoBottomleyRaw:f7,geoBromley:g7,geoBromleyRaw:d7,geoChamberlin:w7,geoChamberlinRaw:m7,geoChamberlinAfrica:b7,geoCollignon:k7,geoCollignonRaw:x7,geoCraig:C7,geoCraigRaw:S7,geoCraster:M7,geoCrasterRaw:A7,geoCylindricalEqualArea:T7,geoCylindricalEqualAreaRaw:R7,geoCylindricalStereographic:P7,geoCylindricalStereographicRaw:O7,geoEckert1:D7,geoEckert1Raw:B7,geoEckert2:z7,geoEckert2Raw:N7,geoEckert3:j7,geoEckert3Raw:F7,geoEckert4:L7,geoEckert4Raw:I7,geoEckert5:U7,geoEckert5Raw:H7,geoEckert6:V7,geoEckert6Raw:G7,geoEisenlohr:K7,geoEisenlohrRaw:q7,geoFahey:Z7,geoFaheyRaw:X7,geoFoucaut:J7,geoFoucautRaw:$7,geoFoucautSinusoidal:tB,geoFoucautSinusoidalRaw:Q7,geoGilbert:rB,geoGingery:sB,geoGingeryRaw:iB,geoGinzburg4:cB,geoGinzburg4Raw:lB,geoGinzburg5:hB,geoGinzburg5Raw:fB,geoGinzburg6:gB,geoGinzburg6Raw:dB,geoGinzburg8:pB,geoGinzburg8Raw:vB,geoGinzburg9:mB,geoGinzburg9Raw:yB,geoGringorten:kB,geoGringortenRaw:bB,geoGuyou:OB,geoGuyouRaw:MB,geoHammer:K8,geoHammerRaw:W8,geoHammerRetroazimuthal:DB,geoHammerRetroazimuthalRaw:PB,geoHealpix:GB,geoHealpixRaw:jB,geoHill:WB,geoHillRaw:VB,geoHomolosine:$B,geoHomolosineRaw:ZB,geoHufnagel:QB,geoHufnagelRaw:JB,geoHyperelliptical:rD,geoHyperellipticalRaw:nD,geoInterrupt:sD,geoInterruptedBoggs:lD,geoInterruptedHomolosine:fD,geoInterruptedMollweide:dD,geoInterruptedMollweideHemispheres:vD,geoInterruptedSinuMollweide:yD,geoInterruptedSinusoidal:_D,geoKavrayskiy7:wD,geoKavrayskiy7Raw:bD,geoLagrange:kD,geoLagrangeRaw:xD,geoLarrivee:ED,geoLarriveeRaw:CD,geoLaskowski:MD,geoLaskowskiRaw:AD,geoLittrow:TD,geoLittrowRaw:RD,geoLoximuthal:PD,geoLoximuthalRaw:OD,geoMiller:DD,geoMillerRaw:BD,geoModifiedStereographic:qD,geoModifiedStereographicRaw:ND,geoModifiedStereographicAlaska:HD,geoModifiedStereographicGs48:UD,geoModifiedStereographicGs50:GD,geoModifiedStereographicMiller:VD,geoModifiedStereographicLee:WD,geoMollweide:e7,geoMollweideRaw:t7,geoMtFlatPolarParabolic:ZD,geoMtFlatPolarParabolicRaw:XD,geoMtFlatPolarQuartic:JD,geoMtFlatPolarQuarticRaw:$D,geoMtFlatPolarSinusoidal:tN,geoMtFlatPolarSinusoidalRaw:QD,geoNaturalEarth2:nN,geoNaturalEarth2Raw:eN,geoNellHammer:iN,geoNellHammerRaw:rN,geoInterruptedQuarticAuthalic:oN,geoNicolosi:uN,geoNicolosiRaw:sN,geoPatterson:_N,geoPattersonRaw:mN,geoPolyconic:wN,geoPolyconicRaw:bN,geoPolyhedral:MN,geoPolyhedralButterfly:zN,geoPolyhedralCollignon:IN,geoPolyhedralWaterman:LN,geoProject:YN,geoGringortenQuincuncial:az,geoPeirceQuincuncial:oz,geoQuantize:sz,geoQuincuncial:iz,geoRectangularPolyconic:lz,geoRectangularPolyconicRaw:uz,geoRobinson:hz,geoRobinsonRaw:fz,geoSatellite:vz,geoSatelliteRaw:gz,geoSinuMollweide:XB,geoSinuMollweideRaw:YB,geoSinusoidal:u7,geoSinusoidalRaw:s7,geoStitch:Nz,geoTimes:Fz,geoTimesRaw:zz,geoTwoPointAzimuthal:Hz,geoTwoPointAzimuthalRaw:Iz,geoTwoPointAzimuthalUsa:Lz,geoTwoPointEquidistant:Vz,geoTwoPointEquidistantRaw:Uz,geoTwoPointEquidistantUsa:Gz,geoVanDerGrinten:qz,geoVanDerGrintenRaw:Wz,geoVanDerGrinten2:Yz,geoVanDerGrinten2Raw:Kz,geoVanDerGrinten3:Zz,geoVanDerGrinten3Raw:Xz,geoVanDerGrinten4:Jz,geoVanDerGrinten4Raw:$z,geoWagner:eF,geoWagner7:nF,geoWagnerRaw:tF,geoWagner4:oF,geoWagner4Raw:aF,geoWagner6:uF,geoWagner6Raw:sF,geoWiechel:cF,geoWiechelRaw:lF,geoWinkel3:hF,geoWinkel3Raw:fF});var gF=1e-6;function vF(){}var pF=Infinity,yF=pF,mF=-pF,_F=mF;var bF={point:wF,lineStart:vF,lineEnd:vF,polygonStart:vF,polygonEnd:vF,result:function t(){var e=[[pF,yF],[mF,_F]];mF=_F=-(yF=pF=Infinity);return e}};function wF(t,e){if(t<pF)pF=t;if(t>mF)mF=t;if(e<yF)yF=e;if(e>_F)_F=e}function xF(t,e,n){var r=e[1][0]-e[0][0],i=e[1][1]-e[0][1],a=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]);if(a!=null)t.clipExtent(null);yM(n,t.stream(bF));var o=bF.result(),s=Math.min(r/(o[1][0]-o[0][0]),i/(o[1][1]-o[0][1])),u=+e[0][0]+(r-s*(o[1][0]+o[0][0]))/2,l=+e[0][1]+(i-s*(o[1][1]+o[0][1]))/2;if(a!=null)t.clipExtent(a);return t.scale(s*150).translate([u,l])}function kF(t,e,n){return xF(t,[[0,0],e],n)}function SF(i){var a=i.length;return{point:function t(e,n){var r=-1;while(++r<a){i[r].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){i[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){i[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){i[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){i[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){i[e].polygonEnd()}}}}function CF(){var e,n,l=hP(),i,a=fP().rotate([154,0]).center([-2,58.5]).parallels([55,65]),o,s=fP().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u,r,c={point:function t(e,n){r=[e,n]}};function f(t){var e=t[0],n=t[1];return r=null,(i.point(e,n),r)||(o.point(e,n),r)||(u.point(e,n),r)}f.invert=function(t){var e=l.scale(),n=l.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?a:i>=.166&&i<.234&&r>=-.214&&r<-.115?s:l).invert(t)};f.stream=function(t){return e&&n===t?e:e=SF([l.stream(n=t),a.stream(t),s.stream(t)])};f.precision=function(t){if(!arguments.length)return l.precision();l.precision(t),a.precision(t),s.precision(t);return h()};f.scale=function(t){if(!arguments.length)return l.scale();l.scale(t),a.scale(t*.35),s.scale(t);return f.translate(l.translate())};f.translate=function(t){if(!arguments.length)return l.translate();var e=l.scale(),n=+t[0],r=+t[1];i=l.translate(t).clipExtent([[n-.455*e,r-.238*e],[n+.455*e,r+.238*e]]).stream(c);o=a.translate([n-.307*e,r+.201*e]).clipExtent([[n-.425*e+gF,r+.12*e+gF],[n-.214*e-gF,r+.234*e-gF]]).stream(c);u=s.translate([n-.205*e,r+.212*e]).clipExtent([[n-.214*e+gF,r+.166*e+gF],[n-.115*e-gF,r+.234*e-gF]]).stream(c);return h()};f.fitExtent=function(t,e){return xF(f,t,e)};f.fitSize=function(t,e){return kF(f,t,e)};function h(){e=n=null;return f}f.drawCompositionBorders=function(t){var e=l([-102.91,26.3]);var n=l([-104,27.5]);var r=l([-108,29.1]);var i=l([-110,29.1]);var a=l([-110,26.7]);var o=l([-112.8,27.6]);var s=l([-114.3,30.6]);var u=l([-119.3,30.1]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.moveTo(a[0],a[1]);t.lineTo(o[0],o[1]);t.lineTo(s[0],s[1]);t.lineTo(u[0],u[1])};f.getCompositionBorders=function(){var t=e3();this.drawCompositionBorders(t);return t.toString()};return f.scale(1070)}function EF(i){var a=i.length;return{point:function t(e,n){var r=-1;while(++r<a){i[r].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){i[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){i[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){i[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){i[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){i[e].polygonEnd()}}}}function AF(){var e,n,w=hP(),i,a=fP().rotate([154,0]).center([-2,58.5]).parallels([55,65]),o,s=fP().rotate([157,0]).center([-3,19.9]).parallels([8,18]),u,l=fP().rotate([66,0]).center([0,18]).parallels([8,18]),c,f=MP().rotate([173,14]),h,d=MP().rotate([-145,-16.8]),g,r,v={point:function t(e,n){r=[e,n]}};function p(t){var e=t[0],n=t[1];return r=null,(i.point(e,n),r)||(o.point(e,n),r)||(u.point(e,n),r)||(c.point(e,n),r)||(h.point(e,n),r)||(g.point(e,n),r)}p.invert=function(t){var e=w.scale(),n=w.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?a:i>=.166&&i<.234&&r>=-.214&&r<-.115?s:i>=.2064&&i<.2413&&r>=.312&&r<.385?l:i>=.09&&i<.1197&&r>=-.4243&&r<-.3232?f:i>=-.0518&&i<.0895&&r>=-.4243&&r<-.3824?d:w).invert(t)};p.stream=function(t){return e&&n===t?e:e=EF([w.stream(n=t),a.stream(t),s.stream(t),l.stream(t),f.stream(t),d.stream(t)])};p.precision=function(t){if(!arguments.length){return w.precision()}w.precision(t);a.precision(t);s.precision(t);l.precision(t);f.precision(t);d.precision(t);return y()};p.scale=function(t){if(!arguments.length){return w.scale()}w.scale(t);a.scale(t*.35);s.scale(t);l.scale(t);f.scale(t*2);d.scale(t);return p.translate(w.translate())};p.translate=function(t){if(!arguments.length){return w.translate()}var e=w.scale(),n=+t[0],r=+t[1];i=w.translate(t).clipExtent([[n-.455*e,r-.238*e],[n+.455*e,r+.238*e]]).stream(v);o=a.translate([n-.307*e,r+.201*e]).clipExtent([[n-.425*e+gF,r+.12*e+gF],[n-.214*e-gF,r+.233*e-gF]]).stream(v);u=s.translate([n-.205*e,r+.212*e]).clipExtent([[n-.214*e+gF,r+.166*e+gF],[n-.115*e-gF,r+.233*e-gF]]).stream(v);c=l.translate([n+.35*e,r+.224*e]).clipExtent([[n+.312*e+gF,r+.2064*e+gF],[n+.385*e-gF,r+.233*e-gF]]).stream(v);h=f.translate([n-.492*e,r+.09*e]).clipExtent([[n-.4243*e+gF,r+.0903*e+gF],[n-.3233*e-gF,r+.1197*e-gF]]).stream(v);g=d.translate([n-.408*e,r+.018*e]).clipExtent([[n-.4244*e+gF,r-.0519*e+gF],[n-.3824*e-gF,r+.0895*e-gF]]).stream(v);return y()};p.fitExtent=function(t,e){return xF(p,t,e)};p.fitSize=function(t,e){return kF(p,t,e)};function y(){e=n=null;return p}p.drawCompositionBorders=function(t){var e=w([-110.4641,28.2805]);var n=w([-104.0597,28.9528]);var r=w([-103.7049,25.1031]);var i=w([-109.8337,24.4531]);var a=w([-124.4745,28.1407]);var o=w([-110.931,30.8844]);var s=w([-109.8337,24.4531]);var u=w([-122.4628,21.8562]);var l=w([-76.8579,25.1544]);var c=w([-72.429,24.2097]);var f=w([-72.8265,22.7056]);var h=w([-77.1852,23.6392]);var d=w([-125.0093,29.7791]);var g=w([-118.5193,31.3262]);var v=w([-118.064,29.6912]);var p=w([-124.4369,28.169]);var y=w([-128.1314,37.4582]);var m=w([-125.2132,38.214]);var _=w([-122.3616,30.5115]);var b=w([-125.0315,29.8211]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();t.moveTo(a[0],a[1]);t.lineTo(o[0],o[1]);t.lineTo(s[0],s[1]);t.lineTo(s[0],s[1]);t.lineTo(u[0],u[1]);t.closePath();t.moveTo(l[0],l[1]);t.lineTo(c[0],c[1]);t.lineTo(f[0],f[1]);t.lineTo(f[0],f[1]);t.lineTo(h[0],h[1]);t.closePath();t.moveTo(d[0],d[1]);t.lineTo(g[0],g[1]);t.lineTo(v[0],v[1]);t.lineTo(v[0],v[1]);t.lineTo(p[0],p[1]);t.closePath();t.moveTo(y[0],y[1]);t.lineTo(m[0],m[1]);t.lineTo(_[0],_[1]);t.lineTo(_[0],_[1]);t.lineTo(b[0],b[1]);t.closePath()};p.getCompositionBorders=function(){var t=e3();this.drawCompositionBorders(t);return t.toString()};return p.scale(1070)}function MF(i){var a=i.length;return{point:function t(e,n){var r=-1;while(++r<a){i[r].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){i[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){i[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){i[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){i[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){i[e].polygonEnd()}}}}function RF(){var e,n,a=EP().rotate([5,-38.6]).parallels([0,60]),i,o=EP().rotate([5,-38.6]).parallels([0,60]),s,r,u={point:function t(e,n){r=[e,n]}};function l(t){var e=t[0],n=t[1];return r=null,(i.point(e,n),r)||(s.point(e,n),r)}l.invert=function(t){var e=a.scale(),n=a.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.05346&&i<.0897&&r>=-.13388&&r<-.0322?o:a).invert(t)};l.stream=function(t){return e&&n===t?e:e=MF([a.stream(n=t),o.stream(t)])};l.precision=function(t){if(!arguments.length){return a.precision()}a.precision(t);o.precision(t);return c()};l.scale=function(t){if(!arguments.length){return a.scale()}a.scale(t);o.scale(t);return l.translate(a.translate())};l.translate=function(t){if(!arguments.length){return a.translate()}var e=a.scale(),n=+t[0],r=+t[1];i=a.translate(t).clipExtent([[n-.06857*e,r-.1288*e],[n+.13249*e,r+.06*e]]).stream(u);s=o.translate([n+.1*e,r-.094*e]).clipExtent([[n-.1331*e+gF,r+.053457*e+gF],[n-.0354*e-gF,r+.08969*e-gF]]).stream(u);return c()};l.fitExtent=function(t,e){return xF(l,t,e)};l.fitSize=function(t,e){return kF(l,t,e)};function c(){e=n=null;return l}l.drawCompositionBorders=function(t){var e=a([-14.034675,34.965007]);var n=a([-7.4208899,35.536988]);var r=a([-7.3148275,33.54359]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1])};l.getCompositionBorders=function(){var t=e3();this.drawCompositionBorders(t);return t.toString()};return l.scale(2700)}function TF(i){var a=i.length;return{point:function t(e,n){var r=-1;while(++r<a){i[r].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){i[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){i[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){i[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){i[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){i[e].polygonEnd()}}}}function OF(){var e,n,l=EP().rotate([10,-39.3]).parallels([0,60]),i,a=EP().rotate([17,-32.7]).parallels([0,60]),o,s=EP().rotate([27.8,-38.6]).parallels([0,60]),u,r,c={point:function t(e,n){r=[e,n]}};function f(t){var e=t[0],n=t[1];return r=null,(i.point(e,n),r)||(o.point(e,n),r)||(u.point(e,n),r)}f.invert=function(t){var e=l.scale(),n=l.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.0093&&i<.03678&&r>=-.03875&&r<-.0116?a:i>=-.0412&&i<.0091&&r>=-.07782&&r<-.01166?s:l).invert(t)};f.stream=function(t){return e&&n===t?e:e=TF([l.stream(n=t),a.stream(t),s.stream(t)])};f.precision=function(t){if(!arguments.length){return l.precision()}l.precision(t);a.precision(t);s.precision(t);return h()};f.scale=function(t){if(!arguments.length){return l.scale()}l.scale(t);a.scale(t);s.scale(t*.6);return f.translate(l.translate())};f.translate=function(t){if(!arguments.length){return l.translate()}var e=l.scale(),n=+t[0],r=+t[1];i=l.translate(t).clipExtent([[n-.0115*e,r-.1138*e],[n+.2105*e,r+.0673*e]]).stream(c);o=a.translate([n-.0265*e,r+.025*e]).clipExtent([[n-.0388*e+gF,r+.0093*e+gF],[n-.0116*e-gF,r+.0368*e-gF]]).stream(c);u=s.translate([n-.045*e,r+-.02*e]).clipExtent([[n-.0778*e+gF,r-.0413*e+gF],[n-.0117*e-gF,r+.0091*e-gF]]).stream(c);return h()};f.fitExtent=function(t,e){return xF(f,t,e)};f.fitSize=function(t,e){return kF(f,t,e)};function h(){e=n=null;return f}f.drawCompositionBorders=function(t){var e=l([-12.8351,38.7113]);var n=l([-10.8482,38.7633]);var r=l([-10.8181,37.2072]);var i=l([-12.7345,37.1573]);var a=l([-16.0753,41.4436]);var o=l([-10.9168,41.6861]);var s=l([-10.8557,38.7747]);var u=l([-15.6728,38.5505]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();t.moveTo(a[0],a[1]);t.lineTo(o[0],o[1]);t.lineTo(s[0],s[1]);t.lineTo(s[0],s[1]);t.lineTo(u[0],u[1]);t.closePath()};f.getCompositionBorders=function(){var t=e3();this.drawCompositionBorders(t);return t.toString()};return f.scale(4200)}function PF(i){var a=i.length;return{point:function t(e,n){var r=-1;while(++r<a){i[r].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){i[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){i[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){i[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){i[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){i[e].polygonEnd()}}}}function BF(){var e,n,a=xP().rotate([80,1.5]),i,o=xP().rotate([90.73,1]),s,r,u={point:function t(e,n){r=[e,n]}};function l(t){var e=t[0],n=t[1];return r=null,(i.point(e,n),r)||(s.point(e,n),r)}l.invert=function(t){var e=a.scale(),n=a.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=-.0676&&i<-.026&&r>=-.0857&&r<-.0263?o:a).invert(t)};l.stream=function(t){return e&&n===t?e:e=PF([a.stream(n=t),o.stream(t)])};l.precision=function(t){if(!arguments.length){return a.precision()}a.precision(t);o.precision(t);return c()};l.scale=function(t){if(!arguments.length){return a.scale()}a.scale(t);o.scale(t);return l.translate(a.translate())};l.translate=function(t){if(!arguments.length){return a.translate()}var e=a.scale(),n=+t[0],r=+t[1];i=a.translate(t).clipExtent([[n-.0262*e,r-.0734*e],[n+.1741*e,r+.079*e]]).stream(u);s=o.translate([n-.06*e,r-.04*e]).clipExtent([[n-.0857*e+gF,r-.0676*e+gF],[n-.0263*e-gF,r-.026*e-gF]]).stream(u);return c()};l.fitExtent=function(t,e){return xF(l,t,e)};l.fitSize=function(t,e){return kF(l,t,e)};function c(){e=n=null;return l}l.drawCompositionBorders=function(t){var e=a([-84.9032,2.3757]);var n=a([-81.5047,2.3708]);var r=a([-81.5063,-.01]);var i=a([-84.9086,-.005]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath()};l.getCompositionBorders=function(){var t=e3();this.drawCompositionBorders(t);return t.toString()};return l.scale(3500)}function DF(i){var a=i.length;return{point:function t(e,n){var r=-1;while(++r<a){i[r].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){i[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){i[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){i[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){i[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){i[e].polygonEnd()}}}}function NF(){var e,n,d=XP().rotate([72,37]),i,a=KP().rotate([72,0]),o,s=xP().rotate([80,33.5]),u,l=xP().rotate([110,25]),c,r,f={point:function t(e,n){r=[e,n]}};function h(t){var e=t[0],n=t[1];return r=null,(i.point(e,n),r)||(o.point(e,n),r)||(u.point(e,n),r)||(c.point(e,n),r)}h.invert=function(t){var e=d.scale(),n=d.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.2582&&i<.32&&r>=-.1036&&r<-.087?a:i>=-.01298&&i<.0133&&r>=-.11396&&r<-.05944?s:i>=.01539&&i<.03911&&r>=-.089&&r<-.0588?l:d).invert(t)};h.stream=function(t){return e&&n===t?e:e=DF([d.stream(n=t),a.stream(t),s.stream(t),l.stream(t)])};h.precision=function(t){if(!arguments.length){return d.precision()}d.precision(t);a.precision(t);s.precision(t);l.precision(t);return g()};h.scale=function(t){if(!arguments.length){return d.scale()}d.scale(t);a.scale(t*.15);s.scale(t*1.5);l.scale(t*1.5);return h.translate(d.translate())};h.translate=function(t){if(!arguments.length){return d.translate()}var e=d.scale(),n=+t[0],r=+t[1];i=d.translate(t).clipExtent([[n-.059*e,r-.3835*e],[n+.4498*e,r+.3375*e]]).stream(f);o=a.translate([n-.087*e,r+.17*e]).clipExtent([[n-.1166*e+gF,r+.2582*e+gF],[n-.06*e-gF,r+.32*e-gF]]).stream(f);u=s.translate([n-.092*e,r-0*e]).clipExtent([[n-.114*e+gF,r-.013*e+gF],[n-.0594*e-gF,r+.0133*e-gF]]).stream(f);c=l.translate([n-.089*e,r-.0265*e]).clipExtent([[n-.089*e+gF,r+.0154*e+gF],[n-.0588*e-gF,r+.0391*e-gF]]).stream(f);return g()};h.fitExtent=function(t,e){return xF(h,t,e)};h.fitSize=function(t,e){return kF(h,t,e)};function g(){e=n=null;return h}h.drawCompositionBorders=function(t){var e=d([-82.6999,-51.3043]);var n=d([-77.5442,-51.6631]);var r=d([-78.0254,-55.186]);var i=d([-83.6106,-54.7785]);var a=d([-80.0638,-35.984]);var o=d([-76.2153,-36.1811]);var s=d([-76.2994,-37.6839]);var u=d([-80.2231,-37.4757]);var l=d([-78.442,-37.706]);var c=d([-76.263,-37.8054]);var f=d([-76.344,-39.1595]);var h=d([-78.5638,-39.0559]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();t.moveTo(a[0],a[1]);t.lineTo(o[0],o[1]);t.lineTo(s[0],s[1]);t.lineTo(s[0],s[1]);t.lineTo(u[0],u[1]);t.closePath();t.moveTo(l[0],l[1]);t.lineTo(c[0],c[1]);t.lineTo(f[0],f[1]);t.lineTo(f[0],f[1]);t.lineTo(h[0],h[1]);t.closePath()};h.getCompositionBorders=function(){var t=e3();this.drawCompositionBorders(t);return t.toString()};return h.scale(700)}function zF(i){var a=i.length;return{point:function t(e,n){var r=-1;while(++r<a){i[r].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){i[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){i[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){i[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){i[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){i[e].polygonEnd()}}}}function FF(){var e,n,l=TP().rotate([-136,-22]).parallels([40,34]),i,a=TP().rotate([-146,-26]).parallels([40,34]),o,s=TP().rotate([-126,-19]).parallels([40,34]),u,r,c={point:function t(e,n){r=[e,n]}};function f(t){var e=t[0],n=t[1];return r=null,(i.point(e,n),r)||(o.point(e,n),r)||(u.point(e,n),r)}f.invert=function(t){var e=l.scale(),n=l.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=-.10925&&i<-.02701&&r>=-.135&&r<-.0397?a:i>=.04713&&i<.11138&&r>=-.03986&&r<.051?s:l).invert(t)};f.stream=function(t){return e&&n===t?e:e=zF([l.stream(n=t),a.stream(t),s.stream(t)])};f.precision=function(t){if(!arguments.length){return l.precision()}l.precision(t);a.precision(t);s.precision(t);return h()};f.scale=function(t){if(!arguments.length){return l.scale()}l.scale(t);a.scale(t);s.scale(t*.7);return f.translate(l.translate())};f.translate=function(t){if(!arguments.length){return l.translate()}var e=l.scale(),n=+t[0],r=+t[1];i=l.translate(t).clipExtent([[n-.1352*e,r-.1091*e],[n+.117*e,r+.098*e]]).stream(c);o=a.translate([n-.0425*e,r-.005*e]).clipExtent([[n-.135*e+gF,r-.1093*e+gF],[n-.0397*e-gF,r-.027*e-gF]]).stream(c);u=s.translate(t).clipExtent([[n-.0399*e+gF,r+.0471*e+gF],[n+.051*e-gF,r+.1114*e-gF]]).stream(c);return h()};f.fitExtent=function(t,e){return xF(f,t,e)};f.fitSize=function(t,e){return kF(f,t,e)};function h(){e=n=null;return f}f.drawCompositionBorders=function(t){var e=l([126.01320483689143,41.621090310215585]);var n=l([133.04304387025903,42.15087523707186]);var r=l([133.3021766080688,37.43975444725098]);var i=l([126.87889168628224,36.95488945159779]);var a=l([132.9,29.8]);var o=l([134,33]);var s=l([139.3,33.2]);var u=l([139.16,30.5]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();t.moveTo(a[0],a[1]);t.lineTo(o[0],o[1]);t.lineTo(s[0],s[1]);t.lineTo(u[0],u[1])};f.getCompositionBorders=function(){var t=e3();this.drawCompositionBorders(t);return t.toString()};return f.scale(2200)}function jF(i){var a=i.length;return{point:function t(e,n){var r=-1;while(++r<a){i[r].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){i[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){i[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){i[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){i[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){i[e].polygonEnd()}}}}function IF(){var e,n,a=EP().rotate([-3,-46.2]).parallels([0,60]),i,o=xP().center([-53.2,3.9]),s,u=xP().center([-61.03,14.67]),l,c=xP().center([-61.46,16.14]),f,h=xP().center([-62.85,17.92]),d,g=xP().center([-56.23,46.93]),v,p=xP().center([45.16,-12.8]),y,m=xP().center([55.52,-21.13]),_,b=xP().center([165.8,-21.07]),w,x=xP().center([-178.1,-14.3]),k,S=xP().center([-150.55,-17.11]),C,E=xP().center([-150.55,-17.11]),A,r,M={point:function t(e,n){r=[e,n]}};function R(t){var e=t[0],n=t[1];return r=null,(i.point(e,n),r)||(s.point(e,n),r)||(l.point(e,n),r)||(f.point(e,n),r)||(d.point(e,n),r)||(v.point(e,n),r)||(y.point(e,n),r)||(_.point(e,n),r)||(w.point(e,n),r)||(k.point(e,n),r)||(C.point(e,n),r)||(A.point(e,n),r)}R.invert=function(t){var e=a.scale(),n=a.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=.029&&i<.0864&&r>=-.14&&r<-.0996?o:i>=0&&i<.029&&r>=-.14&&r<-.0996?u:i>=-.032&&i<0&&r>=-.14&&r<-.0996?c:i>=-.052&&i<-.032&&r>=-.14&&r<-.0996?h:i>=-.076&&i<.052&&r>=-.14&&r<-.0996?g:i>=-.076&&i<-.052&&r>=.0967&&r<.1371?p:i>=-.052&&i<-.02&&r>=.0967&&r<.1371?m:i>=-.02&&i<.012&&r>=.0967&&r<.1371?b:i>=.012&&i<.033&&r>=.0967&&r<.1371?x:i>=.033&&i<.0864&&r>=.0967&&r<.1371?S:a).invert(t)};R.stream=function(t){return e&&n===t?e:e=jF([a.stream(n=t),o.stream(t),u.stream(t),c.stream(t),h.stream(t),g.stream(t),p.stream(t),m.stream(t),b.stream(t),x.stream(t),S.stream(t),E.stream(t)])};R.precision=function(t){if(!arguments.length){return a.precision()}a.precision(t);o.precision(t);u.precision(t);c.precision(t);h.precision(t);g.precision(t);p.precision(t);m.precision(t);b.precision(t);x.precision(t);S.precision(t);E.precision(t);return T()};R.scale=function(t){if(!arguments.length){return a.scale()}a.scale(t);o.scale(t*.6);u.scale(t*1.6);c.scale(t*1.4);h.scale(t*5);g.scale(t*1.3);p.scale(t*1.6);m.scale(t*1.2);b.scale(t*.3);x.scale(t*2.7);S.scale(t*.5);E.scale(t*.06);return R.translate(a.translate())};R.translate=function(t){if(!arguments.length){return a.translate()}var e=a.scale(),n=+t[0],r=+t[1];i=a.translate(t).clipExtent([[n-.0996*e,r-.0908*e],[n+.0967*e,r+.0864*e]]).stream(M);s=o.translate([n-.12*e,r+.0575*e]).clipExtent([[n-.14*e+gF,r+.029*e+gF],[n-.0996*e-gF,r+.0864*e-gF]]).stream(M);l=u.translate([n-.12*e,r+.013*e]).clipExtent([[n-.14*e+gF,r+0*e+gF],[n-.0996*e-gF,r+.029*e-gF]]).stream(M);f=c.translate([n-.12*e,r-.014*e]).clipExtent([[n-.14*e+gF,r-.032*e+gF],[n-.0996*e-gF,r+0*e-gF]]).stream(M);d=h.translate([n-.12*e,r-.044*e]).clipExtent([[n-.14*e+gF,r-.052*e+gF],[n-.0996*e-gF,r-.032*e-gF]]).stream(M);v=g.translate([n-.12*e,r-.065*e]).clipExtent([[n-.14*e+gF,r-.076*e+gF],[n-.0996*e-gF,r-.052*e-gF]]).stream(M);y=p.translate([n+.117*e,r-.064*e]).clipExtent([[n+.0967*e+gF,r-.076*e+gF],[n+.1371*e-gF,r-.052*e-gF]]).stream(M);_=m.translate([n+.116*e,r-.0355*e]).clipExtent([[n+.0967*e+gF,r-.052*e+gF],[n+.1371*e-gF,r-.02*e-gF]]).stream(M);w=b.translate([n+.116*e,r-.0048*e]).clipExtent([[n+.0967*e+gF,r-.02*e+gF],[n+.1371*e-gF,r+.012*e-gF]]).stream(M);k=x.translate([n+.116*e,r+.022*e]).clipExtent([[n+.0967*e+gF,r+.012*e+gF],[n+.1371*e-gF,r+.033*e-gF]]).stream(M);A=E.translate([n+.11*e,r+.045*e]).clipExtent([[n+.0967*e+gF,r+.033*e+gF],[n+.1371*e-gF,r+.06*e-gF]]).stream(M);C=S.translate([n+.115*e,r+.075*e]).clipExtent([[n+.0967*e+gF,r+.06*e+gF],[n+.1371*e-gF,r+.0864*e-gF]]).stream(M);return T()};R.fitExtent=function(t,e){return xF(R,t,e)};R.fitSize=function(t,e){return kF(R,t,e)};function T(){e=n=null;return R}R.drawCompositionBorders=function(t){var e,n,r,i;e=a([-7.938886725111036,43.7219460918835]);n=a([-4.832080896458295,44.12930268549372]);r=a([-4.205299743793263,40.98096346967365]);i=a([-7.071796453126152,40.610037319181444]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([-8.42751373617692,45.32889452553031]);n=a([-5.18599305777107,45.7566442062976]);r=a([-4.832080905154431,44.129302726751426]);i=a([-7.938886737126192,43.72194613263854]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([-9.012656899657046,47.127733821030176]);n=a([-5.6105244772793155,47.579777861410626]);r=a([-5.185993067168585,45.756644248170346]);i=a([-8.427513749141811,45.32889456686326]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([-9.405747558985553,48.26506375557457]);n=a([-5.896175018439575,48.733352850851624]);r=a([-5.610524487556043,47.57977790393761]);i=a([-9.012656913808351,47.127733862971255]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([-9.908436061346974,49.642448789505856]);n=a([-6.262026716233124,50.131426841787174]);r=a([-5.896175029331232,48.73335289377258]);i=a([-9.40574757396393,48.26506379787767]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([11.996907706504462,50.16039028163579]);n=a([15.649907879773343,49.68279246765253]);r=a([15.156712840526632,48.30371557625831]);i=a([11.64122661754411,48.761078240546816]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([11.641226606955788,48.7610781975889]);n=a([15.156712825832164,48.30371553390465]);r=a([14.549932166241172,46.4866532486199]);i=a([11.204443787952183,46.91899233914248]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([11.204443778297161,46.918992296823646]);n=a([14.549932152815039,46.486653206856396]);r=a([13.994409796764009,44.695833444323256]);i=a([10.805306599253848,45.105133870684924]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([10.805306590412085,45.10513382903308]);n=a([13.99440978444733,44.695833403183606]);r=a([13.654633799024392,43.53552468558152]);i=a([10.561516803980956,43.930671459798624]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([10.561516795617383,43.93067141859757]);n=a([13.654633787361952,43.5355246448671]);r=a([12.867691604239901,40.640701985019405]);i=a([9.997809515987688,41.00288343254471]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([10.8,42.4]);n=a([12.8,42.13]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1])};R.getCompositionBorders=function(){var t=e3();this.drawCompositionBorders(t);return t.toString()};return R.scale(2700)}function LF(i){var a=i.length;return{point:function t(e,n){var r=-1;while(++r<a){i[r].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){i[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){i[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){i[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){i[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){i[e].polygonEnd()}}}}function HF(){var e,n,a=EP().rotate([-10,-53]).parallels([0,60]),i,o=xP().center([-61.46,16.14]),s,u=xP().center([-53.2,3.9]),l,c=EP().rotate([27.8,-38.9]).parallels([0,60]),f,h=EP().rotate([25.43,-37.398]).parallels([0,60]),d,g=EP().rotate([31.17,-39.539]).parallels([0,60]),v,p=EP().rotate([17,-32.7]).parallels([0,60]),y,m=EP().rotate([16,-28.5]).parallels([0,60]),_,b=xP().center([-61.03,14.67]),w,x=xP().center([45.16,-12.8]),k,S=xP().center([55.52,-21.13]),C,E=EP().rotate([-14.4,-35.95]).parallels([0,60]),A,r,M={point:function t(e,n){r=[e,n]}};function R(t){var e=t[0],n=t[1];return r=null,(i.point(e,n),r)||(l.point(e,n),r)||(w.point(e,n),r)||(s.point(e,n),r)||(_.point(e,n),r)||(y.point(e,n),r)||(k.point(e,n),r)||(C.point(e,n),r)||(A.point(e,n),r)||(f.point(e,n),r)||(d.point(e,n),r)||(v.point(e,n),r)}R.invert=function(t){var e=a.scale(),n=a.translate(),r=(t[0]-(n[0]+.08*e))/e,i=(t[1]-n[1])/e;return(i>=-.31&&i<-.24&&r>=.14&&r<.24?o:i>=-.24&&i<-.17&&r>=.14&&r<.24?u:i>=-.17&&i<-.12&&r>=.21&&r<.24?h:i>=-.17&&i<-.14&&r>=.14&&r<.165?g:i>=-.17&&i<-.1&&r>=.14&&r<.24?c:i>=-.1&&i<-.03&&r>=.14&&r<.24?p:i>=-.03&&i<.04&&r>=.14&&r<.24?m:i>=-.31&&i<-.24&&r>=.24&&r<.34?b:i>=-.24&&i<-.17&&r>=.24&&r<.34?x:i>=-.17&&i<-.1&&r>=.24&&r<.34?S:i>=-.1&&i<-.03&&r>=.24&&r<.34?E:a).invert(t)};R.stream=function(t){return e&&n===t?e:e=LF([a.stream(n=t),u.stream(t),b.stream(t),o.stream(t),m.stream(t),p.stream(t),x.stream(t),S.stream(t),E.stream(t),c.stream(t),h.stream(t),g.stream(t)])};R.precision=function(t){if(!arguments.length){return a.precision()}a.precision(t);u.precision(t);b.precision(t);o.precision(t);m.precision(t);p.precision(t);x.precision(t);S.precision(t);E.precision(t);c.precision(t);h.precision(t);g.precision(t);return T()};R.scale=function(t){if(!arguments.length){return a.scale()}a.scale(t);o.scale(t*3);u.scale(t*.8);b.scale(t*3.5);S.scale(t*2.7);c.scale(t*2);h.scale(t*2);g.scale(t*2);p.scale(t*3);m.scale(t);x.scale(t*5.5);E.scale(t*6);return R.translate(a.translate())};R.translate=function(t){if(!arguments.length){return a.translate()}var e=a.scale(),n=+t[0],r=+t[1];i=a.translate([n-.08*e,r]).clipExtent([[n-.51*e,r-.33*e],[n+.5*e,r+.33*e]]).stream(M);s=o.translate([n+.19*e,r-.275*e]).clipExtent([[n+.14*e+gF,r-.31*e+gF],[n+.24*e-gF,r-.24*e-gF]]).stream(M);l=u.translate([n+.19*e,r-.205*e]).clipExtent([[n+.14*e+gF,r-.24*e+gF],[n+.24*e-gF,r-.17*e-gF]]).stream(M);f=c.translate([n+.19*e,r-.135*e]).clipExtent([[n+.14*e+gF,r-.17*e+gF],[n+.24*e-gF,r-.1*e-gF]]).stream(M);d=h.translate([n+.225*e,r-.147*e]).clipExtent([[n+.21*e+gF,r-.17*e+gF],[n+.24*e-gF,r-.12*e-gF]]).stream(M);v=g.translate([n+.153*e,r-.15*e]).clipExtent([[n+.14*e+gF,r-.17*e+gF],[n+.165*e-gF,r-.14*e-gF]]).stream(M);y=p.translate([n+.19*e,r-.065*e]).clipExtent([[n+.14*e+gF,r-.1*e+gF],[n+.24*e-gF,r-.03*e-gF]]).stream(M);_=m.translate([n+.19*e,r+.005*e]).clipExtent([[n+.14*e+gF,r-.03*e+gF],[n+.24*e-gF,r+.04*e-gF]]).stream(M);w=b.translate([n+.29*e,r-.275*e]).clipExtent([[n+.24*e+gF,r-.31*e+gF],[n+.34*e-gF,r-.24*e-gF]]).stream(M);k=x.translate([n+.29*e,r-.205*e]).clipExtent([[n+.24*e+gF,r-.24*e+gF],[n+.34*e-gF,r-.17*e-gF]]).stream(M);C=S.translate([n+.29*e,r-.135*e]).clipExtent([[n+.24*e+gF,r-.17*e+gF],[n+.34*e-gF,r-.1*e-gF]]).stream(M);A=E.translate([n+.29*e,r-.065*e]).clipExtent([[n+.24*e+gF,r-.1*e+gF],[n+.34*e-gF,r-.03*e-gF]]).stream(M);return T()};R.fitExtent=function(t,e){return xF(R,t,e)};R.fitSize=function(t,e){return kF(R,t,e)};function T(){e=n=null;return R}R.drawCompositionBorders=function(t){var e,n,r,i;e=a([42.45755610828648,63.343658547914934]);n=a([52.65837266667029,59.35045080290929]);r=a([47.19754502247785,56.12653496548117]);i=a([37.673034273363044,59.61638268506111]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([59.41110754003403,62.35069727399336]);n=a([66.75050228640794,57.11797303636038]);r=a([60.236065725110436,54.63331433818992]);i=a([52.65837313153311,59.350450804599355]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([48.81091130080243,66.93353402634641]);n=a([59.41110730654679,62.35069740653086]);r=a([52.6583728974441,59.3504509222445]);i=a([42.45755631675751,63.34365868805821]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([31.054198418446475,52.1080673766184]);n=a([39.09869284884117,49.400700047190554]);r=a([36.0580811499175,46.02944174908498]);i=a([28.690508588835726,48.433126979386415]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([33.977877745912025,55.849945501331]);n=a([42.75328432167726,52.78455122462353]);r=a([39.09869297540224,49.400700176148625]);i=a([31.05419851807008,52.10806751810923]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([52.658372900759296,59.35045068526415]);n=a([60.23606549583304,54.63331423800264]);r=a([54.6756370953122,51.892298789399455]);i=a([47.19754524788189,56.126534861222794]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([47.19754506082455,56.126534735591456]);n=a([54.675636900123514,51.892298681337095]);r=a([49.94448648951486,48.98775484983285]);i=a([42.75328468716108,52.78455126060818]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([42.75328453416769,52.78455113209101]);n=a([49.94448632339758,48.98775473706457]);r=a([45.912339990394315,45.99361784987003]);i=a([39.09869317356607,49.40070009378711]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([37.673034114296634,59.61638254183119]);n=a([47.197544835420544,56.126534839849846]);r=a([42.75328447467064,52.78455135314068]);i=a([33.977877870363905,55.849945644671145]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([44.56748486446032,57.26489367845818]);r=a([43.9335791193588,53.746540942601726]);i=a([43,56]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([37.673034114296634,59.61638254183119]);n=a([40.25902691953466,58.83002044222639]);r=a([38.458270492742024,57.26232178028002]);i=a([35.97754948030156,58.00266637992386]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath()};R.getCompositionBorders=function(){var t=e3();this.drawCompositionBorders(t);return t.toString()};return R.scale(750)}function UF(i){var a=i.length;return{point:function t(e,n){var r=-1;while(++r<a){i[r].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){i[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){i[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){i[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){i[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){i[e].polygonEnd()}}}}function GF(){var e,n,l=EP().rotate([-5.5,-52.2]).parallels([0,60]),i,a=xP().center([-68.25,12.2]),o,s=xP().center([-63.1,17.5]),u,c,f={point:function t(e,n){c=[e,n]}};function r(t){var e=_slicedToArray2(t,2),n=e[0],r=e[1];return c=null,(i.point(n,r),c)||(o.point(n,r),c)||(u.point(n,r),c)}r.invert=function(t){var e=l.scale(),n=l.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=-.0067&&i<.0015&&r>=-.0232&&r<-.0154?a:i>=-.022&&i<-.014&&r>=-.023&&r<-.014?s:l).invert(t)};r.stream=function(t){return e&&n===t?e:e=UF([l.stream(n=t),a.stream(t),s.stream(t)])};r.precision=function(t){if(!arguments.length)return l.precision();l.precision(t);a.precision(t);s.precision(t);return h()};r.scale=function(t){if(!arguments.length)return l.scale();l.scale(t);a.scale(t);s.scale(t);return r.translate(l.translate())};r.translate=function(t){if(!arguments.length)return l.translate();var e=l.scale(),n=+t[0],r=+t[1];i=l.translate(t).clipExtent([[n-.0245*e,r-.026*e],[n+.023*e,r+.026*e]]).stream(f);o=a.translate([n-.0186*e,r-.00325*e]).clipExtent([[n-.0232*e+gF,r-.0067*e+gF],[n-.0154*e-gF,r+.0015*e-gF]]).stream(f);u=s.translate([n-.0185*e,r-.017*e]).clipExtent([[n-.023*e+gF,r-.022*e+gF],[n-.014*e-gF,r-.014*e-gF]]).stream(f);return h()};r.fitExtent=function(t,e){return xF(r,t,e)};r.fitSize=function(t,e){return kF(r,t,e)};function h(){e=n=null;return r}r.drawCompositionBorders=function(t){var e=l([3.30573,52.5562]);var n=l([4.043,52.572]);var r=l([4.0646,52.1017]);var i=l([3.3382,52.0861]);var a=l([3.262,53.439]);var o=l([4.1373,53.4571]);var s=l([4.1574,52.9946]);var u=l([3.2951,52.9768]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();t.moveTo(a[0],a[1]);t.lineTo(o[0],o[1]);t.lineTo(s[0],s[1]);t.lineTo(s[0],s[1]);t.lineTo(u[0],u[1]);t.closePath()};r.getCompositionBorders=function(){var t=e3();this.drawCompositionBorders(t);return t.toString()};return r.scale(4200)}function VF(i){var a=i.length;return{point:function t(e,n){var r=-1;while(++r<a){i[r].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){i[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){i[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){i[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){i[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){i[e].polygonEnd()}}}}function WF(){var e,n,a=xP().center([105.25,4]),i,o=xP().center([118.65,2.86]),s,r,u={point:function t(e,n){r=[e,n]}};function l(t){var e=t[0],n=t[1];return r=null,(i.point(e,n),r)||(s.point(e,n),r)}l.invert=function(t){var e=a.scale(),n=a.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=-.0521&&i<.0229&&r>=-.0111&&r<.1?o:a).invert(t)};l.stream=function(t){return e&&n===t?e:e=VF([a.stream(n=t),o.stream(t)])};l.precision=function(t){if(!arguments.length){return a.precision()}a.precision(t);o.precision(t);return c()};l.scale=function(t){if(!arguments.length){return a.scale()}a.scale(t);o.scale(t*.615);return l.translate(a.translate())};l.translate=function(t){if(!arguments.length){return a.translate()}var e=a.scale(),n=+t[0],r=+t[1];i=a.translate(t).clipExtent([[n-.11*e,r-.0521*e],[n-.0111*e,r+.0521*e]]).stream(u);s=o.translate([n+.09*e,r-0*e]).clipExtent([[n-.0111*e+gF,r-.0521*e+gF],[n+.1*e-gF,r+.024*e-gF]]).stream(u);return c()};l.fitExtent=function(t,e){return xF(l,t,e)};l.fitSize=function(t,e){return kF(l,t,e)};function c(){e=n=null;return l}l.drawCompositionBorders=function(t){var e=a([106.3214,2.0228]);var n=a([105.1843,2.3761]);var r=a([104.2151,3.3618]);var i=a([104.215,4.5651]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1])};l.getCompositionBorders=function(){var t=e3();this.drawCompositionBorders(t);return t.toString()};return l.scale(4800)}function qF(i){var a=i.length;return{point:function t(e,n){var r=-1;while(++r<a){i[r].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){i[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){i[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){i[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){i[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){i[e].polygonEnd()}}}}function KF(){var e,n,a=xP().rotate([-9.5,-1.5]),i,o=xP().rotate([-8.6,-3.5]),s,u=xP().rotate([-5.6,1.45]),l,r,c={point:function t(e,n){r=[e,n]}};function f(t){var e=t[0],n=t[1];return r=null,(i.point(e,n),r)||(s.point(e,n),r)||(l.point(e,n),r)}f.invert=function(t){var e=a.scale(),n=a.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=-.02&&i<0&&r>=-.038&&r<-.005?o:i>=0&&i<.02&&r>=-.038&&r<-.005?u:a).invert(t)};f.stream=function(t){return e&&n===t?e:e=qF([a.stream(n=t),o.stream(t),u.stream(t)])};f.precision=function(t){if(!arguments.length){return a.precision()}a.precision(t);o.precision(t);u.precision(t);return h()};f.scale=function(t){if(!arguments.length){return a.scale()}a.scale(t);o.scale(t*1.5);u.scale(t*4);return f.translate(a.translate())};f.translate=function(t){if(!arguments.length){return a.translate()}var e=a.scale(),n=+t[0],r=+t[1];i=a.translate(t).clipExtent([[n-.005*e,r-.02*e],[n+.038*e,r+.02*e]]).stream(c);s=o.translate([n-.025*e,r-.01*e]).clipExtent([[n-.038*e+gF,r-.02*e+gF],[n-.005*e-gF,r+0*e-gF]]).stream(c);l=u.translate([n-.025*e,r+.01*e]).clipExtent([[n-.038*e+gF,r-0*e+gF],[n-.005*e-gF,r+.02*e-gF]]).stream(c);return h()};f.fitExtent=function(t,e){return xF(f,t,e)};f.fitSize=function(t,e){return kF(f,t,e)};function h(){e=n=null;return f}f.drawCompositionBorders=function(t){var e,n,r,i;e=a([9.21327272751682,2.645820439454123]);n=a([11.679126293239872,2.644755519268689]);r=a([11.676845389029227,.35307824637606433]);i=a([9.213572917774014,.35414205204417754]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([7.320873711543669,2.64475551449975]);n=a([9.213272722738658,2.645820434679803]);r=a([9.213422896480349,1.4999812505283054]);i=a([7.322014760520787,1.4989168878985566]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath();e=a([7.3220147605302905,1.4989168783492766]);n=a([9.213422896481598,1.499981240979021]);r=a([9.213572912999604,.354142056817247]);i=a([7.323154615739809,.353078251154504]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath()};f.getCompositionBorders=function(){var t=e3();this.drawCompositionBorders(t);return t.toString()};return f.scale(12e3)}function YF(i){var a=i.length;return{point:function t(e,n){var r=-1;while(++r<a){i[r].point(e,n)}},sphere:function t(){var e=-1;while(++e<a){i[e].sphere()}},lineStart:function t(){var e=-1;while(++e<a){i[e].lineStart()}},lineEnd:function t(){var e=-1;while(++e<a){i[e].lineEnd()}},polygonStart:function t(){var e=-1;while(++e<a){i[e].polygonStart()}},polygonEnd:function t(){var e=-1;while(++e<a){i[e].polygonEnd()}}}}function XF(){var e,n,a=hP().rotate([4.4,.8]).center([0,55.4]).parallels([50,60]),i,o=hP().rotate([4.4,.8]).center([0,55.4]).parallels([50,60]),s,r,u={point:function t(e,n){r=[e,n]}};function l(t){var e=t[0],n=t[1];return r=null,(i.point(e,n),r)||(s.point(e,n),r)}l.invert=function(t){var e=a.scale(),n=a.translate(),r=(t[0]-n[0])/e,i=(t[1]-n[1])/e;return(i>=-.089&&i<.06&&r>=.029&&r<.046?o:a).invert(t)};l.stream=function(t){return e&&n===t?e:e=YF([a.stream(n=t),o.stream(t)])};l.precision=function(t){if(!arguments.length)return a.precision();a.precision(t),o.precision(t);return c()};l.scale=function(t){if(!arguments.length)return a.scale();a.scale(t),o.scale(t);return l.translate(a.translate())};l.translate=function(t){if(!arguments.length)return a.translate();var e=a.scale(),n=+t[0],r=+t[1];i=a.translate(t).clipExtent([[n-.065*e,r-.089*e],[n+.075*e,r+.089*e]]).stream(u);s=o.translate([n+.01*e,r+.025*e]).clipExtent([[n+.029*e+gF,r-.089*e+gF],[n+.046*e-gF,r-.06*e-gF]]).stream(u);return c()};l.fitExtent=function(t,e){return xF(l,t,e)};l.fitSize=function(t,e){return kF(l,t,e)};function c(){e=n=null;return l}l.drawCompositionBorders=function(t){var e,n,r,i;e=a([-1.113205870242365,59.64920050773357]);n=a([.807899092399606,59.59085836472269]);r=a([.5778611961420386,57.93467822832577]);i=a([-1.25867782078448,57.99029450085142]);t.moveTo(e[0],e[1]);t.lineTo(n[0],n[1]);t.lineTo(r[0],r[1]);t.lineTo(i[0],i[1]);t.closePath()};l.getCompositionBorders=function(){var t=e3();this.drawCompositionBorders(t);return t.toString()};return l.scale(2800)}var ZF=Object.freeze({__proto__:null,geoAlbersUsa:CF,geoAlbersUsaTerritories:AF,geoConicConformalSpain:RF,geoConicConformalPortugal:OF,geoMercatorEcuador:BF,geoTransverseMercatorChile:NF,geoConicEquidistantJapan:FF,geoConicConformalFrance:IF,geoConicConformalEurope:HF,geoConicConformalNetherlands:GF,geoMercatorMalaysia:WF,geoMercatorEquatorialGuinea:KF,geoAlbersUk:XF});function $F(t){return t.k}function JF(t){return[t.x,t.y]}function QF(t){return function(){return t}}function tj(){var g=0,v=0,p=960,y=500;var m=true,_=true;var b=256;var w=$F;var x=JF;var k=0;function e(){var t=+w.apply(this,arguments);var e=x.apply(this,arguments);var n=Math.log2(t/b);var r=Math.round(Math.max(n+k,0));var i=Math.pow(2,n-r)*b;var a=+e[0]-t/2;var o=+e[1]-t/2;var s=Math.max(m?0:-Infinity,Math.floor((g-a)/i));var u=Math.min(m?1<<r:Infinity,Math.ceil((p-a)/i));var l=Math.max(_?0:-Infinity,Math.floor((v-o)/i));var c=Math.min(_?1<<r:Infinity,Math.ceil((y-o)/i));var f=[];for(var h=l;h<c;++h){for(var d=s;d<u;++d){f.push([d,h,r])}}f.translate=[a/i,o/i];f.scale=i;return f}e.size=function(t){return arguments.length?(g=v=0,p=+t[0],y=+t[1],e):[p-g,y-v]};e.extent=function(t){return arguments.length?(g=+t[0][0],v=+t[0][1],p=+t[1][0],y=+t[1][1],e):[[g,v],[p,y]]};e.scale=function(t){return arguments.length?(w=typeof t==="function"?t:QF(+t),e):w};e.translate=function(t){return arguments.length?(x=typeof t==="function"?t:QF([+t[0],+t[1]]),e):x};e.zoomDelta=function(t){return arguments.length?(k=+t,e):k};e.tileSize=function(t){return arguments.length?(b=+t,e):b};e.clamp=function(t){return arguments.length?(m=_=!!t,e):m&&_};e.clampX=function(t){return arguments.length?(m=!!t,e):m};e.clampY=function(t){return arguments.length?(_=!!t,e):_};return e}function ej(t){return t}function nj(t){if(t==null)return ej;var a,o,s=t.scale[0],u=t.scale[1],l=t.translate[0],c=t.translate[1];return function(t,e){if(!e)a=o=0;var n=2,r=t.length,i=new Array(r);i[0]=(a+=t[0])*s+l;i[1]=(o+=t[1])*u+c;while(n<r){i[n]=t[n],++n}return i}}function rj(t,e){var n,r=t.length,i=r-e;while(i<--r){n=t[i],t[i++]=t[r],t[r]=n}}function ij(e,t){if(typeof t==="string")t=e.objects[t];return t.type==="GeometryCollection"?{type:"FeatureCollection",features:t.geometries.map(function(t){return aj(e,t)})}:aj(e,t)}function aj(t,e){var n=e.id,r=e.bbox,i=e.properties==null?{}:e.properties,a=oj(t,e);return n==null&&r==null?{type:"Feature",properties:i,geometry:a}:r==null?{type:"Feature",id:n,properties:i,geometry:a}:{type:"Feature",id:n,bbox:r,properties:i,geometry:a}}function oj(t,e){var a=nj(t.transform),o=t.arcs;function i(t,e){if(e.length)e.pop();for(var n=o[t<0?~t:t],r=0,i=n.length;r<i;++r){e.push(a(n[r],r))}if(t<0)rj(e,i)}function r(t){return a(t)}function s(t){var e=[];for(var n=0,r=t.length;n<r;++n){i(t[n],e)}if(e.length<2)e.push(e[0]);return e}function n(t){var e=s(t);while(e.length<4){e.push(e[0])}return e}function u(t){return t.map(n)}function l(t){var e=t.type,n;switch(e){case"GeometryCollection":return{type:e,geometries:t.geometries.map(l)};case"Point":n=r(t.coordinates);break;case"MultiPoint":n=t.coordinates.map(r);break;case"LineString":n=s(t.arcs);break;case"MultiLineString":n=t.arcs.map(s);break;case"Polygon":n=u(t.arcs);break;case"MultiPolygon":n=t.arcs.map(u);break;default:return null}return{type:e,coordinates:n}}return l(e)}var sj=function t(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"data";return e.reduce(function(t,e){var n=[];if(Array.isArray(e)){n=e}else{if(e[r]){n=e[r]}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(r,'") the following response:'),e)}}return t.concat(n)},[])};function uj(t){"@babel/helpers - typeof";return uj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uj(t)}var lj=function t(e){return typeof e==="string"||uj(e)==="object"&&e.url&&e.headers};var cj={value:function t(){}};function fj(){for(var t=0,e=arguments.length,n={},r;t<e;++t){if(!(r=arguments[t]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new hj(n)}function hj(t){this._=t}function dj(t,r){return t.trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");if(n>=0)e=t.slice(n+1),t=t.slice(0,n);if(t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}})}hj.prototype=fj.prototype={constructor:hj,on:function t(e,n){var r=this._,i=dj(e+"",r),a,o=-1,s=i.length;if(arguments.length<2){while(++o<s){if((a=(e=i[o]).type)&&(a=gj(r[a],e.name)))return a}return}if(n!=null&&typeof n!=="function")throw new Error("invalid callback: "+n);while(++o<s){if(a=(e=i[o]).type)r[a]=vj(r[a],e.name,n);else if(n==null)for(a in r){r[a]=vj(r[a],e.name,null)}}return this},copy:function t(){var t={},e=this._;for(var n in e){t[n]=e[n].slice()}return new hj(t)},call:function t(e,n){if((a=arguments.length-2)>0)for(var r=new Array(a),i=0,a,o;i<a;++i){r[i]=arguments[i+2]}if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=this._[e],i=0,a=o.length;i<a;++i){o[i].value.apply(n,r)}},apply:function t(e,n,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var i=this._[e],a=0,o=i.length;a<o;++a){i[a].value.apply(n,r)}}};function gj(t,e){for(var n=0,r=t.length,i;n<r;++n){if((i=t[n]).name===e){return i.value}}}function vj(t,e,n){for(var r=0,i=t.length;r<i;++r){if(t[r].name===e){t[r]=cj,t=t.slice(0,r).concat(t.slice(r+1));break}}if(n!=null)t.push({name:e,value:n});return t}function pj(i,t){var a,o=fj("beforesend","progress","load","error"),s,u=gb(),l=new XMLHttpRequest,c=null,f=null,r,h,d=0;if(typeof XDomainRequest!=="undefined"&&!("withCredentials"in l)&&/^(http(s)?:)?\/\//.test(i))l=new XDomainRequest;"onload"in l?l.onload=l.onerror=l.ontimeout=e:l.onreadystatechange=function(t){l.readyState>3&&e(t)};function e(t){var e=l.status,n;if(!e&&mj(l)||e>=200&&e<300||e===304){if(r){try{n=r.call(a,l)}catch(t){o.call("error",a,t);return}}else{n=l}o.call("load",a,n)}else{o.call("error",a,t)}}l.onprogress=function(t){o.call("progress",a,t)};a={header:function t(e,n){e=(e+"").toLowerCase();if(arguments.length<2)return u.get(e);if(n==null)u.remove(e);else u.set(e,n+"");return a},mimeType:function t(e){if(!arguments.length)return s;s=e==null?null:e+"";return a},responseType:function t(e){if(!arguments.length)return h;h=e;return a},timeout:function t(e){if(!arguments.length)return d;d=+e;return a},user:function t(e){return arguments.length<1?c:(c=e==null?null:e+"",a)},password:function t(e){return arguments.length<1?f:(f=e==null?null:e+"",a)},response:function t(e){r=e;return a},get:function t(e,n){return a.send("GET",e,n)},post:function t(e,n){return a.send("POST",e,n)},send:function t(e,n,r){l.open(e,i,true,c,f);if(s!=null&&!u.has("accept"))u.set("accept",s+",*/*");if(l.setRequestHeader)u.each(function(t,e){l.setRequestHeader(e,t)});if(s!=null&&l.overrideMimeType)l.overrideMimeType(s);if(h!=null)l.responseType=h;if(d>0)l.timeout=d;if(r==null&&typeof n==="function")r=n,n=null;if(r!=null&&r.length===1)r=yj(r);if(r!=null)a.on("error",r).on("load",function(t){r(null,t)});o.call("beforesend",a,l);l.send(n==null?null:n);return a},abort:function t(){l.abort();return a},on:function t(){var e=o.on.apply(o,arguments);return e===o?a:e}};if(t!=null){if(typeof t!=="function")throw new Error("invalid callback: "+t);return a.get(t)}return a}function yj(n){return function(t,e){n(t==null?e:null)}}function mj(t){var e=t.responseType;return e&&e!=="text"?t.response:t.responseText}function _j(r,i){return function(t,e){var n=pj(t).mimeType(r).response(i);if(e!=null){if(typeof e!=="function")throw new Error("invalid callback: "+e);return n.get(e)}return n}}var bj=_j("application/json",function(t){return JSON.parse(t.responseText)});var wj=_j("text/plain",function(t){return t.responseText});var xj={},kj={},Sj=34,Cj=10,Ej=13;function Aj(t){return new Function("d","return {"+t.map(function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'}).join(",")+"}")}function Mj(n,r){var i=Aj(n);return function(t,e){return r(i(t),e,n)}}function Rj(t){var n=Object.create(null),r=[];t.forEach(function(t){for(var e in t){if(!(e in n)){r.push(n[e]=e)}}});return r}function Tj(t,e){var n=t+"",r=n.length;return r<e?new Array(e-r+1).join(0)+n:n}function Oj(t){return t<0?"-"+Tj(-t,6):t>9999?"+"+Tj(t,6):Tj(t,4)}function Pj(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),r=t.getUTCSeconds(),i=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":Oj(t.getUTCFullYear())+"-"+Tj(t.getUTCMonth()+1,2)+"-"+Tj(t.getUTCDate(),2)+(i?"T"+Tj(e,2)+":"+Tj(n,2)+":"+Tj(r,2)+"."+Tj(i,3)+"Z":r?"T"+Tj(e,2)+":"+Tj(n,2)+":"+Tj(r,2)+"Z":n||e?"T"+Tj(e,2)+":"+Tj(n,2)+"Z":"")}function Bj(r){var e=new RegExp('["'+r+"\n\r]"),f=r.charCodeAt(0);function t(t,n){var r,i,e=a(t,function(t,e){if(r)return r(t,e-1);i=t,r=n?Mj(t,n):Aj(t)});e.columns=i||[];return e}function a(r,t){var e=[],i=r.length,a=0,n=0,o,s=i<=0,u=false;if(r.charCodeAt(i-1)===Cj)--i;if(r.charCodeAt(i-1)===Ej)--i;function l(){if(s)return kj;if(u)return u=false,xj;var t,e=a,n;if(r.charCodeAt(e)===Sj){while(a++<i&&r.charCodeAt(a)!==Sj||r.charCodeAt(++a)===Sj){}if((t=a)>=i)s=true;else if((n=r.charCodeAt(a++))===Cj)u=true;else if(n===Ej){u=true;if(r.charCodeAt(a)===Cj)++a}return r.slice(e+1,t-1).replace(/""/g,'"')}while(a<i){if((n=r.charCodeAt(t=a++))===Cj)u=true;else if(n===Ej){u=true;if(r.charCodeAt(a)===Cj)++a}else if(n!==f)continue;return r.slice(e,t)}return s=true,r.slice(e,i)}while((o=l())!==kj){var c=[];while(o!==xj&&o!==kj){c.push(o),o=l()}if(t&&(c=t(c,n++))==null)continue;e.push(c)}return e}function n(t,n){return t.map(function(e){return n.map(function(t){return l(e[t])}).join(r)})}function i(t,e){if(e==null)e=Rj(t);return[e.map(l).join(r)].concat(n(t,e)).join("\n")}function o(t,e){if(e==null)e=Rj(t);return n(t,e).join("\n")}function s(t){return t.map(u).join("\n")}function u(t){return t.map(l).join(r)}function l(t){return t==null?"":t instanceof Date?Pj(t):e.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:t,parseRows:a,format:i,formatBody:o,formatRows:s,formatRow:u,formatValue:l}}var Dj=Bj(",");var Nj=Dj.parse;var zj=Bj("\t");var Fj=zj.parse;function jj(i,a){return function(t,e,n){if(arguments.length<3)n=e,e=null;var r=pj(t).mimeType(i);r.row=function(t){return arguments.length?r.response(Ij(a,e=t)):e};r.row(e);return n?r.get(n):r}}function Ij(e,n){return function(t){return e(t.responseText,n)}}var Lj=jj("text/csv",Nj);var Hj=jj("text/tab-separated-values",Fj);var Uj=function t(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"data";var i=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"headers";return e[n].map(function(r){return e[i].reduce(function(t,e,n){return t[e]=r[n],t},{})})};function Gj(t){"@babel/helpers - typeof";return Gj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gj(t)}function Vj(a,o,s,u){var l=this;var c;var f=function t(e){var n=e.slice(e.length-4);switch(n){case".csv":return Lj;case".tsv":return Hj;case".txt":return wj;default:return bj}};var h=function t(e,n,r){if(n!==bj&&!e&&r&&r instanceof Array){r.forEach(function(t){for(var e in t){if(!isNaN(t[e]))t[e]=parseFloat(t[e]);else if(t[e].toLowerCase()==="false")t[e]=false;else if(t[e].toLowerCase()==="true")t[e]=true;else if(t[e].toLowerCase()==="null")t[e]=null;else if(t[e].toLowerCase()==="undefined")t[e]=undefined}})}return r};var d=function t(e){return e.reduce(function(t,e){return e?t+1:t},0)};var g=function t(e,n){return n.indexOf(e)};if(!(a instanceof Array))a=[a];var t=a.find(lj);var v=new Array(a.length);var p=[];if(t){a.forEach(function(t,e){if(lj(t))p.push(t);else v[e]=t})}else{v[0]=a}var y=d(v);p.forEach(function(t){var e={},r=t;if(Gj(t)==="object"){r=t.url;e=t.headers}c=f(r);var n=c(r);for(var i in e){if({}.hasOwnProperty.call(e,i)){n.header(i,e[i])}}n.get(function(t,e){e=t?[]:e;if(e&&!(e instanceof Array)&&e.data&&e.headers)e=Uj(e);e=h(t,c,e);v[g(r,a)]=e;if(d(v)-y===p.length){e=d(v)===1?v[0]:v;if(l._cache)l._lrucache.set("".concat(s,"_").concat(r),e);if(o){var n=o(d(v)===1?v[0]:v);if(s==="data"&&Jl(n)){e=n.data||[];delete n.data;l.config(n)}else e=n||[]}else if(s==="data"){e=sj(v,"data")}if(s&&"_".concat(s)in l)l["_".concat(s)]=e;if(u)u(t,e)}})});if(p.length===0){v=v.map(function(t){if(t&&!(t instanceof Array)&&t.data&&t.headers)t=Uj(t);return t});var e=d(v)===1?v[0]:v;if(o){var n=o(d(v)===1?v[0]:v);if(s==="data"&&Jl(n)){e=n.data||[];delete n.data;this.config(n)}else e=n||[]}else if(s==="data"){e=sj(v,"data")}if(s&&"_".concat(s)in this)this["_".concat(s)]=e;if(u)u(null,e)}}function Wj(t,e,n){if(!(t instanceof Array))t=[t];var r=t.find(lj);if(r){var i=this._queue.find(function(t){return t[3]===n});var a=[Vj.bind(this),t,e,n];if(i)this._queue[this._queue.indexOf(i)]=a;else this._queue.push(a)}else{this["_".concat(n)]=t}}var qj=function t(e){return function(){return e}};function Kj(t,e){var n=e.sourceEvent,r=e.target,i=e.selection,a=e.mode,o=e.dispatch;Object.defineProperties(this,{type:{value:t,enumerable:true,configurable:true},sourceEvent:{value:n,enumerable:true,configurable:true},target:{value:r,enumerable:true,configurable:true},selection:{value:i,enumerable:true,configurable:true},mode:{value:a,enumerable:true,configurable:true},_:{value:o}})}function Yj(t){t.stopImmediatePropagation()}function Xj(t){t.preventDefault();t.stopImmediatePropagation()}var Zj={name:"drag"},$j={name:"space"},Jj={name:"handle"},Qj={name:"center"};var tI=Math.abs,eI=Math.max,nI=Math.min;function rI(t){return[+t[0],+t[1]]}function iI(t){return[rI(t[0]),rI(t[1])]}var aI={name:"x",handles:["w","e"].map(dI),input:function t(e,n){return e==null?null:[[+e[0],n[0][1]],[+e[1],n[1][1]]]},output:function t(e){return e&&[e[0][0],e[1][0]]}};var oI={name:"y",handles:["n","s"].map(dI),input:function t(e,n){return e==null?null:[[n[0][0],+e[0]],[n[1][0],+e[1]]]},output:function t(e){return e&&[e[0][1],e[1][1]]}};var sI={name:"xy",handles:["n","w","e","s","nw","ne","sw","se"].map(dI),input:function t(e){return e==null?null:iI(e)},output:function t(e){return e}};var uI={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 lI={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"};var cI={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"};var fI={overlay:+1,selection:+1,n:null,e:+1,s:null,w:-1,nw:-1,ne:+1,se:+1,sw:-1};var hI={overlay:+1,selection:+1,n:-1,e:null,s:+1,w:null,nw:-1,ne:-1,se:+1,sw:+1};function dI(t){return{type:t}}function gI(t){return!t.ctrlKey&&!t.button}function vI(){var t=this.ownerSVGElement||this;if(t.hasAttribute("viewBox")){t=t.viewBox.baseVal;return[[t.x,t.y],[t.x+t.width,t.y+t.height]]}return[[0,0],[t.width.baseVal.value,t.height.baseVal.value]]}function pI(){return navigator.maxTouchPoints||"ontouchstart"in this}function yI(t){while(!t.__brush){if(!(t=t.parentNode))return}return t.__brush}function mI(t){return t[0][0]===t[1][0]||t[0][1]===t[1][1]}function _I(){return wI(aI)}function bI(){return wI(sI)}function wI(j){var e=vI,I=gI,r=pI,L=true,a=Js("start","brush","end"),n=6,H;function o(t){var e=t.property("__brush",c).selectAll(".overlay").data([dI("overlay")]);e.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",uI.overlay).merge(e).each(function(){var t=yI(this).extent;Ks(this).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])});t.selectAll(".selection").data([dI("selection")]).enter().append("rect").attr("class","selection").attr("cursor",uI.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var n=t.selectAll(".handle").data(j.handles,function(t){return t.type});n.exit().remove();n.enter().append("rect").attr("class",function(t){return"handle handle--"+t.type}).attr("cursor",function(t){return uI[t.type]});t.each(U).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",s).filter(r).on("touchstart.brush",s).on("touchmove.brush",u).on("touchend.brush touchcancel.brush",l).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}o.move=function(t,s){if(t.tween){t.on("start.brush",function(t){G(this,arguments).beforestart().start(t)}).on("interrupt.brush end.brush",function(t){G(this,arguments).end(t)}).tween("brush",function(){var e=this,n=e.__brush,r=G(e,arguments),t=n.selection,i=j.input(typeof s==="function"?s.apply(this,arguments):s,n.extent),a=or(t,i);function o(t){n.selection=t===1&&i===null?null:a(t);U.call(e);r.brush()}return t!==null&&i!==null?o:o(1)})}else{t.each(function(){var t=this,e=arguments,n=t.__brush,r=j.input(typeof s==="function"?s.apply(t,e):s,n.extent),i=G(t,e).beforestart();ju(t);n.selection=r===null?null:r;U.call(t);i.start().brush().end()})}};o.clear=function(t){o.move(t,null)};function U(){var t=Ks(this),e=yI(this).selection;if(e){t.selectAll(".selection").style("display",null).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]);t.selectAll(".handle").style("display",null).attr("x",function(t){return t.type[t.type.length-1]==="e"?e[1][0]-n/2:e[0][0]-n/2}).attr("y",function(t){return t.type[0]==="s"?e[1][1]-n/2:e[0][1]-n/2}).attr("width",function(t){return t.type==="n"||t.type==="s"?e[1][0]-e[0][0]+n:n}).attr("height",function(t){return t.type==="e"||t.type==="w"?e[1][1]-e[0][1]+n:n})}else{t.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}}function G(t,e,n){var r=t.__brush.emitter;return r&&(!n||!r.clean)?r:new i(t,e,n)}function i(t,e,n){this.that=t;this.args=e;this.state=t.__brush;this.active=0;this.clean=n}i.prototype={beforestart:function t(){if(++this.active===1)this.state.emitter=this,this.starting=true;return this},start:function t(e,n){if(this.starting)this.starting=false,this.emit("start",e,n);else this.emit("brush",e);return this},brush:function t(e,n){this.emit("brush",e,n);return this},end:function t(e,n){if(--this.active===0)delete this.state.emitter,this.emit("end",e,n);return this},emit:function t(e,n,r){var i=Ks(this.that).datum();a.call(e,this.that,new Kj(e,{sourceEvent:n,target:o,selection:j.output(this.state.selection),mode:r,dispatch:a}),i)}};function s(t){if(H&&!t.touches)return;if(!I.apply(this,arguments))return;var f=this,i=t.target.__data__.type,a=(L&&t.metaKey?i="overlay":i)==="selection"?Zj:L&&t.altKey?Qj:Jj,o=j===oI?null:fI[i],s=j===aI?null:hI[i],u=yI(f),e=u.extent,l=u.selection,c=e[0][0],h,d,g=e[0][1],v,p,y=e[1][0],m,_,b=e[1][1],w,x,k=0,S=0,C,E=o&&s&&L&&t.shiftKey,A,M,R=Array.from(t.touches||[t],function(t){var e=t.identifier;t=Xs(t,f);t.point0=t.slice();t.identifier=e;return t});if(i==="overlay"){if(l)C=true;var n=[R[0],R[1]||R[0]];u.selection=l=[[h=j===oI?c:nI(n[0][0],n[1][0]),v=j===aI?g:nI(n[0][1],n[1][1])],[m=j===oI?y:eI(n[0][0],n[1][0]),w=j===aI?b:eI(n[0][1],n[1][1])]];if(R.length>1)D()}else{h=l[0][0];v=l[0][1];m=l[1][0];w=l[1][1]}d=h;p=v;_=m;x=w;var r=Ks(f).attr("pointer-events","none");var T=r.selectAll(".overlay").attr("cursor",uI[i]);ju(f);var O=G(f,arguments,true).beforestart();if(t.touches){O.moved=B;O.ended=N}else{var P=Ks(t.view).on("mousemove.brush",B,true).on("mouseup.brush",N,true);if(L)P.on("keydown.brush",z,true).on("keyup.brush",F,true);CA(t.view)}U.call(f);O.start(t,a.name);function B(t){var e=_createForOfIteratorHelper2(t.changedTouches||[t]),n;try{for(e.s();!(n=e.n()).done;){var r=n.value;var i=_createForOfIteratorHelper2(R),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;if(o.identifier===r.identifier)o.cur=Xs(r,f)}}catch(t){i.e(t)}finally{i.f()}}}catch(t){e.e(t)}finally{e.f()}if(E&&!A&&!M&&R.length===1){var s=R[0];if(tI(s.cur[0]-s[0])>tI(s.cur[1]-s[1]))M=true;else A=true}var u=_createForOfIteratorHelper2(R),l;try{for(u.s();!(l=u.n()).done;){var c=l.value;if(c.cur)c[0]=c.cur[0],c[1]=c.cur[1]}}catch(t){u.e(t)}finally{u.f()}C=true;Xj(t);D(t)}function D(t){var e=R[0],n=e.point0;var r;k=e[0]-n[0];S=e[1]-n[1];switch(a){case $j:case Zj:{if(o)k=eI(c-h,nI(y-m,k)),d=h+k,_=m+k;if(s)S=eI(g-v,nI(b-w,S)),p=v+S,x=w+S;break}case Jj:{if(R[1]){if(o)d=eI(c,nI(y,R[0][0])),_=eI(c,nI(y,R[1][0])),o=1;if(s)p=eI(g,nI(b,R[0][1])),x=eI(g,nI(b,R[1][1])),s=1}else{if(o<0)k=eI(c-h,nI(y-h,k)),d=h+k,_=m;else if(o>0)k=eI(c-m,nI(y-m,k)),d=h,_=m+k;if(s<0)S=eI(g-v,nI(b-v,S)),p=v+S,x=w;else if(s>0)S=eI(g-w,nI(b-w,S)),p=v,x=w+S}break}case Qj:{if(o)d=eI(c,nI(y,h-k*o)),_=eI(c,nI(y,m+k*o));if(s)p=eI(g,nI(b,v-S*s)),x=eI(g,nI(b,w+S*s));break}}if(_<d){o*=-1;r=h,h=m,m=r;r=d,d=_,_=r;if(i in lI)T.attr("cursor",uI[i=lI[i]])}if(x<p){s*=-1;r=v,v=w,w=r;r=p,p=x,x=r;if(i in cI)T.attr("cursor",uI[i=cI[i]])}if(u.selection)l=u.selection;if(A)d=l[0][0],_=l[1][0];if(M)p=l[0][1],x=l[1][1];if(l[0][0]!==d||l[0][1]!==p||l[1][0]!==_||l[1][1]!==x){u.selection=[[d,p],[_,x]];U.call(f);O.brush(t,a.name)}}function N(t){Yj(t);if(t.touches){if(t.touches.length)return;if(H)clearTimeout(H);H=setTimeout(function(){H=null},500)}else{EA(t.view,C);P.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null)}r.attr("pointer-events","all");T.attr("cursor",uI.overlay);if(u.selection)l=u.selection;if(mI(l))u.selection=null,U.call(f);O.end(t,a.name)}function z(t){switch(t.keyCode){case 16:{E=o&&s;break}case 18:{if(a===Jj){if(o)m=_-k*o,h=d+k*o;if(s)w=x-S*s,v=p+S*s;a=Qj;D()}break}case 32:{if(a===Jj||a===Qj){if(o<0)m=_-k;else if(o>0)h=d-k;if(s<0)w=x-S;else if(s>0)v=p-S;a=$j;T.attr("cursor",uI.selection);D()}break}default:return}Xj(t)}function F(t){switch(t.keyCode){case 16:{if(E){A=M=E=false;D()}break}case 18:{if(a===Qj){if(o<0)m=_;else if(o>0)h=d;if(s<0)w=x;else if(s>0)v=p;a=Jj;D()}break}case 32:{if(a===$j){if(t.altKey){if(o)m=_-k*o,h=d+k*o;if(s)w=x-S*s,v=p+S*s;a=Qj}else{if(o<0)m=_;else if(o>0)h=d;if(s<0)w=x;else if(s>0)v=p;a=Jj}T.attr("cursor",uI[i]);D()}break}default:return}Xj(t)}}function u(t){G(this,arguments).moved(t)}function l(t){G(this,arguments).ended(t)}function c(){var t=this.__brush||{selection:null};t.extent=iI(e.apply(this,arguments));t.dim=j;return t}o.extent=function(t){return arguments.length?(e=typeof t==="function"?t:qj(iI(t)),o):e};o.filter=function(t){return arguments.length?(I=typeof t==="function"?t:qj(!!t),o):I};o.touchable=function(t){return arguments.length?(r=typeof t==="function"?t:qj(!!t),o):r};o.handleSize=function(t){return arguments.length?(n=+t,o):n};o.keyModifiers=function(t){return arguments.length?(L=!!t,o):L};o.on=function(){var t=a.on.apply(a,arguments);return t===a?o:t};return o}var xI=[].slice;var kI={};function SI(t){this._size=t;this._call=this._error=null;this._tasks=[];this._data=[];this._waiting=this._active=this._ended=this._start=0}SI.prototype=TI.prototype={constructor:SI,defer:function t(e){if(typeof e!=="function")throw new Error("invalid callback");if(this._call)throw new Error("defer after await");if(this._error!=null)return this;var n=xI.call(arguments,1);n.push(e);++this._waiting,this._tasks.push(n);CI(this);return this},abort:function t(){if(this._error==null)MI(this,new Error("abort"));return this},await:function t(n){if(typeof n!=="function")throw new Error("invalid callback");if(this._call)throw new Error("multiple await");this._call=function(t,e){n.apply(null,[t].concat(e))};RI(this);return this},awaitAll:function t(e){if(typeof e!=="function")throw new Error("invalid callback");if(this._call)throw new Error("multiple await");this._call=e;RI(this);return this}};function CI(e){if(!e._start){try{EI(e)}catch(t){if(e._tasks[e._ended+e._active-1])MI(e,t);else if(!e._data)throw t}}}function EI(t){while(t._start=t._waiting&&t._active<t._size){var e=t._ended+t._active,n=t._tasks[e],r=n.length-1,i=n[r];n[r]=AI(t,e);--t._waiting,++t._active;n=i.apply(null,n);if(!t._tasks[e])continue;t._tasks[e]=n||kI}}function AI(n,r){return function(t,e){if(!n._tasks[r])return;--n._active,++n._ended;n._tasks[r]=null;if(n._error!=null)return;if(t!=null){MI(n,t)}else{n._data[r]=e;if(n._waiting)CI(n);else RI(n)}}}function MI(t,e){var n=t._tasks.length,r;t._error=e;t._data=undefined;t._waiting=NaN;while(--n>=0){if(r=t._tasks[n]){t._tasks[n]=null;if(r.abort){try{r.abort()}catch(e){}}}}t._active=NaN;RI(t)}function RI(t){if(!t._active&&t._call){var e=t._data;t._data=undefined;t._call(t._error,e)}}function TI(t){if(t==null)t=Infinity;else if(!((t=+t)>=1))throw new Error("invalid concurrency");return new SI(t)}var OI=g5(function(n){(function(t,e){{n.exports=e()}})((typeof window==="undefined"?"undefined":_typeof2(window))==="object"?window:d5,function(){var i=void 0;function e(t){if(!(this instanceof e))return new e(t);this._LRUCacheState=new n(t)}var t=e.prototype;t.get=function(t){var e=this._LRUCacheState;var n=e.hash[t];if(!n)return;o(e.linkedList,n);return e.data[t]};t.set=function(t,e){var n=this._LRUCacheState;var r=n.hash[t];if(e===i)return this;if(!r){n.hash[t]=new a(t);n.linkedList.length+=1;r=n.hash[t]}o(n.linkedList,r);n.data[t]=e;if(n.linkedList.length>n.capacity)this.remove(n.linkedList.end.key);return this};t.update=function(t,e){if(this.has(t))this.set(t,e(this.get(t)));return this};t.remove=function(t){var e=this._LRUCacheState;var n=e.hash[t];if(!n)return this;if(n===e.linkedList.head)e.linkedList.head=n.p;if(n===e.linkedList.end)e.linkedList.end=n.n;s(n.n,n.p);delete e.hash[t];delete e.data[t];e.linkedList.length-=1;return this};t.removeAll=function(){this._LRUCacheState=new n(this._LRUCacheState.capacity);return this};t.info=function(){var t=this._LRUCacheState;return{capacity:t.capacity,length:t.linkedList.length}};t.keys=function(){var t=[];var e=this._LRUCacheState.linkedList.head;while(e){t.push(e.key);e=e.p}return t};t.has=function(t){return!!this._LRUCacheState.hash[t]};t.staleKey=function(){return this._LRUCacheState.linkedList.end&&this._LRUCacheState.linkedList.end.key};t.popStale=function(){var t=this.staleKey();if(!t)return null;var e=[t,this._LRUCacheState.data[t]];this.remove(t);return e};function n(t){this.capacity=t>0?+t:Number.MAX_SAFE_INTEGER||Number.MAX_VALUE;this.data=Object.create?Object.create(null):{};this.hash=Object.create?Object.create(null):{};this.linkedList=new r}function r(){this.length=0;this.head=null;this.end=null}function a(t){this.key=t;this.p=null;this.n=null}function o(t,e){if(e===t.head)return;if(!t.end){t.end=e}else if(t.end===e){t.end=e.n}s(e.n,e.p);s(e,t.head);t.head=e;t.head.n=null}function s(t,e){if(t===e)return;if(t)t.p=e;if(e)e.n=t}return e})});function PI(t){return t.slice().sort(function(t,e){return t-e})}function BI(t){var e,n=0;for(var r=0;r<t.length;r++){if(r===0||t[r]!==e){e=t[r];n++}}return n}function DI(t,e){var n=[];for(var r=0;r<t;r++){var i=[];for(var a=0;a<e;a++){i.push(0)}n.push(i)}return n}function NI(t,e,n,r){var i;if(t>0){var a=(n[e]-n[t-1])/(e-t+1);i=r[e]-r[t-1]-(e-t+1)*a*a}else i=r[e]-n[e]*n[e]/(e+1);if(i<0)return 0;return i}function zI(t,e,n,r,i,a,o){if(t>e)return;var s=Math.floor((t+e)/2);r[n][s]=r[n-1][s-1];i[n][s]=s;var u=n;if(t>n)u=Math.max(u,i[n][t-1]||0);u=Math.max(u,i[n-1][s]||0);var l=s-1;if(e<r.length-1)l=Math.min(l,i[n][e+1]||0);for(var c=l;c>=u;--c){var f=NI(c,s,a,o);if(f+r[n-1][u-1]>=r[n][s])break;var h=NI(u,s,a,o);var d=h+r[n-1][u-1];if(d<r[n][s]){r[n][s]=d;i[n][s]=u}u++;var g=f+r[n-1][c-1];if(g<r[n][s]){r[n][s]=g;i[n][s]=c}}zI(t,s-1,n,r,i,a,o);zI(s+1,e,n,r,i,a,o)}function FI(t,e,n){var r=e[0]?e[0].length:0;var i=t[Math.floor(r/2)];var a=[];var o=[];for(var s=0,u=void 0;s<r;++s){u=t[s]-i;if(s===0){a.push(u);o.push(u*u)}else{a.push(a[s-1]+u);o.push(o[s-1]+u*u)}e[0][s]=NI(0,s,a,o);n[0][s]=0}for(var l=1;l<e.length;++l){var c=r-1;if(l<e.length-1)c=l;zI(c,r-1,l,e,n,a,o)}}function jI(t,e){if(e>t.length){throw new Error("Cannot generate more classes than there are data values")}var n=PI(t);var r=BI(n);if(r===1){return[n]}var i=DI(e,n.length),a=DI(e,n.length);FI(n,a,i);var o=i[0]?i[0].length-1:0;var s=[];for(var u=i.length-1;u>=0;u--){var l=i[u][o];s[u]=n.slice(l,o+1);if(u>0)o=l-1}return s}function II(t){"@babel/helpers - typeof";return II="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},II(t)}function LI(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function HI(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function UI(t,e,n){if(e)HI(t.prototype,e);if(n)HI(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function GI(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});Object.defineProperty(t,"prototype",{writable:false});if(e)VI(t,e)}function VI(t,e){VI=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return VI(t,e)}function WI(i){var a=YI();return function t(){var e=XI(i),n;if(a){var r=XI(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return qI(this,n)}}function qI(t,e){if(e&&(II(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return KI(t)}function KI(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function YI(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function XI(t){XI=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return XI(t)}var ZI=5;var $I=function(t){GI(n,t);var e=WI(n);function n(){var s;LI(this,n);s=e.call(this);s._titleClass=new y9;s._align="center";s._data=[];s._direction="row";s._duration=600;s._height=200;s._id=Zl("id");s._label=Zl("id");s._lineData=[];s._outerBounds={width:0,height:0,x:0,y:0};s._padding=5;s._shape=cb("Rect");s._shapes=[];s._shapeConfig={fill:Zl("color"),height:cb(12),hitArea:function t(e,n){var r=s._lineData[n],i=Se([r.height,r.shapeHeight]);return{width:r.width+r.shapeWidth,height:i,x:-r.shapeWidth/2,y:-i/2}},labelBounds:function t(e,n){var r=s._lineData[n];var i=r.shapeWidth/2;if(r.shape==="Circle")i-=r.shapeR/2;var a=Se([r.shapeHeight,r.height]);return{width:r.width,height:a,x:i+ZI,y:-a/2}},labelConfig:{fontColor:cb(Q2.dark),fontFamily:s._titleClass.fontFamily(),fontResize:false,fontSize:cb(10),verticalAlign:"middle"},opacity:1,r:cb(6),width:cb(12),x:function t(e,n){var r=s._lineData[n];var i=r.y;var a=s._align==="left"||s._align==="right"&&s._direction==="column"?0:s._align==="center"?(s._outerBounds.width-s._rowWidth(s._lineData.filter(function(t){return i===t.y})))/2:s._outerBounds.width-s._rowWidth(s._lineData.filter(function(t){return i===t.y}));var o=s._lineData.slice(0,n).filter(function(t){return i===t.y});return s._rowWidth(o)+s._padding*(o.length?r.sentence?2:1:0)+s._outerBounds.x+r.shapeWidth/2+a},y:function t(e,n){var r=s._lineData[n];return r.y+s._titleHeight+s._outerBounds.y+Se(s._lineData.filter(function(t){return r.y===t.y}).map(function(t){return t.height}).concat(s._data.map(function(t,e){return s._fetchConfig("height",t,e)})))/2}};s._titleConfig={fontSize:12};s._verticalAlign="middle";s._width=400;return s}UI(n,[{key:"_fetchConfig",value:function t(e,n,r){var i=this._shapeConfig[e]!==undefined?this._shapeConfig[e]:this._shapeConfig.labelConfig[e];if(!i&&e==="lineHeight")return this._fetchConfig("fontSize",n,r)*1.4;return typeof i==="function"?i(n,r):i}},{key:"_rowHeight",value:function t(e){return Se(e.map(function(t){return t.height}).concat(e.map(function(t){return t.shapeHeight})))+this._padding}},{key:"_rowWidth",value:function t(r){var i=this;return Re(r.map(function(t,e){var n=i._padding*(e===r.length-1?0:t.width?2:1);return t.shapeWidth+t.width+n}))}},{key:"render",value:function t(e){var f=this;if(this._select===void 0)this.select(Ks("body").append("svg").attr("width","".concat(this._width,"px")).attr("height","".concat(this._height,"px")).node());this._group=fb("g.d3plus-Legend",{parent:this._select});this._titleGroup=fb("g.d3plus-Legend-title",{parent:this._group});this._shapeGroup=fb("g.d3plus-Legend-shape",{parent:this._group});var h=this._height;this._titleHeight=0;this._titleWidth=0;if(this._title){var n=this._titleConfig.fontFamily||this._titleClass.fontFamily()(),r=this._titleConfig.fontSize||this._titleClass.fontSize()();var i=i=this._titleConfig.lineHeight||this._titleClass.lineHeight();i=i?i():r*1.4;var a=i9().fontFamily(n).fontSize(r).lineHeight(i).width(this._width).height(this._height)(this._title);this._titleHeight=i+a.lines.length+this._padding;this._titleWidth=Se(a.widths);h-=this._titleHeight}this._lineData=this._data.map(function(t,e){var n=f._label(t,e);var r=f._shape(t,e);var i=f._fetchConfig("r",t,e);var a={data:t,i:e,id:f._id(t,e),shape:r,shapeR:i,shapeWidth:r==="Circle"?i*2:f._fetchConfig("width",t,e),shapeHeight:r==="Circle"?i*2:f._fetchConfig("height",t,e),y:0};if(!n){a.sentence=false;a.words=[];a.height=0;a.width=0;return a}var o=f._fetchConfig("fontFamily",t,e),s=f._fetchConfig("lineHeight",t,e),u=f._fetchConfig("fontSize",t,e);var l=h-(f._data.length+1)*f._padding,c=f._width;a=Object.assign(a,i9().fontFamily(o).fontSize(u).lineHeight(s).width(c).height(l)(n));a.width=Math.ceil(Se(a.lines.map(function(t){return E6(t,{"font-family":o,"font-size":u})})))+ZI*2;a.height=Math.ceil(a.lines.length*(s+1));a.og={height:a.height,width:a.width};a.f=o;a.s=u;a.lh=s;return a});var o;var u=this._width-this._padding*2;o=this._rowWidth(this._lineData);if(this._direction==="column"||o>u){var l=1,c=[];var d=Se(this._lineData.map(function(t){return t.words.length}));this._wrapLines=function(){var e=this;l++;if(l>d)return;var o=l===1?this._lineData.slice():this._lineData.filter(function(t){return t.width+t.shapeWidth+e._padding*(t.width?2:1)>u&&t.words.length>=l}).sort(function(t,e){return e.sentence.length-t.sentence.length});if(o.length&&h>o[0].height*l){var s=false;var t=function t(e){var n=o[e];var r=n.og.height*l,i=n.og.width*(1.5*(1/l));var a=i9().fontFamily(n.f).fontSize(n.s).lineHeight(n.lh).width(i).height(r)(n.sentence);if(!a.truncated){n.width=Math.ceil(Se(a.lines.map(function(t){return E6(t,{"font-family":n.f,"font-size":n.s})})))+n.s;n.height=a.lines.length*(n.lh+1)}else{s=true;return"break"}};for(var n=0;n<o.length;n++){var r=t(n);if(r==="break")break}if(!s)this._wrapRows()}else{c=[];return}};this._wrapRows=function(){c=[];var t=1,e=0;for(var n=0;n<this._lineData.length;n++){var r=this._lineData[n],i=r.width+this._padding*(r.width?2:1)+r.shapeWidth;if(Re(c.map(function(t){return Se(t,function(t){return Se([t.height,t.shapeHeight])})}))>h){c=[];break}if(i>u){c=[];this._wrapLines();break}else if(e+i<u){e+=i}else if(this._direction!=="column"){e=i;t++}if(!c[t-1])c[t-1]=[];c[t-1].push(r);if(this._direction==="column"){e=0;t++}}};this._wrapRows();if(!c.length||Re(c,this._rowHeight.bind(this))+this._padding>h){o=Re(this._lineData.map(function(t){return t.shapeWidth+f._padding}))-this._padding;for(var s=0;s<this._lineData.length;s++){this._lineData[s].width=0;this._lineData[s].height=0}this._wrapRows()}if(c.length&&Re(c,this._rowHeight.bind(this))+this._padding<h){c.forEach(function(t,e){t.forEach(function(t){if(e){t.y=Re(c.slice(0,e),f._rowHeight.bind(f))}})});o=Se(c,this._rowWidth.bind(this))}}var g=Se(this._lineData,function(t,e){return Se([t.height,f._fetchConfig("height",t.data,e)])+t.y})+this._titleHeight,v=Se([o,this._titleWidth]);this._outerBounds.width=v;this._outerBounds.height=g;var p=this._padding,y=this._padding;if(this._align==="center")p=(this._width-v)/2;else if(this._align==="right")p=this._width-this._padding-v;if(this._verticalAlign==="middle")y=(this._height-g)/2;else if(this._verticalAlign==="bottom")y=this._height-this._padding-g;this._outerBounds.x=p;this._outerBounds.y=y;this._titleClass.data(this._title?[{text:this._title}]:[]).duration(this._duration).select(this._titleGroup.node()).textAnchor({left:"start",center:"middle",right:"end"}[this._align]).width(this._width-this._padding*2).x(this._padding).y(this._outerBounds.y).config(this._titleConfig).render();this._shapes=[];var m=lb.bind(this)(this._shapeConfig,"legend"),_={id:function t(e){return e.id},label:function t(e){return e.label},lineHeight:function t(e){return e.lH}};var b=this._data.map(function(t,e){var n={__d3plus__:true,data:t,i:e,id:f._id(t,e),label:f._lineData[e].width?f._label(t,e):false,lH:f._fetchConfig("lineHeight",t,e),shape:f._shape(t,e)};return n});this._shapes=[];["Circle","Rect"].forEach(function(e){f._shapes.push((new X4[e]).parent(f).data(b.filter(function(t){return t.shape===e})).duration(f._duration).labelConfig({padding:0}).select(f._shapeGroup.node()).verticalAlign("top").config(tc({},m,_)).render())});if(e)setTimeout(e,this._duration+100);return this}},{key:"active",value:function t(e){this._shapes.forEach(function(t){return t.active(e)});return this}},{key:"align",value:function t(e){return arguments.length?(this._align=e,this):this._align}},{key:"data",value:function t(e){return arguments.length?(this._data=e,this):this._data}},{key:"direction",value:function t(e){return arguments.length?(this._direction=e,this):this._direction}},{key:"duration",value:function t(e){return arguments.length?(this._duration=e,this):this._duration}},{key:"height",value:function t(e){return arguments.length?(this._height=e,this):this._height}},{key:"hover",value:function t(e){this._shapes.forEach(function(t){return t.hover(e)});return this}},{key:"id",value:function t(e){return arguments.length?(this._id=e,this):this._id}},{key:"label",value:function t(e){return arguments.length?(this._label=typeof e==="function"?e:cb(e),this):this._label}},{key:"outerBounds",value:function t(){return this._outerBounds}},{key:"padding",value:function t(e){return arguments.length?(this._padding=e,this):this._padding}},{key:"select",value:function t(e){return arguments.length?(this._select=Ks(e),this):this._select}},{key:"shape",value:function t(e){return arguments.length?(this._shape=typeof e==="function"?e:cb(e),this):this._shape}},{key:"shapeConfig",value:function t(e){return arguments.length?(this._shapeConfig=tc(this._shapeConfig,e),this):this._shapeConfig}},{key:"title",value:function t(e){return arguments.length?(this._title=e,this):this._title}},{key:"titleConfig",value:function t(e){return arguments.length?(this._titleConfig=tc(this._titleConfig,e),this):this._titleConfig}},{key:"verticalAlign",value:function t(e){return arguments.length?(this._verticalAlign=e,this):this._verticalAlign}},{key:"width",value:function t(e){return arguments.length?(this._width=e,this):this._width}}]);return n}(ob);function JI(t){"@babel/helpers - typeof";return JI="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},JI(t)}function QI(t,e,n){if(e in t){Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true})}else{t[e]=n}return t}function tL(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function eL(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function nL(t,e,n){if(e)eL(t.prototype,e);if(n)eL(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function rL(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});Object.defineProperty(t,"prototype",{writable:false});if(e)iL(t,e)}function iL(t,e){iL=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return iL(t,e)}function aL(i){var a=uL();return function t(){var e=lL(i),n;if(a){var r=lL(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return oL(this,n)}}function oL(t,e){if(e&&(JI(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return sL(t)}function sL(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function uL(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function lL(t){lL=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return lL(t)}var cL=function(t){rL(n,t);var e=aL(n);function n(){var g;tL(this,n);g=e.call(this);g._axisClass=new mC;g._axisConfig={gridSize:0};g._axisTest=new mC;g._align="middle";g._buckets=5;g._bucketAxis=false;g._bucketFormat=function(e,t,n,r){var i=g._axisConfig.tickFormat?g._axisConfig.tickFormat:cw;var a=n[t+1];var o=t?n[t-1]:false;var s=t===n.length-1;if(e===a||s){var u=s&&e<Se(r)?"+":"";return"".concat(i(e)).concat(u)}else{var l=a?a/100:e/100;var c=l>=1||l<=-1?Math.round(l).toString().length-1:l.toString().split(".")[1].replace(/([1-9])[1-9].*$/,"$1").length*-1;var f=Math.pow(10,c);var h=o===e&&t===1?i(Ce([e+f,r.find(function(t){return t>e&&t<a})])):i(e);var d=e&&t===1?i(a):i(Se([a-f,r.reverse().find(function(t){return t>e&&t<a})]));return g._bucketJoiner(h,d)}};g._bucketJoiner=function(t,e){return t!==e?"".concat(t," - ").concat(e):"".concat(t)};g._centered=true;g._color=["#54478C","#2C699A","#0DB39E","#83E377","#EFEA5A"];g._colorMax=Q2.on;g._colorMid=Q2.light;g._colorMin=Q2.off;g._data=[];g._duration=600;g._height=200;g._labelClass=new y9;g._labelConfig={fontColor:Q2.dark,fontSize:12};g._legendClass=new $I;g._legendConfig={shapeConfig:{stroke:Q2.dark,strokeWidth:1}};g._midpoint=0;g._orient="bottom";g._outerBounds={width:0,height:0,x:0,y:0};g._padding=5;g._rectClass=(new VS).parent(sL(g));g._rectConfig={stroke:"#999",strokeWidth:1};g._scale="linear";g._size=10;g._value=Zl("value");g._width=400;return g}nL(n,[{key:"render",value:function t(e){var i=this;if(this._select===void 0)this.select(Ks("body").append("svg").attr("width","".concat(this._width,"px")).attr("height","".concat(this._height,"px")).node());var n=["bottom","top"].includes(this._orient);var r=n?"height":"width",a=n?"width":"height",o=n?"x":"y",s=n?"y":"x";this._group=fb("g.d3plus-ColorScale",{parent:this._select});var u=this._data.map(this._value).filter(function(t){return t!==null&&typeof t==="number"}).sort(function(t,e){return t-e});var l=this._domain||ke(u);var c=l[0]<this._midpoint;var f=l[1]>this._midpoint;var h=c&&f;var d=Ce([this._buckets instanceof Array?this._buckets.length:this._buckets,h&&this._scale!=="jenks"?2*Math.floor(kb(u).length/2)-1:kb(u).length]);var g=h?undefined:this._color,v,p;if(g&&!(g instanceof Array)){g=Me(0,d,1).map(function(t){return rw(g,(t+1)/d)}).reverse()}if(this._scale==="jenks"){var y=Ce([g?g.length:d,d,u.length]);var m=[];if(this._buckets instanceof Array){p=this._buckets}else{if(h&&this._centered){var _=Math.floor(y/2);var b=y%2;var w=u.filter(function(t){return t<i._midpoint});var x=xe(w);var k=u.concat(this._midpoint).filter(function(t){return t>=i._midpoint});var S=xe(k);var C=x>S?1:0;var E=S>x?1:0;var A=jI(w,Ce([_+b*C,w.length]));var M=jI(k,Ce([_+b*E,k.length]));m=A.concat(M)}else{m=jI(u,y)}p=m.map(function(t){return t[0]})}var R=new Set(p);if(p.length!==R.size)v=Array.from(R);if(!g){if(h){g=[this._colorMin,this._colorMid,this._colorMax];var T=p.slice(0,y).filter(function(t,e){return t<i._midpoint&&p[e+1]<=i._midpoint});var O=p.slice(0,y).filter(function(t,e){return t<=i._midpoint&&p[e+1]>i._midpoint});var P=p.slice(0,y).filter(function(t){return t>i._midpoint});var B=T.map(function(t,e){return!e?g[0]:rw(g[0],e/T.length)});var D=O.map(function(){return g[1]});var N=P.map(function(t,e){return e===P.length-1?g[2]:rw(g[2],1-(e+1)/P.length)});g=B.concat(D).concat(N)}else{g=Me(0,d,1).map(function(t){return rw(i._colorMax,t/d)}).reverse()}}if(p.length<=y)g=g.slice(-p.length);g=[g[0]].concat(g);this._colorScale=k2().domain(p).range(g)}else{var z=this._buckets instanceof Array?this._buckets:undefined;if(h&&!g){var F=Math.floor(d/2);var j=Me(0,F,1).map(function(t){return!t?i._colorMin:rw(i._colorMin,t/F)});var I=(d%2?[0]:[]).map(function(){return i._colorMid});var L=Me(0,F,1).map(function(t){return!t?i._colorMax:rw(i._colorMax,t/F)}).reverse();g=j.concat(I).concat(L);if(!z){var H=(g.length-1)/2;z=[l[0],this._midpoint,l[1]];z=Me(l[0],this._midpoint,-(l[0]-this._midpoint)/H).concat(Me(this._midpoint,l[1],(l[1]-this._midpoint)/H)).concat([l[1]])}}else{if(!g){if(this._scale==="buckets"||this._scale==="quantile"){g=Me(0,d,1).map(function(t){return rw(c?i._colorMin:i._colorMax,t/d)});if(f)g=g.reverse()}else{g=c?[this._colorMin,rw(this._colorMin,.8)]:[rw(this._colorMax,.8),this._colorMax]}}if(!z){if(this._scale==="quantile"){var U=1/(g.length-1);z=Me(0,1+U/2,U).map(function(t){return Nt(u,t)})}else if(h&&this._color&&this._centered){var G=(this._midpoint-l[0])/Math.floor(g.length/2);var V=(l[1]-this._midpoint)/Math.floor(g.length/2);var W=Me(l[0],this._midpoint,G);var q=Me(this._midpoint,l[1]+V/2,V);z=W.concat(q)}else{var K=(l[1]-l[0])/(g.length-1);z=Me(l[0],l[1]+K/2,K)}}}if(this._scale==="buckets"||this._scale==="quantile"){p=z;g=[g[0]].concat(g)}else if(this._scale==="log"){var Y=z.filter(function(t){return t<0});if(Y.length){var X=Y[0];var Z=Y.map(function(t){return-Math.pow(Math.abs(X),t/X)});Y.forEach(function(t,e){z[z.indexOf(t)]=Z[e]})}var $=z.filter(function(t){return t>0});if($.length){var J=$[$.length-1];var Q=$.map(function(t){return Math.pow(J,t/J)});$.forEach(function(t,e){z[z.indexOf(t)]=Q[e]})}if(z.includes(0))z[z.indexOf(0)]=1}this._colorScale=(this._scale==="buckets"||this._scale==="quantile"?k2:Xb)().domain(z).range(g)}if(this._colorScale.clamp)this._colorScale.clamp(true);var tt=this._bucketAxis||!["buckets","jenks","quantile"].includes(this._scale);var et=Gl().duration(this._duration);var nt={enter:{opacity:0},exit:{opacity:0},parent:this._group,transition:et,update:{opacity:1}};var rt=fb("g.d3plus-ColorScale-labels",Object.assign({condition:tt},nt));var it=fb("g.d3plus-ColorScale-Rect",Object.assign({condition:tt},nt));var at=fb("g.d3plus-ColorScale-legend",Object.assign({condition:!tt},nt));if(tt){var ot;var st={x:0,y:0};var ut=l.slice();if(this._bucketAxis){var lt=ut[ut.length-1];var ct=ut[ut.length-2];var ft=lt?lt/10:ct/10;var ht=ft>=1||ft<=-1?Math.round(ft).toString().length-1:ft.toString().split(".")[1].replace(/([1-9])[1-9].*$/,"$1").length*-1;var dt=Math.pow(10,ht);ut[ut.length-1]=lt+dt}var gt=tc({domain:n?ut:ut.slice().reverse(),duration:this._duration,height:this._height,labels:v||p,orient:this._orient,padding:this._padding,scale:this._scale==="log"?"log":"linear",ticks:p,width:this._width},this._axisConfig);var vt=tc({height:this["_".concat(r)]/2,width:this["_".concat(a)]/2},this._labelConfig);this._labelClass.config(vt);var pt=[];if(n&&this._labelMin){var yt={"font-family":this._labelClass.fontFamily()(this._labelMin),"font-size":this._labelClass.fontSize()(this._labelMin),"font-weight":this._labelClass.fontWeight()(this._labelMin)};if(yt["font-family"]instanceof Array)yt["font-family"]=yt["font-family"][0];var mt=E6(this._labelMin,yt);if(mt&&mt<this["_".concat(a)]/2){pt.push(this._labelMin);mt+=this._padding;if(n)st.x+=mt;gt[a]-=mt}}if(n&&this._labelMax){var _t={"font-family":this._labelClass.fontFamily()(this._labelMax),"font-size":this._labelClass.fontSize()(this._labelMax),"font-weight":this._labelClass.fontWeight()(this._labelMax)};if(_t["font-family"]instanceof Array)_t["font-family"]=_t["font-family"][0];var bt=E6(this._labelMax,_t);if(bt&&bt<this["_".concat(a)]/2){pt.push(this._labelMax);bt+=this._padding;if(!n)st.y+=bt;gt[a]-=bt}}this._axisTest.select(fb("g.d3plus-ColorScale-axisTest",{enter:{opacity:0},parent:this._group}).node()).config(gt).duration(0).render();var wt=this._axisTest.outerBounds();this._outerBounds[a]=this["_".concat(a)]-this._padding*2;this._outerBounds[r]=wt[r]+this._size;this._outerBounds[o]=this._padding;this._outerBounds[s]=this._padding;if(this._align==="middle")this._outerBounds[s]=(this["_".concat(r)]-this._outerBounds[r])/2;else if(this._align==="end")this._outerBounds[s]=this["_".concat(r)]-this._padding-this._outerBounds[r];var xt=this._outerBounds[s]+(["bottom","right"].includes(this._orient)?this._size:0)-(gt.padding||this._axisClass.padding());var kt="translate(".concat(st.x+(n?0:xt),", ").concat(st.y+(n?xt:0),")");this._axisClass.select(fb("g.d3plus-ColorScale-axis",tc(nt,{condition:true,enter:{transform:kt},update:{transform:kt}})).node()).config(gt).align("start").render();var St=this._axisTest._getPosition.bind(this._axisTest);var Ct=this._axisTest._getRange();var Et=this._group.selectAll("defs").data([0]);var At=Et.enter().append("defs");At.append("linearGradient").attr("id","gradient-".concat(this._uuid));Et=At.merge(Et);Et.select("linearGradient").attr("".concat(o,"1"),n?"0%":"100%").attr("".concat(o,"2"),n?"100%":"0%").attr("".concat(s,"1"),"0%").attr("".concat(s,"2"),"0%");var Mt=Et.select("linearGradient").selectAll("stop").data(g);var Rt=this._colorScale.domain();var Tt=Xb().domain(Ct).range(n?[0,100]:[100,0]);Mt.enter().append("stop").merge(Mt).attr("offset",function(t,e){return"".concat(e<=Rt.length-1?Tt(St(Rt[e])):100,"%")}).attr("stop-color",String);var Ot=function t(e,n){var r=p[n+1]||ut[ut.length-1];return Math.abs(St(r)-St(e))};var Pt=tc((ot={duration:this._duration,fill:p?function(t){return i._colorScale(t)}:"url(#gradient-".concat(this._uuid,")")},QI(ot,o,p?function(t,e){return St(t)+Ot(t,e)/2-(["left","right"].includes(i._orient)?Ot(t,e):0)}:Ct[0]+(Ct[1]-Ct[0])/2+st[o]),QI(ot,s,this._outerBounds[s]+(["top","left"].includes(this._orient)?wt[r]:0)+this._size/2+st[s]),QI(ot,a,p?Ot:Ct[1]-Ct[0]),QI(ot,r,this._size),ot),this._rectConfig);this._rectClass.data(p||[0]).id(function(t,e){return e}).select(it.node()).config(Pt).render();vt.height=this._outerBounds[r];vt.width=this._outerBounds[a];this._labelClass.config(vt).data(pt).select(rt.node()).x(function(t){return t===i._labelMax?Pt.x+Pt.width/2+i._padding:i._outerBounds.x}).y(function(t){return Pt.y-i._labelClass.fontSize()(t)/2}).text(function(t){return t}).rotate(n?0:this._orient==="right"?90:-90).render()}else{fb("g.d3plus-ColorScale-axis",Object.assign({condition:tt},nt));var Bt=p.reduce(function(t,e,n){var r=i._bucketFormat.bind(i)(e,n,p,u);t.push({color:g[n+1],id:r});return t},[]);if(!n)Bt=Bt.reverse();var Dt=tc({align:n?"center":{start:"left",middle:"center",end:"right"}[this._align],direction:n?"row":"column",duration:this._duration,height:this._height,padding:this._padding,shapeConfig:tc({duration:this._duration},this._axisConfig.shapeConfig||{}),title:this._axisConfig.title,titleConfig:this._axisConfig.titleConfig||{},width:this._width,verticalAlign:n?{start:"top",middle:"middle",end:"bottom"}[this._align]:"middle"},this._legendConfig);this._legendClass.data(Bt).select(at.node()).config(Dt).render();this._outerBounds=this._legendClass.outerBounds()}if(e)setTimeout(e,this._duration+100);return this}},{key:"axisConfig",value:function t(e){return arguments.length?(this._axisConfig=tc(this._axisConfig,e),this):this._axisConfig}},{key:"align",value:function t(e){return arguments.length?(this._align=e,this):this._align}},{key:"buckets",value:function t(e){return arguments.length?(this._buckets=e,this):this._buckets}},{key:"bucketAxis",value:function t(e){return arguments.length?(this._bucketAxis=e,this):this._bucketAxis}},{key:"bucketFormat",value:function t(e){return arguments.length?(this._bucketFormat=e,this):this._bucketFormat}},{key:"bucketJoiner",value:function t(e){return arguments.length?(this._bucketJoiner=e,this):this._bucketJoiner}},{key:"centered",value:function t(e){return arguments.length?(this._centered=e,this):this._centered}},{key:"color",value:function t(e){return arguments.length?(this._color=e,this):this._color}},{key:"colorMax",value:function t(e){return arguments.length?(this._colorMax=e,this):this._colorMax}},{key:"colorMid",value:function t(e){return arguments.length?(this._colorMid=e,this):this._colorMid}},{key:"colorMin",value:function t(e){return arguments.length?(this._colorMin=e,this):this._colorMin}},{key:"data",value:function t(e){return arguments.length?(this._data=e,this):this._data}},{key:"domain",value:function t(e){return arguments.length?(this._domain=e,this):this._domain}},{key:"duration",value:function t(e){return arguments.length?(this._duration=e,this):this._duration}},{key:"height",value:function t(e){return arguments.length?(this._height=e,this):this._height}},{key:"labelConfig",value:function t(e){return arguments.length?(this._labelConfig=tc(this._labelConfig,e),this):this._labelConfig}},{key:"labelMin",value:function t(e){return arguments.length?(this._labelMin=e,this):this._labelMin}},{key:"labelMax",value:function t(e){return arguments.length?(this._labelMax=e,this):this._labelMax}},{key:"legendConfig",value:function t(e){return arguments.length?(this._legendConfig=tc(this._legendConfig,e),this):this._legendConfig}},{key:"midpoint",value:function t(e){return arguments.length?(this._midpoint=e,this):this._midpoint}},{key:"orient",value:function t(e){return arguments.length?(this._orient=e,this):this._orient}},{key:"outerBounds",value:function t(){return this._outerBounds}},{key:"padding",value:function t(e){return arguments.length?(this._padding=e,this):this._padding}},{key:"rectConfig",value:function t(e){return arguments.length?(this._rectConfig=tc(this._rectConfig,e),this):this._rectConfig}},{key:"scale",value:function t(e){return arguments.length?(this._scale=e,this):this._scale}},{key:"select",value:function t(e){return arguments.length?(this._select=Ks(e),this):this._select}},{key:"size",value:function t(e){return arguments.length?(this._size=e,this):this._size}},{key:"value",value:function t(e){return arguments.length?(this._value=typeof e==="function"?e:cb(e),this):this._value}},{key:"width",value:function t(e){return arguments.length?(this._width=e,this):this._width}}]);return n}(ob);function fL(t){"@babel/helpers - typeof";return fL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fL(t)}function hL(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function dL(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function gL(t,e,n){if(e)dL(t.prototype,e);if(n)dL(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function vL(){if(typeof Reflect!=="undefined"&&Reflect.get){vL=Reflect.get.bind()}else{vL=function t(e,n,r){var i=pL(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(arguments.length<3?e:r)}return a.value}}return vL.apply(this,arguments)}function pL(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=kL(t);if(t===null)break}return t}function yL(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});Object.defineProperty(t,"prototype",{writable:false});if(e)mL(t,e)}function mL(t,e){mL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function t(e,n){e.__proto__=n;return e};return mL(t,e)}function _L(i){var a=xL();return function t(){var e=kL(i),n;if(a){var r=kL(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return bL(this,n)}}function bL(t,e){if(e&&(fL(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return wL(t)}function wL(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function xL(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function kL(t){kL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function t(e){return e.__proto__||Object.getPrototypeOf(e)};return kL(t)}var SL=function(t){yL(m,t);var e=_L(m);function m(){var n;hL(this,m);n=e.call(this);n._barConfig=Object.assign({},n._barConfig,{"stroke-width":function t(){return n._buttonBehaviorCurrent==="buttons"?0:1}});n._brushing=true;n._brushFilter=function(t){return!t.button&&t.detail<2};n._brushMin=cb(1);n._buttonAlign="middle";n._buttonBehavior="auto";n._buttonPadding=10;n._buttonHeight=30;n._domain=[2001,2010];n._gridSize=0;n._handleConfig={fill:Q2.dark};n._handleSize=6;n._height=100;n._labelOffset=false;n._on={};n.orient("bottom");n._scale="time";n._selectionConfig={fill:"#999","stroke-width":0};n._shape="Rect";n._shapeConfig=Object.assign({},n._shapeConfig,{labelBounds:function t(e){return n._buttonBehaviorCurrent==="buttons"?{x:e.labelBounds.x,y:-5,width:e.labelBounds.width,height:n._buttonHeight}:e.labelBounds},fill:function t(){return n._buttonBehaviorCurrent==="buttons"?Q2.light:Q2.dark},height:function t(e){return n._buttonBehaviorCurrent==="buttons"?n._buttonHeight:e.tick?10:0},width:function t(e){return n._buttonBehaviorCurrent==="buttons"?n._ticksWidth/n._availableTicks.length:e.tick?n._domain.map(function(t){return Z4(t).getTime()}).includes(e.id)?2:1:0},y:function t(e){return n._buttonBehaviorCurrent==="buttons"?n._align==="middle"?n._height/2:n._align==="start"?n._margin.top+n._buttonHeight/2:n._height-n._buttonHeight/2-n._margin.bottom:e.y}});n._snapping=true;return n}gL(m,[{key:"_brushBrush",value:function t(e){if(e.sourceEvent&&e.sourceEvent.offsetX&&e.selection!==null&&(!this._brushing||this._snapping)){var n=this._updateDomain(e);this._brushGroup.call(this._brush.move,this._updateBrushLimit(n))}this._brushStyle();if(this._on.brush)this._on.brush(this._selection)}},{key:"_brushEnd",value:function t(e){if(!e.sourceEvent)return;var n=this._updateDomain(e);this._brushStyle();if(this._brushing||!this._snapping)this._brushGroup.transition(this._transition).call(this._brush.move,this._updateBrushLimit(n));if(this._on.end)this._on.end(this._selection)}},{key:"_brushStart",value:function t(e){if(e.sourceEvent!==null&&(!this._brushing||this._snapping)){var n=this._updateDomain(e);this._brushGroup.call(this._brush.move,this._updateBrushLimit(n))}this._brushStyle();if(this._on.start)this._on.start(e)}},{key:"_brushStyle",value:function t(){var e=this._position.height;var n=this._shape==="Circle"?typeof this._shapeConfig.r==="function"?this._shapeConfig.r({tick:true})*2:this._shapeConfig.r:this._shape==="Rect"?typeof this._shapeConfig[e]==="function"?this._shapeConfig[e]({tick:true}):this._shapeConfig[e]:this._tickSize;var r=this._brushGroup.selectAll(".overlay").attr("cursor",this._brushing?"crosshair":"pointer");var i=this._brushGroup.selectAll(".selection").call(ec,this._selectionConfig).attr("height",n);var a=this._brushGroup.selectAll(".handle").call(ec,this._handleConfig).attr("height",this._buttonBehaviorCurrent==="buttons"?this._buttonHeight:n+this._handleSize);if(this._buttonBehaviorCurrent==="buttons"){var o=this._align==="middle"?this._height/2-this._buttonHeight/2:this._align==="start"?this._margin.top:this._height-this._buttonHeight-this._margin.bottom;a.attr("y",o);r.attr("x",this._marginLeft).attr("width",this._ticksWidth);i.attr("y",o)}}},{key:"_updateDomain",value:function t(e){var n=Xs(e,this._select.node())[0];var r=e.selection&&this._brushing?e.selection:[n,n];if(this._buttonBehaviorCurrent==="ticks")r=r.map(this._d3Scale.invert);r=r.map(Number);if(e.type==="brush"&&this._brushing&&this._buttonBehaviorCurrent==="buttons"){var i=e.selection.map(function(t){return Math.abs(t-e.sourceEvent.offsetX)});r=i[1]<=i[0]?[e.selection[0],e.sourceEvent.offsetX].sort(function(t,e){return t-e}):[e.sourceEvent.offsetX,e.selection[1]].sort(function(t,e){return t-e})}var a=this._buttonBehaviorCurrent==="ticks"?this._availableTicks.map(Number):this._d3Scale.range();if(this._buttonBehaviorCurrent==="ticks"){var o=Z4(sb(r[0],a));var s=a.indexOf(+o);var u=Z4(sb(r[1],a));var l=a.indexOf(+u);var c=Math.abs(l-s);var f=this._brushMin()-1;if(c<f){l=Ce([a.length-1,l+(f-c)]);u=a[l];c=Math.abs(l-s);if(c<f){s=Se([0,s-(f-c)]);o=a[s]}}r[0]=o;r[1]=u}else{r[0]=sb(r[0],a);r[1]=sb(r[1],a)}var h=+r[0]===+r[1];if(e.type==="brush"||e.type==="end"){this._selection=this._buttonBehaviorCurrent==="ticks"?h?r[0]:r:h?Z4(this._availableTicks[a.indexOf(r[0])]):[Z4(this._availableTicks[a.indexOf(r[0])]),Z4(this._availableTicks[a.indexOf(r[1])])]}return r}},{key:"_updateBrushLimit",value:function t(e){var n=this._buttonBehaviorCurrent==="ticks"?e.map(Z4).map(this._d3Scale):e;if(n[0]===n[1]){n[0]-=.1;n[1]+=.1}if(this._buttonBehaviorCurrent==="buttons"){var r=.5*(this._ticksWidth/this._availableTicks.length-this._handleSize);n[0]-=r;n[1]+=r}return n}},{key:"render",value:function t(e){var s=this;var n=this._position,r=n.height,i=n.y;this._buttonBehaviorCurrent=this._buttonBehavior==="auto"?this._ticksWidth<this._width?"buttons":"ticks":this._buttonBehavior;if(this._buttonBehaviorCurrent==="buttons"){var u=this._ticks?this._ticks.map(Z4):this._domain.map(Z4);var l=D2().domain(u).range([0,this._width]);u=this._ticks?u:l.ticks();var c=0;u.forEach(function(t,e){var n=s._shapeConfig.labelConfig.fontFamily(t,e),r=s._shapeConfig.labelConfig.fontSize(t,e);var i=i9().fontFamily(n).fontSize(r).lineHeight(s._shapeConfig.lineHeight?s._shapeConfig.lineHeight(t,e):undefined);var a=i(l.tickFormat(u.length-1,s._tickSpecifier)(t));var o=a.lines.length?Math.ceil(Se(a.lines.map(function(t){return E6(t,{"font-family":n,"font-size":r})})))+r/4:0;if(o%2)o++;if(c<o)c=o+2*s._buttonPadding});this._ticksWidth=c*u.length;this._scale="ordinal";this._labelRotation=0;if(!this._brushing)this._handleSize=0;if(!this._tickFormat)this._tickFormat=l.tickFormat(u.length-1,this._tickSpecifier);var a=D2().domain(this._domain.map(Z4)).ticks().map(this._tickFormat).map(Number);this._domain=this._ticks?this._ticks.map(Z4):Array.from(Array(a[a.length-1]-a[0]+1),function(t,e){return a[0]+e}).map(Z4);this._ticks=this._domain;var o=.5*this._ticksWidth/this._ticks.length;this._marginLeft=this._buttonAlign==="middle"?(this._width-this._ticksWidth)/2:this._buttonAlign==="end"?this._width-this._ticksWidth:0;var f=this._buttonAlign==="middle"?(this._width+this._ticksWidth)/2:this._buttonAlign==="start"?this._ticksWidth:undefined;this._range=[this._buttonAlign==="start"?undefined:this._marginLeft+o,this._buttonAlign==="end"?undefined:f-o]}if(this._ticks)this._domain=this._buttonBehaviorCurrent==="ticks"?[this._ticks[0],this._ticks[this._ticks.length-1]]:this._ticks.map(Z4);this._labels=this._ticks;vL(kL(m.prototype),"render",this).call(this,e);var h=this._outerBounds[i],d=this._d3Scale.range();var g=this._brush=_I().extent([[d[0],h],[d[d.length-1],h+this._outerBounds[r]]]).filter(this._brushFilter).handleSize(this._handleSize).on("start",this._brushStart.bind(this)).on("brush",this._brushBrush.bind(this)).on("end",this._brushEnd.bind(this));var v=this._buttonBehaviorCurrent==="ticks"?this._availableTicks:d;var p=[this._brushMin()>v.length?v[0]:v[v.length-this._brushMin()],v[v.length-1]];var y=this._selection===void 0?p:this._selection instanceof Array?this._buttonBehaviorCurrent==="buttons"?this._selection.map(function(t){return d[s._ticks.map(Number).indexOf(+t)]}).slice():this._selection.slice():this._buttonBehaviorCurrent==="buttons"?[d[this._ticks.map(Number).indexOf(+this._selection)],d[this._ticks.map(Number).indexOf(+this._selection)]]:[this._selection,this._selection];this._updateBrushLimit(y);this._brushGroup=fb("g.brushGroup",{parent:this._group});this._brushGroup.call(g).transition(this._transition).call(g.move,this._buttonBehaviorCurrent==="ticks"?this._updateBrushLimit(y):y);this._outerBounds.y-=this._handleSize/2;this._outerBounds.height+=this._handleSize/2;return this}},{key:"buttonPadding",value:function t(e){return arguments.length?(this._buttonPadding=e,this):this._buttonPadding}},{key:"brushing",value:function t(e){return arguments.length?(this._brushing=e,this):this._brushing}},{key:"brushFilter",value:function t(e){return arguments.length?(this._brushFilter=e,this):this._brushFilter}},{key:"brushMin",value:function t(e){return arguments.length?(this._brushMin=typeof e==="function"?e:cb(e),this):this._brushMin}},{key:"buttonAlign",value:function t(e){return arguments.length?(this._buttonAlign=e,this):this._buttonAlign}},{key:"buttonBehavior",value:function t(e){return arguments.length?(this._buttonBehavior=e,this):this._buttonBehavior}},{key:"buttonHeight",value:function t(e){return arguments.length?(this._buttonHeight=e,this):this._buttonHeight}},{key:"handleConfig",value:function t(e){return arguments.length?(this._handleConfig=Object.assign(this._handleConfig,e),this):this._handleConfig}},{key:"handleSize",value:function t(e){return arguments.length?(this._handleSize=e,this):this._handleSize}},{key:"on",value:function t(e,n){return arguments.length===2?(this._on[e]=n,this):arguments.length?typeof e==="string"?this._on[e]:(this._on=Object.assign({},this._on,e),this):this._on}},{key:"selectionConfig",value:function t(e){return arguments.length?(this._selectionConfig=Object.assign(this._selectionConfig,e),this):this._selectionConfig}},{key:"selection",value:function t(e){return arguments.length?(this._selection=e,this):this._selection}},{key:"snapping",value:function t(e){return arguments.length?(this._snapping=e,this):this._snapping}}]);return m}(mC);function CL(t){if(t==null){return window}if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e?e.defaultView||window:window}return t}function EL(t){var e=CL(t).Element;return t instanceof e||t instanceof Element}function AL(t){var e=CL(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function ML(t){if(typeof ShadowRoot==="undefined"){return false}var e=CL(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}var RL=Math.max;var TL=Math.min;var OL=Math.round;function PL(t,e){if(e===void 0){e=false}var n=t.getBoundingClientRect();var r=1;var i=1;if(AL(t)&&e){var a=t.offsetHeight;var o=t.offsetWidth;if(o>0){r=OL(n.width)/o||1}if(a>0){i=OL(n.height)/a||1}}return{width:n.width/r,height:n.height/i,top:n.top/i,right:n.right/r,bottom:n.bottom/i,left:n.left/r,x:n.left/r,y:n.top/i}}function BL(t){var e=CL(t);var n=e.pageXOffset;var r=e.pageYOffset;return{scrollLeft:n,scrollTop:r}}function DL(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function NL(t){if(t===CL(t)||!AL(t)){return BL(t)}else{return DL(t)}}function zL(t){return t?(t.nodeName||"").toLowerCase():null}function FL(t){return((EL(t)?t.ownerDocument:t.document)||window.document).documentElement}function jL(t){return PL(FL(t)).left+BL(t).scrollLeft}function IL(t){return CL(t).getComputedStyle(t)}function LL(t){var e=IL(t),n=e.overflow,r=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function HL(t){var e=t.getBoundingClientRect();var n=OL(e.width)/t.offsetWidth||1;var r=OL(e.height)/t.offsetHeight||1;return n!==1||r!==1}function UL(t,e,n){if(n===void 0){n=false}var r=AL(e);var i=AL(e)&&HL(e);var a=FL(e);var o=PL(t,i);var s={scrollLeft:0,scrollTop:0};var u={x:0,y:0};if(r||!r&&!n){if(zL(e)!=="body"||LL(a)){s=NL(e)}if(AL(e)){u=PL(e,true);u.x+=e.clientLeft;u.y+=e.clientTop}else if(a){u.x=jL(a)}}return{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function GL(t){var e=PL(t);var n=t.offsetWidth;var r=t.offsetHeight;if(Math.abs(e.width-n)<=1){n=e.width}if(Math.abs(e.height-r)<=1){r=e.height}return{x:t.offsetLeft,y:t.offsetTop,width:n,height:r}}function VL(t){if(zL(t)==="html"){return t}return t.assignedSlot||t.parentNode||(ML(t)?t.host:null)||FL(t)}function WL(t){if(["html","body","#document"].indexOf(zL(t))>=0){return t.ownerDocument.body}if(AL(t)&&LL(t)){return t}return WL(VL(t))}function qL(t,e){var n;if(e===void 0){e=[]}var r=WL(t);var i=r===((n=t.ownerDocument)==null?void 0:n.body);var a=CL(r);var o=i?[a].concat(a.visualViewport||[],LL(r)?r:[]):r;var s=e.concat(o);return i?s:s.concat(qL(VL(o)))}function KL(t){return["table","td","th"].indexOf(zL(t))>=0}function YL(t){if(!AL(t)||IL(t).position==="fixed"){return null}return t.offsetParent}function XL(t){var e=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1;var n=navigator.userAgent.indexOf("Trident")!==-1;if(n&&AL(t)){var r=IL(t);if(r.position==="fixed"){return null}}var i=VL(t);while(AL(i)&&["html","body"].indexOf(zL(i))<0){var a=IL(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none"){return i}else{i=i.parentNode}}return null}function ZL(t){var e=CL(t);var n=YL(t);while(n&&KL(n)&&IL(n).position==="static"){n=YL(n)}if(n&&(zL(n)==="html"||zL(n)==="body"&&IL(n).position==="static")){return e}return n||XL(t)||e}var $L="top";var JL="bottom";var QL="right";var tH="left";var eH="auto";var nH=[$L,JL,QL,tH];var rH="start";var iH="end";var aH="clippingParents";var oH="viewport";var sH="popper";var uH="reference";var lH=nH.reduce(function(t,e){return t.concat([e+"-"+rH,e+"-"+iH])},[]);var cH=[].concat(nH,[eH]).reduce(function(t,e){return t.concat([e,e+"-"+rH,e+"-"+iH])},[]);var fH="beforeRead";var hH="read";var dH="afterRead";var gH="beforeMain";var vH="main";var pH="afterMain";var yH="beforeWrite";var mH="write";var _H="afterWrite";var bH=[fH,hH,dH,gH,vH,pH,yH,mH,_H];function wH(t){var n=new Map;var r=new Set;var i=[];t.forEach(function(t){n.set(t.name,t)});function a(t){r.add(t.name);var e=[].concat(t.requires||[],t.requiresIfExists||[]);e.forEach(function(t){if(!r.has(t)){var e=n.get(t);if(e){a(e)}}});i.push(t)}t.forEach(function(t){if(!r.has(t.name)){a(t)}});return i}function xH(t){var n=wH(t);return bH.reduce(function(t,e){return t.concat(n.filter(function(t){return t.phase===e}))},[])}function kH(e){var n;return function(){if(!n){n=new Promise(function(t){Promise.resolve().then(function(){n=undefined;t(e())})})}return n}}function SH(t){return t.split("-")[0]}function CH(t){var e=t.reduce(function(t,e){var n=t[e.name];t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e;return t},{});return Object.keys(e).map(function(t){return e[t]})}function EH(t){var e=CL(t);var n=FL(t);var r=e.visualViewport;var i=n.clientWidth;var a=n.clientHeight;var o=0;var s=0;if(r){i=r.width;a=r.height;if(!/^((?!chrome|android).)*safari/i.test(navigator.userAgent)){o=r.offsetLeft;s=r.offsetTop}}return{width:i,height:a,x:o+jL(t),y:s}}function AH(t){var e;var n=FL(t);var r=BL(t);var i=(e=t.ownerDocument)==null?void 0:e.body;var a=RL(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0);var o=RL(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);var s=-r.scrollLeft+jL(t);var u=-r.scrollTop;if(IL(i||n).direction==="rtl"){s+=RL(n.clientWidth,i?i.clientWidth:0)-a}return{width:a,height:o,x:s,y:u}}function MH(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e)){return true}else if(n&&ML(n)){var r=e;do{if(r&&t.isSameNode(r)){return true}r=r.parentNode||r.host}while(r)}return false}function RH(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function TH(t){var e=PL(t);e.top=e.top+t.clientTop;e.left=e.left+t.clientLeft;e.bottom=e.top+t.clientHeight;e.right=e.left+t.clientWidth;e.width=t.clientWidth;e.height=t.clientHeight;e.x=e.left;e.y=e.top;return e}function OH(t,e){return e===oH?RH(EH(t)):EL(e)?TH(e):RH(AH(FL(t)))}function PH(t){var e=qL(VL(t));var n=["absolute","fixed"].indexOf(IL(t).position)>=0;var r=n&&AL(t)?ZL(t):t;if(!EL(r)){return[]}return e.filter(function(t){return EL(t)&&MH(t,r)&&zL(t)!=="body"&&(n?IL(t).position!=="static":true)})}function BH(r,t,e){var n=t==="clippingParents"?PH(r):[].concat(t);var i=[].concat(n,[e]);var a=i[0];var o=i.reduce(function(t,e){var n=OH(r,e);t.top=RL(n.top,t.top);t.right=TL(n.right,t.right);t.bottom=TL(n.bottom,t.bottom);t.left=RL(n.left,t.left);return t},OH(r,a));o.width=o.right-o.left;o.height=o.bottom-o.top;o.x=o.left;o.y=o.top;return o}function DH(t){return t.split("-")[1]}function NH(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function zH(t){var e=t.reference,n=t.element,r=t.placement;var i=r?SH(r):null;var a=r?DH(r):null;var o=e.x+e.width/2-n.width/2;var s=e.y+e.height/2-n.height/2;var u;switch(i){case $L:u={x:o,y:e.y-n.height};break;case JL:u={x:o,y:e.y+e.height};break;case QL:u={x:e.x+e.width,y:s};break;case tH:u={x:e.x-n.width,y:s};break;default:u={x:e.x,y:e.y}}var l=i?NH(i):null;if(l!=null){var c=l==="y"?"height":"width";switch(a){case rH:u[l]=u[l]-(e[c]/2-n[c]/2);break;case iH:u[l]=u[l]+(e[c]/2-n[c]/2);break}}return u}function FH(){return{top:0,right:0,bottom:0,left:0}}function jH(t){return Object.assign({},FH(),t)}function IH(n,t){return t.reduce(function(t,e){t[e]=n;return t},{})}function LH(t,e){if(e===void 0){e={}}var n=e,r=n.placement,i=r===void 0?t.placement:r,a=n.boundary,o=a===void 0?aH:a,s=n.rootBoundary,u=s===void 0?oH:s,l=n.elementContext,c=l===void 0?sH:l,f=n.altBoundary,h=f===void 0?false:f,d=n.padding,g=d===void 0?0:d;var v=jH(typeof g!=="number"?g:IH(g,nH));var p=c===sH?uH:sH;var y=t.rects.popper;var m=t.elements[h?p:c];var _=BH(EL(m)?m:m.contextElement||FL(t.elements.popper),o,u);var b=PL(t.elements.reference);var w=zH({reference:b,element:y,strategy:"absolute",placement:i});var x=RH(Object.assign({},y,w));var k=c===sH?x:b;var S={top:_.top-k.top+v.top,bottom:k.bottom-_.bottom+v.bottom,left:_.left-k.left+v.left,right:k.right-_.right+v.right};var C=t.modifiersData.offset;if(c===sH&&C){var E=C[i];Object.keys(S).forEach(function(t){var e=[QL,JL].indexOf(t)>=0?1:-1;var n=[$L,JL].indexOf(t)>=0?"y":"x";S[t]+=E[n]*e})}return S}var HH={placement:"bottom",modifiers:[],strategy:"absolute"};function UH(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++){e[n]=arguments[n]}return!e.some(function(t){return!(t&&typeof t.getBoundingClientRect==="function")})}function GH(t){if(t===void 0){t={}}var e=t,n=e.defaultModifiers,l=n===void 0?[]:n,r=e.defaultOptions,d=r===void 0?HH:r;return function t(i,a,e){if(e===void 0){e=d}var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},HH,d),modifiersData:{},elements:{reference:i,popper:a},attributes:{},styles:{}};var s=[];var f=false;var h={state:c,setOptions:function t(e){var n=typeof e==="function"?e(c.options):e;u();c.options=Object.assign({},d,c.options,n);c.scrollParents={reference:EL(i)?qL(i):i.contextElement?qL(i.contextElement):[],popper:qL(a)};var r=xH(CH([].concat(l,c.options.modifiers)));c.orderedModifiers=r.filter(function(t){return t.enabled});o();return h.update()},forceUpdate:function t(){if(f){return}var e=c.elements,n=e.reference,r=e.popper;if(!UH(n,r)){return}c.rects={reference:UL(n,ZL(r),c.options.strategy==="fixed"),popper:GL(r)};c.reset=false;c.placement=c.options.placement;c.orderedModifiers.forEach(function(t){return c.modifiersData[t.name]=Object.assign({},t.data)});for(var i=0;i<c.orderedModifiers.length;i++){if(c.reset===true){c.reset=false;i=-1;continue}var a=c.orderedModifiers[i],o=a.fn,s=a.options,u=s===void 0?{}:s,l=a.name;if(typeof o==="function"){c=o({state:c,options:u,name:l,instance:h})||c}}},update:kH(function(){return new Promise(function(t){h.forceUpdate();t(c)})}),destroy:function t(){u();f=true}};if(!UH(i,a)){return h}h.setOptions(e).then(function(t){if(!f&&e.onFirstUpdate){e.onFirstUpdate(t)}});function o(){c.orderedModifiers.forEach(function(t){var e=t.name,n=t.options,r=n===void 0?{}:n,i=t.effect;if(typeof i==="function"){var a=i({state:c,name:e,instance:h,options:r});var o=function t(){};s.push(a||o)}})}function u(){s.forEach(function(t){return t()});s=[]}return h}}var VH={passive:true};function WH(t){var e=t.state,n=t.instance,r=t.options;var i=r.scroll,a=i===void 0?true:i,o=r.resize,s=o===void 0?true:o;var u=CL(e.elements.popper);var l=[].concat(e.scrollParents.reference,e.scrollParents.popper);if(a){l.forEach(function(t){t.addEventListener("scroll",n.update,VH)})}if(s){u.addEventListener("resize",n.update,VH)}return function(){if(a){l.forEach(function(t){t.removeEventListener("scroll",n.update,VH)})}if(s){u.removeEventListener("resize",n.update,VH)}}}var qH={name:"eventListeners",enabled:true,phase:"write",fn:function t(){},effect:WH,data:{}};function KH(t){var e=t.state,n=t.name;e.modifiersData[n]=zH({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var YH={name:"popperOffsets",enabled:true,phase:"read",fn:KH,data:{}};var XH={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ZH(t){var e=t.x,n=t.y;var r=window;var i=r.devicePixelRatio||1;return{x:OL(e*i)/i||0,y:OL(n*i)/i||0}}function $H(t){var e;var n=t.popper,r=t.popperRect,i=t.placement,a=t.variation,o=t.offsets,s=t.position,u=t.gpuAcceleration,l=t.adaptive,c=t.roundOffsets,f=t.isFixed;var h=c===true?ZH(o):typeof c==="function"?c(o):o,d=h.x,g=d===void 0?0:d,v=h.y,p=v===void 0?0:v;var y=o.hasOwnProperty("x");var m=o.hasOwnProperty("y");var _=tH;var b=$L;var w=window;if(l){var x=ZL(n);var k="clientHeight";var S="clientWidth";if(x===CL(n)){x=FL(n);if(IL(x).position!=="static"&&s==="absolute"){k="scrollHeight";S="scrollWidth"}}x=x;if(i===$L||(i===tH||i===QL)&&a===iH){b=JL;var C=f&&w.visualViewport?w.visualViewport.height:x[k];p-=C-r.height;p*=u?1:-1}if(i===tH||(i===$L||i===JL)&&a===iH){_=QL;var E=f&&w.visualViewport?w.visualViewport.width:x[S];g-=E-r.width;g*=u?1:-1}}var A=Object.assign({position:s},l&&XH);if(u){var M;return Object.assign({},A,(M={},M[b]=m?"0":"",M[_]=y?"0":"",M.transform=(w.devicePixelRatio||1)<=1?"translate("+g+"px, "+p+"px)":"translate3d("+g+"px, "+p+"px, 0)",M))}return Object.assign({},A,(e={},e[b]=m?p+"px":"",e[_]=y?g+"px":"",e.transform="",e))}function JH(t){var e=t.state,n=t.options;var r=n.gpuAcceleration,i=r===void 0?true:r,a=n.adaptive,o=a===void 0?true:a,s=n.roundOffsets,u=s===void 0?true:s;var l={placement:SH(e.placement),variation:DH(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};if(e.modifiersData.popperOffsets!=null){e.styles.popper=Object.assign({},e.styles.popper,$H(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:u})))}if(e.modifiersData.arrow!=null){e.styles.arrow=Object.assign({},e.styles.arrow,$H(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:false,roundOffsets:u})))}e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var QH={name:"computeStyles",enabled:true,phase:"beforeWrite",fn:JH,data:{}};function tU(t){var i=t.state;Object.keys(i.elements).forEach(function(t){var e=i.styles[t]||{};var n=i.attributes[t]||{};var r=i.elements[t];if(!AL(r)||!zL(r)){return}Object.assign(r.style,e);Object.keys(n).forEach(function(t){var e=n[t];if(e===false){r.removeAttribute(t)}else{r.setAttribute(t,e===true?"":e)}})})}function eU(t){var a=t.state;var o={popper:{position:a.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(a.elements.popper.style,o.popper);a.styles=o;if(a.elements.arrow){Object.assign(a.elements.arrow.style,o.arrow)}return function(){Object.keys(a.elements).forEach(function(t){var e=a.elements[t];var n=a.attributes[t]||{};var r=Object.keys(a.styles.hasOwnProperty(t)?a.styles[t]:o[t]);var i=r.reduce(function(t,e){t[e]="";return t},{});if(!AL(e)||!zL(e)){return}Object.assign(e.style,i);Object.keys(n).forEach(function(t){e.removeAttribute(t)})})}}var nU={name:"applyStyles",enabled:true,phase:"write",fn:tU,effect:eU,requires:["computeStyles"]};function rU(t,e,n){var r=SH(t);var i=[tH,$L].indexOf(r)>=0?-1:1;var a=typeof n==="function"?n(Object.assign({},e,{placement:t})):n,o=a[0],s=a[1];o=o||0;s=(s||0)*i;return[tH,QL].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function iU(t){var n=t.state,e=t.options,r=t.name;var i=e.offset,a=i===void 0?[0,0]:i;var o=cH.reduce(function(t,e){t[e]=rU(e,n.rects,a);return t},{});var s=o[n.placement],u=s.x,l=s.y;if(n.modifiersData.popperOffsets!=null){n.modifiersData.popperOffsets.x+=u;n.modifiersData.popperOffsets.y+=l}n.modifiersData[r]=o}var aU={name:"offset",enabled:true,phase:"main",requires:["popperOffsets"],fn:iU};var oU={left:"right",right:"left",bottom:"top",top:"bottom"};function sU(t){return t.replace(/left|right|bottom|top/g,function(t){return oU[t]})}var uU={start:"end",end:"start"};function lU(t){return t.replace(/start|end/g,function(t){return uU[t]})}function cU(n,t){if(t===void 0){t={}}var e=t,r=e.placement,i=e.boundary,a=e.rootBoundary,o=e.padding,s=e.flipVariations,u=e.allowedAutoPlacements,l=u===void 0?cH:u;var c=DH(r);var f=c?s?lH:lH.filter(function(t){return DH(t)===c}):nH;var h=f.filter(function(t){return l.indexOf(t)>=0});if(h.length===0){h=f}var d=h.reduce(function(t,e){t[e]=LH(n,{placement:e,boundary:i,rootBoundary:a,padding:o})[SH(e)];return t},{});return Object.keys(d).sort(function(t,e){return d[t]-d[e]})}function fU(t){if(SH(t)===eH){return[]}var e=sU(t);return[lU(t),e,lU(e)]}function hU(t){var n=t.state,e=t.options,r=t.name;if(n.modifiersData[r]._skip){return}var i=e.mainAxis,a=i===void 0?true:i,o=e.altAxis,s=o===void 0?true:o,u=e.fallbackPlacements,l=e.padding,c=e.boundary,f=e.rootBoundary,h=e.altBoundary,d=e.flipVariations,g=d===void 0?true:d,v=e.allowedAutoPlacements;var p=n.options.placement;var y=SH(p);var m=y===p;var _=u||(m||!g?[sU(p)]:fU(p));var b=[p].concat(_).reduce(function(t,e){return t.concat(SH(e)===eH?cU(n,{placement:e,boundary:c,rootBoundary:f,padding:l,flipVariations:g,allowedAutoPlacements:v}):e)},[]);var w=n.rects.reference;var x=n.rects.popper;var k=new Map;var S=true;var C=b[0];for(var E=0;E<b.length;E++){var A=b[E];var M=SH(A);var R=DH(A)===rH;var T=[$L,JL].indexOf(M)>=0;var O=T?"width":"height";var P=LH(n,{placement:A,boundary:c,rootBoundary:f,altBoundary:h,padding:l});var B=T?R?QL:tH:R?JL:$L;if(w[O]>x[O]){B=sU(B)}var D=sU(B);var N=[];if(a){N.push(P[M]<=0)}if(s){N.push(P[B]<=0,P[D]<=0)}if(N.every(function(t){return t})){C=A;S=false;break}k.set(A,N)}if(S){var z=g?3:1;var F=function t(n){var e=b.find(function(t){var e=k.get(t);if(e){return e.slice(0,n).every(function(t){return t})}});if(e){C=e;return"break"}};for(var j=z;j>0;j--){var I=F(j);if(I==="break")break}}if(n.placement!==C){n.modifiersData[r]._skip=true;n.placement=C;n.reset=true}}var dU={name:"flip",enabled:true,phase:"main",fn:hU,requiresIfExists:["offset"],data:{_skip:false}};function gU(t){return t==="x"?"y":"x"}function vU(t,e,n){return RL(t,TL(e,n))}function pU(t,e,n){var r=vU(t,e,n);return r>n?n:r}function yU(t){var e=t.state,n=t.options,r=t.name;var i=n.mainAxis,a=i===void 0?true:i,o=n.altAxis,s=o===void 0?false:o,u=n.boundary,l=n.rootBoundary,c=n.altBoundary,f=n.padding,h=n.tether,d=h===void 0?true:h,g=n.tetherOffset,v=g===void 0?0:g;var p=LH(e,{boundary:u,rootBoundary:l,padding:f,altBoundary:c});var y=SH(e.placement);var m=DH(e.placement);var _=!m;var b=NH(y);var w=gU(b);var x=e.modifiersData.popperOffsets;var k=e.rects.reference;var S=e.rects.popper;var C=typeof v==="function"?v(Object.assign({},e.rects,{placement:e.placement})):v;var E=typeof C==="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C);var A=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null;var M={x:0,y:0};if(!x){return}if(a){var R;var T=b==="y"?$L:tH;var O=b==="y"?JL:QL;var P=b==="y"?"height":"width";var B=x[b];var D=B+p[T];var N=B-p[O];var z=d?-S[P]/2:0;var F=m===rH?k[P]:S[P];var j=m===rH?-S[P]:-k[P];var I=e.elements.arrow;var L=d&&I?GL(I):{width:0,height:0};var H=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:FH();var U=H[T];var G=H[O];var V=vU(0,k[P],L[P]);var W=_?k[P]/2-z-V-U-E.mainAxis:F-V-U-E.mainAxis;var q=_?-k[P]/2+z+V+G+E.mainAxis:j+V+G+E.mainAxis;var K=e.elements.arrow&&ZL(e.elements.arrow);var Y=K?b==="y"?K.clientTop||0:K.clientLeft||0:0;var X=(R=A==null?void 0:A[b])!=null?R:0;var Z=B+W-X-Y;var $=B+q-X;var J=vU(d?TL(D,Z):D,B,d?RL(N,$):N);x[b]=J;M[b]=J-B}if(s){var Q;var tt=b==="x"?$L:tH;var et=b==="x"?JL:QL;var nt=x[w];var rt=w==="y"?"height":"width";var it=nt+p[tt];var at=nt-p[et];var ot=[$L,tH].indexOf(y)!==-1;var st=(Q=A==null?void 0:A[w])!=null?Q:0;var ut=ot?it:nt-k[rt]-S[rt]-st+E.altAxis;var lt=ot?nt+k[rt]+S[rt]-st-E.altAxis:at;var ct=d&&ot?pU(ut,nt,lt):vU(d?ut:it,nt,d?lt:at);x[w]=ct;M[w]=ct-nt}e.modifiersData[r]=M}var mU={name:"preventOverflow",enabled:true,phase:"main",fn:yU,requiresIfExists:["offset"]};var _U=function t(e,n){e=typeof e==="function"?e(Object.assign({},n.rects,{placement:n.placement})):e;return jH(typeof e!=="number"?e:IH(e,nH))};function bU(t){var e;var n=t.state,r=t.name,i=t.options;var a=n.elements.arrow;var o=n.modifiersData.popperOffsets;var s=SH(n.placement);var u=NH(s);var l=[tH,QL].indexOf(s)>=0;var c=l?"height":"width";if(!a||!o){return}var f=_U(i.padding,n);var h=GL(a);var d=u==="y"?$L:tH;var g=u==="y"?JL:QL;var v=n.rects.reference[c]+n.rects.reference[u]-o[u]-n.rects.popper[c];var p=o[u]-n.rects.reference[u];var y=ZL(a);var m=y?u==="y"?y.clientHeight||0:y.clientWidth||0:0;var _=v/2-p/2;var b=f[d];var w=m-h[c]-f[g];var x=m/2-h[c]/2+_;var k=vU(b,x,w);var S=u;n.modifiersData[r]=(e={},e[S]=k,e.centerOffset=k-x,e)}function wU(t){var e=t.state,n=t.options;var r=n.element,i=r===void 0?"[data-popper-arrow]":r;if(i==null){return}if(typeof i==="string"){i=e.elements.popper.querySelector(i);if(!i){return}}if(!MH(e.elements.popper,i)){return}e.elements.arrow=i}var xU={name:"arrow",enabled:true,phase:"main",fn:bU,effect:wU,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function kU(t,e,n){if(n===void 0){n={x:0,y:0}}return{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function SU(e){return[$L,QL,JL,tH].some(function(t){return e[t]>=0})}function CU(t){var e=t.state,n=t.name;var r=e.rects.reference;var i=e.rects.popper;var a=e.modifiersData.preventOverflow;var o=LH(e,{elementContext:"reference"});var s=LH(e,{altBoundary:true});var u=kU(o,r);var l=kU(s,i,a);var c=SU(u);var f=SU(l);e.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:l,isReferenceHidden:c,hasPopperEscaped:f};e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}var EU={name:"hide",enabled:true,phase:"main",requiresIfExists:["preventOverflow"],fn:CU};var AU=[qH,YH,QH,nU,aU,dU,mU,xU,EU];var MU=GH({defaultModifiers:AU});function RU(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){RU=function t(e){return typeof e}}else{RU=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return RU(t)}function TU(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function OU(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function PU(t,e,n){if(e)OU(t.prototype,e);if(n)OU(t,n);return t}function BU(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)DU(t,e)}function DU(t,e){DU=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return DU(t,e)}function NU(i){var a=jU();return function t(){var e=IU(i),n;if(a){var r=IU(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return zU(this,n)}}function zU(t,e){if(e&&(RU(e)==="object"||typeof e==="function")){return e}return FU(t)}function FU(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function jU(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function IU(t){IU=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return IU(t)}function LU(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[0,0];return function(){return{width:0,height:0,top:t[1],right:t[0],bottom:t[1],left:t[0]}}}var HU=function(t){BU(n,t);var e=NU(n);function n(){var t;TU(this,n);t=e.call(this);t._arrow=Zl("arrow","");t._arrowStyle={content:"",background:"inherit",border:"inherit","border-width":"0 1px 1px 0",height:"10px",position:"absolute",transform:"rotate(45deg)",width:"10px","z-index":"-1"};t._background=cb(Q2.light);t._body=Zl("body","");t._bodyStyle={color:Q2.dark,"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"12px","font-weight":"400","z-index":"1"};t._border=cb("1px solid rgba(0, 0, 0, 0.1)");t._borderRadius=cb("2px");t._className="d3plus-tooltip";t._data=[];t._footer=Zl("footer","");t._footerStyle={color:Q2.dark,"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"12px","font-weight":"400","margin-top":"5px","z-index":"1"};t._height=cb("auto");t._id=function(t,e){return"".concat(e)};t._offset=cb(5);t._padding=cb("10px");t._pointerEvents=cb("auto");t._popperClasses={};t._position=function(t){return[t.x,t.y]};t._prefix=Eb();t._tableStyle={"border-collapse":"collapse","border-spacing":"0",width:"100%"};t._tbody=[];t._tbodyStyle={color:Q2.dark,"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"12px","text-align":"center"};t._thead=[];t._theadStyle={color:Q2.dark,"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"12px","font-weight":"600","text-align":"center"};t._title=Zl("title","");t._titleStyle={color:Q2.dark,"font-family":"'Roboto', 'Helvetica Neue', 'HelveticaNeue', 'Helvetica', 'Arial', sans-serif","font-size":"16px","font-weight":"600","margin-bottom":"5px"};t._trStyle={"border-top":"1px solid rgba(0, 0, 0, 0.1)"};t._tdStyle={};t._width=cb("auto");return t}PU(n,[{key:"render",value:function t(e){var l=this;var c=this;var n=Ks("body").selectAll(".".concat(this._className)).data(this._data,this._id);var r=n.enter().append("div").attr("class",this._className);var a=n.merge(r);function i(i){r.append("div").attr("class","d3plus-tooltip-".concat(i)).attr("id",function(t,e){return"d3plus-tooltip-".concat(i,"-").concat(t?c._id(t,e):"")});var t=a.select(".d3plus-tooltip-".concat(i)).html(function(t,e){return c["_".concat(i)](t,e)}).style("display",function(t,e){var n=c["_".concat(i)](t,e);var r=n!==false&&n!==undefined&&n!==null;return r?"block":"none"});Ab(t,c["_".concat(i,"Style")])}function o(t){if(typeof t==="function"){var e=Ks(this.parentNode.parentNode).datum();return t(e,c._data.indexOf(e))}else return t}function s(t){t.style("background",c._background).style("".concat(c._prefix,"border-radius"),c._borderRadius).style("pointer-events",c._pointerEvents).style("padding",c._padding).style("width",c._width).style("height",c._height).style("border",function(t,e){var n=Ks(this).style("border");return n!=="0px none rgb(0, 0, 0)"?n:c._border(t,e)})}i("title");i("body");var u=r.append("table").attr("class","d3plus-tooltip-table");var f=a.select(".d3plus-tooltip-table");Ab(f,this._tableStyle);u.append("thead").attr("class","d3plus-tooltip-thead");var h=a.select(".d3plus-tooltip-thead");Ab(h,this._theadStyle);var d=h.selectAll("tr").data([0]);var g=d.enter().append("tr");d.exit().remove();var v=d.merge(g);Ab(v,this._trStyle);var p=v.selectAll("th").data(this._thead);p.enter().append("th").merge(p).html(o);p.exit().remove();u.append("tbody").attr("class","d3plus-tooltip-tbody");var y=a.select(".d3plus-tooltip-tbody");Ab(y,this._tbodyStyle);var m=y.selectAll("tr").data(this._tbody);var _=m.enter().append("tr");m.exit().remove();var b=m.merge(_);Ab(b,this._trStyle);var w=b.selectAll("td").data(function(t){return t});w.enter().append("td").merge(w).html(o);Ab(w,this._tdStyle);i("footer");i("arrow");r.attr("id",function(t,e){return"d3plus-tooltip-".concat(t?l._id(t,e):"")}).call(s).each(function(t,e){var n=c._id(t,e);var r=document.getElementById("d3plus-tooltip-".concat(n));var i=document.getElementById("d3plus-tooltip-arrow-".concat(n));var o=i.offsetHeight;var a=i.getBoundingClientRect().height/2;i.style.bottom="-".concat(o/2,"px");var s=c._position(t,e);var u=Array.isArray(s)?{getBoundingClientRect:LU(s)}:s;l._popperClasses[n]=MU(u,r,{placement:"top",placements:["top","bottom"],modifiers:[{name:"arrow",options:{element:i}},{name:"offset",options:{offset:[0,c._offset(t,e)+a]}},{name:"preventOverflow",options:{boundary:"scrollParent",padding:5}},{name:"flip",options:{behavior:"flip",boundary:"viewport",padding:5}},{name:"update",enabled:true,phase:"afterWrite",fn:function t(e){var n=e.state;var r=n.elements.arrow;var i=n.styles.arrow;var a=n.modifiersData.flip._skip;if(a){r.style.transform="".concat(i.transform,"rotate(225deg)");r.style.top="-".concat(o/2,"px")}else{r.style.transform="".concat(i.transform,"rotate(45deg)");r.style.bottom="-".concat(o/2,"px")}}}],removeOnDestroy:true})});a.each(function(t,e){var n=c._id(t,e);var r=c._position(t,e);var i=l._popperClasses[n];if(i){i.state.elements.reference.getBoundingClientRect=Array.isArray(r)?LU(r):r;i.update()}}).call(s);n.exit().each(function(t,e){var n=c._id(t,e);var r=l._popperClasses[n];if(r){r.destroy();delete l._popperClasses[n]}}).remove();if(e)setTimeout(e,100);return this}},{key:"arrow",value:function t(e){return arguments.length?(this._arrow=typeof e==="function"?e:cb(e),this):this._arrow}},{key:"arrowStyle",value:function t(e){return arguments.length?(this._arrowStyle=Object.assign(this._arrowStyle,e),this):this._arrowStyle}},{key:"background",value:function t(e){return arguments.length?(this._background=typeof e==="function"?e:cb(e),this):this._background}},{key:"body",value:function t(e){return arguments.length?(this._body=typeof e==="function"?e:cb(e),this):this._body}},{key:"bodyStyle",value:function t(e){return arguments.length?(this._bodyStyle=Object.assign(this._bodyStyle,e),this):this._bodyStyle}},{key:"border",value:function t(e){return arguments.length?(this._border=typeof e==="function"?e:cb(e),this):this._border}},{key:"borderRadius",value:function t(e){return arguments.length?(this._borderRadius=typeof e==="function"?e:cb(e),this):this._borderRadius}},{key:"className",value:function t(e){return arguments.length?(this._className=e,this):this._className}},{key:"data",value:function t(e){return arguments.length?(this._data=e,this):this._data}},{key:"footer",value:function t(e){return arguments.length?(this._footer=typeof e==="function"?e:cb(e),this):this._footer}},{key:"footerStyle",value:function t(e){return arguments.length?(this._footerStyle=Object.assign(this._footerStyle,e),this):this._footerStyle}},{key:"height",value:function t(e){return arguments.length?(this._height=typeof e==="function"?e:cb(e),this):this._height}},{key:"id",value:function t(e){return arguments.length?(this._id=typeof e==="function"?e:cb(e),this):this._id}},{key:"offset",value:function t(e){return arguments.length?(this._offset=typeof e==="function"?e:cb(e),this):this._offset}},{key:"padding",value:function t(e){return arguments.length?(this._padding=typeof e==="function"?e:cb(e),this):this._padding}},{key:"pointerEvents",value:function t(e){return arguments.length?(this._pointerEvents=typeof e==="function"?e:cb(e),this):this._pointerEvents}},{key:"position",value:function t(e){return arguments.length?(this._position=typeof e==="string"?cb(Ks(e).node()||[0,0]):typeof e==="function"?e:cb(e),this):this._position}},{key:"tableStyle",value:function t(e){return arguments.length?(this._tableStyle=Object.assign(this._tableStyle,e),this):this._tableStyle}},{key:"tbody",value:function t(e){return arguments.length?(this._tbody=e,this):this._tbody}},{key:"tbodyStyle",value:function t(e){return arguments.length?(this._tbodyStyle=Object.assign(this._tbodyStyle,e),this):this._tbodyStyle}},{key:"thead",value:function t(e){return arguments.length?(this._thead=e,this):this._thead}},{key:"theadStyle",value:function t(e){return arguments.length?(this._theadStyle=Object.assign(this._theadStyle,e),this):this._theadStyle}},{key:"title",value:function t(e){return arguments.length?(this._title=typeof e==="function"?e:cb(e),this):this._title}},{key:"titleStyle",value:function t(e){return arguments.length?(this._titleStyle=Object.assign(this._titleStyle,e),this):this._titleStyle}},{key:"trStyle",value:function t(e){return arguments.length?(this._trStyle=Object.assign(this._trStyle,e),this):this._trStyle}},{key:"tdStyle",value:function t(e){return arguments.length?(this._tdStyle=Object.assign(this._tdStyle,e),this):this._tdStyle}},{key:"width",value:function t(e){return arguments.length?(this._width=typeof e==="function"?e:cb(e),this):this._width}}]);return n}(ob);function UU(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function GU(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function VU(t,e,n){if(e)GU(t.prototype,e);if(n)GU(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}var WU=function(){function t(){UU(this,t);this._isVisible=false}VU(t,[{key:"exit",value:function t(e,n){e.transition().duration(n).style("opacity",0).transition().remove();this._isVisible=false}},{key:"hide",value:function t(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},n=e.duration,r=n===void 0?600:n,i=e.callback;this.mask.call(this.exit.bind(this),r);this.elem.call(this.exit.bind(this),r);if(i)setTimeout(i,r+100);this._isVisible=false;return this}},{key:"render",value:function t(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},n=e.callback,r=e.container,i=r===void 0?"body":r,a=e.duration,o=a===void 0?600:a,s=e.html,u=s===void 0?"Please Wait":s,l=e.mask,c=l===void 0?"rgba(0, 0, 0, 0.05)":l,f=e.style,h=f===void 0?{}:f;var d=Ks(i);this.mask=d.selectAll("div.d3plus-Mask").data(c?[c]:[]);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);Ab(this.mask,{"background-color":String,bottom:"0px",left:"0px",position:"absolute",right:"0px",top:"0px"});this.elem=d.selectAll("div.d3plus-Message").data([u]);this.elem=this.elem.enter().append("div").attr("class","d3plus-Message").style("opacity",1).merge(this.elem).html(String);Ab(this.elem,h);if(n)setTimeout(n,100);this._isVisible=true;return this}}]);return t}();function qU(){var t=this._history.length;var e=fb("g.d3plus-viz-back",{parent:this._select,duration:this._duration,update:{transform:"translate(".concat(this._margin.left,", ").concat(this._margin.top,")")}}).node();this._backClass.data(t?[{text:"← ".concat(this._translate("Back")),x:0,y:0}]:[]).select(e).config(this._backConfig).render();this._margin.top+=t?this._backClass.fontSize()()+this._backClass.padding()()*2:0}function KU(){var r=this;var t=this._data;var e=this._colorScalePosition.bind(this)(this.config());if(![false,"top","bottom","left","right"].includes(e))e="bottom";var n=["top","bottom"].includes(e);var i=this._colorScalePadding()?this._padding:{top:0,right:0,bottom:0,left:0};var a=this._width-(this._margin.left+this._margin.right+i.left+i.right);var o=n?Ce([this._colorScaleMaxSize,a]):this._width-(this._margin.left+this._margin.right);var s=this._height-(this._margin.bottom+this._margin.top+i.bottom+i.top);var u=!n?Ce([this._colorScaleMaxSize,s]):this._height-(this._margin.bottom+this._margin.top);var l={opacity:e?1:0,transform:"translate(".concat(n?this._margin.left+i.left+(a-o)/2:this._margin.left,", ").concat(n?this._margin.top:this._margin.top+i.top+(s-u)/2,")")};var c=this._colorScale&&t&&t.length>1;var f=fb("g.d3plus-viz-colorScale",{condition:c&&!this._colorScaleConfig.select,enter:l,parent:this._select,duration:this._duration,update:l}).node();if(c){var h=t.filter(function(t,e){var n=r._colorScale(t,e);return n!==undefined&&n!==null});this._colorScaleClass.align({bottom:"end",left:"start",right:"end",top:"start"}[e]||"bottom").duration(this._duration).data(h).height(u).locale(this._locale).orient(e).select(f).value(this._colorScale).width(o).config(this._colorScaleConfig).render();var d=this._colorScaleClass.outerBounds();if(e&&!this._colorScaleConfig.select&&d.height){if(n)this._margin[e]+=d.height+this._legendClass.padding()*2;else this._margin[e]+=d.width+this._legendClass.padding()*2}}else{this._colorScaleClass.config(this._colorScaleConfig)}}function YU(t,e){return this._drawLabel(t,e,this._legendDepth)}function XU(){var o=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var r=[];var i=function t(e,n){var r=o._shape(e,n);var i=r==="Line"?"stroke":"fill";var a=o._shapeConfig[r]&&o._shapeConfig[r][i]?o._shapeConfig[r][i]:o._shapeConfig[i];return typeof a==="function"?a.bind(o)(e,n):a};var a=function t(e,n){var r=o._shape(e,n);var i=o._shapeConfig[r]&&o._shapeConfig[r].opacity?o._shapeConfig[r].opacity:o._shapeConfig.opacity;return typeof i==="function"?i.bind(o)(e,n):i};var e=function t(e,n){return"".concat(i(e,n),"_").concat(a(e,n))};var n=this._colorScale?t.filter(function(t,e){return o._colorScale(t,e)===undefined}):t;w(n,function(t){return r.push(Sb(t,o._aggs))},e);r.sort(this._legendSort);var s=r.map(function(t,e){return o._ids(t,e).slice(0,o._drawDepth+1)});this._legendDepth=0;var u=function t(e){var n=s.map(function(t){return t[e]});if(!n.some(function(t){return t instanceof Array})&&Array.from(new Set(n)).length===r.length){o._legendDepth=e;return"break"}};for(var l=0;l<=this._drawDepth;l++){var c=u(l);if(c==="break")break}var f=function t(e,n){var r=o._id(e,n);if(r instanceof Array)r=r[0];return o._hidden.includes(r)||o._solo.length&&!o._solo.includes(r)};var h=this._legendClass.outerBounds();var d=this.config();var g=this._legendPosition.bind(this)(d);if(![false,"top","bottom","left","right"].includes(g))g="bottom";var v=["top","bottom"].includes(g);var p=this._legendPadding()?this._padding:{top:0,right:0,bottom:0,left:0};var y={transform:"translate(".concat(v?this._margin.left+p.left:this._margin.left,", ").concat(v?this._margin.top:this._margin.top+p.top,")")};var m=this._legend.bind(this)(d,r);var _=fb("g.d3plus-viz-legend",{condition:m&&!this._legendConfig.select,enter:y,parent:this._select,duration:this._duration,update:y}).node();this._legendClass.id(e).align(v?"center":g).direction(v?"row":"column").duration(this._duration).data(m?r:[]).height(v?this._height-(this._margin.bottom+this._margin.top):this._height-(this._margin.bottom+this._margin.top+p.bottom+p.top)).locale(this._locale).parent(this).select(_).verticalAlign(!v?"middle":g).width(v?this._width-(this._margin.left+this._margin.right+p.left+p.right):this._width-(this._margin.left+this._margin.right)).shapeConfig(lb.bind(this)(this._shapeConfig,"legend")).shapeConfig({fill:function t(e,n){return f(e,n)?o._hiddenColor(e,n):i(e,n)},labelConfig:{fontOpacity:function t(e,n){return f(e,n)?o._hiddenOpacity(e,n):1}},opacity:a}).config(this._legendConfig).render();if(!this._legendConfig.select&&h.height){if(v)this._margin[g]+=h.height+this._legendClass.padding()*2;else this._margin[g]+=h.width+this._legendClass.padding()*2}}function ZU(n){var r=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(t){var e=Z4(r._time(t)).getTime();return e>=n[0]&&e<=n[1]}).render()}}function $U(){var e=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var n=this._time&&this._timeline;var r=n?kb(this._data.map(this._time)).map(Z4):[];n=n&&r.length>1;var i=this._timelinePadding()?this._padding:{top:0,right:0,bottom:0,left:0};var a={transform:"translate(".concat(this._margin.left+i.left,", 0)")};var o=fb("g.d3plus-viz-timeline",{condition:n,enter:a,parent:this._select,duration:this._duration,update:a}).node();if(n){var s=this._timelineClass.domain(ke(r)).duration(this._duration).height(this._height-this._margin.bottom).locale(this._locale).select(o).ticks(r.sort(function(t,e){return+t-+e})).width(this._width-(this._margin.left+this._margin.right+i.left+i.right));var u=ke(t.map(this._time).map(Z4));if(!this._timelineSelection){this._timelineSelection=u}else{if(this._timelineSelection[0]<u[0])this._timelineSelection[0]=u[0];if(this._timelineSelection[1]>u[1])this._timelineSelection[1]=u[1]}s.selection(this._timelineSelection);var l=this._timelineConfig;s.config(l).on("end",function(t){ZU.bind(e)(t);if(l.on&&l.on.end)l.on.end(t)}).render();this._margin.bottom+=s.outerBounds().height+s.padding()*2}}function JU(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var e=this._title?this._title(t):false;var n=this._titlePadding()?this._padding:{top:0,right:0,bottom:0,left:0};var r={transform:"translate(".concat(this._margin.left+n.left,", ").concat(this._margin.top,")")};var i=fb("g.d3plus-viz-title",{enter:r,parent:this._select,duration:this._duration,update:r}).node();this._titleClass.data(e?[{text:e}]:[]).locale(this._locale).select(i).width(this._width-(this._margin.left+this._margin.right+n.left+n.right)).config(this._titleConfig).render();this._margin.top+=e?i.getBBox().height+this._titleConfig.padding*2:0}function QU(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];var e=typeof this._total==="function"?Re(t.map(this._total)):this._total===true&&this._size?Re(t.map(this._size)):false;var n=this._totalPadding()?this._padding:{top:0,right:0,bottom:0,left:0};var r={transform:"translate(".concat(this._margin.left+n.left,", ").concat(this._margin.top,")")};var i=fb("g.d3plus-viz-total",{enter:r,parent:this._select,duration:this._duration,update:r}).node();this._totalClass.data(e?[{text:this._totalFormat(e)}]:[]).locale(this._locale).select(i).width(this._width-(this._margin.left+this._margin.right+n.left+n.right)).config(this._totalConfig).render();this._margin.top+=e?i.getBBox().height+this._totalConfig.padding*2:0}function tG(t,e){if(!t)return undefined;if(t.tagName===undefined||["BODY","HTML"].indexOf(t.tagName)>=0){var n=window["inner".concat(e.charAt(0).toUpperCase()+e.slice(1))];var r=Ks(t);if(e==="width"){n-=parseFloat(r.style("margin-left"),10);n-=parseFloat(r.style("margin-right"),10);n-=parseFloat(r.style("padding-left"),10);n-=parseFloat(r.style("padding-right"),10)}else{n-=parseFloat(r.style("margin-top"),10);n-=parseFloat(r.style("margin-bottom"),10);n-=parseFloat(r.style("padding-top"),10);n-=parseFloat(r.style("padding-bottom"),10)}return n}else{var i=parseFloat(Ks(t).style(e),10);if(typeof i==="number"&&i>0)return i;else return tG(t.parentNode,e)}}function eG(t){return[tG(t,"width"),tG(t,"height")]}function nG(t){var e=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 r=window.pageYOffset!==undefined?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;var i=t.getBoundingClientRect();var a=i.height,o=i.left+n,s=i.top+r,u=i.width;return r+window.innerHeight>s+e&&r+e<s+a&&n+window.innerWidth>o+e&&n+e<o+u}function rG(t,e,n,r){r.stopPropagation();if(this._drawDepth<this._groupBy.length-1){this._select.style("cursor","auto");var i=this._groupBy[this._drawDepth],a=i(t,e);this.hover(false);if(this._tooltip(t,e))this._tooltipClass.data([]).render();var o=this._filter;this._history.push({depth:this._depth,filter:o});this.config({depth:this._drawDepth+1,filter:function t(e,n){return(!o||o(e,n))&&i(e,n)===a}}).render()}}function iG(t,e,n,r){var i=this;this._select.style("cursor","auto");if(this._tooltip(t,e))this._tooltipClass.data([]).render();var a=this._id(t,e);if(!(a instanceof Array))a=[a];var o=this._hidden.indexOf(a[0]);var s=this._solo.indexOf(a[0]);var u=Ae(this._legendClass.data().map(function(t,e){var n=i._id(t,e);if(!(n instanceof Array))n=[n];return n})).length;var l=this._legendFilterInvert.bind(this)();if(l){if(r.shiftKey){if(o<0&&!this._solo.length){this._hidden=this._hidden.concat(a);if(s>=0)this._solo=[];if(this._hidden.length===u)this._hidden=[];this.render()}else if(s>=0){this._solo=[];this._hidden=[];this.render()}}else{if(s<0&&this._hidden.length<u-1){this._solo=a;this._hidden=[]}else{this._solo=[];this._hidden=[]}this.render()}}else{if(r.shiftKey&&s<0){this._solo=a;this._hidden=[];this.render()}else if(!r.shiftKey){if(o>=0){this._hidden.splice(o,a.length)}else if(s>=0){this._solo=[];this._hidden=[]}else if(this._solo.length&&s<0){this._solo=this._solo.concat(a);if(this._solo.length===u)this._solo=[]}else{this._hidden=this._hidden.concat(a);if(this._hidden.length===u)this._hidden=[]}this.render()}}}var aG=function t(e){return e.reduce(function(t,e){if(e instanceof Array){if(t.length){var n=t.slice();t=[];e.forEach(function(e){return t=t.concat(n.map(function(t){return"".concat(t,"_").concat(e)}))})}else{t=e.slice()}}else if(t.length){t=t.map(function(t){return"".concat(t,"_").concat(e)})}else{t.push(e)}return t},[])};function oG(t,e){var r=this;if(this._shapeConfig.hoverOpacity!==1){var i=aG(this._ids(t,e));this.hover(function(t,e){var n=aG(r._ids(t,e));return i.some(function(t){return n.includes(t)})})}}function sG(n,r){var i=this;setTimeout(function(){if(i._shapeConfig.hoverOpacity!==1&&i._hover?i._hover(n,r):true){i.hover(false)}var t=i._tooltipClass.data();if(t.length&&i._tooltip(n,r)){var e=t[0];while(e.__d3plus__&&e.data){e=e.data}if(i._id(e)===i._id(n))i._tooltipClass.data([]).render()}},50);this._select.style("cursor","auto")}function uG(t,e,n,r){var i=this;var a=r.touches?[r.touches[0].clientX,r.touches[0].clientY]:[r.clientX,r.clientY];var o=Ae(this._legendClass.data().map(function(t,e){var n=i._id(t,e);if(!(n instanceof Array))n=[n];return n})).length;if(t&&this._tooltip(t,e)){var s=this._id(t,e);if(s instanceof Array)s=s[0];var u=this._translate;var l=iG.bind(this).toString();var c=Object.keys(this._on).some(function(t){return["click","click.legend"].includes(t)&&i._on[t]&&i._on[t].toString()!==l});var f=this._on["click.legend"]&&this._on["click.legend"].toString()===l;var h=this._drawDepth<this._groupBy.length-1;this._select.style("cursor",c||f&&h?"pointer":"auto");var d=this._legendFilterInvert.bind(this)();this._tooltipClass.data([n||t]).footer(f?d?this._solo.length&&!this._solo.includes(s)||this._hidden.includes(s)?u("Click to Highlight"):this._solo.length===1&&this._solo.includes(s)||this._hidden.length===o-1?u("Click to Show All"):"".concat(u("Click to Highlight"),"<br />").concat(u("Shift+Click to Hide")):this._solo.length&&!this._solo.includes(s)||this._hidden.includes(s)?"".concat(u("Click to Show"),"<br />").concat(u("Shift+Click to Highlight")):this._solo.length===1&&this._solo.includes(s)||this._hidden.length===o-1?u("Click to Show All"):"".concat(u("Click to Hide"),"<br />").concat(u("Shift+Click to Highlight")):false).title(this._legendConfig.label?this._legendClass.label():YU.bind(this)).position(a).config(lb.bind(this)(this._tooltipConfig)).config(lb.bind(this)(this._legendTooltip)).render()}}function lG(t,e,n,r){var i=this;if(t&&this._tooltip(t,e)){var a=rG.bind(this).toString();var o=Object.keys(this._on).some(function(t){return["click","click.shape"].includes(t)&&i._on[t]&&i._on[t].toString()!==a});var s=this._on["click.shape"]&&this._on["click.shape"].toString()===a;var u=this._drawDepth<this._groupBy.length-1;this._select.style("cursor",o||s&&u?"pointer":"auto");var l=r.touches?[r.touches[0].clientX,r.touches[0].clientY]:[r.clientX,r.clientY];this._tooltipClass.data([n||t]).footer(s&&u?this._translate("Click to Expand"):false).title(this._drawLabel).position(l).config(lb.bind(this)(this._tooltipConfig)).render()}}function cG(){this._tooltipClass.data([]).render()}function fG(t,e){return pG(t)||vG(t,e)||dG(t,e)||hG()}function hG(){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 dG(t,e){if(!t)return;if(typeof t==="string")return gG(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gG(t,e)}function gG(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,r=new Array(e);n<e;n++){r[n]=t[n]}return r}function vG(t,e){var n=t==null?null:typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n==null)return;var r=[];var i=true;var a=false;var o,s;try{for(n=n.call(t);!(i=(o=n.next()).done);i=true){r.push(o.value);if(e&&r.length===e)break}}catch(t){a=true;s=t}finally{try{if(!i&&n["return"]!=null)n["return"]()}finally{if(a)throw s}}return r}function pG(t){if(Array.isArray(t))return t}var yG=false;function mG(){var e=this;if(!this._container||!this._zoomGroup)return;var t=this._zoomHeight||this._height-this._margin.top-this._margin.bottom,n=this,r=this._zoomWidth||this._width-this._margin.left-this._margin.right;this._zoomBehavior.extent([[0,0],[r,t]]).scaleExtent([1,this._zoomMax]).translateExtent([[0,0],[r,t]]).on("zoom",function(t){return bG.bind(e)(t.transform)});this._zoomToBounds=xG.bind(this);var i=Ks(this._select.node().parentNode).selectAll("div.d3plus-zoom-control").data(this._zoom?[0]:[]);var a=i.enter().append("div").attr("class","d3plus-zoom-control");i.exit().remove();i=i.merge(a).style("position","absolute").style("top","".concat(this._margin.top,"px")).style("left","".concat(this._margin.left,"px"));a.append("div").attr("class","zoom-control zoom-in");i.select(".zoom-in").on("click",wG.bind(this,this._zoomFactor)).html("&#65291;");a.append("div").attr("class","zoom-control zoom-out");i.select(".zoom-out").on("click",wG.bind(this,1/this._zoomFactor)).html("&#65293;");a.append("div").attr("class","zoom-control zoom-reset");i.select(".zoom-reset").on("click",wG.bind(this,0)).html("&#8634");a.append("div").attr("class","zoom-control zoom-brush");i.select(".zoom-brush").on("click",function(){Ks(this).classed("active",!yG).call(Ab,yG?n._zoomControlStyle||{}:n._zoomControlStyleActive||{});_G.bind(n)(!yG)}).html("&#164");i.selectAll(".zoom-control").call(Ab,n._zoomControlStyle).on("mouseenter",function(){Ks(this).call(Ab,n._zoomControlStyleHover||{})}).on("mouseleave",function(){Ks(this).call(Ab,Ks(this).classed("active")?n._zoomControlStyleActive||{}:n._zoomControlStyle||{})});this._zoomBrush.extent([[0,0],[r,t]]).filter(function(t){return!t.button&&t.detail<2}).handleSize(this._zoomBrushHandleSize).on("start",CG.bind(this)).on("brush",kG.bind(this)).on("end",SG.bind(this));var o=this._container.selectAll("g.brush").data([0]);this._brushGroup=o.enter().append("g").attr("class","brush").merge(o).call(this._zoomBrush);_G.bind(this)();if(this._renderTiles)this._renderTiles(OA(this._container.node()),0)}function _G(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;yG=t;if(yG)this._brushGroup.style("display","inline");else this._brushGroup.style("display","none");if(!yG&&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 bG(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:false;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;if(this._zoomGroup){if(!e)this._zoomGroup.attr("transform",t);else this._zoomGroup.transition().duration(e).attr("transform",t)}if(this._renderTiles)this._renderTiles(OA(this._container.node()),e)}function wG(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:0;if(!this._container)return;var e=this._zoomBehavior.extent().bind(document)()[1].map(function(t){return t/2}),n=this._zoomBehavior.scaleExtent(),r=OA(this._container.node());if(!t){r.k=n[0];r.x=0;r.y=0}else{var i=[(e[0]-r.x)/r.k,(e[1]-r.y)/r.k];r.k=Math.min(n[1],r.k*t);if(r.k<=n[0]){r.k=n[0];r.x=0;r.y=0}else{r.x+=e[0]-(i[0]*r.k+r.x);r.y+=e[1]-(i[1]*r.k+r.y)}}bG.bind(this)(r,this._duration)}function xG(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this._duration;var n=this._zoomBehavior.scaleExtent(),r=OA(this._container.node());if(t){var i=fG(this._zoomBehavior.translateExtent()[1],2),a=i[0],o=i[1],s=t[1][0]-t[0][0],u=t[1][1]-t[0][1];var l=Math.min(n[1],1/Math.max(s/a,u/o));var c,f;if(s/u<a/o){l*=(o-this._zoomPadding*2)/o;c=(a-s*l)/2/l;f=this._zoomPadding/l}else{l*=(a-this._zoomPadding*2)/a;f=(o-u*l)/2/l;c=this._zoomPadding/l}r.x=(r.x-t[0][0]+c)*(r.k*l/r.k);r.y=(r.y-t[0][1]+f)*(r.k*l/r.k);r.k*=l;if(r.x>0)r.x=0;else if(r.x<a*-r.k+a)r.x=a*-r.k+a;if(r.y>0)r.y=0;else if(r.y<o*-r.k+o)r.y=o*-r.k+o}else{r.k=n[0];r.x=0;r.y=0}bG.bind(this)(r,e)}function kG(){EG.bind(this)()}function SG(t){if(!t.selection)return;this._brushGroup.call(this._zoomBrush.move,null);xG.bind(this)(t.selection)}function CG(){EG.bind(this)()}function EG(){this._brushGroup.selectAll(".selection").call(ec,this._zoomBrushSelectionStyle||{});this._brushGroup.selectAll(".handle").call(ec,this._zoomBrushHandleStyle||{})}function AG(){var t=Ks(this._select.node().parentNode).selectAll("div.d3plus-attribution").data(this._attribution?[0]:[]);var e=t.enter().append("div").attr("class","d3plus-attribution");t.exit().remove();t=t.merge(e).style("position","absolute").html(this._attribution).style("right","".concat(this._margin.right,"px")).style("bottom","".concat(this._margin.bottom,"px")).call(Ab,this._attributionStyle)}function MG(t){return OG(t)||TG(t)||DG(t)||RG()}function RG(){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 TG(t){if(typeof Symbol!=="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function OG(t){if(Array.isArray(t))return NG(t)}function PG(t,e){return FG(t)||zG(t,e)||DG(t,e)||BG()}function BG(){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 DG(t,e){if(!t)return;if(typeof t==="string")return NG(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return NG(t,e)}function NG(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,r=new Array(e);n<e;n++){r[n]=t[n]}return r}function zG(t,e){var n=t==null?null:typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n==null)return;var r=[];var i=true;var a=false;var o,s;try{for(n=n.call(t);!(i=(o=n.next()).done);i=true){r.push(o.value);if(e&&r.length===e)break}}catch(t){a=true;s=t}finally{try{if(!i&&n["return"]!=null)n["return"]()}finally{if(a)throw s}}return r}function FG(t){if(Array.isArray(t))return t}function jG(t){"@babel/helpers - typeof";return jG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jG(t)}function IG(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function LG(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function HG(t,e,n){if(e)LG(t.prototype,e);if(n)LG(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function UG(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});Object.defineProperty(t,"prototype",{writable:false});if(e)GG(t,e)}function GG(t,e){GG=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return GG(t,e)}function VG(i){var a=KG();return function t(){var e=YG(i),n;if(a){var r=YG(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return WG(this,n)}}function WG(t,e){if(e&&(jG(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return qG(t)}function qG(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function KG(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function YG(t){YG=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return YG(t)}function XG(){return typeof window!=="undefined"?window.innerWidth>600:true}function ZG(r){return r.reduce(function(t,e,n){if(!n)t+=e;else if(n===r.length-1&&n===1)t+=" and ".concat(e);else if(n===r.length-1)t+=", and ".concat(e);else t+=", ".concat(e);return t},"")}function $G(t,e,n){while(e.__d3plus__&&e.data){e=e.data;n=e.i}return t(e,n)}var JG=function(t){UG(n,t);var e=VG(n);function n(){var s;IG(this,n);s=e.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 y9).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(t,e){return s._groupBy[0](t,e)};s._colorScaleClass=new cL;s._colorScaleConfig={scale:"jenks"};s._colorScalePadding=XG;s._colorScalePosition=function(){return s._width>s._height?"right":"bottom"};s._colorScaleMaxSize=600;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=cb("#aaa");s._hiddenOpacity=cb(.5);s._history=[];s._groupBy=[Zl("id")];s._legend=function(t,e){var n=Se(e,function(t,e){var n=s._groupBy[s._legendDepth].bind(qG(s))(t,e);return n instanceof Array?n.length:1});return e.length>1&&n<=2};s._legendClass=new $I;s._legendConfig={label:YU.bind(qG(s)),shapeConfig:{ariaLabel:YU.bind(qG(s)),labelConfig:{fontColor:undefined,fontResize:false,padding:0}}};s._legendFilterInvert=cb(false);s._legendPadding=XG;s._legendPosition=function(){return s._width>s._height?"right":"bottom"};s._legendSort=function(t,e){return s._drawLabel(t).localeCompare(s._drawLabel(e))};s._legendTooltip={};s._loadingHTML=function(){return"\n <div style=\"left: 50%; top: 50%; position: absolute; transform: translate(-50%, -50%); font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;\">\n <strong>".concat(s._translate("Loading Visualization"),'</strong>\n <sub style="bottom: 0; display: block; line-height: 1; margin-top: 5px;"><a href="https://d3plus.org" target="_blank">').concat(s._translate("Powered by D3plus"),"</a></sub>\n </div>")};s._loadingMessage=true;s._lrucache=OI(10);s._messageClass=new WU;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 <div style=\"left: 50%; top: 50%; position: absolute; transform: translate(-50%, -50%); font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;\">\n <strong>".concat(s._translate("No Data Available"),"</strong>\n </div>")};s._noDataMessage=true;s._on={"click.shape":rG.bind(qG(s)),"click.legend":iG.bind(qG(s)),mouseenter:oG.bind(qG(s)),mouseleave:sG.bind(qG(s)),"mousemove.shape":lG.bind(qG(s)),"mousemove.legend":uG.bind(qG(s))};s._queue=[];s._resizeContainer=(typeof window==="undefined"?"undefined":jG(window))===undefined?"":window;s._scrollContainer=(typeof window==="undefined"?"undefined":jG(window))===undefined?"":window;s._shape=cb("Rect");s._shapes=[];s._shapeConfig={ariaLabel:function t(e,n){return s._drawLabel(e,n)},fill:function t(e,n){while(e.__d3plus__&&e.data){e=e.data;n=e.i}if(s._colorScale){var r=s._colorScale(e,n);if(r!==undefined&&r!==null){var i=s._colorScaleClass._colorScale;var a=s._colorScaleClass.color();if(!i)return a instanceof Array?a[a.length-1]:a;else if(!i.domain().length)return i.range()[i.range().length-1];return i(r)}}var o=s._color(e,n);if(Rn(o))return o;return tw(o)},labelConfig:{fontColor:function t(e,n){var r=typeof s._shapeConfig.fill==="function"?s._shapeConfig.fill(e,n):s._shapeConfig.fill;return ew(r)}},opacity:cb(1),stroke:function t(e,n){var r=typeof s._shapeConfig.fill==="function"?s._shapeConfig.fill(e,n):s._shapeConfig.fill;return Rn(r).darker(.25)},role:"presentation",strokeWidth:cb(0)};s._solo=[];s._svgDesc="";s._svgTitle="";s._timeline=true;s._timelineClass=(new SL).align("end");s._timelineConfig={brushing:false,padding:5};s._timelinePadding=XG;s._threshold=cb(1e-4);s._thresholdKey=undefined;s._thresholdName=function(){return s._translate("Values")};s._titleClass=new y9;s._titleConfig={ariaHidden:true,fontSize:12,padding:5,resize:false,textAnchor:"middle"};s._titlePadding=XG;s._tooltip=cb(true);s._tooltipClass=new HU;s._tooltipConfig={pointerEvents:"none",titleStyle:{"max-width":"200px"}};s._totalClass=new y9;s._totalConfig={fontSize:10,padding:5,resize:false,textAnchor:"middle"};s._totalFormat=function(t){return"".concat(s._translate("Total"),": ").concat(cw(t,s._locale))};s._totalPadding=XG;s._zoom=false;s._zoomBehavior=LA();s._zoomBrush=bI();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}HG(n,[{key:"_preDraw",value:function t(){var a=this;var o=this;this._drawDepth=this._depth!==void 0?Ce([this._depth>=0?this._depth:0,this._groupBy.length-1]):this._groupBy.length-1;this._id=function(t,e){var n=$G(a._groupBy[a._drawDepth],t,e);return typeof n==="number"?"".concat(n):n};this._ids=function(e,n){return a._groupBy.map(function(t){return"".concat($G(t,e,n))}).filter(Boolean)};this._drawLabel=function(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:a._drawDepth;if(!t)return"";while(t.__d3plus__&&t.data){t=t.data;e=t.i}if(t._isAggregation){return"".concat(a._thresholdName(t,e)," < ").concat(cw(t._threshold*100,a._locale),"%")}if(a._label)return"".concat(a._label(t,e));var r=o._ids(t,e).slice(0,n+1);var i=r.reverse().find(function(t){return!(t instanceof Array)})||r[r.length-1];return i instanceof Array?ZG(i):"".concat(i)};if(this._time&&!this._timeFilter&&this._data.length){var e=this._data.map(this._time).map(Z4);var n=this._data[0],r=0;if(this._discrete&&"_".concat(this._discrete)in this&&this["_".concat(this._discrete)](n,r)===this._time(n,r)){this._timeFilter=function(){return true}}else{var i=+Se(e);this._timeFilter=function(t,e){return+Z4(a._time(t,e))===i}}}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 u=[];for(var l=0;l<=this._drawDepth;l++){u.push(this._groupBy[l])}if(this._discrete&&"_".concat(this._discrete)in this)u.push(this["_".concat(this._discrete)]);if(this._discrete&&"_".concat(this._discrete,"2")in this)u.push(this["_".concat(this._discrete,"2")]);var c=w.apply(void 0,[s,function(t){var e=a._data.indexOf(t[0]);var n=a._shape(t[0],e);var r=a._id(t[0],e);var i=Sb(t,a._aggs);if(!a._hidden.includes(r)&&(!a._solo.length||a._solo.includes(r))){if(!a._discrete&&n==="Line")a._filteredData=a._filteredData.concat(t);else a._filteredData.push(i)}a._legendData.push(i)}].concat(u));this._filteredData=this._thresholdFunction(this._filteredData,c)}var f=b(this._filteredData,this._id).size;if(f>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});this._select.transition().duration(this._duration).attr("opacity",0)}}},{key:"_draw",value:function t(){var e=this._legendPosition.bind(this)(this.config());if(![false,"top","bottom","left","right"].includes(e))e="bottom";var n=this._colorScalePosition.bind(this)(this.config());if(![false,"top","bottom","left","right"].includes(n))n="bottom";if(e==="left"||e==="right")XU.bind(this)(this._legendData);if(n==="left"||n==="right"||n===false)KU.bind(this)(this._filteredData);qU.bind(this)();JU.bind(this)(this._filteredData);QU.bind(this)(this._filteredData);$U.bind(this)(this._filteredData);if(e==="top"||e==="bottom")XU.bind(this)(this._legendData);if(n==="top"||n==="bottom")KU.bind(this)(this._filteredData);this._shapes=[]}},{key:"_thresholdFunction",value:function t(e){return e}},{key:"render",value:function t(a){var o=this;this._margin={bottom:0,left:0,right:0,top:0};this._padding={bottom:0,left:0,right:0,top:0};if(this._select===void 0||this._select.node().tagName.toLowerCase()!=="svg"){var e=this._select===void 0?Ks("body").append("div"):this._select;var n=e.append("svg");this.select(n.node())}function s(){var t=this._select.style("display");this._select.style("display","none");var e=eG(this._select.node().parentNode),n=PG(e,2),r=n[0],i=n[1];r-=parseFloat(this._select.style("border-left-width"),10);r-=parseFloat(this._select.style("border-right-width"),10);i-=parseFloat(this._select.style("border-top-width"),10);i-=parseFloat(this._select.style("border-bottom-width"),10);this._select.style("display",t);if(this._autoWidth){this.width(r);this._select.style("width","".concat(this._width,"px")).attr("width","".concat(this._width,"px"))}if(this._autoHeight){this.height(i);this._select.style("height","".concat(this._height,"px")).attr("height","".concat(this._height,"px"))}}if((!this._width||!this._height)&&(!this._detectVisible||nG(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().duration(this._duration).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 r=Ks(this._select.node().parentNode);var i=r.style("position");if(i==="static")r.style("position","relative");if(this._select.attr("opacity")===null)this._select.attr("opacity",1);var u=this._select.selectAll("title").data([0]);var l=u.enter().append("title").attr("id","".concat(this._uuid,"-title"));u.merge(l).text(this._svgTitle);var c=this._select.selectAll("desc").data([0]);var f=c.enter().append("desc").attr("id","".concat(this._uuid,"-desc"));c.merge(f).text(this._svgDesc);this._visiblePoll=clearInterval(this._visiblePoll);this._resizePoll=clearTimeout(this._resizePoll);this._scrollPoll=clearTimeout(this._scrollPoll);Ks(this._scrollContainer).on("scroll.".concat(this._uuid),null);Ks(this._resizeContainer).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(a)}},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(a)}},this._detectVisibleInterval)}else if(this._detectVisible&&!nG(this._select.node())){Ks(this._scrollContainer).on("scroll.".concat(this._uuid),function(){if(!o._scrollPoll){o._scrollPoll=setTimeout(function(){if(nG(o._select.node())){Ks(o._scrollContainer).on("scroll.".concat(o._uuid),null);o.render(a)}o._scrollPoll=clearTimeout(o._scrollPoll)},o._detectVisibleInterval)}})}else{var h=TI();this._queue.forEach(function(t){var e=o._cache?o._lrucache.get("".concat(t[3],"_").concat(t[1])):undefined;if(!e)h.defer.apply(h,MG(t));else o["_".concat(t[3])]=t[2]?t[2](e):e});this._queue=[];if(this._loadingMessage&&h._tasks.length){this._messageClass.render({container:this._select.node().parentNode,html:this._loadingHTML(this),mask:this._filteredData?this._messageMask:false,style:this._messageStyle})}h.awaitAll(function(){var n=o._data instanceof Array&&o._data.length>0?Object.keys(o._data[0]):[];var t=o._select.selectAll("g.data-table").data(!o._ariaHidden&&o._data instanceof Array&&o._data.length?[0]:[]);var e=t.enter().append("g").attr("class","data-table").attr("role","table");t.exit().remove();var r=t.merge(e).selectAll("text").data(o._data instanceof Array?Me(0,o._data.length+1):[]);r.exit().remove();var i=r.merge(r.enter().append("text").attr("role","row")).selectAll("tspan").data(function(t,e){return n.map(function(t){return{role:e?"cell":"columnheader",text:e?o._data[e-1][t]:t}})});i.exit().remove();i.merge(i.enter().append("tspan")).attr("role",function(t){return t.role}).attr("dy","-1000px").html(function(t){return t.text});o._preDraw();o._draw(a);mG.bind(o)();AG.bind(o)();if(o._messageClass._isVisible&&(!o._noDataMessage||o._filteredData.length)){o._messageClass.hide();if(o._select.attr("opacity")==="0")o._select.transition().duration(o._duration).attr("opacity",1)}if(o._detectResize&&(o._autoWidth||o._autoHeight)){Ks(o._resizeContainer).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(a)},o._detectResizeDelay)})}if(a)setTimeout(a,o._duration+100)})}Ks("body").on("touchstart.".concat(this._uuid),cG.bind(this));return this}},{key:"active",value:function t(e){this._active=e;if(this._shapeConfig.activeOpacity!==1){this._shapes.forEach(function(t){return t.active(e)});if(this._legend)this._legendClass.active(e)}return this}},{key:"aggs",value:function t(e){return arguments.length?(this._aggs=tc(this._aggs,e),this):this._aggs}},{key:"ariaHidden",value:function t(e){return arguments.length?(this._ariaHidden=e,this):this._ariaHidden}},{key:"attribution",value:function t(e){return arguments.length?(this._attribution=e,this):this._attribution}},{key:"attributionStyle",value:function t(e){return arguments.length?(this._attributionStyle=tc(this._attributionStyle,e),this):this._attributionStyle}},{key:"backConfig",value:function t(e){return arguments.length?(this._backConfig=tc(this._backConfig,e),this):this._backConfig}},{key:"cache",value:function t(e){return arguments.length?(this._cache=e,this):this._cache}},{key:"color",value:function t(e){return arguments.length?(this._color=!e||typeof e==="function"?e:Zl(e),this):this._color}},{key:"colorScale",value:function t(e){return arguments.length?(this._colorScale=!e||typeof e==="function"?e:Zl(e),this):this._colorScale}},{key:"colorScaleConfig",value:function t(e){return arguments.length?(this._colorScaleConfig=tc(this._colorScaleConfig,e),this):this._colorScaleConfig}},{key:"colorScalePadding",value:function t(e){return arguments.length?(this._colorScalePadding=typeof e==="function"?e:cb(e),this):this._colorScalePadding}},{key:"colorScalePosition",value:function t(e){return arguments.length?(this._colorScalePosition=typeof e==="function"?e:cb(e),this):this._colorScalePosition}},{key:"colorScaleMaxSize",value:function t(e){return arguments.length?(this._colorScaleMaxSize=e,this):this._colorScaleMaxSize}},{key:"data",value:function t(e,n){if(arguments.length){Wj.bind(this)(e,n,"data");this._hidden=[];this._solo=[];return this}return this._data}},{key:"dataCutoff",value:function t(e){return arguments.length?(this._dataCutoff=e,this):this._dataCutoff}},{key:"depth",value:function t(e){return arguments.length?(this._depth=e,this):this._depth}},{key:"detectResize",value:function t(e){return arguments.length?(this._detectResize=e,this):this._detectResize}},{key:"detectResizeDelay",value:function t(e){return arguments.length?(this._detectResizeDelay=e,this):this._detectResizeDelay}},{key:"detectVisible",value:function t(e){return arguments.length?(this._detectVisible=e,this):this._detectVisible}},{key:"detectVisibleInterval",value:function t(e){return arguments.length?(this._detectVisibleInterval=e,this):this._detectVisibleInterval}},{key:"discrete",value:function t(e){return arguments.length?(this._discrete=e,this):this._discrete}},{key:"downloadButton",value:function t(e){return arguments.length?(this._downloadButton=e,this):this._downloadButton}},{key:"downloadConfig",value:function t(e){return arguments.length?(this._downloadConfig=tc(this._downloadConfig,e),this):this._downloadConfig}},{key:"downloadPosition",value:function t(e){return arguments.length?(this._downloadPosition=e,this):this._downloadPosition}},{key:"duration",value:function t(e){return arguments.length?(this._duration=e,this):this._duration}},{key:"filter",value:function t(e){return arguments.length?(this._filter=e,this):this._filter}},{key:"groupBy",value:function t(e){var n=this;if(!arguments.length)return this._groupBy;this._groupByRaw=e;if(!(e instanceof Array))e=[e];return this._groupBy=e.map(function(t){if(typeof t==="function")return t;else{if(!n._aggs[t]){n._aggs[t]=function(t,e){var n=kb(t.map(e).map(String));return n.length===1?n[0]:n}}return Zl(t)}}),this}},{key:"height",value:function t(e){return arguments.length?(this._height=e,this):this._height}},{key:"hiddenColor",value:function t(e){return arguments.length?(this._hiddenColor=typeof e==="function"?e:cb(e),this):this._hiddenColor}},{key:"hiddenOpacity",value:function t(e){return arguments.length?(this._hiddenOpacity=typeof e==="function"?e:cb(e),this):this._hiddenOpacity}},{key:"hover",value:function t(e){var r=this;var n=this._hover=e;if(this._shapeConfig.hoverOpacity!==1){if(typeof e==="function"){var i=Ae(this._shapes.map(function(t){return t.data()}));i=i.concat(this._legendClass.data());var a=e?i.filter(e):[];var o=[];a.map(this._ids).forEach(function(t){for(var e=1;e<=t.length;e++){o.push(JSON.stringify(t.slice(0,e)))}});o=o.filter(function(t,e){return o.indexOf(t)===e});if(o.length)n=function t(e,n){return o.includes(JSON.stringify(r._ids(e,n)))}}this._shapes.forEach(function(t){return t.hover(n)});if(this._legend)this._legendClass.hover(n)}return this}},{key:"label",value:function t(e){return arguments.length?(this._label=typeof e==="function"?e:cb(e),this):this._label}},{key:"legend",value:function t(e){return arguments.length?(this._legend=typeof e==="function"?e:cb(e),this):this._legend}},{key:"legendConfig",value:function t(e){return arguments.length?(this._legendConfig=tc(this._legendConfig,e),this):this._legendConfig}},{key:"legendFilterInvert",value:function t(e){return arguments.length?(this._legendFilterInvert=typeof e==="function"?e:cb(e),this):this._legendFilterInvert}},{key:"legendPadding",value:function t(e){return arguments.length?(this._legendPadding=typeof e==="function"?e:cb(e),this):this._legendPadding}},{key:"legendPosition",value:function t(e){return arguments.length?(this._legendPosition=typeof e==="function"?e:cb(e),this):this._legendPosition}},{key:"legendSort",value:function t(e){return arguments.length?(this._legendSort=e,this):this._legendSort}},{key:"legendTooltip",value:function t(e){return arguments.length?(this._legendTooltip=tc(this._legendTooltip,e),this):this._legendTooltip}},{key:"loadingHTML",value:function t(e){return arguments.length?(this._loadingHTML=typeof e==="function"?e:cb(e),this):this._loadingHTML}},{key:"loadingMessage",value:function t(e){return arguments.length?(this._loadingMessage=e,this):this._loadingMessage}},{key:"messageMask",value:function t(e){return arguments.length?(this._messageMask=e,this):this._messageMask}},{key:"messageStyle",value:function t(e){return arguments.length?(this._messageStyle=tc(this._messageStyle,e),this):this._messageStyle}},{key:"noDataHTML",value:function t(e){return arguments.length?(this._noDataHTML=typeof e==="function"?e:cb(e),this):this._noDataHTML}},{key:"noDataMessage",value:function t(e){return arguments.length?(this._noDataMessage=e,this):this._noDataMessage}},{key:"resizeContainer",value:function t(e){return arguments.length?(this._resizeContainer=e,this):this._resizeContainer}},{key:"scrollContainer",value:function t(e){return arguments.length?(this._scrollContainer=e,this):this._scrollContainer}},{key:"select",value:function t(e){return arguments.length?(this._select=Ks(e),this):this._select}},{key:"shape",value:function t(e){return arguments.length?(this._shape=typeof e==="function"?e:cb(e),this):this._shape}},{key:"shapeConfig",value:function t(e){return arguments.length?(this._shapeConfig=tc(this._shapeConfig,e),this):this._shapeConfig}},{key:"svgDesc",value:function t(e){return arguments.length?(this._svgDesc=e,this):this._svgDesc}},{key:"svgTitle",value:function t(e){return arguments.length?(this._svgTitle=e,this):this._svgTitle}},{key:"threshold",value:function t(e){if(arguments.length){if(typeof e==="function"){this._threshold=e}else if(isFinite(e)&&!isNaN(e)){this._threshold=cb(e*1)}return this}else return this._threshold}},{key:"thresholdKey",value:function t(e){if(arguments.length){if(typeof e==="function"){this._thresholdKey=e}else{this._thresholdKey=Zl(e)}return this}else return this._thresholdKey}},{key:"thresholdName",value:function t(e){return arguments.length?(this._thresholdName=typeof e==="function"?e:cb(e),this):this._thresholdName}},{key:"time",value:function t(e){if(arguments.length){if(typeof e==="function"){this._time=e}else{this._time=Zl(e);if(!this._aggs[e]){this._aggs[e]=function(t,e){var n=kb(t.map(e));return n.length===1?n[0]:n}}}if(this._data.length&&this._timeFilter&&!this._data.find(this._timeFilter)){this._timeFilter=false;this._timelineSelection=false}return this}else return this._time}},{key:"timeFilter",value:function t(e){return arguments.length?(this._timeFilter=e,this):this._timeFilter}},{key:"timeline",value:function t(e){return arguments.length?(this._timeline=e,this):this._timeline}},{key:"timelineConfig",value:function t(e){return arguments.length?(this._timelineConfig=tc(this._timelineConfig,e),this):this._timelineConfig}},{key:"timelinePadding",value:function t(e){return arguments.length?(this._timelinePadding=typeof e==="function"?e:cb(e),this):this._timelinePadding}},{key:"title",value:function t(e){return arguments.length?(this._title=typeof e==="function"?e:cb(e),this):this._title}},{key:"titleConfig",value:function t(e){return arguments.length?(this._titleConfig=tc(this._titleConfig,e),this):this._titleConfig}},{key:"titlePadding",value:function t(e){return arguments.length?(this._titlePadding=typeof e==="function"?e:cb(e),this):this._titlePadding}},{key:"tooltip",value:function t(e){return arguments.length?(this._tooltip=typeof e==="function"?e:cb(e),this):this._tooltip}},{key:"tooltipConfig",value:function t(e){return arguments.length?(this._tooltipConfig=tc(this._tooltipConfig,e),this):this._tooltipConfig}},{key:"total",value:function t(e){if(arguments.length){if(typeof e==="function")this._total=e;else if(e)this._total=Zl(e);else this._total=false;return this}else return this._total}},{key:"totalConfig",value:function t(e){return arguments.length?(this._totalConfig=tc(this._totalConfig,e),this):this._totalConfig}},{key:"totalFormat",value:function t(e){return arguments.length?(this._totalFormat=e,this):this._totalFormat}},{key:"totalPadding",value:function t(e){return arguments.length?(this._totalPadding=typeof e==="function"?e:cb(e),this):this._totalPadding}},{key:"width",value:function t(e){return arguments.length?(this._width=e,this):this._width}},{key:"zoom",value:function t(e){return arguments.length?(this._zoom=e,this):this._zoom}},{key:"zoomBrushHandleSize",value:function t(e){return arguments.length?(this._zoomBrushHandleSize=e,this):this._zoomBrushHandleSize}},{key:"zoomBrushHandleStyle",value:function t(e){return arguments.length?(this._zoomBrushHandleStyle=e,this):this._zoomBrushHandleStyle}},{key:"zoomBrushSelectionStyle",value:function t(e){return arguments.length?(this._zoomBrushSelectionStyle=e,this):this._zoomBrushSelectionStyle}},{key:"zoomControlStyle",value:function t(e){return arguments.length?(this._zoomControlStyle=e,this):this._zoomControlStyle}},{key:"zoomControlStyleActive",value:function t(e){return arguments.length?(this._zoomControlStyleActive=e,this):this._zoomControlStyleActive}},{key:"zoomControlStyleHover",value:function t(e){return arguments.length?(this._zoomControlStyleHover=e,this):this._zoomControlStyleHover}},{key:"zoomFactor",value:function t(e){return arguments.length?(this._zoomFactor=e,this):this._zoomFactor}},{key:"zoomMax",value:function t(e){return arguments.length?(this._zoomMax=e,this):this._zoomMax}},{key:"zoomPan",value:function t(e){return arguments.length?(this._zoomPan=e,this):this._zoomPan}},{key:"zoomPadding",value:function t(e){return arguments.length?(this._zoomPadding=e,this):this._zoomPadding}},{key:"zoomScroll",value:function t(e){return arguments.length?(this._zoomScroll=e,this):this._zoomScroll}}]);return n}(ob);var QG=[{matches:["cartodb","cartocdn"],text:"© <a href='http://www.openstreetmap.org/copyright' target='_blank'>OpenStreetMap</a> contributors, © <a href='https://carto.com/attribution' target='_blank'>CARTO</a>"},{matches:["opentopomap.org"],text:"© <a href='http://www.openstreetmap.org/copyright' target='_blank'>OpenStreetMap</a> contributors"},{matches:["arcgisonline.com"],text:"Powered by <a href='https://developers.arcgis.com/terms/attribution/' target='_blank'>Esri</a>"},{matches:["/watercolor/"],text:"Map tiles by <a href='http://stamen.com' target='_blank'>Stamen Design</a>, under <a href='http://creativecommons.org/licenses/by/3.0' target='_blank'>CC BY 3.0</a>. Data by <a href='http://openstreetmap.org' target='_blank'>OpenStreetMap</a>, under <a href='http://www.openstreetmap.org/copyright' target='_blank'>ODbL</a>."},{matches:["stamen-tiles","stamen.com"],text:"Map tiles by <a href='http://stamen.com' target='_blank'>Stamen Design</a>, under <a href='http://creativecommons.org/licenses/by/3.0' target='_blank'>CC BY 3.0</a>. Data by <a href='http://openstreetmap.org' target='_blank'>OpenStreetMap</a>, under <a href='http://creativecommons.org/licenses/by-sa/3.0' target='_blank'>CC BY SA</a>."}];function tV(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){tV=function t(e){return typeof e}}else{tV=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return tV(t)}function eV(t,e){return oV(t)||aV(t,e)||rV(t,e)||nV()}function nV(){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 rV(t,e){if(!t)return;if(typeof t==="string")return iV(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return iV(t,e)}function iV(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,r=new Array(e);n<e;n++){r[n]=t[n]}return r}function aV(t,e){if(typeof Symbol==="undefined"||!(Symbol.iterator in Object(t)))return;var n=[];var r=true;var i=false;var a=undefined;try{for(var o=t[Symbol.iterator](),s;!(r=(s=o.next()).done);r=true){n.push(s.value);if(e&&n.length===e)break}}catch(t){i=true;a=t}finally{try{if(!r&&o["return"]!=null)o["return"]()}finally{if(i)throw a}}return n}function oV(t){if(Array.isArray(t))return t}function sV(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function uV(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function lV(t,e,n){if(e)uV(t.prototype,e);if(n)uV(t,n);return t}function cV(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){cV=Reflect.get}else{cV=function t(e,n,r){var i=fV(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(r)}return a.value}}return cV(t,e,n||t)}function fV(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=mV(t);if(t===null)break}return t}function hV(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)dV(t,e)}function dV(t,e){dV=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return dV(t,e)}function gV(i){var a=yV();return function t(){var e=mV(i),n;if(a){var r=mV(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return vV(this,n)}}function vV(t,e){if(e&&(tV(e)==="object"||typeof e==="function")){return e}return pV(t)}function pV(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function yV(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function mV(t){mV=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return mV(t)}var _V=Object.assign({},ZP,dF,ZF);function bV(e){var t=QG.find(function(t){return t.matches.some(function(t){return e.includes(t)})});return t?t.text:false}function wV(t,e){var n=e&&t.objects[e]?e:Object.keys(t.objects)[0];return ij(t,n)}var xV=function(t){hV(C,t);var e=gV(C);function C(){var a;sV(this,C);a=e.call(this);a._fitObject=false;a._noDataMessage=false;a._ocean="#d4dadc";a._point=Zl("point");a._pointSize=cb(1);a._pointSizeMax=10;a._pointSizeMin=5;a._pointSizeScale="linear";a._projection=_V.geoMercator();a._projectionPadding=Cb(20);a._shape=cb("Circle");a._shapeConfig=tc(a._shapeConfig,{ariaLabel:function t(e,n){return"".concat(a._drawLabel(e,n),", ").concat(a._pointSize(e,n))},hoverOpacity:1,Path:{ariaLabel:function t(e,n){var r=a._colorScale?", ".concat(a._colorScale(e,n)):"";return"".concat(a._drawLabel(e,n)).concat(r,".")},fill:function t(e,n){if(a._colorScale&&!a._coordData.features.includes(e)){var r=a._colorScale(e);if(r!==undefined&&r!==null){if(a._colorScaleClass._colorScale){return a._colorScaleClass._colorScale(r)}else{var i=a._colorScaleClass.color();if(i instanceof Array)i=i[i.length-1];return i}}}return a._topojsonFill(e,n)},on:{mouseenter:function t(e,n,r,i){return!a._coordData.features.includes(e)?a._on.mouseenter.bind(pV(a))(e,n,r,i):null},"mousemove.shape":function t(e,n,r,i){return!a._coordData.features.includes(e)?a._on["mousemove.shape"].bind(pV(a))(e,n,r,i):null},mouseleave:function t(e,n,r,i){return!a._coordData.features.includes(e)?a._on.mouseleave.bind(pV(a))(e,n,r,i):null}},stroke:function t(e,n){var r=typeof a._shapeConfig.Path.fill==="function"?a._shapeConfig.Path.fill(e,n):a._shapeConfig.Path.fill;return Rn(r).darker()},strokeWidth:1}});a._tiles=true;a._tileGen=tj();a.tileUrl("https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}@2x.png");a._topojson=false;a._topojsonFill=cb("#f5f5f3");a._topojsonFilter=function(t){return!["010"].includes(t.id)};a._topojsonId=Zl("id");a._zoom=true;a._zoomSet=false;return a}lV(C,[{key:"_renderTiles",value:function t(){var a=this;var r=arguments.length>0&&arguments[0]!==undefined?arguments[0]:OA(this._container.node());var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;var i=[];if(this._tiles){i=this._tileGen.extent(this._zoomBehavior.translateExtent()).scale(this._projection.scale()*(2*Math.PI)*r.k).translate(r.apply(this._projection.translate()))();this._tileGroup.transition().duration(e).attr("transform",r)}var n=this._tileGroup.selectAll("image.d3plus-geomap-tile").data(i,function(t){var e=eV(t,3),n=e[0],r=e[1],i=e[2];return"".concat(n,"-").concat(r,"-").concat(i)});n.exit().transition().duration(e).attr("opacity",0).remove();var o=i.scale/r.k;var s=n.enter().append("image").attr("class","d3plus-geomap-tile");s.attr("opacity",0).transition().duration(e).attr("opacity",1);n.merge(s).attr("width",o).attr("height",o).attr("xlink:href",function(t){var e=eV(t,3),n=e[0],r=e[1],i=e[2];return a._tileUrl.replace("{s}",["a","b","c"][Math.random()*3|0]).replace("{z}",i).replace("{x}",n).replace("{y}",r)}).attr("x",function(t){var e=eV(t,1),n=e[0];return n*o+i.translate[0]*o-r.x/r.k}).attr("y",function(t){var e=eV(t,2),n=e[1];return n*o+i.translate[1]*o-r.y/r.k})}},{key:"_draw",value:function t(e){var r=this;cV(mV(C.prototype),"_draw",this).call(this,e);var n=this._height-this._margin.top-this._margin.bottom,i=this._width-this._margin.left-this._margin.right;this._container=this._select.selectAll("svg.d3plus-geomap").data([0]);this._container=this._container.enter().append("svg").attr("class","d3plus-geomap").attr("opacity",0).attr("width",i).attr("height",n).attr("x",this._margin.left).attr("y",this._margin.top).style("background-color",this._ocean||"transparent").merge(this._container);this._container.transition(this._transition).attr("opacity",1).attr("width",i).attr("height",n).attr("x",this._margin.left).attr("y",this._margin.top);var a=this._container.selectAll("rect.d3plus-geomap-ocean").data([0]);a.enter().append("rect").attr("class","d3plus-geomap-ocean").merge(a).attr("width",i).attr("height",n).attr("fill",this._ocean||"transparent");this._tileGroup=this._container.selectAll("g.d3plus-geomap-tileGroup").data([0]);this._tileGroup=this._tileGroup.enter().append("g").attr("class","d3plus-geomap-tileGroup").merge(this._tileGroup);this._zoomGroup=this._container.selectAll("g.d3plus-geomap-zoomGroup").data([0]);this._zoomGroup=this._zoomGroup.enter().append("g").attr("class","d3plus-geomap-zoomGroup").merge(this._zoomGroup);var o=this._zoomGroup.selectAll("g.d3plus-geomap-paths").data([0]);o=o.enter().append("g").attr("class","d3plus-geomap-paths").merge(o);var s=this._coordData=this._topojson?wV(this._topojson,this._topojsonKey):{type:"FeatureCollection",features:[]};if(this._topojsonFilter)s.features=s.features.filter(this._topojsonFilter);var u=this._path=_V.geoPath().projection(this._projection);var l=this._filteredData.filter(function(t,e){return r._point(t,e)instanceof Array});var c=this._filteredData.filter(function(t,e){return!(r._point(t,e)instanceof Array)}).reduce(function(t,e){t[r._id(e)]=e;return t},{});var f=s.features.reduce(function(t,e){var n=r._topojsonId(e);t.push({__d3plus__:true,data:c[n],feature:e,id:n});return t},[]);var h=Z2["scale".concat(this._pointSizeScale.charAt(0).toUpperCase()).concat(this._pointSizeScale.slice(1))]().domain(ke(l,function(t,e){return r._pointSize(t,e)})).range([this._pointSizeMin,this._pointSizeMax]);if(!this._zoomSet){var d=this._fitObject?wV(this._fitObject,this._fitKey):s;this._extentBounds={type:"FeatureCollection",features:this._fitFilter?d.features.filter(this._fitFilter):d.features.slice()};this._extentBounds.features=this._extentBounds.features.reduce(function(t,e){if(e.geometry){var n={type:e.type,id:e.id,geometry:{coordinates:e.geometry.coordinates,type:e.geometry.type}};if(e.geometry.type==="MultiPolygon"&&e.geometry.coordinates.length>1){var r=[],i=[];e.geometry.coordinates.forEach(function(t){n.geometry.coordinates=[t];r.push(u.area(n))});n.geometry.coordinates=[e.geometry.coordinates[r.indexOf(Se(r))]];var a=u.centroid(n);e.geometry.coordinates.forEach(function(t){n.geometry.coordinates=[t];i.push(x9(u.centroid(n),a))});var o=Nt(r.reduce(function(t,e,n){if(e)t.push(r[n]/e);return t},[]),.9);n.geometry.coordinates=e.geometry.coordinates.filter(function(t,e){var n=i[e];return n===0||r[e]/n>=o})}t.push(n)}return t},[]);if(!this._extentBounds.features.length&&l.length){var g=[[undefined,undefined],[undefined,undefined]];l.forEach(function(t,e){var n=r._projection(r._point(t,e));if(g[0][0]===void 0||n[0]<g[0][0])g[0][0]=n[0];if(g[1][0]===void 0||n[0]>g[1][0])g[1][0]=n[0];if(g[0][1]===void 0||n[1]<g[0][1])g[0][1]=n[1];if(g[1][1]===void 0||n[1]>g[1][1])g[1][1]=n[1]});this._extentBounds={type:"FeatureCollection",features:[{type:"Feature",geometry:{type:"MultiPoint",coordinates:g.map(function(t){return r._projection.invert(t)})}}]};var v=Se(l,function(t,e){return h(r._pointSize(t,e))});this._projectionPadding.top+=v;this._projectionPadding.right+=v;this._projectionPadding.bottom+=v;this._projectionPadding.left+=v}this._zoomBehavior.extent([[0,0],[i,n]]).scaleExtent([1,this._zoomMax]).translateExtent([[0,0],[i,n]]);this._zoomSet=true}this._projection=this._projection.fitExtent(this._extentBounds.features.length?[[this._projectionPadding.left,this._projectionPadding.top],[i-this._projectionPadding.right,n-this._projectionPadding.bottom]]:[[0,0],[i,n]],this._extentBounds.features.length?this._extentBounds:{type:"Sphere"});this._shapes.push((new Y4).data(f).d(function(t){return u(t.feature)}).select(o.node()).x(0).y(0).config(lb.bind(this)(this._shapeConfig,"shape","Path")).render());var p=this._zoomGroup.selectAll("g.d3plus-geomap-pins").data([0]);p=p.enter().append("g").attr("class","d3plus-geomap-pins").merge(p);var y=(new TS).config(lb.bind(this)(this._shapeConfig,"shape","Circle")).data(l).r(function(t,e){return h(r._pointSize(t,e))}).select(p.node()).sort(function(t,e){return r._pointSize(e)-r._pointSize(t)}).x(function(t,e){return r._projection(r._point(t,e))[0]}).y(function(t,e){return r._projection(r._point(t,e))[1]});var m=Object.keys(this._on);var _=m.filter(function(t){return t.includes(".Circle")}),b=m.filter(function(t){return!t.includes(".")}),w=m.filter(function(t){return t.includes(".shape")});for(var x=0;x<b.length;x++){y.on(b[x],this._on[b[x]])}for(var k=0;k<w.length;k++){y.on(w[k],this._on[w[k]])}for(var S=0;S<_.length;S++){y.on(_[S],this._on[_[S]])}this._shapes.push(y.render());return this}},{key:"fitFilter",value:function t(e){if(arguments.length){this._zoomSet=false;if(typeof e==="function")return this._fitFilter=e,this;if(!(e instanceof Array))e=[e];return this._fitFilter=function(t){return e.includes(t.id)},this}return this._fitFilter}},{key:"fitKey",value:function t(e){if(arguments.length){this._fitKey=e;this._zoomSet=false;return this}return this._fitKey}},{key:"fitObject",value:function t(e,n){if(arguments.length){if(typeof e==="string"){var r=this._queue.find(function(t){return t[3]==="fitObject"});var i=[Vj.bind(this),e,n,"fitObject"];if(r)this._queue[this._queue.indexOf(r)]=i;else this._queue.push(i)}else{this._fitObject=e}this._zoomSet=false;return this}return this._fitObject}},{key:"ocean",value:function t(e){return arguments.length?(this._ocean=e,this):this._ocean}},{key:"point",value:function t(e){return arguments.length?(this._point=typeof e==="function"?e:cb(e),this):this._point}},{key:"pointSize",value:function t(e){return arguments.length?(this._pointSize=typeof e==="function"?e:cb(e),this):this._pointSize}},{key:"pointSizeMax",value:function t(e){return arguments.length?(this._pointSizeMax=e,this):this._pointSizeMax}},{key:"pointSizeMin",value:function t(e){return arguments.length?(this._pointSizeMin=e,this):this._pointSizeMin}},{key:"projection",value:function t(e){if(arguments.length&&e!=="geoMercator")this.tiles(false);return arguments.length?(this._projection=typeof e==="string"?_V[e]?_V[e]():_V.geoMercator():e,this):this._projection}},{key:"projectionPadding",value:function t(e){return arguments.length?(this._projectionPadding=Cb(e),this):this._projectionPadding}},{key:"projectionRotate",value:function t(e){if(arguments.length){this._projection.rotate(e);this.tiles(false);this._zoomSet=false;return this}else{return this._projectionRotate}}},{key:"tiles",value:function t(e){if(arguments.length){this._tiles=e;var n=bV(this._tileUrl);if(e&&this._attribution==="")this._attribution=n;else if(!e&&this._attribution===n)this._attribution="";return this}return this._tiles}},{key:"tileUrl",value:function t(e){if(arguments.length){this._tileUrl=e;if(this._tiles)this._attribution=bV(e);if(this._tileGroup)this._renderTiles.bind(this)();return this}return this._tileUrl}},{key:"topojson",value:function t(e,n){if(arguments.length){if(typeof e==="string"){var r=this._queue.find(function(t){return t[3]==="topojson"});var i=[Vj.bind(this),e,n,"topojson"];if(r)this._queue[this._queue.indexOf(r)]=i;else this._queue.push(i)}else{this._topojson=e}this._zoomSet=false;return this}return this._topojson}},{key:"topojsonFill",value:function t(e){return arguments.length?(this._topojsonFill=typeof e==="function"?e:cb(e),this):this._topojsonFill}},{key:"topojsonFilter",value:function t(e){if(arguments.length){this._zoomSet=false;if(typeof e==="function")return this._topojsonFilter=e,this;if(!(e instanceof Array))e=[e];return this._topojsonFilter=function(t){return e.includes(t.id)},this}return this._topojsonFilter}},{key:"topojsonKey",value:function t(e){if(arguments.length){this._topojsonKey=e;this._zoomSet=false;return this}return this._topojsonKey}},{key:"topojsonId",value:function t(e){return arguments.length?(this._topojsonId=typeof e==="function"?e:Zl(e),this):this._topojsonId}}]);return C}(JG);function kV(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){kV=function t(e){return typeof e}}else{kV=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return kV(t)}function SV(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function CV(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function EV(t,e,n){if(e)CV(t.prototype,e);if(n)CV(t,n);return t}function AV(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){AV=Reflect.get}else{AV=function t(e,n,r){var i=MV(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(r)}return a.value}}return AV(t,e,n||t)}function MV(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=NV(t);if(t===null)break}return t}function RV(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)TV(t,e)}function TV(t,e){TV=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return TV(t,e)}function OV(i){var a=DV();return function t(){var e=NV(i),n;if(a){var r=NV(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return PV(this,n)}}function PV(t,e){if(e&&(kV(e)==="object"||typeof e==="function")){return e}return BV(t)}function BV(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function DV(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function NV(t){NV=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return NV(t)}var zV=function(t){RV(l,t);var e=OV(l);function l(){var r;SV(this,l);r=e.call(this);var n=r._legend;r._legend=function(t,e){if(e.length===r._filteredData.length)return false;return n.bind(BV(r))(t,e)};r._legendSort=function(t,e){return r._value(e)-r._value(t)};r._shapeConfig=tc(r._shapeConfig,{ariaLabel:function t(e,n){return r._pieData?"".concat(++r._pieData[n].index,". ").concat(r._drawLabel(e,n),", ").concat(r._value(e,n),"."):""},Path:{labelConfig:{fontResize:true}}});r._innerRadius=0;r._legendSort=function(t,e){return r._value(e)-r._value(t)};r._padPixel=0;r._pie=D3();r._sort=function(t,e){return r._value(e)-r._value(t)};r._value=Zl("value");return r}EV(l,[{key:"_draw",value:function t(e){var n=this;AV(NV(l.prototype),"_draw",this).call(this,e);var r=this._height-this._margin.top-this._margin.bottom,i=this._width-this._margin.left-this._margin.right;var a=Ce([i,r])/2;var o=this._pieData=this._pie.padAngle(this._padAngle||this._padPixel/a).sort(this._sort).value(this._value)(this._filteredData);o.forEach(function(t,e){t.__d3plus__=true;t.i=e});var s=k3().innerRadius(this._innerRadius).outerRadius(a);var u="translate(".concat(i/2+this._margin.left,", ").concat(r/2+this._margin.top,")");this._shapes.push((new Y4).data(o).d(s).select(fb("g.d3plus-Pie",{parent:this._select,enter:{transform:u},update:{transform:u}}).node()).config({id:function t(e){return n._ids(e).join("-")},x:0,y:0}).label(this._drawLabel).config(lb.bind(this)(this._shapeConfig,"shape","Path")).render());return this}},{key:"innerRadius",value:function t(e){return arguments.length?(this._innerRadius=e,this):this._innerRadius}},{key:"padAngle",value:function t(e){return arguments.length?(this._padAngle=e,this):this._padAngle}},{key:"padPixel",value:function t(e){return arguments.length?(this._padPixel=e,this):this._padPixel}},{key:"sort",value:function t(e){return arguments.length?(this._sort=e,this):this._sort}},{key:"value",value:function t(e){return arguments.length?(this._value=typeof e==="function"?e:Zl(e),this):this._value}}]);return l}(JG);function FV(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){FV=function t(e){return typeof e}}else{FV=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return FV(t)}function jV(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function IV(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)LV(t,e)}function LV(t,e){LV=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return LV(t,e)}function HV(i){var a=VV();return function t(){var e=WV(i),n;if(a){var r=WV(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return UV(this,n)}}function UV(t,e){if(e&&(FV(e)==="object"||typeof e==="function")){return e}return GV(t)}function GV(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function VV(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function WV(t){WV=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return WV(t)}var qV=function(t){IV(n,t);var e=HV(n);function n(){var t;jV(this,n);t=e.call(this);t._innerRadius=function(){return Ce([t._width-t._margin.left-t._margin.right,t._height-t._margin.top-t._margin.bottom])/4};t._padPixel=2;return t}return n}(zV);function KV(t){var e=0,n=t.children,r=n&&n.length;if(!r)e=1;else while(--r>=0){e+=n[r].value}t.value=e}function YV(){return this.eachAfter(KV)}function XV(t,e){var n=-1;var r=_createForOfIteratorHelper2(this),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;t.call(e,a,++n,this)}}catch(t){r.e(t)}finally{r.f()}return this}function ZV(t,e){var n=this,r=[n],i,a,o=-1;while(n=r.pop()){t.call(e,n,++o,this);if(i=n.children){for(a=i.length-1;a>=0;--a){r.push(i[a])}}}return this}function $V(t,e){var n=this,r=[n],i=[],a,o,s,u=-1;while(n=r.pop()){i.push(n);if(a=n.children){for(o=0,s=a.length;o<s;++o){r.push(a[o])}}}while(n=i.pop()){t.call(e,n,++u,this)}return this}function JV(t,e){var n=-1;var r=_createForOfIteratorHelper2(this),i;try{for(r.s();!(i=r.n()).done;){var a=i.value;if(t.call(e,a,++n,this)){return a}}}catch(t){r.e(t)}finally{r.f()}}function QV(i){return this.eachAfter(function(t){var e=+i(t.data)||0,n=t.children,r=n&&n.length;while(--r>=0){e+=n[r].value}t.value=e})}function tW(e){return this.eachBefore(function(t){if(t.children){t.children.sort(e)}})}function eW(t){var e=this,n=nW(e,t),r=[e];while(e!==n){e=e.parent;r.push(e)}var i=r.length;while(t!==n){r.splice(i,0,t);t=t.parent}return r}function nW(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;t=n.pop();e=r.pop();while(t===e){i=t;t=n.pop();e=r.pop()}return i}function rW(){var t=this,e=[t];while(t=t.parent){e.push(t)}return e}function iW(){return Array.from(this)}function aW(){var e=[];this.eachBefore(function(t){if(!t.children){e.push(t)}});return e}function oW(){var e=this,n=[];e.each(function(t){if(t!==e){n.push({source:t.parent,target:t})}});return n}function sW(){var n,r,i,a,o,s;return regeneratorRuntime.wrap(function t(e){while(1){switch(e.prev=e.next){case 0:n=this,i=[n];case 1:r=i.reverse(),i=[];case 2:if(!(n=r.pop())){e.next=8;break}e.next=5;return n;case 5:if(a=n.children){for(o=0,s=a.length;o<s;++o){i.push(a[o])}}e.next=2;break;case 8:if(i.length){e.next=1;break}case 9:case"end":return e.stop()}}},u,this)}function uW(t,e){if(t instanceof Map){t=[undefined,t];if(e===undefined)e=fW}else if(e===undefined){e=cW}var n=new gW(t),r,i=[n],a,o,s,u;while(r=i.pop()){if((o=e(r.data))&&(u=(o=Array.from(o)).length)){r.children=o;for(s=u-1;s>=0;--s){i.push(a=o[s]=new gW(o[s]));a.parent=r;a.depth=r.depth+1}}}return n.eachBefore(dW)}function lW(){return uW(this).eachBefore(hW)}function cW(t){return t.children}function fW(t){return Array.isArray(t)?t[1]:null}function hW(t){if(t.data.value!==undefined)t.value=t.data.value;t.data=t.data.data}function dW(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function gW(t){this.data=t;this.depth=this.height=0;this.parent=null}gW.prototype=uW.prototype=_defineProperty2({constructor:gW,count:YV,each:XV,eachAfter:$V,eachBefore:ZV,find:JV,sum:QV,sort:tW,path:eW,ancestors:rW,descendants:iW,leaves:aW,links:oW,copy:lW},Symbol.iterator,sW);function vW(t){return _typeof2(t)==="object"&&"length"in t?t:Array.from(t)}function pW(t){var e=t.length,n,r;while(e){r=Math.random()*e--|0;n=t[e];t[e]=t[r];t[r]=n}return t}function yW(t){var e=0,n=(t=pW(Array.from(t))).length,r=[],i,a;while(e<n){i=t[e];if(a&&bW(a,i))++e;else a=xW(r=mW(r,i)),e=0}return a}function mW(t,e){var n,r;if(wW(e,t))return[e];for(n=0;n<t.length;++n){if(_W(e,t[n])&&wW(SW(t[n],e),t)){return[t[n],e]}}for(n=0;n<t.length-1;++n){for(r=n+1;r<t.length;++r){if(_W(SW(t[n],t[r]),e)&&_W(SW(t[n],e),t[r])&&_W(SW(t[r],e),t[n])&&wW(CW(t[n],t[r],e),t)){return[t[n],t[r],e]}}}throw new Error}function _W(t,e){var n=t.r-e.r,r=e.x-t.x,i=e.y-t.y;return n<0||n*n<r*r+i*i}function bW(t,e){var n=t.r-e.r+Math.max(t.r,e.r,1)*1e-9,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function wW(t,e){for(var n=0;n<e.length;++n){if(!bW(t,e[n])){return false}}return true}function xW(t){switch(t.length){case 1:return kW(t[0]);case 2:return SW(t[0],t[1]);case 3:return CW(t[0],t[1],t[2])}}function kW(t){return{x:t.x,y:t.y,r:t.r}}function SW(t,e){var n=t.x,r=t.y,i=t.r,a=e.x,o=e.y,s=e.r,u=a-n,l=o-r,c=s-i,f=Math.sqrt(u*u+l*l);return{x:(n+a+u/f*c)/2,y:(r+o+l/f*c)/2,r:(f+i+s)/2}}function CW(t,e,n){var r=t.x,i=t.y,a=t.r,o=e.x,s=e.y,u=e.r,l=n.x,c=n.y,f=n.r,h=r-o,d=r-l,g=i-s,v=i-c,p=u-a,y=f-a,m=r*r+i*i-a*a,_=m-o*o-s*s+u*u,b=m-l*l-c*c+f*f,w=d*g-h*v,x=(g*b-v*_)/(w*2)-r,k=(v*p-g*y)/w,S=(d*_-h*b)/(w*2)-i,C=(h*y-d*p)/w,E=k*k+C*C-1,A=2*(a+x*k+S*C),M=x*x+S*S-a*a,R=-(E?(A+Math.sqrt(A*A-4*E*M))/(2*E):M/A);return{x:r+x+k*R,y:i+S+C*R,r:R}}function EW(t,e,n){var r=t.x-e.x,i,a,o=t.y-e.y,s,u,l=r*r+o*o;if(l){a=e.r+n.r,a*=a;u=t.r+n.r,u*=u;if(a>u){i=(l+u-a)/(2*l);s=Math.sqrt(Math.max(0,u/l-i*i));n.x=t.x-i*r-s*o;n.y=t.y-i*o+s*r}else{i=(l+a-u)/(2*l);s=Math.sqrt(Math.max(0,a/l-i*i));n.x=e.x+i*r-s*o;n.y=e.y+i*o+s*r}}else{n.x=e.x+n.r;n.y=e.y}}function AW(t,e){var n=t.r+e.r-1e-6,r=e.x-t.x,i=e.y-t.y;return n>0&&n*n>r*r+i*i}function MW(t){var e=t._,n=t.next._,r=e.r+n.r,i=(e.x*n.r+n.x*e.r)/r,a=(e.y*n.r+n.y*e.r)/r;return i*i+a*a}function RW(t){this._=t;this.next=null;this.previous=null}function TW(t){if(!(i=(t=vW(t)).length))return 0;var e,n,r,i,a,o,s,u,l,c,f;e=t[0],e.x=0,e.y=0;if(!(i>1))return e.r;n=t[1],e.x=-n.r,n.x=e.r,n.y=0;if(!(i>2))return e.r+n.r;EW(n,e,r=t[2]);e=new RW(e),n=new RW(n),r=new RW(r);e.next=r.previous=n;n.next=e.previous=r;r.next=n.previous=e;t:for(s=3;s<i;++s){EW(e._,n._,r=t[s]),r=new RW(r);u=n.next,l=e.previous,c=n._.r,f=e._.r;do{if(c<=f){if(AW(u._,r._)){n=u,e.next=n,n.previous=e,--s;continue t}c+=u._.r,u=u.next}else{if(AW(l._,r._)){e=l,e.next=n,n.previous=e,--s;continue t}f+=l._.r,l=l.previous}}while(u!==l.next);r.previous=e,r.next=n,e.next=n.previous=n=r;a=MW(e);while((r=r.next)!==n){if((o=MW(r))<a){e=r,a=o}}n=e.next}e=[n._],r=n;while((r=r.next)!==n){e.push(r._)}r=yW(e);for(s=0;s<i;++s){e=t[s],e.x-=r.x,e.y-=r.y}return r.r}function OW(t){return t==null?null:PW(t)}function PW(t){if(typeof t!=="function")throw new Error;return t}function BW(){return 0}function DW(t){return function(){return t}}function NW(t){return Math.sqrt(t.value)}function zW(){var e=null,n=1,r=1,i=BW;function a(t){t.x=n/2,t.y=r/2;if(e){t.eachBefore(FW(e)).eachAfter(jW(i,.5)).eachBefore(IW(1))}else{t.eachBefore(FW(NW)).eachAfter(jW(BW,1)).eachAfter(jW(i,t.r/Math.min(n,r))).eachBefore(IW(Math.min(n,r)/(2*t.r)))}return t}a.radius=function(t){return arguments.length?(e=OW(t),a):e};a.size=function(t){return arguments.length?(n=+t[0],r=+t[1],a):[n,r]};a.padding=function(t){return arguments.length?(i=typeof t==="function"?t:DW(+t),a):i};return a}function FW(e){return function(t){if(!t.children){t.r=Math.max(0,+e(t)||0)}}}function jW(o,s){return function(t){if(e=t.children){var e,n,r=e.length,i=o(t)*s||0,a;if(i)for(n=0;n<r;++n){e[n].r+=i}a=TW(e);if(i)for(n=0;n<r;++n){e[n].r-=i}t.r=a+i}}}function IW(n){return function(t){var e=t.parent;t.r*=n;if(e){t.x=e.x+n*t.x;t.y=e.y+n*t.y}}}function LW(t){t.x0=Math.round(t.x0);t.y0=Math.round(t.y0);t.x1=Math.round(t.x1);t.y1=Math.round(t.y1)}function HW(t,e,n,r,i){var a=t.children,o,s=-1,u=a.length,l=t.value&&(r-e)/t.value;while(++s<u){o=a[s],o.y0=n,o.y1=i;o.x0=e,o.x1=e+=o.value*l}}function UW(t,e){return t.parent===e.parent?1:2}function GW(t){var e=t.children;return e?e[0]:t.t}function VW(t){var e=t.children;return e?e[e.length-1]:t.t}function WW(t,e,n){var r=n/(e.i-t.i);e.c-=r;e.s+=n;t.c+=r;e.z+=n;e.m+=n}function qW(t){var e=0,n=0,r=t.children,i=r.length,a;while(--i>=0){a=r[i];a.z+=e;a.m+=e;e+=a.s+(n+=a.c)}}function KW(t,e,n){return t.a.parent===e.parent?t.a:n}function YW(t,e){this._=t;this.parent=null;this.children=null;this.A=null;this.a=this;this.z=0;this.m=0;this.c=0;this.s=0;this.t=null;this.i=e}YW.prototype=Object.create(gW.prototype);function XW(t){var e=new YW(t,0),n,r=[e],i,a,o,s;while(n=r.pop()){if(a=n._.children){n.children=new Array(s=a.length);for(o=s-1;o>=0;--o){r.push(i=n.children[o]=new YW(a[o],o));i.parent=n}}}(e.parent=new YW(null,0)).children=[e];return e}function ZW(){var h=UW,l=1,c=1,f=null;function e(t){var e=XW(t);e.eachAfter(d),e.parent.m=-e.z;e.eachBefore(g);if(f)t.eachBefore(v);else{var n=t,r=t,i=t;t.eachBefore(function(t){if(t.x<n.x)n=t;if(t.x>r.x)r=t;if(t.depth>i.depth)i=t});var a=n===r?1:h(n,r)/2,o=a-n.x,s=l/(r.x+a+o),u=c/(i.depth||1);t.eachBefore(function(t){t.x=(t.x+o)*s;t.y=t.depth*u})}return t}function d(t){var e=t.children,n=t.parent.children,r=t.i?n[t.i-1]:null;if(e){qW(t);var i=(e[0].z+e[e.length-1].z)/2;if(r){t.z=r.z+h(t._,r._);t.m=t.z-i}else{t.z=i}}else if(r){t.z=r.z+h(t._,r._)}t.parent.A=a(t,r,t.parent.A||n[0])}function g(t){t._.x=t.z+t.parent.m;t.m+=t.parent.m}function a(t,e,n){if(e){var r=t,i=t,a=e,o=r.parent.children[0],s=r.m,u=i.m,l=a.m,c=o.m,f;while(a=VW(a),r=GW(r),a&&r){o=GW(o);i=VW(i);i.a=t;f=a.z+l-r.z-s+h(a._,r._);if(f>0){WW(KW(a,t,n),t,f);s+=f;u+=f}l+=a.m;s+=r.m;c+=o.m;u+=i.m}if(a&&!VW(i)){i.t=a;i.m+=l-u}if(r&&!GW(o)){o.t=r;o.m+=s-c;n=t}}return n}function v(t){t.x*=l;t.y=t.depth*c}e.separation=function(t){return arguments.length?(h=t,e):h};e.size=function(t){return arguments.length?(f=false,l=+t[0],c=+t[1],e):f?null:[l,c]};e.nodeSize=function(t){return arguments.length?(f=true,l=+t[0],c=+t[1],e):f?[l,c]:null};return e}function $W(t,e,n,r,i){var a=t.children,o,s=-1,u=a.length,l=t.value&&(i-n)/t.value;while(++s<u){o=a[s],o.x0=e,o.x1=r;o.y0=n,o.y1=n+=o.value*l}}var JW=(1+Math.sqrt(5))/2;function QW(t,e,n,r,i,a){var o=[],s=e.children,u,l,c=0,f=0,h=s.length,d,g,v=e.value,p,y,m,_,b,w,x;while(c<h){d=i-n,g=a-r;do{p=s[f++].value}while(!p&&f<h);y=m=p;w=Math.max(g/d,d/g)/(v*t);x=p*p*w;b=Math.max(m/x,x/y);for(;f<h;++f){p+=l=s[f].value;if(l<y)y=l;if(l>m)m=l;x=p*p*w;_=Math.max(m/x,x/y);if(_>b){p-=l;break}b=_}o.push(u={value:p,dice:d<g,children:s.slice(c,f)});if(u.dice)HW(u,n,r,i,v?r+=g*p/v:a);else $W(u,n,r,v?n+=d*p/v:i,a);v-=p,c=f}return o}var tq=function e(a){function t(t,e,n,r,i){QW(a,t,e,n,r,i)}t.ratio=function(t){return e((t=+t)>1?t:1)};return t}(JW);function eq(){var o=tq,e=false,n=1,r=1,s=[0],u=BW,l=BW,c=BW,f=BW,h=BW;function i(t){t.x0=t.y0=0;t.x1=n;t.y1=r;t.eachBefore(a);s=[0];if(e)t.eachBefore(LW);return t}function a(t){var e=s[t.depth],n=t.x0+e,r=t.y0+e,i=t.x1-e,a=t.y1-e;if(i<n)n=i=(n+i)/2;if(a<r)r=a=(r+a)/2;t.x0=n;t.y0=r;t.x1=i;t.y1=a;if(t.children){e=s[t.depth+1]=u(t)/2;n+=h(t)-e;r+=l(t)-e;i-=c(t)-e;a-=f(t)-e;if(i<n)n=i=(n+i)/2;if(a<r)r=a=(r+a)/2;o(t,n,r,i,a)}}i.round=function(t){return arguments.length?(e=!!t,i):e};i.size=function(t){return arguments.length?(n=+t[0],r=+t[1],i):[n,r]};i.tile=function(t){return arguments.length?(o=PW(t),i):o};i.padding=function(t){return arguments.length?i.paddingInner(t).paddingOuter(t):i.paddingInner()};i.paddingInner=function(t){return arguments.length?(u=typeof t==="function"?t:DW(+t),i):u};i.paddingOuter=function(t){return arguments.length?i.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):i.paddingTop()};i.paddingTop=function(t){return arguments.length?(l=typeof t==="function"?t:DW(+t),i):l};i.paddingRight=function(t){return arguments.length?(c=typeof t==="function"?t:DW(+t),i):c};i.paddingBottom=function(t){return arguments.length?(f=typeof t==="function"?t:DW(+t),i):f};i.paddingLeft=function(t){return arguments.length?(h=typeof t==="function"?t:DW(+t),i):h};return i}function nq(t,e,n,r,i){var y=t.children,a,o=y.length,s,m=new Array(o+1);for(m[0]=s=a=0;a<o;++a){m[a+1]=s+=y[a].value}_(0,o,t.value,e,n,r,i);function _(t,e,n,r,i,a,o){if(t>=e-1){var s=y[t];s.x0=r,s.y0=i;s.x1=a,s.y1=o;return}var u=m[t],l=n/2+u,c=t+1,f=e-1;while(c<f){var h=c+f>>>1;if(m[h]<l)c=h+1;else f=h}if(l-m[c-1]<m[c]-l&&t+1<c)--c;var d=m[c]-u,g=n-d;if(a-r>o-i){var v=n?(r*g+a*d)/n:a;_(t,c,d,r,i,v,o);_(c,e,g,v,i,a,o)}else{var p=n?(i*g+o*d)/n:o;_(t,c,d,r,i,a,p);_(c,e,g,r,p,a,o)}}}function rq(t,e,n,r,i){(t.depth&1?$W:HW)(t,e,n,r,i)}var iq=function e(d){function t(t,e,n,r,i){if((a=t._squarify)&&a.ratio===d){var a,o,s,u,l=-1,c,f=a.length,h=t.value;while(++l<f){o=a[l],s=o.children;for(u=o.value=0,c=s.length;u<c;++u){o.value+=s[u].value}if(o.dice)HW(o,e,n,r,h?n+=(i-n)*o.value/h:i);else $W(o,e,n,h?e+=(r-e)*o.value/h:r,i);h-=o.value}}else{t._squarify=a=QW(d,t,e,n,r,i);a.ratio=d}}t.ratio=function(t){return e((t=+t)>1?t:1)};return t}(JW);function aq(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){aq=function t(e){return typeof e}}else{aq=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return aq(t)}function oq(t){return cq(t)||lq(t)||uq(t)||sq()}function sq(){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 uq(t,e){if(!t)return;if(typeof t==="string")return fq(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fq(t,e)}function lq(t){if(typeof Symbol!=="undefined"&&Symbol.iterator in Object(t))return Array.from(t)}function cq(t){if(Array.isArray(t))return fq(t)}function fq(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,r=new Array(e);n<e;n++){r[n]=t[n]}return r}function hq(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function dq(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function gq(t,e,n){if(e)dq(t.prototype,e);if(n)dq(t,n);return t}function vq(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){vq=Reflect.get}else{vq=function t(e,n,r){var i=pq(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(r)}return a.value}}return vq(t,e,n||t)}function pq(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=kq(t);if(t===null)break}return t}function yq(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)mq(t,e)}function mq(t,e){mq=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return mq(t,e)}function _q(i){var a=xq();return function t(){var e=kq(i),n;if(a){var r=kq(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return bq(this,n)}}function bq(t,e){if(e&&(aq(e)==="object"||typeof e==="function")){return e}return wq(t)}function wq(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function xq(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function kq(t){kq=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return kq(t)}var Sq=function e(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];if(t.values){t.values.forEach(function(t){n.push(t);e(t,n)})}else{n.push(t)}return n};var Cq=function(t){yq(c,t);var e=_q(c);function c(){var o;hq(this,c);o=e.call(this);o._layoutPadding=1;var n=o._legend;o._legend=function(t,e){if(e.length===o._filteredData.length)return false;return n.bind(wq(o))(t,e)};o._on.mouseenter=function(){};var s=o._on["mousemove.legend"];o._on["mousemove.legend"]=function(n,t,e,r){s(n,t,e,r);var i=o._ids(n,t);var a=Sq(n);o.hover(function(e){var t=Object.keys(e).filter(function(t){return t!=="value"}).every(function(t){return n[t]&&n[t].includes(e[t])});if(t)a.push(e);else if(i.includes(e.key))a.push.apply(a,oq(Sq(e,[e])));return a.includes(e)})};var i=o._on["mousemove.shape"];o._on["mousemove.shape"]=function(e,t,n,r){if(e.__d3plusTooltip__)i(e,t,n,r);o.hover(function(t){return Sq(e,[e]).includes(t)})};o._pack=zW();o._packOpacity=cb(.25);o._shape=cb("Circle");o._shapeConfig=tc(o._shapeConfig,{Circle:{label:function t(e){return e.parent&&!e.children?e.id:false},labelConfig:{fontResize:true},opacity:function t(e){return e.__d3plusOpacity__}}});o._sort=function(t,e){return e.value-t.value};o._sum=Zl("value");return o}gq(c,[{key:"_draw",value:function t(e){var n=this;vq(kq(c.prototype),"_draw",this).call(this,e);var r=this._height-this._margin.top-this._margin.bottom,i=this._width-this._margin.left-this._margin.right;var a=Math.min(r,i);var o="translate(".concat((i-a)/2,", ").concat((r-a)/2,")");var s=vb();for(var u=0;u<=this._drawDepth;u++){s.key(this._groupBy[u])}s=s.entries(this._filteredData);var l=this._pack.padding(this._layoutPadding).size([a,a])(uW({key:s.key,values:s},function(t){return t.values}).sum(this._sum).sort(this._sort)).descendants();l.forEach(function(t,e){t.__d3plus__=true;t.i=e;t.id=t.parent?t.parent.data.key:null;t.data.__d3plusOpacity__=t.height?n._packOpacity(t.data,e):1;t.data.__d3plusTooltip__=!t.height?true:false});this._shapes.push((new TS).data(l).select(fb("g.d3plus-Pack",{parent:this._select,enter:{transform:o},update:{transform:o}}).node()).config(lb.bind(this)(this._shapeConfig,"shape","Circle")).render());return this}},{key:"hover",value:function t(e){this._hover=e;this._shapes.forEach(function(t){return t.hover(e)});if(this._legend)this._legendClass.hover(e);return this}},{key:"layoutPadding",value:function t(e){return arguments.length?(this._layoutPadding=e,this):this._layoutPadding}},{key:"packOpacity",value:function t(e){return arguments.length?(this._packOpacity=typeof e==="function"?e:cb(e),this):this._packOpacity}},{key:"sort",value:function t(e){return arguments.length?(this._sort=e,this):this._sort}},{key:"sum",value:function t(e){return arguments.length?(this._sum=typeof e==="function"?e:Zl(e),this):this._sum}}]);return c}(JG);function Eq(t,e){if(!(e instanceof Array))e=[e];var n=vb();for(var r=0;r<e.length;r++){n.key(e[r])}var i=n.entries(t);return Aq(i)}function Aq(t){return t.map(function(t){if(t.key&&t.values){if(t.values[0].key==="undefined")return t.values[0].values[0];else t.values=Aq(t.values)}return t})}function Mq(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){Mq=function t(e){return typeof e}}else{Mq=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return Mq(t)}function Rq(t,e,n){if(e in t){Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true})}else{t[e]=n}return t}function Tq(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function Oq(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function Pq(t,e,n){if(e)Oq(t.prototype,e);if(n)Oq(t,n);return t}function Bq(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){Bq=Reflect.get}else{Bq=function t(e,n,r){var i=Dq(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(r)}return a.value}}return Bq(t,e,n||t)}function Dq(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=Hq(t);if(t===null)break}return t}function Nq(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)zq(t,e)}function zq(t,e){zq=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return zq(t,e)}function Fq(i){var a=Lq();return function t(){var e=Hq(i),n;if(a){var r=Hq(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return jq(this,n)}}function jq(t,e){if(e&&(Mq(e)==="object"||typeof e==="function")){return e}return Iq(t)}function Iq(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function Lq(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function Hq(t){Hq=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return Hq(t)}var Uq=function(t){Nq(p,t);var e=Fq(p);function p(){var r;Tq(this,p);r=e.call(this);r._orient="vertical";r._separation=function(t,e){return t.parent===e.parent?1:2};r._shape=cb("Circle");r._shapeConfig=tc(r._shapeConfig,{ariaLabel:function t(e,n){return r._treeData?"".concat(r._treeData[n].depth,". ").concat(r._drawLabel(e,n),"."):""},labelConfig:{fontColor:"#444"},Path:{fill:"none",stroke:"#ccc",strokeWidth:1},r:cb(5),width:cb(10),height:cb(10)});r._tree=ZW();return r}Pq(p,[{key:"_draw",value:function t(e){var f=this;Bq(Hq(p.prototype),"_draw",this).call(this,e);var n=this._orient==="vertical"?this._height-this._margin.top-this._margin.bottom:this._width-this._margin.left-this._margin.right,o=this._orient==="vertical"?"left":"top",r=this,i="translate(".concat(this._margin.left,", ").concat(this._margin.top,")"),s=this._orient==="horizontal"?this._height-this._margin.top-this._margin.bottom:this._width-this._margin.left-this._margin.right;var a=this._treeData=this._tree.separation(this._separation).size([s,n])(uW({key:"root",values:Eq(this._filteredData,this._groupBy.slice(0,this._drawDepth+1))},function(t){return t.key&&t.values?t.values:null}).sort(this._sort)).descendants().filter(function(t){return t.depth<=f._groupBy.length&&t.parent});function u(t){return Sb(t.values.map(function(t){return t.key&&t.values?u(t):t}),r._aggs)}a.forEach(function(t,e){if(t.data.key&&t.data.values)t.data=u(t.data);t.__d3plus__=true;t.i=e});var l=this._shapeConfig.r;if(typeof l!=="function")l=cb(l);var c=Se(a,function(t){return t.depth===1?l(t.data,t.i):0});var h=Se(a,function(t){return t.children?0:l(t.data,t.i)});var d=ke(a,function(t){return t.y});this._labelHeight=Ce([this._orient==="vertical"?50:100,(d[1]-c-h)/(this._groupBy.length+1)]);this._labelWidths=Eq(a,function(t){return t.depth}).map(function(a){return a.values.reduce(function(t,e,n){var r=n<a.values.length-1?a.values[n+1].x:s+f._margin[o],i=n?a.values[n-1].x:f._margin[o];return Ce([t,r-e.x,e.x-i])},s)});var g=Xb().domain(d).range([c+this._labelHeight,n-h-this._labelHeight]);a.forEach(function(t){var e=g(t.y);if(f._orient==="horizontal"){t.y=t.x;t.x=e}else t.y=e});var v={parent:this._select,enter:{transform:i},update:{transform:i}};this._shapes.push((new Y4).data(a.filter(function(t){return t.depth>1})).select(fb("g.d3plus-Tree-Links",v).node()).config(lb.bind(this)(this._shapeConfig,"shape","Path")).config({d:function t(e){var n=f._shapeConfig.r;if(typeof n==="function")n=n(e.data,e.i);var r=e.parent.x-e.x+(f._orient==="vertical"?0:n),i=e.parent.y-e.y+(f._orient==="vertical"?n:0),a=f._orient==="vertical"?0:-n,o=f._orient==="vertical"?-n:0;return f._orient==="vertical"?"M".concat(a,",").concat(o,"C").concat(a,",").concat((o+i)/2," ").concat(r,",").concat((o+i)/2," ").concat(r,",").concat(i):"M".concat(a,",").concat(o,"C").concat((a+r)/2,",").concat(o," ").concat((a+r)/2,",").concat(i," ").concat(r,",").concat(i)},id:function t(e,n){return f._ids(e,n).join("-")}}).render());this._shapes.push((new TS).data(a).select(fb("g.d3plus-Tree-Shapes",v).node()).config(lb.bind(this)(this._shapeConfig,"shape","Circle")).config({id:function t(e,n){return f._ids(e,n).join("-")},label:function t(e,n){if(f._label)return f._label(e.data,n);var r=f._ids(e,n).slice(0,e.depth);return r[r.length-1]},labelConfig:{textAnchor:function t(e){return f._orient==="vertical"?"middle":e.data.children&&e.data.depth!==f._groupBy.length?"end":"start"},verticalAlign:function t(e){return f._orient==="vertical"?e.data.depth===1?"bottom":"top":"middle"}},hitArea:function t(e,n,r){var i=f._labelHeight,a=f._labelWidths[e.depth-1];return{width:f._orient==="vertical"?a:r.r*2+a,height:f._orient==="horizontal"?i:r.r*2+i,x:f._orient==="vertical"?-a/2:e.children&&e.depth!==f._groupBy.length?-(r.r+a):-r.r,y:f._orient==="horizontal"?-i/2:e.children&&e.depth!==f._groupBy.length?-(r.r+f._labelHeight):-r.r}},labelBounds:function t(e,n,r){var i;var a=f._labelHeight,o=f._orient==="vertical"?"height":"width",s=f._labelWidths[e.depth-1],u=f._orient==="vertical"?"width":"height",l=f._orient==="vertical"?"x":"y",c=f._orient==="vertical"?"y":"x";return i={},Rq(i,u,s),Rq(i,o,a),Rq(i,l,-s/2),Rq(i,c,e.children&&e.depth!==f._groupBy.length?-(r.r+a):r.r),i}}).render());return this}},{key:"orient",value:function t(e){return arguments.length?(this._orient=e,this):this._orient}},{key:"separation",value:function t(e){return arguments.length?(this._separation=e,this):this._separation}}]);return p}(JG);function Gq(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){Gq=function t(e){return typeof e}}else{Gq=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return Gq(t)}function Vq(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function Wq(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function qq(t,e,n){if(e)Wq(t.prototype,e);if(n)Wq(t,n);return t}function Kq(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){Kq=Reflect.get}else{Kq=function t(e,n,r){var i=Yq(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(r)}return a.value}}return Kq(t,e,n||t)}function Yq(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=eK(t);if(t===null)break}return t}function Xq(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)Zq(t,e)}function Zq(t,e){Zq=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return Zq(t,e)}function $q(i){var a=tK();return function t(){var e=eK(i),n;if(a){var r=eK(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return Jq(this,n)}}function Jq(t,e){if(e&&(Gq(e)==="object"||typeof e==="function")){return e}return Qq(t)}function Qq(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function tK(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function eK(t){eK=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return eK(t)}var nK={treemapBinary:nq,treemapDice:HW,treemapSlice:$W,treemapSliceDice:rq,treemapSquarify:tq,treemapResquarify:iq};var rK=function(t){Xq(v,t);var e=$q(v);function v(){var i;Vq(this,v);i=e.call(this);i._layoutPadding=1;var n=i._legend;i._legend=function(t,e){if(e.length===i._filteredData.length)return false;return n.bind(Qq(i))(t,e)};i._legendSort=function(t,e){return i._sum(e)-i._sum(t)};i._legendTooltip=tc({},i._legendTooltip,{tbody:[]});i._shapeConfig=tc({},i._shapeConfig,{ariaLabel:function t(e,n){var r=i._rankData?"".concat(i._rankData.indexOf(e)+1,". "):"";return"".concat(r).concat(i._drawLabel(e,n),", ").concat(i._sum(e,n),".")},labelConfig:{fontMax:40,fontMin:8,fontResize:true,padding:5}});i._sort=function(t,e){var n=a(t);var r=a(e);return n&&!r?1:!n&&r?-1:e.value-t.value};i._sum=Zl("value");i._thresholdKey=i._sum;i._tile=tq;i._tooltipConfig=tc({},i._tooltipConfig,{tbody:[[function(){return i._translate("Share")},function(t,e,n){return"".concat(cw(n.share*100,i._locale),"%")}]]});i._treemap=eq().round(true);var a=function t(e){return e.children&&e.children.length===1&&e.children[0].data._isAggregation};return i}qq(v,[{key:"_draw",value:function t(e){var n=this;Kq(eK(v.prototype),"_draw",this).call(this,e);var r=vb();for(var i=0;i<=this._drawDepth;i++){r.key(this._groupBy[i])}r=r.entries(this._filteredData);var a=this._treemap.padding(this._layoutPadding).size([this._width-this._margin.left-this._margin.right,this._height-this._margin.top-this._margin.bottom]).tile(this._tile)(uW({values:r},function(t){return t.values}).sum(this._sum).sort(this._sort));var o=[],s=this;function u(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.depth<=s._drawDepth)u(n.children);else{var r=n.data.values.length===1?s._filteredData.indexOf(n.data.values[0]):undefined;n.__d3plus__=true;n.id=n.data.key;n.i=r>-1?r:undefined;n.data=Sb(n.data.values,s._aggs);n.x=n.x0+(n.x1-n.x0)/2;n.y=n.y0+(n.y1-n.y0)/2;o.push(n)}}}if(a.children)u(a.children);this._rankData=o.sort(this._sort).map(function(t){return t.data});var l=a.value;o.forEach(function(t){t.share=n._sum(t.data,t.i)/l});var c="translate(".concat(this._margin.left,", ").concat(this._margin.top,")");var f=lb.bind(this)(this._shapeConfig,"shape","Rect");var h=f.labelConfig.fontMax;var d=f.labelConfig.fontMin;var g=f.labelConfig.padding;this._shapes.push((new VS).data(o).label(function(t){return[n._drawLabel(t.data,t.i),"".concat(cw(t.share*100,n._locale),"%")]}).select(fb("g.d3plus-Treemap",{parent:this._select,enter:{transform:c},update:{transform:c}}).node()).config({height:function t(e){return e.y1-e.y0},labelBounds:function t(e,n,r){var i=r.height;var a=Math.min(h,(i-g*2)*.5);if(a<d)a=0;return[{width:r.width,height:i-a,x:-r.width/2,y:-i/2},{width:r.width,height:a+g*2,x:-r.width/2,y:i/2-a-g*2}]},labelConfig:{textAnchor:function t(e,n,r){var i,a=r;while(typeof i==="undefined"&&a){if(typeof a.l!=="undefined")i=a.l;a=a.__d3plusParent__}return i?"middle":"start"},verticalAlign:function t(e,n,r){var i,a=r;while(typeof i==="undefined"&&a){if(typeof a.l!=="undefined")i=a.l;a=a.__d3plusParent__}return i?"bottom":"top"}},width:function t(e){return e.x1-e.x0}}).config(f).render());return this}},{key:"_thresholdFunction",value:function t(e){var c=this._aggs;var f=this._drawDepth;var h=this._groupBy;var d=this._threshold;var g=this._thresholdKey;var v=Re(e,g);if(d&&g){return p(e,0)}function p(t,r){if(r<f){return vb().key(h[r]).entries(t).reduce(function(t,e){var n=p(e.values,r+1);return t.concat(n)},[])}if(r===f){var e=Math.min(1,Math.max(0,d(t)));if(!isFinite(e)||isNaN(e))return null;var n=[];var i=t.slice();var a=e*v;var o=i.length;while(o--){var s=i[o];if(g(s)<a){var u=i.indexOf(s);i.splice(u,1);n.push(s)}}if(n.length>0){var l=Sb(n,c);l._isAggregation=true;l._threshold=e;i.push(l)}return i}throw new Error("Depth is higher than the amount of grouping levels.")}return e}},{key:"layoutPadding",value:function t(e){return arguments.length?(this._layoutPadding=typeof e==="function"?e:cb(e),this):this._layoutPadding}},{key:"sort",value:function t(e){return arguments.length?(this._sort=e,this):this._sort}},{key:"sum",value:function t(e){if(arguments.length){this._sum=typeof e==="function"?e:Zl(e);this._thresholdKey=this._sum;return this}else return this._sum}},{key:"tile",value:function t(e){return arguments.length?(this._tile=typeof e==="string"?nK["treemap".concat(e.charAt(0).toUpperCase()).concat(e.slice(1))]||tq:e,this):this._tile}}]);return v}(JG);function iK(t,e,n){return e[t]||this["_".concat(t)](e,n)}function aK(t,e){return uK(t)||sK(t,e)||fK(t,e)||oK()}function oK(){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 sK(t,e){var n=t==null?null:typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n==null)return;var r=[];var i=true;var a=false;var o,s;try{for(n=n.call(t);!(i=(o=n.next()).done);i=true){r.push(o.value);if(e&&r.length===e)break}}catch(t){a=true;s=t}finally{try{if(!i&&n["return"]!=null)n["return"]()}finally{if(a)throw s}}return r}function uK(t){if(Array.isArray(t))return t}function lK(t){return dK(t)||hK(t)||fK(t)||cK()}function cK(){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 fK(t,e){if(!t)return;if(typeof t==="string")return gK(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gK(t,e)}function hK(t){if(typeof Symbol!=="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function dK(t){if(Array.isArray(t))return gK(t)}function gK(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,r=new Array(e);n<e;n++){r[n]=t[n]}return r}var vK=function t(e,n){var r;return(r=[]).concat.apply(r,lK(e.map(function(e){return n.map(function(t){return[].concat(e,t)})})))};function pK(){var o=this;var s=this._filteredData;var t=(this._rowList||kb(s.map(this._row))).sort(this._rowSort);var e=(this._columnList||kb(s.map(this._column))).sort(this._columnSort);if(!t.length||!e.length)return this;var n=vK(t,e).map(function(t){var e=aK(t,2),n=e[0],r=e[1];var i={__d3plusTooltip__:true,__d3plus__:true,column:r,row:n};var a=s.findIndex(function(t,e){return o._row(t,e)===n&&o._column(t,e)===r});if(a>=0){i.i=a;i.data=s[a]}else{i.data={row:n,column:r}}return i});return{rowValues:t,columnValues:e,shapeData:n}}function yK(t){"@babel/helpers - typeof";return yK="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yK(t)}function mK(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function _K(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function bK(t,e,n){if(e)_K(t.prototype,e);if(n)_K(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function wK(){if(typeof Reflect!=="undefined"&&Reflect.get){wK=Reflect.get}else{wK=function t(e,n,r){var i=xK(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(arguments.length<3?e:r)}return a.value}}return wK.apply(this,arguments)}function xK(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=RK(t);if(t===null)break}return t}function kK(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});Object.defineProperty(t,"prototype",{writable:false});if(e)SK(t,e)}function SK(t,e){SK=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return SK(t,e)}function CK(i){var a=MK();return function t(){var e=RK(i),n;if(a){var r=RK(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return EK(this,n)}}function EK(t,e){if(e&&(yK(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return AK(t)}function AK(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function MK(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function RK(t){RK=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return RK(t)}var TK={align:"start",barConfig:{stroke:0},gridSize:0,padding:5,paddingInner:0,paddingOuter:0,scale:"band",tickSize:0};var OK=function(t){kK(E,t);var e=CK(E);function E(){var o;mK(this,E);o=e.call(this);o._cellPadding=2;o._column=Zl("column");o._columnAxis=new mC;o._columnConfig=tc({orient:"top"},TK);o._columnSort=function(t,e){return"".concat(t).localeCompare("".concat(e))};o._label=function(t,e){return"".concat(iK.bind(AK(o))("row",t,e)," / ").concat(iK.bind(AK(o))("column",t,e))};var s=o._on["mousemove.shape"];o._on["mousemove.shape"]=function(t,e,n,r){s(t,e,n,r);var i=iK.bind(AK(o))("row",t,e);var a=iK.bind(AK(o))("column",t,e);o.hover(function(t,e){return iK.bind(AK(o))("row",t,e)===i||iK.bind(AK(o))("column",t,e)===a})};o._row=Zl("row");o._rowAxis=new mC;o._rowConfig=tc({orient:"left"},TK);o._rowSort=function(t,e){return"".concat(t).localeCompare("".concat(e))};return o}bK(E,[{key:"_draw",value:function t(e){var n=pK.bind(this)(this._filteredData),r=n.rowValues,i=n.columnValues,a=n.shapeData;if(!r.length||!i.length)return this;var o=this._height-this._margin.top-this._margin.bottom,s=this._select,u=this._transition,l=this._width-this._margin.left-this._margin.right;var c={opacity:0};var f={opacity:1};var h=l/i.length<120;var d=function t(e,n){return fb("g.d3plus-Matrix-".concat(e),Object.assign({parent:s,transition:u},n)).node()};this._rowAxis.select(d("row",{enter:c,update:c})).domain(r).height(o-this._margin.top-this._margin.bottom-this._padding.bottom-this._padding.top).maxSize(l/4).width(l).config(this._rowConfig).render();var g=this._rowAxis.outerBounds().width;this._padding.left+=g;var v="translate(0, ".concat(this._margin.top,")");var p=Object.assign({transform:v},c);this._columnAxis.select(d("column",{enter:p,update:p})).domain(i).range([this._margin.left+this._padding.left,l-this._margin.right+this._padding.right]).height(o).maxSize(o/4).width(l).labelRotation(h).config(this._columnConfig).render();var y=this._columnAxis.outerBounds().height;this._padding.top+=y;wK(RK(E.prototype),"_draw",this).call(this,e);var m="translate(".concat(this._margin.left,", ").concat(this._margin.top,")");v="translate(0, ".concat(this._margin.top,")");var _=Object.assign({transform:v},f);this._rowAxis.select(d("row",{update:Object.assign({transform:m},f)})).height(o-this._margin.top-this._margin.bottom-this._padding.bottom).maxSize(g).range([y+this._columnAxis.padding(),undefined]).render();this._columnAxis.select(d("column",{update:_})).range([this._margin.left+this._padding.left+this._rowAxis.padding(),l-this._margin.right+this._padding.right]).maxSize(y).render();var b=this._rowAxis._getPosition.bind(this._rowAxis);var w=this._columnAxis._getPosition.bind(this._columnAxis);var x=r.length>1?b(r[1])-b(r[0]):this._rowAxis.height();var k=i.length>1?w(i[1])-w(i[0]):this._columnAxis.width();var S="translate(0, ".concat(this._margin.top,")");var C=lb.bind(this)(this._shapeConfig,"shape","Rect");this._shapes.push((new VS).data(a).select(fb("g.d3plus-Matrix-cells",{parent:this._select,enter:{transform:S},update:{transform:S}}).node()).config({height:x-this._cellPadding,width:k-this._cellPadding,x:function t(e){return w(e.column)+k/2},y:function t(e){return b(e.row)+x/2}}).config(C).render());return this}},{key:"cellPadding",value:function t(e){return arguments.length?(this._cellPadding=e,this):this._cellPadding}},{key:"column",value:function t(e){return arguments.length?(this._column=typeof e==="function"?e:Zl(e),this):this._column}},{key:"columnConfig",value:function t(e){return arguments.length?(this._columnConfig=tc(this._columnConfig,e),this):this._columnConfig}},{key:"columnList",value:function t(e){return arguments.length?(this._columnList=e,this):this._columnList}},{key:"columnSort",value:function t(e){return arguments.length?(this._columnSort=e,this):this._columnSort}},{key:"row",value:function t(e){return arguments.length?(this._row=typeof e==="function"?e:Zl(e),this):this._row}},{key:"rowConfig",value:function t(e){return arguments.length?(this._rowConfig=tc(this._rowConfig,e),this):this._rowConfig}},{key:"rowList",value:function t(e){return arguments.length?(this._rowList=e,this):this._rowList}},{key:"rowSort",value:function t(e){return arguments.length?(this._rowSort=e,this):this._rowSort}}]);return E}(JG);function PK(t){"@babel/helpers - typeof";return PK="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},PK(t)}function BK(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function DK(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function NK(t,e,n){if(e)DK(t.prototype,e);if(n)DK(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function zK(){if(typeof Reflect!=="undefined"&&Reflect.get){zK=Reflect.get}else{zK=function t(e,n,r){var i=FK(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(arguments.length<3?e:r)}return a.value}}return zK.apply(this,arguments)}function FK(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=VK(t);if(t===null)break}return t}function jK(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});Object.defineProperty(t,"prototype",{writable:false});if(e)IK(t,e)}function IK(t,e){IK=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return IK(t,e)}function LK(i){var a=GK();return function t(){var e=VK(i),n;if(a){var r=VK(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return HK(this,n)}}function HK(t,e){if(e&&(PK(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return UK(t)}function UK(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function GK(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function VK(t){VK=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return VK(t)}var WK=Math.PI*2;var qK=function(t){jK(S,t);var e=LK(S);function S(){var o;BK(this,S);o=e.call(this);o._cellPadding=2;o._column=Zl("column");o._columnConfig={shapeConfig:{labelConfig:{fontColor:"#000",padding:5,textAnchor:function t(e){return[0,180].includes(e.angle)?"middle":[2,3].includes(e.quadrant)?"end":"start"},verticalAlign:function t(e){return[90,270].includes(e.angle)?"middle":[2,1].includes(e.quadrant)?"bottom":"top"}}}};o._columnSort=function(t,e){return"".concat(t).localeCompare("".concat(e))};o._innerRadius=function(t){return t/5};o._label=function(t,e){return"".concat(iK.bind(UK(o))("row",t,e)," / ").concat(iK.bind(UK(o))("column",t,e))};var s=o._on["mousemove.shape"];o._on["mousemove.shape"]=function(t,e,n,r){s(t,e,n,r);var i=iK.bind(UK(o))("row",t,e);var a=iK.bind(UK(o))("column",t,e);o.hover(function(t,e){return iK.bind(UK(o))("row",t,e)===i||iK.bind(UK(o))("column",t,e)===a})};o._row=Zl("row");o._rowSort=function(t,e){return"".concat(t).localeCompare("".concat(e))};o._columnLabels=new y9;return o}NK(S,[{key:"_draw",value:function t(e){var n=this;var r=pK.bind(this)(this._filteredData),i=r.rowValues,a=r.columnValues,o=r.shapeData;if(!i.length||!a.length)return this;zK(VK(S.prototype),"_draw",this).call(this,e);var s=this._height-this._margin.top-this._margin.bottom,u=this._select,l=this._transition,c=this._width-this._margin.left-this._margin.right;var f=50,h=100;var d=Ce([s-f*2,c-h*2])/2,g="translate(".concat(c/2+this._margin.left,", ").concat(s/2+this._margin.top,")");var v=a.slice().reverse();v.unshift(v.pop());var p=v.length;var y=v.map(function(t,e){var n=e/p*WK;var r=Math.round(n*180/Math.PI);var i=Math.floor((r+90)/90%4+1);var a=[0,180].includes(r)?-h/2:[2,3].includes(i)?-h:0;var o=[90,270].includes(r)?-f/2:[2,1].includes(i)?-f:0;return{key:t,angle:r,quadrant:i,radians:n,x:d*Math.sin(n+Math.PI)+a,y:d*Math.cos(n+Math.PI)+o}});var m=this._columnConfig.labels instanceof Array?y.filter(function(t){return n._columnConfig.labels.includes(t.key)}):y;this._columnLabels.data(m).x(function(t){return t.x}).y(function(t){return t.y}).text(function(t){return t.key}).width(h).height(f).config(this._columnConfig.shapeConfig.labelConfig).select(fb("g.d3plus-RadialMatrix-columns",{parent:u,transition:l,enter:{transform:g},update:{transform:g}}).node()).render();var _=this._innerRadius(d);var b=(d-_)/i.length;var w=y.length>1?y[1].radians-y[0].radians:WK;var x=i.slice().reverse();var k=k3().padAngle(this._cellPadding/d).innerRadius(function(t){return _+x.indexOf(t.row)*b+n._cellPadding/2}).outerRadius(function(t){return _+(x.indexOf(t.row)+1)*b-n._cellPadding/2}).startAngle(function(t){return y[a.indexOf(t.column)].radians-w/2}).endAngle(function(t){return y[a.indexOf(t.column)].radians+w/2});this._shapes.push((new Y4).data(o).d(k).select(fb("g.d3plus-RadialMatrix-arcs",{parent:u,transition:l,enter:{transform:g},update:{transform:g}}).node()).config({id:function t(e){return n._ids(e).join("-")},x:0,y:0}).config(lb.bind(this)(this._shapeConfig,"shape","Path")).render());return this}},{key:"cellPadding",value:function t(e){return arguments.length?(this._cellPadding=e,this):this._cellPadding}},{key:"column",value:function t(e){return arguments.length?(this._column=typeof e==="function"?e:Zl(e),this):this._column}},{key:"columnConfig",value:function t(e){return arguments.length?(this._columnConfig=tc(this._columnConfig,e),this):this._columnConfig}},{key:"columnList",value:function t(e){return arguments.length?(this._columnList=e,this):this._columnList}},{key:"columnSort",value:function t(e){return arguments.length?(this._columnSort=e,this):this._columnSort}},{key:"innerRadius",value:function t(e){return arguments.length?(this._innerRadius=typeof e==="function"?e:cb(e),this):this._innerRadius}},{key:"row",value:function t(e){return arguments.length?(this._row=typeof e==="function"?e:Zl(e),this):this._row}},{key:"rowList",value:function t(e){return arguments.length?(this._rowList=e,this):this._rowList}},{key:"rowSort",value:function t(e){return arguments.length?(this._rowSort=e,this):this._rowSort}}]);return S}(JG);function KK(t){var e=+this._x.call(null,t),n=+this._y.call(null,t);return YK(this.cover(e,n),e,n,t)}function YK(t,e,n,r){if(isNaN(e)||isNaN(n))return t;var i,a=t._root,o={data:r},s=t._x0,u=t._y0,l=t._x1,c=t._y1,f,h,d,g,v,p,y,m;if(!a)return t._root=o,t;while(a.length){if(v=e>=(f=(s+l)/2))s=f;else l=f;if(p=n>=(h=(u+c)/2))u=h;else c=h;if(i=a,!(a=a[y=p<<1|v]))return i[y]=o,t}d=+t._x.call(null,a.data);g=+t._y.call(null,a.data);if(e===d&&n===g)return o.next=a,i?i[y]=o:t._root=o,t;do{i=i?i[y]=new Array(4):t._root=new Array(4);if(v=e>=(f=(s+l)/2))s=f;else l=f;if(p=n>=(h=(u+c)/2))u=h;else c=h}while((y=p<<1|v)===(m=(g>=h)<<1|d>=f));return i[m]=a,i[y]=o,t}function XK(t){var e,n,r=t.length,i,a,o=new Array(r),s=new Array(r),u=Infinity,l=Infinity,c=-Infinity,f=-Infinity;for(n=0;n<r;++n){if(isNaN(i=+this._x.call(null,e=t[n]))||isNaN(a=+this._y.call(null,e)))continue;o[n]=i;s[n]=a;if(i<u)u=i;if(i>c)c=i;if(a<l)l=a;if(a>f)f=a}if(u>c||l>f)return this;this.cover(u,l).cover(c,f);for(n=0;n<r;++n){YK(this,o[n],s[n],t[n])}return this}function ZK(t,e){if(isNaN(t=+t)||isNaN(e=+e))return this;var n=this._x0,r=this._y0,i=this._x1,a=this._y1;if(isNaN(n)){i=(n=Math.floor(t))+1;a=(r=Math.floor(e))+1}else{var o=i-n||1,s=this._root,u,l;while(n>t||t>=i||r>e||e>=a){l=(e<r)<<1|t<n;u=new Array(4),u[l]=s,s=u,o*=2;switch(l){case 0:i=n+o,a=r+o;break;case 1:n=i-o,a=r+o;break;case 2:i=n+o,r=a-o;break;case 3:n=i-o,r=a-o;break}}if(this._root&&this._root.length)this._root=s}this._x0=n;this._y0=r;this._x1=i;this._y1=a;return this}function $K(){var e=[];this.visit(function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)});return e}function JK(t){return arguments.length?this.cover(+t[0][0],+t[0][1]).cover(+t[1][0],+t[1][1]):isNaN(this._x0)?undefined:[[this._x0,this._y0],[this._x1,this._y1]]}function QK(t,e,n,r,i){this.node=t;this.x0=e;this.y0=n;this.x1=r;this.y1=i}function tY(t,e,n){var r,i=this._x0,a=this._y0,o,s,u,l,c=this._x1,f=this._y1,h=[],d=this._root,g,v;if(d)h.push(new QK(d,i,a,c,f));if(n==null)n=Infinity;else{i=t-n,a=e-n;c=t+n,f=e+n;n*=n}while(g=h.pop()){if(!(d=g.node)||(o=g.x0)>c||(s=g.y0)>f||(u=g.x1)<i||(l=g.y1)<a)continue;if(d.length){var p=(o+u)/2,y=(s+l)/2;h.push(new QK(d[3],p,y,u,l),new QK(d[2],o,y,p,l),new QK(d[1],p,s,u,y),new QK(d[0],o,s,p,y));if(v=(e>=y)<<1|t>=p){g=h[h.length-1];h[h.length-1]=h[h.length-1-v];h[h.length-1-v]=g}}else{var m=t-+this._x.call(null,d.data),_=e-+this._y.call(null,d.data),b=m*m+_*_;if(b<n){var w=Math.sqrt(n=b);i=t-w,a=e-w;c=t+w,f=e+w;r=d.data}}}return r}function eY(t){if(isNaN(c=+this._x.call(null,t))||isNaN(f=+this._y.call(null,t)))return this;var e,n=this._root,r,i,a,o=this._x0,s=this._y0,u=this._x1,l=this._y1,c,f,h,d,g,v,p,y;if(!n)return this;if(n.length)while(true){if(g=c>=(h=(o+u)/2))o=h;else u=h;if(v=f>=(d=(s+l)/2))s=d;else l=d;if(!(e=n,n=n[p=v<<1|g]))return this;if(!n.length)break;if(e[p+1&3]||e[p+2&3]||e[p+3&3])r=e,y=p}while(n.data!==t){if(!(i=n,n=n.next))return this}if(a=n.next)delete n.next;if(i)return a?i.next=a:delete i.next,this;if(!e)return this._root=a,this;a?e[p]=a:delete e[p];if((n=e[0]||e[1]||e[2]||e[3])&&n===(e[3]||e[2]||e[1]||e[0])&&!n.length){if(r)r[y]=n;else this._root=n}return this}function nY(t){for(var e=0,n=t.length;e<n;++e){this.remove(t[e])}return this}function rY(){return this._root}function iY(){var e=0;this.visit(function(t){if(!t.length)do{++e}while(t=t.next)});return e}function aY(t){var e=[],n,r=this._root,i,a,o,s,u;if(r)e.push(new QK(r,this._x0,this._y0,this._x1,this._y1));while(n=e.pop()){if(!t(r=n.node,a=n.x0,o=n.y0,s=n.x1,u=n.y1)&&r.length){var l=(a+s)/2,c=(o+u)/2;if(i=r[3])e.push(new QK(i,l,c,s,u));if(i=r[2])e.push(new QK(i,a,c,l,u));if(i=r[1])e.push(new QK(i,l,o,s,c));if(i=r[0])e.push(new QK(i,a,o,l,c))}}return this}function oY(t){var e=[],n=[],r;if(this._root)e.push(new QK(this._root,this._x0,this._y0,this._x1,this._y1));while(r=e.pop()){var i=r.node;if(i.length){var a,o=r.x0,s=r.y0,u=r.x1,l=r.y1,c=(o+u)/2,f=(s+l)/2;if(a=i[0])e.push(new QK(a,o,s,c,f));if(a=i[1])e.push(new QK(a,c,s,u,f));if(a=i[2])e.push(new QK(a,o,f,c,l));if(a=i[3])e.push(new QK(a,c,f,u,l))}n.push(r)}while(r=n.pop()){t(r.node,r.x0,r.y0,r.x1,r.y1)}return this}function sY(t){return t[0]}function uY(t){return arguments.length?(this._x=t,this):this._x}function lY(t){return t[1]}function cY(t){return arguments.length?(this._y=t,this):this._y}function fY(t,e,n){var r=new hY(e==null?sY:e,n==null?lY:n,NaN,NaN,NaN,NaN);return t==null?r:r.addAll(t)}function hY(t,e,n,r,i,a){this._x=t;this._y=e;this._x0=n;this._y0=r;this._x1=i;this._y1=a;this._root=undefined}function dY(t){var e={data:t.data},n=e;while(t=t.next){n=n.next={data:t.data}}return e}var gY=fY.prototype=hY.prototype;gY.copy=function(){var t=new hY(this._x,this._y,this._x0,this._y0,this._x1,this._y1),e=this._root,n,r;if(!e)return t;if(!e.length)return t._root=dY(e),t;n=[{source:e,target:t._root=new Array(4)}];while(e=n.pop()){for(var i=0;i<4;++i){if(r=e.source[i]){if(r.length)n.push({source:r,target:e.target[i]=new Array(4)});else e.target[i]=dY(r)}}}return t};gY.add=KK;gY.addAll=XK;gY.cover=ZK;gY.data=$K;gY.extent=JK;gY.find=tY;gY.remove=eY;gY.removeAll=nY;gY.root=rY;gY.size=iY;gY.visit=aY;gY.visitAfter=oY;gY.x=uY;gY.y=cY;function vY(t){return function(){return t}}function pY(t){return(t()-.5)*1e-6}function yY(t){return t.index}function mY(t,e){var n=t.get(e);if(!n)throw new Error("node not found: "+e);return n}function _Y(f){var a=yY,n=t,h,r=vY(30),d,o,s,g,v,p=1;if(f==null)f=[];function t(t){return 1/Math.min(s[t.source.index],s[t.target.index])}function e(t){for(var e=0,n=f.length;e<p;++e){for(var r=0,i,a,o,s,u,l,c;r<n;++r){i=f[r],a=i.source,o=i.target;s=o.x+o.vx-a.x-a.vx||pY(v);u=o.y+o.vy-a.y-a.vy||pY(v);l=Math.sqrt(s*s+u*u);l=(l-d[r])/l*t*h[r];s*=l,u*=l;o.vx-=s*(c=g[r]);o.vy-=u*c;a.vx+=s*(c=1-c);a.vy+=u*c}}}function i(){if(!o)return;var t,e=o.length,n=f.length,r=new Map(o.map(function(t,e){return[a(t,e,o),t]})),i;for(t=0,s=new Array(e);t<n;++t){i=f[t],i.index=t;if(_typeof2(i.source)!=="object")i.source=mY(r,i.source);if(_typeof2(i.target)!=="object")i.target=mY(r,i.target);s[i.source.index]=(s[i.source.index]||0)+1;s[i.target.index]=(s[i.target.index]||0)+1}for(t=0,g=new Array(n);t<n;++t){i=f[t],g[t]=s[i.source.index]/(s[i.source.index]+s[i.target.index])}h=new Array(n),u();d=new Array(n),l()}function u(){if(!o)return;for(var t=0,e=f.length;t<e;++t){h[t]=+n(f[t],t,f)}}function l(){if(!o)return;for(var t=0,e=f.length;t<e;++t){d[t]=+r(f[t],t,f)}}e.initialize=function(t,e){o=t;v=e;i()};e.links=function(t){return arguments.length?(f=t,i(),e):f};e.id=function(t){return arguments.length?(a=t,e):a};e.iterations=function(t){return arguments.length?(p=+t,e):p};e.strength=function(t){return arguments.length?(n=typeof t==="function"?t:vY(+t),u(),e):n};e.distance=function(t){return arguments.length?(r=typeof t==="function"?t:vY(+t),l(),e):r};return e}var bY=1664525;var wY=1013904223;var xY=4294967296;function kY(){var t=1;return function(){return(t=(bY*t+wY)%xY)/xY}}function SY(t){return t.x}function CY(t){return t.y}var EY=10,AY=Math.PI*(3-Math.sqrt(5));function MY(f){var a,o=1,n=.001,s=1-Math.pow(n,1/300),u=0,l=.6,c=new Map,e=yu(h),r=Js("tick","end"),i=kY();if(f==null)f=[];function h(){t();r.call("tick",a);if(o<n){e.stop();r.call("end",a)}}function t(t){var e,n=f.length,r;if(t===undefined)t=1;for(var i=0;i<t;++i){o+=(u-o)*s;c.forEach(function(t){t(o)});for(e=0;e<n;++e){r=f[e];if(r.fx==null)r.x+=r.vx*=l;else r.x=r.fx,r.vx=0;if(r.fy==null)r.y+=r.vy*=l;else r.y=r.fy,r.vy=0}}return a}function d(){for(var t=0,e=f.length,n;t<e;++t){n=f[t],n.index=t;if(n.fx!=null)n.x=n.fx;if(n.fy!=null)n.y=n.fy;if(isNaN(n.x)||isNaN(n.y)){var r=EY*Math.sqrt(.5+t),i=t*AY;n.x=r*Math.cos(i);n.y=r*Math.sin(i)}if(isNaN(n.vx)||isNaN(n.vy)){n.vx=n.vy=0}}}function g(t){if(t.initialize)t.initialize(f,i);return t}d();return a={tick:t,restart:function t(){return e.restart(h),a},stop:function t(){return e.stop(),a},nodes:function t(e){return arguments.length?(f=e,d(),c.forEach(g),a):f},alpha:function t(e){return arguments.length?(o=+e,a):o},alphaMin:function t(e){return arguments.length?(n=+e,a):n},alphaDecay:function t(e){return arguments.length?(s=+e,a):+s},alphaTarget:function t(e){return arguments.length?(u=+e,a):u},velocityDecay:function t(e){return arguments.length?(l=1-e,a):1-l},randomSource:function t(e){return arguments.length?(i=e,c.forEach(g),a):i},force:function t(e,n){return arguments.length>1?(n==null?c["delete"](e):c.set(e,g(n)),a):c.get(e)},find:function t(e,n,r){var i=0,a=f.length,o,s,u,l,c;if(r==null)r=Infinity;else r*=r;for(i=0;i<a;++i){l=f[i];o=e-l.x;s=n-l.y;u=o*o+s*s;if(u<r)c=l,r=u}return c},on:function t(e,n){return arguments.length>1?(r.on(e,n),a):r.on(e)}}}function RY(){var i,u,l,c,r=vY(-30),f,h=1,d=Infinity,g=.81;function e(t){var e,n=i.length,r=fY(i,SY,CY).visitAfter(a);for(c=t,e=0;e<n;++e){u=i[e],r.visit(o)}}function n(){if(!i)return;var t,e=i.length,n;f=new Array(e);for(t=0;t<e;++t){n=i[t],f[n.index]=+r(n,t,i)}}function a(t){var e=0,n,r,i=0,a,o,s;if(t.length){for(a=o=s=0;s<4;++s){if((n=t[s])&&(r=Math.abs(n.value))){e+=n.value,i+=r,a+=r*n.x,o+=r*n.y}}t.x=a/i;t.y=o/i}else{n=t;n.x=n.data.x;n.y=n.data.y;do{e+=f[n.data.index]}while(n=n.next)}t.value=e}function o(t,e,n,r){if(!t.value)return true;var i=t.x-u.x,a=t.y-u.y,o=r-e,s=i*i+a*a;if(o*o/g<s){if(s<d){if(i===0)i=pY(l),s+=i*i;if(a===0)a=pY(l),s+=a*a;if(s<h)s=Math.sqrt(h*s);u.vx+=i*t.value*c/s;u.vy+=a*t.value*c/s}return true}else if(t.length||s>=d)return;if(t.data!==u||t.next){if(i===0)i=pY(l),s+=i*i;if(a===0)a=pY(l),s+=a*a;if(s<h)s=Math.sqrt(h*s)}do{if(t.data!==u){o=f[t.data.index]*c/s;u.vx+=i*o;u.vy+=a*o}}while(t=t.next)}e.initialize=function(t,e){i=t;l=e;n()};e.strength=function(t){return arguments.length?(r=typeof t==="function"?t:vY(+t),n(),e):r};e.distanceMin=function(t){return arguments.length?(h=t*t,e):Math.sqrt(h)};e.distanceMax=function(t){return arguments.length?(d=t*t,e):Math.sqrt(d)};e.theta=function(t){return arguments.length?(g=t*t,e):Math.sqrt(g)};return e}function TY(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){TY=function t(e){return typeof e}}else{TY=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return TY(t)}function OY(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function PY(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function BY(t,e,n){if(e)PY(t.prototype,e);if(n)PY(t,n);return t}function DY(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){DY=Reflect.get}else{DY=function t(e,n,r){var i=NY(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(r)}return a.value}}return DY(t,e,n||t)}function NY(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=UY(t);if(t===null)break}return t}function zY(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)FY(t,e)}function FY(t,e){FY=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return FY(t,e)}function jY(i){var a=HY();return function t(){var e=UY(i),n;if(a){var r=UY(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return IY(this,n)}}function IY(t,e){if(e&&(TY(e)==="object"||typeof e==="function")){return e}return LY(t)}function LY(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function HY(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function UY(t){UY=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return UY(t)}function GY(t,e){return"".concat(this._id(t,e)||this._nodeGroupBy[Ce([this._drawDepth,this._nodeGroupBy.length-1])](t,e))}var VY=function(t){zY(Y,t);var e=jY(Y);function Y(){var f;OY(this,Y);f=e.call(this);f._links=[];f._linkSize=cb(1);f._linkSizeMin=1;f._linkSizeScale="sqrt";f._noDataMessage=false;f._nodeGroupBy=[Zl("id")];f._nodes=[];f._on["click.shape"]=function(t,e,n,r){f._tooltipClass.data([]).render();if(f._hover&&f._drawDepth>=f._groupBy.length-1){var i=GY.bind(LY(f))(t,e);if(f._focus&&f._focus===i){f.active(false);f._on.mouseenter.bind(LY(f))(t,e,n,r);f._focus=undefined;f._zoomToBounds(null)}else{f.hover(false);var a=f._linkLookup[i],o=f._nodeLookup[i];var s=[i];var u=[o.x-o.r,o.x+o.r],l=[o.y-o.r,o.y+o.r];a.forEach(function(t){s.push(t.id);if(t.x-t.r<u[0])u[0]=t.x-t.r;if(t.x+t.r>u[1])u[1]=t.x+t.r;if(t.y-t.r<l[0])l[0]=t.y-t.r;if(t.y+t.r>l[1])l[1]=t.y+t.r});f.active(function(t,e){if(t.source&&t.target)return t.source.id===i||t.target.id===i;else return s.includes(GY.bind(LY(f))(t,e))});f._focus=i;var c=OA(f._container.node());u=u.map(function(t){return t*c.k+c.x});l=l.map(function(t){return t*c.k+c.y});f._zoomToBounds([[u[0],l[0]],[u[1],l[1]]])}}};f._on["click.legend"]=function(t,e,n,r){var i=f._id(t);var a=f._ids(t);a=a[a.length-1];if(f._hover&&f._drawDepth>=f._groupBy.length-1){if(f._focus&&f._focus===i){f.active(false);f._focus=undefined;f._zoomToBounds(null)}else{f.hover(false);var o=i.map(function(t){return f._nodeLookup[t]});var s=["".concat(a)];var u=[o[0].x-o[0].r,o[0].x+o[0].r],l=[o[0].y-o[0].r,o[0].y+o[0].r];o.forEach(function(t){s.push(t.id);if(t.x-t.r<u[0])u[0]=t.x-t.r;if(t.x+t.r>u[1])u[1]=t.x+t.r;if(t.y-t.r<l[0])l[0]=t.y-t.r;if(t.y+t.r>l[1])l[1]=t.y+t.r});f.active(function(t,e){if(t.source&&t.target)return s.includes(t.source.id)&&s.includes(t.target.id);else{var n=f._ids(t,e);return s.includes("".concat(n[n.length-1]))}});f._focus=i;var c=OA(f._container.node());u=u.map(function(t){return t*c.k+c.x});l=l.map(function(t){return t*c.k+c.y});f._zoomToBounds([[u[0],l[0]],[u[1],l[1]]])}f._on.mouseenter.bind(LY(f))(t,e,n,r);f._on["mousemove.legend"].bind(LY(f))(t,e,n,r)}};f._on.mouseenter=function(){};f._on["mouseleave.shape"]=function(){f.hover(false)};var c=f._on["mousemove.shape"];f._on["mousemove.shape"]=function(t,e,n,r){c(t,e,n,r);var i=GY.bind(LY(f))(t,e),a=f._linkLookup[i]||[],o=f._nodeLookup[i];var s=[i];var u=[o.x-o.r,o.x+o.r],l=[o.y-o.r,o.y+o.r];a.forEach(function(t){s.push(t.id);if(t.x-t.r<u[0])u[0]=t.x-t.r;if(t.x+t.r>u[1])u[1]=t.x+t.r;if(t.y-t.r<l[0])l[0]=t.y-t.r;if(t.y+t.r>l[1])l[1]=t.y+t.r});f.hover(function(t,e){if(t.source&&t.target)return t.source.id===i||t.target.id===i;else return s.includes("".concat(f._ids(t,e)[f._drawDepth]))})};f._sizeMin=5;f._sizeScale="sqrt";f._shape=cb("Circle");f._shapeConfig=tc(f._shapeConfig,{ariaLabel:function t(e,n){var r=f._size?", ".concat(f._size(e,n)):"";return"".concat(f._drawLabel(e,n)).concat(r,".")},labelConfig:{duration:0,fontMin:1,fontResize:true,labelPadding:0,textAnchor:"middle",verticalAlign:"middle"},Path:{fill:"none",label:false,stroke:"#eee"}});f._x=Zl("x");f._y=Zl("y");f._zoom=true;return f}BY(Y,[{key:"_draw",value:function t(e){var i=this;DY(UY(Y.prototype),"_draw",this).call(this,e);var n=this._duration,r=this._height-this._margin.top-this._margin.bottom,a="translate(".concat(this._margin.left,", ").concat(this._margin.top,")"),o=this._width-this._margin.left-this._margin.right;var s=this._filteredData.reduce(function(t,e,n){t[i._id(e,n)]=e;return t},{});var u=this._nodes.reduce(function(t,e,n){t[GY.bind(i)(e,n)]=e;return t},{});u=Array.from(new Set(Object.keys(s).concat(Object.keys(u)))).map(function(t,e){var n=s[t],r=u[t];if(r===undefined)return false;return{__d3plus__:true,data:n||r,i:e,id:t,fx:n!==undefined&&!isNaN(i._x(n))?i._x(n):i._x(r),fy:n!==undefined&&!isNaN(i._y(n))?i._y(n):i._y(r),node:r,r:i._size?n!==undefined&&i._size(n)!==undefined?i._size(n):i._size(r):i._sizeMin,shape:n!==undefined&&i._shape(n)!==undefined?i._shape(n):i._shape(r)}}).filter(function(t){return t});var l=this._nodeLookup=u.reduce(function(t,e){t[e.id]=e;return t},{});var c=u.map(function(t){return t.node});var f=this._links.map(function(t){var e=TY(t.source);return{size:i._linkSize(t),source:e==="number"?u[c.indexOf(i._nodes[t.source])]:e==="string"?l[t.source]:l[t.source.id],target:e==="number"?u[c.indexOf(i._nodes[t.target])]:e==="string"?l[t.target]:l[t.target.id]}});this._linkLookup=f.reduce(function(t,e){if(!t[e.source.id])t[e.source.id]=[];t[e.source.id].push(e.target);if(!t[e.target.id])t[e.target.id]=[];t[e.target.id].push(e.source);return t},{});var h=u.some(function(t){return t.fx===undefined||t.fy===undefined});if(h){var d=Xb().domain(ke(f,function(t){return t.size})).range([.1,.5]);var g=MY().force("link",_Y(f).id(function(t){return t.id}).distance(1).strength(function(t){return d(t.size)}).iterations(4)).force("charge",RY().strength(-1)).stop();var v=100;var p=.001;var y=1-Math.pow(p,1/v);g.velocityDecay(0);g.alphaMin(p);g.alphaDecay(y);g.alphaDecay(0);g.nodes(u);g.tick(v).stop();var m=u.map(function(t){return[t.vx,t.vy]});var _=0,b=0,w=0;if(m.length===2){_=100}else if(m.length>2){var x=sk(m);var k=Uk(x,{verbose:true});_=k.angle;b=k.cx;w=k.cy}u.forEach(function(t){var e=Ek([t.vx,t.vy],-1*(Math.PI/180*_),[b,w]);t.fx=e[0];t.fy=e[1]})}var S=ke(u.map(function(t){return t.fx})),C=ke(u.map(function(t){return t.fy}));var E=Xb().domain(S).range([0,o]),A=Xb().domain(C).range([0,r]);var M=(S[1]-S[0])/(C[1]-C[0])||1,R=o/r;if(M>R){var T=r*R/M;A.range([(r-T)/2,r-(r-T)/2])}else{var O=o*M/R;E.range([(o-O)/2,o-(o-O)/2])}u.forEach(function(t){t.x=E(t.fx);t.y=A(t.fy)});var P=ke(u.map(function(t){return t.r}));var B=this._sizeMax||Se([1,Ce(Ae(u.map(function(e){return u.map(function(t){return e===t?null:x9([e.x,e.y],[t.x,t.y])})})))/2]);var D=Z2["scale".concat(this._sizeScale.charAt(0).toUpperCase()).concat(this._sizeScale.slice(1))]().domain(P).range([P[0]===P[1]?B:Ce([B/2,this._sizeMin]),B]),N=E.domain(),z=A.domain();var F=N[1]-N[0],j=z[1]-z[0];u.forEach(function(t){var e=D(t.r);if(N[0]>E.invert(t.x-e))N[0]=E.invert(t.x-e);if(N[1]<E.invert(t.x+e))N[1]=E.invert(t.x+e);if(z[0]>A.invert(t.y-e))z[0]=A.invert(t.y-e);if(z[1]<A.invert(t.y+e))z[1]=A.invert(t.y+e)});var I=N[1]-N[0],L=z[1]-z[0];B*=Ce([F/I,j/L]);D.range([P[0]===P[1]?B:Ce([B/2,this._sizeMin]),B]);E.domain(N);A.domain(z);var H=(M>R?o:r)/2;u.forEach(function(t){t.x=E(t.fx);t.fx=t.x;t.y=A(t.fy);t.fy=t.y;t.r=D(t.r)||H;t.width=t.r*2;t.height=t.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",r).attr("x",this._margin.left).attr("y",this._margin.top).style("background-color","transparent").merge(this._container);this._container.transition().duration(n).attr("opacity",1).attr("width",o).attr("height",r).attr("x",this._margin.left).attr("y",this._margin.top);var U=this._container.selectAll("rect.d3plus-network-hitArea").data([0]);U.enter().append("rect").attr("class","d3plus-network-hitArea").merge(U).attr("width",o).attr("height",r).attr("fill","transparent").on("click",function(){if(i._focus){i.active(false);i._focus=undefined;i._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 V=ke(f,function(t){return t.size});if(V[0]!==V[1]){var W=Z2["scale".concat(this._linkSizeScale.charAt(0).toUpperCase()).concat(this._linkSizeScale.slice(1))]().domain(V).range([this._linkSizeMin,D.range()[0]]);f.forEach(function(t){t.size=W(t.size)})}var q=lb.bind(this)(this._shapeConfig,"edge","Path");delete q.on;this._shapes.push((new Y4).config(q).strokeWidth(function(t){return t.size}).activeStyle({"stroke-width":function t(e){return e.size}}).d(function(t){return"M".concat(t.source.x,",").concat(t.source.y," ").concat(t.target.x,",").concat(t.target.y)}).data(f).select(fb("g.d3plus-network-links",{parent:G,duration:n,enter:{transform:a},update:{transform:a}}).node()).render());var K={label:function t(e){return u.length<=i._dataCutoff||i._hover&&i._hover(e)||i._active&&i._active(e)?i._drawLabel(e.data||e.node,e.i):false},select:fb("g.d3plus-network-nodes",{parent:G,duration:n,enter:{transform:a},update:{transform:a}}).node()};vb().key(function(t){return t.shape}).entries(u).forEach(function(t){i._shapes.push((new X4[t.key]).config(lb.bind(i)(i._shapeConfig,"shape",t.key)).config(K).config(K[t.key]||{}).data(t.values).render())});return this}},{key:"hover",value:function t(e){this._hover=e;if(this._nodes.length<this._dataCutoff){this._shapes.forEach(function(t){return t.hover(e)});if(this._legend)this._legendClass.hover(e)}return this}},{key:"links",value:function t(e,n){if(arguments.length){Wj.bind(this)(e,n,"links");return this}return this._links}},{key:"linkSize",value:function t(e){return arguments.length?(this._linkSize=typeof e==="function"?e:cb(e),this):this._linkSize}},{key:"linkSizeMin",value:function t(e){return arguments.length?(this._linkSizeMin=e,this):this._linkSizeMin}},{key:"linkSizeScale",value:function t(e){return arguments.length?(this._linkSizeScale=e,this):this._linkSizeScale}},{key:"nodeGroupBy",value:function t(e){var n=this;if(!arguments.length)return this._nodeGroupBy;if(!(e instanceof Array))e=[e];return this._nodeGroupBy=e.map(function(t){if(typeof t==="function")return t;else{if(!n._aggs[t]){n._aggs[t]=function(t,e){var n=Array.from(new Set(t.map(e)));return n.length===1?n[0]:n}}return Zl(t)}}),this}},{key:"nodes",value:function t(e,n){if(arguments.length){Wj.bind(this)(e,n,"nodes");return this}return this._nodes}},{key:"size",value:function t(e){return arguments.length?(this._size=typeof e==="function"||!e?e:Zl(e),this):this._size}},{key:"sizeMax",value:function t(e){return arguments.length?(this._sizeMax=e,this):this._sizeMax}},{key:"sizeMin",value:function t(e){return arguments.length?(this._sizeMin=e,this):this._sizeMin}},{key:"sizeScale",value:function t(e){return arguments.length?(this._sizeScale=e,this):this._sizeScale}},{key:"x",value:function t(e){if(arguments.length){if(typeof e==="function")this._x=e;else{this._x=Zl(e);if(!this._aggs[e])this._aggs[e]=Ee}return this}else return this._x}},{key:"y",value:function t(e){if(arguments.length){if(typeof e==="function")this._y=e;else{this._y=Zl(e);if(!this._aggs[e])this._aggs[e]=Ee}return this}else return this._y}}]);return Y}(JG);function WY(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){WY=function t(e){return typeof e}}else{WY=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return WY(t)}function qY(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function KY(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function YY(t,e,n){if(e)KY(t.prototype,e);if(n)KY(t,n);return t}function XY(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){XY=Reflect.get}else{XY=function t(e,n,r){var i=ZY(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(r)}return a.value}}return XY(t,e,n||t)}function ZY(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=rX(t);if(t===null)break}return t}function $Y(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)JY(t,e)}function JY(t,e){JY=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return JY(t,e)}function QY(i){var a=nX();return function t(){var e=rX(i),n;if(a){var r=rX(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return tX(this,n)}}function tX(t,e){if(e&&(WY(e)==="object"||typeof e==="function")){return e}return eX(t)}function eX(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function nX(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function rX(t){rX=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return rX(t)}var iX=function(t){$Y(j,t);var e=QY(j);function j(){var c;qY(this,j);c=e.call(this);c._links=[];c._linkSize=cb(1);c._linkSizeMin=1;c._linkSizeScale="sqrt";c._noDataMessage=false;c._nodes=[];c._on.mouseenter=function(){};c._on["mouseleave.shape"]=function(){c.hover(false)};var f=c._on["mousemove.shape"];c._on["mousemove.shape"]=function(t,e,n,r){f(t,e,n,r);if(c._focus&&c._focus===t.id){c.hover(false);c._on.mouseenter.bind(eX(c))(t,e,n,r);c._focus=undefined}else{var i=c._nodeGroupBy&&c._nodeGroupBy[c._drawDepth](t,e)?c._nodeGroupBy[c._drawDepth](t,e):c._id(t,e),a=c._linkLookup[i],o=c._nodeLookup[i];var s=[o.id];var u=[o.x-o.r,o.x+o.r],l=[o.y-o.r,o.y+o.r];a.forEach(function(t){s.push(t.id);if(t.x-t.r<u[0])u[0]=t.x-t.r;if(t.x+t.r>u[1])u[1]=t.x+t.r;if(t.y-t.r<l[0])l[0]=t.y-t.r;if(t.y+t.r>l[1])l[1]=t.y+t.r});c.hover(function(t,e){if(t.source&&t.target)return t.source.id===o.id||t.target.id===o.id;else return s.includes(c._ids(t,e)[c._drawDepth])})}};c._on["click.shape"]=function(t){c._center=t.id;c._margin={bottom:0,left:0,right:0,top:0};c._padding={bottom:0,left:0,right:0,top:0};c._draw()};c._sizeMin=5;c._sizeScale="sqrt";c._shape=cb("Circle");c._shapeConfig=tc(c._shapeConfig,{ariaLabel:function t(e,n){var r=c._size?", ".concat(c._size(e,n)):"";return"".concat(c._drawLabel(e,n)).concat(r,".")},labelConfig:{duration:0,fontMin:1,fontResize:true,labelPadding:0,textAnchor:"middle",verticalAlign:"middle"},Path:{fill:"none",label:false,stroke:"#eee",strokeWidth:1}});return c}YY(j,[{key:"_draw",value:function t(e){var l=this;XY(rX(j.prototype),"_draw",this).call(this,e);var i=this._filteredData.reduce(function(t,e,n){t[l._id(e,n)]=e;return t},{});var c=this._nodes;if(!this._nodes.length&&this._links.length){var n=Array.from(new Set(this._links.reduce(function(t,e){return t.concat([e.source,e.target])},[])));c=n.map(function(t){return WY(t)==="object"?t:{id:t}})}c=c.reduce(function(t,e,n){t[l._nodeGroupBy?l._nodeGroupBy[l._drawDepth](e,n):l._id(e,n)]=e;return t},{});c=Array.from(new Set(Object.keys(i).concat(Object.keys(c)))).map(function(t,e){var n=i[t],r=c[t];if(r===undefined)return false;return{__d3plus__:true,data:n||r,i:e,id:t,node:r,shape:n!==undefined&&l._shape(n)!==undefined?l._shape(n):l._shape(r)}}).filter(function(t){return t});var r=this._nodeLookup=c.reduce(function(t,e){t[e.id]=e;return t},{});var a=this._links.map(function(n){var t=["source","target"];var e=t.reduce(function(t,e){t[e]=typeof n[e]==="number"?c[n[e]]:r[n[e].id||n[e]];return t},{});e.size=l._linkSize(n);return e});var o=a.reduce(function(t,e){if(!t[e.source.id]){t[e.source.id]=[]}t[e.source.id].push(e);if(!t[e.target.id]){t[e.target.id]=[]}t[e.target.id].push(e);return t},{});var s=this._duration,f=this._height-this._margin.top-this._margin.bottom,u="translate(".concat(this._margin.left,", ").concat(this._margin.top,")"),h=this._width-this._margin.left-this._margin.right;var d=[],g=Ce([f,h])/2,v=g/3;var p=v,y=v*2;var m=r[this._center];m.x=h/2;m.y=f/2;m.r=this._sizeMin?Se([this._sizeMin,p*.65]):this._sizeMax?Ce([this._sizeMax,p*.65]):p*.65;var _=[m],b=[];o[this._center].forEach(function(t){var e=t.source.id===l._center?t.target:t.source;e.edges=o[e.id].filter(function(t){return t.source.id!==l._center||t.target.id!==l._center});e.edge=t;_.push(e);b.push(e)});b.sort(function(t,e){return t.edges.length-e.edges.length});var w=[];var x=0;b.forEach(function(t){var i=t.id;t.edges=t.edges.filter(function(t){return!_.includes(t.source)&&t.target.id===i||!_.includes(t.target)&&t.source.id===i});x+=t.edges.length||1;t.edges.forEach(function(t){var e=t.source,n=t.target;var r=n.id===i?e:n;_.push(r)})});var k=Math.PI*2;var S=0;b.forEach(function(a,t){var o=a.edges.length||1;var e=k/x*o;if(t===0){S-=e/2}var s=S+e/2-k/4;a.radians=s;a.x=h/2+p*Math.cos(s);a.y=f/2+p*Math.sin(s);S+=e;a.edges.forEach(function(t,e){var n=t.source.id===a.id?t.target:t.source;var r=k/x;var i=s-r*o/2+r/2+r*e;n.radians=i;n.x=h/2+y*Math.cos(i);n.y=f/2+y*Math.sin(i);w.push(n)})});var C=v/2;var E=v/4;var A=C/2-4;if(C/2-4<8){A=Ce([C/2,8])}var M=E/2-4;if(E/2-4<4){M=Ce([E/2,4])}if(M>v/10){M=v/10}if(M>A&&M>10){M=A*.75}if(A>M*1.5){A=M*1.5}A=Math.floor(A);M=Math.floor(M);var R;if(this._size){var T=ke(i,function(t){return t.size});if(T[0]===T[1]){T[0]=0}R=Xb().domain(T).rangeRound([3,Ce([A,M])]);var O=m.size;m.r=R(O)}else{R=Xb().domain([1,2]).rangeRound([A,M])}w.forEach(function(t){t.ring=2;var e=l._size?t.size:2;t.r=l._sizeMin?Se([l._sizeMin,R(e)]):l._sizeMax?Ce([l._sizeMax,R(e)]):R(e)});b.forEach(function(t){t.ring=1;var e=l._size?t.size:1;t.r=l._sizeMin?Se([l._sizeMin,R(e)]):l._sizeMax?Ce([l._sizeMax,R(e)]):R(e)});c=[m].concat(b).concat(w);b.forEach(function(u){var t=["source","target"];var n=u.edge;t.forEach(function(e){n[e]=c.find(function(t){return t.id===n[e].id})});d.push(n);o[u.id].forEach(function(r){var e=r.source.id===u.id?r.target:r.source;if(e.id!==m.id){var i=w.find(function(t){return t.id===e.id});if(!i){i=b.find(function(t){return t.id===e.id})}if(i){r.spline=true;var a=h/2;var o=f/2;var s=p+(y-p)*.5;var t=["source","target"];t.forEach(function(e,t){r["".concat(e,"X")]=r[e].x+Math.cos(r[e].ring===2?r[e].radians+Math.PI:r[e].radians)*r[e].r;r["".concat(e,"Y")]=r[e].y+Math.sin(r[e].ring===2?r[e].radians+Math.PI:r[e].radians)*r[e].r;r["".concat(e,"BisectX")]=a+s*Math.cos(r[e].radians);r["".concat(e,"BisectY")]=o+s*Math.sin(r[e].radians);r[e]=c.find(function(t){return t.id===r[e].id});if(r[e].edges===undefined)r[e].edges={};var n=t===0?r.target.id:r.source.id;if(r[e].id===u.id){r[e].edges[n]={angle:u.radians+Math.PI,radius:v/2}}else{r[e].edges[n]={angle:i.radians,radius:v/2}}});d.push(r)}}})});c.forEach(function(t){if(t.id!==l._center){var e=l._shapeConfig.labelConfig.fontSize&&l._shapeConfig.labelConfig.fontSize(t)||11;var n=e*1.4;var r=n*2;var i=5;var a=v-t.r;var o=t.radians*(180/Math.PI);var s=t.r+i;var u="start";if(o<-90||o>90){s=-t.r-a-i;u="end";o+=180}t.labelBounds={x:s,y:-n/2,width:a,height:r};t.rotate=o;t.textAnchor=u}else{t.labelBounds={x:-p/2,y:-p/2,width:p,height:p}}});this._linkLookup=a.reduce(function(t,e){if(!t[e.source.id])t[e.source.id]=[];t[e.source.id].push(e.target);if(!t[e.target.id])t[e.target.id]=[];t[e.target.id].push(e.source);return t},{});var P=ke(a,function(t){return t.size});if(P[0]!==P[1]){var B=Ce(c,function(t){return t.r});var D=Z2["scale".concat(this._linkSizeScale.charAt(0).toUpperCase()).concat(this._linkSizeScale.slice(1))]().domain(P).range([this._linkSizeMin,B]);a.forEach(function(t){t.size=D(t.size)})}var N=lb.bind(this)(this._shapeConfig,"edge","Path");delete N.on;this._shapes.push((new Y4).config(N).strokeWidth(function(t){return t.size}).id(function(t){return"".concat(t.source.id,"_").concat(t.target.id)}).d(function(t){return t.spline?"M".concat(t.sourceX,",").concat(t.sourceY,"C").concat(t.sourceBisectX,",").concat(t.sourceBisectY," ").concat(t.targetBisectX,",").concat(t.targetBisectY," ").concat(t.targetX,",").concat(t.targetY):"M".concat(t.source.x,",").concat(t.source.y," ").concat(t.target.x,",").concat(t.target.y)}).data(d).select(fb("g.d3plus-rings-links",{parent:this._select,duration:s,enter:{transform:u},update:{transform:u}}).node()).render());var z=this;var F={label:function t(e){return c.length<=l._dataCutoff||l._hover&&l._hover(e)||l._active&&l._active(e)?l._drawLabel(e.data||e.node,e.i):false},labelBounds:function t(e){return e.labelBounds},labelConfig:{fontColor:function t(e){return e.id===l._center?lb.bind(z)(z._shapeConfig,"shape",e.key).labelConfig.fontColor(e):nw(lb.bind(z)(z._shapeConfig,"shape",e.key).fill(e))},fontResize:function t(e){return e.id===l._center},padding:0,textAnchor:function t(e){return r[e.id].textAnchor||lb.bind(z)(z._shapeConfig,"shape",e.key).labelConfig.textAnchor},verticalAlign:function t(e){return e.id===l._center?"middle":"top"}},rotate:function t(e){return r[e.id].rotate||0},select:fb("g.d3plus-rings-nodes",{parent:this._select,duration:s,enter:{transform:u},update:{transform:u}}).node()};vb().key(function(t){return t.shape}).entries(c).forEach(function(t){l._shapes.push((new X4[t.key]).config(lb.bind(l)(l._shapeConfig,"shape",t.key)).config(F).data(t.values).render())});return this}},{key:"center",value:function t(e){return arguments.length?(this._center=e,this):this._center}},{key:"hover",value:function t(e){this._hover=e;this._shapes.forEach(function(t){return t.hover(e)});if(this._legend)this._legendClass.hover(e);return this}},{key:"links",value:function t(e,n){if(arguments.length){Wj.bind(this)(e,n,"links");return this}return this._links}},{key:"linkSize",value:function t(e){return arguments.length?(this._linkSize=typeof e==="function"?e:cb(e),this):this._linkSize}},{key:"linkSizeMin",value:function t(e){return arguments.length?(this._linkSizeMin=e,this):this._linkSizeMin}},{key:"linkSizeScale",value:function t(e){return arguments.length?(this._linkSizeScale=e,this):this._linkSizeScale}},{key:"nodeGroupBy",value:function t(e){var n=this;if(!arguments.length)return this._nodeGroupBy;if(!(e instanceof Array))e=[e];return this._nodeGroupBy=e.map(function(t){if(typeof t==="function")return t;else{if(!n._aggs[t]){n._aggs[t]=function(t,e){var n=Array.from(new Set(t.map(e)));return n.length===1?n[0]:n}}return Zl(t)}}),this}},{key:"nodes",value:function t(e,n){if(arguments.length){Wj.bind(this)(e,n,"nodes");return this}return this._nodes}},{key:"size",value:function t(e){return arguments.length?(this._size=typeof e==="function"||!e?e:Zl(e),this):this._size}},{key:"sizeMax",value:function t(e){return arguments.length?(this._sizeMax=e,this):this._sizeMax}},{key:"sizeMin",value:function t(e){return arguments.length?(this._sizeMin=e,this):this._sizeMin}},{key:"sizeScale",value:function t(e){return arguments.length?(this._sizeScale=e,this):this._sizeScale}}]);return j}(JG);function aX(t){return t.target.depth}function oX(t){return t.depth}function sX(t,e){return e-1-t.height}function uX(t,e){return t.sourceLinks.length?t.depth:e-1}function lX(t){return t.targetLinks.length?t.depth:t.sourceLinks.length?Ce(t.sourceLinks,aX)-1:0}function cX(t){return function(){return t}}function fX(t,e){return dX(t.source,e.source)||t.index-e.index}function hX(t,e){return dX(t.target,e.target)||t.index-e.index}function dX(t,e){return t.y0-e.y0}function gX(t){return t.value}function vX(t){return t.index}function pX(t){return t.nodes}function yX(t){return t.links}function mX(t,e){var n=t.get(e);if(!n)throw new Error("missing: "+e);return n}function _X(t){var e=t.nodes;var n=_createForOfIteratorHelper2(e),r;try{for(n.s();!(r=n.n()).done;){var i=r.value;var a=i.y0;var o=a;var s=_createForOfIteratorHelper2(i.sourceLinks),u;try{for(s.s();!(u=s.n()).done;){var l=u.value;l.y0=a+l.width/2;a+=l.width}}catch(t){s.e(t)}finally{s.f()}var c=_createForOfIteratorHelper2(i.targetLinks),f;try{for(c.s();!(f=c.n()).done;){var h=f.value;h.y1=o+h.width/2;o+=h.width}}catch(t){c.e(t)}finally{c.f()}}}catch(t){n.e(t)}finally{n.f()}}function bX(){var h=0,g=0,d=1,v=1;var p=24;var a=8,y;var w=vX;var m=uX;var _;var x;var e=pX;var n=yX;var o=6;function r(){var t={nodes:e.apply(null,arguments),links:n.apply(null,arguments)};i(t);s(t);u(t);l(t);b(t);_X(t);return t}r.update=function(t){_X(t);return t};r.nodeId=function(t){return arguments.length?(w=typeof t==="function"?t:cX(t),r):w};r.nodeAlign=function(t){return arguments.length?(m=typeof t==="function"?t:cX(t),r):m};r.nodeSort=function(t){return arguments.length?(_=t,r):_};r.nodeWidth=function(t){return arguments.length?(p=+t,r):p};r.nodePadding=function(t){return arguments.length?(a=y=+t,r):a};r.nodes=function(t){return arguments.length?(e=typeof t==="function"?t:cX(t),r):e};r.links=function(t){return arguments.length?(n=typeof t==="function"?t:cX(t),r):n};r.linkSort=function(t){return arguments.length?(x=t,r):x};r.size=function(t){return arguments.length?(h=g=0,d=+t[0],v=+t[1],r):[d-h,v-g]};r.extent=function(t){return arguments.length?(h=+t[0][0],d=+t[1][0],g=+t[0][1],v=+t[1][1],r):[[h,g],[d,v]]};r.iterations=function(t){return arguments.length?(o=+t,r):o};function i(t){var n=t.nodes,e=t.links;var r=_createForOfIteratorHelper2(n.entries()),i;try{for(r.s();!(i=r.n()).done;){var a=_slicedToArray2(i.value,2),o=a[0],s=a[1];s.index=o;s.sourceLinks=[];s.targetLinks=[]}}catch(t){r.e(t)}finally{r.f()}var u=new Map(n.map(function(t,e){return[w(t,e,n),t]}));var l=_createForOfIteratorHelper2(e.entries()),c;try{for(l.s();!(c=l.n()).done;){var f=_slicedToArray2(c.value,2),h=f[0],d=f[1];d.index=h;var g=d.source,v=d.target;if(_typeof2(g)!=="object")g=d.source=mX(u,g);if(_typeof2(v)!=="object")v=d.target=mX(u,v);g.sourceLinks.push(d);v.targetLinks.push(d)}}catch(t){l.e(t)}finally{l.f()}if(x!=null){var p=_createForOfIteratorHelper2(n),y;try{for(p.s();!(y=p.n()).done;){var m=y.value,_=m.sourceLinks,b=m.targetLinks;_.sort(x);b.sort(x)}}catch(t){p.e(t)}finally{p.f()}}}function s(t){var e=t.nodes;var n=_createForOfIteratorHelper2(e),r;try{for(n.s();!(r=n.n()).done;){var i=r.value;i.value=i.fixedValue===undefined?Math.max(Re(i.sourceLinks,gX),Re(i.targetLinks,gX)):i.fixedValue}}catch(t){n.e(t)}finally{n.f()}}function u(t){var e=t.nodes;var n=e.length;var r=new Set(e);var i=new Set;var a=0;while(r.size){var o=_createForOfIteratorHelper2(r),s;try{for(o.s();!(s=o.n()).done;){var u=s.value;u.depth=a;var l=_createForOfIteratorHelper2(u.sourceLinks),c;try{for(l.s();!(c=l.n()).done;){var f=c.value.target;i.add(f)}}catch(t){l.e(t)}finally{l.f()}}}catch(t){o.e(t)}finally{o.f()}if(++a>n)throw new Error("circular link");r=i;i=new Set}}function l(t){var e=t.nodes;var n=e.length;var r=new Set(e);var i=new Set;var a=0;while(r.size){var o=_createForOfIteratorHelper2(r),s;try{for(o.s();!(s=o.n()).done;){var u=s.value;u.height=a;var l=_createForOfIteratorHelper2(u.targetLinks),c;try{for(l.s();!(c=l.n()).done;){var f=c.value.source;i.add(f)}}catch(t){l.e(t)}finally{l.f()}}}catch(t){o.e(t)}finally{o.f()}if(++a>n)throw new Error("circular link");r=i;i=new Set}}function c(t){var e=t.nodes;var n=Se(e,function(t){return t.depth})+1;var r=(d-h-p)/(n-1);var i=new Array(n);var a=_createForOfIteratorHelper2(e),o;try{for(a.s();!(o=a.n()).done;){var s=o.value;var u=Math.max(0,Math.min(n-1,Math.floor(m.call(null,s,n))));s.layer=u;s.x0=h+u*r;s.x1=s.x0+p;if(i[u])i[u].push(s);else i[u]=[s]}}catch(t){a.e(t)}finally{a.f()}if(_){var l=_createForOfIteratorHelper2(i),c;try{for(l.s();!(c=l.n()).done;){var f=c.value;f.sort(_)}}catch(t){l.e(t)}finally{l.f()}}return i}function f(t){var e=Ce(t,function(t){return(v-g-(t.length-1)*y)/Re(t,gX)});var n=_createForOfIteratorHelper2(t),r;try{for(n.s();!(r=n.n()).done;){var i=r.value;var a=g;var o=_createForOfIteratorHelper2(i),s;try{for(o.s();!(s=o.n()).done;){var u=s.value;u.y0=a;u.y1=a+u.value*e;a=u.y1+y;var l=_createForOfIteratorHelper2(u.sourceLinks),c;try{for(l.s();!(c=l.n()).done;){var f=c.value;f.width=f.value*e}}catch(t){l.e(t)}finally{l.f()}}}catch(t){o.e(t)}finally{o.f()}a=(v-a+y)/(i.length+1);for(var h=0;h<i.length;++h){var d=i[h];d.y0+=a*(h+1);d.y1+=a*(h+1)}R(i)}}catch(t){n.e(t)}finally{n.f()}}function b(t){var e=c(t);y=Math.min(a,(v-g)/(Se(e,function(t){return t.length})-1));f(e);for(var n=0;n<o;++n){var r=Math.pow(.99,n);var i=Math.max(1-r,(n+1)/o);S(e,r,i);k(e,r,i)}}function k(t,e,n){for(var r=1,i=t.length;r<i;++r){var a=t[r];var o=_createForOfIteratorHelper2(a),s;try{for(o.s();!(s=o.n()).done;){var u=s.value;var l=0;var c=0;var f=_createForOfIteratorHelper2(u.targetLinks),h;try{for(f.s();!(h=f.n()).done;){var d=h.value,g=d.source,v=d.value;var p=v*(u.layer-g.layer);l+=T(g,u)*p;c+=p}}catch(t){f.e(t)}finally{f.f()}if(!(c>0))continue;var y=(l/c-u.y0)*e;u.y0+=y;u.y1+=y;M(u)}}catch(t){o.e(t)}finally{o.f()}if(_===undefined)a.sort(dX);C(a,n)}}function S(t,e,n){for(var r=t.length,i=r-2;i>=0;--i){var a=t[i];var o=_createForOfIteratorHelper2(a),s;try{for(o.s();!(s=o.n()).done;){var u=s.value;var l=0;var c=0;var f=_createForOfIteratorHelper2(u.sourceLinks),h;try{for(f.s();!(h=f.n()).done;){var d=h.value,g=d.target,v=d.value;var p=v*(g.layer-u.layer);l+=O(u,g)*p;c+=p}}catch(t){f.e(t)}finally{f.f()}if(!(c>0))continue;var y=(l/c-u.y0)*e;u.y0+=y;u.y1+=y;M(u)}}catch(t){o.e(t)}finally{o.f()}if(_===undefined)a.sort(dX);C(a,n)}}function C(t,e){var n=t.length>>1;var r=t[n];A(t,r.y0-y,n-1,e);E(t,r.y1+y,n+1,e);A(t,v,t.length-1,e);E(t,g,0,e)}function E(t,e,n,r){for(;n<t.length;++n){var i=t[n];var a=(e-i.y0)*r;if(a>1e-6)i.y0+=a,i.y1+=a;e=i.y1+y}}function A(t,e,n,r){for(;n>=0;--n){var i=t[n];var a=(i.y1-e)*r;if(a>1e-6)i.y0-=a,i.y1-=a;e=i.y0-y}}function M(t){var e=t.sourceLinks,n=t.targetLinks;if(x===undefined){var r=_createForOfIteratorHelper2(n),i;try{for(r.s();!(i=r.n()).done;){var a=i.value.source.sourceLinks;a.sort(hX)}}catch(t){r.e(t)}finally{r.f()}var o=_createForOfIteratorHelper2(e),s;try{for(o.s();!(s=o.n()).done;){var u=s.value.target.targetLinks;u.sort(fX)}}catch(t){o.e(t)}finally{o.f()}}}function R(t){if(x===undefined){var e=_createForOfIteratorHelper2(t),n;try{for(e.s();!(n=e.n()).done;){var r=n.value,i=r.sourceLinks,a=r.targetLinks;i.sort(hX);a.sort(fX)}}catch(t){e.e(t)}finally{e.f()}}}function T(t,e){var n=t.y0-(t.sourceLinks.length-1)*y/2;var r=_createForOfIteratorHelper2(t.sourceLinks),i;try{for(r.s();!(i=r.n()).done;){var a=i.value,o=a.target,s=a.width;if(o===e)break;n+=s+y}}catch(t){r.e(t)}finally{r.f()}var u=_createForOfIteratorHelper2(e.targetLinks),l;try{for(u.s();!(l=u.n()).done;){var c=l.value,f=c.source,h=c.width;if(f===t)break;n-=h}}catch(t){u.e(t)}finally{u.f()}return n}function O(t,e){var n=e.y0-(e.targetLinks.length-1)*y/2;var r=_createForOfIteratorHelper2(e.targetLinks),i;try{for(r.s();!(i=r.n()).done;){var a=i.value,o=a.source,s=a.width;if(o===t)break;n+=s+y}}catch(t){r.e(t)}finally{r.f()}var u=_createForOfIteratorHelper2(t.sourceLinks),l;try{for(u.s();!(l=u.n()).done;){var c=l.value,f=c.target,h=c.width;if(f===e)break;n-=h}}catch(t){u.e(t)}finally{u.f()}return n}return r}var wX=Math.PI,xX=2*wX,kX=1e-6,SX=xX-kX;function CX(){this._x0=this._y0=this._x1=this._y1=null;this._=""}function EX(){return new CX}CX.prototype=EX.prototype={constructor:CX,moveTo:function t(e,n){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+n)},closePath:function t(){if(this._x1!==null){this._x1=this._x0,this._y1=this._y0;this._+="Z"}},lineTo:function t(e,n){this._+="L"+(this._x1=+e)+","+(this._y1=+n)},quadraticCurveTo:function t(e,n,r,i){this._+="Q"+ +e+","+ +n+","+(this._x1=+r)+","+(this._y1=+i)},bezierCurveTo:function t(e,n,r,i,a,o){this._+="C"+ +e+","+ +n+","+ +r+","+ +i+","+(this._x1=+a)+","+(this._y1=+o)},arcTo:function t(e,n,r,i,a){e=+e,n=+n,r=+r,i=+i,a=+a;var o=this._x1,s=this._y1,u=r-e,l=i-n,c=o-e,f=s-n,h=c*c+f*f;if(a<0)throw new Error("negative radius: "+a);if(this._x1===null){this._+="M"+(this._x1=e)+","+(this._y1=n)}else if(!(h>kX));else if(!(Math.abs(f*u-l*c)>kX)||!a){this._+="L"+(this._x1=e)+","+(this._y1=n)}else{var d=r-o,g=i-s,v=u*u+l*l,p=d*d+g*g,y=Math.sqrt(v),m=Math.sqrt(h),_=a*Math.tan((wX-Math.acos((v+h-p)/(2*y*m)))/2),b=_/m,w=_/y;if(Math.abs(b-1)>kX){this._+="L"+(e+b*c)+","+(n+b*f)}this._+="A"+a+","+a+",0,0,"+ +(f*d>c*g)+","+(this._x1=e+w*u)+","+(this._y1=n+w*l)}},arc:function t(e,n,r,i,a,o){e=+e,n=+n,r=+r,o=!!o;var s=r*Math.cos(i),u=r*Math.sin(i),l=e+s,c=n+u,f=1^o,h=o?i-a:a-i;if(r<0)throw new Error("negative radius: "+r);if(this._x1===null){this._+="M"+l+","+c}else if(Math.abs(this._x1-l)>kX||Math.abs(this._y1-c)>kX){this._+="L"+l+","+c}if(!r)return;if(h<0)h=h%xX+xX;if(h>SX){this._+="A"+r+","+r+",0,1,"+f+","+(e-s)+","+(n-u)+"A"+r+","+r+",0,1,"+f+","+(this._x1=l)+","+(this._y1=c)}else if(h>kX){this._+="A"+r+","+r+",0,"+ +(h>=wX)+","+f+","+(this._x1=e+r*Math.cos(a))+","+(this._y1=n+r*Math.sin(a))}},rect:function t(e,n,r,i){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+n)+"h"+ +r+"v"+ +i+"h"+-r+"Z"},toString:function t(){return this._}};function AX(e){return function t(){return e}}function MX(t){return t[0]}function RX(t){return t[1]}var TX=Array.prototype.slice;function OX(t){return t.source}function PX(t){return t.target}function BX(i){var a=OX,o=PX,s=MX,u=RX,l=null;function e(){var t,e=TX.call(arguments),n=a.apply(this,e),r=o.apply(this,e);if(!l)l=t=EX();i(l,+s.apply(this,(e[0]=n,e)),+u.apply(this,e),+s.apply(this,(e[0]=r,e)),+u.apply(this,e));if(t)return l=null,t+""||null}e.source=function(t){return arguments.length?(a=t,e):a};e.target=function(t){return arguments.length?(o=t,e):o};e.x=function(t){return arguments.length?(s=typeof t==="function"?t:AX(+t),e):s};e.y=function(t){return arguments.length?(u=typeof t==="function"?t:AX(+t),e):u};e.context=function(t){return arguments.length?(l=t==null?null:t,e):l};return e}function DX(t,e,n,r,i){t.moveTo(e,n);t.bezierCurveTo(e=(e+r)/2,n,e,i,r,i)}function NX(){return BX(DX)}function zX(t){return[t.source.x1,t.y0]}function FX(t){return[t.target.x0,t.y1]}function jX(){return NX().source(zX).target(FX)}function IX(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){IX=function t(e){return typeof e}}else{IX=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return IX(t)}function LX(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function HX(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function UX(t,e,n){if(e)HX(t.prototype,e);if(n)HX(t,n);return t}function GX(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){GX=Reflect.get}else{GX=function t(e,n,r){var i=VX(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(r)}return a.value}}return GX(t,e,n||t)}function VX(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=$X(t);if(t===null)break}return t}function WX(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)qX(t,e)}function qX(t,e){qX=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return qX(t,e)}function KX(i){var a=ZX();return function t(){var e=$X(i),n;if(a){var r=$X(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return YX(this,n)}}function YX(t,e){if(e&&(IX(e)==="object"||typeof e==="function")){return e}return XX(t)}function XX(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function ZX(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function $X(t){$X=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return $X(t)}var JX={center:lX,justify:uX,left:oX,right:sX};var QX=function(t){WX(f,t);var e=KX(f);function f(){var l;LX(this,f);l=e.call(this);l._nodeId=Zl("id");l._links=Zl("links");l._linksSource="source";l._linksTarget="target";l._noDataMessage=false;l._nodes=Zl("nodes");l._nodeAlign=JX.justify;l._nodePadding=8;l._nodeWidth=30;l._on.mouseenter=function(){};l._on["mouseleave.shape"]=function(){l.hover(false)};var c=l._on["mousemove.shape"];l._on["mousemove.shape"]=function(t,e,n,r){c(t,e,n,r);if(l._focus&&l._focus===t.id){l.hover(false);l._on.mouseenter.bind(XX(l))(t,e,n,r);l._focus=undefined}else{var i=l._nodeId(t,e),a=l._nodeLookup[i],o=Object.keys(l._nodeLookup).reduce(function(t,e){t[l._nodeLookup[e]]=!isNaN(e)?parseInt(e,10):e;return t},{});var s=l._linkLookup[a];var u=[i];s.forEach(function(t){u.push(o[t])});l.hover(function(t,e){if(t.source&&t.target){return t.source.id===i||t.target.id===i}else{return u.includes(l._nodeId(t,e))}})}};l._path=jX();l._sankey=bX();l._shape=cb("Rect");l._shapeConfig=tc(l._shapeConfig,{Path:{fill:"none",hoverStyle:{"stroke-width":function t(e){return Math.max(1,Math.abs(e.source.y1-e.source.y0)*(e.value/e.source.value)-2)}},label:false,stroke:"#DBDBDB",strokeOpacity:.5,strokeWidth:function t(e){return Math.max(1,Math.abs(e.source.y1-e.source.y0)*(e.value/e.source.value)-2)}},Rect:{}});l._value=cb(1);return l}UX(f,[{key:"_draw",value:function t(e){var i=this;GX($X(f.prototype),"_draw",this).call(this,e);var n=this._height-this._margin.top-this._margin.bottom,r=this._width-this._margin.left-this._margin.right;var a=Array.isArray(this._nodes)?this._nodes:this._links.reduce(function(t,e){if(!t.includes(e[i._linksSource]))t.push(e[i._linksSource]);if(!t.includes(e[i._linksTarget]))t.push(e[i._linksTarget]);return t},[]).map(function(t){return{id:t}});var o=a.map(function(t,e){return{__d3plus__:true,data:t,i:e,id:i._nodeId(t,e),node:t,shape:"Rect"}});var s=this._nodeLookup=o.reduce(function(t,e,n){t[e.id]=n;return t},{});var u=this._links.map(function(n,t){var e=[i._linksSource,i._linksTarget];var r=e.reduce(function(t,e){t[e]=s[n[e]];return t},{});return{source:r[i._linksSource],target:r[i._linksTarget],value:i._value(n,t)}});this._linkLookup=u.reduce(function(t,e){if(!t[e.source])t[e.source]=[];t[e.source].push(e.target);if(!t[e.target])t[e.target]=[];t[e.target].push(e.source);return t},{});var l="translate(".concat(this._margin.left,", ").concat(this._margin.top,")");this._sankey.nodeAlign(this._nodeAlign).nodePadding(this._nodePadding).nodeWidth(this._nodeWidth).nodes(o).links(u).size([r,n])();this._shapes.push((new Y4).config(this._shapeConfig.Path).data(u).d(this._path).select(fb("g.d3plus-Links",{parent:this._select,enter:{transform:l},update:{transform:l}}).node()).render());vb().key(function(t){return t.shape}).entries(o).forEach(function(t){i._shapes.push((new X4[t.key]).data(t.values).height(function(t){return t.y1-t.y0}).width(function(t){return t.x1-t.x0}).x(function(t){return(t.x1+t.x0)/2}).y(function(t){return(t.y1+t.y0)/2}).select(fb("g.d3plus-sankey-nodes",{parent:i._select,enter:{transform:l},update:{transform:l}}).node()).config(lb.bind(i)(i._shapeConfig,"shape",t.key)).render())});return this}},{key:"hover",value:function t(e){this._hover=e;this._shapes.forEach(function(t){return t.hover(e)});if(this._legend)this._legendClass.hover(e);return this}},{key:"links",value:function t(e,n){if(arguments.length){Wj.bind(this)(e,n,"links");return this}return this._links}},{key:"linksSource",value:function t(e){return arguments.length?(this._linksSource=e,this):this._linksSource}},{key:"linksTarget",value:function t(e){return arguments.length?(this._linksTarget=e,this):this._linksTarget}},{key:"nodeAlign",value:function t(e){return arguments.length?(this._nodeAlign=typeof e==="function"?e:JX[e],this):this._nodeAlign}},{key:"nodeId",value:function t(e){return arguments.length?(this._nodeId=typeof e==="function"?e:Zl(e),this):this._nodeId}},{key:"nodes",value:function t(e,n){if(arguments.length){Wj.bind(this)(e,n,"nodes");return this}return this._nodes}},{key:"nodePadding",value:function t(e){return arguments.length?(this._nodePadding=e,this):this._nodePadding}},{key:"nodeWidth",value:function t(e){return arguments.length?(this._nodeWidth=e,this):this._nodeWidth}},{key:"value",value:function t(e){return arguments.length?(this._value=typeof e==="function"?e:Zl(e),this):this._value}}]);return f}(JG);function tZ(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function eZ(t,e){switch(arguments.length){case 0:break;case 1:{if(typeof t==="function")this.interpolator(t);else this.range(t);break}default:{this.domain(t);if(typeof e==="function")this.interpolator(e);else this.range(e);break}}return this}var nZ=Symbol("implicit");function rZ(){var a=new Map,o=[],r=[],i=nZ;function s(t){var e=t+"",n=a.get(e);if(!n){if(i!==nZ)return i;a.set(e,n=o.push(t))}return r[(n-1)%r.length]}s.domain=function(t){if(!arguments.length)return o.slice();o=[],a=new Map;var e=_createForOfIteratorHelper2(t),n;try{for(e.s();!(n=e.n()).done;){var r=n.value;var i=r+"";if(a.has(i))continue;a.set(i,o.push(r))}}catch(t){e.e(t)}finally{e.f()}return s};s.range=function(t){return arguments.length?(r=Array.from(t),s):r.slice()};s.unknown=function(t){return arguments.length?(i=t,s):i};s.copy=function(){return rZ(o,r).unknown(i)};tZ.apply(s,arguments);return s}function iZ(){var t=rZ().unknown(undefined),a=t.domain,o=t.range,s=0,u=1,l,c,f=false,h=0,d=0,g=.5;delete t.unknown;function r(){var t=a().length,e=u<s,n=e?u:s,r=e?s:u;l=(r-n)/Math.max(1,t-h+d*2);if(f)l=Math.floor(l);n+=(r-n-l*(t-h))*g;c=l*(1-h);if(f)n=Math.round(n),c=Math.round(c);var i=Me(t).map(function(t){return n+l*t});return o(e?i.reverse():i)}t.domain=function(t){return arguments.length?(a(t),r()):a()};t.range=function(t){var e,n;return arguments.length?(e=t,n=_slicedToArray2(e,2),s=n[0],u=n[1],e,s=+s,u=+u,r()):[s,u]};t.rangeRound=function(t){var e,n;return e=t,n=_slicedToArray2(e,2),s=n[0],u=n[1],e,s=+s,u=+u,f=true,r()};t.bandwidth=function(){return c};t.step=function(){return l};t.round=function(t){return arguments.length?(f=!!t,r()):f};t.padding=function(t){return arguments.length?(h=Math.min(1,d=+t),r()):h};t.paddingInner=function(t){return arguments.length?(h=Math.min(1,t),r()):h};t.paddingOuter=function(t){return arguments.length?(d=+t,r()):d};t.align=function(t){return arguments.length?(g=Math.max(0,Math.min(1,t)),r()):g};t.copy=function(){return iZ(a(),[s,u]).round(f).paddingInner(h).paddingOuter(d).align(g)};return tZ.apply(r(),arguments)}function aZ(t){var e=t.copy;t.padding=t.paddingOuter;delete t.paddingInner;delete t.paddingOuter;t.copy=function(){return aZ(e())};return t}function oZ(){return aZ(iZ.apply(null,arguments).paddingInner(1))}function sZ(t){return function(){return t}}function uZ(t){return+t}var lZ=[0,1];function cZ(t){return t}function fZ(e,n){return(n-=e=+e)?function(t){return(t-e)/n}:sZ(isNaN(n)?NaN:.5)}function hZ(e,n){var t;if(e>n)t=e,e=n,n=t;return function(t){return Math.max(e,Math.min(n,t))}}function dZ(t,e,n){var r=t[0],i=t[1],a=e[0],o=e[1];if(i<r)r=fZ(i,r),a=n(o,a);else r=fZ(r,i),a=n(a,o);return function(t){return a(r(t))}}function gZ(n,t,e){var r=Math.min(n.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;if(n[r]<n[0]){n=n.slice().reverse();t=t.slice().reverse()}while(++o<r){i[o]=fZ(n[o],n[o+1]);a[o]=e(t[o],t[o+1])}return function(t){var e=h(n,t,1,r)-1;return a[e](i[e](t))}}function vZ(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function pZ(){var e=lZ,n=lZ,r=or,i,a,o,s=cZ,u,l,c;function f(){var t=Math.min(e.length,n.length);if(s!==cZ)s=hZ(e[0],e[t-1]);u=t>2?gZ:dZ;l=c=null;return h}function h(t){return t==null||isNaN(t=+t)?o:(l||(l=u(e.map(i),n,r)))(i(s(t)))}h.invert=function(t){return s(a((c||(c=u(n,e.map(i),Qn)))(t)))};h.domain=function(t){return arguments.length?(e=Array.from(t,uZ),f()):e.slice()};h.range=function(t){return arguments.length?(n=Array.from(t),f()):n.slice()};h.rangeRound=function(t){return n=Array.from(t),r=sr,f()};h.clamp=function(t){return arguments.length?(s=t?true:cZ,f()):s!==cZ};h.interpolate=function(t){return arguments.length?(r=t,f()):r};h.unknown=function(t){return arguments.length?(o=t,h):o};return function(t,e){i=t,a=e;return f()}}function yZ(){return pZ()(cZ,cZ)}function mZ(t,e,n,r){var i=M(t,e,n),a;r=Lr(r==null?",f":r);switch(r.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));if(r.precision==null&&!isNaN(a=ni(i,o)))r.precision=a;return Qr(r,o)}case"":case"e":case"g":case"p":case"r":{if(r.precision==null&&!isNaN(a=ri(i,Math.max(Math.abs(t),Math.abs(e)))))r.precision=a-(r.type==="e");break}case"f":case"%":{if(r.precision==null&&!isNaN(a=ei(i)))r.precision=a-(r.type==="%")*2;break}}return Jr(r)}function _Z(l){var c=l.domain;l.ticks=function(t){var e=c();return ft(e[0],e[e.length-1],t==null?10:t)};l.tickFormat=function(t,e){var n=c();return mZ(n[0],n[n.length-1],t==null?10:t,e)};l.nice=function(t){if(t==null)t=10;var e=c();var n=0;var r=e.length-1;var i=e[n];var a=e[r];var o;var s;var u=10;if(a<i){s=i,i=a,a=s;s=n,n=r,r=s}while(u-- >0){s=A(i,a,t);if(s===o){e[n]=i;e[r]=a;return c(e)}else if(s>0){i=Math.floor(i/s)*s;a=Math.ceil(a/s)*s}else if(s<0){i=Math.ceil(i*s)/s;a=Math.floor(a*s)/s}else{break}o=s}return l};return l}function bZ(){var t=yZ();t.copy=function(){return vZ(t,bZ())};tZ.apply(t,arguments);return _Z(t)}function wZ(e){var n;function r(t){return t==null||isNaN(t=+t)?n:t}r.invert=r;r.domain=r.range=function(t){return arguments.length?(e=Array.from(t,uZ),r):e.slice()};r.unknown=function(t){return arguments.length?(n=t,r):n};r.copy=function(){return wZ(e).unknown(n)};e=arguments.length?Array.from(e,uZ):[0,1];return _Z(r)}function xZ(t,e){t=t.slice();var n=0,r=t.length-1,i=t[n],a=t[r],o;if(a<i){o=n,n=r,r=o;o=i,i=a,a=o}t[n]=e.floor(i);t[r]=e.ceil(a);return t}function kZ(t){return Math.log(t)}function SZ(t){return Math.exp(t)}function CZ(t){return-Math.log(-t)}function EZ(t){return-Math.exp(-t)}function AZ(t){return isFinite(t)?+("1e"+t):t<0?0:t}function MZ(e){return e===10?AZ:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}function RZ(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}function TZ(e){return function(t){return-e(-t)}}function OZ(t){var e=t(kZ,SZ),h=e.domain,d=10,g,v;function n(){g=RZ(d),v=MZ(d);if(h()[0]<0){g=TZ(g),v=TZ(v);t(CZ,EZ)}else{t(kZ,SZ)}return e}e.base=function(t){return arguments.length?(d=+t,n()):d};e.domain=function(t){return arguments.length?(h(t),n()):h()};e.ticks=function(t){var e=h(),n=e[0],r=e[e.length-1],i;if(i=r<n)a=n,n=r,r=a;var a=g(n),o=g(r),s,u,l,c=t==null?10:+t,f=[];if(!(d%1)&&o-a<c){a=Math.floor(a),o=Math.ceil(o);if(n>0)for(;a<=o;++a){for(u=1,s=v(a);u<d;++u){l=s*u;if(l<n)continue;if(l>r)break;f.push(l)}}else for(;a<=o;++a){for(u=d-1,s=v(a);u>=1;--u){l=s*u;if(l<n)continue;if(l>r)break;f.push(l)}}if(f.length*2<c)f=ft(n,r,c)}else{f=ft(a,o,Math.min(o-a,c)).map(v)}return i?f.reverse():f};e.tickFormat=function(t,n){if(n==null)n=d===10?".0e":",";if(typeof n!=="function")n=Jr(n);if(t===Infinity)return n;if(t==null)t=10;var r=Math.max(1,d*t/e.ticks().length);return function(t){var e=t/v(Math.round(g(t)));if(e*d<d-.5)e*=d;return e<=r?n(t):""}};e.nice=function(){return h(xZ(h(),{floor:function t(e){return v(Math.floor(g(e)))},ceil:function t(e){return v(Math.ceil(g(e)))}}))};return e}function PZ(){var t=OZ(pZ()).domain([1,10]);t.copy=function(){return vZ(t,PZ()).base(t.base())};tZ.apply(t,arguments);return t}function BZ(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function DZ(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function NZ(e){var n=1,t=e(BZ(n),DZ(n));t.constant=function(t){return arguments.length?e(BZ(n=+t),DZ(n)):n};return _Z(t)}function zZ(){var t=NZ(pZ());t.copy=function(){return vZ(t,zZ()).constant(t.constant())};return tZ.apply(t,arguments)}function FZ(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function jZ(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function IZ(t){return t<0?-t*t:t*t}function LZ(t){var e=t(cZ,cZ),n=1;function r(){return n===1?t(cZ,cZ):n===.5?t(jZ,IZ):t(FZ(n),FZ(1/n))}e.exponent=function(t){return arguments.length?(n=+t,r()):n};return _Z(e)}function HZ(){var t=LZ(pZ());t.copy=function(){return vZ(t,HZ()).exponent(t.exponent())};tZ.apply(t,arguments);return t}function UZ(){return HZ.apply(null,arguments).exponent(.5)}function GZ(t){return Math.sign(t)*t*t}function VZ(t){return Math.sign(t)*Math.sqrt(Math.abs(t))}function WZ(){var n=yZ(),e=[0,1],r=false,i;function a(t){var e=VZ(n(t));return isNaN(e)?i:r?Math.round(e):e}a.invert=function(t){return n.invert(GZ(t))};a.domain=function(t){return arguments.length?(n.domain(t),a):n.domain()};a.range=function(t){return arguments.length?(n.range((e=Array.from(t,uZ)).map(GZ)),a):e.slice()};a.rangeRound=function(t){return a.range(t).round(true)};a.round=function(t){return arguments.length?(r=!!t,a):r};a.clamp=function(t){return arguments.length?(n.clamp(t),a):n.clamp()};a.unknown=function(t){return arguments.length?(i=t,a):i};a.copy=function(){return WZ(n.domain(),e).round(r).clamp(n.clamp()).unknown(i)};tZ.apply(a,arguments);return _Z(a)}function qZ(){var i=[],n=[],r=[],e;function a(){var t=0,e=Math.max(1,n.length);r=new Array(e-1);while(++t<e){r[t-1]=O(i,t/e)}return o}function o(t){return t==null||isNaN(t=+t)?e:n[h(r,t)]}o.invertExtent=function(t){var e=n.indexOf(t);return e<0?[NaN,NaN]:[e>0?r[e-1]:i[0],e<r.length?r[e]:i[i.length-1]]};o.domain=function(t){if(!arguments.length)return i.slice();i=[];var e=_createForOfIteratorHelper2(t),n;try{for(e.s();!(n=e.n()).done;){var r=n.value;if(r!=null&&!isNaN(r=+r))i.push(r)}}catch(t){e.e(t)}finally{e.f()}i.sort(v);return a()};o.range=function(t){return arguments.length?(n=Array.from(t),a()):n.slice()};o.unknown=function(t){return arguments.length?(e=t,o):e};o.quantiles=function(){return r.slice()};o.copy=function(){return qZ().domain(i).range(n).unknown(e)};return tZ.apply(o,arguments)}function KZ(){var r=0,i=1,n=1,a=[.5],o=[0,1],e;function s(t){return t!=null&&t<=t?o[h(a,t,0,n)]:e}function u(){var t=-1;a=new Array(n);while(++t<n){a[t]=((t+1)*i-(t-n)*r)/(n+1)}return s}s.domain=function(t){var e,n;return arguments.length?(e=t,n=_slicedToArray2(e,2),r=n[0],i=n[1],e,r=+r,i=+i,u()):[r,i]};s.range=function(t){return arguments.length?(n=(o=Array.from(t)).length-1,u()):o.slice()};s.invertExtent=function(t){var e=o.indexOf(t);return e<0?[NaN,NaN]:e<1?[r,a[0]]:e>=n?[a[n-1],i]:[a[e-1],a[e]]};s.unknown=function(t){return arguments.length?(e=t,s):s};s.thresholds=function(){return a.slice()};s.copy=function(){return KZ().domain([r,i]).range(o).unknown(e)};return tZ.apply(_Z(s),arguments)}function YZ(){var n=[.5],r=[0,1],e,i=1;function a(t){return t!=null&&t<=t?r[h(n,t,0,i)]:e}a.domain=function(t){return arguments.length?(n=Array.from(t),i=Math.min(n.length,r.length-1),a):n.slice()};a.range=function(t){return arguments.length?(r=Array.from(t),i=Math.min(n.length,r.length-1),a):r.slice()};a.invertExtent=function(t){var e=r.indexOf(t);return[n[e-1],n[e]]};a.unknown=function(t){return arguments.length?(e=t,a):e};a.copy=function(){return YZ().domain(n).range(r).unknown(e)};return tZ.apply(a,arguments)}var XZ=new Date,ZZ=new Date;function $Z(a,o,n,r){function s(t){return a(t=arguments.length===0?new Date:new Date(+t)),t}s.floor=function(t){return a(t=new Date(+t)),t};s.ceil=function(t){return a(t=new Date(t-1)),o(t,1),a(t),t};s.round=function(t){var e=s(t),n=s.ceil(t);return t-e<n-t?e:n};s.offset=function(t,e){return o(t=new Date(+t),e==null?1:Math.floor(e)),t};s.range=function(t,e,n){var r=[],i;t=s.ceil(t);n=n==null?1:Math.floor(n);if(!(t<e)||!(n>0))return r;do{r.push(i=new Date(+t)),o(t,n),a(t)}while(i<t&&t<e);return r};s.filter=function(n){return $Z(function(t){if(t>=t)while(a(t),!n(t)){t.setTime(t-1)}},function(t,e){if(t>=t){if(e<0)while(++e<=0){while(o(t,-1),!n(t)){}}else while(--e>=0){while(o(t,+1),!n(t)){}}}})};if(n){s.count=function(t,e){XZ.setTime(+t),ZZ.setTime(+e);a(XZ),a(ZZ);return Math.floor(n(XZ,ZZ))};s.every=function(e){e=Math.floor(e);return!isFinite(e)||!(e>0)?null:!(e>1)?s:s.filter(r?function(t){return r(t)%e===0}:function(t){return s.count(0,t)%e===0})}}return s}var JZ=$Z(function(){},function(t,e){t.setTime(+t+e)},function(t,e){return e-t});JZ.every=function(n){n=Math.floor(n);if(!isFinite(n)||!(n>0))return null;if(!(n>1))return JZ;return $Z(function(t){t.setTime(Math.floor(t/n)*n)},function(t,e){t.setTime(+t+e*n)},function(t,e){return(e-t)/n})};var QZ=JZ;var t$=1e3;var e$=t$*60;var n$=e$*60;var r$=n$*24;var i$=r$*7;var a$=r$*30;var o$=r$*365;var s$=$Z(function(t){t.setTime(t-t.getMilliseconds())},function(t,e){t.setTime(+t+e*t$)},function(t,e){return(e-t)/t$},function(t){return t.getUTCSeconds()});var u$=s$;var l$=$Z(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*t$)},function(t,e){t.setTime(+t+e*e$)},function(t,e){return(e-t)/e$},function(t){return t.getMinutes()});var c$=l$;var f$=$Z(function(t){t.setTime(t-t.getMilliseconds()-t.getSeconds()*t$-t.getMinutes()*e$)},function(t,e){t.setTime(+t+e*n$)},function(t,e){return(e-t)/n$},function(t){return t.getHours()});var h$=f$;var d$=$Z(function(t){return t.setHours(0,0,0,0)},function(t,e){return t.setDate(t.getDate()+e)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*e$)/r$},function(t){return t.getDate()-1});var g$=d$;function v$(e){return $Z(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7);t.setHours(0,0,0,0)},function(t,e){t.setDate(t.getDate()+e*7)},function(t,e){return(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*e$)/i$})}var p$=v$(0);v$(1);v$(2);v$(3);v$(4);v$(5);v$(6);var y$=$Z(function(t){t.setDate(1);t.setHours(0,0,0,0)},function(t,e){t.setMonth(t.getMonth()+e)},function(t,e){return e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12},function(t){return t.getMonth()});var m$=y$;var _$=$Z(function(t){t.setMonth(0,1);t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e)},function(t,e){return e.getFullYear()-t.getFullYear()},function(t){return t.getFullYear()});_$.every=function(n){return!isFinite(n=Math.floor(n))||!(n>0)?null:$Z(function(t){t.setFullYear(Math.floor(t.getFullYear()/n)*n);t.setMonth(0,1);t.setHours(0,0,0,0)},function(t,e){t.setFullYear(t.getFullYear()+e*n)})};var b$=_$;var w$=$Z(function(t){t.setUTCSeconds(0,0)},function(t,e){t.setTime(+t+e*e$)},function(t,e){return(e-t)/e$},function(t){return t.getUTCMinutes()});var x$=w$;var k$=$Z(function(t){t.setUTCMinutes(0,0,0)},function(t,e){t.setTime(+t+e*n$)},function(t,e){return(e-t)/n$},function(t){return t.getUTCHours()});var S$=k$;var C$=$Z(function(t){t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e)},function(t,e){return(e-t)/r$},function(t){return t.getUTCDate()-1});var E$=C$;function A$(e){return $Z(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7);t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCDate(t.getUTCDate()+e*7)},function(t,e){return(e-t)/i$})}var M$=A$(0);A$(1);A$(2);A$(3);A$(4);A$(5);A$(6);var R$=$Z(function(t){t.setUTCDate(1);t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCMonth(t.getUTCMonth()+e)},function(t,e){return e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12},function(t){return t.getUTCMonth()});var T$=R$;var O$=$Z(function(t){t.setUTCMonth(0,1);t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e)},function(t,e){return e.getUTCFullYear()-t.getUTCFullYear()},function(t){return t.getUTCFullYear()});O$.every=function(n){return!isFinite(n=Math.floor(n))||!(n>0)?null:$Z(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/n)*n);t.setUTCMonth(0,1);t.setUTCHours(0,0,0,0)},function(t,e){t.setUTCFullYear(t.getUTCFullYear()+e*n)})};var P$=O$;function B$(u,t,e,n,r,i){var l=[[u$,1,t$],[u$,5,5*t$],[u$,15,15*t$],[u$,30,30*t$],[i,1,e$],[i,5,5*e$],[i,15,15*e$],[i,30,30*e$],[r,1,n$],[r,3,3*n$],[r,6,6*n$],[r,12,12*n$],[n,1,r$],[n,2,2*r$],[e,1,i$],[t,1,a$],[t,3,3*a$],[u,1,o$]];function a(t,e,n){var r=e<t;if(r){var i=[e,t];t=i[0];e=i[1]}var a=n&&typeof n.range==="function"?n:s(t,e,n);var o=a?a.range(t,+e+1):[];return r?o.reverse():o}function s(t,e,n){var r=Math.abs(e-t)/n;var i=S(function(t){var e=_slicedToArray2(t,3),n=e[2];return n}).right(l,r);if(i===l.length)return u.every(M(t/o$,e/o$,n));if(i===0)return QZ.every(Math.max(M(t,e,n),1));var a=_slicedToArray2(l[r/l[i-1][2]<l[i][2]/r?i-1:i],2),o=a[0],s=a[1];return o.every(s)}return[a,s]}var D$=B$(P$,T$,M$,E$,S$,x$),N$=_slicedToArray2(D$,2),z$=N$[0],F$=N$[1];var j$=B$(b$,m$,p$,g$,h$,c$),I$=_slicedToArray2(j$,2),L$=I$[0],H$=I$[1];function U$(t){return new Date(t)}function G$(t){return t instanceof Date?+t:+new Date(+t)}function V$(n,r,e,i,a,o,s,u,l,c){var f=yZ(),h=f.invert,d=f.domain;var g=c(".%L"),v=c(":%S"),p=c("%I:%M"),y=c("%I %p"),m=c("%a %d"),_=c("%b %d"),b=c("%B"),w=c("%Y");function x(t){return(l(t)<t?g:u(t)<t?v:s(t)<t?p:o(t)<t?y:i(t)<t?a(t)<t?m:_:e(t)<t?b:w)(t)}f.invert=function(t){return new Date(h(t))};f.domain=function(t){return arguments.length?d(Array.from(t,G$)):d().map(U$)};f.ticks=function(t){var e=d();return n(e[0],e[e.length-1],t==null?10:t)};f.tickFormat=function(t,e){return e==null?x:c(e)};f.nice=function(t){var e=d();if(!t||typeof t.range!=="function")t=r(e[0],e[e.length-1],t==null?10:t);return t?d(xZ(e,t)):f};f.copy=function(){return vZ(f,V$(n,r,e,i,a,o,s,u,l,c))};return f}function W$(){return tZ.apply(V$(L$,H$,b$,m$,p$,g$,h$,c$,u$,Qe).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function q$(){return tZ.apply(V$(z$,F$,P$,T$,M$,E$,S$,x$,u$,tn).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function K$(){var r=0,i=1,a,o,s,u,l=cZ,e=false,n;function c(t){return t==null||isNaN(t=+t)?n:l(s===0?.5:(t=(u(t)-a)*s,e?Math.max(0,Math.min(1,t)):t))}c.domain=function(t){var e,n;return arguments.length?(e=t,n=_slicedToArray2(e,2),r=n[0],i=n[1],e,a=u(r=+r),o=u(i=+i),s=a===o?0:1/(o-a),c):[r,i]};c.clamp=function(t){return arguments.length?(e=!!t,c):e};c.interpolator=function(t){return arguments.length?(l=t,c):l};function t(a){return function(t){var e,n;var r,i;return arguments.length?(e=t,n=_slicedToArray2(e,2),r=n[0],i=n[1],e,l=a(r,i),c):[l(0),l(1)]}}c.range=t(or);c.rangeRound=t(sr);c.unknown=function(t){return arguments.length?(n=t,c):n};return function(t){u=t,a=t(r),o=t(i),s=a===o?0:1/(o-a);return c}}function Y$(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function X$(){var t=_Z(K$()(cZ));t.copy=function(){return Y$(t,X$())};return eZ.apply(t,arguments)}function Z$(){var t=OZ(K$()).domain([1,10]);t.copy=function(){return Y$(t,Z$()).base(t.base())};return eZ.apply(t,arguments)}function $$(){var t=NZ(K$());t.copy=function(){return Y$(t,$$()).constant(t.constant())};return eZ.apply(t,arguments)}function J$(){var t=LZ(K$());t.copy=function(){return Y$(t,J$()).exponent(t.exponent())};return eZ.apply(t,arguments)}function Q$(){return J$.apply(null,arguments).exponent(.5)}function tJ(){var i=[],n=cZ;function a(t){if(t!=null&&!isNaN(t=+t))return n((h(i,t,1)-1)/(i.length-1))}a.domain=function(t){if(!arguments.length)return i.slice();i=[];var e=_createForOfIteratorHelper2(t),n;try{for(e.s();!(n=e.n()).done;){var r=n.value;if(r!=null&&!isNaN(r=+r))i.push(r)}}catch(t){e.e(t)}finally{e.f()}i.sort(v);return a};a.interpolator=function(t){return arguments.length?(n=t,a):n};a.range=function(){return i.map(function(t,e){return n(e/(i.length-1))})};a.quantiles=function(n){return Array.from({length:n+1},function(t,e){return Nt(i,e/n)})};a.copy=function(){return tJ(n).domain(i)};return eZ.apply(a,arguments)}function eJ(){var r=0,i=.5,a=1,o=1,s,u,l,c,f,h=cZ,d,e=false,n;function g(t){return isNaN(t=+t)?n:(t=.5+((t=+d(t))-u)*(o*t<o*u?c:f),h(e?Math.max(0,Math.min(1,t)):t))}g.domain=function(t){var e,n;return arguments.length?(e=t,n=_slicedToArray2(e,3),r=n[0],i=n[1],a=n[2],e,s=d(r=+r),u=d(i=+i),l=d(a=+a),c=s===u?0:.5/(u-s),f=u===l?0:.5/(l-u),o=u<s?-1:1,g):[r,i,a]};g.clamp=function(t){return arguments.length?(e=!!t,g):e};g.interpolator=function(t){return arguments.length?(h=t,g):h};function t(o){return function(t){var e,n;var r,i,a;return arguments.length?(e=t,n=_slicedToArray2(e,3),r=n[0],i=n[1],a=n[2],e,h=xr(o,[r,i,a]),g):[h(0),h(.5),h(1)]}}g.range=t(or);g.rangeRound=t(sr);g.unknown=function(t){return arguments.length?(n=t,g):n};return function(t){d=t,s=t(r),u=t(i),l=t(a),c=s===u?0:.5/(u-s),f=u===l?0:.5/(l-u),o=u<s?-1:1;return g}}function nJ(){var t=_Z(eJ()(cZ));t.copy=function(){return Y$(t,nJ())};return eZ.apply(t,arguments)}function rJ(){var t=OZ(eJ()).domain([.1,1,10]);t.copy=function(){return Y$(t,rJ()).base(t.base())};return eZ.apply(t,arguments)}function iJ(){var t=NZ(eJ());t.copy=function(){return Y$(t,iJ()).constant(t.constant())};return eZ.apply(t,arguments)}function aJ(){var t=LZ(eJ());t.copy=function(){return Y$(t,aJ()).exponent(t.exponent())};return eZ.apply(t,arguments)}function oJ(){return aJ.apply(null,arguments).exponent(.5)}var sJ=Object.freeze({__proto__:null,scaleBand:iZ,scalePoint:oZ,scaleIdentity:wZ,scaleLinear:bZ,scaleLog:PZ,scaleSymlog:zZ,scaleOrdinal:rZ,scaleImplicit:nZ,scalePow:HZ,scaleSqrt:UZ,scaleRadial:WZ,scaleQuantile:qZ,scaleQuantize:KZ,scaleThreshold:YZ,scaleTime:W$,scaleUtc:q$,scaleSequential:X$,scaleSequentialLog:Z$,scaleSequentialPow:J$,scaleSequentialSqrt:Q$,scaleSequentialSymlog:$$,scaleSequentialQuantile:tJ,scaleDiverging:nJ,scaleDivergingLog:rJ,scaleDivergingPow:aJ,scaleDivergingSqrt:oJ,scaleDivergingSymlog:iJ,tickFormat:mZ});var uJ=function t(e,n,r){if(e.padding)e.padding(.5);else{var i=n.map(function(t){return t[r]}).reduce(function(t,e,n,r){if(!n)return t;var i=r[n-1];if(!t||e-i<t)return e-i;else return t},0);var a=e.domain().slice();if(r==="y")a.reverse();a[0]=new Date(+a[0]-i/2);a[1]=new Date(+a[1]+i/2);if(r==="y")a.reverse();e.domain(a)}};function lJ(t){var e=this;var n=t.data,r=t.x,i=t.y,a=t.x2,o=t.y2,s=t.buffer,u=s===void 0?10:s;var l=a?"x2":"x";var c=o?"y2":"y";var f=this._discrete==="x"?i:r;var h=f.domain().slice();var d=this._discrete==="x";if(d)h.reverse();var g,v;if(this._stacked){var p=vb().key(function(t){return"".concat(t[e._discrete],"_").concat(t.group)}).entries(n).map(function(t){return t.values.map(function(t){return t[d?c:l]})});v=p.map(function(t){return Re(t.filter(function(t){return t>0}))});g=p.map(function(t){return Re(t.filter(function(t){return t<0}))})}else{v=n.map(function(t){return t[d?c:l]});g=v}var y=f(Se(v));if(d?y<f(0):y>f(0))y+=d?-u:u;y=f.invert(y);var m=f(Ce(g));if(d?m>f(0):m<f(0))m+=d?u:-u;m=f.invert(m);if(y>h[1])h[1]=y;if(m<h[0])h[0]=m;if(d)h.reverse();f.domain(h);uJ(d?r:i,n,this._discrete);return[r,i]}function cJ(t){var e=this;var n=t.data,r=t.x,i=t.y,a=t.x2,o=t.y2,s=t.buffer,u=s===void 0?10:s;var l=a?"x2":"x";var c=o?"y2":"y";var f=this._discrete==="x"?i:r;var h=f.domain().slice();var d=this._discrete==="x";if(d)h.reverse();var g,v;if(this._stacked){var p=vb().key(function(t){return t[e._discrete]}).entries(n).map(function(t){return t.values.map(function(t){return t[d?c:l]})});v=p.map(function(t){return Re(t.filter(function(t){return t>0}))});g=p.map(function(t){return Re(t.filter(function(t){return t<0}))})}else{v=n.map(function(t){return t[d?c:l]});g=v}var y=f(Se(v));y+=d?-u:u;y=f.invert(y);var m=f(Ce(g));m+=d?u:-u;m=f.invert(m);if(y>h[1])h[1]=y;if(m<h[0])h[0]=m;if(d)h.reverse();f.domain(h);uJ(d?r:i,n,this._discrete);return[r,i]}var fJ=function t(e){return Math.pow(10,Math.floor(Math.log10(Math.abs(e))))*Math.pow(-1,e<0)};var hJ=function t(e){return Math.pow(10,Math.ceil(Math.log10(Math.abs(e))))*Math.pow(-1,e<0)};function dJ(f,h,d,g,t,e,v,p){if(isNaN(e[0])||isNaN(e[1]))return e;if(p){e=e.slice().reverse();t=t.slice().reverse()}if(e[0]===e[1]){e=e.slice();if(h==="log"){e=[fJ(e[0]),hJ(e[0])];if(e[1]<e[0])e.reverse()}else{var n=Math.abs(parseFloat(e[0].toPrecision(1).replace(/[0-9]{1}$/,"1")));e[0]-=n;e[1]+=n}f.domain(p?e.slice().reverse():e);return p?e.reverse():e}var r=e[0]===e[1]?10:Math.abs(Math.log(e[1]-e[0])/10);var i=function t(){var e=f.copy();var n=false;if(h==="log"){var r=f.domain().slice(),i=f.range().slice();if(p){r=r.reverse();i=i.reverse()}n=r[0]*r[1]<0;if(n){var a=PZ().domain([1e-6,Math.abs(r[v])]).range([0,1]);var o=a(Math.abs(r[v?0:1]));var s=o/(o+1)*(i[1]-i[0]);r=(v===0?[r[0],1e-6]:[1e-6,r[1]]).map(Math.abs);i=v===0?[i[0],i[0]+s]:[i[0]+s,i[1]]}e=PZ().domain(r).range(i)}var u=false;var l=e.range();var c;if(h==="log"){c=n?e(Math.abs(d)):e(d)}else c=e(d);if(p){if(v===0)u=c+g>l[v];else if(v===1)u=c-g<l[v]}else{if(v===0)u=c-g<l[v];else if(v===1)u=c+g>l[v]}return u};if(f.invert&&i()){var a=10;if(h==="log"){var o=0;while(o<10&&i()){var s=(v===0?-1:1)*(e[v]<0?-1:1);e[v]+=e[v]*r*s;f.domain(p?e.slice().reverse():e);o++}}else if(v===0){var u=f.invert(f(d)+(g+a)*(p?1:-1));if(u<e[v]){e[v]=u;f.domain(p?e.slice().reverse():e)}}else if(v===1){var l=f.invert(f(d)+(g+a)*(p?-1:1));if(l>e[v]){e[v]=l;f.domain(p?e.slice().reverse():e)}}}return p?e.reverse():e}function gJ(t){var e=t.data,n=t.x,r=t.y,i=t.x2,a=t.y2,o=t.yScale,s=t.xScale,u=t.config,l=t.buffer;n=n.copy();r=r.copy();var c=i?"x2":"x";var f=a?"y2":"y";var h=n.domain().slice(),d=r.domain().slice();var g=n.range(),v=r.range();if(!n.invert&&n.padding)uJ(n,e,this._discrete);if(!r.invert&&r.padding)uJ(r,e,this._discrete);if(n.invert||r.invert){e.forEach(function(t){var e=l?l:u.r(t.data,t.i)*2;if(n.invert){h=dJ(n,s,t[c],e,g,h,0,false);h=dJ(n,s,t[c],e,g,h,1,false)}if(r.invert){d=dJ(r,o,t[f],e,v,d,0,true);d=dJ(r,o,t[f],e,v,d,1,true)}})}return[n,r]}function vJ(t){var e=this;var n=t.data,r=t.x,i=t.y,a=t.x2,o=t.y2;var s=a?"x2":"x";var u=o?"y2":"y";var l=this._discrete==="x"?i:r;var c=l.domain().slice();if(this._discrete==="x")c.reverse();var f=n.map(function(t){return t[e._discrete==="x"?u:s]});var h=l.invert(l(Se(f))+(this._discrete==="x"?-10:10));if(h>c[1])c[1]=h;if(this._discrete==="x")c.reverse();l.domain(c);return[r,i]}function pJ(t){var e=t.data,r=t.x,i=t.y,n=t.x2,a=t.y2,o=t.yScale,s=t.xScale,u=t.config;r=r.copy();i=i.copy();var l=n?"x2":"x";var c=a?"y2":"y";var f=r.domain().slice(),h=i.domain().slice();var d=r.range(),g=i.range();if(!r.invert&&r.padding)uJ(r,e,this._discrete);if(!i.invert&&i.padding)uJ(i,e,this._discrete);if(r.invert||i.invert){e.forEach(function(t){if(r.invert){var e=u.width(t.data,t.i);f=dJ(r,s,t[l],e,d,f,0,false);f=dJ(r,s,t[l],e,d,f,1,false)}if(i.invert){var n=u.height(t.data,t.i);h=dJ(i,o,t[c],n,g,h,0,true);h=dJ(i,o,t[c],n,g,h,1,true)}})}return[r,i]}function yJ(t){"@babel/helpers - typeof";return yJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yJ(t)}function mJ(t,e){return kJ(t)||xJ(t,e)||bJ(t,e)||_J()}function _J(){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 bJ(t,e){if(!t)return;if(typeof t==="string")return wJ(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor)n=t.constructor.name;if(n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wJ(t,e)}function wJ(t,e){if(e==null||e>t.length)e=t.length;for(var n=0,r=new Array(e);n<e;n++){r[n]=t[n]}return r}function xJ(t,e){var n=t==null?null:typeof Symbol!=="undefined"&&t[Symbol.iterator]||t["@@iterator"];if(n==null)return;var r=[];var i=true;var a=false;var o,s;try{for(n=n.call(t);!(i=(o=n.next()).done);i=true){r.push(o.value);if(e&&r.length===e)break}}catch(t){a=true;s=t}finally{try{if(!i&&n["return"]!=null)n["return"]()}finally{if(a)throw s}}return r}function kJ(t){if(Array.isArray(t))return t}function SJ(t,e,n){if(e in t){Object.defineProperty(t,e,{value:n,enumerable:true,configurable:true,writable:true})}else{t[e]=n}return t}function CJ(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function EJ(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function AJ(t,e,n){if(e)EJ(t.prototype,e);if(n)EJ(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function MJ(){if(typeof Reflect!=="undefined"&&Reflect.get){MJ=Reflect.get}else{MJ=function t(e,n,r){var i=RJ(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(arguments.length<3?e:r)}return a.value}}return MJ.apply(this,arguments)}function RJ(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=zJ(t);if(t===null)break}return t}function TJ(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});Object.defineProperty(t,"prototype",{writable:false});if(e)OJ(t,e)}function OJ(t,e){OJ=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return OJ(t,e)}function PJ(i){var a=NJ();return function t(){var e=zJ(i),n;if(a){var r=zJ(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return BJ(this,n)}}function BJ(t,e){if(e&&(yJ(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return DJ(t)}function DJ(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function NJ(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function zJ(t){zJ=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return zJ(t)}var FJ=new i4;var jJ=new y9;function IJ(t){return this._sizeScaleD3(this._size?this._size(t):null)}function LJ(t){var n=t.map(UJ);var r=t.map(function(t){return t.key.split("_")[0]});return l6(t).sort(function(t,e){return r[e].localeCompare(r[t])||n[t]-n[e]})}function HJ(t){return LJ(t).reverse()}function UJ(t){var e=-1,n=0,r;var i=t.length;while(++e<i){if(r=+t[e][1])n+=r}return n}function GJ(t,e){var n;if(!((n=t.length)>0))return;var r,i,a,o,s;var u=t[e[0]].length;for(var l=0;l<u;++l){for(s=o=0,a=0;a<n;++a){if((i=(r=t[e[a]][l])[1]-r[0])>=0){r[0]=s,r[1]=s+=i}else if(i<0){r[1]=o,r[0]=o+=i}else{r[0]=s}}}}function VJ(t,e){if(this._stacked)return false;var n=this._discrete.charAt(0)==="x"?"y":"x";var r=this._discrete.replace(this._discrete.charAt(0),n);var i=this["_".concat(r,"Axis")]._d3Scale.range();var a=this["_".concat(r)](t,e);var o=a<0;var s=this["_".concat(r,"Axis")]._getPosition(0);var u=r==="y"?o?i[1]-s:s-i[0]:o?s-i[0]:i[1]-s;var l=this["_".concat(r,"Axis")]._getPosition(a);var c=Math.abs(l-s);return c<u/2}var WJ=function(t){TJ(we,t);var e=PJ(we);function we(){var i;CJ(this,we);i=e.call(this);i._annotations=[];i._backgroundConfig={duration:0,fill:"transparent"};i._barPadding=0;i._buffer={Bar:lJ,Box:cJ,Circle:gJ,Line:vJ,Rect:pJ};i._confidenceConfig={fill:function t(e,n){var r=typeof i._shapeConfig.Line.stroke==="function"?i._shapeConfig.Line.stroke(e,n):i._shapeConfig.Line.stroke;return r},fillOpacity:cb(.5)};i._discreteCutoff=100;i._groupPadding=5;i._lineMarkerConfig={fill:function t(e,n){return tw(i._id(e,n))},r:cb(3)};i._lineMarkers=false;i._previousShapes=[];i._shape=cb("Circle");i._shapeConfig=tc(i._shapeConfig,{Area:{label:function t(e,n){return i._stacked?i._drawLabel(e,n):false},labelBounds:function t(e,n,r){var i=Uk(r.points,{angle:Me(-20,20,5)});if(!i||i.height<20||i.width<50)i=Uk(r.points,{angle:Me(-80,80,5)});if(!i)return null;var a=Ce(r.points,function(t){return t[0]});var o=Se(r.points.filter(function(t){return t[0]===a}),function(t){return t[1]});return{angle:i.angle,width:i.width,height:i.height,x:i.cx-i.width/2-a,y:i.cy-i.height/2-o}},labelConfig:{fontMin:6,fontResize:true,padding:10}},ariaLabel:function t(e,n){var r="";if(e.nested)r="".concat(i._drawLabel(e.data,e.i));else{r="".concat(i._drawLabel(e,n));if(i._x(e,n)!==undefined)r+=", x: ".concat(i._x(e,n));if(i._y(e,n)!==undefined)r+=", y: ".concat(i._y(e,n));if(i._x2(e,n)!==undefined)r+=", x2: ".concat(i._x2(e,n));if(i._y2(e,n)!==undefined)r+=", y2: ".concat(i._y2(e,n))}return"".concat(r,".")},Bar:{labelBounds:function t(e,n,r){var i;var a=1;var o=this._discrete==="y"?"width":"height";var s=this._discrete==="y"?"height":"width";var u=this._discrete.charAt(0)==="x"?"y":"x";var l=u==="y";var c=this._discrete.replace(this._discrete.charAt(0),u);var f=this["_".concat(c,"Axis")]._d3Scale.range();var h=Math.abs(f[1]-f[0]);var d=this["_".concat(c)](e,n)<0;if(VJ.bind(this)(e,n)){var g;return g={},SJ(g,o,h-r[o]),SJ(g,s,r[s]),SJ(g,"x",l?-r.width/2:d?-h:r.width+a),SJ(g,"y",l?d?r.height+a:-h:-r.height/2+1),g}return i={},SJ(i,o,r[o]),SJ(i,s,r[s]),SJ(i,"x",l?-r.width/2:d?this._stacked?a:a-r.width:-a),SJ(i,"y",l?d?this._stacked?a-r.height:a:-r.height+a:-r.height/2+a),i},labelConfig:{fontMax:16,fontMin:6,fontResize:true,fontColor:function t(e,n){return VJ.bind(this)(e,n)?this._backgroundConfig.fill==="transparent"?Q2.dark:ew(this._backgroundConfig.fill):ew(typeof this._shapeConfig.fill==="function"?this._shapeConfig.fill(e,n):this._shapeConfig.fill)},fontStroke:function t(e,n){return VJ.bind(this)(e,n)?this._backgroundConfig.fill==="transparent"?Q2.dark:ew(this._backgroundConfig.fill):"transparent"},fontStrokeWidth:function t(e,n){return VJ.bind(this)(e,n)?.1:0},padding:3,textAnchor:function t(e,n){var r=this._discrete.charAt(0)==="x"?"y":"x";var i=r==="y";var a=this._discrete.replace(this._discrete.charAt(0),r);var o=this["_".concat(a)](e,n)<0;return i?"middle":VJ.bind(this)(e,n)?o?"end":"start":o?"start":"end"},verticalAlign:function t(e,n){var r=this._discrete.charAt(0)==="x"?"y":"x";var i=r==="y";var a=this._discrete.replace(this._discrete.charAt(0),r);var o=this["_".concat(a)](e,n)<0;return i?VJ.bind(this)(e,n)?o?"top":"bottom":o?"bottom":"top":"middle"}}},Circle:{r:IJ.bind(DJ(i))},Line:{curve:function t(){return i._discrete?"monotone".concat(i._discrete.charAt(0).toUpperCase()):"linear"},fill:cb("none"),labelConfig:{fontColor:function t(e,n){var r=typeof i._shapeConfig.Line.stroke==="function"?i._shapeConfig.Line.stroke(e,n):i._shapeConfig.Line.stroke;return nw(r)},fontResize:false,padding:5,textAnchor:"start",verticalAlign:"middle"},strokeWidth:cb(2)},Rect:{height:function t(e){return IJ.bind(DJ(i))(e)*2},width:function t(e){return IJ.bind(DJ(i))(e)*2}}});i._shapeOrder=["Area","Path","Bar","Box","Line","Rect","Circle"];i._shapeSort=function(t,e){return i._shapeOrder.indexOf(t)-i._shapeOrder.indexOf(e)};i._sizeMax=20;i._sizeMin=5;i._sizeScale="sqrt";i._stackOffset=GJ;i._stackOrder=HJ;i._timelineConfig=tc(i._timelineConfig,{brushing:true,brushMin:function t(){return i._xTime||i._yTime||i._x2Time||i._y2Time?2:1}});i._x=Zl("x");i._xAxis=(new TC).align("end");i._xTest=(new TC).align("end").gridSize(0);i._xConfig={gridConfig:{stroke:function t(e){if(i._discrete&&i._discrete.charAt(0)==="x")return"transparent";var n=i._xAxis.range();return n[0]===i._xAxis._getPosition.bind(i._xAxis)(e.id)?"transparent":"#eee"}}};i._xCutoff=150;i._x2=Zl("x2");i._x2Axis=(new h5).align("start");i._x2Test=(new h5).align("start").gridSize(0);i._x2Config={padding:0};i._y=Zl("y");i._yAxis=(new UC).align("start");i._yTest=(new UC).align("start").gridSize(0);i._yConfig={gridConfig:{stroke:function t(e){if(i._discrete&&i._discrete.charAt(0)==="y")return"transparent";var n=i._yAxis.range();return n[n.length-1]===i._yAxis._getPosition.bind(i._yAxis)(e.id)?"transparent":"#eee"}}};i._yCutoff=150;i._y2=Zl("y2");i._y2Axis=(new t5).align("end");i._y2Test=(new UC).align("end").gridSize(0);i._y2Config={};return i}AJ(we,[{key:"_preDraw",value:function t(){var n=this;["x","y","x2","y2"].forEach(function(t){if(n["_".concat(t,"Key")]){var e=n["_".concat(t,"Key")];if(!n._aggs[e]&&n._discrete===t){n._aggs[e]=function(t,e){var n=Array.from(new Set(t.map(e)));return n.length===1?n[0]:n}}if(e!==t&&n["_".concat(t,"Title")]===n["_".concat(t,"Config")].title&&n._discrete!==t){n["_".concat(t,"Title")]=e;n["_".concat(t,"Config")].title=e}}});MJ(zJ(we.prototype),"_preDraw",this).call(this)}},{key:"_draw",value:function t(e){var z=this;if(!this._filteredData.length)return this;var s=function t(e,n){return z._stacked?"".concat(z._groupBy.length>1?z._ids(e,n).slice(0,-1).join("_"):"group"):"".concat(z._ids(e,n).join("_"))};var u=this._filteredData.map(function(t,e){return{__d3plus__:true,data:t,group:s(t,e),i:e,hci:z._confidence&&z._confidence[1]&&z._confidence[1](t,e),id:z._ids(t,e).slice(0,z._drawDepth+1).join("_"),lci:z._confidence&&z._confidence[0]&&z._confidence[0](t,e),shape:z._shape(t,e),x:z._x(t,e),x2:z._x2(t,e),y:z._y(t,e),y2:z._y2(t,e)}});this._formattedData=u;if(this._size){var n=ke(u,function(t){return z._size(t.data)});this._sizeScaleD3=function(){return z._sizeMin};this._sizeScaleD3=sJ["scale".concat(this._sizeScale.charAt(0).toUpperCase()).concat(this._sizeScale.slice(1))]().domain(n).range([n[0]===n[1]?this._sizeMax:Ce([this._sizeMax/2,this._sizeMin]),this._sizeMax])}else{this._sizeScaleD3=function(){return z._sizeMin}}var r=u.some(function(t){return t.x2!==undefined}),i=u.some(function(t){return t.y2!==undefined});var a=this._height-this._margin.top-this._margin.bottom,l=this._discrete?this._discrete==="x"?"y":"x":undefined,o=this._discrete?this._discrete==="x"?"y2":"x2":undefined,c=[l,o].filter(function(t){return t}),f=this._select,h=this._transition,F=this._width-this._margin.left-this._margin.right;var d=this._x2Time=this._time&&u[0].x2===this._time(u[0].data,u[0].i),g=this._xTime=this._time&&u[0].x===this._time(u[0].data,u[0].i),v=this._y2Time=this._time&&u[0].y2===this._time(u[0].data,u[0].i),p=this._yTime=this._time&&u[0].y===this._time(u[0].data,u[0].i);for(var y=0;y<u.length;y++){var m=u[y];if(g)m.x=Z4(m.x);if(d)m.x2=Z4(m.x2);if(p)m.y=Z4(m.y);if(v)m.y2=Z4(m.y2);m.discrete=m.shape==="Bar"?"".concat(m[this._discrete],"_").concat(m.group):"".concat(m[this._discrete])}function _(n){var r=this;var t=u.filter(function(t){return t[n]}).sort(function(t,e){return r["_".concat(n,"Sort")]?r["_".concat(n,"Sort")](t.data,e.data):t[n]-e[n]}).map(function(t){return t[n]});if(this._discrete!==n.charAt(0)&&this._confidence){if(this._confidence[0])t=t.concat(u.map(function(t){return t.lci}));if(this._confidence[1])t=t.concat(u.map(function(t){return t.hci}))}return kb(t,function(t){return"".concat(t)})}var b=_.bind(this)("x");var w=_.bind(this)("x2");var x=_.bind(this)("y");var k=_.bind(this)("y2");var S=u.some(function(t){return t.shape==="Bar"});var C,E,A,M;if(this._stacked){var R;var T=vb().key(function(t){return t.group}).entries(u).reduce(function(t,e){if(!t[e.key])t[e.key]=0;t[e.key]+=Re(e.values,function(t){return t[l]});return t},{});u=u.sort(function(t,e){if(z["_".concat(z._discrete,"Sort")])return z["_".concat(z._discrete,"Sort")](t.data,e.data);var n=t[z._discrete],r=e[z._discrete];if(n-r!==0)return n-r;if(t.group!==e.group)return T[e.group]-T[t.group];return e[l]-t[l]});C=Array.from(new Set(u.map(function(t){return t.discrete})));M=Array.from(new Set(u.map(function(t){return t.id})));A=vb().key(function(t){return t.discrete}).entries(u).map(function(t){return t.values});A.forEach(function(a){var o=Array.from(new Set(a.map(function(t){return t.id})));if(o.length<M.length){M.forEach(function(e){if(!o.includes(e)){var t=u.filter(function(t){return t.id===e})[0];if(t.shape==="Area"){var n;var r=s(t.data,t.i);var i=(n={__d3plus__:true,data:t.data,discrete:t.shape==="Bar"?"".concat(a[0][z._discrete],"_").concat(r):"".concat(a[0][z._discrete]),group:r,id:e,shape:t.shape},SJ(n,z._discrete,a[0][z._discrete]),SJ(n,l,0),n);u.push(i)}}})}});if(this["_".concat(this._discrete,"Sort")]){u.sort(function(t,e){return z["_".concat(z._discrete,"Sort")](t.data,e.data)})}else{u.sort(function(t,e){return t[z._discrete]-e[z._discrete]})}var O=this._stackOrder;if(O instanceof Array)M.sort(function(t,e){return O.indexOf(t)-O.indexOf(e)});else if(O===l6)M.sort(function(t,e){return t.localeCompare(e)});A=h6().keys(M).offset(this._stackOffset).order(O instanceof Array?l6:O).value(function(t,e){var n=t.filter(function(t){return t.id===e});return n.length?n[0][l]:0})(A);var P=this._discrete==="x"?b:x;E=(R={},SJ(R,this._discrete,!S&&this["_".concat(this._discrete,"Time")]?ke(P):P),SJ(R,l,[Ce(A.map(function(t){return Ce(t.map(function(t){return t[0]}))})),Se(A.map(function(t){return Se(t.map(function(t){return t[1]}))}))]),R)}else{var B=this._discrete||"x";if(this["_".concat(this._discrete,"Sort")]){u.sort(function(t,e){return z["_".concat(z._discrete,"Sort")](t.data,e.data)})}else{u.sort(function(t,e){return t[B]-e[B]})}E={x:(S||!g)&&this._discrete==="x"||this._xSort?b:ke(b),x2:(S||!d)&&this._discrete==="x"||this._x2Sort?w:ke(w),y:(S||!p)&&this._discrete==="y"||this._ySort?x:ke(x),y2:(S||!v)&&this._discrete==="y"||this._y2Sort?k:ke(k)}}function D(t){var e=!S&&this["_".concat(t,"Time")]?"Time":this._discrete===t||this["_".concat(t,"Sort")]?"Point":"Linear";var n=this["_".concat(t,"Domain")]?this["_".concat(t,"Domain")].slice():E[t],r=this["_".concat(t,"2Domain")]?this["_".concat(t,"2Domain")].slice():E["".concat(t,"2")];if(e!=="Point"){if(n&&n[0]===void 0)n[0]=E[t][0];if(n&&n[1]===void 0)n[1]=E[t][1];if(r&&r[0]===void 0)r[0]=E["".concat(t,"2")][0];if(r&&r[1]===void 0)r[1]=E["".concat(t,"2")][1]}return[n,e,r,e]}var N=D.bind(this)("x"),j=mJ(N,4),I=j[0],L=j[1],H=j[2],U=j[3];var G=D.bind(this)("y"),V=mJ(G,4),W=V[0],q=V[1],K=V[2],Y=V[3];var X=function t(e,n){var r=z["_".concat(e,"Config")].scale;if(r==="auto"){if(z._discrete===e)return n;var i=u.map(function(t){return t[e]});return xe(i)/Ee(i)>3?"log":"linear"}return r||n};var Z=this._yConfigScale=X("y",q).toLowerCase();var $=this._y2ConfigScale=X("y2",Y).toLowerCase();var J=this._xConfigScale=X("x",L).toLowerCase();var Q=this._x2ConfigScale=X("x2",U).toLowerCase();E={x:I,x2:H||I,y:W,y2:K||W};Object.keys(E).forEach(function(e){if(z["_".concat(e,"ConfigScale")]==="log"&&E[e].includes(0)){if(Ce(E[e])<0)E[e][1]=Se(u.map(function(t){return t[e]}).filter(Boolean));else E[e][0]=Ce(u.map(function(t){return t[e]}).filter(Boolean))}});c.forEach(function(t){if(z["_".concat(t,"Config")].domain){var e=z["_".concat(t,"Config")].domain;if(z._discrete==="x")e.reverse();E[t]=e}else if(t&&z._baseline!==void 0){var n=z._baseline;if(E[t]&&E[t][0]>n)E[t][0]=n;else if(E[t]&&E[t][1]<n)E[t][1]=n}});var tt=sJ["scale".concat(L)]().domain(E.x).range(Me(0,F+1,F/(E.x.length-1))),et=sJ["scale".concat(U)]().domain(E.x2).range(Me(0,F+1,F/(E.x2.length-1))),nt=sJ["scale".concat(q)]().domain(E.y.reverse()).range(Me(0,a+1,a/(E.y.length-1))),rt=sJ["scale".concat(Y)]().domain(E.y2.reverse()).range(Me(0,a+1,a/(E.y2.length-1)));var it=vb().key(function(t){return t.shape}).entries(u).sort(function(t,e){return z._shapeSort(t.key,e.key)});var at=this._discrete==="x"?q:L;if(at!=="Point"){it.forEach(function(t){if(z._buffer[t.key]){var e=z._buffer[t.key].bind(z)({data:t.values,x:tt,y:nt,yScale:Z,xScale:J,config:z._shapeConfig[t.key]});tt=e[0];nt=e[1];var n=z._buffer[t.key].bind(z)({data:t.values,x:et,y:rt,yScale:$,xScale:Q,x2:true,y2:true,config:z._shapeConfig[t.key]});et=n[0];rt=n[1]}})}var ot=tt.domain();var st=et.domain();var ut=nt.domain();var lt=rt.domain();var ct={barConfig:{"stroke-width":0},gridSize:0,labels:[],title:false,tickSize:0};var ft=r?{data:w}:ct;var ht=i?{data:k}:ct;var dt=this._discrete==="x"&&this._width>this._discreteCutoff||this._width>this._xCutoff;var gt=this._discrete==="y"&&this._height>this._discreteCutoff||this._height>this._yCutoff;var vt={data:x,locale:this._locale,scalePadding:nt.padding?nt.padding():0};if(!dt){vt.barConfig={stroke:"transparent"};vt.tickSize=0;vt.shapeConfig={labelBounds:function t(e,n){var r=e.labelBounds,i=r.width,a=r.y;var o=z._height/2;var s=n?-o:0;return{x:s,y:a,width:i,height:o}},labelConfig:{padding:0,rotate:0,verticalAlign:function t(e){return e.id===bt[0]?"top":"bottom"}},labelRotation:false}}var pt=fb("g.d3plus-plot-test",{enter:{opacity:0},parent:this._select});var yt=this._discrete==="x"?E.x2:undefined,mt=!gt?ke(E.x):this._discrete==="x"?E.x:undefined,_t=this._discrete==="y"?E.y2:undefined,bt=!dt?ke(E.y):this._discrete==="y"?E.y:undefined;var wt=lb.bind(this)(this._shapeConfig,"shape","Bar");var xt=wt.label!==undefined?typeof wt.label==="function"?wt.label:cb(wt.label):this._drawLabel;var kt=this._filteredData.map(function(t,e){return xt(t,e)}).filter(function(t){return typeof t==="number"||t}).map(String);if(U==="Point"&&yt instanceof Array&&yt.every(function(t){return kt.includes("".concat(t))}))yt=[];if(L==="Point"&&mt instanceof Array&&mt.every(function(t){return kt.includes("".concat(t))}))mt=[];if(Y==="Point"&&_t instanceof Array&&_t.every(function(t){return kt.includes("".concat(t))}))_t=[];if(q==="Point"&&bt instanceof Array&&bt.every(function(t){return kt.includes("".concat(t))}))bt=[];if(gt){this._yTest.domain(ut).height(a).maxSize(F/2).range([undefined,undefined]).select(pt.node()).ticks(bt).width(F).config(vt).config(this._yConfig).scale(Z).render()}var St=this._yTest.outerBounds();var Ct=St.width?St.width+this._yTest.padding():undefined;if(i){this._y2Test.domain(lt).height(a).range([undefined,undefined]).select(pt.node()).ticks(_t).width(F).config(vt).config(ht).config(this._y2Config).scale($).render()}var Et=this._y2Test.outerBounds();var At=Et.width?Et.width+this._y2Test.padding():undefined;var Mt={data:b,locale:this._locale,scalePadding:tt.padding?tt.padding():0};if(!gt){Mt.barConfig={stroke:"transparent"};Mt.tickSize=0;Mt.shapeConfig={labelBounds:function t(e,n){var r=e.labelBounds,i=r.height,a=r.y;var o=z._width/2;var s=n?-o:0;return{x:s,y:a,width:o,height:i}},labelConfig:{padding:0,rotate:0,textAnchor:function t(e){return e.id===mt[0]?"start":"end"}},labelRotation:false}}var Rt=undefined;if(dt){this._xTest.domain(ot).height(a).maxSize(a/2).range([undefined,Rt]).select(pt.node()).ticks(mt).width(F).config(Mt).config(this._xConfig).scale(J).render()}var Tt;if(this._lineLabels){var Ot=vb().key(function(t){return t.id}).entries(u.filter(function(t){return t.shape==="Line"}));if(Ot.length){var Pt=lb.bind(this)(this._shapeConfig,"shape","Line");FJ.config(Pt);var Bt=FJ.labelConfig();var Dt=Bt.fontSize!==undefined?Bt.fontSize:jJ.fontSize();var Nt=Bt.fontWeight!==undefined?Bt.fontWeight:jJ.fontWeight();var zt=Bt.fontFamily!==undefined?Bt.fontFamily:jJ.fontFamily();var Ft=Bt.padding!==undefined?Bt.padding:jJ.padding();var jt=Pt.label||this._drawLabel;var It=function t(e){if(J==="log"&&e===0)e=ot[0]<0?z._xTest._d3Scale.domain()[1]:z._xTest._d3Scale.domain()[0];return z._xTest._getPosition.bind(z._xTest)(e)};var Lt=Se(Ot.map(function(t){return Se(t.values.map(function(t){return It(t.x)}))}));var Ht=Ot.map(function(t){var e=t.values[t.values.length-1];var n;while(e.__d3plus__&&e.data){e=e.data;n=e.i}var r=typeof jt==="function"?jt(e,n):jt;var i=typeof Dt==="function"?Dt(e,n):Dt;var a=typeof Nt==="function"?Nt(e,n):Nt;var o=typeof zt==="function"?zt(e,n):zt;if(o instanceof Array)o=o.map(function(t){return"'".concat(t,"'")}).join(", ");var s=typeof Ft==="function"?Ft(e,n):Ft;var u=E6(r,{"font-size":i,"font-family":o,"font-weight":a});var l=Se(t.values.map(function(t){return It(t.x)}));return{labelWidth:u+s*2,spaceNeeded:l-Lt+u+s*2}});Tt=Se(Ht.map(function(t){return t.labelWidth}));var Ut=Se(Ht.map(function(t){return t.spaceNeeded}));var Gt=Ce([Ut,F/4]);Rt=F-Gt-this._margin.right}}if(dt&&Rt){this._xTest.domain(ot).height(a).maxSize(a/2).range([undefined,Rt]).select(pt.node()).ticks(mt).width(F).config(Mt).config(this._xConfig).scale(J).render()}if(r){this._x2Test.domain(st).height(a).range([undefined,Rt]).select(pt.node()).ticks(yt).width(F).config(Mt).tickSize(0).config(ft).config(this._x2Config).scale(Q).render()}var Vt=this._xTest._getRange();var Wt=this._x2Test._getRange();var qt=this._x2Test.outerBounds();var Kt=r?qt.height+this._x2Test.padding():0;var Yt=Se([Ct,Vt[0],Wt[0]]);if(dt){this._xTest.range([Yt,undefined]).render()}var Xt=gt?this._yTest.shapeConfig().labelConfig.fontSize()/2:0;var Zt=Se([At,F-Vt[1],F-Wt[1]]);var $t=this._xTest.outerBounds();var Jt=$t.height+(gt?this._xTest.padding():0);this._padding.left+=Yt;this._padding.right+=Zt;this._padding.bottom+=Jt;this._padding.top+=Kt+Xt;MJ(zJ(we.prototype),"_draw",this).call(this,e);var Qt=this._margin.left+this._margin.right;var te=this._margin.top+this._margin.bottom;var ee=[Kt,a-(Jt+Xt+te)];if(gt){this._yTest.domain(ut).height(a).maxSize(F/2).range(ee).select(pt.node()).ticks(bt).width(F).config(vt).config(this._yConfig).scale(Z).render()}St=this._yTest.outerBounds();Ct=St.width?St.width+this._yTest.padding():undefined;Yt=Se([Ct,Vt[0],Wt[0]]);if(i){this._y2Test.config(vt).domain(lt).gridSize(0).height(a).range(ee).select(pt.node()).width(F-Se([0,Zt-At])).title(false).config(this._y2Config).config(ht).scale($).render()}Et=this._y2Test.outerBounds();At=Et.width?Et.width+this._y2Test.padding():undefined;Zt=Se([0,At,F-Vt[1],F-Wt[1]]);var ne=[Yt,F-(Zt+Qt)];var re=fb("g.d3plus-plot-background",{parent:f,transition:h});var ie="translate(".concat(this._margin.left,", ").concat(this._margin.top+Kt+Xt,")");var ae="translate(".concat(this._margin.left,", ").concat(this._margin.top+Xt,")");var oe=dt&&fb("g.d3plus-plot-x-axis",{parent:f,transition:h,enter:{transform:ie},update:{transform:ie}});var se=r&&fb("g.d3plus-plot-x2-axis",{parent:f,transition:h,enter:{transform:ae},update:{transform:ae}});var ue=Yt>Ct?Yt-Ct:0;var le="translate(".concat(this._margin.left+ue,", ").concat(this._margin.top+Xt,")");var ce=gt&&fb("g.d3plus-plot-y-axis",{parent:f,transition:h,enter:{transform:le},update:{transform:le}});var fe="translate(-".concat(this._margin.right,", ").concat(this._margin.top+Xt,")");var he=i&&fb("g.d3plus-plot-y2-axis",{parent:f,transition:h,enter:{transform:fe},update:{transform:fe}});this._xAxis.domain(ot).height(a-(Kt+Xt+te)).maxSize(a/2).range(ne).select(dt?oe.node():undefined).ticks(mt).width(F).config(Mt).config(this._xConfig).scale(J).render();if(r){this._x2Axis.domain(st).height(a-(Jt+Xt+te)).range(ne).select(se.node()).ticks(yt).width(F).config(Mt).config(ft).config(this._x2Config).scale(Q).render()}this._xFunc=tt=function t(e,n){if(n==="x2"){if(Q==="log"&&e===0)e=st[0]<0?z._x2Axis._d3Scale.domain()[1]:z._x2Axis._d3Scale.domain()[0];return z._x2Axis._getPosition.bind(z._x2Axis)(e)}else{if(J==="log"&&e===0)e=ot[0]<0?z._xAxis._d3Scale.domain()[1]:z._xAxis._d3Scale.domain()[0];return z._xAxis._getPosition.bind(z._xAxis)(e)}};ee=[this._xAxis.outerBounds().y+Kt,a-(Jt+Xt+te)];this._yAxis.domain(ut).height(a).maxSize(F/2).range(ee).select(gt?ce.node():undefined).ticks(bt).width(ne[ne.length-1]).config(vt).config(this._yConfig).scale(Z).render();if(i){this._y2Axis.config(vt).domain(i?lt:ut).gridSize(0).height(a).range(ee).select(he.node()).width(F-Se([0,Zt-At])).title(false).config(this._y2Config).config(ht).scale($).render()}this._yFunc=nt=function t(e,n){if(n==="y2"){if($==="log"&&e===0)e=lt[1]<0?z._y2Axis._d3ScaleNegative.domain()[0]:z._y2Axis._d3Scale.domain()[1];return z._y2Axis._getPosition.bind(z._y2Axis)(e)-Kt}else{if(Z==="log"&&e===0)e=ut[1]<0?z._yAxis._d3ScaleNegative.domain()[0]:z._yAxis._d3Scale.domain()[1];return z._yAxis._getPosition.bind(z._yAxis)(e)-Kt}};(new VS).data([{}]).select(re.node()).x(ne[0]+(ne[1]-ne[0])/2).width(ne[1]-ne[0]).y(this._margin.top+Xt+ee[0]+(ee[1]-ee[0])/2).height(ee[1]-ee[0]).config(this._backgroundConfig).render();var de=fb("g.d3plus-plot-annotations",{parent:f,transition:h,enter:{transform:ie},update:{transform:ie}}).node();this._annotations.forEach(function(t){(new X4[t.shape]).config(t).config({x:function t(e){return e.x2?tt(e.x2,"x2"):tt(e.x)},x0:z._discrete==="x"?function(t){return t.x2?tt(t.x2,"x2"):tt(t.x)}:tt(E.x[0]),x1:z._discrete==="x"?null:function(t){return t.x2?tt(t.x2,"x2"):tt(t.x)},y:function t(e){return e.y2?nt(e.y2,"y2"):nt(e.y)},y0:z._discrete==="y"?function(t){return t.y2?nt(t.y2,"y2"):nt(t.y)}:nt(E.y[1])-ge,y1:z._discrete==="y"?null:function(t){return t.y2?nt(t.y2,"y2"):nt(t.y)-ge}}).select(de).render()});var ge=this._xAxis.barConfig()["stroke-width"];if(ge)ge/=2;var ve=this._discrete||"x";var pe={discrete:this._discrete,duration:this._duration,label:function t(e){return z._drawLabel(e.data,e.i)},select:fb("g.d3plus-plot-shapes",{parent:f,transition:h,enter:{transform:ie},update:{transform:ie}}).node(),x:function t(e){return e.x2!==undefined?tt(e.x2,"x2"):tt(e.x)},x0:ve==="x"?function(t){return t.x2?tt(t.x2,"x2"):tt(t.x)}:tt(typeof this._baseline==="number"?this._baseline:E.x[0]),x1:ve==="x"?null:function(t){return t.x2?tt(t.x2,"x2"):tt(t.x)},y:function t(e){return e.y2!==undefined?nt(e.y2,"y2"):nt(e.y)},y0:ve==="y"?function(t){return t.y2?nt(t.y2,"y2"):nt(t.y)}:nt(typeof this._baseline==="number"?this._baseline:E.y[1])-ge,y1:ve==="y"?null:function(t){return t.y2?nt(t.y2,"y2"):nt(t.y)-ge}};if(this._stacked){var ye=l==="x"?tt:nt;pe["".concat(l)]=pe["".concat(l,"0")]=function(t){var e=M.indexOf(t.id),n=C.indexOf(t.discrete);return e>=0?ye(A[e][n][0]):ye(E[l][l==="x"?0:1])};pe["".concat(l,"1")]=function(t){var e=M.indexOf(t.id),n=C.indexOf(t.discrete);return e>=0?ye(A[e][n][1]):ye(E[l][l==="x"?0:1])}}var me=Object.keys(this._on);it.forEach(function(e){var n=(new X4[e.key]).config(pe).data(e.values);if(e.key==="Bar"){var t;var r=z._discrete==="x"?tt:nt;var i=z._discrete==="x"?L:q;var a=z._discrete==="x"?ot:ut;var o=z._discrete==="x"?ne:ee;if(i!=="Point"&&a.length===2){t=(r(e.values[z._discrete==="x"?0:e.values.length-1][z._discrete])-r(a[0]))*2}else if(a.length>1)t=r(a[1])-r(a[0]);else t=o[o.length-1]-o[0];if(z._groupPadding<t)t-=z._groupPadding;var s=t||1;var u=vb().key(function(t){return t[z._discrete]}).key(function(t){return t.group}).entries(e.values);var l=Ae(u.map(function(t){return t.values.map(function(t){return t.key})}));var c=Array.from(new Set(l));if(Se(u.map(function(t){return t.values.length}))===1){n[z._discrete](function(t,e){return pe[z._discrete](t,e)})}else{s=(s-z._barPadding*c.length-1)/c.length;var f=t/2-s/2;var h=bZ().domain([0,c.length-1]).range([-f,f]);n[z._discrete](function(t,e){return pe[z._discrete](t,e)+h(c.indexOf(t.group))})}n.width(s);n.height(s)}else if(e.key==="Line"){n.duration(F*1.5);if(z._confidence){var d=Object.assign({},pe);var g=z._discrete||"x";var v=g==="x"?"y":"x";var p=g==="x"?nt:tt;d["".concat(v,"0")]=function(t){return p(z._confidence[0]?t.lci:t[v])};d["".concat(v,"1")]=function(t){return p(z._confidence[1]?t.hci:t[v])};var y=(new nS).config(d).data(e.values);var m=Object.assign(z._shapeConfig,z._confidenceConfig);y.config(tc(lb.bind(z)(m,"shape","Line"),lb.bind(z)(m,"shape","Area"))).render();z._shapes.push(y)}n.config({discrete:pe.discrete||"x",label:z._lineLabels?z._drawLabel:false,labelBounds:z._lineLabels?function(t,e,n){var r=mJ(n.points[0],2),i=r[0],a=r[1];var o=mJ(n.points[n.points.length-1],2),s=o[0],u=o[1];var l=z._height/4;return{x:s-i,y:u-a-l/2,width:Tt,height:l}}:false})}var _=me.filter(function(t){return t.includes(".".concat(e.key))}),b=me.filter(function(t){return!t.includes(".")}),w=me.filter(function(t){return t.includes(".shape")});var x=function t(i){n.on(b[i],function(t,e,n,r){return z._on[b[i]](t.data,t.i,n,r)})};for(var k=0;k<b.length;k++){x(k)}var S=function t(i){n.on(w[i],function(t,e,n,r){return z._on[w[i]](t.data,t.i,n,r)})};for(var C=0;C<w.length;C++){S(C)}var E=function t(i){n.on(_[i],function(t,e,n,r){return z._on[_[i]](t.data,t.i,n,r)})};for(var A=0;A<_.length;A++){E(A)}var M=lb.bind(z)(z._shapeConfig,"shape",e.key);if(z._shapeConfig.duration===undefined)delete M.duration;n.config(M).render();z._shapes.push(n);var R=(new TS).data(e.key==="Line"&&z._lineMarkers?e.values:[]).config(pe).config(z._lineMarkerConfig).id(function(t){return"".concat(t.id,"_").concat(t.discrete)});var T=function t(i){R.on(b[i],function(t,e,n,r){return z._on[b[i]](t.data,t.i,n,r)})};for(var O=0;O<b.length;O++){T(O)}var P=function t(i){R.on(w[i],function(t,e,n,r){return z._on[w[i]](t.data,t.i,n,r)})};for(var B=0;B<w.length;B++){P(B)}var D=function t(i){R.on(_[i],function(t,e,n,r){return z._on[_[i]](t.data,t.i,n,r)})};for(var N=0;N<_.length;N++){D(N)}R.render();z._shapes.push(R)});var _e=it.map(function(t){return t.key});if(_e.includes("Line")){if(this._confidence)_e.push("Area");if(this._labelMarkers)_e.push("Circle")}var be=this._previousShapes.filter(function(t){return!_e.includes(t)});be.forEach(function(t){(new X4[t]).config(pe).data([]).render()});this._previousShapes=_e;return this}},{key:"annotations",value:function t(e){return arguments.length?(this._annotations=e instanceof Array?e:[e],this):this._annotations}},{key:"backgroundConfig",value:function t(e){return arguments.length?(this._backgroundConfig=tc(this._backgroundConfig,e),this):this._backgroundConfig}},{key:"barPadding",value:function t(e){return arguments.length?(this._barPadding=e,this):this._barPadding}},{key:"baseline",value:function t(e){return arguments.length?(this._baseline=e,this):this._baseline}},{key:"confidence",value:function t(e){if(arguments.length&&e instanceof Array){this._confidence=[];var n=e[0];this._confidence[0]=typeof n==="function"||!n?n:Zl(n);var r=e[1];this._confidence[1]=typeof r==="function"||!r?r:Zl(r);return this}else return this._confidence}},{key:"confidenceConfig",value:function t(e){return arguments.length?(this._confidenceConfig=tc(this._confidenceConfig,e),this):this._confidenceConfig}},{key:"discrete",value:function t(e){return arguments.length?(this._discrete=e,this):this._discrete}},{key:"discreteCutoff",value:function t(e){return arguments.length?(this._discreteCutoff=e,this):this._discreteCutoff}},{key:"groupPadding",value:function t(e){return arguments.length?(this._groupPadding=e,this):this._groupPadding}},{key:"lineLabels",value:function t(e){return arguments.length?(this._lineLabels=e,this):this._lineLabels}},{key:"lineMarkerConfig",value:function t(e){return arguments.length?(this._lineMarkerConfig=tc(this._lineMarkerConfig,e),this):this._lineMarkerConfig}},{key:"lineMarkers",value:function t(e){return arguments.length?(this._lineMarkers=e,this):this._lineMarkers}},{key:"shapeSort",value:function t(e){return arguments.length?(this._shapeSort=e,this):this._shapeSort}},{key:"size",value:function t(e){return arguments.length?(this._size=typeof e==="function"||!e?e:Zl(e),this):this._size}},{key:"sizeMax",value:function t(e){return arguments.length?(this._sizeMax=e,this):this._sizeMax}},{key:"sizeMin",value:function t(e){return arguments.length?(this._sizeMin=e,this):this._sizeMin}},{key:"sizeScale",value:function t(e){return arguments.length?(this._sizeScale=e,this):this._sizeScale}},{key:"stacked",value:function t(e){return arguments.length?(this._stacked=e,this):this._stacked}},{key:"stackOffset",value:function t(e){return arguments.length?(this._stackOffset=typeof e==="function"?e:S6["stackOffset".concat(e.charAt(0).toUpperCase()+e.slice(1))],this):this._stackOffset}},{key:"stackOrder",value:function t(e){if(arguments.length){if(typeof e==="string")this._stackOrder=e==="ascending"?LJ:e==="descending"?HJ:S6["stackOrder".concat(e.charAt(0).toUpperCase()+e.slice(1))];else this._stackOrder=e;return this}else return this._stackOrder}},{key:"x",value:function t(e){if(arguments.length){if(typeof e==="function")this._x=e;else{this._x=Zl(e);this._xKey=e}return this}else return this._x}},{key:"x2",value:function t(e){if(arguments.length){if(typeof e==="function")this._x2=e;else{this._x2=Zl(e);this._x2Key=e}return this}else return this._x2}},{key:"xConfig",value:function t(e){return arguments.length?(this._xConfig=tc(this._xConfig,e),this):this._xConfig}},{key:"xCutoff",value:function t(e){return arguments.length?(this._xCutoff=e,this):this._xCutoff}},{key:"x2Config",value:function t(e){return arguments.length?(this._x2Config=tc(this._x2Config,e),this):this._x2Config}},{key:"xDomain",value:function t(e){return arguments.length?(this._xDomain=e,this):this._xDomain}},{key:"x2Domain",value:function t(e){return arguments.length?(this._x2Domain=e,this):this._x2Domain}},{key:"xSort",value:function t(e){return arguments.length?(this._xSort=e,this):this._xSort}},{key:"x2Sort",value:function t(e){return arguments.length?(this._x2Sort=e,this):this._x2Sort}},{key:"y",value:function t(e){if(arguments.length){if(typeof e==="function")this._y=e;else{this._y=Zl(e);this._yKey=e}return this}else return this._y}},{key:"y2",value:function t(e){if(arguments.length){if(typeof e==="function")this._y2=e;else{this._y2=Zl(e);this._y2Key=e}return this}else return this._y2}},{key:"yConfig",value:function t(e){if(arguments.length){if(e.domain)e.domain=e.domain.slice().reverse();this._yConfig=tc(this._yConfig,e);return this}return this._yConfig}},{key:"yCutoff",value:function t(e){return arguments.length?(this._yCutoff=e,this):this._yCutoff}},{key:"y2Config",value:function t(e){if(arguments.length){if(e.domain)e.domain=e.domain.slice().reverse();this._y2Config=tc(this._y2Config,e);return this}return this._y2Config}},{key:"yDomain",value:function t(e){return arguments.length?(this._yDomain=e,this):this._yDomain}},{key:"y2Domain",value:function t(e){return arguments.length?(this._y2Domain=e,this):this._y2Domain}},{key:"ySort",value:function t(e){return arguments.length?(this._ySort=e,this):this._ySort}},{key:"y2Sort",value:function t(e){return arguments.length?(this._y2Sort=e,this):this._y2Sort}}]);return we}(JG);function qJ(t){"@babel/helpers - typeof";return qJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qJ(t)}function KJ(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function YJ(t,e,n){if(e)KJ(t.prototype,e);if(n)KJ(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function XJ(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function ZJ(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});Object.defineProperty(t,"prototype",{writable:false});if(e)$J(t,e)}function $J(t,e){$J=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return $J(t,e)}function JJ(i){var a=eQ();return function t(){var e=nQ(i),n;if(a){var r=nQ(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return QJ(this,n)}}function QJ(t,e){if(e&&(qJ(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return tQ(t)}function tQ(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function eQ(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function nQ(t){nQ=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return nQ(t)}var rQ=function(t){ZJ(n,t);var e=JJ(n);function n(){var t;XJ(this,n);t=e.call(this);t._baseline=0;t._discrete="x";t._shape=cb("Area");t.x("x");return t}return YJ(n)}(WJ);function iQ(t){"@babel/helpers - typeof";return iQ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},iQ(t)}function aQ(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function oQ(t,e,n){if(e)aQ(t.prototype,e);if(n)aQ(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function sQ(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function uQ(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});Object.defineProperty(t,"prototype",{writable:false});if(e)lQ(t,e)}function lQ(t,e){lQ=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return lQ(t,e)}function cQ(i){var a=dQ();return function t(){var e=gQ(i),n;if(a){var r=gQ(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return fQ(this,n)}}function fQ(t,e){if(e&&(iQ(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return hQ(t)}function hQ(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function dQ(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function gQ(t){gQ=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return gQ(t)}var vQ=function(t){uQ(n,t);var e=cQ(n);function n(){var i;sQ(this,n);i=e.call(this);i._baseline=0;i._discrete="x";var a=i._legend;i._legend=function(t,e){var n=e.map(i._groupBy[i._legendDepth].bind(hQ(i))).sort().join();var r=i._filteredData.map(i._groupBy[i._legendDepth].bind(hQ(i))).sort().join();if(n===r)return false;return a.bind(hQ(i))(t,e)};i._shape=cb("Bar");i.x("x");return i}return oQ(n)}(WJ);function pQ(t){"@babel/helpers - typeof";return pQ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pQ(t)}function yQ(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function mQ(t,e,n){if(e)yQ(t.prototype,e);if(n)yQ(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function _Q(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function bQ(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});Object.defineProperty(t,"prototype",{writable:false});if(e)wQ(t,e)}function wQ(t,e){wQ=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return wQ(t,e)}function xQ(i){var a=CQ();return function t(){var e=EQ(i),n;if(a){var r=EQ(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return kQ(this,n)}}function kQ(t,e){if(e&&(pQ(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return SQ(t)}function SQ(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function CQ(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function EQ(t){EQ=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return EQ(t)}var AQ=function(t){bQ(n,t);var e=xQ(n);function n(){var i;_Q(this,n);i=e.call(this);i._discrete="x";i._shape=cb("Box");i.x("x");i._tooltipConfig=tc(i._tooltipConfig,{title:function t(e,n){if(!e)return"";while(e.__d3plus__&&e.data){e=e.data;n=e.i}if(i._label)return i._label(e,n);var r=i._ids(e,n).slice(0,i._drawDepth);return r[r.length-1]}});return i}return mQ(n)}(WJ);function MQ(t){"@babel/helpers - typeof";return MQ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},MQ(t)}function RQ(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function TQ(t,e,n){if(e)RQ(t.prototype,e);if(n)RQ(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function OQ(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function PQ(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});Object.defineProperty(t,"prototype",{writable:false});if(e)BQ(t,e)}function BQ(t,e){BQ=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return BQ(t,e)}function DQ(i){var a=FQ();return function t(){var e=jQ(i),n;if(a){var r=jQ(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return NQ(this,n)}}function NQ(t,e){if(e&&(MQ(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return zQ(t)}function zQ(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function FQ(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function jQ(t){jQ=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return jQ(t)}var IQ=function(t){PQ(n,t);var e=DQ(n);function n(){var o;OQ(this,n);o=e.call(this);o._discrete="x";o._shape=cb("Line");o.x("x");o.y2(function(t){return o._y(t)});o.yConfig({tickFormat:function t(e){var n=o._formattedData;var r=n[0].x instanceof Date?n[0].x.getTime():n[0].x;var i=n.filter(function(t){return(t.x instanceof Date?t.x.getTime():t.x)===r});var a=i.find(function(t){return t.y===e});return a?o._drawLabel(a,a.i):""}});o.y2Config({tickFormat:function t(e){var n=o._formattedData;var r=n[n.length-1].x instanceof Date?n[n.length-1].x.getTime():n[n.length-1].x;var i=n.filter(function(t){return(t.x instanceof Date?t.x.getTime():t.x)===r});var a=i.find(function(t){return t.y===e});return a?o._drawLabel(a,a.i):""}});o.ySort(function(t,e){return o._y(e)-o._y(t)});o.y2Sort(function(t,e){return o._y(e)-o._y(t)});return o}return TQ(n)}(WJ);function LQ(t){"@babel/helpers - typeof";return LQ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},LQ(t)}function HQ(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function UQ(t,e,n){if(e)HQ(t.prototype,e);if(n)HQ(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function GQ(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function VQ(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});Object.defineProperty(t,"prototype",{writable:false});if(e)WQ(t,e)}function WQ(t,e){WQ=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return WQ(t,e)}function qQ(i){var a=XQ();return function t(){var e=ZQ(i),n;if(a){var r=ZQ(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return KQ(this,n)}}function KQ(t,e){if(e&&(LQ(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return YQ(t)}function YQ(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function XQ(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function ZQ(t){ZQ=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return ZQ(t)}var $Q=function(t){VQ(n,t);var e=qQ(n);function n(){var t;GQ(this,n);t=e.call(this);t._discrete="x";t._shape=cb("Line");t.x("x");return t}return UQ(n)}(WJ);function JQ(t){"@babel/helpers - typeof";return JQ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},JQ(t)}function QQ(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function ttt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function ett(t,e,n){if(e)ttt(t.prototype,e);if(n)ttt(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function ntt(){if(typeof Reflect!=="undefined"&&Reflect.get){ntt=Reflect.get}else{ntt=function t(e,n,r){var i=rtt(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(arguments.length<3?e:r)}return a.value}}return ntt.apply(this,arguments)}function rtt(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=ctt(t);if(t===null)break}return t}function itt(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});Object.defineProperty(t,"prototype",{writable:false});if(e)att(t,e)}function att(t,e){att=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return att(t,e)}function ott(i){var a=ltt();return function t(){var e=ctt(i),n;if(a){var r=ctt(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return stt(this,n)}}function stt(t,e){if(e&&(JQ(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return utt(t)}function utt(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function ltt(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function ctt(t){ctt=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return ctt(t)}var ftt=Math.PI*2;var htt=function(t){itt(_,t);var e=ott(_);function _(){var t;QQ(this,_);t=e.call(this);t._axisConfig={shapeConfig:{fill:cb("none"),labelConfig:{fontColor:"#999",padding:0,textAnchor:function t(e,n,r){return r.textAnchor},verticalAlign:"middle"},stroke:"#eee",strokeWidth:cb(1)}};t._discrete="metric";t._levels=6;t._metric=Zl("metric");t._outerPadding=100;t._shape=cb("Path");t._value=Zl("value");return t}ett(_,[{key:"_draw",value:function t(e){var d=this;ntt(ctt(_.prototype),"_draw",this).call(this,e);var f=this._height-this._margin.top-this._margin.bottom,h=this._width-this._margin.left-this._margin.right;var g=Ce([f,h])/2-this._outerPadding,n="translate(".concat(h/2,", ").concat(f/2,")");var r=vb().key(this._metric).entries(this._filteredData),i=vb().key(this._id).key(this._metric).entries(this._filteredData);var a=Se(i.map(function(t){return t.values.map(function(t){return Re(t.values,function(t,e){return d._value(t,e)})})}).flat());var o=Array.from(Array(this._levels).keys()).map(function(t){return{id:t,r:g*((t+1)/d._levels)}});var s=lb.bind(this)(this._axisConfig.shapeConfig,"shape","Circle");delete s.label;(new TS).data(o).select(fb("g.d3plus-Radar-radial-circles",{parent:this._select,enter:{transform:n},update:{transform:n}}).node()).config(s).render();var v=r.length;var u=r.map(function(t,e){var n=d._outerPadding;var r=d._shapeConfig.labelConfig.fontSize&&d._shapeConfig.labelConfig.fontSize(t,e)||11;var i=r*1.4;var a=i*2;var o=10,s=parseInt(360-360/v*e/90,10)%4+1,u=ftt/v*e;var l=360/v*e;var c="start";var f=o;if(s===2||s===3){f=-n-o;c="end";l+=180}var h={x:f,y:-a/2,width:n,height:a};return{__d3plus__:true,data:Sb(t.values,d._aggs),i:e,id:t.key,angle:l,textAnchor:c,labelBounds:h,rotateAnchor:[-f,a/2],x:g*Math.cos(u),y:g*Math.sin(u)}}).sort(function(t,e){return t.key-e.key});(new VS).data(u).rotate(function(t){return t.angle||0}).width(0).height(0).x(function(t){return t.x}).y(function(t){return t.y}).label(function(t){return t.id}).labelBounds(function(t){return t.labelBounds}).labelConfig(this._axisConfig.shapeConfig.labelConfig).select(fb("g.d3plus-Radar-text",{parent:this._select,enter:{transform:n},update:{transform:n}}).node()).render();(new Y4).data(u).d(function(t){return"M".concat(0,",",0," ",-t.x,",").concat(-t.y)}).select(fb("g.d3plus-Radar-axis",{parent:this._select,enter:{transform:n},update:{transform:n}}).node()).config(lb.bind(this)(this._axisConfig.shapeConfig,"shape","Path")).render();var l=i.map(function(t){var e=t.values.map(function(t,e){var n=Re(t.values,function(t,e){return d._value(t,e)});var r=n/a*g,i=ftt/v*e;return{x:r*Math.cos(i),y:r*Math.sin(i)}});var n="M ".concat(e[0].x," ").concat(e[0].y," ").concat(e.map(function(t){return"L ".concat(t.x," ").concat(t.y)}).join(" ")," L ").concat(e[0].x," ").concat(e[0].y);return{arr:t.values.map(function(t){return Sb(t.values,d._aggs)}),id:t.key,points:e,d:n,__d3plus__:true,data:Sb(t.values.map(function(t){return Sb(t.values,d._aggs)}),d._aggs)}});var p=lb.bind(this)(this._shapeConfig,"shape","Path");var y=Object.keys(p.on);p.on={};var c=function t(e){var c=y[e];p.on[c]=function(t,e,n,r){var i=t.points.map(function(t){return t.x+h/2});var a=t.points.map(function(t){return t.y+f/2});var o=Xs(r,d._select.node());var s=i.map(function(t){return Math.abs(t-o[0])});var u=a.map(function(t){return Math.abs(t-o[1])});var l=s.map(function(t,e){return t+u[e]});d._on[c].bind(d)(t.arr[l.indexOf(Ce(l))],e,n,r)}};for(var m=0;m<y.length;m++){c(m)}this._shapes.push((new Y4).data(l).d(function(t){return t.d}).select(fb("g.d3plus-Radar-items",{parent:this._select,enter:{transform:n},update:{transform:n}}).node()).config(p).render());return this}},{key:"axisConfig",value:function t(e){return arguments.length?(this._axisConfig=tc(this._axisConfig,e),this):this._axisConfig}},{key:"metric",value:function t(e){return arguments.length?(this._metric=typeof e==="function"?e:Zl(e),this):this._metric}},{key:"outerPadding",value:function t(e){return arguments.length?(this._outerPadding=e,this):this._outerPadding}},{key:"value",value:function t(e){return arguments.length?(this._value=typeof e==="function"?e:Zl(e),this):this._value}}]);return _}(JG);function dtt(t){"@babel/helpers - typeof";return dtt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dtt(t)}function gtt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function vtt(t,e,n){if(e)gtt(t.prototype,e);if(n)gtt(t,n);Object.defineProperty(t,"prototype",{writable:false});return t}function ptt(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function ytt(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});Object.defineProperty(t,"prototype",{writable:false});if(e)mtt(t,e)}function mtt(t,e){mtt=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return mtt(t,e)}function _tt(i){var a=xtt();return function t(){var e=ktt(i),n;if(a){var r=ktt(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return btt(this,n)}}function btt(t,e){if(e&&(dtt(e)==="object"||typeof e==="function")){return e}else if(e!==void 0){throw new TypeError("Derived constructors may only return object or undefined")}return wtt(t)}function wtt(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function xtt(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true}catch(t){return false}}function ktt(t){ktt=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return ktt(t)}var Stt=function(t){ytt(n,t);var e=_tt(n);function n(){var t;ptt(this,n);t=e.call(this);t._stacked=true;return t}return vtt(n)}(rQ);function Ctt(t){"@babel/helpers - typeof";if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){Ctt=function t(e){return typeof e}}else{Ctt=function t(e){return e&&typeof Symbol==="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}}return Ctt(t)}function Ett(t,e){if(!(t instanceof e)){throw new TypeError("Cannot call a class as a function")}}function Att(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||false;r.configurable=true;if("value"in r)r.writable=true;Object.defineProperty(t,r.key,r)}}function Mtt(t,e,n){if(e)Att(t.prototype,e);if(n)Att(t,n);return t}function Rtt(t,e,n){if(typeof Reflect!=="undefined"&&Reflect.get){Rtt=Reflect.get}else{Rtt=function t(e,n,r){var i=Ttt(e,n);if(!i)return;var a=Object.getOwnPropertyDescriptor(i,n);if(a.get){return a.get.call(r)}return a.value}}return Rtt(t,e,n||t)}function Ttt(t,e){while(!Object.prototype.hasOwnProperty.call(t,e)){t=Ftt(t);if(t===null)break}return t}function Ott(t,e){if(typeof e!=="function"&&e!==null){throw new TypeError("Super expression must either be null or a function")}t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:true,configurable:true}});if(e)Ptt(t,e)}function Ptt(t,e){Ptt=Object.setPrototypeOf||function t(e,n){e.__proto__=n;return e};return Ptt(t,e)}function Btt(i){var a=ztt();return function t(){var e=Ftt(i),n;if(a){var r=Ftt(this).constructor;n=Reflect.construct(e,arguments,r)}else{n=e.apply(this,arguments)}return Dtt(this,n)}}function Dtt(t,e){if(e&&(Ctt(e)==="object"||typeof e==="function")){return e}return Ntt(t)}function Ntt(t){if(t===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return t}function ztt(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Date.prototype.toString.call(Reflect.construct(Date,[],function(){}));return true}catch(t){return false}}function Ftt(t){Ftt=Object.setPrototypeOf?Object.getPrototypeOf:function t(e){return e.__proto__||Object.getPrototypeOf(e)};return Ftt(t)}var jtt=function(t){Ott(v,t);var e=Btt(v);function v(){var r;Ett(this,v);r=e.call(this);r._axis=(new mC).align("end").orient("bottom");r._axisConfig={scale:"time"};r._axisTest=(new mC).align("end").gridSize(0).orient("bottom");r.end("end");r._paddingInner=.05;r._paddingOuter=.05;r._shapeConfig=tc({},r._shapeConfig,{ariaLabel:function t(e,n){return"".concat(r._drawLabel(e,n),", ").concat(r._start(e,n)," - ").concat(r._end(e,n),".")}});r.start("start");return r}Mtt(v,[{key:"_draw",value:function t(e){var n=this;Rtt(Ftt(v.prototype),"_draw",this).call(this,e);if(!this._filteredData)return this;var r=this._filteredData.map(function(t,e){return{__d3plus__:true,data:t,end:n._axisConfig.scale==="time"?Z4(n._end(t,e)):n._end(t,e),i:e,id:n._id(t,e),start:n._axisConfig.scale==="time"?Z4(n._start(t,e)):n._start(t,e)}}).filter(function(t){return t.end-t.start>0}).sort(function(t,e){return t.start-e.start});var i;if(this._groupBy.length>1&&this._drawDepth>0){var a=vb();var o=function t(e){a.key(function(t){return n._groupBy[e](t.data,t.i)})};for(var s=0;s<this._drawDepth;s++){o(s)}i=a.entries(r)}else i=[{values:r}];var u=0;i.forEach(function(t){var n=[];t.values.forEach(function(e){n=n.map(function(t){return t<=e.start?false:t});var t=n.indexOf(false);if(t<0){e.lane=u+n.length;n.push(e.end)}else{n[t]=e.end;e.lane=u+t}});u+=n.length});var l={domain:[Ce(r,function(t){return t.start})||0,Se(r,function(t){return t.end})||0],height:this._height-this._margin.top-this._margin.bottom,width:this._width-this._margin.left-this._margin.right};var c="translate(".concat(this._margin.left,", ").concat(this._margin.top,")");this._axisTest.config(l).config(this._axisConfig).select(fb("g.d3plus-priestley-axis-test",{parent:this._select,enter:{opacity:0}}).node()).render();this._axis.config(l).config(this._axisConfig).select(fb("g.d3plus-priestley-axis",{parent:this._select,enter:{transform:c},update:{transform:c}}).node()).render();var f=this._axisTest._padding;var h=this._axis._d3Scale;var d=Bb().domain(Me(0,u,1)).paddingInner(this._paddingInner).paddingOuter(this._paddingOuter).rangeRound([this._height-this._margin.bottom-this._axisTest.outerBounds().height-f,this._margin.top+f]);var g=d.bandwidth();this._shapes.push((new VS).data(r).duration(this._duration).height(g).label(function(t,e){return n._drawLabel(t.data,e)}).select(fb("g.d3plus-priestley-shapes",{parent:this._select}).node()).width(function(t){var e=Math.abs(h(t.end)-h(t.start));return e>2?e-2:e}).x(function(t){return h(t.start)+(h(t.end)-h(t.start))/2}).y(function(t){return d(t.lane)+g/2}).config(lb.bind(this)(this._shapeConfig,"shape","Rect")).render());return this}},{key:"axisConfig",value:function t(e){return arguments.length?(this._axisConfig=tc(this._axisConfig,e),this):this._axisConfig}},{key:"end",value:function t(e){if(arguments.length){if(typeof e==="function")this._end=e;else{this._end=Zl(e);if(!this._aggs[e])this._aggs[e]=Se}return this}else return this._end}},{key:"paddingInner",value:function t(e){return arguments.length?(this._paddingInner=e,this):this._paddingInner}},{key:"paddingOuter",value:function t(e){return arguments.length?(this._paddingOuter=e,this):this._paddingOuter}},{key:"start",value:function t(e){if(arguments.length){if(typeof e==="function")this._start=e;else{this._start=Zl(e);if(!this._aggs[e])this._aggs[e]=Ce}return this}else return this._start}}]);return v}(JG);t.Area=nS;t.AreaPlot=rQ;t.Axis=mC;t.AxisBottom=TC;t.AxisLeft=UC;t.AxisRight=t5;t.AxisTop=h5;t.Bar=pS;t.BarChart=vQ;t.BaseClass=ob;t.Box=T4;t.BoxWhisker=AQ;t.BumpChart=IQ;t.Circle=TS;t.ColorScale=cL;t.Donut=qV;t.Geomap=xV;t.Image=Xw;t.Legend=$I;t.Line=i4;t.LinePlot=$Q;t.Matrix=OK;t.Network=VY;t.Pack=Cq;t.Path=Y4;t.Pie=zV;t.Plot=WJ;t.Priestley=jtt;t.RESET=$_;t.Radar=htt;t.RadialMatrix=qK;t.Rect=VS;t.Rings=iX;t.Sankey=QX;t.Shape=D9;t.StackedArea=Stt;t.TextBox=y9;t.Timeline=SL;t.Tooltip=HU;t.Tree=Uq;t.Treemap=rK;t.Viz=JG;t.Whisker=y4;t.accessor=Zl;t.addToQueue=Wj;t.assign=tc;t.attrize=ec;t.ckmeans=jI;t.closest=sb;t.colorAdd=Mb;t.colorAssign=tw;t.colorContrast=ew;t.colorDefaults=Q2;t.colorLegible=nw;t.colorLighter=rw;t.colorSubtract=iw;t.configPrep=lb;t.constant=cb;t.dataConcat=sj;t.dataFold=Uj;t.dataLoad=Vj;t.date=Z4;t.dom2canvas=bA;t.elem=fb;t.findLocale=Y_;t.fontExists=j6;t.format=fw;t.formatAbbreviate=cw;t.formatDate=Gw;t.formatDefaultLocale=hw;t.formatLocale=aw;t.isData=lj;t.isObject=Jl;t.largestRect=Uk;t.lineIntersection=lk;t.merge=Sb;t.parseSides=Cb;t.path2polygon=D4;t.pointDistance=x9;t.pointDistanceSquared=w9;t.pointRotate=Ek;t.polygonInside=mk;t.polygonRayCast=Ck;t.polygonRotate=Ak;t.prefix=Eb;t.rtl=I6;t.saveElement=kA;t.segmentBoxContains=pk;t.segmentsIntersect=yk;t.shapeEdgePoint=P4;t.simplify=Pk;t.stringify=L6;t.strip=U6;t.stylize=Ab;t.textSplit=r9;t.textWidth=E6;t.textWrap=i9;t.titleCase=b9;t.trim=A6;t.trimLeft=M6;t.trimRight=R6;t.unique=kb;t.uuid=Z_;t.version=n;Object.defineProperty(t,"__esModule",{value:true})});