northdata-viz 1.276.10 → 1.278.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/viz.esm.js +3 -3
- package/viz.min.js +2 -2
package/package.json
CHANGED
package/viz.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! northdata-viz V1.
|
|
1
|
+
/*! northdata-viz V1.278.10 */
|
|
2
2
|
/******/ var __webpack_modules__ = ({
|
|
3
3
|
|
|
4
4
|
/***/ 100:
|
|
@@ -463,8 +463,8 @@ module.exports = debounce;
|
|
|
463
463
|
/************************************************************************/
|
|
464
464
|
|
|
465
465
|
;// ./src/ts/env.ts
|
|
466
|
-
var VERSION = "1.
|
|
467
|
-
var VERSION_PREFIX = (/* unused pure expression or super */ null && ("/ui/v1-
|
|
466
|
+
var VERSION = "1.278.10";
|
|
467
|
+
var VERSION_PREFIX = (/* unused pure expression or super */ null && ("/ui/v1-278-10"));
|
|
468
468
|
|
|
469
469
|
;// ./src/ts/util/params.ts
|
|
470
470
|
function clone(object) {
|
package/viz.min.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! northdata-viz V1.
|
|
2
|
-
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(self,(function(){return function(){var t={100:function(t){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";t.exports={Node:n(1),Force:n(2),Distributor:n(3),Renderer:n(10)}},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(e,r,i){n(this,t),this.idealPos=e,this.currentPos=e,this.width=r,this.data=i,this.layerIndex=0}return r(t,[{key:"distanceFrom",value:function(t){var e=this.width/2,n=t.width/2;return Math.max(this.currentPos-e,t.currentPos-n)-Math.min(this.currentPos+e,t.currentPos+n)}},{key:"moveToIdealPosition",value:function(){return this.currentPos=this.idealPos,this}},{key:"displacement",value:function(){return this.idealPos-this.currentPos}},{key:"overlapWithNode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.distanceFrom(t)-e<0}},{key:"overlapWithPoint",value:function(t){var e=this.width/2;return t>=this.currentPos-e&&t<=this.currentPos+e}},{key:"positionBefore",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.currentLeft()-this.width/2-e}},{key:"positionAfter",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.currentRight()+this.width/2+e}},{key:"currentRight",value:function(){return this.currentPos+this.width/2}},{key:"currentLeft",value:function(){return this.currentPos-this.width/2}},{key:"idealRight",value:function(){return this.idealPos+this.width/2}},{key:"idealLeft",value:function(){return this.idealPos-this.width/2}},{key:"createStub",value:function(e){var n=new t(this.idealPos,e,this.data);return n.currentPos=this.currentPos,n.child=this,this.parent=n,n}},{key:"removeStub",value:function(){return this.parent&&(this.parent.child=null,this.parent=null),this}},{key:"isStub",value:function(){return!!this.child}},{key:"getPathToRoot",value:function(){for(var t=[],e=this;e;)t.push(e),e=e.parent;return t}},{key:"getPathFromRoot",value:function(){return this.getPathToRoot().reverse()}},{key:"getPathToRootLength",value:function(){for(var t=0,e=this;e;){var n=e.parent?e.parent.currentPos:e.idealPos;t+=Math.abs(e.currentPos-n),e=e.parent}return t}},{key:"getRoot",value:function(){for(var t=this,e=this;e;)t=e,e=e.parent;return t}},{key:"getLayerIndex",value:function(){return this.layerIndex}},{key:"clone",value:function(){var e=new t(this.idealPos,this.width,this.data);return e.currentPos=this.currentPos,e.layerIndex=this.layerIndex,e}}]),t}();t.exports=i},function(t,e,n){"use strict";var r=n(3),i=n(4),o=n(8),a={nodeSpacing:3,minPos:0,maxPos:null,algorithm:"overlap",removeOverlap:!0,density:.85,stubWidth:1},u=function(t){var e={},n=i.extend({},a),u=new r,s=[],l=null;return e.nodes=function(t){return arguments.length?(s=t,l=[t.concat()],e):s},e.getLayers=function(){return l},e.options=function(t){if(!arguments.length)return n;n=i.extend(n,t);var o=i.pick(n,Object.keys(r.DEFAULT_OPTIONS));return i.isDefined(n.minPos)&&i.isDefined(n.maxPos)?o.layerWidth=n.maxPos-n.minPos:o.layerWidth=null,u.options(o),e},e.options(t),e.compute=function(){var t=i.pick(n,Object.keys(o.DEFAULT_OPTIONS));return s.forEach((function(t){t.removeStub()})),(l=u.distribute(s)).map((function(e,r){e.forEach((function(t){t.layerIndex=r})),n.removeOverlap&&o(e,t)})),e},e.start=function(){console.log("[warning] force.start() is deprecated. Please use force.compute() instead.")},e};u.DEFAULT_OPTIONS=a,t.exports=u},function(t,e,n){"use strict";var r=n(4),i=n(6),o={algorithm:"overlap",layerWidth:1e3,density:.75,nodeSpacing:3,stubWidth:1},a=function(t){var e={};t=r.extend({},o,t),e.options=function(n){return arguments.length?(t=r.extend(t,n),e):t},e.computeRequiredWidth=function(e){return r.sum(e,(function(e){return e.width+t.nodeSpacing}))-t.nodeSpacing},e.maxWidthPerLayer=function(){return t.density*t.layerWidth},e.needToSplit=function(t){return e.estimateRequiredLayers(t)>1},e.estimateRequiredLayers=function(n){return t.layerWidth?Math.ceil(e.computeRequiredWidth(n)/e.maxWidthPerLayer()):1};var n={simple:function(n){for(var r=e.estimateRequiredLayers(n),i=[],o=0;o<r;o++)i.push([]);return n.forEach((function(e,n){var o=n%r;i[o].push(e);for(var a=e,u=o-1;u>=0;u--)a=a.createStub(t.stubWidth),i[u].push(a)})),i},roundRobin:function(t){return[]},overlap:function(n){for(var r=[],i=e.maxWidthPerLayer(),o=n.concat(),a=e.computeRequiredWidth(o);a>i;){e.countIdealOverlaps(o);var u=o.concat(),s=a;for(o=[];u.length>2&&s>i;){u.sort((function(t,e){return e.overlapCount-t.overlapCount}));var l=u.shift();s-=l.width,s+=t.stubWidth,l.overlaps.forEach((function(t){t.overlapCount--})),o.push(l)}r.push(u),a=e.computeRequiredWidth(o)}o.length>0&&r.push(o);for(var c=r.length-1;c>=1;c--)for(var f=r[c],h=0;h<f.length;h++){var d=f[h];if(!d.isStub())for(var p=d,v=c-1;v>=0;v--)p=p.createStub(t.stubWidth),r[v].push(p)}return r}};return e.countIdealOverlaps=function(e){var n=new i(t.layerWidth/2);return e.forEach((function(t){n.add([t.idealLeft(),t.idealRight(),t])})),e.forEach((function(t){var e=n.search(t.idealLeft(),t.idealRight());t.overlaps=e.map((function(t){return t.data[2]})),t.overlapCount=e.length})),e},e.distribute=function(i){if(!i||0===i.length)return[];if("none"==t.algorithm||!r.isDefined(t.algorithm))return[i];if(!e.needToSplit(i))return[i];var o=i.concat().sort((function(t,e){return t.idealPos-e.idealPos}));if("function"==typeof t.algorithm)return t.algorithm(o,t);if(n.hasOwnProperty(t.algorithm))return n[t.algorithm](o);throw"Unknown algorithm: "+t.algorithm},e};a.DEFAULT_OPTIONS=o,t.exports=a},function(t,e,n){"use strict";var r={isDefined:function(t){return null!=t},last:function(t){return t.length>0?t[t.length-1]:null},pick:function(t,e){return e.reduce((function(e,n){return e[n]=t[n],e}),{})},sum:function(t,e){return t.map(e).reduce((function(t,e){return t+e}),0)}};r.extend=n(5),t.exports=r},function(t,e){"use strict";var n="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},r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=function(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===i.call(t)},a=function(t){if(!t||"[object Object]"!==i.call(t))return!1;var e,n=r.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&r.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!o)return!1;for(e in t);return void 0===e||r.call(t,e)};t.exports=function t(){var e,r,i,u,s,l,c=arguments[0],f=1,h=arguments.length,d=!1;for("boolean"==typeof c?(d=c,c=arguments[1]||{},f=2):("object"!==(void 0===c?"undefined":n(c))&&"function"!=typeof c||null==c)&&(c={});f<h;++f)if(null!=(e=arguments[f]))for(r in e)i=c[r],c!==(u=e[r])&&(d&&u&&(a(u)||(s=o(u)))?(s?(s=!1,l=i&&o(i)?i:[]):l=i&&a(i)?i:{},c[r]=t(d,l,u)):void 0!==u&&(c[r]=u));return c}},function(t,e,n){"use strict";function r(t,e){if(e||(e={}),this.startKey=e.startKey||0,this.endKey=e.endKey||1,this.intervalHash={},this.pointTree=new l({compare:function(t,e){if(null==t)return-1;if(null==e)return 1;var n=t[0]-e[0];return n>0?1:0==n?0:-1}}),this._autoIncrement=0,!t||"number"!=typeof t)throw new Error("you must specify center index as the 2nd argument.");this.root=new u(t,this)}function i(t,e){return e.end<t.idx?(t.left||(t.left=new u(e.start+e.end>>1,this)),i.call(this,t.left,e)):t.idx<e.start?(t.right||(t.right=new u(e.start+e.end>>1,this)),i.call(this,t.right,e)):t.insert(e)}function o(t,e,n){if(t)return e<t.idx?(t.starts.every((function(t){var r=t.start<=e;return r&&n.push(t.result()),r})),o.call(this,t.left,e,n)):e>t.idx?(t.ends.every((function(t){var r=t.end>=e;return r&&n.push(t.result()),r})),o.call(this,t.right,e,n)):void t.starts.map((function(t){n.push(t.result())}))}function a(t,e,n){if(e-t<=0)throw new Error("end must be greater than start. start: "+t+", end: "+e);var r={},i=[];o.call(this,this.root,t+e>>1,i,!0),i.forEach((function(t){r[t.id]=!0}));for(var a=this.pointTree.bsearch([t,null]),u=this.pointTree;a>=0&&u[a][0]==t;)a--;var s=this.pointTree.bsearch([e,null]);if(s>=0){for(var l=u.length-1;s<=l&&u[s][0]<=e;)s++;u.slice(a+1,s).forEach((function(t){var e=t[1];r[e]=!0}),this),Object.keys(r).forEach((function(r){var i=this.intervalHash[r];n.push(i.result(t,e))}),this)}}function u(t){this.idx=t,this.starts=new l({compare:function(t,e){if(null==t)return-1;if(null==e)return 1;var n=t.start-e.start;return n>0?1:0==n?0:-1}}),this.ends=new l({compare:function(t,e){if(null==t)return-1;if(null==e)return 1;var n=t.end-e.end;return n<0?1:0==n?0:-1}})}function s(t,e,n,r){if(this.id=e,this.start=t[n],this.end=t[r],this.data=t,"number"!=typeof this.start||"number"!=typeof this.end)throw new Error("start, end must be number. start: "+this.start+", end: "+this.end);if(this.start>=this.end)throw new Error("start must be smaller than end. start: "+this.start+", end: "+this.end)}var l=n(7);r.prototype.add=function(t,e){if(this.intervalHash[e])throw new Error("id "+e+" is already registered.");if(null==e){for(;this.intervalHash[this._autoIncrement];)this._autoIncrement++;e=this._autoIncrement}var n=new s(t,e,this.startKey,this.endKey);this.pointTree.insert([n.start,e]),this.pointTree.insert([n.end,e]),this.intervalHash[e]=n,this._autoIncrement++,i.call(this,this.root,n)},r.prototype.search=function(t,e){var n=[];if("number"!=typeof t)throw new Error(t+": invalid input");if(null==e)o.call(this,this.root,t,n);else{if("number"!=typeof e)throw new Error(t+","+e+": invalid input");a.call(this,t,e,n)}return n},r.prototype.remove=function(t){},u.prototype.insert=function(t){this.starts.insert(t),this.ends.insert(t)},s.prototype.result=function(t,e){var n={id:this.id,data:this.data};if("number"==typeof t&&"number"==typeof e){var r=Math.max(this.start,t),i=Math.min(this.end,e)-r;n.rate1=i/(e-t),n.rate2=i/(this.end-this.start)}return n},t.exports=r},function(t,e){"use strict";var n="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},r=function t(){var e=null,r={},i=arguments;["0","1"].forEach((function(t){var o=i[t];Array.isArray(o)?e=o:o&&"object"==(void 0===o?"undefined":n(o))&&(r=o)})),"function"==typeof r.filter&&(this._filter=r.filter),"function"==typeof r.compare?this._compare=r.compare:"string"==typeof r.compare&&t.compares[r.compare]&&(this._compare=t.compares[r.compare]),this._unique=!!r.unique,r.resume&&e?e.forEach((function(t,e){this.push(t)}),this):e&&this.insert.apply(this,e)};r.create=function(t,e){return new r(t,e)},r.prototype=new Array,r.prototype.constructor=Array.prototype.constructor,r.prototype.insertOne=function(t){var e=this.bsearch(t);return(!this._unique||null==this.key(t,e))&&!!this._filter(t,e)&&(this.splice(e+1,0,t),e+1)},r.prototype.insert=function(){return Array.prototype.map.call(arguments,(function(t){return this.insertOne(t)}),this)},r.prototype.remove=function(t){return this.splice(t,1),this},r.prototype.bsearch=function(t){if(!this.length)return-1;for(var e,n=0,r=this.length;r-n>1;){var i=this[e=Math.floor((n+r)/2)],o=this._compare(t,i);if(0==o)return e;o>0?n=e:r=e}return 0==n&&this._compare(this[0],t)>0?-1:n},r.prototype.key=function(t,e){null==e&&(e=this.bsearch(t));var n=e;if(-1==n||this._compare(this[n],t)<0)return n+1<this.length&&0==this._compare(this[n+1],t)?n+1:null;for(;n>=1&&0==this._compare(this[n-1],t);)n--;return n},r.prototype.keys=function(t,e){var n=[];null==e&&(e=this.bsearch(t));for(var r=e;r>=0&&0==this._compare(this[r],t);)n.push(r),r--;var i=this.length;for(r=e+1;r<i&&0==this._compare(this[r],t);)n.push(r),r++;return n.length?n:null},r.prototype.unique=function(t){if(t)return this.filter((function(t,e){return 0==e||0!=this._compare(this[e-1],t)}),this);var e=0;return this.map((function(t,n){return 0==n||0!=this._compare(this[n-1],t)?null:n-e++}),this).forEach((function(t){null!=t&&this.remove(t)}),this),this},r.prototype.toArray=function(){return this.slice()},r.prototype._filter=function(t,e){return!0},r.compares={number:function(t,e){var n=t-e;return n>0?1:0==n?0:-1},string:function(t,e){return t>e?1:t==e?0:-1}},r.prototype._compare=r.compares.string,t.exports=r},function(t,e,n){"use strict";function r(t){var e=new a.Variable(t.targetPos);return e.node=t,e}function i(t,e){if(t.length>0){e=o.extend(u,e),t.forEach((function(t,e){t.targetPos=t.parent?t.parent.currentPos:t.idealPos,t.index=e}));for(var n=t.concat().sort((function(t,e){var n=t.targetPos-e.targetPos;if(0!==n)return n;var r=t.isStub()-e.isStub();return 0!==r?r:t.index-e.index})).map(r),i=[],s=1;s<n.length;s++){var l=n[s-1],c=n[s],f=void 0;f=l.node.isStub()&&c.node.isStub()?(l.node.width+c.node.width)/2+e.lineSpacing:(l.node.width+c.node.width)/2+e.nodeSpacing,i.push(new a.Constraint(l,c,f))}if(o.isDefined(e.minPos)){var h=new a.Variable(e.minPos,1e10),d=n[0];i.push(new a.Constraint(h,d,d.node.width/2)),n.unshift(h)}if(o.isDefined(e.maxPos)){var p=new a.Variable(e.maxPos,1e10),v=o.last(n);i.push(new a.Constraint(v,p,v.node.width/2)),n.push(p)}new a.Solver(n,i).solve(),n.filter((function(t){return t.node})).map((function(t){return t.node.currentPos=Math.round(t.position()),t}))}return t}var o=n(4),a=n(9),u={lineSpacing:2,nodeSpacing:3,minPos:0,maxPos:null};i.DEFAULT_OPTIONS=u,t.exports=i},function(t,e){"use strict";var n={},r=function(){function t(t){this.scale=t,this.AB=0,this.AD=0,this.A2=0}return t.prototype.addVariable=function(t){var e=this.scale/t.scale,n=t.offset/t.scale,r=t.weight;this.AB+=r*e*n,this.AD+=r*e*t.desiredPosition,this.A2+=r*e*e},t.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},t}();n.PositionStats=r;var i=function(){function t(t,e,n,r){void 0===r&&(r=!1),this.left=t,this.right=e,this.gap=n,this.equality=r,this.active=!1,this.unsatisfiable=!1,this.left=t,this.right=e,this.gap=n,this.equality=r}return t.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},t}();n.Constraint=i;var o=function(){function t(t,e,n){void 0===e&&(e=1),void 0===n&&(n=1),this.desiredPosition=t,this.weight=e,this.scale=n,this.offset=0}return t.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},t.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},t.prototype.visitNeighbours=function(t,e){var n=function(n,r){return n.active&&t!==r&&e(n,r)};this.cOut.forEach((function(t){return n(t,t.right)})),this.cIn.forEach((function(t){return n(t,t.left)}))},t}();n.Variable=o;var a=function(){function t(t){this.vars=[],t.offset=0,this.ps=new r(t.scale),this.addVariable(t)}return t.prototype.addVariable=function(t){t.block=this,this.vars.push(t),this.ps.addVariable(t),this.posn=this.ps.getPosn()},t.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var t=0,e=this.vars.length;t<e;++t)this.ps.addVariable(this.vars[t]);this.posn=this.ps.getPosn()},t.prototype.compute_lm=function(t,e,n){var r=this,i=t.dfdv();return t.visitNeighbours(e,(function(e,o){var a=r.compute_lm(o,t,n);o===e.right?(i+=a*e.left.scale,e.lm=a):(i+=a*e.right.scale,e.lm=-a),n(e)})),i/t.scale},t.prototype.populateSplitBlock=function(t,e){var n=this;t.visitNeighbours(e,(function(e,r){r.offset=t.offset+(r===e.right?e.gap:-e.gap),n.addVariable(r),n.populateSplitBlock(r,t)}))},t.prototype.traverse=function(t,e,n,r){var i=this;void 0===n&&(n=this.vars[0]),void 0===r&&(r=null),n.visitNeighbours(r,(function(r,o){e.push(t(r)),i.traverse(t,e,o,n)}))},t.prototype.findMinLM=function(){var t=null;return this.compute_lm(this.vars[0],null,(function(e){!e.equality&&(null===t||e.lm<t.lm)&&(t=e)})),t},t.prototype.findMinLMBetween=function(t,e){this.compute_lm(t,null,(function(){}));var n=null;return this.findPath(t,null,e,(function(t,e){!t.equality&&t.right===e&&(null===n||t.lm<n.lm)&&(n=t)})),n},t.prototype.findPath=function(t,e,n,r){var i=this,o=!1;return t.visitNeighbours(e,(function(e,a){o||a!==n&&!i.findPath(a,t,n,r)||(o=!0,r(e,a))})),o},t.prototype.isActiveDirectedPathBetween=function(t,e){if(t===e)return!0;for(var n=t.cOut.length;n--;){var r=t.cOut[n];if(r.active&&this.isActiveDirectedPathBetween(r.right,e))return!0}return!1},t.split=function(e){return e.active=!1,[t.createSplitBlock(e.left),t.createSplitBlock(e.right)]},t.createSplitBlock=function(e){var n=new t(e);return n.populateSplitBlock(e,null),n},t.prototype.splitBetween=function(e,n){var r=this.findMinLMBetween(e,n);if(null!==r){var i=t.split(r);return{constraint:r,lb:i[0],rb:i[1]}}return null},t.prototype.mergeAcross=function(t,e,n){e.active=!0;for(var r=0,i=t.vars.length;r<i;++r){var o=t.vars[r];o.offset+=n,this.addVariable(o)}this.posn=this.ps.getPosn()},t.prototype.cost=function(){for(var t=0,e=this.vars.length;e--;){var n=this.vars[e],r=n.position()-n.desiredPosition;t+=r*r*n.weight}return t},t}();n.Block=a;var u=function(){function t(t){this.vs=t;var e=t.length;for(this.list=new Array(e);e--;){var n=new a(t[e]);this.list[e]=n,n.blockInd=e}}return t.prototype.cost=function(){for(var t=0,e=this.list.length;e--;)t+=this.list[e].cost();return t},t.prototype.insert=function(t){t.blockInd=this.list.length,this.list.push(t)},t.prototype.remove=function(t){var e=this.list.length-1,n=this.list[e];this.list.length=e,t!==n&&(this.list[t.blockInd]=n,n.blockInd=t.blockInd)},t.prototype.merge=function(t){var e=t.left.block,n=t.right.block,r=t.right.offset-t.left.offset-t.gap;e.vars.length<n.vars.length?(n.mergeAcross(e,t,r),this.remove(e)):(e.mergeAcross(n,t,-r),this.remove(n))},t.prototype.forEach=function(t){this.list.forEach(t)},t.prototype.updateBlockPositions=function(){this.list.forEach((function(t){return t.updateWeightedPosition()}))},t.prototype.split=function(t){var e=this;this.updateBlockPositions(),this.list.forEach((function(n){var r=n.findMinLM();null!==r&&r.lm<s.LAGRANGIAN_TOLERANCE&&(n=r.left.block,a.split(r).forEach((function(t){return e.insert(t)})),e.remove(n),t.push(r))}))},t}();n.Blocks=u;var s=function(){function t(t,e){this.vs=t,this.cs=e,this.vs=t,t.forEach((function(t){t.cIn=[],t.cOut=[]})),this.cs=e,e.forEach((function(t){t.left.cOut.push(t),t.right.cIn.push(t)})),this.inactive=e.map((function(t){return t.active=!1,t})),this.bs=null}return t.prototype.cost=function(){return this.bs.cost()},t.prototype.setStartingPositions=function(t){this.inactive=this.cs.map((function(t){return t.active=!1,t})),this.bs=new u(this.vs),this.bs.forEach((function(e,n){return e.posn=t[n]}))},t.prototype.setDesiredPositions=function(t){this.vs.forEach((function(e,n){return e.desiredPosition=t[n]}))},t.prototype.mostViolated=function(){for(var e=Number.MAX_VALUE,n=null,r=this.inactive,i=r.length,o=i,a=0;a<i;++a){var u=r[a];if(!u.unsatisfiable){var s=u.slack();if((u.equality||s<e)&&(e=s,n=u,o=a,u.equality))break}}return o!==i&&(e<t.ZERO_UPPERBOUND&&!n.active||n.equality)&&(r[o]=r[i-1],r.length=i-1),n},t.prototype.satisfy=function(){null==this.bs&&(this.bs=new u(this.vs)),this.bs.split(this.inactive);for(var e=null;(e=this.mostViolated())&&(e.equality||e.slack()<t.ZERO_UPPERBOUND&&!e.active);){var n=e.left.block;if(n!==e.right.block)this.bs.merge(e);else{if(n.isActiveDirectedPathBetween(e.right,e.left)){e.unsatisfiable=!0;continue}var r=n.splitBetween(e.left,e.right);if(null===r){e.unsatisfiable=!0;continue}this.bs.insert(r.lb),this.bs.insert(r.rb),this.bs.remove(n),this.inactive.push(r.constraint),e.slack()>=0?this.inactive.push(e):this.bs.merge(e)}}},t.prototype.solve=function(){this.satisfy();for(var t=Number.MAX_VALUE,e=this.bs.cost();Math.abs(t-e)>1e-4;)this.satisfy(),t=e,e=this.bs.cost();return e},t.LAGRANGIAN_TOLERANCE=-1e-4,t.ZERO_UPPERBOUND=-1e-10,t}();n.Solver=s,t.exports=n},function(t,e,n){"use strict";function r(t){this.options=l.extend({layerGap:60,nodeHeight:10,direction:"down"},t)}function i(t){return"L "+t.join(" ")}function o(t){return"M "+t.join(" ")}function a(t,e,n){return"C "+t.join(" ")+" "+e.join(" ")+" "+n.join(" ")}function u(t,e){var n=(t[1]+e[1])/2;return a([t[0],n],[e[0],n],e)}function s(t,e){var n=(t[0]+e[0])/2;return a([n,t[1]],[n,e[1]],e)}var l=n(4);r.lineTo=i,r.moveTo=o,r.curveTo=a,r.vCurveBetween=u,r.hCurveBetween=s,r.prototype.getWaypoints=function(t){var e=this.options,n=e.direction,r=t.getPathFromRoot(),i=e.nodeHeight+e.layerGap;return"left"===n?[[[0,r[0].idealPos]]].concat(r.map((function(t,n){var r=i*(n+1)*-1;return[[r+e.nodeHeight,t.currentPos],[r,t.currentPos]]}))):"right"===n?[[[0,r[0].idealPos]]].concat(r.map((function(t,n){var r=i*(n+1);return[[r-e.nodeHeight,t.currentPos],[r,t.currentPos]]}))):"up"===n?[[[r[0].idealPos,0]]].concat(r.map((function(t,n){var r=i*(n+1)*-1;return[[t.currentPos,r+e.nodeHeight],[t.currentPos,r]]}))):[[[r[0].idealPos,0]]].concat(r.map((function(t,n){var r=i*(n+1);return[[t.currentPos,r-e.nodeHeight],[t.currentPos,r]]})))},r.prototype.layout=function(t){var e=this.options,n=e.layerGap+e.nodeHeight;switch(e.direction){case"left":t.forEach((function(t){var r=t.getLayerIndex()*n+e.layerGap;t.x=-r-e.nodeHeight,t.y=t.currentPos,t.dx=e.nodeHeight,t.dy=t.width}));break;case"right":t.forEach((function(t){var r=t.getLayerIndex()*n+e.layerGap;t.x=r,t.y=t.currentPos,t.dx=e.nodeHeight,t.dy=t.width}));break;case"up":t.forEach((function(t){var r=t.getLayerIndex()*n+e.layerGap;t.x=t.currentPos,t.y=-r-e.nodeHeight,t.dx=t.width,t.dy=e.nodeHeight}));break;default:t.forEach((function(t){var r=t.getLayerIndex()*n+e.layerGap;t.x=t.currentPos,t.y=r,t.dx=t.width,t.dy=e.nodeHeight}))}return t},r.prototype.generatePath=function(t){var e=this.options.direction,n=this.getWaypoints(t,e),r=[o(n[0][0])];return"left"===e||"right"===e?n.reduce((function(t,e,o){return r.push(s(t[t.length-1],e[0])),o<n.length-1&&r.push(i(e[1])),e})):n.reduce((function(t,e,o){return r.push(u(t[t.length-1],e[0])),o<n.length-1&&r.push(i(e[1])),e})),r.join(" ")},t.exports=r}])},152:function(t,e,n){var r,i;r=function(){"use strict";function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function e(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r(t,e,n){return e=l(e),h(t,f()?Reflect.construct(e,n||[],l(t).constructor):e.apply(t,n))}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,y(r.key),r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=m(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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 o,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=p(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},s.apply(null,arguments)}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}function h(t,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return e(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function p(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=l(t)););return t}function v(t,e,n,r){var i=s(l(1&r?t.prototype:t),e,n);return 2&r&&"function"==typeof i?function(t){return i.apply(n,t)}:i}function g(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function y(t){var e=g(t,"string");return"symbol"==typeof e?e:e+""}function m(e,n){if(e){if("string"==typeof e)return t(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}function b(t){var e;try{e=new Event("abort")}catch(t){"undefined"!=typeof document?document.createEvent?(e=document.createEvent("Event")).initEvent("abort",!1,!1):(e=document.createEventObject()).type="abort":e={type:"abort",bubbles:!1,cancelable:!1}}return e.reason=t,e}function w(t){if(void 0===t)if("undefined"==typeof document)(t=new Error("This operation was aborted")).name="AbortError";else try{t=new DOMException("signal is aborted without reason"),Object.defineProperty(t,"name",{value:"AbortError"})}catch(e){(t=new Error("This operation was aborted")).name="AbortError"}return t}!function(t){t.AbortSignal,t.AbortController}("undefined"!=typeof self?self:n.g);var x=function(){function t(){i(this,t),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return a(t,[{key:"addEventListener",value:function(t,e,n){t in this.listeners||(this.listeners[t]=[]),this.listeners[t].push({callback:e,options:n})}},{key:"removeEventListener",value:function(t,e){if(t in this.listeners)for(var n=this.listeners[t],r=0,i=n.length;r<i;r++)if(n[r].callback===e)return void n.splice(r,1)}},{key:"dispatchEvent",value:function(t){var e=this;if(t.type in this.listeners){for(var n=this.listeners[t.type].slice(),r=function(){var r=n[i];try{r.callback.call(e,t)}catch(t){Promise.resolve().then((function(){throw t}))}r.options&&r.options.once&&e.removeEventListener(t.type,r.callback)},i=0,o=n.length;i<o;i++)r();return!t.defaultPrevented}}}])}(),_=function(t){function e(){var t;return i(this,e),(t=r(this,e)).listeners||x.call(t),Object.defineProperty(t,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(t,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(t,"reason",{value:void 0,writable:!0,configurable:!0}),t}return c(e,t),a(e,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(t){"abort"===t.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,t)),v(e,"dispatchEvent",this,3)([t])}},{key:"throwIfAborted",value:function(){var t=this.aborted,e=this.reason;if(t)throw void 0===e?"Aborted":e}}],[{key:"timeout",value:function(t){var e=new k;return setTimeout((function(){return e.abort(new DOMException("This signal is timeout in ".concat(t,"ms"),"TimeoutError"))}),t),e.signal}},{key:"any",value:function(t){var e=new k;function n(){e.abort(this.reason),r()}function r(){var e,r=u(t);try{for(r.s();!(e=r.n()).done;)e.value.removeEventListener("abort",n)}catch(t){r.e(t)}finally{r.f()}}var i,o=u(t);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(a.aborted){e.abort(a.reason);break}a.addEventListener("abort",n)}}catch(t){o.e(t)}finally{o.f()}return e.signal}}])}(x),k=function(){function t(){i(this,t),Object.defineProperty(this,"signal",{value:new _,writable:!0,configurable:!0})}return a(t,[{key:"abort",value:function(t){var e=w(t),n=b(e);this.signal.reason=e,this.signal.dispatchEvent(n)}},{key:"toString",value:function(){return"[object AbortController]"}}])}();function M(t){return t.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):"function"==typeof t.Request&&!t.Request.prototype.hasOwnProperty("signal")||!t.AbortController}function A(t){"function"==typeof t&&(t={fetch:t});var e=t,n=e.fetch,r=e.Request,i=void 0===r?n.Request:r,o=e.AbortController,a=e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL,u=void 0!==a&&a;if(!M({fetch:n,Request:i,AbortController:o,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:u}))return{fetch:n,Request:s};var s=i;(s&&!s.prototype.hasOwnProperty("signal")||u)&&((s=function(t,e){var n;e&&e.signal&&(n=e.signal,delete e.signal);var r=new i(t,e);return n&&Object.defineProperty(r,"signal",{writable:!1,enumerable:!1,configurable:!0,value:n}),r}).prototype=i.prototype);var l=n;return{fetch:function(t,e){var n=s&&s.prototype.isPrototypeOf(t)?t.signal:e?e.signal:void 0;if(n){var r;try{r=new DOMException("Aborted","AbortError")}catch(t){(r=new Error("Aborted")).name="AbortError"}if(n.aborted)return Promise.reject(r);var i=new Promise((function(t,e){n.addEventListener("abort",(function(){return e(r)}),{once:!0})}));return e&&e.signal&&delete e.signal,Promise.race([i,l(t,e)])}return l(t,e)},Request:s}}"undefined"!=typeof Symbol&&Symbol.toStringTag&&(k.prototype[Symbol.toStringTag]="AbortController",_.prototype[Symbol.toStringTag]="AbortSignal"),function(t){if(M(t))if(t.fetch){var e=A(t),n=e.fetch,r=e.Request;t.fetch=n,t.Request=r,Object.defineProperty(t,"AbortController",{writable:!0,enumerable:!1,configurable:!0,value:k}),Object.defineProperty(t,"AbortSignal",{writable:!0,enumerable:!1,configurable:!0,value:_})}else console.warn("fetch() is not available, cannot install abortcontroller-polyfill")}("undefined"!=typeof self?self:n.g)},void 0===(i="function"==typeof r?r.call(e,n,e,t):r)||(t.exports=i)},181:function(t,e,n){var r=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,u=parseInt,s="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,l="object"==typeof self&&self&&self.Object===Object&&self,c=s||l||Function("return this")(),f=Object.prototype.toString,h=Math.max,d=Math.min,p=function(){return c.Date.now()};function v(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function g(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==f.call(t)}(t))return NaN;if(v(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=v(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(r,"");var n=o.test(t);return n||a.test(t)?u(t.slice(2),n?2:8):i.test(t)?NaN:+t}t.exports=function(t,e,n){var r,i,o,a,u,s,l=0,c=!1,f=!1,y=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(e){var n=r,o=i;return r=i=void 0,l=e,a=t.apply(o,n)}function b(t){var n=t-s;return void 0===s||n>=e||n<0||f&&t-l>=o}function w(){var t=p();if(b(t))return x(t);u=setTimeout(w,function(t){var n=e-(t-s);return f?d(n,o-(t-l)):n}(t))}function x(t){return u=void 0,y&&r?m(t):(r=i=void 0,a)}function _(){var t=p(),n=b(t);if(r=arguments,i=this,s=t,n){if(void 0===u)return function(t){return l=t,u=setTimeout(w,e),c?m(t):a}(s);if(f)return u=setTimeout(w,e),m(s)}return void 0===u&&(u=setTimeout(w,e)),a}return e=g(e)||0,v(n)&&(c=!!n.leading,o=(f="maxWait"in n)?h(g(n.maxWait)||0,e):o,y="trailing"in n?!!n.trailing:y),_.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=i=u=void 0},_.flush=function(){return void 0===u?a:x(p())},_}},389:function(){"use strict";"function"!=typeof Object.assign&&(Object.assign=function(t){if(console.info("installing Object.assign polyfill"),null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}),String.prototype.includes||(console.info("installing String.includes polyfill"),String.prototype.includes=function(t,e){return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}),String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return this.substr(!e||e<0?0:+e,t.length)===t})},828:function(){self.fetch||(self.fetch=function(t,e){return e=e||{},new Promise((function(n,r){var i=new XMLHttpRequest,o=[],a={},u=function t(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:t,headers:{keys:function(){return o},entries:function(){return o.map((function(t){return[t,i.getResponseHeader(t)]}))},get:function(t){return i.getResponseHeader(t)},has:function(t){return null!=i.getResponseHeader(t)}}}};for(var s in i.open(e.method||"get",t,!0),i.onload=function(){i.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,(function(t,e){a[e]||o.push(a[e]=e)})),n(u())},i.onerror=r,i.withCredentials="include"==e.credentials,e.headers)i.setRequestHeader(s,e.headers[s]);i.send(e.body||null)}))})}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r].call(o.exports,o,o.exports,n),o.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var r={};return function(){"use strict";n.d(r,{default:function(){return rs}});n(389);var t=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){return e.reject(n)}))}))};var e=function(t){return new this((function(e,n){if(!t||void 0===t.length)return n(new TypeError(typeof t+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(t);if(0===r.length)return e([]);var i=r.length;function o(t,n){if(n&&("object"==typeof n||"function"==typeof n)){var a=n.then;if("function"==typeof a)return void a.call(n,(function(e){o(t,e)}),(function(n){r[t]={status:"rejected",reason:n},0==--i&&e(r)}))}r[t]={status:"fulfilled",value:n},0==--i&&e(r)}for(var a=0;a<r.length;a++)o(a,r[a])}))};function i(t,e){this.name="AggregateError",this.errors=t,this.message=e||""}i.prototype=Error.prototype;var o=function(t){var e=this;return new e((function(n,r){if(!t||void 0===t.length)return r(new TypeError("Promise.any accepts an array"));var o=Array.prototype.slice.call(t);if(0===o.length)return r();for(var a=[],u=0;u<o.length;u++)try{e.resolve(o[u]).then(n).catch((function(t){a.push(t),a.length===o.length&&r(new i(a,"All promises were rejected"))}))}catch(t){r(t)}}))},a=setTimeout;function u(t){return Boolean(t&&void 0!==t.length)}function s(){}function l(t){if(!(this instanceof l))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],v(t,this)}function c(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,l._immediateFn((function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(t){return void h(e.promise,t)}f(e.promise,r)}else(1===t._state?f:h)(e.promise,t._value)}))):t._deferreds.push(e)}function f(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof l)return t._state=3,t._value=e,void d(t);if("function"==typeof n)return void v((r=n,i=e,function(){r.apply(i,arguments)}),t)}t._state=1,t._value=e,d(t)}catch(e){h(t,e)}var r,i}function h(t,e){t._state=2,t._value=e,d(t)}function d(t){2===t._state&&0===t._deferreds.length&&l._immediateFn((function(){t._handled||l._unhandledRejectionFn(t._value)}));for(var e=0,n=t._deferreds.length;e<n;e++)c(t,t._deferreds[e]);t._deferreds=null}function p(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function v(t,e){var n=!1;try{t((function(t){n||(n=!0,f(e,t))}),(function(t){n||(n=!0,h(e,t))}))}catch(t){if(n)return;n=!0,h(e,t)}}l.prototype.catch=function(t){return this.then(null,t)},l.prototype.then=function(t,e){var n=new this.constructor(s);return c(this,new p(t,e,n)),n},l.prototype.finally=t,l.all=function(t){return new l((function(e,n){if(!u(t))return n(new TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(t);if(0===r.length)return e([]);var i=r.length;function o(t,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var u=a.then;if("function"==typeof u)return void u.call(a,(function(e){o(t,e)}),n)}r[t]=a,0==--i&&e(r)}catch(t){n(t)}}for(var a=0;a<r.length;a++)o(a,r[a])}))},l.any=o,l.allSettled=e,l.resolve=function(t){return t&&"object"==typeof t&&t.constructor===l?t:new l((function(e){e(t)}))},l.reject=function(t){return new l((function(e,n){n(t)}))},l.race=function(t){return new l((function(e,n){if(!u(t))return n(new TypeError("Promise.race accepts an array"));for(var r=0,i=t.length;r<i;r++)l.resolve(t[r]).then(e,n)}))},l._immediateFn="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){a(t,0)},l._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};var g=l,y=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw new Error("unable to locate global object")}();"function"!=typeof y.Promise?y.Promise=g:(y.Promise.prototype.finally||(y.Promise.prototype.finally=t),y.Promise.allSettled||(y.Promise.allSettled=e),y.Promise.any||(y.Promise.any=o));n(828),n(152);function m(t,e){return Object.assign(t,e),t}var b={draw:function(){}},w={};function x(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function _(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function k(){}var M=.7,A=1/M,T="\\s*([+-]?\\d+)\\s*",S="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",P="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",C=/^#([0-9a-f]{3,8})$/,E=new RegExp(`^rgb\\(${T},${T},${T}\\)$`),D=new RegExp(`^rgb\\(${P},${P},${P}\\)$`),O=new RegExp(`^rgba\\(${T},${T},${T},${S}\\)$`),N=new RegExp(`^rgba\\(${P},${P},${P},${S}\\)$`),j=new RegExp(`^hsl\\(${S},${P},${P}\\)$`),L=new RegExp(`^hsla\\(${S},${P},${P},${S}\\)$`),R={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};function F(){return this.rgb().formatHex()}function $(){return this.rgb().formatRgb()}function U(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=C.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?H(e):3===n?new V(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?I(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?I(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=E.exec(t))?new V(e[1],e[2],e[3],1):(e=D.exec(t))?new V(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=O.exec(t))?I(e[1],e[2],e[3],e[4]):(e=N.exec(t))?I(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=j.exec(t))?J(e[1],e[2]/100,e[3]/100,1):(e=L.exec(t))?J(e[1],e[2]/100,e[3]/100,e[4]):R.hasOwnProperty(t)?H(R[t]):"transparent"===t?new V(NaN,NaN,NaN,0):null}function H(t){return new V(t>>16&255,t>>8&255,255&t,1)}function I(t,e,n,r){return r<=0&&(t=e=n=NaN),new V(t,e,n,r)}function q(t,e,n,r){return 1===arguments.length?((i=t)instanceof k||(i=U(i)),i?new V((i=i.rgb()).r,i.g,i.b,i.opacity):new V):new V(t,e,n,null==r?1:r);var i}function V(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function B(){return`#${X(this.r)}${X(this.g)}${X(this.b)}`}function z(){const t=Y(this.opacity);return`${1===t?"rgb(":"rgba("}${W(this.r)}, ${W(this.g)}, ${W(this.b)}${1===t?")":`, ${t})`}`}function Y(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function W(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function X(t){return((t=W(t))<16?"0":"")+t.toString(16)}function J(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new K(t,e,n,r)}function G(t){if(t instanceof K)return new K(t.h,t.s,t.l,t.opacity);if(t instanceof k||(t=U(t)),!t)return new K;if(t instanceof K)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,u=o-i,s=(o+i)/2;return u?(a=e===o?(n-r)/u+6*(n<r):n===o?(r-e)/u+2:(e-n)/u+4,u/=s<.5?o+i:2-o-i,a*=60):u=s>0&&s<1?0:a,new K(a,u,s,t.opacity)}function Z(t,e,n,r){return 1===arguments.length?G(t):new K(t,e,n,null==r?1:r)}function K(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Q(t){return(t=(t||0)%360)<0?t+360:t}function tt(t){return Math.max(0,Math.min(1,t||0))}function et(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function nt(){}function rt(t){return null==t?nt:function(){return this.querySelector(t)}}function it(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function ot(){return[]}function at(t){return null==t?ot:function(){return this.querySelectorAll(t)}}function ut(t){return function(){return this.matches(t)}}function st(t){return function(e){return e.matches(t)}}x(k,U,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:F,formatHex:F,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return G(this).formatHsl()},formatRgb:$,toString:$}),x(V,q,_(k,{brighter(t){return t=null==t?A:Math.pow(A,t),new V(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?M:Math.pow(M,t),new V(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new V(W(this.r),W(this.g),W(this.b),Y(this.opacity))},displayable(){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:B,formatHex:B,formatHex8:function(){return`#${X(this.r)}${X(this.g)}${X(this.b)}${X(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:z,toString:z})),x(K,Z,_(k,{brighter(t){return t=null==t?A:Math.pow(A,t),new K(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?M:Math.pow(M,t),new K(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new V(et(t>=240?t-240:t+120,i,r),et(t,i,r),et(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new K(Q(this.h),tt(this.s),tt(this.l),Y(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Y(this.opacity);return`${1===t?"hsl(":"hsla("}${Q(this.h)}, ${100*tt(this.s)}%, ${100*tt(this.l)}%${1===t?")":`, ${t})`}`}}));var lt=Array.prototype.find;function ct(){return this.firstElementChild}var ft=Array.prototype.filter;function ht(){return Array.from(this.children)}function dt(t){return new Array(t.length)}function pt(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function vt(t,e,n,r,i,o){for(var a,u=0,s=e.length,l=o.length;u<l;++u)(a=e[u])?(a.__data__=o[u],r[u]=a):n[u]=new pt(t,o[u]);for(;u<s;++u)(a=e[u])&&(i[u]=a)}function gt(t,e,n,r,i,o,a){var u,s,l,c=new Map,f=e.length,h=o.length,d=new Array(f);for(u=0;u<f;++u)(s=e[u])&&(d[u]=l=a.call(s,s.__data__,u,e)+"",c.has(l)?i[u]=s:c.set(l,s));for(u=0;u<h;++u)l=a.call(t,o[u],u,o)+"",(s=c.get(l))?(r[u]=s,s.__data__=o[u],c.delete(l)):n[u]=new pt(t,o[u]);for(u=0;u<f;++u)(s=e[u])&&c.get(d[u])===s&&(i[u]=s)}function yt(t){return t.__data__}function mt(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function bt(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}pt.prototype={constructor:pt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var wt="http://www.w3.org/1999/xhtml",xt={svg:"http://www.w3.org/2000/svg",xhtml:wt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function _t(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),xt.hasOwnProperty(e)?{space:xt[e],local:t}:t}function kt(t){return function(){this.removeAttribute(t)}}function Mt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function At(t,e){return function(){this.setAttribute(t,e)}}function Tt(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function St(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Pt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Ct(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Et(t){return function(){this.style.removeProperty(t)}}function Dt(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ot(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Nt(t,e){return t.style.getPropertyValue(e)||Ct(t).getComputedStyle(t,null).getPropertyValue(e)}function jt(t){return function(){delete this[t]}}function Lt(t,e){return function(){this[t]=e}}function Rt(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Ft(t){return t.trim().split(/^|\s+/)}function $t(t){return t.classList||new Ut(t)}function Ut(t){this._node=t,this._names=Ft(t.getAttribute("class")||"")}function Ht(t,e){for(var n=$t(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function It(t,e){for(var n=$t(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function qt(t){return function(){Ht(this,t)}}function Vt(t){return function(){It(this,t)}}function Bt(t,e){return function(){(e.apply(this,arguments)?Ht:It)(this,t)}}function zt(){this.textContent=""}function Yt(t){return function(){this.textContent=t}}function Wt(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function Xt(){this.innerHTML=""}function Jt(t){return function(){this.innerHTML=t}}function Gt(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function Zt(){this.nextSibling&&this.parentNode.appendChild(this)}function Kt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Qt(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===wt&&e.documentElement.namespaceURI===wt?e.createElement(t):e.createElementNS(n,t)}}function te(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function ee(t){var e=_t(t);return(e.local?te:Qt)(e)}function ne(){return null}function re(){var t=this.parentNode;t&&t.removeChild(this)}function ie(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function oe(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ae(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function ue(t,e,n){return function(){var r,i=this.__on,o=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(i)for(var a=0,u=i.length;a<u;++a)if((r=i[a]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=e);this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}function se(t,e,n){var r=Ct(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function le(t,e){return function(){return se(this,t,e)}}function ce(t,e){return function(){return se(this,t,e.apply(this,arguments))}}Ut.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var fe=[null];function he(t,e){this._groups=t,this._parents=e}function de(){return new he([[document.documentElement]],fe)}he.prototype=de.prototype={constructor:he,select:function(t){"function"!=typeof t&&(t=rt(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a,u=e[i],s=u.length,l=r[i]=new Array(s),c=0;c<s;++c)(o=u[c])&&(a=t.call(o,o.__data__,c,u))&&("__data__"in o&&(a.__data__=o.__data__),l[c]=a);return new he(r,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return it(t.apply(this,arguments))}}(t):at(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a,u=e[o],s=u.length,l=0;l<s;++l)(a=u[l])&&(r.push(t.call(a,a.__data__,l,u)),i.push(a));return new he(r,i)},selectChild:function(t){return this.select(null==t?ct:function(t){return function(){return lt.call(this.children,t)}}("function"==typeof t?t:st(t)))},selectChildren:function(t){return this.selectAll(null==t?ht:function(t){return function(){return ft.call(this.children,t)}}("function"==typeof t?t:st(t)))},filter:function(t){"function"!=typeof t&&(t=ut(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],u=a.length,s=r[i]=[],l=0;l<u;++l)(o=a[l])&&t.call(o,o.__data__,l,a)&&s.push(o);return new he(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,yt);var n,r=e?gt:vt,i=this._parents,o=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var a=o.length,u=new Array(a),s=new Array(a),l=new Array(a),c=0;c<a;++c){var f=i[c],h=o[c],d=h.length,p=mt(t.call(f,f&&f.__data__,c,i)),v=p.length,g=s[c]=new Array(v),y=u[c]=new Array(v);r(f,h,g,y,l[c]=new Array(d),p,e);for(var m,b,w=0,x=0;w<v;++w)if(m=g[w]){for(w>=x&&(x=w+1);!(b=y[x])&&++x<v;);m._next=b||null}}return(u=new he(u,i))._enter=s,u._exit=l,u},enter:function(){return new he(this._enter||this._groups.map(dt),this._parents)},exit:function(){return new he(this._exit||this._groups.map(dt),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,a=Math.min(i,o),u=new Array(i),s=0;s<a;++s)for(var l,c=n[s],f=r[s],h=c.length,d=u[s]=new Array(h),p=0;p<h;++p)(l=c[p]||f[p])&&(d[p]=l);for(;s<i;++s)u[s]=n[s];return new he(u,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=bt);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,u=n[o],s=u.length,l=i[o]=new Array(s),c=0;c<s;++c)(a=u[c])&&(l[c]=a);l.sort(e)}return new he(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],a=0,u=o.length;a<u;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},attr:function(t,e){var n=_t(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?Mt:kt:"function"==typeof e?n.local?Pt:St:n.local?Tt:At)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?Et:"function"==typeof e?Ot:Dt)(t,e,null==n?"":n)):Nt(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?jt:"function"==typeof e?Rt:Lt)(t,e)):this.node()[t]},classed:function(t,e){var n=Ft(t+"");if(arguments.length<2){for(var r=$t(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?Bt:e?qt:Vt)(n,e))},text:function(t){return arguments.length?this.each(null==t?zt:("function"==typeof t?Wt:Yt)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Xt:("function"==typeof t?Gt:Jt)(t)):this.node().innerHTML},raise:function(){return this.each(Zt)},lower:function(){return this.each(Kt)},append:function(t){var e="function"==typeof t?t:ee(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:ee(t),r=null==e?ne:"function"==typeof e?e:rt(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(re)},clone:function(t){return this.select(t?oe:ie)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,o=function(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),a=o.length;if(!(arguments.length<2)){for(u=e?ue:ae,r=0;r<a;++r)this.each(u(o[r],e,n));return this}var u=this.node().__on;if(u)for(var s,l=0,c=u.length;l<c;++l)for(r=0,s=u[l];r<a;++r)if((i=o[r]).type===s.type&&i.name===s.name)return s.value},dispatch:function(t,e){return this.each(("function"==typeof e?ce:le)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}};var pe=de;function ve(t){return"string"==typeof t?new he([[document.querySelector(t)]],[document.documentElement]):new he([[t]],fe)}function ge(t){return"string"==typeof t?new he([document.querySelectorAll(t)],[document.documentElement]):new he([it(t)],fe)}function ye(t){return[t.width,t.height]}function me(t,e){ve(t).style("height",e+"px")}function be(t,e){var n=void 0,r=[];return t.each((function(){for(var t=this;"function"==typeof t.parentNode.matches&&!n;)(t=t.parentNode).matches(e)&&(n=t,r.push(n));n=void 0})),ge(r)}function we(t,e,n,r){ve(e).on(t,(function(t){try{("string"==typeof n?ve(e).selectAll(n):n).each((function(){var e=this;(function(t,e){for(;;){if(!t||!e)return!1;if(t.isSameNode(e))return!0;t=t.parentNode}})(t.target,e)&&r.bind(e)(ve(e).data()[0])}))}catch(t){throw console.error(t),t}}))}function xe(t){return t&&(t=encodeURIComponent(t).replace(/%20/g,"+")),t}function _e(t){var e=[];for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"==typeof r&&(r=JSON.stringify(r)),"string"!=typeof r&&"number"!=typeof r||e.push(xe(n)+"="+xe(r))}return e.join("&")}function ke(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);if(204!==t.status&&205!==t.status)return t.json()}var Me=function(){return Me=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Me.apply(this,arguments)},Ae=function(){var t=[];function e(t,e,n){var r=es.options.detectDataDomain?function(){for(var t=document.scripts,e=0;e<t.length;++e){var n=t[e].src;if(n&&n.indexOf("/viz.")>=0){var r=n.indexOf("/",9);if(r>=0)return n.substring(0,r)}}return""}():void 0,i=r||es.options.dataDomain;(function(t,e){return fetch(t,e).then(ke)})((window.dataDomain||i)+"/data.json",{headers:Me({"Content-Type":"application/json; charset=UTF-8"},t&&{"X-Api-Key":t}),method:"POST",body:JSON.stringify(e)}).then((function(t){return n(null,t)})).catch((function(t){return n(t,void 0)}))}function n(t){for(var n=[],r={},i=void 0,o=0,a=t;o<a.length;o++){var u=a[o];n.push(u.options),i=null!=i?i:u.options.apiKey}n.length>0&&(r.options=n,r.origin=document.location.hostname,r.v=es.version,e(i,r,(function(e,n){if(e)for(var r=0,i=t;r<i.length;r++){i[r].error(e.message)}else{var o=n.result;t.forEach((function(t,e){var n=o[e].error;n?t.error(n.message):t.success(o[e])}))}})))}function r(){n(t),t=[]}return{requestData:function(e,i,o){var a={options:e,success:i,error:o};e.immediate?n([a]):(t.push(a),window.setTimeout(r))}}}();const Te=new Date,Se=new Date;function Pe(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),i.round=t=>{const e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=(t,n)=>(e(t=new Date(+t),null==n?1:Math.floor(n)),t),i.range=(n,r,o)=>{const a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;let u;do{a.push(u=new Date(+n)),e(n,o),t(n)}while(u<n&&n<r);return a},i.filter=n=>Pe((e=>{if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),((t,r)=>{if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})),n&&(i.count=(e,r)=>(Te.setTime(+e),Se.setTime(+r),t(Te),t(Se),Math.floor(n(Te,Se))),i.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?e=>r(e)%t==0:e=>i.count(0,e)%t==0):i:null)),i}const Ce=1e3,Ee=6e4,De=36e5,Oe=864e5,Ne=6048e5,je=2592e6,Le=31536e6;function Re(t){return Pe((e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),((t,e)=>{t.setDate(t.getDate()+7*e)}),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Ee)/Ne))}const Fe=Re(0),$e=Re(1),Ue=Re(2),He=Re(3),Ie=Re(4),qe=Re(5),Ve=Re(6);Fe.range,$e.range,Ue.range,He.range,Ie.range,qe.range,Ve.range;function Be(t){return Pe((e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)}),((t,e)=>(e-t)/Ne))}const ze=Be(0),Ye=Be(1),We=Be(2),Xe=Be(3),Je=Be(4),Ge=Be(5),Ze=Be(6),Ke=(ze.range,Ye.range,We.range,Xe.range,Je.range,Ge.range,Ze.range,Pe((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Ee)/Oe),(t=>t.getDate()-1))),Qe=(Ke.range,Pe((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Oe),(t=>t.getUTCDate()-1))),tn=(Qe.range,Pe((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Oe),(t=>Math.floor(t/Oe)))),en=(tn.range,Pe((t=>{t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,e)=>{t.setFullYear(t.getFullYear()+e)}),((t,e)=>e.getFullYear()-t.getFullYear()),(t=>t.getFullYear())));en.every=t=>isFinite(t=Math.floor(t))&&t>0?Pe((e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,n)=>{e.setFullYear(e.getFullYear()+n*t)})):null;en.range;const nn=Pe((t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)}),((t,e)=>e.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));nn.every=t=>isFinite(t=Math.floor(t))&&t>0?Pe((e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null;nn.range;function rn(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);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function on(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));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function an(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function un(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,u=t.months,s=t.shortMonths,l=pn(i),c=vn(i),f=pn(o),h=vn(o),d=pn(a),p=vn(a),v=pn(u),g=vn(u),y=pn(s),m=vn(s),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return s[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:Rn,e:Rn,f:In,g:Kn,G:tr,H:Fn,I:$n,j:Un,L:Hn,m:qn,M:Vn,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:kr,s:Mr,S:Bn,u:zn,U:Yn,V:Xn,w:Jn,W:Gn,x:null,X:null,y:Zn,Y:Qn,Z:er,"%":_r},w={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return s[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:nr,e:nr,f:ur,g:mr,G:wr,H:rr,I:ir,j:or,L:ar,m:sr,M:lr,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:kr,s:Mr,S:cr,u:fr,U:hr,V:pr,w:vr,W:gr,x:null,X:null,y:yr,Y:br,Z:xr,"%":_r},x={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return M(t,e,n,r)},d:Tn,e:Tn,f:On,g:_n,G:xn,H:Pn,I:Pn,j:Sn,L:Dn,m:An,M:Cn,p:function(t,e,n){var r=l.exec(e.slice(n));return r?(t.p=c.get(r[0].toLowerCase()),n+r[0].length):-1},q:Mn,Q:jn,s:Ln,S:En,u:yn,U:mn,V:bn,w:gn,W:wn,x:function(t,e,r){return M(t,n,e,r)},X:function(t,e,n){return M(t,r,e,n)},y:_n,Y:xn,Z:kn,"%":Nn};function _(t,e){return function(n){var r,i,o,a=[],u=-1,s=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++u<l;)37===t.charCodeAt(u)&&(a.push(t.slice(s,u)),null!=(i=sn[r=t.charAt(++u)])?r=t.charAt(++u):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),a.push(r),s=u+1);return a.push(t.slice(s,u)),a.join("")}}function k(t,e){return function(n){var r,i,o=an(1900,void 0,1);if(M(o,t,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(e&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=on(an(o.y,0,1))).getUTCDay(),r=i>4||0===i?Ye.ceil(r):Ye(r),r=Qe.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=rn(an(o.y,0,1))).getDay(),r=i>4||0===i?$e.ceil(r):$e(r),r=Ke.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?on(an(o.y,0,1)).getUTCDay():rn(an(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,on(o)):rn(o)}}function M(t,e,n,r){for(var i,o,a=0,u=e.length,s=n.length;a<u;){if(r>=s)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=x[i in sn?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=_(n,b),b.X=_(r,b),b.c=_(e,b),w.x=_(n,w),w.X=_(r,w),w.c=_(e,w),{format:function(t){var e=_(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=k(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=_(t+="",w);return e.toString=function(){return t},e},utcParse:function(t){var e=k(t+="",!0);return e.toString=function(){return t},e}}}var sn={"-":"",_:" ",0:"0"},ln=/^\s*\d+/,cn=/^%/,fn=/[\\^$*+?|[\]().{}]/g;function hn(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function dn(t){return t.replace(fn,"\\$&")}function pn(t){return new RegExp("^(?:"+t.map(dn).join("|")+")","i")}function vn(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function gn(t,e,n){var r=ln.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function yn(t,e,n){var r=ln.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function mn(t,e,n){var r=ln.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function bn(t,e,n){var r=ln.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function wn(t,e,n){var r=ln.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function xn(t,e,n){var r=ln.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function _n(t,e,n){var r=ln.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function kn(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 Mn(t,e,n){var r=ln.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function An(t,e,n){var r=ln.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Tn(t,e,n){var r=ln.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Sn(t,e,n){var r=ln.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Pn(t,e,n){var r=ln.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Cn(t,e,n){var r=ln.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function En(t,e,n){var r=ln.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Dn(t,e,n){var r=ln.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function On(t,e,n){var r=ln.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Nn(t,e,n){var r=cn.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function jn(t,e,n){var r=ln.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Ln(t,e,n){var r=ln.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Rn(t,e){return hn(t.getDate(),e,2)}function Fn(t,e){return hn(t.getHours(),e,2)}function $n(t,e){return hn(t.getHours()%12||12,e,2)}function Un(t,e){return hn(1+Ke.count(en(t),t),e,3)}function Hn(t,e){return hn(t.getMilliseconds(),e,3)}function In(t,e){return Hn(t,e)+"000"}function qn(t,e){return hn(t.getMonth()+1,e,2)}function Vn(t,e){return hn(t.getMinutes(),e,2)}function Bn(t,e){return hn(t.getSeconds(),e,2)}function zn(t){var e=t.getDay();return 0===e?7:e}function Yn(t,e){return hn(Fe.count(en(t)-1,t),e,2)}function Wn(t){var e=t.getDay();return e>=4||0===e?Ie(t):Ie.ceil(t)}function Xn(t,e){return t=Wn(t),hn(Ie.count(en(t),t)+(4===en(t).getDay()),e,2)}function Jn(t){return t.getDay()}function Gn(t,e){return hn($e.count(en(t)-1,t),e,2)}function Zn(t,e){return hn(t.getFullYear()%100,e,2)}function Kn(t,e){return hn((t=Wn(t)).getFullYear()%100,e,2)}function Qn(t,e){return hn(t.getFullYear()%1e4,e,4)}function tr(t,e){var n=t.getDay();return hn((t=n>=4||0===n?Ie(t):Ie.ceil(t)).getFullYear()%1e4,e,4)}function er(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+hn(e/60|0,"0",2)+hn(e%60,"0",2)}function nr(t,e){return hn(t.getUTCDate(),e,2)}function rr(t,e){return hn(t.getUTCHours(),e,2)}function ir(t,e){return hn(t.getUTCHours()%12||12,e,2)}function or(t,e){return hn(1+Qe.count(nn(t),t),e,3)}function ar(t,e){return hn(t.getUTCMilliseconds(),e,3)}function ur(t,e){return ar(t,e)+"000"}function sr(t,e){return hn(t.getUTCMonth()+1,e,2)}function lr(t,e){return hn(t.getUTCMinutes(),e,2)}function cr(t,e){return hn(t.getUTCSeconds(),e,2)}function fr(t){var e=t.getUTCDay();return 0===e?7:e}function hr(t,e){return hn(ze.count(nn(t)-1,t),e,2)}function dr(t){var e=t.getUTCDay();return e>=4||0===e?Je(t):Je.ceil(t)}function pr(t,e){return t=dr(t),hn(Je.count(nn(t),t)+(4===nn(t).getUTCDay()),e,2)}function vr(t){return t.getUTCDay()}function gr(t,e){return hn(Ye.count(nn(t)-1,t),e,2)}function yr(t,e){return hn(t.getUTCFullYear()%100,e,2)}function mr(t,e){return hn((t=dr(t)).getUTCFullYear()%100,e,2)}function br(t,e){return hn(t.getUTCFullYear()%1e4,e,4)}function wr(t,e){var n=t.getUTCDay();return hn((t=n>=4||0===n?Je(t):Je.ceil(t)).getUTCFullYear()%1e4,e,4)}function xr(){return"+0000"}function _r(){return"%"}function kr(t){return+t}function Mr(t){return Math.floor(+t/1e3)}const Ar=Pe((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*Ce)}),((t,e)=>(e-t)/Ce),(t=>t.getUTCSeconds())),Tr=(Ar.range,Pe((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ce)}),((t,e)=>{t.setTime(+t+e*Ee)}),((t,e)=>(e-t)/Ee),(t=>t.getMinutes()))),Sr=(Tr.range,Pe((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*Ee)}),((t,e)=>(e-t)/Ee),(t=>t.getUTCMinutes()))),Pr=(Sr.range,Pe((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ce-t.getMinutes()*Ee)}),((t,e)=>{t.setTime(+t+e*De)}),((t,e)=>(e-t)/De),(t=>t.getHours()))),Cr=(Pr.range,Pe((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*De)}),((t,e)=>(e-t)/De),(t=>t.getUTCHours()))),Er=(Cr.range,Pe((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,e)=>{t.setMonth(t.getMonth()+e)}),((t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())),(t=>t.getMonth()))),Dr=(Er.range,Pe((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)}),((t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth())));Dr.range;function Or(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 Nr(t){return(t=Or(Math.abs(t)))?t[1]:NaN}var jr,Lr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Rr(t){if(!(e=Lr.exec(t)))throw new Error("invalid format: "+t);var e;return new Fr({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]})}function Fr(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function $r(t,e){var n=Or(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")}Rr.prototype=Fr.prototype,Fr.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Ur={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>$r(100*t,e),r:$r,s:function(t,e){var n=Or(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(jr=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Or(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Hr(t){return t}var Ir=Array.prototype.map,qr=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Vr(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?Hr:(e=Ir.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,u=e[0],s=0;i>0&&u>0&&(s+u+1>r&&(u=Math.max(1,r-s)),o.push(t.substring(i-=u,i+u)),!((s+=u+1)>r));)u=e[a=(a+1)%e.length];return o.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?Hr:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Ir.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"−":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=Rr(t)).fill,n=t.align,f=t.sign,h=t.symbol,d=t.zero,p=t.width,v=t.comma,g=t.precision,y=t.trim,m=t.type;"n"===m?(v=!0,m="g"):Ur[m]||(void 0===g&&(g=12),y=!0,m="g"),(d||"0"===e&&"="===n)&&(d=!0,e="0",n="=");var b="$"===h?i:"#"===h&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",w="$"===h?o:/[%p]/.test(m)?s:"",x=Ur[m],_=/[defgprs%]/.test(m);function k(t){var i,o,s,h=b,k=w;if("c"===m)k=x(t)+k,t="";else{var M=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:x(Math.abs(t),g),y&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),M&&0==+t&&"+"!==f&&(M=!1),h=(M?"("===f?f:l:"-"===f||"("===f?"":f)+h,k=("s"===m?qr[8+jr/3]:"")+k+(M&&"("===f?")":""),_)for(i=-1,o=t.length;++i<o;)if(48>(s=t.charCodeAt(i))||s>57){k=(46===s?a+t.slice(i+1):t.slice(i))+k,t=t.slice(0,i);break}}v&&!d&&(t=r(t,1/0));var A=h.length+t.length+k.length,T=A<p?new Array(p-A+1).join(e):"";switch(v&&d&&(t=r(T+t,T.length?p-k.length:1/0),T=""),n){case"<":t=h+t+k+T;break;case"=":t=h+T+t+k;break;case"^":t=T.slice(0,A=T.length>>1)+h+t+k+T.slice(A);break;default:t=T+h+t+k}return u(t)}return g=void 0===g?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),k.toString=function(){return t+""},k}return{format:f,formatPrefix:function(t,e){var n=f(((t=Rr(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Nr(e)/3))),i=Math.pow(10,-r),o=qr[8+r/3];return function(t){return n(i*t)+o}}}}var Br=JSON.parse('{"dateTime":"%A, der %e. %B %Y, %X","date":"%d.%m.%Y","time":"%H:%M:%S","periods":["AM","PM"],"days":["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],"shortDays":["So","Mo","Di","Mi","Do","Fr","Sa"],"months":["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],"shortMonths":["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"]}'),zr=JSON.parse('{"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"]}'),Yr=JSON.parse('{"dateTime":"%A %e %B %Y à %X","date":"%d/%m/%Y","time":"%H:%M:%S","periods":["AM","PM"],"days":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],"shortDays":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"months":["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],"shortMonths":["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."]}'),Wr=JSON.parse('{"decimal":",","thousands":".","grouping":[3],"currency":[""," €"]}'),Xr=JSON.parse('{"decimal":".","thousands":",","grouping":[3],"currency":["$",""]}'),Jr=JSON.parse('{"decimal":",","thousands":" ","grouping":[3],"currency":[""," €"],"percent":" %"}'),Gr="en"===document.documentElement.lang?"en":"fr"===document.documentElement.lang?"fr":"de";function Zr(){return Gr}var Kr=function(){return Kr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Kr.apply(this,arguments)};function Qr(t,e,n){return void 0===n&&(n=""),"de"===Zr()?e:"fr"===Zr()?n:t}function ti(t){var e=t.format(".%L"),n=t.format(":%S"),r=t.format("%I:%M"),i=t.format("%I %p"),o=t.format("%a %d"),a=t.format("%b %d"),u=t.format("%B"),s=t.format("%Y");return function(t){return(Ar(t)<t?e:Tr(t)<t?n:Pr(t)<t?r:Ke(t)<t?i:Er(t)<t?Fe(t)<t?o:a:en(t)<t?u:s)(t)}}function ei(t,e){var n=un(t),r=Vr(e),i=r.format(",.2f"),o=r.format(",.0f"),a=n.format(t.date);return{timeFormatLocaleDefinition:t,numberFormatLocaleDefinition:e,createNumberFormatter:function(t,e){var n=t.accuracy,i=r.format(e);return function(e){return t.prefix+i(e/n)+t.postfix}},decimalFormatter:function(t){return i(function(t){return Math.round(100*t)/100}(t))},numberFormatter:function(t){return o(Math.round(t))},dateFormatter:function(t){return t?("string"==typeof t&&(t=new Date(t)),a(t)):""},timeScaleFormatter:ti(n)}}var ni=ei(Br,Kr(Kr({},Wr),{currency:["€",""]})),ri=ei(Kr(Kr({},zr),{date:"%Y-%m-%d"}),Kr(Kr({},Xr),{currency:["€",""]})),ii=ei(Yr,Kr(Kr({},Jr),{currency:["€",""]})),oi=function(){function t(t,e){this.items=[];var n="string"==typeof t?document.getElementById(t):t;if(!n)throw new Error("container node undefined or null");this.container=n,this.options=ai(e,this.container);var r=this.stringValue("type")||this.stringValue("layout");if(!r)throw new Error("no widget type specified");this.widgetType=r,this.options.type=r,"graph"!=r&&"contact"!=r||(this.options.immediate=!0);var i=this.load.bind(this);this.data=this.objectValue("data"),this.data?window.setTimeout(i):Ae.requestData(this.options,i,this.fail.bind(this))}return t.prototype.getType=function(){return this.widgetType},t.prototype.fail=function(t){var e=this.handlerValue("error");e?e(t):es.log("error",t)},t.prototype.load=function(t){this.data=this.data||t;try{var e=(n=this.widgetType,w[n]);if(!e)throw new Error("invalid widget type: "+this.widgetType);this.chart=e(this,this.data),this.container.setAttribute("data-layout",this.widgetType),this.draw()}catch(t){return void this.fail(t)}var n,r=this.handlerValue("success");r&&r()},t.prototype.showItem=function(t,e){var n=this,r=this.handlerValue("handleItem")||function(t,e){if(!!n.stringValue("subject"))return e;var r=document.createElement("div"),i=document.createElement("h2");return i.textContent=t,r.appendChild(i),r.appendChild(e),r},i=r(t,e);i&&(this.container.appendChild(i),this.items.push(i))},t.prototype.adjustSize=function(t){var e=t.getBoundingClientRect(),n=this.numberValue("width")||e.width,r=this.numberValue("height")||e.height,i=this.numberValue("ratio"),o=this.numberValue("minHeight"),a=this.numberValue("maxHeight"),u=r;i&&(u=n*i),o&&(u=Math.max(u,o)),a&&(u=Math.min(u,a)),r!=u&&me(t,u)},t.prototype.draw=function(){this.adjustSize(this.container),this.chart&&(this.chart.draw(),ve(this.container).selectAll("*").each((function(){var t=this.getAttribute("transform");t||(t=getComputedStyle(this).getPropertyValue("transform"))&&"none"!=t&&this.setAttribute("transform",t)})))},t.prototype.markup=function(t){var e=this.handlerValue("companyClick");e&&t.selectAll(".company").attr("data-clickable",!0);var n=this.handlerValue("personClick");n&&t.selectAll(".person").attr("data-clickable",!0);var r=this.handlerValue("addressClick");r&&t.selectAll("address").attr("data-clickable",!0);var i=this.handlerValue("registerClick");i&&t.selectAll(".register").attr("data-clickable",!0);var o=this.handlerValue("filingClick");o&&t.selectAll(".filing").attr("data-clickable",!0),t.on("click",(function(t){var a,u=t.target,s=ai({},u);e&&u.classList.contains("company")&&(e(s),a=!0),n&&u.classList.contains("person")&&(n(s),a=!0),r&&"ADDRESS"==u.tagName&&(r({query:u.textContent}),a=!0),i&&u.classList.contains("register")&&(i({query:u.textContent}),a=!0),o&&u.classList.contains("filing")&&(o({query:u.textContent}),a=!0),a&&t.preventDefault()}))},t.prototype.invokeClickHandler=function(t,e){var n=this.getClickHandler(e);return!!n&&(n(t),!0)},t.prototype.getClickHandler=function(t){if(t)switch(t.toString().toLowerCase()[0]){case"c":return this.handlerValue("companyClick");case"p":return this.handlerValue("personClick");case"h":return this.handlerValue("publicationClick")}},t.prototype.getLinkifier=function(){return this.handlerValue("linkify")||ui},t.prototype.getRootColor=function(){return Z(this.stringValue("rootColor")||"#00dddd")},t.prototype.isReverseChronology=function(){return"reverse"===this.stringValue("chronology")},t.prototype.getLanguage=function(){return this.stringValue("language")||"de"},t.prototype.i18n=function(){return"de"==this.getLanguage()?ni:"fr"==this.getLanguage()?ii:ri},t.prototype.trilingual=function(t,e,n){return"de"==this.getLanguage()?e:"fr"==this.getLanguage()?n:t},t.prototype.isPrint=function(){return document.documentElement.classList&&document.documentElement.classList.contains("print")},t.prototype.numberValue=function(t){var e=this.options[t];return"function"==typeof e?e():"number"==typeof e?e:"string"==typeof e?Number(e):void 0},t.prototype.stringValue=function(t){var e=this.options[t];return"function"==typeof e?e():"string"==typeof e?e:void 0},t.prototype.nodeValue=function(t){var e=this.options[t];return"object"==typeof e?e:"function"==typeof e?e():"string"==typeof e?ve(this.container).select(e).node():void 0},t.prototype.objectValue=function(t){var e=this.options[t];if("function"==typeof e)return e();if("object"==typeof e){if(null===e)return;return e}return"string"==typeof e?JSON.parse(e):void 0},t.prototype.handlerValue=function(t){var e=this.options[t];if("function"==typeof e)return e.bind(this)},t}();function ai(t,e){var n={};Object.assign(n,t);for(var r=0;r<e.attributes.length;++r){var i=e.attributes[r],o=i.name;if(0===o.indexOf("data-")){var a=o.substring(5).replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}));n[a]=n[a]||i.value}}return n}var ui=function(){return null};function si(t,e){let n,r;if(void 0===e)for(const e of t)null!=e&&(void 0===n?e>=e&&(n=r=e):(n>e&&(n=e),r<e&&(r=e)));else{let i=-1;for(let o of t)null!=(o=e(o,++i,t))&&(void 0===n?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)))}return[n,r]}function li(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}class ci extends Map{constructor(t,e=pi){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(fi(this,t))}has(t){return super.has(fi(this,t))}set(t,e){return super.set(hi(this,t),e)}delete(t){return super.delete(di(this,t))}}Set;function fi({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function hi({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function di({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function pi(t){return null!==t&&"object"==typeof t?t.valueOf():t}const vi=Symbol("implicit");function gi(){var t=new ci,e=[],n=[],r=vi;function i(i){let o=t.get(i);if(void 0===o){if(r!==vi)return r;t.set(i,o=e.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new ci;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return i},i.range=function(t){return arguments.length?(n=Array.from(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return gi(e,n).unknown(r)},li.apply(i,arguments),i}function yi(){var t,e,n=gi().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,u=!1,s=0,l=0,c=.5;function f(){var n=r().length,f=a<o,h=f?a:o,d=f?o:a;t=(d-h)/Math.max(1,n-s+2*l),u&&(t=Math.floor(t)),h+=(d-h-t*(n-s))*c,e=t*(1-s),u&&(h=Math.round(h),e=Math.round(e));var p=function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r<i;)o[r]=t+r*n;return o}(n).map((function(e){return h+t*e}));return i(f?p.reverse():p)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),f()):r()},n.range=function(t){return arguments.length?([o,a]=t,o=+o,a=+a,f()):[o,a]},n.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,u=!0,f()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(u=!!t,f()):u},n.padding=function(t){return arguments.length?(s=Math.min(1,l=+t),f()):s},n.paddingInner=function(t){return arguments.length?(s=Math.min(1,t),f()):s},n.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},n.align=function(t){return arguments.length?(c=Math.max(0,Math.min(1,t)),f()):c},n.copy=function(){return yi(r(),[o,a]).round(u).paddingInner(s).paddingOuter(l).align(c)},li.apply(f(),arguments)}const mi=Math.sqrt(50),bi=Math.sqrt(10),wi=Math.sqrt(2);function xi(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=mi?10:o>=bi?5:o>=wi?2:1;let u,s,l;return i<0?(l=Math.pow(10,-i)/a,u=Math.round(t*l),s=Math.round(e*l),u/l<t&&++u,s/l>e&&--s,l=-l):(l=Math.pow(10,i)*a,u=Math.round(t/l),s=Math.round(e/l),u*l<t&&++u,s*l>e&&--s),s<u&&.5<=n&&n<2?xi(t,e,2*n):[u,s,l]}function _i(t,e,n){return xi(t=+t,e=+e,n=+n)[2]}function ki(t,e,n){n=+n;const r=(e=+e)<(t=+t),i=r?_i(e,t,n):_i(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}function Mi(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ai(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Ti(t){let e,n,r;function i(t,r,i=0,o=t.length){if(i<o){if(0!==e(r,r))return o;do{const e=i+o>>>1;n(t[e],r)<0?i=e+1:o=e}while(i<o)}return i}return 2!==t.length?(e=Mi,n=(e,n)=>Mi(t(e),n),r=(e,n)=>t(e)-n):(e=t===Mi||t===Ai?t:Si,n=t,r=t),{left:i,center:function(t,e,n=0,o=t.length){const a=i(t,e,n,o-1);return a>n&&r(t[a-1],e)>-r(t[a],e)?a-1:a},right:function(t,r,i=0,o=t.length){if(i<o){if(0!==e(r,r))return o;do{const e=i+o>>>1;n(t[e],r)<=0?i=e+1:o=e}while(i<o)}return i}}}function Si(){return 0}const Pi=Ti(Mi),Ci=Pi.right;Pi.left,Ti((function(t){return null===t?NaN:+t})).center;var Ei=Ci;function Di(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}var Oi=t=>()=>t;function Ni(t,e){return function(n){return t+n*e}}function ji(t){return 1==(t=+t)?Li:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Oi(isNaN(e)?n:e)}}function Li(t,e){var n=e-t;return n?Ni(t,n):Oi(isNaN(t)?e:t)}var Ri=function t(e){var n=ji(e);function r(t,e){var r=n((t=q(t)).r,(e=q(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=Li(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function Fi(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),u=new Array(i);for(n=0;n<i;++n)r=q(e[n]),o[n]=r.r||0,a[n]=r.g||0,u[n]=r.b||0;return o=t(o),a=t(a),u=t(u),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=u(t),r+""}}}Fi((function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=r<e-1?t[r+2]:2*o-i;return Di((n-r/e)*e,a,i,o,u)}})),Fi((function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],u=t[(r+2)%e];return Di((n-r/e)*e,i,o,a,u)}}));function $i(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Yi(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}function Ui(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Hi(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Ii(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=Yi(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}var qi=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Vi=new RegExp(qi.source,"g");function Bi(t,e){var n,r,i,o=qi.lastIndex=Vi.lastIndex=0,a=-1,u=[],s=[];for(t+="",e+="";(n=qi.exec(t))&&(r=Vi.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(n=n[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,s.push({i:a,x:Hi(n,r)})),o=Vi.lastIndex;return o<e.length&&(i=e.slice(o),u[a]?u[a]+=i:u[++a]=i),u.length<2?s[0]?function(t){return function(e){return t(e)+""}}(s[0].x):function(t){return function(){return t}}(e):(e=s.length,function(t){for(var n,r=0;r<e;++r)u[(n=s[r]).i]=n.x(t);return u.join("")})}function zi(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}function Yi(t,e){var n,r,i=typeof e;return null==e||"boolean"===i?Oi(e):("number"===i?Hi:"string"===i?(n=U(e))?(e=n,Ri):Bi:e instanceof U?Ri:e instanceof Date?Ui:(r=e,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(e)?$i:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Ii:Hi:zi))(t,e)}function Wi(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Xi(t){return+t}var Ji,Gi,Zi,Ki=[0,1];function Qi(t){return t}function to(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function eo(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=to(i,r),o=n(a,o)):(r=to(r,i),o=n(o,a)),function(t){return o(r(t))}}function no(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)i[a]=to(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=Ei(t,e,1,r)-1;return o[n](i[n](e))}}function ro(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function io(){var t,e,n,r,i,o,a=Ki,u=Ki,s=Yi,l=Qi;function c(){var t,e,n,s=Math.min(a.length,u.length);return l!==Qi&&(t=a[0],e=a[s-1],t>e&&(n=t,t=e,e=n),l=function(n){return Math.max(t,Math.min(e,n))}),r=s>2?no:eo,i=o=null,f}function f(e){return null==e||isNaN(e=+e)?n:(i||(i=r(a.map(t),u,s)))(t(l(e)))}return f.invert=function(n){return l(e((o||(o=r(u,a.map(t),Hi)))(n)))},f.domain=function(t){return arguments.length?(a=Array.from(t,Xi),c()):a.slice()},f.range=function(t){return arguments.length?(u=Array.from(t),c()):u.slice()},f.rangeRound=function(t){return u=Array.from(t),s=Wi,c()},f.clamp=function(t){return arguments.length?(l=!!t||Qi,c()):l!==Qi},f.interpolate=function(t){return arguments.length?(s=t,c()):s},f.unknown=function(t){return arguments.length?(n=t,f):n},function(n,r){return t=n,e=r,c()}}function oo(){return io()(Qi,Qi)}function ao(t,e,n,r){var i,o=ki(t,e,n);switch((r=Rr(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Nr(e)/3)))-Nr(Math.abs(t)))}(o,a))||(r.precision=i),Zi(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Nr(e)-Nr(t))+1}(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-Nr(Math.abs(t)))}(o))||(r.precision=i-2*("%"===r.type))}return Gi(r)}function uo(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){if(!((n=+n)>0))return[];if((t=+t)==(e=+e))return[t];const r=e<t,[i,o,a]=r?xi(e,t,n):xi(t,e,n);if(!(o>=i))return[];const u=o-i+1,s=new Array(u);if(r)if(a<0)for(let t=0;t<u;++t)s[t]=(o-t)/-a;else for(let t=0;t<u;++t)s[t]=(o-t)*a;else if(a<0)for(let t=0;t<u;++t)s[t]=(i+t)/-a;else for(let t=0;t<u;++t)s[t]=(i+t)*a;return s}(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return ao(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,o=e(),a=0,u=o.length-1,s=o[a],l=o[u],c=10;for(l<s&&(i=s,s=l,l=i,i=a,a=u,u=i);c-- >0;){if((i=_i(s,l,n))===r)return o[a]=s,o[u]=l,e(o);if(i>0)s=Math.floor(s/i)*i,l=Math.ceil(l/i)*i;else{if(!(i<0))break;s=Math.ceil(s*i)/i,l=Math.floor(l*i)/i}r=i}return t},t}function so(){var t=oo();return t.copy=function(){return ro(t,so())},li.apply(t,arguments),uo(t)}function lo(t){return t}Ji=Vr({thousands:",",grouping:[3],currency:["$",""]}),Gi=Ji.format,Zi=Ji.formatPrefix;var co=1e-6;function fo(t){return"translate("+t+",0)"}function ho(t){return"translate(0,"+t+")"}function po(t){return e=>+t(e)}function vo(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function go(){return!this.__axis}function yo(t,e){var n=[],r=null,i=null,o=6,a=6,u=3,s="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,l=1===t||4===t?-1:1,c=4===t||2===t?"x":"y",f=1===t||3===t?fo:ho;function h(h){var d=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,p=null==i?e.tickFormat?e.tickFormat.apply(e,n):lo:i,v=Math.max(o,0)+u,g=e.range(),y=+g[0]+s,m=+g[g.length-1]+s,b=(e.bandwidth?vo:po)(e.copy(),s),w=h.selection?h.selection():h,x=w.selectAll(".domain").data([null]),_=w.selectAll(".tick").data(d,e).order(),k=_.exit(),M=_.enter().append("g").attr("class","tick"),A=_.select("line"),T=_.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),_=_.merge(M),A=A.merge(M.append("line").attr("stroke","currentColor").attr(c+"2",l*o)),T=T.merge(M.append("text").attr("fill","currentColor").attr(c,l*v).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),h!==w&&(x=x.transition(h),_=_.transition(h),A=A.transition(h),T=T.transition(h),k=k.transition(h).attr("opacity",co).attr("transform",(function(t){return isFinite(t=b(t))?f(t+s):this.getAttribute("transform")})),M.attr("opacity",co).attr("transform",(function(t){var e=this.parentNode.__axis;return f((e&&isFinite(e=e(t))?e:b(t))+s)}))),k.remove(),x.attr("d",4===t||2===t?a?"M"+l*a+","+y+"H"+s+"V"+m+"H"+l*a:"M"+s+","+y+"V"+m:a?"M"+y+","+l*a+"V"+s+"H"+m+"V"+l*a:"M"+y+","+s+"H"+m),_.attr("opacity",1).attr("transform",(function(t){return f(b(t)+s)})),A.attr(c+"2",l*o),T.attr(c,l*v).text(p),w.filter(go).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),w.each((function(){this.__axis=b}))}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(o=a=+t,h):o},h.tickSizeInner=function(t){return arguments.length?(o=+t,h):o},h.tickSizeOuter=function(t){return arguments.length?(a=+t,h):a},h.tickPadding=function(t){return arguments.length?(u=+t,h):u},h.offset=function(t){return arguments.length?(s=+t,h):s},h}function mo(t){return yo(3,t)}function bo(t){return yo(4,t)}var wo=function(t,e){var n=[],r=e.note;if(!(e.item&&0!=e.item.length||r))throw new Error("no data");var i=15,o=10,a=50,u=15,s=function(){var t=ve("body").append("div").attr("class","tooltip ui basic black label").style("position","fixed").style("top",0).style("left",0).style("pointer-events","none").style("visibility","hidden");return{position:function(e,n){var r=document.documentElement.clientWidth,i=t.node().offsetWidth,o=e+i+16<r,a=o?e+16:e-i-16,u=n-t.node().offsetHeight/2;return t.style("transform","translate(".concat(a,"px, ").concat(u,"px)")).classed("left right pointing",!1).classed(o?"left":"right",!0).classed("pointing",!0),this},visible:function(e){return t.interrupt().transition().delay(e?0:100).duration(0).style("visibility",(function(){return e?null:"hidden"})),this},content:function(e){return t.html(e),this}}}();for(var l=function(e){var r=e.data;if(!r)return"continue";var l=t.options.colors,c="string"==typeof l?l.split("|"):l;c=null!=c?c:r.colors;for(var f=r.title.substring(0,3),h=[],d=r.colorIndexes,p=0;p<d.length;++p){var v=d[p],g=r.estimate[p]?"url(#diag"+f+v+")":c[v];h.push(g)}var y=ve(ee("svg:defs").call(document.documentElement));y.selectAll("pattern").data(c).join("svg:pattern").attr("id",(function(t,e){return"diag".concat(f).concat(e)})).attr("width",10).attr("height",10).attr("patternTransform","rotate(45 0 0)").attr("patternUnits","userSpaceOnUse").attr("transform","matrix(0.707107, 0.707107, -0.707107, 0.707107, 0, 0)").append("svg:line").attr("x1",0).attr("y1",0).attr("x2",0).attr("y2",10).style("stroke",(function(t){return t})).style("stroke-width",15);var m=si(r.data,(function(t){return t.value0})),b=m[0],w=m[1];w=Math.max(w,1),b=Math.min(b,0);var x=Math.min(5,Math.ceil(w)),_=document.createElement("div");_.setAttribute("data-item",e.item),t.showItem(e.title,_);var k=ve(_).style("height","100%").append("svg").attr("width","100%").attr("height","100%");k.attr("aria-label",e.title),k.append((function(){return y.node()}));var M=yi().domain(r.data.map((function(t){return t.year}))).padding(.2),A=mo(M),T=k.append("g").classed("x-axis",!0),S=so().domain([b,w]),P=bo(S).tickSizeInner(0).tickSizeOuter(0).ticks(x).tickFormat(t.i18n().createNumberFormatter(r.numberFormat,",.0f")),C=k.append("g").classed("y-axis",!0),E=k.append("g"),D=k.append("g");n.push((function(){var n=_.getBoundingClientRect(),l=n.width,c=n.height;k.attr("viewBox","0 0 ".concat(l," ").concat(c)),S.range([c-a,i]),C.call(P).attr("font-size",null).attr("font-family",null).call((function(t){return t.selectAll(".tick").classed("zero",(function(t){return 0===t}))}));var f=45;C.selectAll(".tick > text").each((function(){f=Math.max(f,this.getBBox().width)}));var d=u+f;C.attr("transform","translate(".concat(d,",0)")).selectAll(".tick > line").attr("x2",l-d-o),M.range([d,l-o]),A.tickSizeInner(-(c-i-a)),T.attr("transform","translate(0,".concat(c-a,")")).call(A).call((function(t){return t.select(".domain").remove()})).attr("font-size",null).attr("font-family",null);var p=function(t){return Math.abs(S(0)-S(t))};D.selectAll("rect").data(r.data).join("rect").attr("x",(function(t){return M(t.year)})).attr("y",(function(t){return S(Math.max(t.value0,0))})).attr("height",(function(t){return Math.max(p(t.value0),1)})).attr("width",M.bandwidth()).attr("fill",(function(t,e){return h[e]}));E.selectAll("rect").data(r.data.filter((function(t){return p(t.value0)<45}))).join("rect").attr("x",(function(t){return M(t.year)})).attr("y",(function(t){var e=t.value0>0?45:0;return S(0)-e})).attr("height",45).attr("width",M.bandwidth()).attr("fill","transparent"),k.selectAll("g > rect").on("mousemove",(function(t){s.position(t.clientX,t.clientY)})).on("mouseover",(function(n,r){var i,o,a,u;s.content((i=r,o=e.title,a=i.note?"<span class='note'>"+i.note+"</span>":"",u=i.source&&i.source.publicationTitle?"<span class='source'>"+t.trilingual("Source: ","Quelle: ","Source: ")+i.source.publicationTitle+"</span>":"","<span class='name'>"+o+" "+i.year+"</span><span class='value'>"+i.formattedValue+"</span>"+a+u)).visible(!0)})).on("mouseout",(function(){s.visible(!1)}))}))},c=0,f=e.item;c<f.length;c++){l(f[c])}if(r){var h=document.createElement("div"),d=ve(h).classed("note",!0).html(r);t.markup(d),t.container.appendChild(h)}return{draw:function(){for(var t=0,e=n;t<e.length;t++){(0,e[t])()}}}},xo=function(t,e){if(e){var n=t.handlerValue("load");n&&n(e)}return b};function _o(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function ko(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function Mo(t,e){return t.parent===e.parent?1:2}function Ao(t,e){return t+e.x}function To(t,e){return Math.max(t,e.y)}function So(){var t=Mo,e=1,n=1,r=!1;function i(i){var o,a=0;i.eachAfter((function(e){var n=e.children;n?(e.x=function(t){return t.reduce(Ao,0)/t.length}(n),e.y=function(t){return 1+t.reduce(To,0)}(n)):(e.x=o?a+=t(e,o):0,e.y=0,o=e)}));var u=function(t){for(var e;e=t.children;)t=e[0];return t}(i),s=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(i),l=u.x-t(u,s)/2,c=s.x+t(s,u)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*e,t.y=(i.y-t.y)*n}:function(t){t.x=(t.x-l)/(c-l)*e,t.y=(1-(i.y?t.y/i.y:1))*n})}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function Po(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function Co(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=Do)):void 0===e&&(e=Eo);for(var n,r,i,o,a,u=new jo(t),s=[u];n=s.pop();)if((i=e(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)s.push(r=i[o]=new jo(i[o])),r.parent=n,r.depth=n.depth+1;return u.eachBefore(No)}function Eo(t){return t.children}function Do(t){return Array.isArray(t)?t[1]:null}function Oo(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function No(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function jo(t){this.data=t,this.depth=this.height=0,this.parent=null}jo.prototype=Co.prototype={constructor:jo,count:function(){return this.eachAfter(Po)},each:function(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this},eachAfter:function(t,e){for(var n,r,i,o=this,a=[o],u=[],s=-1;o=a.pop();)if(u.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=u.pop();)t.call(e,o,++s,this);return this},eachBefore:function(t,e){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(t.call(e,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;t=n.pop(),e=r.pop();for(;t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return Co(this).eachBefore(Oo)},[Symbol.iterator]:function*(){var t,e,n,r,i=this,o=[i];do{for(t=o.reverse(),o=[];i=t.pop();)if(yield i,e=i.children)for(n=0,r=e.length;n<r;++n)o.push(e[n])}while(o.length)}};var Lo=Array.prototype.slice;function Ro(t){return function(){return t}}class Fo{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function $o(t){return new Fo(t,!0)}const Uo=Math.PI,Ho=2*Uo,Io=1e-6,qo=Ho-Io;function Vo(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}class Bo{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?Vo:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Vo;const n=10**e;return function(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=Math.round(arguments[e]*n)/n+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,n,r){this._append`Q${+t},${+e},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(t,e,n,r,i,o){this._append`C${+t},${+e},${+n},${+r},${this._x1=+i},${this._y1=+o}`}arcTo(t,e,n,r,i){if(t=+t,e=+e,n=+n,r=+r,(i=+i)<0)throw new Error(`negative radius: ${i}`);let o=this._x1,a=this._y1,u=n-t,s=r-e,l=o-t,c=a-e,f=l*l+c*c;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(f>Io)if(Math.abs(c*u-s*l)>Io&&i){let h=n-o,d=r-a,p=u*u+s*s,v=h*h+d*d,g=Math.sqrt(p),y=Math.sqrt(f),m=i*Math.tan((Uo-Math.acos((p+f-v)/(2*g*y)))/2),b=m/y,w=m/g;Math.abs(b-1)>Io&&this._append`L${t+b*l},${e+b*c}`,this._append`A${i},${i},0,0,${+(c*h>l*d)},${this._x1=t+w*u},${this._y1=e+w*s}`}else this._append`L${this._x1=t},${this._y1=e}`;else;}arc(t,e,n,r,i,o){if(t=+t,e=+e,o=!!o,(n=+n)<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(r),u=n*Math.sin(r),s=t+a,l=e+u,c=1^o,f=o?r-i:i-r;null===this._x1?this._append`M${s},${l}`:(Math.abs(this._x1-s)>Io||Math.abs(this._y1-l)>Io)&&this._append`L${s},${l}`,n&&(f<0&&(f=f%Ho+Ho),f>qo?this._append`A${n},${n},0,1,${c},${t-a},${e-u}A${n},${n},0,1,${c},${this._x1=s},${this._y1=l}`:f>Io&&this._append`A${n},${n},0,${+(f>=Uo)},${c},${this._x1=t+n*Math.cos(i)},${this._y1=e+n*Math.sin(i)}`)}rect(t,e,n,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function zo(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{const t=Math.floor(n);if(!(t>=0))throw new RangeError(`invalid digits: ${n}`);e=t}return t},()=>new Bo(e)}function Yo(t){return t[0]}function Wo(t){return t[1]}function Xo(t){return t.source}function Jo(t){return t.target}function Go(t){let e=Xo,n=Jo,r=Yo,i=Wo,o=null,a=null,u=zo(s);function s(){let s;const l=Lo.call(arguments),c=e.apply(this,l),f=n.apply(this,l);if(null==o&&(a=t(s=u())),a.lineStart(),l[0]=c,a.point(+r.apply(this,l),+i.apply(this,l)),l[0]=f,a.point(+r.apply(this,l),+i.apply(this,l)),a.lineEnd(),s)return a=null,s+""||null}return s.source=function(t){return arguments.length?(e=t,s):e},s.target=function(t){return arguments.length?(n=t,s):n},s.x=function(t){return arguments.length?(r="function"==typeof t?t:Ro(+t),s):r},s.y=function(t){return arguments.length?(i="function"==typeof t?t:Ro(+t),s):i},s.context=function(e){return arguments.length?(null==e?o=a=null:a=t(o=e),s):o},s}function Zo(t){this._context=t}function Ko(t){return new Zo(t)}function Qo(t,e){var n=Ro(!0),r=null,i=Ko,o=null,a=zo(u);function u(u){var s,l,c,f=(u=function(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}(u)).length,h=!1;for(null==r&&(o=i(c=a())),s=0;s<=f;++s)!(s<f&&n(l=u[s],s,u))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(l,s,u),+e(l,s,u));if(c)return o=null,c+""||null}return t="function"==typeof t?t:void 0===t?Yo:Ro(t),e="function"==typeof e?e:void 0===e?Wo:Ro(e),u.x=function(e){return arguments.length?(t="function"==typeof e?e:Ro(+e),u):t},u.y=function(t){return arguments.length?(e="function"==typeof t?t:Ro(+t),u):e},u.defined=function(t){return arguments.length?(n="function"==typeof t?t:Ro(!!t),u):n},u.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),u):i},u.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),u):r},u}Zo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var ta=20;function ea(t){var e=[{x:0,y:0},{x:1,y:.5},{x:1,y:-.5},{x:0,y:0}],n=Qo().x((function(e){return t*e.x})).y((function(e){return t*e.y})).curve(Ko);return n(e)}function na(t,e,n,r,i,o,a){void 0===a&&(a=0),t.each((function(){var t=ve(this),u=t.select(e).node(),s=t.select(n).node();if(u&&s&&u.textContent){var l=u.getBBox(),c=Number(t.attr("data-dx"));if(0!=c){var f=l.x,h=-c+r,d=o-r-l.width-c;f<h?(l.x=h,ve(u).attr("x",h-f)):f>d&&(l.x=d,ve(u).attr("x",d-f))}ve(s).attr("width",l.width+2*r).attr("height",l.height+2*i).attr("x",l.x-r).attr("y",l.y-i).attr("rx",a).attr("ry",a)}}))}function ra(t){t.reverse();for(var e=[],n=0,r=t;n<r.length;n++){var i=r[n];e.indexOf(i)<0&&e.push(i)}e.reverse();var o,a=e.length;if(a>0&&!((o=window.navigator.userAgent).indexOf("MSIE ")>=0||o.indexOf("Edge ")>=0||o.indexOf("Trident")>=0)){for(var u=e[0].parentNode,s=null==u?[]:u.childNodes,l=!0,c=0;c<a;++c)if(s[s.length-a+c]!=e[c]){l=!1;break}if(!l)for(var f=0,h=e;f<h.length;f++){var d=(i=h[f]).parentNode;null==d||d.appendChild(i)}}}function ia(t,e,n,r,i){var o,a=t.container.getBoundingClientRect().width;function u(t){return e.select(".node[data-id='"+t+"']")}function s(){var t=[];e.select(".node").each((function(){t.push(this)})),t.push(e.select("[data-root]").node()),ra(t)}var l=e.select("g.nodes");l.empty()&&(l=e.append("g").attr("class","nodes")),l.style("pointer-events","all");var c=l.selectAll(".node").data(n),f=function(t){return t.clickable||!t.root},h=c.enter().append("svg:a").attr("class","node").attr("data-leaf",(function(t){return!t.children||0==t.children.length})).attr("data-id",(function(t){return t.id})).attr("data-root",(function(t){return t.root})).attr("data-old",(function(t){var e;return null!==(e=t.old)&&void 0!==e?e:null})).attr("data-warning",(function(t){var e;return null!==(e=t.warning)&&void 0!==e?e:null})).attr("data-d",(function(t){var e;return null!==(e=t.distance)&&void 0!==e?e:null})).attr("xlink:href",(function(t){return t.url||""})).attr("data-clickable",(function(e){return!(!f(e)||!t.getClickHandler(e.type))||null})).on("click",(function(e,n){f(n)&&t.invokeClickHandler(n.query,n.type)&&e.preventDefault()}));return we("mouseover",l.node(),h,(function(t){var n=t.id,s=n==r?"root":"node",l=u(n).attr("data-highlight",s);l.select(".text").text(t.desc),na(l,".text",".text-bg",i?2:5,2,a);var c=e.selectAll("[data-source-id='"+n+"'],[data-target-id='"+n+"']").attr("data-highlight",s);na(c,".desc",".desc-bg",3,2,a),window.clearTimeout(o);var f=[];c.each((function(t){function e(t){t!=n&&f.push(u(t).node())}f.push(this),e(t.source.id),e(t.target.id)})),f.push(l.node()),ra(f)})),we("mouseout",l.node(),h,(function(t){e.selectAll("[data-highlight]").attr("data-highlight","false"),e.select(".node[data-id='"+t.id+"']").select(".text").text(t.text).attr("x",0),o=window.setTimeout(s,1e3)})),h.append("circle").attr("r",ta),h.append("text").attr("class","icon").text((function(t){return t.icon})),h.append("rect").attr("class","text-bg"),h.append("text").attr("class","text").text((function(t){return t.text})),h.filter("[data-warning]").append("circle").attr("r",7).attr("data-warn",!0).attr("transform","translate(20, -20)"),h.filter("[data-warning]").append("text").attr("r",8).attr("class","icon").text("").attr("data-warn",!0).append("title").text((function(t){var e;return null!==(e=t.warning)&&void 0!==e?e:""})),s(),h}function oa(t,e,n){var r,i=t.container.getBoundingClientRect().width;function o(t){var o=t.getAttribute("data-id"),a="true"==t.getAttribute("data-root")?"root":"node";t.setAttribute("data-highlight",a);var u=t.querySelector(".text");u&&(u.textContent=t.getAttribute("data-description")),na(ve(t),".text",".text-bg",n?2:5,2,i);var s=e.selectAll(".link[data-source-id='"+o+"'],.link[data-target-id='"+o+"']").attr("data-highlight",a);na(s,".desc",".desc-bg",3,2,i),window.clearTimeout(r);var l=[];s.each((function(t){var n=this;function r(t){t!=o&&l.push(function(t){return e.select(".node[data-id='"+t+"']")}(t).node())}l.push(n),r(n.getAttribute("data-source-id")||""),r(n.getAttribute("data-target-id")||"")})),l.push(t),ra(l)}function a(){var t=[];e.select(".node").each((function(){t.push(this)})),t.push(e.select("[data-root]").node()),ra(t)}var u=e.select("g.nodes");u.selectAll(".node").each((function(){var e=this,n="true"==e.getAttribute("data-root"),r=t.getLinkifier();if(!n){var i=e.getAttribute("data-type")||"",o=e.getAttribute("data-query")||"";es.debug(e.getAttribute("data-url")+" -> "+r(e)),ve(e).attr("xlink:href",r(e)).attr("data-clickable",t.getClickHandler(i)?"true":"false").on("click",(function(e){t.invokeClickHandler(o,i)&&e.preventDefault()}))}}));u.selectAll(".node").on("mouseover",(function(){o(this)})).on("mouseout",(function(){!function(t){e.selectAll("[data-highlight]").attr("data-highlight","false");var n=t.getAttribute("data-id");e.select(".node[data-id='"+n+"']").select(".text").text(t.getAttribute("data-text")||"").attr("x",0),r=window.setTimeout(a,1e3)}(this)})),a(),es.debug("successfully completed v12")}var aa=function(){return aa=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},aa.apply(this,arguments)},ua=function(t,e){var n=t.container;ve(n).selectAll(".shake").style("display","none");var r=e.size>=10,i=e.scope,o=ve(n).append("svg").attr("data-dense",r).attr("aria-label",e.desc);return{draw:function(){for(var a,u=n.getBoundingClientRect().width,s={left:-u/6,right:u/6,top:-20,bottom:38},l={left:-8,right:u/3-8,top:-8,bottom:8},c=r?l:s,f=s,h=r?[l.bottom-l.top,l.right-l.left]:[s.bottom-s.top,s.right-s.left],d=r?7:12,p=So().nodeSize(h).separation((function(t,e){var n=t.parent==e.parent;if(r){if(n)return 1;var i=1*(t.parent.children.length+e.parent.children.length)/2+1.5;return i<5?1.5+(5-i):1.5}return n?1:1.4}))(Co(e)),v=function(t){return aa(aa({},t.data),{x:t.x,y:t.y,depth:t.depth})},g=p.descendants().map(v),y=p.links().map((function(t){return{target:v(t.target),source:v(t.source)}})),m=0,b=0,w=g;b<w.length;b++){var x=w[b];x.root&&(a=x,"publication"===i&&(x.clickable=!0)),m=Math.max(m,x.depth)}o.select("g").remove();var _=o.append("g"),k=_.append("g").selectAll(".link").data(y),M=function(t){return t.target.edge},A=k.enter().append("g").attr("class","link").attr("data-source-id",(function(t){return t.source.id})).attr("data-target-id",(function(t){return t.target.id})).attr("data-old",(function(t){var e,n;return null!==(n=null===(e=M(t))||void 0===e?void 0:e.old)&&void 0!==n?n:null})).attr("data-warn",(function(t){var e,n;return null!==(n=null===(e=M(t))||void 0===e?void 0:e.warn)&&void 0!==n?n:null})).attr("data-head",(function(t){var e,n;return null!==(n=null===(e=M(t))||void 0===e?void 0:e.head)&&void 0!==n?n:null})).attr("data-tail",(function(t){var e,n;return null!==(n=null===(e=M(t))||void 0===e?void 0:e.tail)&&void 0!==n?n:null}));A.append("path").attr("class","line"),A.append("path").attr("class","head").attr("d",ea(d)),A.append("path").attr("class","tail").attr("d",ea(d));var T=ia(t,_,g,a?a.id:void 0,r),S=function(t,e){return"translate("+t+","+e+")"},P=function(t){var e=function(t){return!t.children||0===t.children.length},n=function(t){return e(t)?c:f},i=function(t){return t.y+n(t).left},o=_o(g,i),a=ko(g,(function(t){return t.y+n(t).right})),u=[o,a],s=_o(g,(function(t){return t.x+n(t).top})),l=ko(g,(function(t){return t.x+n(t).bottom})),h=si(g,(function(t){return t.x})),d=h[1]-h[0],p=so().domain(u).range([0,t]),v=so().domain(h).range([0,d]),y=function(t){return p(r&&e(t)?i(t):t.y)},m=function(t){return v(t.x)},b=function(t){return S(y(t),m(t))},w=Go($o).x((function(t){return y(t)})).y((function(t){return m(t)})),x=Math.max(10,(150-(l-s))/2),_=l-h[1]+x,k=h[0]-s+x;return{height:d+_+k,diagonal:w,nodeTransform:b,headTransform:function(t){return b(t.target)+" "+S(r&&e(t.target)?0:-20,0)+" rotate(180)"},tailTransform:function(t){return b(t.source)+" "+S(ta,0)},canvasTransform:S(0,k)}}(u);me(n,P.height),o.attr("width","100%").attr("height","100%").attr("viewBox","0 0 ".concat(u," ").concat(P.height)),_.attr("transform",P.canvasTransform),T.attr("transform",P.nodeTransform),A.select(".line").attr("d",P.diagonal),A.select(".head").attr("transform",P.headTransform),A.select(".tail").attr("transform",P.tailTransform)}}};function sa(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 la(t,e,n,r,i){for(var o,a=t.children,u=-1,s=a.length,l=t.value&&(r-e)/t.value;++u<s;)(o=a[u]).y0=n,o.y1=i,o.x0=e,o.x1=e+=o.value*l}function ca(t,e,n,r,i){for(var o,a=t.children,u=-1,s=a.length,l=t.value&&(i-n)/t.value;++u<s;)(o=a[u]).x0=e,o.x1=r,o.y0=n,o.y1=n+=o.value*l}var fa=function t(e){function n(t,n,r,i,o){!function(t,e,n,r,i,o){for(var a,u,s,l,c,f,h,d,p,v,g,y=[],m=e.children,b=0,w=0,x=m.length,_=e.value;b<x;){s=i-n,l=o-r;do{c=m[w++].value}while(!c&&w<x);for(f=h=c,g=c*c*(v=Math.max(l/s,s/l)/(_*t)),p=Math.max(h/g,g/f);w<x;++w){if(c+=u=m[w].value,u<f&&(f=u),u>h&&(h=u),g=c*c*v,(d=Math.max(h/g,g/f))>p){c-=u;break}p=d}y.push(a={value:c,dice:s<l,children:m.slice(b,w)}),a.dice?la(a,n,r,i,_?r+=l*c/_:o):ca(a,n,r,_?n+=s*c/_:i,o),_-=c,b=w}}(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}((1+Math.sqrt(5))/2);function ha(t){if("function"!=typeof t)throw new Error;return t}function da(){return 0}function pa(t){return function(){return t}}var va=function(t,e){var n,r,i;if(!e.item||0==e.item.length)throw new Error("no data");for(var o=[],a=function(e){var a=e.data,u=document.createElement("div"),s=ve(u).attr("data-item",e.item).attr("class","root"),l=s.append("div").attr("class","box-parent");t.showItem(e.title,u);var c=ve(null!==(n=t.nodeValue("legend1"))&&void 0!==n?n:null);c.empty()&&(c=s.selectAll(".legend1"));var f=ve(null!==(r=t.nodeValue("legend2"))&&void 0!==r?r:null);f.empty()&&(f=s.selectAll(".legend2"));var h=ve(null!==(i=t.nodeValue("legend3"))&&void 0!==i?i:null);if(h.empty()&&(h=s.selectAll(".legend3")),c.empty()||f.empty()||h.empty()){var d=s.selectAll(".legends");d.empty()&&(d=s.append("div").attr("class","legends")),c.empty()&&(c=d.append("span").attr("class","legend1")),f.empty()&&(f=d.append("span").attr("class","legend2")),h.empty()&&(h=d.append("span").attr("class","legend3"))}h.text(Qr("As of: ","Stand: ","Date de ")+e.date);var p=t.i18n().createNumberFormatter(a.numberFormat,",.3r"),v=null,g=function(t,e){e.children||v&&v!=e||(l.classed("highlighting",!0),ge(".highlighted").classed("highlighted",!1),ve(t).classed("highlighted",!0),m(e))},y=function(){var t;v||(l.classed("highlighting",!1),ge(".highlighted").classed("highlighted",!1),m(null!==(t=a.default)&&void 0!==t?t:a.root))},m=function(t){var e;c.text((null!==(e=t.formattedValue)&&void 0!==e?e:p(t.raw))+" "),f.text(t.name)};y(),function(e){var n=t.getRootColor();!function t(e,n,r,i){e.color=n.toString();var o=r;if(e.children){var a=e.children.length+1;if(a>0)for(var u=(i-r)/a,s=0,l=e.children;s<l.length;s++){var c=l[s];n.h=o%360,t(c,n,o,o+u),o+=u}}}(e,n,n.h,n.h+360)}(a.root);o.push((function(){var t=l.node().getBoundingClientRect();if(0!=t.width&&0!=t.height){var e=Co(a.root).sum((function(t){return t.children?0:Math.abs(t.raw)})).sort((function(t,e){return Mi(t.value,e.value)})),n=function(){var t=fa,e=!1,n=1,r=1,i=[0],o=da,a=da,u=da,s=da,l=da;function c(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(f),i=[0],e&&t.eachBefore(sa),t}function f(e){var n=i[e.depth],r=e.x0+n,c=e.y0+n,f=e.x1-n,h=e.y1-n;f<r&&(r=f=(r+f)/2),h<c&&(c=h=(c+h)/2),e.x0=r,e.y0=c,e.x1=f,e.y1=h,e.children&&(n=i[e.depth+1]=o(e)/2,r+=l(e)-n,c+=a(e)-n,(f-=u(e)-n)<r&&(r=f=(r+f)/2),(h-=s(e)-n)<c&&(c=h=(c+h)/2),t(e,r,c,f,h))}return c.round=function(t){return arguments.length?(e=!!t,c):e},c.size=function(t){return arguments.length?(n=+t[0],r=+t[1],c):[n,r]},c.tile=function(e){return arguments.length?(t=ha(e),c):t},c.padding=function(t){return arguments.length?c.paddingInner(t).paddingOuter(t):c.paddingInner()},c.paddingInner=function(t){return arguments.length?(o="function"==typeof t?t:pa(+t),c):o},c.paddingOuter=function(t){return arguments.length?c.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):c.paddingTop()},c.paddingTop=function(t){return arguments.length?(a="function"==typeof t?t:pa(+t),c):a},c.paddingRight=function(t){return arguments.length?(u="function"==typeof t?t:pa(+t),c):u},c.paddingBottom=function(t){return arguments.length?(s="function"==typeof t?t:pa(+t),c):s},c.paddingLeft=function(t){return arguments.length?(l="function"==typeof t?t:pa(+t),c):l},c}().size(ye(t)).round(!0)(e),r=function(t){return t.x1-t.x0},i=function(t){return t.y1-t.y0},o=l.selectAll(".box").data(n.descendants()),u=o.enter().append("div").attr("class","box").on("mouseenter",(function(t,e){g(this,e.data)})).on("mouseleave",y).on("click",(function(t,e){!function(t,e){v==e?(v=null,y()):(v=e,g(t,e))}(this,e.data)})).attr("data-neg",(function(t){return!!(t.data.raw<0||(e=t.data.name,e&&e.indexOf("Fehlbetrag")>=0));var e}));u.append("div").attr("class","value").text((function(t){var e,n;return t.children?null:null!==(n=null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.formattedValue)&&void 0!==n?n:p(t.value)})),u.append("div").attr("class","desc").text((function(t){return t.children?null:t.data.name})),u.merge(o).attr("data-small",(function(t){return r(t)<40||i(t)<32||null})).style("left",(function(t){return t.x0+"px"})).style("top",(function(t){return t.y0+"px"})).style("width",(function(t){return Math.max(0,r(t)-1)+"px"})).style("height",(function(t){return Math.max(0,i(t)-1)+"px"})).style("background",(function(t){return t.children?"white":t.data.color}))}}))},u=0,s=e.item;u<s.length;u++){a(s[u])}return{draw:function(){for(var t=0,e=o;t<e.length;t++){(0,e[t])()}}}},ga=function(t,e){var n=e&&e.financials&&e.financials.filter((function(t){return t.items.length>0})),r=t.isReverseChronology();if(!(n&&n.length>0&&n[0].items.length>0))throw new Error("no data available");for(var i=ve(t.container).append("table").attr("class","ui bizq very compact celled small unstackable striped selectable first stuck table"),o=i.append("thead").append("tr"),a=i.append("tbody"),u=i.append("tfoot").append("tr"),s={},l=0,c=n;l<c.length;l++){var f=c[l];f.itemsById={};for(var h=0,d=f.items;h<d.length;h++){var p=d[h];f.itemsById[p.id]=p,s[p.id]=p}}var v=n[n.length-1];r&&n.reverse(),o.append("th").attr("class","first").text(t.stringValue("title")).append("a").attr("href",e.csvUrl).attr("download","download").attr("title","CSV/Excel Download").classed("screen-only",!0).append("i").attr("class","download icon");for(var g=0,y=n;g<y.length;g++){var m=y[g];o.append("th").text(m.formattedDate)}for(var w in s){var x=a.append("tr").attr("class","active-on-hover"),_=s[w];x.append("td").text(_.name);for(var k=0,M=n;k<M.length;k++){var A=M[k].itemsById[w],T=x.append("td");if(A){var S=A.value>=0?"pos":"neg",P=A.formattedValue;T.append("span").attr("class",S+" value").text(P),A.estimate&&T.append("a").attr("href","javascript:void()").attr("title",t.trilingual("Unsafe value (estimation or indirect determination)","Indirekte oder unsichere Bestimmungsmethode","Valeur non sûre (estimation ou détermination indirecte)")).html(" * "),A.note&&T.append("span").attr("class","note").text(A.note)}else T.append("span").text("N/A")}}if(v.source){if(v.source.auditorName){(x=a.append("tr").attr("class","active-on-hover")).append("td").text(t.trilingual("Auditor","Prüfer","Auditeur"));for(var C=0,E=n;C<E.length;C++){var D=E[C],O=D.source&&D.source.auditorName;(T=x.append("td")).append("span").attr("class","auditor value").text(O||"N/A")}}if(v.source&&v.source.publicationDate){(x=a.append("tr").attr("class","active-on-hover")).append("td").text(t.trilingual("Publication date","Veröffentlichungsdatum","Date de publication"));for(var N=0,j=n;N<j.length;N++){var L=j[N],R=L.source&&L.source.publicationDate;(T=x.append("td")).append("span").attr("class","date value").text(R?t.i18n().dateFormatter(new Date(R)):"N/A")}}u.append("th").text(t.trilingual("Source","Quelle","Source"));for(var F=t.handlerValue("sourceClick"),$=function(t){var e=u.append("th");e.html(t.note.html),F&&e.selectAll("a").attr("href","javascript:void(0);").on("click",(function(e){e.preventDefault(),F(t.source)}))},U=0,H=n;U<H.length;U++){$(H[U])}}return b},ya=function(t,e){if(e.children)return ua(t,e);var n,r="orgchart"==e.type,i=t.container;if(e.html)return i.innerHTML=e.html,e.legendHtml||ve(i).selectAll("foreignObject:has(> .extended-legend-button)").remove(),na(ve(i).selectAll(".link"),".desc",".desc-bg",3,3,1e3),oa(t,ve(i).select("svg"),!1),{draw:function(){}};if(!e.nodes||e.nodes.length<2)throw new Error("graph empty or single node");for(var o={},a=e.nodes.length,u=!1,s=0,l=e.nodes;s<l.length;s++){var c=l[s];c.root&&(n=c),c.warning&&(u=!0),o[c.id]=c}for(var f=0,h=e.links;f<h.length;f++){var d=h[f];d.source=o[d.source],d.target=o[d.target],d.source&&d.target||es.log("error","broken link: ",d)}var p=ve(i).append("svg").attr("width","100%").attr("height","100%").attr("aria-label",Qr("Network","Netzwerk","Réseau")),v=p.append("g").attr("class","nodes").selectAll(".link").data(e.links),g=p.append("g").attr("class","legend");r||(g.append("line").attr("data-old",!1),g.append("line").attr("data-old",!0)),u&&g.append("line").attr("data-warn",!0),g.append("text").attr("data-old",!1).text(t.trilingual("currently","aktuell","actuel")),g.append("text").attr("data-old",!0).text(t.trilingual("previously","vormals","auparavant")),u&&g.append("text").attr("data-warn",!0).text(t.trilingual("politically exposed","politisch exponiert","politiquement exposé"));var y=v.enter().append("g").attr("class","link").attr("data-source-id",(function(t){return t.source.id})).attr("data-target-id",(function(t){return t.target.id})).attr("data-head",(function(t){return t.head})).attr("data-tail",(function(t){return t.tail})).attr("data-old",(function(t){return t.old})).attr("data-warn",(function(t){return t.warn})).attr("data-length",(function(t){return t.length})).attr("data-helper",(function(t){return t.helper}));if(r)for(var m=0;m<3;++m)y.append("line").attr("class","line").attr("class","segment"+m).attr("stroke-width",1).attr("stroke","#000000");else y.append("line").attr("class","line").attr("stroke-width",1).attr("stroke","#000000").attr("stroke-dasharray",(function(t){return function(t){return"SameAddress"==t.type?"3, 3":"CommonFiling"==t.type?"6, 6":void 0}(t)}));y.append("rect").attr("class","desc-bg"),y.append("text").attr("class","desc").attr("text-anchor","middle").text((function(t){return t.text})),y.append("path").attr("class","head").attr("d",ea(12)),y.append("path").attr("class","tail").attr("d",ea(12));var b=ia(t,p,e.nodes,n.id,!1),w=0,x=!0,_=function(){if(!x&&w++%3==0){var t=i.getBoundingClientRect(),n=t.width,o=t.height,u=si(e.nodes,(function(t){return t.x})),s=si(e.nodes,(function(t){return t.y})),l=[100,n-100],c=r?s:[40,(2==a?120:o)-60],f=U(u),h=U(l),d=U(s),v=U(c),g=$(u,l),m=$(s,c),_=2==a?2:1.1*e.diameter;g=Math.min(g,m*_),2==a&&(m=0,g*=2,me(i,120));var k=function(t){return(t-f)*g+h},M=function(t){return(t-d)*m+v},A=function(t){return k(t.source.x)},T=function(t){return k(t.target.x)},S=function(t){return M(t.source.y)},P=function(t){return M(t.target.y)},C=function(t){return T(t)-A(t)},E=function(t){return P(t)-S(t)},D=function(t){return(T(t)-A(t))/2},O=function(t){return(P(t)-S(t))/2},N=function(t){return 180/Math.PI*Math.atan2(E(t),C(t))};y.attr("transform",(function(t){return"translate("+A(t)+" "+S(t)+")"})),y.select("line").attr("x1",0).attr("y1",0).attr("x2",C).attr("y2",E),y.select(".segment0").attr("x1",0).attr("y1",0).attr("x2",0).attr("y2",O),y.select(".segment1").attr("x1",0).attr("y1",O).attr("x2",C).attr("y2",O),y.select(".segment2").attr("x1",C).attr("y1",O).attr("x2",C).attr("y2",E);var j=function(t){return"rotate("+function(t){var e=180/Math.PI*Math.atan2(E(t),C(t));return e>90&&e<270?e-=180:e<-90&&e>-270&&(e+=180),e}(t)+" "+D(t)+" "+O(t)+" ) translate(0 -7)"};if(y.select(".desc").attr("x",D).attr("y",O).attr("transform",j),y.select(".desc-bg").attr("x",D).attr("y",O).attr("transform",j),!r){y.select(".tail").attr("transform",(function(t){return"rotate("+N(t)+") translate("+"20 0)"})),y.select(".head").attr("transform",(function(t){return"translate("+function(t){return C(t)+0}(t)+" "+function(t){return E(t)+0}(t)+") rotate("+(180+N(t))+") translate("+"20 0)"}))}var L=c[1]+20,R=L-18,F=L+18;p.selectAll(".legend line").attr("x1",50).attr("x2",90),p.selectAll(".legend line[data-old='false'").attr("y1",R).attr("y2",R),p.selectAll(".legend line[data-old='true'").attr("y1",L).attr("y2",L),p.selectAll(".legend line[data-warn='true'").attr("y1",F).attr("y2",F),p.selectAll(".legend text").attr("x",95);p.selectAll(".legend text[data-old='false'").attr("y",R+3),p.selectAll(".legend text[data-old='true'").attr("y",L+3),p.selectAll(".legend text[data-warn='true'").attr("y",F+3),na(y,".desc",".desc-bg",3,3,1e3),b.attr("data-dx",(function(t){return k(t.x)})).attr("transform",(function(t){return"translate("+k(t.x)+","+M(t.y)+")"}))}function $(t,e){return(e[1]-e[0])/(t[1]-t[0])}function U(t){return(t[1]+t[0])/2}};return{draw:function(){var t=ye(i.getBoundingClientRect()),e=t[0],n=t[1];p.attr("viewBox","0 0 "+e+" "+n),x=!1,_()}}};const ma=Pe((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));ma.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?Pe((e=>{e.setTime(Math.floor(e/t)*t)}),((e,n)=>{e.setTime(+e+n*t)}),((e,n)=>(n-e)/t)):ma:null);ma.range;function ba(t,e,n,r,i,o){const a=[[Ar,1,Ce],[Ar,5,5e3],[Ar,15,15e3],[Ar,30,3e4],[o,1,Ee],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,De],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,Oe],[r,2,1728e5],[n,1,Ne],[e,1,je],[e,3,7776e6],[t,1,Le]];function u(e,n,r){const i=Math.abs(n-e)/r,o=Ti((([,,t])=>t)).right(a,i);if(o===a.length)return t.every(ki(e/Le,n/Le,r));if(0===o)return ma.every(Math.max(ki(e,n,r),1));const[u,s]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return u.every(s)}return[function(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const i=n&&"function"==typeof n.range?n:u(t,e,n),o=i?i.range(t,+e+1):[];return r?o.reverse():o},u]}const[wa,xa]=ba(nn,Dr,ze,tn,Cr,Sr),[_a,ka]=ba(en,Er,Fe,Ke,Pr,Tr);var Ma,Aa;function Ta(t){return new Date(t)}function Sa(t){return t instanceof Date?+t:+new Date(+t)}function Pa(t,e,n,r,i,o,a,u,s,l){var c=oo(),f=c.invert,h=c.domain,d=l(".%L"),p=l(":%S"),v=l("%I:%M"),g=l("%I %p"),y=l("%a %d"),m=l("%b %d"),b=l("%B"),w=l("%Y");function x(t){return(s(t)<t?d:u(t)<t?p:a(t)<t?v:o(t)<t?g:r(t)<t?i(t)<t?y:m:n(t)<t?b:w)(t)}return c.invert=function(t){return new Date(f(t))},c.domain=function(t){return arguments.length?h(Array.from(t,Sa)):h().map(Ta)},c.ticks=function(e){var n=h();return t(n[0],n[n.length-1],null==e?10:e)},c.tickFormat=function(t,e){return null==e?x:l(e)},c.nice=function(t){var n=h();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?h(function(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),t[r]=e.floor(o),t[i]=e.ceil(a),t}(n,t)):c},c.copy=function(){return ro(c,Pa(t,e,n,r,i,o,a,u,s,l))},c}function Ca(){return li.apply(Pa(_a,ka,en,Er,Fe,Ke,Pr,Tr,Ar,Aa).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}!function(t){Ma=un(t),Aa=Ma.format,Ma.parse,Ma.utcFormat,Ma.utcParse}({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"]});var Ea={value:()=>{}};function Da(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new Oa(r)}function Oa(t){this._=t}function Na(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function ja(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=Ea,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}Oa.prototype=Da.prototype={constructor:Oa,on:function(t,e){var n,r,i=this._,o=(r=i,(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)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),a=-1,u=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<u;)if(n=(t=o[a]).type)i[n]=ja(i[n],t.name,e);else if(null==e)for(n in i)i[n]=ja(i[n],t.name,null);return this}for(;++a<u;)if((n=(t=o[a]).type)&&(n=Na(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Oa(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(r=this._[t]).length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};var La,Ra,Fa=Da,$a=0,Ua=0,Ha=0,Ia=0,qa=0,Va=0,Ba="object"==typeof performance&&performance.now?performance:Date,za="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Ya(){return qa||(za(Wa),qa=Ba.now()+Va)}function Wa(){qa=0}function Xa(){this._call=this._time=this._next=null}function Ja(t,e,n){var r=new Xa;return r.restart(t,e,n),r}function Ga(){qa=(Ia=Ba.now())+Va,$a=Ua=0;try{!function(){Ya(),++$a;for(var t,e=La;e;)(t=qa-e._time)>=0&&e._call.call(void 0,t),e=e._next;--$a}()}finally{$a=0,function(){var t,e,n=La,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:La=e);Ra=t,Ka(r)}(),qa=0}}function Za(){var t=Ba.now(),e=t-Ia;e>1e3&&(Va-=e,Ia=t)}function Ka(t){$a||(Ua&&(Ua=clearTimeout(Ua)),t-qa>24?(t<1/0&&(Ua=setTimeout(Ga,t-Ba.now()-Va)),Ha&&(Ha=clearInterval(Ha))):(Ha||(Ia=Ba.now(),Ha=setInterval(Za,1e3)),$a=1,za(Ga)))}function Qa(t,e,n){var r=new Xa;return e=null==e?0:+e,r.restart((n=>{r.stop(),t(n+e)}),e,n),r}Xa.prototype=Ja.prototype={constructor:Xa,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Ya():+n)+(null==e?0:+e),this._next||Ra===this||(Ra?Ra._next=this:La=this,Ra=this),this._call=t,this._time=n,Ka()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ka())}};var tu=Fa("start","end","cancel","interrupt"),eu=[];function nu(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(t){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}function a(o){var l,c,f,h;if(1!==n.state)return s();for(l in i)if((h=i[l]).name===n.name){if(3===h.state)return Qa(a);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[l]):+l<e&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete i[l])}if(Qa((function(){3===n.state&&(n.state=4,n.timer.restart(u,n.delay,n.time),u(o))})),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(f=n.tween.length),l=0,c=-1;l<f;++l)(h=n.tween[l].value.call(t,t.__data__,n.index,n.group))&&(r[++c]=h);r.length=c+1}}function u(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(s),n.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=Ja(o,0,n.time)}(t,n,{name:e,index:r,group:i,on:tu,tween:eu,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function ru(t,e){var n=ou(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function iu(t,e){var n=ou(t,e);if(n.state>3)throw new Error("too late; already running");return n}function ou(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var au,uu=180/Math.PI,su={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function lu(t,e,n,r,i,o){var a,u,s;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(s=t*n+e*r)&&(n-=t*s,r-=e*s),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,s/=u),t*r<e*n&&(t=-t,e=-e,s=-s,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*uu,skewX:Math.atan(s)*uu,scaleX:a,scaleY:u}}function cu(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(o,a){var u=[],s=[];return o=t(o),a=t(a),function(t,r,i,o,a,u){if(t!==i||r!==o){var s=a.push("translate(",null,e,null,n);u.push({i:s-4,x:Hi(t,i)},{i:s-2,x:Hi(r,o)})}else(i||o)&&a.push("translate("+i+e+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,u,s),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Hi(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,u,s),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Hi(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,u,s),function(t,e,n,r,o,a){if(t!==n||e!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:Hi(t,n)},{i:u-2,x:Hi(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,s),o=a=null,function(t){for(var e,n=-1,r=s.length;++n<r;)u[(e=s[n]).i]=e.x(t);return u.join("")}}}var fu=cu((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?su:lu(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),hu=cu((function(t){return null==t?su:(au||(au=document.createElementNS("http://www.w3.org/2000/svg","g")),au.setAttribute("transform",t),(t=au.transform.baseVal.consolidate())?lu((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):su)}),", ",")",")");function du(t,e){var n,r;return function(){var i=iu(this,t),o=i.tween;if(o!==n)for(var a=0,u=(r=n=o).length;a<u;++a)if(r[a].name===e){(r=r.slice()).splice(a,1);break}i.tween=r}}function pu(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=iu(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var u={name:e,value:n},s=0,l=i.length;s<l;++s)if(i[s].name===e){i[s]=u;break}s===l&&i.push(u)}o.tween=i}}function vu(t,e,n){var r=t._id;return t.each((function(){var t=iu(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return ou(t,r).value[e]}}function gu(t,e){var n;return("number"==typeof e?Hi:e instanceof U?Ri:(n=U(e))?(e=n,Ri):Bi)(t,e)}function yu(t){return function(){this.removeAttribute(t)}}function mu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function bu(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttribute(t);return a===o?null:a===r?i:i=e(r=a,n)}}function wu(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===r?i:i=e(r=a,n)}}function xu(t,e,n){var r,i,o;return function(){var a,u,s=n(this);if(null!=s)return(a=this.getAttribute(t))===(u=s+"")?null:a===r&&u===i?o:(i=u,o=e(r=a,s));this.removeAttribute(t)}}function _u(t,e,n){var r,i,o;return function(){var a,u,s=n(this);if(null!=s)return(a=this.getAttributeNS(t.space,t.local))===(u=s+"")?null:a===r&&u===i?o:(i=u,o=e(r=a,s));this.removeAttributeNS(t.space,t.local)}}function ku(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,i)),n}return i._value=e,i}function Mu(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,i)),n}return i._value=e,i}function Au(t,e){return function(){ru(this,t).delay=+e.apply(this,arguments)}}function Tu(t,e){return e=+e,function(){ru(this,t).delay=e}}function Su(t,e){return function(){iu(this,t).duration=+e.apply(this,arguments)}}function Pu(t,e){return e=+e,function(){iu(this,t).duration=e}}var Cu=pe.prototype.constructor;function Eu(t){return function(){this.style.removeProperty(t)}}var Du=0;function Ou(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Nu(){return++Du}var ju=pe.prototype;Ou.prototype=function(t){return pe().transition(t)}.prototype={constructor:Ou,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=rt(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var u,s,l=r[a],c=l.length,f=o[a]=new Array(c),h=0;h<c;++h)(u=l[h])&&(s=t.call(u,u.__data__,h,l))&&("__data__"in u&&(s.__data__=u.__data__),f[h]=s,nu(f[h],e,n,h,f,ou(u,n)));return new Ou(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=at(t));for(var r=this._groups,i=r.length,o=[],a=[],u=0;u<i;++u)for(var s,l=r[u],c=l.length,f=0;f<c;++f)if(s=l[f]){for(var h,d=t.call(s,s.__data__,f,l),p=ou(s,n),v=0,g=d.length;v<g;++v)(h=d[v])&&nu(h,e,n,v,d,p);o.push(d),a.push(s)}return new Ou(o,a,e,n)},selectChild:ju.selectChild,selectChildren:ju.selectChildren,filter:function(t){"function"!=typeof t&&(t=ut(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],u=a.length,s=r[i]=[],l=0;l<u;++l)(o=a[l])&&t.call(o,o.__data__,l,a)&&s.push(o);return new Ou(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var s,l=e[u],c=n[u],f=l.length,h=a[u]=new Array(f),d=0;d<f;++d)(s=l[d]||c[d])&&(h[d]=s);for(;u<r;++u)a[u]=e[u];return new Ou(a,this._parents,this._name,this._id)},selection:function(){return new Cu(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=Nu(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],s=u.length,l=0;l<s;++l)if(a=u[l]){var c=ou(a,e);nu(a,t,n,l,u,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Ou(r,this._parents,t,n)},call:ju.call,nodes:ju.nodes,node:ju.node,size:ju.size,empty:ju.empty,each:ju.each,on:function(t,e){var n=this._id;return arguments.length<2?ou(this.node(),n).on.on(t):this.each(function(t,e,n){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?ru:iu;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(e,n),a.on=i}}(n,t,e))},attr:function(t,e){var n=_t(t),r="transform"===n?hu:gu;return this.attrTween(t,"function"==typeof e?(n.local?_u:xu)(n,r,vu(this,"attr."+t,e)):null==e?(n.local?mu:yu)(n):(n.local?wu:bu)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=_t(t);return this.tween(n,(r.local?ku:Mu)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?fu:gu;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var o=Nt(this,t),a=(this.style.removeProperty(t),Nt(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}(t,r)).on("end.style."+t,Eu(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,o;return function(){var a=Nt(this,t),u=n(this),s=u+"";return null==u&&(this.style.removeProperty(t),s=u=Nt(this,t)),a===s?null:a===r&&s===i?o:(i=s,o=e(r=a,u))}}(t,r,vu(this,"style."+t,e))).each(function(t,e){var n,r,i,o,a="style."+e,u="end."+a;return function(){var s=iu(this,t),l=s.on,c=null==s.value[a]?o||(o=Eu(e)):void 0;l===n&&i===c||(r=(n=l).copy()).on(u,i=c),s.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,o=n+"";return function(){var a=Nt(this,t);return a===o?null:a===r?i:i=e(r=a,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}(t,o,n)),r}return o._value=e,o}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(vu(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&function(t){return function(e){this.textContent=t.call(this,e)}}(r)),e}return r._value=t,r}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=ou(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?du:pu)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Au:Tu)(e,t)):ou(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Su:Pu)(e,t)):ou(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){iu(this,t).ease=e}}(e,t)):ou(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;iu(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var u={value:a},s={value:function(){0==--i&&o()}};n.each((function(){var n=iu(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(u),e._.interrupt.push(u),e._.end.push(s)),n.on=e})),0===i&&o()}))},[Symbol.iterator]:ju[Symbol.iterator]};var Lu={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function Ru(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}pe.prototype.interrupt=function(t){return this.each((function(){!function(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}}(this,t)}))},pe.prototype.transition=function(t){var e,n;t instanceof Ou?(e=t._id,t=t._name):(e=Nu(),(n=Lu).time=Ya(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],s=u.length,l=0;l<s;++l)(a=u[l])&&nu(a,t,e,l,u,n||Ru(a,e));return new Ou(r,this._parents,t,e)};var Fu=n(100),$u=n.n(Fu),Uu=n(181),Hu=n.n(Uu);function Iu(t){return{standard:t.toString(),light:t.brighter(1.15).toString(),bright:Z(t.h,1.3*t.s,.9*t.l).toString()}}function qu(t,e){var n=function(t,e){for(var n=[],r=360/e+1,i=t.h,o=0;o<e;++o)t.h=(i+o*r)%360,n.push(Iu(t));return n}(t,e),r=Iu(Z("#888888"));return function(t){return t.old?r:n[t.cat%e]}}var Vu,Bu=function(t,e){var n=e.event,r=1;n.forEach((function(t){return t.id=r++})),t.container.innerHTML="";var i=new Date(e.minDate),o=new Date(e.maxDate),a=qu(t.getRootColor(),12),u=function(t){return a(t).standard},s={alternatingTickLength:10,initialHeight:50,initialWidth:400,direction:"horizontal",domain:[i,o],dotRadius:5,linkColor:u,dotColor:u,labelBgColor:u,layerGap:20,textStyle:{fill:"#fff"},margin:{left:12,right:15,top:5,bottom:35},labelPadding:{left:4,right:4,top:3,bottom:2},textYOffset:"0.85em",timeFn:function(t){return new Date(t.date)},textFn:function(t){return t.text},formatAxis:function(e){var n=o.getFullYear()-i.getFullYear();return e.tickFormat(t.i18n().timeScaleFormatter).tickSizeInner(8).tickSizeOuter(10).ticks(n<=4?2*n:void 0)}},l={innerWidth:0,innerHeight:0,width:s.initialWidth,height:s.initialHeight},c=new($u().Force),f=Ca(),h=ve(t.container);h.style("line-height",0);var d=h.append("div").style("display","inline-block").style("position","relative").style("line-height",0),p=d.append("svg").style("position","absolute").style("top",0).style("left",0),v=p.append("g");function g(t,e){return t.append("g").attr("name",e)}var y=g(v,"dummy"),m=g(v,"main"),b=g(m,"main/axis"),w=g(m,"main/link"),x=g(m,"main/label"),_=g(m,"main/dot");b.classed("axis",!0);var k=Hu()((function(){var t=l.width,e=l.height,r=s.margin,i=r.top,o=r.right,a=r.bottom,u=r.left;l.innerWidth=t-u-o,l.innerHeight=e-i-a,d.style("width","".concat(t,"px")).style("height","".concat(e,"px")),p.attr("width",t).attr("height",e),v.attr("transform","translate(".concat(u,", ").concat(i,")")),function(){if(!n||l.innerWidth<=0&&l.innerHeight<=0)return;var t=n||[];c=new($u().Force),f.domain(s.domain),f.range([0,"vertical"===s.direction?l.innerHeight:l.innerWidth]);var e=y.append("text").classed("label-text",!0),r=t.map((function(t){var n=e.call(M,t).node().getBBox(),r=n.width+s.labelPadding.left+s.labelPadding.right,i=n.height+s.labelPadding.top+s.labelPadding.bottom,o=new($u().Node)(f(s.timeFn(t)),"vertical"===s.direction?i:r,t);return o.w=r,o.h=i,o}));e.remove();var i=s.margin,o=i.left,a=i.right;c.options({maxPos:l.width-(o+a)}).nodes(r).compute(),function(){var t,e;switch(s.direction){case"vertical":e=bo(f),m.attr("transform","translate(0,0)");break;case"horizontal":e=mo(f),m.attr("transform","translate(0,"+l.innerHeight+")")}null===(t=s.formatAxis)||void 0===t||t.call(s,e),b.call(e).attr("font-family",null).attr("font-size",null)}(),function(t){var e="vertical"===s.direction?"cy":"cx",n=function(t){return f(s.timeFn(t))},r=_.selectAll("circle.dot").data(t);r.enter().append("circle").classed("dot",!0).style("fill",s.dotColor).attr("r",s.dotRadius).attr(e,n),r.transition().style("fill",s.dotColor).attr("r",s.dotRadius).attr(e,n),r.exit().remove()}(t),function(t){var e;e=ko(t,"vertical"===s.direction?function(t){return t.w}:function(t){return t.h});var n=new($u().Renderer)({nodeHeight:null!=e?e:0,layerGap:s.layerGap,direction:"horizontal"===s.direction?"up":"right"});function r(t){if(isNaN(t.x)||isNaN(t.y))return null;switch(s.direction){case"vertical":return"translate("+t.x+","+(t.y-t.dy/2)+")";case"horizontal":return"translate("+(t.x-t.dx/2)+","+t.y+")"}}n.layout(t);var i=x.selectAll("g.label-g").data(t),o=i.enter().append("g").classed("label-g",!0).attr("transform",r);o.append("rect").classed("label-bg",!0).attr("rx",2).attr("ry",2).attr("width",(function(t){return t.w})).attr("height",(function(t){return t.h})).style("fill",(function(t){return s.labelBgColor(t.data)})),o.append("text").classed("label-text",!0).call(M,(function(t){return t.data}));var a=i.transition().attr("transform",r);a.select("rect").attr("width",(function(t){return t.w})).attr("height",(function(t){return t.h})).style("fill",(function(t){return s.labelBgColor(t.data)})),a.select("text.label-text").call(M,(function(t){return t.data})),i.exit().remove();var u=w.selectAll("path.link").data(t);u.enter().append("path").classed("link",!0).attr("d",(function(t){return n.generatePath(t)})).style("stroke",(function(t){return s.linkColor(t.data)})).style("fill","none"),u.transition().attr("d",(function(t){return n.generatePath(t)})).style("stroke",(function(t){return s.linkColor(t.data)})),u.exit().remove()}(c.nodes()),A&&(A=!1,T());!function(){var t=b.selectAll("g.tick"),e=l.width/t.size();e<=32&&t.each((function(t,e){if(e%2==0){var n=ve(this),r=n.select("text"),i=n.select("line");r.attr("y",Number(r.attr("y"))+s.alternatingTickLength),i.attr("y2",Number(i.attr("y2"))+s.alternatingTickLength)}}))}()}()}),1);function M(t,e){var n="function"==typeof e?e:function(){return e};t.attr("dy",s.textYOffset).attr("x",s.labelPadding.left).attr("y",s.labelPadding.top).style("fill",s.textStyle.fill).text((function(t){return s.textFn(n(t))}))}var A=!0;function T(){p.insert("title",":first-child").text(e.title),x.selectAll("g.label-g").each((function(){var t=ve(this),e=t.selectAll("g.label-g > *").remove(),n=t.append("svg:a").attr("class",(function(t){return t.data.class})).attr("xlink:href",(function(t){return t.data.href})).attr("xlink:title",(function(t){var e;return null!==(e=t.data.desc)&&void 0!==e?e:null}));n.append("title").text((function(t){var e;return null!==(e=t.data.desc)&&void 0!==e?e:null})),e.each((function(){var t=this;n.append((function(){return t}))}))}));var n=t.handlerValue("publicationClick"),r=!!n;x.selectAll(".label-g").attr("data-clickable",(function(){return r||null})).on("click",(function(t,e){n&&(n(e.data.query),t.preventDefault())})).on("mouseenter touchstart",(function(t,e){if(t.target){var n=a(e.data);ve(t.target).select("rect").style("fill",n.bright);var r=e.data.id;h.selectAll(".link-layer path").filter((function(t){return t.data.id===r})).attr("data-highlighted",!0);var i=e.data.query&&e.data.query.id;i&&ge("[data-publication-id='"+i+"']").style("background-color",n.light)}})).on("mouseleave touchend",(function(t,e){if(t.target){var n=a(e.data);ve(t.target).select("rect").style("fill",n.standard),h.selectAll(".link-layer path").attr("data-highlighted",!1);var r=e.data.query&&e.data.query.id;r&&ge("[data-publication-id='"+r+"']").style("background-color",null)}}))}return{draw:function(){!function(){var t,e,n=l.width,r=l.height,i=h.node(),o=null!==(t=null==i?void 0:i.clientWidth)&&void 0!==t?t:0,a=null!==(e=null==i?void 0:i.clientHeight)&&void 0!==e?e:0,u=!1;n!==o&&(l.width=o,u=!0),r>a&&(l.height=a,u=!0),u&&(k(),k.flush())}(),function(){var t,e,n,r=c.nodes();switch(s.direction){case"horizontal":n=null!==(t=ko(r,(function(t){return Math.abs(t.y)})))&&void 0!==t?t:0,l.height=n+s.margin.top+s.margin.bottom;break;case"vertical":n=null!==(e=ko(r,(function(t){return Math.abs(t.x+t.dx)})))&&void 0!==e?e:0,l.width=n+s.margin.left+s.margin.right}}(),k(),k.flush()}}},zu=function(t,e){if(e){var n=t.handlerValue("load");n&&n(e)}return b},Yu=function(t,e){var n=function(t){var e;return null===(e=function(t){return t?new Date(t):null}(t))||void 0===e?void 0:e.toLocaleDateString()},r=ve(t.container).append("table").attr("class","ui bizq very compact celled small unstackable striped table"),i=r.append("tbody");es.debug("data",e);for(var o=0,a=["current","former"];o<a.length;o++){"former"==a[o]&&i.append("tr").append("td").attr("class","first").attr("colspan",2).text("Vormals");for(var u=0,s=e.current;u<s.length;u++){var l=s[u];es.debug("group",l);var c=l.name,f=l.entries;i.append("tr").append("td").attr("class","first").attr("colspan",2).text(c);for(var h=0,d=f;h<d.length;h++){var p=d[h];es.debug("entry",p);var v=i.append("tr"),g=p.person,y=v.append("td").append("span").text(g.name).attr("class","person");for(var m in g.query)y.attr(m,g.query[m]);for(var w=v.append("td"),x=0,_=p.chunks;x<_.length;x++){var k=_[x],M=void 0;!k.start&&k.end?M="bis "+n(k.end):k.start&&!k.end?M="seit "+n(k.start):k.start&&k.end&&(M=n(k.start)+" – "+n(k.end)),w.append("span").text(M)}}}}return t.markup(r),b};function Wu(t){if(t){Vu=document.querySelectorAll("button:not([disabled])");for(var e=0;e<Vu.length;++e)Vu[e].disabled=!0}else if(Vu)for(e=0;e<Vu.length;++e)Vu[e].disabled=!1;document.body.classList.toggle("waiting",t)}var Xu=function(t,e){return we("click",t.container,"*",(function(){Wu(!0);var e=new XMLHttpRequest;function n(t){es.log("error","cannot list pubs",t)}return e.open("POST","/_api/shop/v1/products"),e.setRequestHeader("Content-Type","application/json"),e.onerror=function(t){Wu(!1),n(t)},e.onload=function(){Wu(!1),es.debug(e.status),e.status>=400&&n(e.responseText||e.statusText),es.debug("ok",e.responseText);var t=JSON.parse(e.responseText);es.debug("data",t)},e.send(JSON.stringify(t.options)),!1})),b},Ju=function(t,e){var n=ve(t.container).selectAll(".publication").data(e.publications).enter().append("div").attr("class","pub").attr("data-publication-id",(function(t){return t.id})),r=n.append("h2");return r.append("span").attr("class","icon").text((function(t){return t.internal.icon})),r.append("span").attr("class","date").text((function(t){return t.internal.formattedDate})),r.append("a").attr("href","#").html((function(t){return t.internal.htmlTitle})).on("click",(function(t){var e,n,r,i=t.target;null===(r=null===(n=null===(e=null==i?void 0:i.parentElement)||void 0===e?void 0:e.parentElement)||void 0===n?void 0:n.classList)||void 0===r||r.toggle("expanded"),t.preventDefault()})),n.append("div").attr("class","text").html((function(t){return t.html})),t.markup(n),b},Gu=function(t,e){var n=ve(t.container),r=n.append("ul").attr("class","search-results"),i=e.cursor;function o(t){var e,n={},r=t.subject,i=r.name[0].name,o=r.address&&r.address[0],a=o&&o.city,u={query:n,address:o,name:i,details:t.formattedDetails},s=r.tag;switch(s&&s.terminated&&(u.terminated=!0),t.targetType){case"Company":u.type="c",n.address=a,n.name=i;var l=r.register&&r.register[0];l&&l.id&&(l.city&&(n.registerCity=l.city),n.registerId=l.id);break;case"Person":u.type="p";var c=i.split(",");n.lastName=c[0],n.firstName=(e=c[1])?e.trim():e,n.birthDate=r.birthDate,n.address=a,n.address&&n.birthDate||(n.id=t.targetId)}return u}var a=n.append("div").attr("class","more"),u=a.append("p"),s=a.append("a").attr("href","#").on("click",(function(e){var n=m(t.options,{offset:s.attr("data-offset"),position:s.attr("data-position")});Ae.requestData(n,(function(t){h(t)}),t.fail.bind(t)),e.preventDefault()})),l=0==i.items.length,c=t.handlerValue("noResults"),f=t.handlerValue("oneResult");function h(e){for(var n=e.cursor,i=0,l=n.items;i<l.length;i++){var c=l[i],f=o(c),h=f.query,d=h.address,p=h.name;p||(p=h.lastName+", "+h.firstName),d&&(p+=", "+d);var v=r.append("li").attr("class","search-result");v.append("span").attr("class","icon").text("Company"==c.targetType?"":"");var g=v.append("div").attr("class","body"),y=g.append("a").attr("href",document.location.pathname+"?"+_e(h)).text(p).on("click",(function(n){t.invokeClickHandler(e)&&n.preventDefault()}));if(f.terminated){y.append("sup").attr("title","erloschen").text("✝︎")}g.append("div").attr("class","detail").text(f.detail);for(var m=0,b=c.formattedDetails;m<b.length;m++){var w=b[m];g.append("div").attr("class","detail").text(w)}}a.attr("data-total",n.total);var x=Number(n.offset+n.items.length).toLocaleString();n.total?x+=" Resultate von "+Number(n.total).toLocaleString()+" insgesamt.":x+=" Resultate.",u.text(x),s.text(n.lastPage?"":"Weitere Resultate anzeigen").attr("data-offset",n.offset+n.limit).attr("data-position",e.properties.nextPosition)}return l?c?c():n.append("p").text("Keine Resultate zu dieser Suche."):1==i.items.length&&f?f(o(i.items[0])):h(e),b};var Zu,Ku=function(t,e){if(!e.sheet)throw new Error("no data");for(var n=function(e){if(!e){var n=t.stringValue("subject")||"assets";throw new Error("no data for subject '"+n+"'")}var r=e.column,i=e.row,c=t.isReverseChronology(),f=t.numberValue("maxYears")||5;c&&r.reverse();var h=function(t){return c?t<f:t>=r.length-f};if(r.length<=0)return"break";var d,p=r[0].currency,v=1,g=p.unit,y=t.i18n().numberFormatter;if(p){for(var m=0,b=0,w=0,x=0,_=i;x<_.length;x++)for(var k=0,M=_[x].cell;k<M.length;k++){var A=M[k];if(d=A.value,!isNaN(parseFloat(d))&&isFinite(d)){var T=Math.abs(A.value);T>1e5&&(++w,T>1e7&&(++b,T>1e10&&++m))}}var S=m>=5,P=b>=5;if(w<5&&(y=t.i18n().decimalFormatter),P){"EUR"==g&&(g="€"),"USD"==g&&(g="$"),"GBP"==g&&(g="£");var C=Qr("K","Tsd. ","K");if(v=1e3,S){v=1e6;Qr("M","Mio. ","M")}1==C.length&&1==g.length&&(g=" "+g),g=C+g}}var E=document.createElement("table"),D=ve(E).attr("class","ui bizq very compact celled small unstackable selectable first stuck table"),O=D.append("thead").append("tr"),N=O.append("th").attr("class","first");N.text(g),N.append("a").attr("href",e.info.csvUrl).attr("download","download").attr("title","CSV/Excel Download").classed("screen-only",!0).append("i").attr("class","download icon"),r.forEach((function(e,n){h(n)&&O.append("th").text(e.date?t.i18n().dateFormatter(e.date):"").attr("data-col",r.length-n).attr("data-source-title",e.info.publication.title).attr("data-source-date",e.info.publication.date)}));var j=function(t,e){return t&&t.semantics&&t.semantics.indexOf(e)>=0},L=D.append("tbody");i.forEach((function(e){var n,i;if(!j(e,"HELPER")){var f=0,d=t.isPrint()?2:1,p=e.level&&e.level.value,g=p<d?"expanded":"closed";p>d&&(g+=" hidden");var m=ve(document.createElement("tr")).attr("class",g+" active-on-hover").attr("data-row",e.info&&e.info.id).attr("data-level",p).attr("data-parent-row",e.info?e.info.parentId:null).attr("data-child-count",(function(){return e.info&&"number"==typeof e.info.childCount&&e.info.childCount>0?e.info.childCount:null})).attr("data-summary",function(t){return j(t,"SUMMARY")}(e)).attr("data-custom",function(t){return j(t,"CUSTOM")}(e)).on("click",(function(t){!function(t){var e=u(t);e.classed(o)?l(t):function(t){var e=u(t);e.classed(a,!1).classed(o,!0),s(e).classed("hidden",!1)}(t)}(t&&t.target),t.preventDefault()}));m.append("td").attr("class","first").text(null!==(n=e.text)&&void 0!==n?n:e.name),c&&e.cell.reverse(),e.cell.forEach((function(t,e){if(h(e)){var n=void 0===t.value?"":y(t.value/v);n&&f++,m.append("td").attr("data-col",r.length-e).text(n)}})),f>0?L.node().appendChild(m.node()):(null===(i=e.info)||void 0===i?void 0:i.parentId)&&L.select('tr[data-row="'.concat(e.info.parentId,'"][data-child-count]')).attr("data-child-count",(function(){var t=parseInt(ve(this).attr("data-child-count"))-1;return t>0?t:null}))}}));var R=D.append("tfoot").append("tr");R.append("th").attr("class","first").text(t.trilingual("Source","Quelle","Source"));var F=t.handlerValue("sourceClick");r.forEach((function(t,e){if(h(e)){var n=R.append("th").attr("data-col",r.length-e);if(n.html(t.info.noteHtml),F){var i=t.info.publication,o="string"==typeof t.info.source?[t.info.source]:t.info.source;n.selectAll("a").attr("href","javascript:void(0);").on("click",(function(t){t.preventDefault(),F({publication:i,source:o})}))}}})),E.setAttribute("data-item",e.info.item),t.showItem(void 0,E)},r=0,i=e.sheet;r<i.length;r++){if("break"===n(i[r]))break}var o="expanded",a="closed";function u(t){var e=ve(t);return t.matches("tr")?e:be(e,"tr")}function s(t){var e=0==t.size()?"?":t.attr("data-row");return be(t,"table").selectAll("[data-parent-row='"+e+"']")}function l(t){var e=u(t);e.classed(a,!0).classed(o,!1),s(e).classed("hidden",!0).each((function(){l(this)}))}return b},Qu=function(t,e){var n=t.container,r=t.i18n().timeScaleFormatter,i=12,o=15,a=0,u=18,s=12.78,l=e.lines;if(!l||!l.length)throw new Error("vita empty");var c=l.length,f=a+23*c+5,h=new Date(e.startDate).getTime(),d=new Date(e.endDate).getTime(),p=function(t){return t?new Date(t):null},v=ve(t.container).append("svg");v.append("title").text(Qr("History","Historie","Historique"));t.getLinkifier();return{draw:function(){v.select("g").remove();var e=v.append("g"),c=n.getBoundingClientRect().width;v.attr("width",c);var g=function(){for(var t=[],n=0,r=l;n<r.length;n++)for(var i=r[n],o=0,a=i.bars;o<a.length;o++){var u=a[o];t.push(u.role.abbr),t.push(u.role.abbr+" "+i.text)}var s={};return e.selectAll(".textWidthDummy").data(t).enter().append("text").text((function(t){return t})).each((function(t){s[t]=this.getComputedTextLength(),this.remove()})),s}(),y=function(t,e,n){if(e){var r=t+" "+e,i=g[r];if(void 0!==i&&n-8>i)return{text:r,width:i,containsSuffix:!0}}var o=g[t];return void 0!==o&&n>o?{text:t,width:o}:{text:"…",width:0}},m=Ca().domain([h,d]).range([i,c-o]);(function(){if(c>=600)return!0;for(var t=2592e6,e=0,n=l;e<n.length;e++)for(var r=0,i=n[e].bars;r<i.length;r++){var o=i[r],a=p(o.assumedStart),u=p(o.end)||new Date;if(!a)return!0;if(Math.abs(a.getTime()-h)<t||Math.abs(d-u.getTime())<t)return!0}return!1})()&&(m=m.nice());var b=mo(m).tickFormat(r).tickSizeInner(8).tickSizeOuter(10).ticks(Math.min(c/100,10));e.append("g").attr("class","axis").attr("transform","translate(0,"+f+")").call(b).attr("font-size",null).attr("font-family",null),e.append("g").attr("class","axis grid").attr("transform","translate(0,"+f+")").call(b.tickSizeInner(-f).tickSizeOuter(0)).call((function(t){return t.selectAll(".tick text").remove()}));for(var w=i,x=c-o,_=0,k=0,M=l;k<M.length;k++){var A=M[k],T=a+23*_+5,S=T+13.5-1,P=(T+(T+u))/2;e.append("line").attr("x1",w).attr("x2",x).attr("y1",P).attr("y2",P).attr("class","grid");for(var C=A.bars.length,E=0,D=!1,O=0,N=0,j=function(n){var r=p(n.assumedStart),o=p(n.end)||new Date,a=r?m(r):i+s,l=!n.start;l&&(a+=s);var c=m(o);n.openEnded&&n.end&&(c=Math.max(a,c-s));var f=c-a,h=a+f/2;f<10&&(l&&!n.openEnded?h-=3:n.openEnded&&!l&&(h+=3));var d=y(n.role.abbr,D?void 0:A.text,f);if(d.containsSuffix&&(D=!0),0==E){var v=l?a-s:a,g=d.width?Math.min(h-d.width/2,v):v;O=g-w-2}if(E==C-1){var b=n.openEnded?c+s:c;g=d.width?Math.max(h+d.width/2,b):b;N=x-g-2}var _=e.append("svg:a").attr("xlink:href",n.url||"").attr("xlink:title",n.title).attr("data-old",!!n.end||null).attr("data-clickable",(function(){return!!t.getClickHandler("p")||null})).on("click",(function(e){t.invokeClickHandler(n)&&e.preventDefault()}));if(_.append("title").text(n.title),l){var k=[(L=a)+","+(M=T),L+","+(P=T+u),(j=a-s)+","+(M+P)/2];_.append("polygon").attr("points",k.join(" ")).attr("class","in c"+n.role.cat)}if(n.openEnded){var M,P,j=c,L=Math.min(s+j,x);k=[j+","+(M=T),j+","+(P=T+u),L+","+(M+P)/2];_.append("polygon").attr("points",k.join(" ")).attr("class","out c"+n.role.cat)}_.append("rect").attr("x",a).attr("y",T).attr("width",f).attr("height",u).attr("class","c"+n.role.cat),_.append("text").attr("x",h).attr("y",S).attr("class","label-text c"+n.role.cat).text(d.text),++E},L=0,R=A.bars;L<R.length;L++){j(R[L])}D||(O>N?O>200&&e.append("text").attr("x",w+O).attr("y",S).attr("class","left extra").text(A.text):N>200&&e.append("text").attr("x",x-N).attr("y",S).attr("class","right extra").text(A.text)),++_}var F=new Date,$="Heute, "+function(t){return t?t.toLocaleDateString():""}(F),U=m(F),H=e.append("svg:a").attr("xlink:title",$);H.append("title").text($),H.append("line").attr("class","today").attr("x1",U).attr("y1",0).attr("x2",U).attr("y2",f+15),v.attr("height",f+30)}}},ts=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};!function(t){function e(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];t.options.__debug&&console[e].apply(console,n)}t.Widget=oi,t.version="1.276.10",t.options={dataDomain:"",detectDataDomain:!0,__debug:!0},t.initialize=function(e){var n,r;t.options.__debug=!1,void 0===e?(t.options.dataDomain="https://www.northdata.de",t.options.detectDataDomain=!1):(t.options.dataDomain=null!==(n=e.dataDomain)&&void 0!==n?n:t.options.dataDomain,t.options.detectDataDomain=null!==(r=e.detectDataDomain)&&void 0!==r?r:t.options.detectDataDomain)},t.debug=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.apply(void 0,ts(["info"],t,!1))},t.log=e,m(w,{barChart:wo,drillDown:va,graph:ya,dendrogram:ua,history:Bu,vita:Qu,pubTable:Ju,pubShop:Xu,personTable:Yu,sheet:Ku,financials:ga,contact:xo,overview:zu,searchResults:Gu})}(Zu||(Zu={}));var es=Zu,ns={Widget:Zu.Widget,version:Zu.version,initialize:Zu.initialize},rs={NorthData:ns,Bizq:ns}}(),r=r.default}()}));
|
|
1
|
+
/*! northdata-viz V1.278.10 */
|
|
2
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(self,(function(){return function(){var t={100:function(t){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return t[r].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n={};return e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){"use strict";t.exports={Node:n(1),Force:n(2),Distributor:n(3),Renderer:n(10)}},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var r=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),i=function(){function t(e,r,i){n(this,t),this.idealPos=e,this.currentPos=e,this.width=r,this.data=i,this.layerIndex=0}return r(t,[{key:"distanceFrom",value:function(t){var e=this.width/2,n=t.width/2;return Math.max(this.currentPos-e,t.currentPos-n)-Math.min(this.currentPos+e,t.currentPos+n)}},{key:"moveToIdealPosition",value:function(){return this.currentPos=this.idealPos,this}},{key:"displacement",value:function(){return this.idealPos-this.currentPos}},{key:"overlapWithNode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.distanceFrom(t)-e<0}},{key:"overlapWithPoint",value:function(t){var e=this.width/2;return t>=this.currentPos-e&&t<=this.currentPos+e}},{key:"positionBefore",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.currentLeft()-this.width/2-e}},{key:"positionAfter",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.currentRight()+this.width/2+e}},{key:"currentRight",value:function(){return this.currentPos+this.width/2}},{key:"currentLeft",value:function(){return this.currentPos-this.width/2}},{key:"idealRight",value:function(){return this.idealPos+this.width/2}},{key:"idealLeft",value:function(){return this.idealPos-this.width/2}},{key:"createStub",value:function(e){var n=new t(this.idealPos,e,this.data);return n.currentPos=this.currentPos,n.child=this,this.parent=n,n}},{key:"removeStub",value:function(){return this.parent&&(this.parent.child=null,this.parent=null),this}},{key:"isStub",value:function(){return!!this.child}},{key:"getPathToRoot",value:function(){for(var t=[],e=this;e;)t.push(e),e=e.parent;return t}},{key:"getPathFromRoot",value:function(){return this.getPathToRoot().reverse()}},{key:"getPathToRootLength",value:function(){for(var t=0,e=this;e;){var n=e.parent?e.parent.currentPos:e.idealPos;t+=Math.abs(e.currentPos-n),e=e.parent}return t}},{key:"getRoot",value:function(){for(var t=this,e=this;e;)t=e,e=e.parent;return t}},{key:"getLayerIndex",value:function(){return this.layerIndex}},{key:"clone",value:function(){var e=new t(this.idealPos,this.width,this.data);return e.currentPos=this.currentPos,e.layerIndex=this.layerIndex,e}}]),t}();t.exports=i},function(t,e,n){"use strict";var r=n(3),i=n(4),o=n(8),a={nodeSpacing:3,minPos:0,maxPos:null,algorithm:"overlap",removeOverlap:!0,density:.85,stubWidth:1},u=function(t){var e={},n=i.extend({},a),u=new r,s=[],l=null;return e.nodes=function(t){return arguments.length?(s=t,l=[t.concat()],e):s},e.getLayers=function(){return l},e.options=function(t){if(!arguments.length)return n;n=i.extend(n,t);var o=i.pick(n,Object.keys(r.DEFAULT_OPTIONS));return i.isDefined(n.minPos)&&i.isDefined(n.maxPos)?o.layerWidth=n.maxPos-n.minPos:o.layerWidth=null,u.options(o),e},e.options(t),e.compute=function(){var t=i.pick(n,Object.keys(o.DEFAULT_OPTIONS));return s.forEach((function(t){t.removeStub()})),(l=u.distribute(s)).map((function(e,r){e.forEach((function(t){t.layerIndex=r})),n.removeOverlap&&o(e,t)})),e},e.start=function(){console.log("[warning] force.start() is deprecated. Please use force.compute() instead.")},e};u.DEFAULT_OPTIONS=a,t.exports=u},function(t,e,n){"use strict";var r=n(4),i=n(6),o={algorithm:"overlap",layerWidth:1e3,density:.75,nodeSpacing:3,stubWidth:1},a=function(t){var e={};t=r.extend({},o,t),e.options=function(n){return arguments.length?(t=r.extend(t,n),e):t},e.computeRequiredWidth=function(e){return r.sum(e,(function(e){return e.width+t.nodeSpacing}))-t.nodeSpacing},e.maxWidthPerLayer=function(){return t.density*t.layerWidth},e.needToSplit=function(t){return e.estimateRequiredLayers(t)>1},e.estimateRequiredLayers=function(n){return t.layerWidth?Math.ceil(e.computeRequiredWidth(n)/e.maxWidthPerLayer()):1};var n={simple:function(n){for(var r=e.estimateRequiredLayers(n),i=[],o=0;o<r;o++)i.push([]);return n.forEach((function(e,n){var o=n%r;i[o].push(e);for(var a=e,u=o-1;u>=0;u--)a=a.createStub(t.stubWidth),i[u].push(a)})),i},roundRobin:function(t){return[]},overlap:function(n){for(var r=[],i=e.maxWidthPerLayer(),o=n.concat(),a=e.computeRequiredWidth(o);a>i;){e.countIdealOverlaps(o);var u=o.concat(),s=a;for(o=[];u.length>2&&s>i;){u.sort((function(t,e){return e.overlapCount-t.overlapCount}));var l=u.shift();s-=l.width,s+=t.stubWidth,l.overlaps.forEach((function(t){t.overlapCount--})),o.push(l)}r.push(u),a=e.computeRequiredWidth(o)}o.length>0&&r.push(o);for(var c=r.length-1;c>=1;c--)for(var f=r[c],h=0;h<f.length;h++){var d=f[h];if(!d.isStub())for(var p=d,v=c-1;v>=0;v--)p=p.createStub(t.stubWidth),r[v].push(p)}return r}};return e.countIdealOverlaps=function(e){var n=new i(t.layerWidth/2);return e.forEach((function(t){n.add([t.idealLeft(),t.idealRight(),t])})),e.forEach((function(t){var e=n.search(t.idealLeft(),t.idealRight());t.overlaps=e.map((function(t){return t.data[2]})),t.overlapCount=e.length})),e},e.distribute=function(i){if(!i||0===i.length)return[];if("none"==t.algorithm||!r.isDefined(t.algorithm))return[i];if(!e.needToSplit(i))return[i];var o=i.concat().sort((function(t,e){return t.idealPos-e.idealPos}));if("function"==typeof t.algorithm)return t.algorithm(o,t);if(n.hasOwnProperty(t.algorithm))return n[t.algorithm](o);throw"Unknown algorithm: "+t.algorithm},e};a.DEFAULT_OPTIONS=o,t.exports=a},function(t,e,n){"use strict";var r={isDefined:function(t){return null!=t},last:function(t){return t.length>0?t[t.length-1]:null},pick:function(t,e){return e.reduce((function(e,n){return e[n]=t[n],e}),{})},sum:function(t,e){return t.map(e).reduce((function(t,e){return t+e}),0)}};r.extend=n(5),t.exports=r},function(t,e){"use strict";var n="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},r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=function(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===i.call(t)},a=function(t){if(!t||"[object Object]"!==i.call(t))return!1;var e,n=r.call(t,"constructor"),o=t.constructor&&t.constructor.prototype&&r.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!o)return!1;for(e in t);return void 0===e||r.call(t,e)};t.exports=function t(){var e,r,i,u,s,l,c=arguments[0],f=1,h=arguments.length,d=!1;for("boolean"==typeof c?(d=c,c=arguments[1]||{},f=2):("object"!==(void 0===c?"undefined":n(c))&&"function"!=typeof c||null==c)&&(c={});f<h;++f)if(null!=(e=arguments[f]))for(r in e)i=c[r],c!==(u=e[r])&&(d&&u&&(a(u)||(s=o(u)))?(s?(s=!1,l=i&&o(i)?i:[]):l=i&&a(i)?i:{},c[r]=t(d,l,u)):void 0!==u&&(c[r]=u));return c}},function(t,e,n){"use strict";function r(t,e){if(e||(e={}),this.startKey=e.startKey||0,this.endKey=e.endKey||1,this.intervalHash={},this.pointTree=new l({compare:function(t,e){if(null==t)return-1;if(null==e)return 1;var n=t[0]-e[0];return n>0?1:0==n?0:-1}}),this._autoIncrement=0,!t||"number"!=typeof t)throw new Error("you must specify center index as the 2nd argument.");this.root=new u(t,this)}function i(t,e){return e.end<t.idx?(t.left||(t.left=new u(e.start+e.end>>1,this)),i.call(this,t.left,e)):t.idx<e.start?(t.right||(t.right=new u(e.start+e.end>>1,this)),i.call(this,t.right,e)):t.insert(e)}function o(t,e,n){if(t)return e<t.idx?(t.starts.every((function(t){var r=t.start<=e;return r&&n.push(t.result()),r})),o.call(this,t.left,e,n)):e>t.idx?(t.ends.every((function(t){var r=t.end>=e;return r&&n.push(t.result()),r})),o.call(this,t.right,e,n)):void t.starts.map((function(t){n.push(t.result())}))}function a(t,e,n){if(e-t<=0)throw new Error("end must be greater than start. start: "+t+", end: "+e);var r={},i=[];o.call(this,this.root,t+e>>1,i,!0),i.forEach((function(t){r[t.id]=!0}));for(var a=this.pointTree.bsearch([t,null]),u=this.pointTree;a>=0&&u[a][0]==t;)a--;var s=this.pointTree.bsearch([e,null]);if(s>=0){for(var l=u.length-1;s<=l&&u[s][0]<=e;)s++;u.slice(a+1,s).forEach((function(t){var e=t[1];r[e]=!0}),this),Object.keys(r).forEach((function(r){var i=this.intervalHash[r];n.push(i.result(t,e))}),this)}}function u(t){this.idx=t,this.starts=new l({compare:function(t,e){if(null==t)return-1;if(null==e)return 1;var n=t.start-e.start;return n>0?1:0==n?0:-1}}),this.ends=new l({compare:function(t,e){if(null==t)return-1;if(null==e)return 1;var n=t.end-e.end;return n<0?1:0==n?0:-1}})}function s(t,e,n,r){if(this.id=e,this.start=t[n],this.end=t[r],this.data=t,"number"!=typeof this.start||"number"!=typeof this.end)throw new Error("start, end must be number. start: "+this.start+", end: "+this.end);if(this.start>=this.end)throw new Error("start must be smaller than end. start: "+this.start+", end: "+this.end)}var l=n(7);r.prototype.add=function(t,e){if(this.intervalHash[e])throw new Error("id "+e+" is already registered.");if(null==e){for(;this.intervalHash[this._autoIncrement];)this._autoIncrement++;e=this._autoIncrement}var n=new s(t,e,this.startKey,this.endKey);this.pointTree.insert([n.start,e]),this.pointTree.insert([n.end,e]),this.intervalHash[e]=n,this._autoIncrement++,i.call(this,this.root,n)},r.prototype.search=function(t,e){var n=[];if("number"!=typeof t)throw new Error(t+": invalid input");if(null==e)o.call(this,this.root,t,n);else{if("number"!=typeof e)throw new Error(t+","+e+": invalid input");a.call(this,t,e,n)}return n},r.prototype.remove=function(t){},u.prototype.insert=function(t){this.starts.insert(t),this.ends.insert(t)},s.prototype.result=function(t,e){var n={id:this.id,data:this.data};if("number"==typeof t&&"number"==typeof e){var r=Math.max(this.start,t),i=Math.min(this.end,e)-r;n.rate1=i/(e-t),n.rate2=i/(this.end-this.start)}return n},t.exports=r},function(t,e){"use strict";var n="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},r=function t(){var e=null,r={},i=arguments;["0","1"].forEach((function(t){var o=i[t];Array.isArray(o)?e=o:o&&"object"==(void 0===o?"undefined":n(o))&&(r=o)})),"function"==typeof r.filter&&(this._filter=r.filter),"function"==typeof r.compare?this._compare=r.compare:"string"==typeof r.compare&&t.compares[r.compare]&&(this._compare=t.compares[r.compare]),this._unique=!!r.unique,r.resume&&e?e.forEach((function(t,e){this.push(t)}),this):e&&this.insert.apply(this,e)};r.create=function(t,e){return new r(t,e)},r.prototype=new Array,r.prototype.constructor=Array.prototype.constructor,r.prototype.insertOne=function(t){var e=this.bsearch(t);return(!this._unique||null==this.key(t,e))&&!!this._filter(t,e)&&(this.splice(e+1,0,t),e+1)},r.prototype.insert=function(){return Array.prototype.map.call(arguments,(function(t){return this.insertOne(t)}),this)},r.prototype.remove=function(t){return this.splice(t,1),this},r.prototype.bsearch=function(t){if(!this.length)return-1;for(var e,n=0,r=this.length;r-n>1;){var i=this[e=Math.floor((n+r)/2)],o=this._compare(t,i);if(0==o)return e;o>0?n=e:r=e}return 0==n&&this._compare(this[0],t)>0?-1:n},r.prototype.key=function(t,e){null==e&&(e=this.bsearch(t));var n=e;if(-1==n||this._compare(this[n],t)<0)return n+1<this.length&&0==this._compare(this[n+1],t)?n+1:null;for(;n>=1&&0==this._compare(this[n-1],t);)n--;return n},r.prototype.keys=function(t,e){var n=[];null==e&&(e=this.bsearch(t));for(var r=e;r>=0&&0==this._compare(this[r],t);)n.push(r),r--;var i=this.length;for(r=e+1;r<i&&0==this._compare(this[r],t);)n.push(r),r++;return n.length?n:null},r.prototype.unique=function(t){if(t)return this.filter((function(t,e){return 0==e||0!=this._compare(this[e-1],t)}),this);var e=0;return this.map((function(t,n){return 0==n||0!=this._compare(this[n-1],t)?null:n-e++}),this).forEach((function(t){null!=t&&this.remove(t)}),this),this},r.prototype.toArray=function(){return this.slice()},r.prototype._filter=function(t,e){return!0},r.compares={number:function(t,e){var n=t-e;return n>0?1:0==n?0:-1},string:function(t,e){return t>e?1:t==e?0:-1}},r.prototype._compare=r.compares.string,t.exports=r},function(t,e,n){"use strict";function r(t){var e=new a.Variable(t.targetPos);return e.node=t,e}function i(t,e){if(t.length>0){e=o.extend(u,e),t.forEach((function(t,e){t.targetPos=t.parent?t.parent.currentPos:t.idealPos,t.index=e}));for(var n=t.concat().sort((function(t,e){var n=t.targetPos-e.targetPos;if(0!==n)return n;var r=t.isStub()-e.isStub();return 0!==r?r:t.index-e.index})).map(r),i=[],s=1;s<n.length;s++){var l=n[s-1],c=n[s],f=void 0;f=l.node.isStub()&&c.node.isStub()?(l.node.width+c.node.width)/2+e.lineSpacing:(l.node.width+c.node.width)/2+e.nodeSpacing,i.push(new a.Constraint(l,c,f))}if(o.isDefined(e.minPos)){var h=new a.Variable(e.minPos,1e10),d=n[0];i.push(new a.Constraint(h,d,d.node.width/2)),n.unshift(h)}if(o.isDefined(e.maxPos)){var p=new a.Variable(e.maxPos,1e10),v=o.last(n);i.push(new a.Constraint(v,p,v.node.width/2)),n.push(p)}new a.Solver(n,i).solve(),n.filter((function(t){return t.node})).map((function(t){return t.node.currentPos=Math.round(t.position()),t}))}return t}var o=n(4),a=n(9),u={lineSpacing:2,nodeSpacing:3,minPos:0,maxPos:null};i.DEFAULT_OPTIONS=u,t.exports=i},function(t,e){"use strict";var n={},r=function(){function t(t){this.scale=t,this.AB=0,this.AD=0,this.A2=0}return t.prototype.addVariable=function(t){var e=this.scale/t.scale,n=t.offset/t.scale,r=t.weight;this.AB+=r*e*n,this.AD+=r*e*t.desiredPosition,this.A2+=r*e*e},t.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},t}();n.PositionStats=r;var i=function(){function t(t,e,n,r){void 0===r&&(r=!1),this.left=t,this.right=e,this.gap=n,this.equality=r,this.active=!1,this.unsatisfiable=!1,this.left=t,this.right=e,this.gap=n,this.equality=r}return t.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},t}();n.Constraint=i;var o=function(){function t(t,e,n){void 0===e&&(e=1),void 0===n&&(n=1),this.desiredPosition=t,this.weight=e,this.scale=n,this.offset=0}return t.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},t.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},t.prototype.visitNeighbours=function(t,e){var n=function(n,r){return n.active&&t!==r&&e(n,r)};this.cOut.forEach((function(t){return n(t,t.right)})),this.cIn.forEach((function(t){return n(t,t.left)}))},t}();n.Variable=o;var a=function(){function t(t){this.vars=[],t.offset=0,this.ps=new r(t.scale),this.addVariable(t)}return t.prototype.addVariable=function(t){t.block=this,this.vars.push(t),this.ps.addVariable(t),this.posn=this.ps.getPosn()},t.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var t=0,e=this.vars.length;t<e;++t)this.ps.addVariable(this.vars[t]);this.posn=this.ps.getPosn()},t.prototype.compute_lm=function(t,e,n){var r=this,i=t.dfdv();return t.visitNeighbours(e,(function(e,o){var a=r.compute_lm(o,t,n);o===e.right?(i+=a*e.left.scale,e.lm=a):(i+=a*e.right.scale,e.lm=-a),n(e)})),i/t.scale},t.prototype.populateSplitBlock=function(t,e){var n=this;t.visitNeighbours(e,(function(e,r){r.offset=t.offset+(r===e.right?e.gap:-e.gap),n.addVariable(r),n.populateSplitBlock(r,t)}))},t.prototype.traverse=function(t,e,n,r){var i=this;void 0===n&&(n=this.vars[0]),void 0===r&&(r=null),n.visitNeighbours(r,(function(r,o){e.push(t(r)),i.traverse(t,e,o,n)}))},t.prototype.findMinLM=function(){var t=null;return this.compute_lm(this.vars[0],null,(function(e){!e.equality&&(null===t||e.lm<t.lm)&&(t=e)})),t},t.prototype.findMinLMBetween=function(t,e){this.compute_lm(t,null,(function(){}));var n=null;return this.findPath(t,null,e,(function(t,e){!t.equality&&t.right===e&&(null===n||t.lm<n.lm)&&(n=t)})),n},t.prototype.findPath=function(t,e,n,r){var i=this,o=!1;return t.visitNeighbours(e,(function(e,a){o||a!==n&&!i.findPath(a,t,n,r)||(o=!0,r(e,a))})),o},t.prototype.isActiveDirectedPathBetween=function(t,e){if(t===e)return!0;for(var n=t.cOut.length;n--;){var r=t.cOut[n];if(r.active&&this.isActiveDirectedPathBetween(r.right,e))return!0}return!1},t.split=function(e){return e.active=!1,[t.createSplitBlock(e.left),t.createSplitBlock(e.right)]},t.createSplitBlock=function(e){var n=new t(e);return n.populateSplitBlock(e,null),n},t.prototype.splitBetween=function(e,n){var r=this.findMinLMBetween(e,n);if(null!==r){var i=t.split(r);return{constraint:r,lb:i[0],rb:i[1]}}return null},t.prototype.mergeAcross=function(t,e,n){e.active=!0;for(var r=0,i=t.vars.length;r<i;++r){var o=t.vars[r];o.offset+=n,this.addVariable(o)}this.posn=this.ps.getPosn()},t.prototype.cost=function(){for(var t=0,e=this.vars.length;e--;){var n=this.vars[e],r=n.position()-n.desiredPosition;t+=r*r*n.weight}return t},t}();n.Block=a;var u=function(){function t(t){this.vs=t;var e=t.length;for(this.list=new Array(e);e--;){var n=new a(t[e]);this.list[e]=n,n.blockInd=e}}return t.prototype.cost=function(){for(var t=0,e=this.list.length;e--;)t+=this.list[e].cost();return t},t.prototype.insert=function(t){t.blockInd=this.list.length,this.list.push(t)},t.prototype.remove=function(t){var e=this.list.length-1,n=this.list[e];this.list.length=e,t!==n&&(this.list[t.blockInd]=n,n.blockInd=t.blockInd)},t.prototype.merge=function(t){var e=t.left.block,n=t.right.block,r=t.right.offset-t.left.offset-t.gap;e.vars.length<n.vars.length?(n.mergeAcross(e,t,r),this.remove(e)):(e.mergeAcross(n,t,-r),this.remove(n))},t.prototype.forEach=function(t){this.list.forEach(t)},t.prototype.updateBlockPositions=function(){this.list.forEach((function(t){return t.updateWeightedPosition()}))},t.prototype.split=function(t){var e=this;this.updateBlockPositions(),this.list.forEach((function(n){var r=n.findMinLM();null!==r&&r.lm<s.LAGRANGIAN_TOLERANCE&&(n=r.left.block,a.split(r).forEach((function(t){return e.insert(t)})),e.remove(n),t.push(r))}))},t}();n.Blocks=u;var s=function(){function t(t,e){this.vs=t,this.cs=e,this.vs=t,t.forEach((function(t){t.cIn=[],t.cOut=[]})),this.cs=e,e.forEach((function(t){t.left.cOut.push(t),t.right.cIn.push(t)})),this.inactive=e.map((function(t){return t.active=!1,t})),this.bs=null}return t.prototype.cost=function(){return this.bs.cost()},t.prototype.setStartingPositions=function(t){this.inactive=this.cs.map((function(t){return t.active=!1,t})),this.bs=new u(this.vs),this.bs.forEach((function(e,n){return e.posn=t[n]}))},t.prototype.setDesiredPositions=function(t){this.vs.forEach((function(e,n){return e.desiredPosition=t[n]}))},t.prototype.mostViolated=function(){for(var e=Number.MAX_VALUE,n=null,r=this.inactive,i=r.length,o=i,a=0;a<i;++a){var u=r[a];if(!u.unsatisfiable){var s=u.slack();if((u.equality||s<e)&&(e=s,n=u,o=a,u.equality))break}}return o!==i&&(e<t.ZERO_UPPERBOUND&&!n.active||n.equality)&&(r[o]=r[i-1],r.length=i-1),n},t.prototype.satisfy=function(){null==this.bs&&(this.bs=new u(this.vs)),this.bs.split(this.inactive);for(var e=null;(e=this.mostViolated())&&(e.equality||e.slack()<t.ZERO_UPPERBOUND&&!e.active);){var n=e.left.block;if(n!==e.right.block)this.bs.merge(e);else{if(n.isActiveDirectedPathBetween(e.right,e.left)){e.unsatisfiable=!0;continue}var r=n.splitBetween(e.left,e.right);if(null===r){e.unsatisfiable=!0;continue}this.bs.insert(r.lb),this.bs.insert(r.rb),this.bs.remove(n),this.inactive.push(r.constraint),e.slack()>=0?this.inactive.push(e):this.bs.merge(e)}}},t.prototype.solve=function(){this.satisfy();for(var t=Number.MAX_VALUE,e=this.bs.cost();Math.abs(t-e)>1e-4;)this.satisfy(),t=e,e=this.bs.cost();return e},t.LAGRANGIAN_TOLERANCE=-1e-4,t.ZERO_UPPERBOUND=-1e-10,t}();n.Solver=s,t.exports=n},function(t,e,n){"use strict";function r(t){this.options=l.extend({layerGap:60,nodeHeight:10,direction:"down"},t)}function i(t){return"L "+t.join(" ")}function o(t){return"M "+t.join(" ")}function a(t,e,n){return"C "+t.join(" ")+" "+e.join(" ")+" "+n.join(" ")}function u(t,e){var n=(t[1]+e[1])/2;return a([t[0],n],[e[0],n],e)}function s(t,e){var n=(t[0]+e[0])/2;return a([n,t[1]],[n,e[1]],e)}var l=n(4);r.lineTo=i,r.moveTo=o,r.curveTo=a,r.vCurveBetween=u,r.hCurveBetween=s,r.prototype.getWaypoints=function(t){var e=this.options,n=e.direction,r=t.getPathFromRoot(),i=e.nodeHeight+e.layerGap;return"left"===n?[[[0,r[0].idealPos]]].concat(r.map((function(t,n){var r=i*(n+1)*-1;return[[r+e.nodeHeight,t.currentPos],[r,t.currentPos]]}))):"right"===n?[[[0,r[0].idealPos]]].concat(r.map((function(t,n){var r=i*(n+1);return[[r-e.nodeHeight,t.currentPos],[r,t.currentPos]]}))):"up"===n?[[[r[0].idealPos,0]]].concat(r.map((function(t,n){var r=i*(n+1)*-1;return[[t.currentPos,r+e.nodeHeight],[t.currentPos,r]]}))):[[[r[0].idealPos,0]]].concat(r.map((function(t,n){var r=i*(n+1);return[[t.currentPos,r-e.nodeHeight],[t.currentPos,r]]})))},r.prototype.layout=function(t){var e=this.options,n=e.layerGap+e.nodeHeight;switch(e.direction){case"left":t.forEach((function(t){var r=t.getLayerIndex()*n+e.layerGap;t.x=-r-e.nodeHeight,t.y=t.currentPos,t.dx=e.nodeHeight,t.dy=t.width}));break;case"right":t.forEach((function(t){var r=t.getLayerIndex()*n+e.layerGap;t.x=r,t.y=t.currentPos,t.dx=e.nodeHeight,t.dy=t.width}));break;case"up":t.forEach((function(t){var r=t.getLayerIndex()*n+e.layerGap;t.x=t.currentPos,t.y=-r-e.nodeHeight,t.dx=t.width,t.dy=e.nodeHeight}));break;default:t.forEach((function(t){var r=t.getLayerIndex()*n+e.layerGap;t.x=t.currentPos,t.y=r,t.dx=t.width,t.dy=e.nodeHeight}))}return t},r.prototype.generatePath=function(t){var e=this.options.direction,n=this.getWaypoints(t,e),r=[o(n[0][0])];return"left"===e||"right"===e?n.reduce((function(t,e,o){return r.push(s(t[t.length-1],e[0])),o<n.length-1&&r.push(i(e[1])),e})):n.reduce((function(t,e,o){return r.push(u(t[t.length-1],e[0])),o<n.length-1&&r.push(i(e[1])),e})),r.join(" ")},t.exports=r}])},152:function(t,e,n){var r,i;r=function(){"use strict";function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}function e(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function r(t,e,n){return e=l(e),h(t,f()?Reflect.construct(e,n||[],l(t).constructor):e.apply(t,n))}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,y(r.key),r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function u(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=m(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},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 o,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw o}}}}function s(){return s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=p(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}},s.apply(null,arguments)}function l(t){return l=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},l(t)}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}function h(t,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return e(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function p(t,e){for(;!{}.hasOwnProperty.call(t,e)&&null!==(t=l(t)););return t}function v(t,e,n,r){var i=s(l(1&r?t.prototype:t),e,n);return 2&r&&"function"==typeof i?function(t){return i.apply(n,t)}:i}function g(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}function y(t){var e=g(t,"string");return"symbol"==typeof e?e:e+""}function m(e,n){if(e){if("string"==typeof e)return t(e,n);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}function b(t){var e;try{e=new Event("abort")}catch(t){"undefined"!=typeof document?document.createEvent?(e=document.createEvent("Event")).initEvent("abort",!1,!1):(e=document.createEventObject()).type="abort":e={type:"abort",bubbles:!1,cancelable:!1}}return e.reason=t,e}function w(t){if(void 0===t)if("undefined"==typeof document)(t=new Error("This operation was aborted")).name="AbortError";else try{t=new DOMException("signal is aborted without reason"),Object.defineProperty(t,"name",{value:"AbortError"})}catch(e){(t=new Error("This operation was aborted")).name="AbortError"}return t}!function(t){t.AbortSignal,t.AbortController}("undefined"!=typeof self?self:n.g);var x=function(){function t(){i(this,t),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return a(t,[{key:"addEventListener",value:function(t,e,n){t in this.listeners||(this.listeners[t]=[]),this.listeners[t].push({callback:e,options:n})}},{key:"removeEventListener",value:function(t,e){if(t in this.listeners)for(var n=this.listeners[t],r=0,i=n.length;r<i;r++)if(n[r].callback===e)return void n.splice(r,1)}},{key:"dispatchEvent",value:function(t){var e=this;if(t.type in this.listeners){for(var n=this.listeners[t.type].slice(),r=function(){var r=n[i];try{r.callback.call(e,t)}catch(t){Promise.resolve().then((function(){throw t}))}r.options&&r.options.once&&e.removeEventListener(t.type,r.callback)},i=0,o=n.length;i<o;i++)r();return!t.defaultPrevented}}}])}(),_=function(t){function e(){var t;return i(this,e),(t=r(this,e)).listeners||x.call(t),Object.defineProperty(t,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(t,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(t,"reason",{value:void 0,writable:!0,configurable:!0}),t}return c(e,t),a(e,[{key:"toString",value:function(){return"[object AbortSignal]"}},{key:"dispatchEvent",value:function(t){"abort"===t.type&&(this.aborted=!0,"function"==typeof this.onabort&&this.onabort.call(this,t)),v(e,"dispatchEvent",this,3)([t])}},{key:"throwIfAborted",value:function(){var t=this.aborted,e=this.reason;if(t)throw void 0===e?"Aborted":e}}],[{key:"timeout",value:function(t){var e=new k;return setTimeout((function(){return e.abort(new DOMException("This signal is timeout in ".concat(t,"ms"),"TimeoutError"))}),t),e.signal}},{key:"any",value:function(t){var e=new k;function n(){e.abort(this.reason),r()}function r(){var e,r=u(t);try{for(r.s();!(e=r.n()).done;)e.value.removeEventListener("abort",n)}catch(t){r.e(t)}finally{r.f()}}var i,o=u(t);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(a.aborted){e.abort(a.reason);break}a.addEventListener("abort",n)}}catch(t){o.e(t)}finally{o.f()}return e.signal}}])}(x),k=function(){function t(){i(this,t),Object.defineProperty(this,"signal",{value:new _,writable:!0,configurable:!0})}return a(t,[{key:"abort",value:function(t){var e=w(t),n=b(e);this.signal.reason=e,this.signal.dispatchEvent(n)}},{key:"toString",value:function(){return"[object AbortController]"}}])}();function M(t){return t.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log("__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill"),!0):"function"==typeof t.Request&&!t.Request.prototype.hasOwnProperty("signal")||!t.AbortController}function A(t){"function"==typeof t&&(t={fetch:t});var e=t,n=e.fetch,r=e.Request,i=void 0===r?n.Request:r,o=e.AbortController,a=e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL,u=void 0!==a&&a;if(!M({fetch:n,Request:i,AbortController:o,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:u}))return{fetch:n,Request:s};var s=i;(s&&!s.prototype.hasOwnProperty("signal")||u)&&((s=function(t,e){var n;e&&e.signal&&(n=e.signal,delete e.signal);var r=new i(t,e);return n&&Object.defineProperty(r,"signal",{writable:!1,enumerable:!1,configurable:!0,value:n}),r}).prototype=i.prototype);var l=n;return{fetch:function(t,e){var n=s&&s.prototype.isPrototypeOf(t)?t.signal:e?e.signal:void 0;if(n){var r;try{r=new DOMException("Aborted","AbortError")}catch(t){(r=new Error("Aborted")).name="AbortError"}if(n.aborted)return Promise.reject(r);var i=new Promise((function(t,e){n.addEventListener("abort",(function(){return e(r)}),{once:!0})}));return e&&e.signal&&delete e.signal,Promise.race([i,l(t,e)])}return l(t,e)},Request:s}}"undefined"!=typeof Symbol&&Symbol.toStringTag&&(k.prototype[Symbol.toStringTag]="AbortController",_.prototype[Symbol.toStringTag]="AbortSignal"),function(t){if(M(t))if(t.fetch){var e=A(t),n=e.fetch,r=e.Request;t.fetch=n,t.Request=r,Object.defineProperty(t,"AbortController",{writable:!0,enumerable:!1,configurable:!0,value:k}),Object.defineProperty(t,"AbortSignal",{writable:!0,enumerable:!1,configurable:!0,value:_})}else console.warn("fetch() is not available, cannot install abortcontroller-polyfill")}("undefined"!=typeof self?self:n.g)},void 0===(i="function"==typeof r?r.call(e,n,e,t):r)||(t.exports=i)},181:function(t,e,n){var r=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,u=parseInt,s="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,l="object"==typeof self&&self&&self.Object===Object&&self,c=s||l||Function("return this")(),f=Object.prototype.toString,h=Math.max,d=Math.min,p=function(){return c.Date.now()};function v(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function g(t){if("number"==typeof t)return t;if(function(t){return"symbol"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Symbol]"==f.call(t)}(t))return NaN;if(v(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=v(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(r,"");var n=o.test(t);return n||a.test(t)?u(t.slice(2),n?2:8):i.test(t)?NaN:+t}t.exports=function(t,e,n){var r,i,o,a,u,s,l=0,c=!1,f=!1,y=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(e){var n=r,o=i;return r=i=void 0,l=e,a=t.apply(o,n)}function b(t){var n=t-s;return void 0===s||n>=e||n<0||f&&t-l>=o}function w(){var t=p();if(b(t))return x(t);u=setTimeout(w,function(t){var n=e-(t-s);return f?d(n,o-(t-l)):n}(t))}function x(t){return u=void 0,y&&r?m(t):(r=i=void 0,a)}function _(){var t=p(),n=b(t);if(r=arguments,i=this,s=t,n){if(void 0===u)return function(t){return l=t,u=setTimeout(w,e),c?m(t):a}(s);if(f)return u=setTimeout(w,e),m(s)}return void 0===u&&(u=setTimeout(w,e)),a}return e=g(e)||0,v(n)&&(c=!!n.leading,o=(f="maxWait"in n)?h(g(n.maxWait)||0,e):o,y="trailing"in n?!!n.trailing:y),_.cancel=function(){void 0!==u&&clearTimeout(u),l=0,r=s=i=u=void 0},_.flush=function(){return void 0===u?a:x(p())},_}},389:function(){"use strict";"function"!=typeof Object.assign&&(Object.assign=function(t){if(console.info("installing Object.assign polyfill"),null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}),String.prototype.includes||(console.info("installing String.includes polyfill"),String.prototype.includes=function(t,e){return"number"!=typeof e&&(e=0),!(e+t.length>this.length)&&-1!==this.indexOf(t,e)}),String.prototype.startsWith||(String.prototype.startsWith=function(t,e){return this.substr(!e||e<0?0:+e,t.length)===t})},828:function(){self.fetch||(self.fetch=function(t,e){return e=e||{},new Promise((function(n,r){var i=new XMLHttpRequest,o=[],a={},u=function t(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:t,headers:{keys:function(){return o},entries:function(){return o.map((function(t){return[t,i.getResponseHeader(t)]}))},get:function(t){return i.getResponseHeader(t)},has:function(t){return null!=i.getResponseHeader(t)}}}};for(var s in i.open(e.method||"get",t,!0),i.onload=function(){i.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,(function(t,e){a[e]||o.push(a[e]=e)})),n(u())},i.onerror=r,i.withCredentials="include"==e.credentials,e.headers)i.setRequestHeader(s,e.headers[s]);i.send(e.body||null)}))})}},e={};function n(r){var i=e[r];if(void 0!==i)return i.exports;var o=e[r]={exports:{}};return t[r].call(o.exports,o,o.exports,n),o.exports}n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,{a:e}),e},n.d=function(t,e){for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var r={};return function(){"use strict";n.d(r,{default:function(){return rs}});n(389);var t=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){return e.reject(n)}))}))};var e=function(t){return new this((function(e,n){if(!t||void 0===t.length)return n(new TypeError(typeof t+" "+t+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var r=Array.prototype.slice.call(t);if(0===r.length)return e([]);var i=r.length;function o(t,n){if(n&&("object"==typeof n||"function"==typeof n)){var a=n.then;if("function"==typeof a)return void a.call(n,(function(e){o(t,e)}),(function(n){r[t]={status:"rejected",reason:n},0==--i&&e(r)}))}r[t]={status:"fulfilled",value:n},0==--i&&e(r)}for(var a=0;a<r.length;a++)o(a,r[a])}))};function i(t,e){this.name="AggregateError",this.errors=t,this.message=e||""}i.prototype=Error.prototype;var o=function(t){var e=this;return new e((function(n,r){if(!t||void 0===t.length)return r(new TypeError("Promise.any accepts an array"));var o=Array.prototype.slice.call(t);if(0===o.length)return r();for(var a=[],u=0;u<o.length;u++)try{e.resolve(o[u]).then(n).catch((function(t){a.push(t),a.length===o.length&&r(new i(a,"All promises were rejected"))}))}catch(t){r(t)}}))},a=setTimeout;function u(t){return Boolean(t&&void 0!==t.length)}function s(){}function l(t){if(!(this instanceof l))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],v(t,this)}function c(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,l._immediateFn((function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(t){return void h(e.promise,t)}f(e.promise,r)}else(1===t._state?f:h)(e.promise,t._value)}))):t._deferreds.push(e)}function f(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof l)return t._state=3,t._value=e,void d(t);if("function"==typeof n)return void v((r=n,i=e,function(){r.apply(i,arguments)}),t)}t._state=1,t._value=e,d(t)}catch(e){h(t,e)}var r,i}function h(t,e){t._state=2,t._value=e,d(t)}function d(t){2===t._state&&0===t._deferreds.length&&l._immediateFn((function(){t._handled||l._unhandledRejectionFn(t._value)}));for(var e=0,n=t._deferreds.length;e<n;e++)c(t,t._deferreds[e]);t._deferreds=null}function p(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function v(t,e){var n=!1;try{t((function(t){n||(n=!0,f(e,t))}),(function(t){n||(n=!0,h(e,t))}))}catch(t){if(n)return;n=!0,h(e,t)}}l.prototype.catch=function(t){return this.then(null,t)},l.prototype.then=function(t,e){var n=new this.constructor(s);return c(this,new p(t,e,n)),n},l.prototype.finally=t,l.all=function(t){return new l((function(e,n){if(!u(t))return n(new TypeError("Promise.all accepts an array"));var r=Array.prototype.slice.call(t);if(0===r.length)return e([]);var i=r.length;function o(t,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var u=a.then;if("function"==typeof u)return void u.call(a,(function(e){o(t,e)}),n)}r[t]=a,0==--i&&e(r)}catch(t){n(t)}}for(var a=0;a<r.length;a++)o(a,r[a])}))},l.any=o,l.allSettled=e,l.resolve=function(t){return t&&"object"==typeof t&&t.constructor===l?t:new l((function(e){e(t)}))},l.reject=function(t){return new l((function(e,n){n(t)}))},l.race=function(t){return new l((function(e,n){if(!u(t))return n(new TypeError("Promise.race accepts an array"));for(var r=0,i=t.length;r<i;r++)l.resolve(t[r]).then(e,n)}))},l._immediateFn="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){a(t,0)},l._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};var g=l,y=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw new Error("unable to locate global object")}();"function"!=typeof y.Promise?y.Promise=g:(y.Promise.prototype.finally||(y.Promise.prototype.finally=t),y.Promise.allSettled||(y.Promise.allSettled=e),y.Promise.any||(y.Promise.any=o));n(828),n(152);function m(t,e){return Object.assign(t,e),t}var b={draw:function(){}},w={};function x(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function _(t,e){var n=Object.create(t.prototype);for(var r in e)n[r]=e[r];return n}function k(){}var M=.7,A=1/M,T="\\s*([+-]?\\d+)\\s*",S="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",P="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",C=/^#([0-9a-f]{3,8})$/,E=new RegExp(`^rgb\\(${T},${T},${T}\\)$`),D=new RegExp(`^rgb\\(${P},${P},${P}\\)$`),O=new RegExp(`^rgba\\(${T},${T},${T},${S}\\)$`),N=new RegExp(`^rgba\\(${P},${P},${P},${S}\\)$`),j=new RegExp(`^hsl\\(${S},${P},${P}\\)$`),L=new RegExp(`^hsla\\(${S},${P},${P},${S}\\)$`),R={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};function F(){return this.rgb().formatHex()}function $(){return this.rgb().formatRgb()}function U(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=C.exec(t))?(n=e[1].length,e=parseInt(e[1],16),6===n?H(e):3===n?new V(e>>8&15|e>>4&240,e>>4&15|240&e,(15&e)<<4|15&e,1):8===n?I(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):4===n?I(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|240&e,((15&e)<<4|15&e)/255):null):(e=E.exec(t))?new V(e[1],e[2],e[3],1):(e=D.exec(t))?new V(255*e[1]/100,255*e[2]/100,255*e[3]/100,1):(e=O.exec(t))?I(e[1],e[2],e[3],e[4]):(e=N.exec(t))?I(255*e[1]/100,255*e[2]/100,255*e[3]/100,e[4]):(e=j.exec(t))?J(e[1],e[2]/100,e[3]/100,1):(e=L.exec(t))?J(e[1],e[2]/100,e[3]/100,e[4]):R.hasOwnProperty(t)?H(R[t]):"transparent"===t?new V(NaN,NaN,NaN,0):null}function H(t){return new V(t>>16&255,t>>8&255,255&t,1)}function I(t,e,n,r){return r<=0&&(t=e=n=NaN),new V(t,e,n,r)}function q(t,e,n,r){return 1===arguments.length?((i=t)instanceof k||(i=U(i)),i?new V((i=i.rgb()).r,i.g,i.b,i.opacity):new V):new V(t,e,n,null==r?1:r);var i}function V(t,e,n,r){this.r=+t,this.g=+e,this.b=+n,this.opacity=+r}function B(){return`#${X(this.r)}${X(this.g)}${X(this.b)}`}function z(){const t=Y(this.opacity);return`${1===t?"rgb(":"rgba("}${W(this.r)}, ${W(this.g)}, ${W(this.b)}${1===t?")":`, ${t})`}`}function Y(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function W(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function X(t){return((t=W(t))<16?"0":"")+t.toString(16)}function J(t,e,n,r){return r<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new K(t,e,n,r)}function G(t){if(t instanceof K)return new K(t.h,t.s,t.l,t.opacity);if(t instanceof k||(t=U(t)),!t)return new K;if(t instanceof K)return t;var e=(t=t.rgb()).r/255,n=t.g/255,r=t.b/255,i=Math.min(e,n,r),o=Math.max(e,n,r),a=NaN,u=o-i,s=(o+i)/2;return u?(a=e===o?(n-r)/u+6*(n<r):n===o?(r-e)/u+2:(e-n)/u+4,u/=s<.5?o+i:2-o-i,a*=60):u=s>0&&s<1?0:a,new K(a,u,s,t.opacity)}function Z(t,e,n,r){return 1===arguments.length?G(t):new K(t,e,n,null==r?1:r)}function K(t,e,n,r){this.h=+t,this.s=+e,this.l=+n,this.opacity=+r}function Q(t){return(t=(t||0)%360)<0?t+360:t}function tt(t){return Math.max(0,Math.min(1,t||0))}function et(t,e,n){return 255*(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)}function nt(){}function rt(t){return null==t?nt:function(){return this.querySelector(t)}}function it(t){return null==t?[]:Array.isArray(t)?t:Array.from(t)}function ot(){return[]}function at(t){return null==t?ot:function(){return this.querySelectorAll(t)}}function ut(t){return function(){return this.matches(t)}}function st(t){return function(e){return e.matches(t)}}x(k,U,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:F,formatHex:F,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return G(this).formatHsl()},formatRgb:$,toString:$}),x(V,q,_(k,{brighter(t){return t=null==t?A:Math.pow(A,t),new V(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=null==t?M:Math.pow(M,t),new V(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new V(W(this.r),W(this.g),W(this.b),Y(this.opacity))},displayable(){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:B,formatHex:B,formatHex8:function(){return`#${X(this.r)}${X(this.g)}${X(this.b)}${X(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:z,toString:z})),x(K,Z,_(k,{brighter(t){return t=null==t?A:Math.pow(A,t),new K(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=null==t?M:Math.pow(M,t),new K(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+360*(this.h<0),e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*e,i=2*n-r;return new V(et(t>=240?t-240:t+120,i,r),et(t,i,r),et(t<120?t+240:t-120,i,r),this.opacity)},clamp(){return new K(Q(this.h),tt(this.s),tt(this.l),Y(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=Y(this.opacity);return`${1===t?"hsl(":"hsla("}${Q(this.h)}, ${100*tt(this.s)}%, ${100*tt(this.l)}%${1===t?")":`, ${t})`}`}}));var lt=Array.prototype.find;function ct(){return this.firstElementChild}var ft=Array.prototype.filter;function ht(){return Array.from(this.children)}function dt(t){return new Array(t.length)}function pt(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}function vt(t,e,n,r,i,o){for(var a,u=0,s=e.length,l=o.length;u<l;++u)(a=e[u])?(a.__data__=o[u],r[u]=a):n[u]=new pt(t,o[u]);for(;u<s;++u)(a=e[u])&&(i[u]=a)}function gt(t,e,n,r,i,o,a){var u,s,l,c=new Map,f=e.length,h=o.length,d=new Array(f);for(u=0;u<f;++u)(s=e[u])&&(d[u]=l=a.call(s,s.__data__,u,e)+"",c.has(l)?i[u]=s:c.set(l,s));for(u=0;u<h;++u)l=a.call(t,o[u],u,o)+"",(s=c.get(l))?(r[u]=s,s.__data__=o[u],c.delete(l)):n[u]=new pt(t,o[u]);for(u=0;u<f;++u)(s=e[u])&&c.get(d[u])===s&&(i[u]=s)}function yt(t){return t.__data__}function mt(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}function bt(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}pt.prototype={constructor:pt,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var wt="http://www.w3.org/1999/xhtml",xt={svg:"http://www.w3.org/2000/svg",xhtml:wt,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function _t(t){var e=t+="",n=e.indexOf(":");return n>=0&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),xt.hasOwnProperty(e)?{space:xt[e],local:t}:t}function kt(t){return function(){this.removeAttribute(t)}}function Mt(t){return function(){this.removeAttributeNS(t.space,t.local)}}function At(t,e){return function(){this.setAttribute(t,e)}}function Tt(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function St(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttribute(t):this.setAttribute(t,n)}}function Pt(t,e){return function(){var n=e.apply(this,arguments);null==n?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Ct(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Et(t){return function(){this.style.removeProperty(t)}}function Dt(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Ot(t,e,n){return function(){var r=e.apply(this,arguments);null==r?this.style.removeProperty(t):this.style.setProperty(t,r,n)}}function Nt(t,e){return t.style.getPropertyValue(e)||Ct(t).getComputedStyle(t,null).getPropertyValue(e)}function jt(t){return function(){delete this[t]}}function Lt(t,e){return function(){this[t]=e}}function Rt(t,e){return function(){var n=e.apply(this,arguments);null==n?delete this[t]:this[t]=n}}function Ft(t){return t.trim().split(/^|\s+/)}function $t(t){return t.classList||new Ut(t)}function Ut(t){this._node=t,this._names=Ft(t.getAttribute("class")||"")}function Ht(t,e){for(var n=$t(t),r=-1,i=e.length;++r<i;)n.add(e[r])}function It(t,e){for(var n=$t(t),r=-1,i=e.length;++r<i;)n.remove(e[r])}function qt(t){return function(){Ht(this,t)}}function Vt(t){return function(){It(this,t)}}function Bt(t,e){return function(){(e.apply(this,arguments)?Ht:It)(this,t)}}function zt(){this.textContent=""}function Yt(t){return function(){this.textContent=t}}function Wt(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}function Xt(){this.innerHTML=""}function Jt(t){return function(){this.innerHTML=t}}function Gt(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}function Zt(){this.nextSibling&&this.parentNode.appendChild(this)}function Kt(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Qt(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===wt&&e.documentElement.namespaceURI===wt?e.createElement(t):e.createElementNS(n,t)}}function te(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function ee(t){var e=_t(t);return(e.local?te:Qt)(e)}function ne(){return null}function re(){var t=this.parentNode;t&&t.removeChild(this)}function ie(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function oe(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function ae(t){return function(){var e=this.__on;if(e){for(var n,r=0,i=-1,o=e.length;r<o;++r)n=e[r],t.type&&n.type!==t.type||n.name!==t.name?e[++i]=n:this.removeEventListener(n.type,n.listener,n.options);++i?e.length=i:delete this.__on}}}function ue(t,e,n){return function(){var r,i=this.__on,o=function(t){return function(e){t.call(this,e,this.__data__)}}(e);if(i)for(var a=0,u=i.length;a<u;++a)if((r=i[a]).type===t.type&&r.name===t.name)return this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),void(r.value=e);this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}function se(t,e,n){var r=Ct(t),i=r.CustomEvent;"function"==typeof i?i=new i(e,n):(i=r.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}function le(t,e){return function(){return se(this,t,e)}}function ce(t,e){return function(){return se(this,t,e.apply(this,arguments))}}Ut.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var fe=[null];function he(t,e){this._groups=t,this._parents=e}function de(){return new he([[document.documentElement]],fe)}he.prototype=de.prototype={constructor:he,select:function(t){"function"!=typeof t&&(t=rt(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a,u=e[i],s=u.length,l=r[i]=new Array(s),c=0;c<s;++c)(o=u[c])&&(a=t.call(o,o.__data__,c,u))&&("__data__"in o&&(a.__data__=o.__data__),l[c]=a);return new he(r,this._parents)},selectAll:function(t){t="function"==typeof t?function(t){return function(){return it(t.apply(this,arguments))}}(t):at(t);for(var e=this._groups,n=e.length,r=[],i=[],o=0;o<n;++o)for(var a,u=e[o],s=u.length,l=0;l<s;++l)(a=u[l])&&(r.push(t.call(a,a.__data__,l,u)),i.push(a));return new he(r,i)},selectChild:function(t){return this.select(null==t?ct:function(t){return function(){return lt.call(this.children,t)}}("function"==typeof t?t:st(t)))},selectChildren:function(t){return this.selectAll(null==t?ht:function(t){return function(){return ft.call(this.children,t)}}("function"==typeof t?t:st(t)))},filter:function(t){"function"!=typeof t&&(t=ut(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],u=a.length,s=r[i]=[],l=0;l<u;++l)(o=a[l])&&t.call(o,o.__data__,l,a)&&s.push(o);return new he(r,this._parents)},data:function(t,e){if(!arguments.length)return Array.from(this,yt);var n,r=e?gt:vt,i=this._parents,o=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var a=o.length,u=new Array(a),s=new Array(a),l=new Array(a),c=0;c<a;++c){var f=i[c],h=o[c],d=h.length,p=mt(t.call(f,f&&f.__data__,c,i)),v=p.length,g=s[c]=new Array(v),y=u[c]=new Array(v);r(f,h,g,y,l[c]=new Array(d),p,e);for(var m,b,w=0,x=0;w<v;++w)if(m=g[w]){for(w>=x&&(x=w+1);!(b=y[x])&&++x<v;);m._next=b||null}}return(u=new he(u,i))._enter=s,u._exit=l,u},enter:function(){return new he(this._enter||this._groups.map(dt),this._parents)},exit:function(){return new he(this._exit||this._groups.map(dt),this._parents)},join:function(t,e,n){var r=this.enter(),i=this,o=this.exit();return"function"==typeof t?(r=t(r))&&(r=r.selection()):r=r.append(t+""),null!=e&&(i=e(i))&&(i=i.selection()),null==n?o.remove():n(o),r&&i?r.merge(i).order():i},merge:function(t){for(var e=t.selection?t.selection():t,n=this._groups,r=e._groups,i=n.length,o=r.length,a=Math.min(i,o),u=new Array(i),s=0;s<a;++s)for(var l,c=n[s],f=r[s],h=c.length,d=u[s]=new Array(h),p=0;p<h;++p)(l=c[p]||f[p])&&(d[p]=l);for(;s<i;++s)u[s]=n[s];return new he(u,this._parents)},selection:function(){return this},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var r,i=t[e],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&4^r.compareDocumentPosition(a)&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(t){function e(e,n){return e&&n?t(e.__data__,n.__data__):!e-!n}t||(t=bt);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,u=n[o],s=u.length,l=i[o]=new Array(s),c=0;c<s;++c)(a=u[c])&&(l[c]=a);l.sort(e)}return new he(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r=t[e],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){let t=0;for(const e of this)++t;return t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,r=e.length;n<r;++n)for(var i,o=e[n],a=0,u=o.length;a<u;++a)(i=o[a])&&t.call(i,i.__data__,a,o);return this},attr:function(t,e){var n=_t(t);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==e?n.local?Mt:kt:"function"==typeof e?n.local?Pt:St:n.local?Tt:At)(n,e))},style:function(t,e,n){return arguments.length>1?this.each((null==e?Et:"function"==typeof e?Ot:Dt)(t,e,null==n?"":n)):Nt(this.node(),t)},property:function(t,e){return arguments.length>1?this.each((null==e?jt:"function"==typeof e?Rt:Lt)(t,e)):this.node()[t]},classed:function(t,e){var n=Ft(t+"");if(arguments.length<2){for(var r=$t(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?Bt:e?qt:Vt)(n,e))},text:function(t){return arguments.length?this.each(null==t?zt:("function"==typeof t?Wt:Yt)(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?Xt:("function"==typeof t?Gt:Jt)(t)):this.node().innerHTML},raise:function(){return this.each(Zt)},lower:function(){return this.each(Kt)},append:function(t){var e="function"==typeof t?t:ee(t);return this.select((function(){return this.appendChild(e.apply(this,arguments))}))},insert:function(t,e){var n="function"==typeof t?t:ee(t),r=null==e?ne:"function"==typeof e?e:rt(e);return this.select((function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)}))},remove:function(){return this.each(re)},clone:function(t){return this.select(t?oe:ie)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var r,i,o=function(t){return t.trim().split(/^|\s+/).map((function(t){var e="",n=t.indexOf(".");return n>=0&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}))}(t+""),a=o.length;if(!(arguments.length<2)){for(u=e?ue:ae,r=0;r<a;++r)this.each(u(o[r],e,n));return this}var u=this.node().__on;if(u)for(var s,l=0,c=u.length;l<c;++l)for(r=0,s=u[l];r<a;++r)if((i=o[r]).type===s.type&&i.name===s.name)return s.value},dispatch:function(t,e){return this.each(("function"==typeof e?ce:le)(t,e))},[Symbol.iterator]:function*(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var r,i=t[e],o=0,a=i.length;o<a;++o)(r=i[o])&&(yield r)}};var pe=de;function ve(t){return"string"==typeof t?new he([[document.querySelector(t)]],[document.documentElement]):new he([[t]],fe)}function ge(t){return"string"==typeof t?new he([document.querySelectorAll(t)],[document.documentElement]):new he([it(t)],fe)}function ye(t){return[t.width,t.height]}function me(t,e){ve(t).style("height",e+"px")}function be(t,e){var n=void 0,r=[];return t.each((function(){for(var t=this;"function"==typeof t.parentNode.matches&&!n;)(t=t.parentNode).matches(e)&&(n=t,r.push(n));n=void 0})),ge(r)}function we(t,e,n,r){ve(e).on(t,(function(t){try{("string"==typeof n?ve(e).selectAll(n):n).each((function(){var e=this;(function(t,e){for(;;){if(!t||!e)return!1;if(t.isSameNode(e))return!0;t=t.parentNode}})(t.target,e)&&r.bind(e)(ve(e).data()[0])}))}catch(t){throw console.error(t),t}}))}function xe(t){return t&&(t=encodeURIComponent(t).replace(/%20/g,"+")),t}function _e(t){var e=[];for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"object"==typeof r&&(r=JSON.stringify(r)),"string"!=typeof r&&"number"!=typeof r||e.push(xe(n)+"="+xe(r))}return e.join("&")}function ke(t){if(!t.ok)throw new Error(t.status+" "+t.statusText);if(204!==t.status&&205!==t.status)return t.json()}var Me=function(){return Me=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Me.apply(this,arguments)},Ae=function(){var t=[];function e(t,e,n){var r=es.options.detectDataDomain?function(){for(var t=document.scripts,e=0;e<t.length;++e){var n=t[e].src;if(n&&n.indexOf("/viz.")>=0){var r=n.indexOf("/",9);if(r>=0)return n.substring(0,r)}}return""}():void 0,i=r||es.options.dataDomain;(function(t,e){return fetch(t,e).then(ke)})((window.dataDomain||i)+"/data.json",{headers:Me({"Content-Type":"application/json; charset=UTF-8"},t&&{"X-Api-Key":t}),method:"POST",body:JSON.stringify(e)}).then((function(t){return n(null,t)})).catch((function(t){return n(t,void 0)}))}function n(t){for(var n=[],r={},i=void 0,o=0,a=t;o<a.length;o++){var u=a[o];n.push(u.options),i=null!=i?i:u.options.apiKey}n.length>0&&(r.options=n,r.origin=document.location.hostname,r.v=es.version,e(i,r,(function(e,n){if(e)for(var r=0,i=t;r<i.length;r++){i[r].error(e.message)}else{var o=n.result;t.forEach((function(t,e){var n=o[e].error;n?t.error(n.message):t.success(o[e])}))}})))}function r(){n(t),t=[]}return{requestData:function(e,i,o){var a={options:e,success:i,error:o};e.immediate?n([a]):(t.push(a),window.setTimeout(r))}}}();const Te=new Date,Se=new Date;function Pe(t,e,n,r){function i(e){return t(e=0===arguments.length?new Date:new Date(+e)),e}return i.floor=e=>(t(e=new Date(+e)),e),i.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n),i.round=t=>{const e=i(t),n=i.ceil(t);return t-e<n-t?e:n},i.offset=(t,n)=>(e(t=new Date(+t),null==n?1:Math.floor(n)),t),i.range=(n,r,o)=>{const a=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return a;let u;do{a.push(u=new Date(+n)),e(n,o),t(n)}while(u<n&&n<r);return a},i.filter=n=>Pe((e=>{if(e>=e)for(;t(e),!n(e);)e.setTime(e-1)}),((t,r)=>{if(t>=t)if(r<0)for(;++r<=0;)for(;e(t,-1),!n(t););else for(;--r>=0;)for(;e(t,1),!n(t););})),n&&(i.count=(e,r)=>(Te.setTime(+e),Se.setTime(+r),t(Te),t(Se),Math.floor(n(Te,Se))),i.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?i.filter(r?e=>r(e)%t==0:e=>i.count(0,e)%t==0):i:null)),i}const Ce=1e3,Ee=6e4,De=36e5,Oe=864e5,Ne=6048e5,je=2592e6,Le=31536e6;function Re(t){return Pe((e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)}),((t,e)=>{t.setDate(t.getDate()+7*e)}),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Ee)/Ne))}const Fe=Re(0),$e=Re(1),Ue=Re(2),He=Re(3),Ie=Re(4),qe=Re(5),Ve=Re(6);Fe.range,$e.range,Ue.range,He.range,Ie.range,qe.range,Ve.range;function Be(t){return Pe((e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+7*e)}),((t,e)=>(e-t)/Ne))}const ze=Be(0),Ye=Be(1),We=Be(2),Xe=Be(3),Je=Be(4),Ge=Be(5),Ze=Be(6),Ke=(ze.range,Ye.range,We.range,Xe.range,Je.range,Ge.range,Ze.range,Pe((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*Ee)/Oe),(t=>t.getDate()-1))),Qe=(Ke.range,Pe((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Oe),(t=>t.getUTCDate()-1))),tn=(Qe.range,Pe((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/Oe),(t=>Math.floor(t/Oe)))),en=(tn.range,Pe((t=>{t.setMonth(0,1),t.setHours(0,0,0,0)}),((t,e)=>{t.setFullYear(t.getFullYear()+e)}),((t,e)=>e.getFullYear()-t.getFullYear()),(t=>t.getFullYear())));en.every=t=>isFinite(t=Math.floor(t))&&t>0?Pe((e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)}),((e,n)=>{e.setFullYear(e.getFullYear()+n*t)})):null;en.range;const nn=Pe((t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)}),((t,e)=>e.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));nn.every=t=>isFinite(t=Math.floor(t))&&t>0?Pe((e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)}),((e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)})):null;nn.range;function rn(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);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function on(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));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function an(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function un(t){var e=t.dateTime,n=t.date,r=t.time,i=t.periods,o=t.days,a=t.shortDays,u=t.months,s=t.shortMonths,l=pn(i),c=vn(i),f=pn(o),h=vn(o),d=pn(a),p=vn(a),v=pn(u),g=vn(u),y=pn(s),m=vn(s),b={a:function(t){return a[t.getDay()]},A:function(t){return o[t.getDay()]},b:function(t){return s[t.getMonth()]},B:function(t){return u[t.getMonth()]},c:null,d:Rn,e:Rn,f:In,g:Kn,G:tr,H:Fn,I:$n,j:Un,L:Hn,m:qn,M:Vn,p:function(t){return i[+(t.getHours()>=12)]},q:function(t){return 1+~~(t.getMonth()/3)},Q:kr,s:Mr,S:Bn,u:zn,U:Yn,V:Xn,w:Jn,W:Gn,x:null,X:null,y:Zn,Y:Qn,Z:er,"%":_r},w={a:function(t){return a[t.getUTCDay()]},A:function(t){return o[t.getUTCDay()]},b:function(t){return s[t.getUTCMonth()]},B:function(t){return u[t.getUTCMonth()]},c:null,d:nr,e:nr,f:ur,g:mr,G:wr,H:rr,I:ir,j:or,L:ar,m:sr,M:lr,p:function(t){return i[+(t.getUTCHours()>=12)]},q:function(t){return 1+~~(t.getUTCMonth()/3)},Q:kr,s:Mr,S:cr,u:fr,U:hr,V:pr,w:vr,W:gr,x:null,X:null,y:yr,Y:br,Z:xr,"%":_r},x={a:function(t,e,n){var r=d.exec(e.slice(n));return r?(t.w=p.get(r[0].toLowerCase()),n+r[0].length):-1},A:function(t,e,n){var r=f.exec(e.slice(n));return r?(t.w=h.get(r[0].toLowerCase()),n+r[0].length):-1},b:function(t,e,n){var r=y.exec(e.slice(n));return r?(t.m=m.get(r[0].toLowerCase()),n+r[0].length):-1},B:function(t,e,n){var r=v.exec(e.slice(n));return r?(t.m=g.get(r[0].toLowerCase()),n+r[0].length):-1},c:function(t,n,r){return M(t,e,n,r)},d:Tn,e:Tn,f:On,g:_n,G:xn,H:Pn,I:Pn,j:Sn,L:Dn,m:An,M:Cn,p:function(t,e,n){var r=l.exec(e.slice(n));return r?(t.p=c.get(r[0].toLowerCase()),n+r[0].length):-1},q:Mn,Q:jn,s:Ln,S:En,u:yn,U:mn,V:bn,w:gn,W:wn,x:function(t,e,r){return M(t,n,e,r)},X:function(t,e,n){return M(t,r,e,n)},y:_n,Y:xn,Z:kn,"%":Nn};function _(t,e){return function(n){var r,i,o,a=[],u=-1,s=0,l=t.length;for(n instanceof Date||(n=new Date(+n));++u<l;)37===t.charCodeAt(u)&&(a.push(t.slice(s,u)),null!=(i=sn[r=t.charAt(++u)])?r=t.charAt(++u):i="e"===r?" ":"0",(o=e[r])&&(r=o(n,i)),a.push(r),s=u+1);return a.push(t.slice(s,u)),a.join("")}}function k(t,e){return function(n){var r,i,o=an(1900,void 0,1);if(M(o,t,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("s"in o)return new Date(1e3*o.s+("L"in o?o.L:0));if(e&&!("Z"in o)&&(o.Z=0),"p"in o&&(o.H=o.H%12+12*o.p),void 0===o.m&&(o.m="q"in o?o.q:0),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(i=(r=on(an(o.y,0,1))).getUTCDay(),r=i>4||0===i?Ye.ceil(r):Ye(r),r=Qe.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(i=(r=rn(an(o.y,0,1))).getDay(),r=i>4||0===i?$e.ceil(r):$e(r),r=Ke.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?on(an(o.y,0,1)).getUTCDay():rn(an(o.y,0,1)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,on(o)):rn(o)}}function M(t,e,n,r){for(var i,o,a=0,u=e.length,s=n.length;a<u;){if(r>=s)return-1;if(37===(i=e.charCodeAt(a++))){if(i=e.charAt(a++),!(o=x[i in sn?e.charAt(a++):i])||(r=o(t,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=_(n,b),b.X=_(r,b),b.c=_(e,b),w.x=_(n,w),w.X=_(r,w),w.c=_(e,w),{format:function(t){var e=_(t+="",b);return e.toString=function(){return t},e},parse:function(t){var e=k(t+="",!1);return e.toString=function(){return t},e},utcFormat:function(t){var e=_(t+="",w);return e.toString=function(){return t},e},utcParse:function(t){var e=k(t+="",!0);return e.toString=function(){return t},e}}}var sn={"-":"",_:" ",0:"0"},ln=/^\s*\d+/,cn=/^%/,fn=/[\\^$*+?|[\]().{}]/g;function hn(t,e,n){var r=t<0?"-":"",i=(r?-t:t)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(e)+i:i)}function dn(t){return t.replace(fn,"\\$&")}function pn(t){return new RegExp("^(?:"+t.map(dn).join("|")+")","i")}function vn(t){return new Map(t.map(((t,e)=>[t.toLowerCase(),e])))}function gn(t,e,n){var r=ln.exec(e.slice(n,n+1));return r?(t.w=+r[0],n+r[0].length):-1}function yn(t,e,n){var r=ln.exec(e.slice(n,n+1));return r?(t.u=+r[0],n+r[0].length):-1}function mn(t,e,n){var r=ln.exec(e.slice(n,n+2));return r?(t.U=+r[0],n+r[0].length):-1}function bn(t,e,n){var r=ln.exec(e.slice(n,n+2));return r?(t.V=+r[0],n+r[0].length):-1}function wn(t,e,n){var r=ln.exec(e.slice(n,n+2));return r?(t.W=+r[0],n+r[0].length):-1}function xn(t,e,n){var r=ln.exec(e.slice(n,n+4));return r?(t.y=+r[0],n+r[0].length):-1}function _n(t,e,n){var r=ln.exec(e.slice(n,n+2));return r?(t.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function kn(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 Mn(t,e,n){var r=ln.exec(e.slice(n,n+1));return r?(t.q=3*r[0]-3,n+r[0].length):-1}function An(t,e,n){var r=ln.exec(e.slice(n,n+2));return r?(t.m=r[0]-1,n+r[0].length):-1}function Tn(t,e,n){var r=ln.exec(e.slice(n,n+2));return r?(t.d=+r[0],n+r[0].length):-1}function Sn(t,e,n){var r=ln.exec(e.slice(n,n+3));return r?(t.m=0,t.d=+r[0],n+r[0].length):-1}function Pn(t,e,n){var r=ln.exec(e.slice(n,n+2));return r?(t.H=+r[0],n+r[0].length):-1}function Cn(t,e,n){var r=ln.exec(e.slice(n,n+2));return r?(t.M=+r[0],n+r[0].length):-1}function En(t,e,n){var r=ln.exec(e.slice(n,n+2));return r?(t.S=+r[0],n+r[0].length):-1}function Dn(t,e,n){var r=ln.exec(e.slice(n,n+3));return r?(t.L=+r[0],n+r[0].length):-1}function On(t,e,n){var r=ln.exec(e.slice(n,n+6));return r?(t.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Nn(t,e,n){var r=cn.exec(e.slice(n,n+1));return r?n+r[0].length:-1}function jn(t,e,n){var r=ln.exec(e.slice(n));return r?(t.Q=+r[0],n+r[0].length):-1}function Ln(t,e,n){var r=ln.exec(e.slice(n));return r?(t.s=+r[0],n+r[0].length):-1}function Rn(t,e){return hn(t.getDate(),e,2)}function Fn(t,e){return hn(t.getHours(),e,2)}function $n(t,e){return hn(t.getHours()%12||12,e,2)}function Un(t,e){return hn(1+Ke.count(en(t),t),e,3)}function Hn(t,e){return hn(t.getMilliseconds(),e,3)}function In(t,e){return Hn(t,e)+"000"}function qn(t,e){return hn(t.getMonth()+1,e,2)}function Vn(t,e){return hn(t.getMinutes(),e,2)}function Bn(t,e){return hn(t.getSeconds(),e,2)}function zn(t){var e=t.getDay();return 0===e?7:e}function Yn(t,e){return hn(Fe.count(en(t)-1,t),e,2)}function Wn(t){var e=t.getDay();return e>=4||0===e?Ie(t):Ie.ceil(t)}function Xn(t,e){return t=Wn(t),hn(Ie.count(en(t),t)+(4===en(t).getDay()),e,2)}function Jn(t){return t.getDay()}function Gn(t,e){return hn($e.count(en(t)-1,t),e,2)}function Zn(t,e){return hn(t.getFullYear()%100,e,2)}function Kn(t,e){return hn((t=Wn(t)).getFullYear()%100,e,2)}function Qn(t,e){return hn(t.getFullYear()%1e4,e,4)}function tr(t,e){var n=t.getDay();return hn((t=n>=4||0===n?Ie(t):Ie.ceil(t)).getFullYear()%1e4,e,4)}function er(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+hn(e/60|0,"0",2)+hn(e%60,"0",2)}function nr(t,e){return hn(t.getUTCDate(),e,2)}function rr(t,e){return hn(t.getUTCHours(),e,2)}function ir(t,e){return hn(t.getUTCHours()%12||12,e,2)}function or(t,e){return hn(1+Qe.count(nn(t),t),e,3)}function ar(t,e){return hn(t.getUTCMilliseconds(),e,3)}function ur(t,e){return ar(t,e)+"000"}function sr(t,e){return hn(t.getUTCMonth()+1,e,2)}function lr(t,e){return hn(t.getUTCMinutes(),e,2)}function cr(t,e){return hn(t.getUTCSeconds(),e,2)}function fr(t){var e=t.getUTCDay();return 0===e?7:e}function hr(t,e){return hn(ze.count(nn(t)-1,t),e,2)}function dr(t){var e=t.getUTCDay();return e>=4||0===e?Je(t):Je.ceil(t)}function pr(t,e){return t=dr(t),hn(Je.count(nn(t),t)+(4===nn(t).getUTCDay()),e,2)}function vr(t){return t.getUTCDay()}function gr(t,e){return hn(Ye.count(nn(t)-1,t),e,2)}function yr(t,e){return hn(t.getUTCFullYear()%100,e,2)}function mr(t,e){return hn((t=dr(t)).getUTCFullYear()%100,e,2)}function br(t,e){return hn(t.getUTCFullYear()%1e4,e,4)}function wr(t,e){var n=t.getUTCDay();return hn((t=n>=4||0===n?Je(t):Je.ceil(t)).getUTCFullYear()%1e4,e,4)}function xr(){return"+0000"}function _r(){return"%"}function kr(t){return+t}function Mr(t){return Math.floor(+t/1e3)}const Ar=Pe((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*Ce)}),((t,e)=>(e-t)/Ce),(t=>t.getUTCSeconds())),Tr=(Ar.range,Pe((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ce)}),((t,e)=>{t.setTime(+t+e*Ee)}),((t,e)=>(e-t)/Ee),(t=>t.getMinutes()))),Sr=(Tr.range,Pe((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*Ee)}),((t,e)=>(e-t)/Ee),(t=>t.getUTCMinutes()))),Pr=(Sr.range,Pe((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ce-t.getMinutes()*Ee)}),((t,e)=>{t.setTime(+t+e*De)}),((t,e)=>(e-t)/De),(t=>t.getHours()))),Cr=(Pr.range,Pe((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*De)}),((t,e)=>(e-t)/De),(t=>t.getUTCHours()))),Er=(Cr.range,Pe((t=>{t.setDate(1),t.setHours(0,0,0,0)}),((t,e)=>{t.setMonth(t.getMonth()+e)}),((t,e)=>e.getMonth()-t.getMonth()+12*(e.getFullYear()-t.getFullYear())),(t=>t.getMonth()))),Dr=(Er.range,Pe((t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)}),((t,e)=>e.getUTCMonth()-t.getUTCMonth()+12*(e.getUTCFullYear()-t.getUTCFullYear())),(t=>t.getUTCMonth())));Dr.range;function Or(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 Nr(t){return(t=Or(Math.abs(t)))?t[1]:NaN}var jr,Lr=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Rr(t){if(!(e=Lr.exec(t)))throw new Error("invalid format: "+t);var e;return new Fr({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]})}function Fr(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function $r(t,e){var n=Or(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")}Rr.prototype=Fr.prototype,Fr.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Ur={"%":(t,e)=>(100*t).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>$r(100*t,e),r:$r,s:function(t,e){var n=Or(t,e);if(!n)return t+"";var r=n[0],i=n[1],o=i-(jr=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Or(t,Math.max(0,e+o-1))[0]},X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Hr(t){return t}var Ir=Array.prototype.map,qr=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Vr(t){var e,n,r=void 0===t.grouping||void 0===t.thousands?Hr:(e=Ir.call(t.grouping,Number),n=t.thousands+"",function(t,r){for(var i=t.length,o=[],a=0,u=e[0],s=0;i>0&&u>0&&(s+u+1>r&&(u=Math.max(1,r-s)),o.push(t.substring(i-=u,i+u)),!((s+=u+1)>r));)u=e[a=(a+1)%e.length];return o.reverse().join(n)}),i=void 0===t.currency?"":t.currency[0]+"",o=void 0===t.currency?"":t.currency[1]+"",a=void 0===t.decimal?".":t.decimal+"",u=void 0===t.numerals?Hr:function(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}(Ir.call(t.numerals,String)),s=void 0===t.percent?"%":t.percent+"",l=void 0===t.minus?"−":t.minus+"",c=void 0===t.nan?"NaN":t.nan+"";function f(t){var e=(t=Rr(t)).fill,n=t.align,f=t.sign,h=t.symbol,d=t.zero,p=t.width,v=t.comma,g=t.precision,y=t.trim,m=t.type;"n"===m?(v=!0,m="g"):Ur[m]||(void 0===g&&(g=12),y=!0,m="g"),(d||"0"===e&&"="===n)&&(d=!0,e="0",n="=");var b="$"===h?i:"#"===h&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",w="$"===h?o:/[%p]/.test(m)?s:"",x=Ur[m],_=/[defgprs%]/.test(m);function k(t){var i,o,s,h=b,k=w;if("c"===m)k=x(t)+k,t="";else{var M=(t=+t)<0||1/t<0;if(t=isNaN(t)?c:x(Math.abs(t),g),y&&(t=function(t){t:for(var e,n=t.length,r=1,i=-1;r<n;++r)switch(t[r]){case".":i=e=r;break;case"0":0===i&&(i=r),e=r;break;default:if(!+t[r])break t;i>0&&(i=0)}return i>0?t.slice(0,i)+t.slice(e+1):t}(t)),M&&0==+t&&"+"!==f&&(M=!1),h=(M?"("===f?f:l:"-"===f||"("===f?"":f)+h,k=("s"===m?qr[8+jr/3]:"")+k+(M&&"("===f?")":""),_)for(i=-1,o=t.length;++i<o;)if(48>(s=t.charCodeAt(i))||s>57){k=(46===s?a+t.slice(i+1):t.slice(i))+k,t=t.slice(0,i);break}}v&&!d&&(t=r(t,1/0));var A=h.length+t.length+k.length,T=A<p?new Array(p-A+1).join(e):"";switch(v&&d&&(t=r(T+t,T.length?p-k.length:1/0),T=""),n){case"<":t=h+t+k+T;break;case"=":t=h+T+t+k;break;case"^":t=T.slice(0,A=T.length>>1)+h+t+k+T.slice(A);break;default:t=T+h+t+k}return u(t)}return g=void 0===g?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),k.toString=function(){return t+""},k}return{format:f,formatPrefix:function(t,e){var n=f(((t=Rr(t)).type="f",t)),r=3*Math.max(-8,Math.min(8,Math.floor(Nr(e)/3))),i=Math.pow(10,-r),o=qr[8+r/3];return function(t){return n(i*t)+o}}}}var Br=JSON.parse('{"dateTime":"%A, der %e. %B %Y, %X","date":"%d.%m.%Y","time":"%H:%M:%S","periods":["AM","PM"],"days":["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],"shortDays":["So","Mo","Di","Mi","Do","Fr","Sa"],"months":["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],"shortMonths":["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"]}'),zr=JSON.parse('{"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"]}'),Yr=JSON.parse('{"dateTime":"%A %e %B %Y à %X","date":"%d/%m/%Y","time":"%H:%M:%S","periods":["AM","PM"],"days":["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],"shortDays":["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],"months":["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"],"shortMonths":["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."]}'),Wr=JSON.parse('{"decimal":",","thousands":".","grouping":[3],"currency":[""," €"]}'),Xr=JSON.parse('{"decimal":".","thousands":",","grouping":[3],"currency":["$",""]}'),Jr=JSON.parse('{"decimal":",","thousands":" ","grouping":[3],"currency":[""," €"],"percent":" %"}'),Gr="en"===document.documentElement.lang?"en":"fr"===document.documentElement.lang?"fr":"de";function Zr(){return Gr}var Kr=function(){return Kr=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Kr.apply(this,arguments)};function Qr(t,e,n){return void 0===n&&(n=""),"de"===Zr()?e:"fr"===Zr()?n:t}function ti(t){var e=t.format(".%L"),n=t.format(":%S"),r=t.format("%I:%M"),i=t.format("%I %p"),o=t.format("%a %d"),a=t.format("%b %d"),u=t.format("%B"),s=t.format("%Y");return function(t){return(Ar(t)<t?e:Tr(t)<t?n:Pr(t)<t?r:Ke(t)<t?i:Er(t)<t?Fe(t)<t?o:a:en(t)<t?u:s)(t)}}function ei(t,e){var n=un(t),r=Vr(e),i=r.format(",.2f"),o=r.format(",.0f"),a=n.format(t.date);return{timeFormatLocaleDefinition:t,numberFormatLocaleDefinition:e,createNumberFormatter:function(t,e){var n=t.accuracy,i=r.format(e);return function(e){return t.prefix+i(e/n)+t.postfix}},decimalFormatter:function(t){return i(function(t){return Math.round(100*t)/100}(t))},numberFormatter:function(t){return o(Math.round(t))},dateFormatter:function(t){return t?("string"==typeof t&&(t=new Date(t)),a(t)):""},timeScaleFormatter:ti(n)}}var ni=ei(Br,Kr(Kr({},Wr),{currency:["€",""]})),ri=ei(Kr(Kr({},zr),{date:"%Y-%m-%d"}),Kr(Kr({},Xr),{currency:["€",""]})),ii=ei(Yr,Kr(Kr({},Jr),{currency:["€",""]})),oi=function(){function t(t,e){this.items=[];var n="string"==typeof t?document.getElementById(t):t;if(!n)throw new Error("container node undefined or null");this.container=n,this.options=ai(e,this.container);var r=this.stringValue("type")||this.stringValue("layout");if(!r)throw new Error("no widget type specified");this.widgetType=r,this.options.type=r,"graph"!=r&&"contact"!=r||(this.options.immediate=!0);var i=this.load.bind(this);this.data=this.objectValue("data"),this.data?window.setTimeout(i):Ae.requestData(this.options,i,this.fail.bind(this))}return t.prototype.getType=function(){return this.widgetType},t.prototype.fail=function(t){var e=this.handlerValue("error");e?e(t):es.log("error",t)},t.prototype.load=function(t){this.data=this.data||t;try{var e=(n=this.widgetType,w[n]);if(!e)throw new Error("invalid widget type: "+this.widgetType);this.chart=e(this,this.data),this.container.setAttribute("data-layout",this.widgetType),this.draw()}catch(t){return void this.fail(t)}var n,r=this.handlerValue("success");r&&r()},t.prototype.showItem=function(t,e){var n=this,r=this.handlerValue("handleItem")||function(t,e){if(!!n.stringValue("subject"))return e;var r=document.createElement("div"),i=document.createElement("h2");return i.textContent=t,r.appendChild(i),r.appendChild(e),r},i=r(t,e);i&&(this.container.appendChild(i),this.items.push(i))},t.prototype.adjustSize=function(t){var e=t.getBoundingClientRect(),n=this.numberValue("width")||e.width,r=this.numberValue("height")||e.height,i=this.numberValue("ratio"),o=this.numberValue("minHeight"),a=this.numberValue("maxHeight"),u=r;i&&(u=n*i),o&&(u=Math.max(u,o)),a&&(u=Math.min(u,a)),r!=u&&me(t,u)},t.prototype.draw=function(){this.adjustSize(this.container),this.chart&&(this.chart.draw(),ve(this.container).selectAll("*").each((function(){var t=this.getAttribute("transform");t||(t=getComputedStyle(this).getPropertyValue("transform"))&&"none"!=t&&this.setAttribute("transform",t)})))},t.prototype.markup=function(t){var e=this.handlerValue("companyClick");e&&t.selectAll(".company").attr("data-clickable",!0);var n=this.handlerValue("personClick");n&&t.selectAll(".person").attr("data-clickable",!0);var r=this.handlerValue("addressClick");r&&t.selectAll("address").attr("data-clickable",!0);var i=this.handlerValue("registerClick");i&&t.selectAll(".register").attr("data-clickable",!0);var o=this.handlerValue("filingClick");o&&t.selectAll(".filing").attr("data-clickable",!0),t.on("click",(function(t){var a,u=t.target,s=ai({},u);e&&u.classList.contains("company")&&(e(s),a=!0),n&&u.classList.contains("person")&&(n(s),a=!0),r&&"ADDRESS"==u.tagName&&(r({query:u.textContent}),a=!0),i&&u.classList.contains("register")&&(i({query:u.textContent}),a=!0),o&&u.classList.contains("filing")&&(o({query:u.textContent}),a=!0),a&&t.preventDefault()}))},t.prototype.invokeClickHandler=function(t,e){var n=this.getClickHandler(e);return!!n&&(n(t),!0)},t.prototype.getClickHandler=function(t){if(t)switch(t.toString().toLowerCase()[0]){case"c":return this.handlerValue("companyClick");case"p":return this.handlerValue("personClick");case"h":return this.handlerValue("publicationClick")}},t.prototype.getLinkifier=function(){return this.handlerValue("linkify")||ui},t.prototype.getRootColor=function(){return Z(this.stringValue("rootColor")||"#00dddd")},t.prototype.isReverseChronology=function(){return"reverse"===this.stringValue("chronology")},t.prototype.getLanguage=function(){return this.stringValue("language")||"de"},t.prototype.i18n=function(){return"de"==this.getLanguage()?ni:"fr"==this.getLanguage()?ii:ri},t.prototype.trilingual=function(t,e,n){return"de"==this.getLanguage()?e:"fr"==this.getLanguage()?n:t},t.prototype.isPrint=function(){return document.documentElement.classList&&document.documentElement.classList.contains("print")},t.prototype.numberValue=function(t){var e=this.options[t];return"function"==typeof e?e():"number"==typeof e?e:"string"==typeof e?Number(e):void 0},t.prototype.stringValue=function(t){var e=this.options[t];return"function"==typeof e?e():"string"==typeof e?e:void 0},t.prototype.nodeValue=function(t){var e=this.options[t];return"object"==typeof e?e:"function"==typeof e?e():"string"==typeof e?ve(this.container).select(e).node():void 0},t.prototype.objectValue=function(t){var e=this.options[t];if("function"==typeof e)return e();if("object"==typeof e){if(null===e)return;return e}return"string"==typeof e?JSON.parse(e):void 0},t.prototype.handlerValue=function(t){var e=this.options[t];if("function"==typeof e)return e.bind(this)},t}();function ai(t,e){var n={};Object.assign(n,t);for(var r=0;r<e.attributes.length;++r){var i=e.attributes[r],o=i.name;if(0===o.indexOf("data-")){var a=o.substring(5).replace(/-([a-z])/g,(function(t){return t[1].toUpperCase()}));n[a]=n[a]||i.value}}return n}var ui=function(){return null};function si(t,e){let n,r;if(void 0===e)for(const e of t)null!=e&&(void 0===n?e>=e&&(n=r=e):(n>e&&(n=e),r<e&&(r=e)));else{let i=-1;for(let o of t)null!=(o=e(o,++i,t))&&(void 0===n?o>=o&&(n=r=o):(n>o&&(n=o),r<o&&(r=o)))}return[n,r]}function li(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t)}return this}class ci extends Map{constructor(t,e=pi){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}}),null!=t)for(const[e,n]of t)this.set(e,n)}get(t){return super.get(fi(this,t))}has(t){return super.has(fi(this,t))}set(t,e){return super.set(hi(this,t),e)}delete(t){return super.delete(di(this,t))}}Set;function fi({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):n}function hi({_intern:t,_key:e},n){const r=e(n);return t.has(r)?t.get(r):(t.set(r,n),n)}function di({_intern:t,_key:e},n){const r=e(n);return t.has(r)&&(n=t.get(r),t.delete(r)),n}function pi(t){return null!==t&&"object"==typeof t?t.valueOf():t}const vi=Symbol("implicit");function gi(){var t=new ci,e=[],n=[],r=vi;function i(i){let o=t.get(i);if(void 0===o){if(r!==vi)return r;t.set(i,o=e.push(i)-1)}return n[o%n.length]}return i.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new ci;for(const r of n)t.has(r)||t.set(r,e.push(r)-1);return i},i.range=function(t){return arguments.length?(n=Array.from(t),i):n.slice()},i.unknown=function(t){return arguments.length?(r=t,i):r},i.copy=function(){return gi(e,n).unknown(r)},li.apply(i,arguments),i}function yi(){var t,e,n=gi().unknown(void 0),r=n.domain,i=n.range,o=0,a=1,u=!1,s=0,l=0,c=.5;function f(){var n=r().length,f=a<o,h=f?a:o,d=f?o:a;t=(d-h)/Math.max(1,n-s+2*l),u&&(t=Math.floor(t)),h+=(d-h-t*(n-s))*c,e=t*(1-s),u&&(h=Math.round(h),e=Math.round(e));var p=function(t,e,n){t=+t,e=+e,n=(i=arguments.length)<2?(e=t,t=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((e-t)/n)),o=new Array(i);++r<i;)o[r]=t+r*n;return o}(n).map((function(e){return h+t*e}));return i(f?p.reverse():p)}return delete n.unknown,n.domain=function(t){return arguments.length?(r(t),f()):r()},n.range=function(t){return arguments.length?([o,a]=t,o=+o,a=+a,f()):[o,a]},n.rangeRound=function(t){return[o,a]=t,o=+o,a=+a,u=!0,f()},n.bandwidth=function(){return e},n.step=function(){return t},n.round=function(t){return arguments.length?(u=!!t,f()):u},n.padding=function(t){return arguments.length?(s=Math.min(1,l=+t),f()):s},n.paddingInner=function(t){return arguments.length?(s=Math.min(1,t),f()):s},n.paddingOuter=function(t){return arguments.length?(l=+t,f()):l},n.align=function(t){return arguments.length?(c=Math.max(0,Math.min(1,t)),f()):c},n.copy=function(){return yi(r(),[o,a]).round(u).paddingInner(s).paddingOuter(l).align(c)},li.apply(f(),arguments)}const mi=Math.sqrt(50),bi=Math.sqrt(10),wi=Math.sqrt(2);function xi(t,e,n){const r=(e-t)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),a=o>=mi?10:o>=bi?5:o>=wi?2:1;let u,s,l;return i<0?(l=Math.pow(10,-i)/a,u=Math.round(t*l),s=Math.round(e*l),u/l<t&&++u,s/l>e&&--s,l=-l):(l=Math.pow(10,i)*a,u=Math.round(t/l),s=Math.round(e/l),u*l<t&&++u,s*l>e&&--s),s<u&&.5<=n&&n<2?xi(t,e,2*n):[u,s,l]}function _i(t,e,n){return xi(t=+t,e=+e,n=+n)[2]}function ki(t,e,n){n=+n;const r=(e=+e)<(t=+t),i=r?_i(e,t,n):_i(t,e,n);return(r?-1:1)*(i<0?1/-i:i)}function Mi(t,e){return null==t||null==e?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ai(t,e){return null==t||null==e?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Ti(t){let e,n,r;function i(t,r,i=0,o=t.length){if(i<o){if(0!==e(r,r))return o;do{const e=i+o>>>1;n(t[e],r)<0?i=e+1:o=e}while(i<o)}return i}return 2!==t.length?(e=Mi,n=(e,n)=>Mi(t(e),n),r=(e,n)=>t(e)-n):(e=t===Mi||t===Ai?t:Si,n=t,r=t),{left:i,center:function(t,e,n=0,o=t.length){const a=i(t,e,n,o-1);return a>n&&r(t[a-1],e)>-r(t[a],e)?a-1:a},right:function(t,r,i=0,o=t.length){if(i<o){if(0!==e(r,r))return o;do{const e=i+o>>>1;n(t[e],r)<=0?i=e+1:o=e}while(i<o)}return i}}}function Si(){return 0}const Pi=Ti(Mi),Ci=Pi.right;Pi.left,Ti((function(t){return null===t?NaN:+t})).center;var Ei=Ci;function Di(t,e,n,r,i){var o=t*t,a=o*t;return((1-3*t+3*o-a)*e+(4-6*o+3*a)*n+(1+3*t+3*o-3*a)*r+a*i)/6}var Oi=t=>()=>t;function Ni(t,e){return function(n){return t+n*e}}function ji(t){return 1==(t=+t)?Li:function(e,n){return n-e?function(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(r){return Math.pow(t+r*e,n)}}(e,n,t):Oi(isNaN(e)?n:e)}}function Li(t,e){var n=e-t;return n?Ni(t,n):Oi(isNaN(t)?e:t)}var Ri=function t(e){var n=ji(e);function r(t,e){var r=n((t=q(t)).r,(e=q(e)).r),i=n(t.g,e.g),o=n(t.b,e.b),a=Li(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=i(e),t.b=o(e),t.opacity=a(e),t+""}}return r.gamma=t,r}(1);function Fi(t){return function(e){var n,r,i=e.length,o=new Array(i),a=new Array(i),u=new Array(i);for(n=0;n<i;++n)r=q(e[n]),o[n]=r.r||0,a[n]=r.g||0,u[n]=r.b||0;return o=t(o),a=t(a),u=t(u),r.opacity=1,function(t){return r.r=o(t),r.g=a(t),r.b=u(t),r+""}}}Fi((function(t){var e=t.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),i=t[r],o=t[r+1],a=r>0?t[r-1]:2*i-o,u=r<e-1?t[r+2]:2*o-i;return Di((n-r/e)*e,a,i,o,u)}})),Fi((function(t){var e=t.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*e),i=t[(r+e-1)%e],o=t[r%e],a=t[(r+1)%e],u=t[(r+2)%e];return Di((n-r/e)*e,i,o,a,u)}}));function $i(t,e){var n,r=e?e.length:0,i=t?Math.min(r,t.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Yi(t[n],e[n]);for(;n<r;++n)a[n]=e[n];return function(t){for(n=0;n<i;++n)a[n]=o[n](t);return a}}function Ui(t,e){var n=new Date;return t=+t,e=+e,function(r){return n.setTime(t*(1-r)+e*r),n}}function Hi(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Ii(t,e){var n,r={},i={};for(n in null!==t&&"object"==typeof t||(t={}),null!==e&&"object"==typeof e||(e={}),e)n in t?r[n]=Yi(t[n],e[n]):i[n]=e[n];return function(t){for(n in r)i[n]=r[n](t);return i}}var qi=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Vi=new RegExp(qi.source,"g");function Bi(t,e){var n,r,i,o=qi.lastIndex=Vi.lastIndex=0,a=-1,u=[],s=[];for(t+="",e+="";(n=qi.exec(t))&&(r=Vi.exec(e));)(i=r.index)>o&&(i=e.slice(o,i),u[a]?u[a]+=i:u[++a]=i),(n=n[0])===(r=r[0])?u[a]?u[a]+=r:u[++a]=r:(u[++a]=null,s.push({i:a,x:Hi(n,r)})),o=Vi.lastIndex;return o<e.length&&(i=e.slice(o),u[a]?u[a]+=i:u[++a]=i),u.length<2?s[0]?function(t){return function(e){return t(e)+""}}(s[0].x):function(t){return function(){return t}}(e):(e=s.length,function(t){for(var n,r=0;r<e;++r)u[(n=s[r]).i]=n.x(t);return u.join("")})}function zi(t,e){e||(e=[]);var n,r=t?Math.min(e.length,t.length):0,i=e.slice();return function(o){for(n=0;n<r;++n)i[n]=t[n]*(1-o)+e[n]*o;return i}}function Yi(t,e){var n,r,i=typeof e;return null==e||"boolean"===i?Oi(e):("number"===i?Hi:"string"===i?(n=U(e))?(e=n,Ri):Bi:e instanceof U?Ri:e instanceof Date?Ui:(r=e,!ArrayBuffer.isView(r)||r instanceof DataView?Array.isArray(e)?$i:"function"!=typeof e.valueOf&&"function"!=typeof e.toString||isNaN(e)?Ii:Hi:zi))(t,e)}function Wi(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}function Xi(t){return+t}var Ji,Gi,Zi,Ki=[0,1];function Qi(t){return t}function to(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:(n=isNaN(e)?NaN:.5,function(){return n});var n}function eo(t,e,n){var r=t[0],i=t[1],o=e[0],a=e[1];return i<r?(r=to(i,r),o=n(a,o)):(r=to(r,i),o=n(o,a)),function(t){return o(r(t))}}function no(t,e,n){var r=Math.min(t.length,e.length)-1,i=new Array(r),o=new Array(r),a=-1;for(t[r]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++a<r;)i[a]=to(t[a],t[a+1]),o[a]=n(e[a],e[a+1]);return function(e){var n=Ei(t,e,1,r)-1;return o[n](i[n](e))}}function ro(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function io(){var t,e,n,r,i,o,a=Ki,u=Ki,s=Yi,l=Qi;function c(){var t,e,n,s=Math.min(a.length,u.length);return l!==Qi&&(t=a[0],e=a[s-1],t>e&&(n=t,t=e,e=n),l=function(n){return Math.max(t,Math.min(e,n))}),r=s>2?no:eo,i=o=null,f}function f(e){return null==e||isNaN(e=+e)?n:(i||(i=r(a.map(t),u,s)))(t(l(e)))}return f.invert=function(n){return l(e((o||(o=r(u,a.map(t),Hi)))(n)))},f.domain=function(t){return arguments.length?(a=Array.from(t,Xi),c()):a.slice()},f.range=function(t){return arguments.length?(u=Array.from(t),c()):u.slice()},f.rangeRound=function(t){return u=Array.from(t),s=Wi,c()},f.clamp=function(t){return arguments.length?(l=!!t||Qi,c()):l!==Qi},f.interpolate=function(t){return arguments.length?(s=t,c()):s},f.unknown=function(t){return arguments.length?(n=t,f):n},function(n,r){return t=n,e=r,c()}}function oo(){return io()(Qi,Qi)}function ao(t,e,n,r){var i,o=ki(t,e,n);switch((r=Rr(null==r?",f":r)).type){case"s":var a=Math.max(Math.abs(t),Math.abs(e));return null!=r.precision||isNaN(i=function(t,e){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Nr(e)/3)))-Nr(Math.abs(t)))}(o,a))||(r.precision=i),Zi(r,a);case"":case"e":case"g":case"p":case"r":null!=r.precision||isNaN(i=function(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Nr(e)-Nr(t))+1}(o,Math.max(Math.abs(t),Math.abs(e))))||(r.precision=i-("e"===r.type));break;case"f":case"%":null!=r.precision||isNaN(i=function(t){return Math.max(0,-Nr(Math.abs(t)))}(o))||(r.precision=i-2*("%"===r.type))}return Gi(r)}function uo(t){var e=t.domain;return t.ticks=function(t){var n=e();return function(t,e,n){if(!((n=+n)>0))return[];if((t=+t)==(e=+e))return[t];const r=e<t,[i,o,a]=r?xi(e,t,n):xi(t,e,n);if(!(o>=i))return[];const u=o-i+1,s=new Array(u);if(r)if(a<0)for(let t=0;t<u;++t)s[t]=(o-t)/-a;else for(let t=0;t<u;++t)s[t]=(o-t)*a;else if(a<0)for(let t=0;t<u;++t)s[t]=(i+t)/-a;else for(let t=0;t<u;++t)s[t]=(i+t)*a;return s}(n[0],n[n.length-1],null==t?10:t)},t.tickFormat=function(t,n){var r=e();return ao(r[0],r[r.length-1],null==t?10:t,n)},t.nice=function(n){null==n&&(n=10);var r,i,o=e(),a=0,u=o.length-1,s=o[a],l=o[u],c=10;for(l<s&&(i=s,s=l,l=i,i=a,a=u,u=i);c-- >0;){if((i=_i(s,l,n))===r)return o[a]=s,o[u]=l,e(o);if(i>0)s=Math.floor(s/i)*i,l=Math.ceil(l/i)*i;else{if(!(i<0))break;s=Math.ceil(s*i)/i,l=Math.floor(l*i)/i}r=i}return t},t}function so(){var t=oo();return t.copy=function(){return ro(t,so())},li.apply(t,arguments),uo(t)}function lo(t){return t}Ji=Vr({thousands:",",grouping:[3],currency:["$",""]}),Gi=Ji.format,Zi=Ji.formatPrefix;var co=1e-6;function fo(t){return"translate("+t+",0)"}function ho(t){return"translate(0,"+t+")"}function po(t){return e=>+t(e)}function vo(t,e){return e=Math.max(0,t.bandwidth()-2*e)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function go(){return!this.__axis}function yo(t,e){var n=[],r=null,i=null,o=6,a=6,u=3,s="undefined"!=typeof window&&window.devicePixelRatio>1?0:.5,l=1===t||4===t?-1:1,c=4===t||2===t?"x":"y",f=1===t||3===t?fo:ho;function h(h){var d=null==r?e.ticks?e.ticks.apply(e,n):e.domain():r,p=null==i?e.tickFormat?e.tickFormat.apply(e,n):lo:i,v=Math.max(o,0)+u,g=e.range(),y=+g[0]+s,m=+g[g.length-1]+s,b=(e.bandwidth?vo:po)(e.copy(),s),w=h.selection?h.selection():h,x=w.selectAll(".domain").data([null]),_=w.selectAll(".tick").data(d,e).order(),k=_.exit(),M=_.enter().append("g").attr("class","tick"),A=_.select("line"),T=_.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),_=_.merge(M),A=A.merge(M.append("line").attr("stroke","currentColor").attr(c+"2",l*o)),T=T.merge(M.append("text").attr("fill","currentColor").attr(c,l*v).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),h!==w&&(x=x.transition(h),_=_.transition(h),A=A.transition(h),T=T.transition(h),k=k.transition(h).attr("opacity",co).attr("transform",(function(t){return isFinite(t=b(t))?f(t+s):this.getAttribute("transform")})),M.attr("opacity",co).attr("transform",(function(t){var e=this.parentNode.__axis;return f((e&&isFinite(e=e(t))?e:b(t))+s)}))),k.remove(),x.attr("d",4===t||2===t?a?"M"+l*a+","+y+"H"+s+"V"+m+"H"+l*a:"M"+s+","+y+"V"+m:a?"M"+y+","+l*a+"V"+s+"H"+m+"V"+l*a:"M"+y+","+s+"H"+m),_.attr("opacity",1).attr("transform",(function(t){return f(b(t)+s)})),A.attr(c+"2",l*o),T.attr(c,l*v).text(p),w.filter(go).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),w.each((function(){this.__axis=b}))}return h.scale=function(t){return arguments.length?(e=t,h):e},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(t){return arguments.length?(n=null==t?[]:Array.from(t),h):n.slice()},h.tickValues=function(t){return arguments.length?(r=null==t?null:Array.from(t),h):r&&r.slice()},h.tickFormat=function(t){return arguments.length?(i=t,h):i},h.tickSize=function(t){return arguments.length?(o=a=+t,h):o},h.tickSizeInner=function(t){return arguments.length?(o=+t,h):o},h.tickSizeOuter=function(t){return arguments.length?(a=+t,h):a},h.tickPadding=function(t){return arguments.length?(u=+t,h):u},h.offset=function(t){return arguments.length?(s=+t,h):s},h}function mo(t){return yo(3,t)}function bo(t){return yo(4,t)}var wo=function(t,e){var n=[],r=e.note;if(!(e.item&&0!=e.item.length||r))throw new Error("no data");var i=15,o=10,a=50,u=15,s=function(){var t=ve("body").append("div").attr("class","tooltip ui basic black label").style("position","fixed").style("top",0).style("left",0).style("pointer-events","none").style("visibility","hidden");return{position:function(e,n){var r=document.documentElement.clientWidth,i=t.node().offsetWidth,o=e+i+16<r,a=o?e+16:e-i-16,u=n-t.node().offsetHeight/2;return t.style("transform","translate(".concat(a,"px, ").concat(u,"px)")).classed("left right pointing",!1).classed(o?"left":"right",!0).classed("pointing",!0),this},visible:function(e){return t.interrupt().transition().delay(e?0:100).duration(0).style("visibility",(function(){return e?null:"hidden"})),this},content:function(e){return t.html(e),this}}}();for(var l=function(e){var r=e.data;if(!r)return"continue";var l=t.options.colors,c="string"==typeof l?l.split("|"):l;c=null!=c?c:r.colors;for(var f=r.title.substring(0,3),h=[],d=r.colorIndexes,p=0;p<d.length;++p){var v=d[p],g=r.estimate[p]?"url(#diag"+f+v+")":c[v];h.push(g)}var y=ve(ee("svg:defs").call(document.documentElement));y.selectAll("pattern").data(c).join("svg:pattern").attr("id",(function(t,e){return"diag".concat(f).concat(e)})).attr("width",10).attr("height",10).attr("patternTransform","rotate(45 0 0)").attr("patternUnits","userSpaceOnUse").attr("transform","matrix(0.707107, 0.707107, -0.707107, 0.707107, 0, 0)").append("svg:line").attr("x1",0).attr("y1",0).attr("x2",0).attr("y2",10).style("stroke",(function(t){return t})).style("stroke-width",15);var m=si(r.data,(function(t){return t.value0})),b=m[0],w=m[1];w=Math.max(w,1),b=Math.min(b,0);var x=Math.min(5,Math.ceil(w)),_=document.createElement("div");_.setAttribute("data-item",e.item),t.showItem(e.title,_);var k=ve(_).style("height","100%").append("svg").attr("width","100%").attr("height","100%");k.attr("aria-label",e.title),k.append((function(){return y.node()}));var M=yi().domain(r.data.map((function(t){return t.year}))).padding(.2),A=mo(M),T=k.append("g").classed("x-axis",!0),S=so().domain([b,w]),P=bo(S).tickSizeInner(0).tickSizeOuter(0).ticks(x).tickFormat(t.i18n().createNumberFormatter(r.numberFormat,",.0f")),C=k.append("g").classed("y-axis",!0),E=k.append("g"),D=k.append("g");n.push((function(){var n=_.getBoundingClientRect(),l=n.width,c=n.height;k.attr("viewBox","0 0 ".concat(l," ").concat(c)),S.range([c-a,i]),C.call(P).attr("font-size",null).attr("font-family",null).call((function(t){return t.selectAll(".tick").classed("zero",(function(t){return 0===t}))}));var f=45;C.selectAll(".tick > text").each((function(){f=Math.max(f,this.getBBox().width)}));var d=u+f;C.attr("transform","translate(".concat(d,",0)")).selectAll(".tick > line").attr("x2",l-d-o),M.range([d,l-o]),A.tickSizeInner(-(c-i-a)),T.attr("transform","translate(0,".concat(c-a,")")).call(A).call((function(t){return t.select(".domain").remove()})).attr("font-size",null).attr("font-family",null);var p=function(t){return Math.abs(S(0)-S(t))};D.selectAll("rect").data(r.data).join("rect").attr("x",(function(t){return M(t.year)})).attr("y",(function(t){return S(Math.max(t.value0,0))})).attr("height",(function(t){return Math.max(p(t.value0),1)})).attr("width",M.bandwidth()).attr("fill",(function(t,e){return h[e]}));E.selectAll("rect").data(r.data.filter((function(t){return p(t.value0)<45}))).join("rect").attr("x",(function(t){return M(t.year)})).attr("y",(function(t){var e=t.value0>0?45:0;return S(0)-e})).attr("height",45).attr("width",M.bandwidth()).attr("fill","transparent"),k.selectAll("g > rect").on("mousemove",(function(t){s.position(t.clientX,t.clientY)})).on("mouseover",(function(n,r){var i,o,a,u;s.content((i=r,o=e.title,a=i.note?"<span class='note'>"+i.note+"</span>":"",u=i.source&&i.source.publicationTitle?"<span class='source'>"+t.trilingual("Source: ","Quelle: ","Source: ")+i.source.publicationTitle+"</span>":"","<span class='name'>"+o+" "+i.year+"</span><span class='value'>"+i.formattedValue+"</span>"+a+u)).visible(!0)})).on("mouseout",(function(){s.visible(!1)}))}))},c=0,f=e.item;c<f.length;c++){l(f[c])}if(r){var h=document.createElement("div"),d=ve(h).classed("note",!0).html(r);t.markup(d),t.container.appendChild(h)}return{draw:function(){for(var t=0,e=n;t<e.length;t++){(0,e[t])()}}}},xo=function(t,e){if(e){var n=t.handlerValue("load");n&&n(e)}return b};function _o(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n>e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n>i||void 0===n&&i>=i)&&(n=i)}return n}function ko(t,e){let n;if(void 0===e)for(const e of t)null!=e&&(n<e||void 0===n&&e>=e)&&(n=e);else{let r=-1;for(let i of t)null!=(i=e(i,++r,t))&&(n<i||void 0===n&&i>=i)&&(n=i)}return n}function Mo(t,e){return t.parent===e.parent?1:2}function Ao(t,e){return t+e.x}function To(t,e){return Math.max(t,e.y)}function So(){var t=Mo,e=1,n=1,r=!1;function i(i){var o,a=0;i.eachAfter((function(e){var n=e.children;n?(e.x=function(t){return t.reduce(Ao,0)/t.length}(n),e.y=function(t){return 1+t.reduce(To,0)}(n)):(e.x=o?a+=t(e,o):0,e.y=0,o=e)}));var u=function(t){for(var e;e=t.children;)t=e[0];return t}(i),s=function(t){for(var e;e=t.children;)t=e[e.length-1];return t}(i),l=u.x-t(u,s)/2,c=s.x+t(s,u)/2;return i.eachAfter(r?function(t){t.x=(t.x-i.x)*e,t.y=(i.y-t.y)*n}:function(t){t.x=(t.x-l)/(c-l)*e,t.y=(1-(i.y?t.y/i.y:1))*n})}return i.separation=function(e){return arguments.length?(t=e,i):t},i.size=function(t){return arguments.length?(r=!1,e=+t[0],n=+t[1],i):r?null:[e,n]},i.nodeSize=function(t){return arguments.length?(r=!0,e=+t[0],n=+t[1],i):r?[e,n]:null},i}function Po(t){var e=0,n=t.children,r=n&&n.length;if(r)for(;--r>=0;)e+=n[r].value;else e=1;t.value=e}function Co(t,e){t instanceof Map?(t=[void 0,t],void 0===e&&(e=Do)):void 0===e&&(e=Eo);for(var n,r,i,o,a,u=new jo(t),s=[u];n=s.pop();)if((i=e(n.data))&&(a=(i=Array.from(i)).length))for(n.children=i,o=a-1;o>=0;--o)s.push(r=i[o]=new jo(i[o])),r.parent=n,r.depth=n.depth+1;return u.eachBefore(No)}function Eo(t){return t.children}function Do(t){return Array.isArray(t)?t[1]:null}function Oo(t){void 0!==t.data.value&&(t.value=t.data.value),t.data=t.data.data}function No(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function jo(t){this.data=t,this.depth=this.height=0,this.parent=null}jo.prototype=Co.prototype={constructor:jo,count:function(){return this.eachAfter(Po)},each:function(t,e){let n=-1;for(const r of this)t.call(e,r,++n,this);return this},eachAfter:function(t,e){for(var n,r,i,o=this,a=[o],u=[],s=-1;o=a.pop();)if(u.push(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r]);for(;o=u.pop();)t.call(e,o,++s,this);return this},eachBefore:function(t,e){for(var n,r,i=this,o=[i],a=-1;i=o.pop();)if(t.call(e,i,++a,this),n=i.children)for(r=n.length-1;r>=0;--r)o.push(n[r]);return this},find:function(t,e){let n=-1;for(const r of this)if(t.call(e,r,++n,this))return r},sum:function(t){return this.eachAfter((function(e){for(var n=+t(e.data)||0,r=e.children,i=r&&r.length;--i>=0;)n+=r[i].value;e.value=n}))},sort:function(t){return this.eachBefore((function(e){e.children&&e.children.sort(t)}))},path:function(t){for(var e=this,n=function(t,e){if(t===e)return t;var n=t.ancestors(),r=e.ancestors(),i=null;t=n.pop(),e=r.pop();for(;t===e;)i=t,t=n.pop(),e=r.pop();return i}(e,t),r=[e];e!==n;)e=e.parent,r.push(e);for(var i=r.length;t!==n;)r.splice(i,0,t),t=t.parent;return r},ancestors:function(){for(var t=this,e=[t];t=t.parent;)e.push(t);return e},descendants:function(){return Array.from(this)},leaves:function(){var t=[];return this.eachBefore((function(e){e.children||t.push(e)})),t},links:function(){var t=this,e=[];return t.each((function(n){n!==t&&e.push({source:n.parent,target:n})})),e},copy:function(){return Co(this).eachBefore(Oo)},[Symbol.iterator]:function*(){var t,e,n,r,i=this,o=[i];do{for(t=o.reverse(),o=[];i=t.pop();)if(yield i,e=i.children)for(n=0,r=e.length;n<r;++n)o.push(e[n])}while(o.length)}};var Lo=Array.prototype.slice;function Ro(t){return function(){return t}}class Fo{constructor(t,e){this._context=t,this._x=e}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,e,t,e):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+e)/2,t,this._y0,t,e)}this._x0=t,this._y0=e}}function $o(t){return new Fo(t,!0)}const Uo=Math.PI,Ho=2*Uo,Io=1e-6,qo=Ho-Io;function Vo(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}class Bo{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=null==t?Vo:function(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Vo;const n=10**e;return function(t){this._+=t[0];for(let e=1,r=t.length;e<r;++e)this._+=Math.round(arguments[e]*n)/n+t[e]}}(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,n,r){this._append`Q${+t},${+e},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(t,e,n,r,i,o){this._append`C${+t},${+e},${+n},${+r},${this._x1=+i},${this._y1=+o}`}arcTo(t,e,n,r,i){if(t=+t,e=+e,n=+n,r=+r,(i=+i)<0)throw new Error(`negative radius: ${i}`);let o=this._x1,a=this._y1,u=n-t,s=r-e,l=o-t,c=a-e,f=l*l+c*c;if(null===this._x1)this._append`M${this._x1=t},${this._y1=e}`;else if(f>Io)if(Math.abs(c*u-s*l)>Io&&i){let h=n-o,d=r-a,p=u*u+s*s,v=h*h+d*d,g=Math.sqrt(p),y=Math.sqrt(f),m=i*Math.tan((Uo-Math.acos((p+f-v)/(2*g*y)))/2),b=m/y,w=m/g;Math.abs(b-1)>Io&&this._append`L${t+b*l},${e+b*c}`,this._append`A${i},${i},0,0,${+(c*h>l*d)},${this._x1=t+w*u},${this._y1=e+w*s}`}else this._append`L${this._x1=t},${this._y1=e}`;else;}arc(t,e,n,r,i,o){if(t=+t,e=+e,o=!!o,(n=+n)<0)throw new Error(`negative radius: ${n}`);let a=n*Math.cos(r),u=n*Math.sin(r),s=t+a,l=e+u,c=1^o,f=o?r-i:i-r;null===this._x1?this._append`M${s},${l}`:(Math.abs(this._x1-s)>Io||Math.abs(this._y1-l)>Io)&&this._append`L${s},${l}`,n&&(f<0&&(f=f%Ho+Ho),f>qo?this._append`A${n},${n},0,1,${c},${t-a},${e-u}A${n},${n},0,1,${c},${this._x1=s},${this._y1=l}`:f>Io&&this._append`A${n},${n},0,${+(f>=Uo)},${c},${this._x1=t+n*Math.cos(i)},${this._y1=e+n*Math.sin(i)}`)}rect(t,e,n,r){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}}function zo(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(null==n)e=null;else{const t=Math.floor(n);if(!(t>=0))throw new RangeError(`invalid digits: ${n}`);e=t}return t},()=>new Bo(e)}function Yo(t){return t[0]}function Wo(t){return t[1]}function Xo(t){return t.source}function Jo(t){return t.target}function Go(t){let e=Xo,n=Jo,r=Yo,i=Wo,o=null,a=null,u=zo(s);function s(){let s;const l=Lo.call(arguments),c=e.apply(this,l),f=n.apply(this,l);if(null==o&&(a=t(s=u())),a.lineStart(),l[0]=c,a.point(+r.apply(this,l),+i.apply(this,l)),l[0]=f,a.point(+r.apply(this,l),+i.apply(this,l)),a.lineEnd(),s)return a=null,s+""||null}return s.source=function(t){return arguments.length?(e=t,s):e},s.target=function(t){return arguments.length?(n=t,s):n},s.x=function(t){return arguments.length?(r="function"==typeof t?t:Ro(+t),s):r},s.y=function(t){return arguments.length?(i="function"==typeof t?t:Ro(+t),s):i},s.context=function(e){return arguments.length?(null==e?o=a=null:a=t(o=e),s):o},s}function Zo(t){this._context=t}function Ko(t){return new Zo(t)}function Qo(t,e){var n=Ro(!0),r=null,i=Ko,o=null,a=zo(u);function u(u){var s,l,c,f=(u=function(t){return"object"==typeof t&&"length"in t?t:Array.from(t)}(u)).length,h=!1;for(null==r&&(o=i(c=a())),s=0;s<=f;++s)!(s<f&&n(l=u[s],s,u))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(l,s,u),+e(l,s,u));if(c)return o=null,c+""||null}return t="function"==typeof t?t:void 0===t?Yo:Ro(t),e="function"==typeof e?e:void 0===e?Wo:Ro(e),u.x=function(e){return arguments.length?(t="function"==typeof e?e:Ro(+e),u):t},u.y=function(t){return arguments.length?(e="function"==typeof t?t:Ro(+t),u):e},u.defined=function(t){return arguments.length?(n="function"==typeof t?t:Ro(!!t),u):n},u.curve=function(t){return arguments.length?(i=t,null!=r&&(o=i(r)),u):i},u.context=function(t){return arguments.length?(null==t?r=o=null:o=i(r=t),u):r},u}Zo.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e)}}};var ta=20;function ea(t){var e=[{x:0,y:0},{x:1,y:.5},{x:1,y:-.5},{x:0,y:0}],n=Qo().x((function(e){return t*e.x})).y((function(e){return t*e.y})).curve(Ko);return n(e)}function na(t,e,n,r,i,o,a){void 0===a&&(a=0),t.each((function(){var t=ve(this),u=t.select(e).node(),s=t.select(n).node();if(u&&s&&u.textContent){var l=u.getBBox(),c=Number(t.attr("data-dx"));if(0!=c){var f=l.x,h=-c+r,d=o-r-l.width-c;f<h?(l.x=h,ve(u).attr("x",h-f)):f>d&&(l.x=d,ve(u).attr("x",d-f))}ve(s).attr("width",l.width+2*r).attr("height",l.height+2*i).attr("x",l.x-r).attr("y",l.y-i).attr("rx",a).attr("ry",a)}}))}function ra(t){t.reverse();for(var e=[],n=0,r=t;n<r.length;n++){var i=r[n];e.indexOf(i)<0&&e.push(i)}e.reverse();var o,a=e.length;if(a>0&&!((o=window.navigator.userAgent).indexOf("MSIE ")>=0||o.indexOf("Edge ")>=0||o.indexOf("Trident")>=0)){for(var u=e[0].parentNode,s=null==u?[]:u.childNodes,l=!0,c=0;c<a;++c)if(s[s.length-a+c]!=e[c]){l=!1;break}if(!l)for(var f=0,h=e;f<h.length;f++){var d=(i=h[f]).parentNode;null==d||d.appendChild(i)}}}function ia(t,e,n,r,i){var o,a=t.container.getBoundingClientRect().width;function u(t){return e.select(".node[data-id='"+t+"']")}function s(){var t=[];e.select(".node").each((function(){t.push(this)})),t.push(e.select("[data-root]").node()),ra(t)}var l=e.select("g.nodes");l.empty()&&(l=e.append("g").attr("class","nodes")),l.style("pointer-events","all");var c=l.selectAll(".node").data(n),f=function(t){return t.clickable||!t.root},h=c.enter().append("svg:a").attr("class","node").attr("data-leaf",(function(t){return!t.children||0==t.children.length})).attr("data-id",(function(t){return t.id})).attr("data-root",(function(t){return t.root})).attr("data-old",(function(t){var e;return null!==(e=t.old)&&void 0!==e?e:null})).attr("data-warning",(function(t){var e;return null!==(e=t.warning)&&void 0!==e?e:null})).attr("data-d",(function(t){var e;return null!==(e=t.distance)&&void 0!==e?e:null})).attr("xlink:href",(function(t){return t.url||""})).attr("data-clickable",(function(e){return!(!f(e)||!t.getClickHandler(e.type))||null})).on("click",(function(e,n){f(n)&&t.invokeClickHandler(n.query,n.type)&&e.preventDefault()}));return we("mouseover",l.node(),h,(function(t){var n=t.id,s=n==r?"root":"node",l=u(n).attr("data-highlight",s);l.select(".text").text(t.desc),na(l,".text",".text-bg",i?2:5,2,a);var c=e.selectAll("[data-source-id='"+n+"'],[data-target-id='"+n+"']").attr("data-highlight",s);na(c,".desc",".desc-bg",3,2,a),window.clearTimeout(o);var f=[];c.each((function(t){function e(t){t!=n&&f.push(u(t).node())}f.push(this),e(t.source.id),e(t.target.id)})),f.push(l.node()),ra(f)})),we("mouseout",l.node(),h,(function(t){e.selectAll("[data-highlight]").attr("data-highlight","false"),e.select(".node[data-id='"+t.id+"']").select(".text").text(t.text).attr("x",0),o=window.setTimeout(s,1e3)})),h.append("circle").attr("r",ta),h.append("text").attr("class","icon").text((function(t){return t.icon})),h.append("rect").attr("class","text-bg"),h.append("text").attr("class","text").text((function(t){return t.text})),h.filter("[data-warning]").append("circle").attr("r",7).attr("data-warn",!0).attr("transform","translate(20, -20)"),h.filter("[data-warning]").append("text").attr("r",8).attr("class","icon").text("").attr("data-warn",!0).append("title").text((function(t){var e;return null!==(e=t.warning)&&void 0!==e?e:""})),s(),h}function oa(t,e,n){var r,i=t.container.getBoundingClientRect().width;function o(t){var o=t.getAttribute("data-id"),a="true"==t.getAttribute("data-root")?"root":"node";t.setAttribute("data-highlight",a);var u=t.querySelector(".text");u&&(u.textContent=t.getAttribute("data-description")),na(ve(t),".text",".text-bg",n?2:5,2,i);var s=e.selectAll(".link[data-source-id='"+o+"'],.link[data-target-id='"+o+"']").attr("data-highlight",a);na(s,".desc",".desc-bg",3,2,i),window.clearTimeout(r);var l=[];s.each((function(t){var n=this;function r(t){t!=o&&l.push(function(t){return e.select(".node[data-id='"+t+"']")}(t).node())}l.push(n),r(n.getAttribute("data-source-id")||""),r(n.getAttribute("data-target-id")||"")})),l.push(t),ra(l)}function a(){var t=[];e.select(".node").each((function(){t.push(this)})),t.push(e.select("[data-root]").node()),ra(t)}var u=e.select("g.nodes");u.selectAll(".node").each((function(){var e=this,n="true"==e.getAttribute("data-root"),r=t.getLinkifier();if(!n){var i=e.getAttribute("data-type")||"",o=e.getAttribute("data-query")||"";es.debug(e.getAttribute("data-url")+" -> "+r(e)),ve(e).attr("xlink:href",r(e)).attr("data-clickable",t.getClickHandler(i)?"true":"false").on("click",(function(e){t.invokeClickHandler(o,i)&&e.preventDefault()}))}}));u.selectAll(".node").on("mouseover",(function(){o(this)})).on("mouseout",(function(){!function(t){e.selectAll("[data-highlight]").attr("data-highlight","false");var n=t.getAttribute("data-id");e.select(".node[data-id='"+n+"']").select(".text").text(t.getAttribute("data-text")||"").attr("x",0),r=window.setTimeout(a,1e3)}(this)})),a(),es.debug("successfully completed v12")}var aa=function(){return aa=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},aa.apply(this,arguments)},ua=function(t,e){var n=t.container;ve(n).selectAll(".shake").style("display","none");var r=e.size>=10,i=e.scope,o=ve(n).append("svg").attr("data-dense",r).attr("aria-label",e.desc);return{draw:function(){for(var a,u=n.getBoundingClientRect().width,s={left:-u/6,right:u/6,top:-20,bottom:38},l={left:-8,right:u/3-8,top:-8,bottom:8},c=r?l:s,f=s,h=r?[l.bottom-l.top,l.right-l.left]:[s.bottom-s.top,s.right-s.left],d=r?7:12,p=So().nodeSize(h).separation((function(t,e){var n=t.parent==e.parent;if(r){if(n)return 1;var i=1*(t.parent.children.length+e.parent.children.length)/2+1.5;return i<5?1.5+(5-i):1.5}return n?1:1.4}))(Co(e)),v=function(t){return aa(aa({},t.data),{x:t.x,y:t.y,depth:t.depth})},g=p.descendants().map(v),y=p.links().map((function(t){return{target:v(t.target),source:v(t.source)}})),m=0,b=0,w=g;b<w.length;b++){var x=w[b];x.root&&(a=x,"publication"===i&&(x.clickable=!0)),m=Math.max(m,x.depth)}o.select("g").remove();var _=o.append("g"),k=_.append("g").selectAll(".link").data(y),M=function(t){return t.target.edge},A=k.enter().append("g").attr("class","link").attr("data-source-id",(function(t){return t.source.id})).attr("data-target-id",(function(t){return t.target.id})).attr("data-old",(function(t){var e,n;return null!==(n=null===(e=M(t))||void 0===e?void 0:e.old)&&void 0!==n?n:null})).attr("data-warn",(function(t){var e,n;return null!==(n=null===(e=M(t))||void 0===e?void 0:e.warn)&&void 0!==n?n:null})).attr("data-head",(function(t){var e,n;return null!==(n=null===(e=M(t))||void 0===e?void 0:e.head)&&void 0!==n?n:null})).attr("data-tail",(function(t){var e,n;return null!==(n=null===(e=M(t))||void 0===e?void 0:e.tail)&&void 0!==n?n:null}));A.append("path").attr("class","line"),A.append("path").attr("class","head").attr("d",ea(d)),A.append("path").attr("class","tail").attr("d",ea(d));var T=ia(t,_,g,a?a.id:void 0,r),S=function(t,e){return"translate("+t+","+e+")"},P=function(t){var e=function(t){return!t.children||0===t.children.length},n=function(t){return e(t)?c:f},i=function(t){return t.y+n(t).left},o=_o(g,i),a=ko(g,(function(t){return t.y+n(t).right})),u=[o,a],s=_o(g,(function(t){return t.x+n(t).top})),l=ko(g,(function(t){return t.x+n(t).bottom})),h=si(g,(function(t){return t.x})),d=h[1]-h[0],p=so().domain(u).range([0,t]),v=so().domain(h).range([0,d]),y=function(t){return p(r&&e(t)?i(t):t.y)},m=function(t){return v(t.x)},b=function(t){return S(y(t),m(t))},w=Go($o).x((function(t){return y(t)})).y((function(t){return m(t)})),x=Math.max(10,(150-(l-s))/2),_=l-h[1]+x,k=h[0]-s+x;return{height:d+_+k,diagonal:w,nodeTransform:b,headTransform:function(t){return b(t.target)+" "+S(r&&e(t.target)?0:-20,0)+" rotate(180)"},tailTransform:function(t){return b(t.source)+" "+S(ta,0)},canvasTransform:S(0,k)}}(u);me(n,P.height),o.attr("width","100%").attr("height","100%").attr("viewBox","0 0 ".concat(u," ").concat(P.height)),_.attr("transform",P.canvasTransform),T.attr("transform",P.nodeTransform),A.select(".line").attr("d",P.diagonal),A.select(".head").attr("transform",P.headTransform),A.select(".tail").attr("transform",P.tailTransform)}}};function sa(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 la(t,e,n,r,i){for(var o,a=t.children,u=-1,s=a.length,l=t.value&&(r-e)/t.value;++u<s;)(o=a[u]).y0=n,o.y1=i,o.x0=e,o.x1=e+=o.value*l}function ca(t,e,n,r,i){for(var o,a=t.children,u=-1,s=a.length,l=t.value&&(i-n)/t.value;++u<s;)(o=a[u]).x0=e,o.x1=r,o.y0=n,o.y1=n+=o.value*l}var fa=function t(e){function n(t,n,r,i,o){!function(t,e,n,r,i,o){for(var a,u,s,l,c,f,h,d,p,v,g,y=[],m=e.children,b=0,w=0,x=m.length,_=e.value;b<x;){s=i-n,l=o-r;do{c=m[w++].value}while(!c&&w<x);for(f=h=c,g=c*c*(v=Math.max(l/s,s/l)/(_*t)),p=Math.max(h/g,g/f);w<x;++w){if(c+=u=m[w].value,u<f&&(f=u),u>h&&(h=u),g=c*c*v,(d=Math.max(h/g,g/f))>p){c-=u;break}p=d}y.push(a={value:c,dice:s<l,children:m.slice(b,w)}),a.dice?la(a,n,r,i,_?r+=l*c/_:o):ca(a,n,r,_?n+=s*c/_:i,o),_-=c,b=w}}(e,t,n,r,i,o)}return n.ratio=function(e){return t((e=+e)>1?e:1)},n}((1+Math.sqrt(5))/2);function ha(t){if("function"!=typeof t)throw new Error;return t}function da(){return 0}function pa(t){return function(){return t}}var va=function(t,e){var n,r,i;if(!e.item||0==e.item.length)throw new Error("no data");for(var o=[],a=function(e){var a=e.data,u=document.createElement("div"),s=ve(u).attr("data-item",e.item).attr("class","root"),l=s.append("div").attr("class","box-parent");t.showItem(e.title,u);var c=ve(null!==(n=t.nodeValue("legend1"))&&void 0!==n?n:null);c.empty()&&(c=s.selectAll(".legend1"));var f=ve(null!==(r=t.nodeValue("legend2"))&&void 0!==r?r:null);f.empty()&&(f=s.selectAll(".legend2"));var h=ve(null!==(i=t.nodeValue("legend3"))&&void 0!==i?i:null);if(h.empty()&&(h=s.selectAll(".legend3")),c.empty()||f.empty()||h.empty()){var d=s.selectAll(".legends");d.empty()&&(d=s.append("div").attr("class","legends")),c.empty()&&(c=d.append("span").attr("class","legend1")),f.empty()&&(f=d.append("span").attr("class","legend2")),h.empty()&&(h=d.append("span").attr("class","legend3"))}h.text(Qr("As of: ","Stand: ","Date de ")+e.date);var p=t.i18n().createNumberFormatter(a.numberFormat,",.3r"),v=null,g=function(t,e){e.children||v&&v!=e||(l.classed("highlighting",!0),ge(".highlighted").classed("highlighted",!1),ve(t).classed("highlighted",!0),m(e))},y=function(){var t;v||(l.classed("highlighting",!1),ge(".highlighted").classed("highlighted",!1),m(null!==(t=a.default)&&void 0!==t?t:a.root))},m=function(t){var e;c.text((null!==(e=t.formattedValue)&&void 0!==e?e:p(t.raw))+" "),f.text(t.name)};y(),function(e){var n=t.getRootColor();!function t(e,n,r,i){e.color=n.toString();var o=r;if(e.children){var a=e.children.length+1;if(a>0)for(var u=(i-r)/a,s=0,l=e.children;s<l.length;s++){var c=l[s];n.h=o%360,t(c,n,o,o+u),o+=u}}}(e,n,n.h,n.h+360)}(a.root);o.push((function(){var t=l.node().getBoundingClientRect();if(0!=t.width&&0!=t.height){var e=Co(a.root).sum((function(t){return t.children?0:Math.abs(t.raw)})).sort((function(t,e){return Mi(t.value,e.value)})),n=function(){var t=fa,e=!1,n=1,r=1,i=[0],o=da,a=da,u=da,s=da,l=da;function c(t){return t.x0=t.y0=0,t.x1=n,t.y1=r,t.eachBefore(f),i=[0],e&&t.eachBefore(sa),t}function f(e){var n=i[e.depth],r=e.x0+n,c=e.y0+n,f=e.x1-n,h=e.y1-n;f<r&&(r=f=(r+f)/2),h<c&&(c=h=(c+h)/2),e.x0=r,e.y0=c,e.x1=f,e.y1=h,e.children&&(n=i[e.depth+1]=o(e)/2,r+=l(e)-n,c+=a(e)-n,(f-=u(e)-n)<r&&(r=f=(r+f)/2),(h-=s(e)-n)<c&&(c=h=(c+h)/2),t(e,r,c,f,h))}return c.round=function(t){return arguments.length?(e=!!t,c):e},c.size=function(t){return arguments.length?(n=+t[0],r=+t[1],c):[n,r]},c.tile=function(e){return arguments.length?(t=ha(e),c):t},c.padding=function(t){return arguments.length?c.paddingInner(t).paddingOuter(t):c.paddingInner()},c.paddingInner=function(t){return arguments.length?(o="function"==typeof t?t:pa(+t),c):o},c.paddingOuter=function(t){return arguments.length?c.paddingTop(t).paddingRight(t).paddingBottom(t).paddingLeft(t):c.paddingTop()},c.paddingTop=function(t){return arguments.length?(a="function"==typeof t?t:pa(+t),c):a},c.paddingRight=function(t){return arguments.length?(u="function"==typeof t?t:pa(+t),c):u},c.paddingBottom=function(t){return arguments.length?(s="function"==typeof t?t:pa(+t),c):s},c.paddingLeft=function(t){return arguments.length?(l="function"==typeof t?t:pa(+t),c):l},c}().size(ye(t)).round(!0)(e),r=function(t){return t.x1-t.x0},i=function(t){return t.y1-t.y0},o=l.selectAll(".box").data(n.descendants()),u=o.enter().append("div").attr("class","box").on("mouseenter",(function(t,e){g(this,e.data)})).on("mouseleave",y).on("click",(function(t,e){!function(t,e){v==e?(v=null,y()):(v=e,g(t,e))}(this,e.data)})).attr("data-neg",(function(t){return!!(t.data.raw<0||(e=t.data.name,e&&e.indexOf("Fehlbetrag")>=0));var e}));u.append("div").attr("class","value").text((function(t){var e,n;return t.children?null:null!==(n=null===(e=null==t?void 0:t.data)||void 0===e?void 0:e.formattedValue)&&void 0!==n?n:p(t.value)})),u.append("div").attr("class","desc").text((function(t){return t.children?null:t.data.name})),u.merge(o).attr("data-small",(function(t){return r(t)<40||i(t)<32||null})).style("left",(function(t){return t.x0+"px"})).style("top",(function(t){return t.y0+"px"})).style("width",(function(t){return Math.max(0,r(t)-1)+"px"})).style("height",(function(t){return Math.max(0,i(t)-1)+"px"})).style("background",(function(t){return t.children?"white":t.data.color}))}}))},u=0,s=e.item;u<s.length;u++){a(s[u])}return{draw:function(){for(var t=0,e=o;t<e.length;t++){(0,e[t])()}}}},ga=function(t,e){var n=e&&e.financials&&e.financials.filter((function(t){return t.items.length>0})),r=t.isReverseChronology();if(!(n&&n.length>0&&n[0].items.length>0))throw new Error("no data available");for(var i=ve(t.container).append("table").attr("class","ui bizq very compact celled small unstackable striped selectable first stuck table"),o=i.append("thead").append("tr"),a=i.append("tbody"),u=i.append("tfoot").append("tr"),s={},l=0,c=n;l<c.length;l++){var f=c[l];f.itemsById={};for(var h=0,d=f.items;h<d.length;h++){var p=d[h];f.itemsById[p.id]=p,s[p.id]=p}}var v=n[n.length-1];r&&n.reverse(),o.append("th").attr("class","first").text(t.stringValue("title")).append("a").attr("href",e.csvUrl).attr("download","download").attr("title","CSV/Excel Download").classed("screen-only",!0).append("i").attr("class","download icon");for(var g=0,y=n;g<y.length;g++){var m=y[g];o.append("th").text(m.formattedDate)}for(var w in s){var x=a.append("tr").attr("class","active-on-hover"),_=s[w];x.append("td").text(_.name);for(var k=0,M=n;k<M.length;k++){var A=M[k].itemsById[w],T=x.append("td");if(A){var S=A.value>=0?"pos":"neg",P=A.formattedValue;T.append("span").attr("class",S+" value").text(P),A.estimate&&T.append("a").attr("href","javascript:void()").attr("title",t.trilingual("Unsafe value (estimation or indirect determination)","Indirekte oder unsichere Bestimmungsmethode","Valeur non sûre (estimation ou détermination indirecte)")).html(" * "),A.note&&T.append("span").attr("class","note").text(A.note)}else T.append("span").text("N/A")}}if(v.source){if(v.source.auditorName){(x=a.append("tr").attr("class","active-on-hover")).append("td").text(t.trilingual("Auditor","Prüfer","Auditeur"));for(var C=0,E=n;C<E.length;C++){var D=E[C],O=D.source&&D.source.auditorName;(T=x.append("td")).append("span").attr("class","auditor value").text(O||"N/A")}}if(v.source&&v.source.publicationDate){(x=a.append("tr").attr("class","active-on-hover")).append("td").text(t.trilingual("Publication date","Veröffentlichungsdatum","Date de publication"));for(var N=0,j=n;N<j.length;N++){var L=j[N],R=L.source&&L.source.publicationDate;(T=x.append("td")).append("span").attr("class","date value").text(R?t.i18n().dateFormatter(new Date(R)):"N/A")}}u.append("th").text(t.trilingual("Source","Quelle","Source"));for(var F=t.handlerValue("sourceClick"),$=function(t){var e=u.append("th");e.html(t.note.html),F&&e.selectAll("a").attr("href","javascript:void(0);").on("click",(function(e){e.preventDefault(),F(t.source)}))},U=0,H=n;U<H.length;U++){$(H[U])}}return b},ya=function(t,e){if(e.children)return ua(t,e);var n,r="orgchart"==e.type,i=t.container;if(e.html)return i.innerHTML=e.html,e.legendHtml||ve(i).selectAll("foreignObject:has(> .extended-legend-button)").remove(),na(ve(i).selectAll(".link"),".desc",".desc-bg",3,3,1e3),oa(t,ve(i).select("svg"),!1),{draw:function(){}};if(!e.nodes||e.nodes.length<2)throw new Error("graph empty or single node");for(var o={},a=e.nodes.length,u=!1,s=0,l=e.nodes;s<l.length;s++){var c=l[s];c.root&&(n=c),c.warning&&(u=!0),o[c.id]=c}for(var f=0,h=e.links;f<h.length;f++){var d=h[f];d.source=o[d.source],d.target=o[d.target],d.source&&d.target||es.log("error","broken link: ",d)}var p=ve(i).append("svg").attr("width","100%").attr("height","100%").attr("aria-label",Qr("Network","Netzwerk","Réseau")),v=p.append("g").attr("class","nodes").selectAll(".link").data(e.links),g=p.append("g").attr("class","legend");r||(g.append("line").attr("data-old",!1),g.append("line").attr("data-old",!0)),u&&g.append("line").attr("data-warn",!0),g.append("text").attr("data-old",!1).text(t.trilingual("currently","aktuell","actuel")),g.append("text").attr("data-old",!0).text(t.trilingual("previously","vormals","auparavant")),u&&g.append("text").attr("data-warn",!0).text(t.trilingual("politically exposed","politisch exponiert","politiquement exposé"));var y=v.enter().append("g").attr("class","link").attr("data-source-id",(function(t){return t.source.id})).attr("data-target-id",(function(t){return t.target.id})).attr("data-head",(function(t){return t.head})).attr("data-tail",(function(t){return t.tail})).attr("data-old",(function(t){return t.old})).attr("data-warn",(function(t){return t.warn})).attr("data-length",(function(t){return t.length})).attr("data-helper",(function(t){return t.helper}));if(r)for(var m=0;m<3;++m)y.append("line").attr("class","line").attr("class","segment"+m).attr("stroke-width",1).attr("stroke","#000000");else y.append("line").attr("class","line").attr("stroke-width",1).attr("stroke","#000000").attr("stroke-dasharray",(function(t){return function(t){return"SameAddress"==t.type?"3, 3":"CommonFiling"==t.type?"6, 6":void 0}(t)}));y.append("rect").attr("class","desc-bg"),y.append("text").attr("class","desc").attr("text-anchor","middle").text((function(t){return t.text})),y.append("path").attr("class","head").attr("d",ea(12)),y.append("path").attr("class","tail").attr("d",ea(12));var b=ia(t,p,e.nodes,n.id,!1),w=0,x=!0,_=function(){if(!x&&w++%3==0){var t=i.getBoundingClientRect(),n=t.width,o=t.height,u=si(e.nodes,(function(t){return t.x})),s=si(e.nodes,(function(t){return t.y})),l=[100,n-100],c=r?s:[40,(2==a?120:o)-60],f=U(u),h=U(l),d=U(s),v=U(c),g=$(u,l),m=$(s,c),_=2==a?2:1.1*e.diameter;g=Math.min(g,m*_),2==a&&(m=0,g*=2,me(i,120));var k=function(t){return(t-f)*g+h},M=function(t){return(t-d)*m+v},A=function(t){return k(t.source.x)},T=function(t){return k(t.target.x)},S=function(t){return M(t.source.y)},P=function(t){return M(t.target.y)},C=function(t){return T(t)-A(t)},E=function(t){return P(t)-S(t)},D=function(t){return(T(t)-A(t))/2},O=function(t){return(P(t)-S(t))/2},N=function(t){return 180/Math.PI*Math.atan2(E(t),C(t))};y.attr("transform",(function(t){return"translate("+A(t)+" "+S(t)+")"})),y.select("line").attr("x1",0).attr("y1",0).attr("x2",C).attr("y2",E),y.select(".segment0").attr("x1",0).attr("y1",0).attr("x2",0).attr("y2",O),y.select(".segment1").attr("x1",0).attr("y1",O).attr("x2",C).attr("y2",O),y.select(".segment2").attr("x1",C).attr("y1",O).attr("x2",C).attr("y2",E);var j=function(t){return"rotate("+function(t){var e=180/Math.PI*Math.atan2(E(t),C(t));return e>90&&e<270?e-=180:e<-90&&e>-270&&(e+=180),e}(t)+" "+D(t)+" "+O(t)+" ) translate(0 -7)"};if(y.select(".desc").attr("x",D).attr("y",O).attr("transform",j),y.select(".desc-bg").attr("x",D).attr("y",O).attr("transform",j),!r){y.select(".tail").attr("transform",(function(t){return"rotate("+N(t)+") translate("+"20 0)"})),y.select(".head").attr("transform",(function(t){return"translate("+function(t){return C(t)+0}(t)+" "+function(t){return E(t)+0}(t)+") rotate("+(180+N(t))+") translate("+"20 0)"}))}var L=c[1]+20,R=L-18,F=L+18;p.selectAll(".legend line").attr("x1",50).attr("x2",90),p.selectAll(".legend line[data-old='false'").attr("y1",R).attr("y2",R),p.selectAll(".legend line[data-old='true'").attr("y1",L).attr("y2",L),p.selectAll(".legend line[data-warn='true'").attr("y1",F).attr("y2",F),p.selectAll(".legend text").attr("x",95);p.selectAll(".legend text[data-old='false'").attr("y",R+3),p.selectAll(".legend text[data-old='true'").attr("y",L+3),p.selectAll(".legend text[data-warn='true'").attr("y",F+3),na(y,".desc",".desc-bg",3,3,1e3),b.attr("data-dx",(function(t){return k(t.x)})).attr("transform",(function(t){return"translate("+k(t.x)+","+M(t.y)+")"}))}function $(t,e){return(e[1]-e[0])/(t[1]-t[0])}function U(t){return(t[1]+t[0])/2}};return{draw:function(){var t=ye(i.getBoundingClientRect()),e=t[0],n=t[1];p.attr("viewBox","0 0 "+e+" "+n),x=!1,_()}}};const ma=Pe((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));ma.every=t=>(t=Math.floor(t),isFinite(t)&&t>0?t>1?Pe((e=>{e.setTime(Math.floor(e/t)*t)}),((e,n)=>{e.setTime(+e+n*t)}),((e,n)=>(n-e)/t)):ma:null);ma.range;function ba(t,e,n,r,i,o){const a=[[Ar,1,Ce],[Ar,5,5e3],[Ar,15,15e3],[Ar,30,3e4],[o,1,Ee],[o,5,3e5],[o,15,9e5],[o,30,18e5],[i,1,De],[i,3,108e5],[i,6,216e5],[i,12,432e5],[r,1,Oe],[r,2,1728e5],[n,1,Ne],[e,1,je],[e,3,7776e6],[t,1,Le]];function u(e,n,r){const i=Math.abs(n-e)/r,o=Ti((([,,t])=>t)).right(a,i);if(o===a.length)return t.every(ki(e/Le,n/Le,r));if(0===o)return ma.every(Math.max(ki(e,n,r),1));const[u,s]=a[i/a[o-1][2]<a[o][2]/i?o-1:o];return u.every(s)}return[function(t,e,n){const r=e<t;r&&([t,e]=[e,t]);const i=n&&"function"==typeof n.range?n:u(t,e,n),o=i?i.range(t,+e+1):[];return r?o.reverse():o},u]}const[wa,xa]=ba(nn,Dr,ze,tn,Cr,Sr),[_a,ka]=ba(en,Er,Fe,Ke,Pr,Tr);var Ma,Aa;function Ta(t){return new Date(t)}function Sa(t){return t instanceof Date?+t:+new Date(+t)}function Pa(t,e,n,r,i,o,a,u,s,l){var c=oo(),f=c.invert,h=c.domain,d=l(".%L"),p=l(":%S"),v=l("%I:%M"),g=l("%I %p"),y=l("%a %d"),m=l("%b %d"),b=l("%B"),w=l("%Y");function x(t){return(s(t)<t?d:u(t)<t?p:a(t)<t?v:o(t)<t?g:r(t)<t?i(t)<t?y:m:n(t)<t?b:w)(t)}return c.invert=function(t){return new Date(f(t))},c.domain=function(t){return arguments.length?h(Array.from(t,Sa)):h().map(Ta)},c.ticks=function(e){var n=h();return t(n[0],n[n.length-1],null==e?10:e)},c.tickFormat=function(t,e){return null==e?x:l(e)},c.nice=function(t){var n=h();return t&&"function"==typeof t.range||(t=e(n[0],n[n.length-1],null==t?10:t)),t?h(function(t,e){var n,r=0,i=(t=t.slice()).length-1,o=t[r],a=t[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),t[r]=e.floor(o),t[i]=e.ceil(a),t}(n,t)):c},c.copy=function(){return ro(c,Pa(t,e,n,r,i,o,a,u,s,l))},c}function Ca(){return li.apply(Pa(_a,ka,en,Er,Fe,Ke,Pr,Tr,Ar,Aa).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}!function(t){Ma=un(t),Aa=Ma.format,Ma.parse,Ma.utcFormat,Ma.utcParse}({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"]});var Ea={value:()=>{}};function Da(){for(var t,e=0,n=arguments.length,r={};e<n;++e){if(!(t=arguments[e]+"")||t in r||/[\s.]/.test(t))throw new Error("illegal type: "+t);r[t]=[]}return new Oa(r)}function Oa(t){this._=t}function Na(t,e){for(var n,r=0,i=t.length;r<i;++r)if((n=t[r]).name===e)return n.value}function ja(t,e,n){for(var r=0,i=t.length;r<i;++r)if(t[r].name===e){t[r]=Ea,t=t.slice(0,r).concat(t.slice(r+1));break}return null!=n&&t.push({name:e,value:n}),t}Oa.prototype=Da.prototype={constructor:Oa,on:function(t,e){var n,r,i=this._,o=(r=i,(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)),t&&!r.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:e}}))),a=-1,u=o.length;if(!(arguments.length<2)){if(null!=e&&"function"!=typeof e)throw new Error("invalid callback: "+e);for(;++a<u;)if(n=(t=o[a]).type)i[n]=ja(i[n],t.name,e);else if(null==e)for(n in i)i[n]=ja(i[n],t.name,null);return this}for(;++a<u;)if((n=(t=o[a]).type)&&(n=Na(i[n],t.name)))return n},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Oa(t)},call:function(t,e){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=0,n=(r=this._[t]).length;o<n;++o)r[o].value.apply(e,i)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var r=this._[t],i=0,o=r.length;i<o;++i)r[i].value.apply(e,n)}};var La,Ra,Fa=Da,$a=0,Ua=0,Ha=0,Ia=0,qa=0,Va=0,Ba="object"==typeof performance&&performance.now?performance:Date,za="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Ya(){return qa||(za(Wa),qa=Ba.now()+Va)}function Wa(){qa=0}function Xa(){this._call=this._time=this._next=null}function Ja(t,e,n){var r=new Xa;return r.restart(t,e,n),r}function Ga(){qa=(Ia=Ba.now())+Va,$a=Ua=0;try{!function(){Ya(),++$a;for(var t,e=La;e;)(t=qa-e._time)>=0&&e._call.call(void 0,t),e=e._next;--$a}()}finally{$a=0,function(){var t,e,n=La,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),t=n,n=n._next):(e=n._next,n._next=null,n=t?t._next=e:La=e);Ra=t,Ka(r)}(),qa=0}}function Za(){var t=Ba.now(),e=t-Ia;e>1e3&&(Va-=e,Ia=t)}function Ka(t){$a||(Ua&&(Ua=clearTimeout(Ua)),t-qa>24?(t<1/0&&(Ua=setTimeout(Ga,t-Ba.now()-Va)),Ha&&(Ha=clearInterval(Ha))):(Ha||(Ia=Ba.now(),Ha=setInterval(Za,1e3)),$a=1,za(Ga)))}function Qa(t,e,n){var r=new Xa;return e=null==e?0:+e,r.restart((n=>{r.stop(),t(n+e)}),e,n),r}Xa.prototype=Ja.prototype={constructor:Xa,restart:function(t,e,n){if("function"!=typeof t)throw new TypeError("callback is not a function");n=(null==n?Ya():+n)+(null==e?0:+e),this._next||Ra===this||(Ra?Ra._next=this:La=this,Ra=this),this._call=t,this._time=n,Ka()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ka())}};var tu=Fa("start","end","cancel","interrupt"),eu=[];function nu(t,e,n,r,i,o){var a=t.__transition;if(a){if(n in a)return}else t.__transition={};!function(t,e,n){var r,i=t.__transition;function o(t){n.state=1,n.timer.restart(a,n.delay,n.time),n.delay<=t&&a(t-n.delay)}function a(o){var l,c,f,h;if(1!==n.state)return s();for(l in i)if((h=i[l]).name===n.name){if(3===h.state)return Qa(a);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",t,t.__data__,h.index,h.group),delete i[l]):+l<e&&(h.state=6,h.timer.stop(),h.on.call("cancel",t,t.__data__,h.index,h.group),delete i[l])}if(Qa((function(){3===n.state&&(n.state=4,n.timer.restart(u,n.delay,n.time),u(o))})),n.state=2,n.on.call("start",t,t.__data__,n.index,n.group),2===n.state){for(n.state=3,r=new Array(f=n.tween.length),l=0,c=-1;l<f;++l)(h=n.tween[l].value.call(t,t.__data__,n.index,n.group))&&(r[++c]=h);r.length=c+1}}function u(e){for(var i=e<n.duration?n.ease.call(null,e/n.duration):(n.timer.restart(s),n.state=5,1),o=-1,a=r.length;++o<a;)r[o].call(t,i);5===n.state&&(n.on.call("end",t,t.__data__,n.index,n.group),s())}function s(){for(var r in n.state=6,n.timer.stop(),delete i[e],i)return;delete t.__transition}i[e]=n,n.timer=Ja(o,0,n.time)}(t,n,{name:e,index:r,group:i,on:tu,tween:eu,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function ru(t,e){var n=ou(t,e);if(n.state>0)throw new Error("too late; already scheduled");return n}function iu(t,e){var n=ou(t,e);if(n.state>3)throw new Error("too late; already running");return n}function ou(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}var au,uu=180/Math.PI,su={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function lu(t,e,n,r,i,o){var a,u,s;return(a=Math.sqrt(t*t+e*e))&&(t/=a,e/=a),(s=t*n+e*r)&&(n-=t*s,r-=e*s),(u=Math.sqrt(n*n+r*r))&&(n/=u,r/=u,s/=u),t*r<e*n&&(t=-t,e=-e,s=-s,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(e,t)*uu,skewX:Math.atan(s)*uu,scaleX:a,scaleY:u}}function cu(t,e,n,r){function i(t){return t.length?t.pop()+" ":""}return function(o,a){var u=[],s=[];return o=t(o),a=t(a),function(t,r,i,o,a,u){if(t!==i||r!==o){var s=a.push("translate(",null,e,null,n);u.push({i:s-4,x:Hi(t,i)},{i:s-2,x:Hi(r,o)})}else(i||o)&&a.push("translate("+i+e+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,u,s),function(t,e,n,o){t!==e?(t-e>180?e+=360:e-t>180&&(t+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Hi(t,e)})):e&&n.push(i(n)+"rotate("+e+r)}(o.rotate,a.rotate,u,s),function(t,e,n,o){t!==e?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Hi(t,e)}):e&&n.push(i(n)+"skewX("+e+r)}(o.skewX,a.skewX,u,s),function(t,e,n,r,o,a){if(t!==n||e!==r){var u=o.push(i(o)+"scale(",null,",",null,")");a.push({i:u-4,x:Hi(t,n)},{i:u-2,x:Hi(e,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,u,s),o=a=null,function(t){for(var e,n=-1,r=s.length;++n<r;)u[(e=s[n]).i]=e.x(t);return u.join("")}}}var fu=cu((function(t){const e=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?su:lu(e.a,e.b,e.c,e.d,e.e,e.f)}),"px, ","px)","deg)"),hu=cu((function(t){return null==t?su:(au||(au=document.createElementNS("http://www.w3.org/2000/svg","g")),au.setAttribute("transform",t),(t=au.transform.baseVal.consolidate())?lu((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):su)}),", ",")",")");function du(t,e){var n,r;return function(){var i=iu(this,t),o=i.tween;if(o!==n)for(var a=0,u=(r=n=o).length;a<u;++a)if(r[a].name===e){(r=r.slice()).splice(a,1);break}i.tween=r}}function pu(t,e,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=iu(this,t),a=o.tween;if(a!==r){i=(r=a).slice();for(var u={name:e,value:n},s=0,l=i.length;s<l;++s)if(i[s].name===e){i[s]=u;break}s===l&&i.push(u)}o.tween=i}}function vu(t,e,n){var r=t._id;return t.each((function(){var t=iu(this,r);(t.value||(t.value={}))[e]=n.apply(this,arguments)})),function(t){return ou(t,r).value[e]}}function gu(t,e){var n;return("number"==typeof e?Hi:e instanceof U?Ri:(n=U(e))?(e=n,Ri):Bi)(t,e)}function yu(t){return function(){this.removeAttribute(t)}}function mu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function bu(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttribute(t);return a===o?null:a===r?i:i=e(r=a,n)}}function wu(t,e,n){var r,i,o=n+"";return function(){var a=this.getAttributeNS(t.space,t.local);return a===o?null:a===r?i:i=e(r=a,n)}}function xu(t,e,n){var r,i,o;return function(){var a,u,s=n(this);if(null!=s)return(a=this.getAttribute(t))===(u=s+"")?null:a===r&&u===i?o:(i=u,o=e(r=a,s));this.removeAttribute(t)}}function _u(t,e,n){var r,i,o;return function(){var a,u,s=n(this);if(null!=s)return(a=this.getAttributeNS(t.space,t.local))===(u=s+"")?null:a===r&&u===i?o:(i=u,o=e(r=a,s));this.removeAttributeNS(t.space,t.local)}}function ku(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}(t,i)),n}return i._value=e,i}function Mu(t,e){var n,r;function i(){var i=e.apply(this,arguments);return i!==r&&(n=(r=i)&&function(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}(t,i)),n}return i._value=e,i}function Au(t,e){return function(){ru(this,t).delay=+e.apply(this,arguments)}}function Tu(t,e){return e=+e,function(){ru(this,t).delay=e}}function Su(t,e){return function(){iu(this,t).duration=+e.apply(this,arguments)}}function Pu(t,e){return e=+e,function(){iu(this,t).duration=e}}var Cu=pe.prototype.constructor;function Eu(t){return function(){this.style.removeProperty(t)}}var Du=0;function Ou(t,e,n,r){this._groups=t,this._parents=e,this._name=n,this._id=r}function Nu(){return++Du}var ju=pe.prototype;Ou.prototype=function(t){return pe().transition(t)}.prototype={constructor:Ou,select:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=rt(t));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var u,s,l=r[a],c=l.length,f=o[a]=new Array(c),h=0;h<c;++h)(u=l[h])&&(s=t.call(u,u.__data__,h,l))&&("__data__"in u&&(s.__data__=u.__data__),f[h]=s,nu(f[h],e,n,h,f,ou(u,n)));return new Ou(o,this._parents,e,n)},selectAll:function(t){var e=this._name,n=this._id;"function"!=typeof t&&(t=at(t));for(var r=this._groups,i=r.length,o=[],a=[],u=0;u<i;++u)for(var s,l=r[u],c=l.length,f=0;f<c;++f)if(s=l[f]){for(var h,d=t.call(s,s.__data__,f,l),p=ou(s,n),v=0,g=d.length;v<g;++v)(h=d[v])&&nu(h,e,n,v,d,p);o.push(d),a.push(s)}return new Ou(o,a,e,n)},selectChild:ju.selectChild,selectChildren:ju.selectChildren,filter:function(t){"function"!=typeof t&&(t=ut(t));for(var e=this._groups,n=e.length,r=new Array(n),i=0;i<n;++i)for(var o,a=e[i],u=a.length,s=r[i]=[],l=0;l<u;++l)(o=a[l])&&t.call(o,o.__data__,l,a)&&s.push(o);return new Ou(r,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,r=e.length,i=n.length,o=Math.min(r,i),a=new Array(r),u=0;u<o;++u)for(var s,l=e[u],c=n[u],f=l.length,h=a[u]=new Array(f),d=0;d<f;++d)(s=l[d]||c[d])&&(h[d]=s);for(;u<r;++u)a[u]=e[u];return new Ou(a,this._parents,this._name,this._id)},selection:function(){return new Cu(this._groups,this._parents)},transition:function(){for(var t=this._name,e=this._id,n=Nu(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],s=u.length,l=0;l<s;++l)if(a=u[l]){var c=ou(a,e);nu(a,t,n,l,u,{time:c.time+c.delay+c.duration,delay:0,duration:c.duration,ease:c.ease})}return new Ou(r,this._parents,t,n)},call:ju.call,nodes:ju.nodes,node:ju.node,size:ju.size,empty:ju.empty,each:ju.each,on:function(t,e){var n=this._id;return arguments.length<2?ou(this.node(),n).on.on(t):this.each(function(t,e,n){var r,i,o=function(t){return(t+"").trim().split(/^|\s+/).every((function(t){var e=t.indexOf(".");return e>=0&&(t=t.slice(0,e)),!t||"start"===t}))}(e)?ru:iu;return function(){var a=o(this,t),u=a.on;u!==r&&(i=(r=u).copy()).on(e,n),a.on=i}}(n,t,e))},attr:function(t,e){var n=_t(t),r="transform"===n?hu:gu;return this.attrTween(t,"function"==typeof e?(n.local?_u:xu)(n,r,vu(this,"attr."+t,e)):null==e?(n.local?mu:yu)(n):(n.local?wu:bu)(n,r,e))},attrTween:function(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==e)return this.tween(n,null);if("function"!=typeof e)throw new Error;var r=_t(t);return this.tween(n,(r.local?ku:Mu)(r,e))},style:function(t,e,n){var r="transform"==(t+="")?fu:gu;return null==e?this.styleTween(t,function(t,e){var n,r,i;return function(){var o=Nt(this,t),a=(this.style.removeProperty(t),Nt(this,t));return o===a?null:o===n&&a===r?i:i=e(n=o,r=a)}}(t,r)).on("end.style."+t,Eu(t)):"function"==typeof e?this.styleTween(t,function(t,e,n){var r,i,o;return function(){var a=Nt(this,t),u=n(this),s=u+"";return null==u&&(this.style.removeProperty(t),s=u=Nt(this,t)),a===s?null:a===r&&s===i?o:(i=s,o=e(r=a,u))}}(t,r,vu(this,"style."+t,e))).each(function(t,e){var n,r,i,o,a="style."+e,u="end."+a;return function(){var s=iu(this,t),l=s.on,c=null==s.value[a]?o||(o=Eu(e)):void 0;l===n&&i===c||(r=(n=l).copy()).on(u,i=c),s.on=r}}(this._id,t)):this.styleTween(t,function(t,e,n){var r,i,o=n+"";return function(){var a=Nt(this,t);return a===o?null:a===r?i:i=e(r=a,n)}}(t,r,e),n).on("end.style."+t,null)},styleTween:function(t,e,n){var r="style."+(t+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==e)return this.tween(r,null);if("function"!=typeof e)throw new Error;return this.tween(r,function(t,e,n){var r,i;function o(){var o=e.apply(this,arguments);return o!==i&&(r=(i=o)&&function(t,e,n){return function(r){this.style.setProperty(t,e.call(this,r),n)}}(t,o,n)),r}return o._value=e,o}(t,e,null==n?"":n))},text:function(t){return this.tween("text","function"==typeof t?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(vu(this,"text",t)):function(t){return function(){this.textContent=t}}(null==t?"":t+""))},textTween:function(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(null==t)return this.tween(e,null);if("function"!=typeof t)throw new Error;return this.tween(e,function(t){var e,n;function r(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&function(t){return function(e){this.textContent=t.call(this,e)}}(r)),e}return r._value=t,r}(t))},remove:function(){return this.on("end.remove",function(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}(this._id))},tween:function(t,e){var n=this._id;if(t+="",arguments.length<2){for(var r,i=ou(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===t)return r.value;return null}return this.each((null==e?du:pu)(n,t,e))},delay:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Au:Tu)(e,t)):ou(this.node(),e).delay},duration:function(t){var e=this._id;return arguments.length?this.each(("function"==typeof t?Su:Pu)(e,t)):ou(this.node(),e).duration},ease:function(t){var e=this._id;return arguments.length?this.each(function(t,e){if("function"!=typeof e)throw new Error;return function(){iu(this,t).ease=e}}(e,t)):ou(this.node(),e).ease},easeVarying:function(t){if("function"!=typeof t)throw new Error;return this.each(function(t,e){return function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw new Error;iu(this,t).ease=n}}(this._id,t))},end:function(){var t,e,n=this,r=n._id,i=n.size();return new Promise((function(o,a){var u={value:a},s={value:function(){0==--i&&o()}};n.each((function(){var n=iu(this,r),i=n.on;i!==t&&((e=(t=i).copy())._.cancel.push(u),e._.interrupt.push(u),e._.end.push(s)),n.on=e})),0===i&&o()}))},[Symbol.iterator]:ju[Symbol.iterator]};var Lu={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function Ru(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}pe.prototype.interrupt=function(t){return this.each((function(){!function(t,e){var n,r,i,o=t.__transition,a=!0;if(o){for(i in e=null==e?null:e+"",o)(n=o[i]).name===e?(r=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(r?"interrupt":"cancel",t,t.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete t.__transition}}(this,t)}))},pe.prototype.transition=function(t){var e,n;t instanceof Ou?(e=t._id,t=t._name):(e=Nu(),(n=Lu).time=Ya(),t=null==t?null:t+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,u=r[o],s=u.length,l=0;l<s;++l)(a=u[l])&&nu(a,t,e,l,u,n||Ru(a,e));return new Ou(r,this._parents,t,e)};var Fu=n(100),$u=n.n(Fu),Uu=n(181),Hu=n.n(Uu);function Iu(t){return{standard:t.toString(),light:t.brighter(1.15).toString(),bright:Z(t.h,1.3*t.s,.9*t.l).toString()}}function qu(t,e){var n=function(t,e){for(var n=[],r=360/e+1,i=t.h,o=0;o<e;++o)t.h=(i+o*r)%360,n.push(Iu(t));return n}(t,e),r=Iu(Z("#888888"));return function(t){return t.old?r:n[t.cat%e]}}var Vu,Bu=function(t,e){var n=e.event,r=1;n.forEach((function(t){return t.id=r++})),t.container.innerHTML="";var i=new Date(e.minDate),o=new Date(e.maxDate),a=qu(t.getRootColor(),12),u=function(t){return a(t).standard},s={alternatingTickLength:10,initialHeight:50,initialWidth:400,direction:"horizontal",domain:[i,o],dotRadius:5,linkColor:u,dotColor:u,labelBgColor:u,layerGap:20,textStyle:{fill:"#fff"},margin:{left:12,right:15,top:5,bottom:35},labelPadding:{left:4,right:4,top:3,bottom:2},textYOffset:"0.85em",timeFn:function(t){return new Date(t.date)},textFn:function(t){return t.text},formatAxis:function(e){var n=o.getFullYear()-i.getFullYear();return e.tickFormat(t.i18n().timeScaleFormatter).tickSizeInner(8).tickSizeOuter(10).ticks(n<=4?2*n:void 0)}},l={innerWidth:0,innerHeight:0,width:s.initialWidth,height:s.initialHeight},c=new($u().Force),f=Ca(),h=ve(t.container);h.style("line-height",0);var d=h.append("div").style("display","inline-block").style("position","relative").style("line-height",0),p=d.append("svg").style("position","absolute").style("top",0).style("left",0),v=p.append("g");function g(t,e){return t.append("g").attr("name",e)}var y=g(v,"dummy"),m=g(v,"main"),b=g(m,"main/axis"),w=g(m,"main/link"),x=g(m,"main/label"),_=g(m,"main/dot");b.classed("axis",!0);var k=Hu()((function(){var t=l.width,e=l.height,r=s.margin,i=r.top,o=r.right,a=r.bottom,u=r.left;l.innerWidth=t-u-o,l.innerHeight=e-i-a,d.style("width","".concat(t,"px")).style("height","".concat(e,"px")),p.attr("width",t).attr("height",e),v.attr("transform","translate(".concat(u,", ").concat(i,")")),function(){if(!n||l.innerWidth<=0&&l.innerHeight<=0)return;var t=n||[];c=new($u().Force),f.domain(s.domain),f.range([0,"vertical"===s.direction?l.innerHeight:l.innerWidth]);var e=y.append("text").classed("label-text",!0),r=t.map((function(t){var n=e.call(M,t).node().getBBox(),r=n.width+s.labelPadding.left+s.labelPadding.right,i=n.height+s.labelPadding.top+s.labelPadding.bottom,o=new($u().Node)(f(s.timeFn(t)),"vertical"===s.direction?i:r,t);return o.w=r,o.h=i,o}));e.remove();var i=s.margin,o=i.left,a=i.right;c.options({maxPos:l.width-(o+a)}).nodes(r).compute(),function(){var t,e;switch(s.direction){case"vertical":e=bo(f),m.attr("transform","translate(0,0)");break;case"horizontal":e=mo(f),m.attr("transform","translate(0,"+l.innerHeight+")")}null===(t=s.formatAxis)||void 0===t||t.call(s,e),b.call(e).attr("font-family",null).attr("font-size",null)}(),function(t){var e="vertical"===s.direction?"cy":"cx",n=function(t){return f(s.timeFn(t))},r=_.selectAll("circle.dot").data(t);r.enter().append("circle").classed("dot",!0).style("fill",s.dotColor).attr("r",s.dotRadius).attr(e,n),r.transition().style("fill",s.dotColor).attr("r",s.dotRadius).attr(e,n),r.exit().remove()}(t),function(t){var e;e=ko(t,"vertical"===s.direction?function(t){return t.w}:function(t){return t.h});var n=new($u().Renderer)({nodeHeight:null!=e?e:0,layerGap:s.layerGap,direction:"horizontal"===s.direction?"up":"right"});function r(t){if(isNaN(t.x)||isNaN(t.y))return null;switch(s.direction){case"vertical":return"translate("+t.x+","+(t.y-t.dy/2)+")";case"horizontal":return"translate("+(t.x-t.dx/2)+","+t.y+")"}}n.layout(t);var i=x.selectAll("g.label-g").data(t),o=i.enter().append("g").classed("label-g",!0).attr("transform",r);o.append("rect").classed("label-bg",!0).attr("rx",2).attr("ry",2).attr("width",(function(t){return t.w})).attr("height",(function(t){return t.h})).style("fill",(function(t){return s.labelBgColor(t.data)})),o.append("text").classed("label-text",!0).call(M,(function(t){return t.data}));var a=i.transition().attr("transform",r);a.select("rect").attr("width",(function(t){return t.w})).attr("height",(function(t){return t.h})).style("fill",(function(t){return s.labelBgColor(t.data)})),a.select("text.label-text").call(M,(function(t){return t.data})),i.exit().remove();var u=w.selectAll("path.link").data(t);u.enter().append("path").classed("link",!0).attr("d",(function(t){return n.generatePath(t)})).style("stroke",(function(t){return s.linkColor(t.data)})).style("fill","none"),u.transition().attr("d",(function(t){return n.generatePath(t)})).style("stroke",(function(t){return s.linkColor(t.data)})),u.exit().remove()}(c.nodes()),A&&(A=!1,T());!function(){var t=b.selectAll("g.tick"),e=l.width/t.size();e<=32&&t.each((function(t,e){if(e%2==0){var n=ve(this),r=n.select("text"),i=n.select("line");r.attr("y",Number(r.attr("y"))+s.alternatingTickLength),i.attr("y2",Number(i.attr("y2"))+s.alternatingTickLength)}}))}()}()}),1);function M(t,e){var n="function"==typeof e?e:function(){return e};t.attr("dy",s.textYOffset).attr("x",s.labelPadding.left).attr("y",s.labelPadding.top).style("fill",s.textStyle.fill).text((function(t){return s.textFn(n(t))}))}var A=!0;function T(){p.insert("title",":first-child").text(e.title),x.selectAll("g.label-g").each((function(){var t=ve(this),e=t.selectAll("g.label-g > *").remove(),n=t.append("svg:a").attr("class",(function(t){return t.data.class})).attr("xlink:href",(function(t){return t.data.href})).attr("xlink:title",(function(t){var e;return null!==(e=t.data.desc)&&void 0!==e?e:null}));n.append("title").text((function(t){var e;return null!==(e=t.data.desc)&&void 0!==e?e:null})),e.each((function(){var t=this;n.append((function(){return t}))}))}));var n=t.handlerValue("publicationClick"),r=!!n;x.selectAll(".label-g").attr("data-clickable",(function(){return r||null})).on("click",(function(t,e){n&&(n(e.data.query),t.preventDefault())})).on("mouseenter touchstart",(function(t,e){if(t.target){var n=a(e.data);ve(t.target).select("rect").style("fill",n.bright);var r=e.data.id;h.selectAll(".link-layer path").filter((function(t){return t.data.id===r})).attr("data-highlighted",!0);var i=e.data.query&&e.data.query.id;i&&ge("[data-publication-id='"+i+"']").style("background-color",n.light)}})).on("mouseleave touchend",(function(t,e){if(t.target){var n=a(e.data);ve(t.target).select("rect").style("fill",n.standard),h.selectAll(".link-layer path").attr("data-highlighted",!1);var r=e.data.query&&e.data.query.id;r&&ge("[data-publication-id='"+r+"']").style("background-color",null)}}))}return{draw:function(){!function(){var t,e,n=l.width,r=l.height,i=h.node(),o=null!==(t=null==i?void 0:i.clientWidth)&&void 0!==t?t:0,a=null!==(e=null==i?void 0:i.clientHeight)&&void 0!==e?e:0,u=!1;n!==o&&(l.width=o,u=!0),r>a&&(l.height=a,u=!0),u&&(k(),k.flush())}(),function(){var t,e,n,r=c.nodes();switch(s.direction){case"horizontal":n=null!==(t=ko(r,(function(t){return Math.abs(t.y)})))&&void 0!==t?t:0,l.height=n+s.margin.top+s.margin.bottom;break;case"vertical":n=null!==(e=ko(r,(function(t){return Math.abs(t.x+t.dx)})))&&void 0!==e?e:0,l.width=n+s.margin.left+s.margin.right}}(),k(),k.flush()}}},zu=function(t,e){if(e){var n=t.handlerValue("load");n&&n(e)}return b},Yu=function(t,e){var n=function(t){var e;return null===(e=function(t){return t?new Date(t):null}(t))||void 0===e?void 0:e.toLocaleDateString()},r=ve(t.container).append("table").attr("class","ui bizq very compact celled small unstackable striped table"),i=r.append("tbody");es.debug("data",e);for(var o=0,a=["current","former"];o<a.length;o++){"former"==a[o]&&i.append("tr").append("td").attr("class","first").attr("colspan",2).text("Vormals");for(var u=0,s=e.current;u<s.length;u++){var l=s[u];es.debug("group",l);var c=l.name,f=l.entries;i.append("tr").append("td").attr("class","first").attr("colspan",2).text(c);for(var h=0,d=f;h<d.length;h++){var p=d[h];es.debug("entry",p);var v=i.append("tr"),g=p.person,y=v.append("td").append("span").text(g.name).attr("class","person");for(var m in g.query)y.attr(m,g.query[m]);for(var w=v.append("td"),x=0,_=p.chunks;x<_.length;x++){var k=_[x],M=void 0;!k.start&&k.end?M="bis "+n(k.end):k.start&&!k.end?M="seit "+n(k.start):k.start&&k.end&&(M=n(k.start)+" – "+n(k.end)),w.append("span").text(M)}}}}return t.markup(r),b};function Wu(t){if(t){Vu=document.querySelectorAll("button:not([disabled])");for(var e=0;e<Vu.length;++e)Vu[e].disabled=!0}else if(Vu)for(e=0;e<Vu.length;++e)Vu[e].disabled=!1;document.body.classList.toggle("waiting",t)}var Xu=function(t,e){return we("click",t.container,"*",(function(){Wu(!0);var e=new XMLHttpRequest;function n(t){es.log("error","cannot list pubs",t)}return e.open("POST","/_api/shop/v1/products"),e.setRequestHeader("Content-Type","application/json"),e.onerror=function(t){Wu(!1),n(t)},e.onload=function(){Wu(!1),es.debug(e.status),e.status>=400&&n(e.responseText||e.statusText),es.debug("ok",e.responseText);var t=JSON.parse(e.responseText);es.debug("data",t)},e.send(JSON.stringify(t.options)),!1})),b},Ju=function(t,e){var n=ve(t.container).selectAll(".publication").data(e.publications).enter().append("div").attr("class","pub").attr("data-publication-id",(function(t){return t.id})),r=n.append("h2");return r.append("span").attr("class","icon").text((function(t){return t.internal.icon})),r.append("span").attr("class","date").text((function(t){return t.internal.formattedDate})),r.append("a").attr("href","#").html((function(t){return t.internal.htmlTitle})).on("click",(function(t){var e,n,r,i=t.target;null===(r=null===(n=null===(e=null==i?void 0:i.parentElement)||void 0===e?void 0:e.parentElement)||void 0===n?void 0:n.classList)||void 0===r||r.toggle("expanded"),t.preventDefault()})),n.append("div").attr("class","text").html((function(t){return t.html})),t.markup(n),b},Gu=function(t,e){var n=ve(t.container),r=n.append("ul").attr("class","search-results"),i=e.cursor;function o(t){var e,n={},r=t.subject,i=r.name[0].name,o=r.address&&r.address[0],a=o&&o.city,u={query:n,address:o,name:i,details:t.formattedDetails},s=r.tag;switch(s&&s.terminated&&(u.terminated=!0),t.targetType){case"Company":u.type="c",n.address=a,n.name=i;var l=r.register&&r.register[0];l&&l.id&&(l.city&&(n.registerCity=l.city),n.registerId=l.id);break;case"Person":u.type="p";var c=i.split(",");n.lastName=c[0],n.firstName=(e=c[1])?e.trim():e,n.birthDate=r.birthDate,n.address=a,n.address&&n.birthDate||(n.id=t.targetId)}return u}var a=n.append("div").attr("class","more"),u=a.append("p"),s=a.append("a").attr("href","#").on("click",(function(e){var n=m(t.options,{offset:s.attr("data-offset"),position:s.attr("data-position")});Ae.requestData(n,(function(t){h(t)}),t.fail.bind(t)),e.preventDefault()})),l=0==i.items.length,c=t.handlerValue("noResults"),f=t.handlerValue("oneResult");function h(e){for(var n=e.cursor,i=0,l=n.items;i<l.length;i++){var c=l[i],f=o(c),h=f.query,d=h.address,p=h.name;p||(p=h.lastName+", "+h.firstName),d&&(p+=", "+d);var v=r.append("li").attr("class","search-result");v.append("span").attr("class","icon").text("Company"==c.targetType?"":"");var g=v.append("div").attr("class","body"),y=g.append("a").attr("href",document.location.pathname+"?"+_e(h)).text(p).on("click",(function(n){t.invokeClickHandler(e)&&n.preventDefault()}));if(f.terminated){y.append("sup").attr("title","erloschen").text("✝︎")}g.append("div").attr("class","detail").text(f.detail);for(var m=0,b=c.formattedDetails;m<b.length;m++){var w=b[m];g.append("div").attr("class","detail").text(w)}}a.attr("data-total",n.total);var x=Number(n.offset+n.items.length).toLocaleString();n.total?x+=" Resultate von "+Number(n.total).toLocaleString()+" insgesamt.":x+=" Resultate.",u.text(x),s.text(n.lastPage?"":"Weitere Resultate anzeigen").attr("data-offset",n.offset+n.limit).attr("data-position",e.properties.nextPosition)}return l?c?c():n.append("p").text("Keine Resultate zu dieser Suche."):1==i.items.length&&f?f(o(i.items[0])):h(e),b};var Zu,Ku=function(t,e){if(!e.sheet)throw new Error("no data");for(var n=function(e){if(!e){var n=t.stringValue("subject")||"assets";throw new Error("no data for subject '"+n+"'")}var r=e.column,i=e.row,c=t.isReverseChronology(),f=t.numberValue("maxYears")||5;c&&r.reverse();var h=function(t){return c?t<f:t>=r.length-f};if(r.length<=0)return"break";var d,p=r[0].currency,v=1,g=p.unit,y=t.i18n().numberFormatter;if(p){for(var m=0,b=0,w=0,x=0,_=i;x<_.length;x++)for(var k=0,M=_[x].cell;k<M.length;k++){var A=M[k];if(d=A.value,!isNaN(parseFloat(d))&&isFinite(d)){var T=Math.abs(A.value);T>1e5&&(++w,T>1e7&&(++b,T>1e10&&++m))}}var S=m>=5,P=b>=5;if(w<5&&(y=t.i18n().decimalFormatter),P){"EUR"==g&&(g="€"),"USD"==g&&(g="$"),"GBP"==g&&(g="£");var C=Qr("K","Tsd. ","K");if(v=1e3,S){v=1e6;Qr("M","Mio. ","M")}1==C.length&&1==g.length&&(g=" "+g),g=C+g}}var E=document.createElement("table"),D=ve(E).attr("class","ui bizq very compact celled small unstackable selectable first stuck table"),O=D.append("thead").append("tr"),N=O.append("th").attr("class","first");N.text(g),N.append("a").attr("href",e.info.csvUrl).attr("download","download").attr("title","CSV/Excel Download").classed("screen-only",!0).append("i").attr("class","download icon"),r.forEach((function(e,n){h(n)&&O.append("th").text(e.date?t.i18n().dateFormatter(e.date):"").attr("data-col",r.length-n).attr("data-source-title",e.info.publication.title).attr("data-source-date",e.info.publication.date)}));var j=function(t,e){return t&&t.semantics&&t.semantics.indexOf(e)>=0},L=D.append("tbody");i.forEach((function(e){var n,i;if(!j(e,"HELPER")){var f=0,d=t.isPrint()?2:1,p=e.level&&e.level.value,g=p<d?"expanded":"closed";p>d&&(g+=" hidden");var m=ve(document.createElement("tr")).attr("class",g+" active-on-hover").attr("data-row",e.info&&e.info.id).attr("data-level",p).attr("data-parent-row",e.info?e.info.parentId:null).attr("data-child-count",(function(){return e.info&&"number"==typeof e.info.childCount&&e.info.childCount>0?e.info.childCount:null})).attr("data-summary",function(t){return j(t,"SUMMARY")}(e)).attr("data-custom",function(t){return j(t,"CUSTOM")}(e)).on("click",(function(t){!function(t){var e=u(t);e.classed(o)?l(t):function(t){var e=u(t);e.classed(a,!1).classed(o,!0),s(e).classed("hidden",!1)}(t)}(t&&t.target),t.preventDefault()}));m.append("td").attr("class","first").text(null!==(n=e.text)&&void 0!==n?n:e.name),c&&e.cell.reverse(),e.cell.forEach((function(t,e){if(h(e)){var n=void 0===t.value?"":y(t.value/v);n&&f++,m.append("td").attr("data-col",r.length-e).text(n)}})),f>0?L.node().appendChild(m.node()):(null===(i=e.info)||void 0===i?void 0:i.parentId)&&L.select('tr[data-row="'.concat(e.info.parentId,'"][data-child-count]')).attr("data-child-count",(function(){var t=parseInt(ve(this).attr("data-child-count"))-1;return t>0?t:null}))}}));var R=D.append("tfoot").append("tr");R.append("th").attr("class","first").text(t.trilingual("Source","Quelle","Source"));var F=t.handlerValue("sourceClick");r.forEach((function(t,e){if(h(e)){var n=R.append("th").attr("data-col",r.length-e);if(n.html(t.info.noteHtml),F){var i=t.info.publication,o="string"==typeof t.info.source?[t.info.source]:t.info.source;n.selectAll("a").attr("href","javascript:void(0);").on("click",(function(t){t.preventDefault(),F({publication:i,source:o})}))}}})),E.setAttribute("data-item",e.info.item),t.showItem(void 0,E)},r=0,i=e.sheet;r<i.length;r++){if("break"===n(i[r]))break}var o="expanded",a="closed";function u(t){var e=ve(t);return t.matches("tr")?e:be(e,"tr")}function s(t){var e=0==t.size()?"?":t.attr("data-row");return be(t,"table").selectAll("[data-parent-row='"+e+"']")}function l(t){var e=u(t);e.classed(a,!0).classed(o,!1),s(e).classed("hidden",!0).each((function(){l(this)}))}return b},Qu=function(t,e){var n=t.container,r=t.i18n().timeScaleFormatter,i=12,o=15,a=0,u=18,s=12.78,l=e.lines;if(!l||!l.length)throw new Error("vita empty");var c=l.length,f=a+23*c+5,h=new Date(e.startDate).getTime(),d=new Date(e.endDate).getTime(),p=function(t){return t?new Date(t):null},v=ve(t.container).append("svg");v.append("title").text(Qr("History","Historie","Historique"));t.getLinkifier();return{draw:function(){v.select("g").remove();var e=v.append("g"),c=n.getBoundingClientRect().width;v.attr("width",c);var g=function(){for(var t=[],n=0,r=l;n<r.length;n++)for(var i=r[n],o=0,a=i.bars;o<a.length;o++){var u=a[o];t.push(u.role.abbr),t.push(u.role.abbr+" "+i.text)}var s={};return e.selectAll(".textWidthDummy").data(t).enter().append("text").text((function(t){return t})).each((function(t){s[t]=this.getComputedTextLength(),this.remove()})),s}(),y=function(t,e,n){if(e){var r=t+" "+e,i=g[r];if(void 0!==i&&n-8>i)return{text:r,width:i,containsSuffix:!0}}var o=g[t];return void 0!==o&&n>o?{text:t,width:o}:{text:"…",width:0}},m=Ca().domain([h,d]).range([i,c-o]);(function(){if(c>=600)return!0;for(var t=2592e6,e=0,n=l;e<n.length;e++)for(var r=0,i=n[e].bars;r<i.length;r++){var o=i[r],a=p(o.assumedStart),u=p(o.end)||new Date;if(!a)return!0;if(Math.abs(a.getTime()-h)<t||Math.abs(d-u.getTime())<t)return!0}return!1})()&&(m=m.nice());var b=mo(m).tickFormat(r).tickSizeInner(8).tickSizeOuter(10).ticks(Math.min(c/100,10));e.append("g").attr("class","axis").attr("transform","translate(0,"+f+")").call(b).attr("font-size",null).attr("font-family",null),e.append("g").attr("class","axis grid").attr("transform","translate(0,"+f+")").call(b.tickSizeInner(-f).tickSizeOuter(0)).call((function(t){return t.selectAll(".tick text").remove()}));for(var w=i,x=c-o,_=0,k=0,M=l;k<M.length;k++){var A=M[k],T=a+23*_+5,S=T+13.5-1,P=(T+(T+u))/2;e.append("line").attr("x1",w).attr("x2",x).attr("y1",P).attr("y2",P).attr("class","grid");for(var C=A.bars.length,E=0,D=!1,O=0,N=0,j=function(n){var r=p(n.assumedStart),o=p(n.end)||new Date,a=r?m(r):i+s,l=!n.start;l&&(a+=s);var c=m(o);n.openEnded&&n.end&&(c=Math.max(a,c-s));var f=c-a,h=a+f/2;f<10&&(l&&!n.openEnded?h-=3:n.openEnded&&!l&&(h+=3));var d=y(n.role.abbr,D?void 0:A.text,f);if(d.containsSuffix&&(D=!0),0==E){var v=l?a-s:a,g=d.width?Math.min(h-d.width/2,v):v;O=g-w-2}if(E==C-1){var b=n.openEnded?c+s:c;g=d.width?Math.max(h+d.width/2,b):b;N=x-g-2}var _=e.append("svg:a").attr("xlink:href",n.url||"").attr("xlink:title",n.title).attr("data-old",!!n.end||null).attr("data-clickable",(function(){return!!t.getClickHandler("p")||null})).on("click",(function(e){t.invokeClickHandler(n)&&e.preventDefault()}));if(_.append("title").text(n.title),l){var k=[(L=a)+","+(M=T),L+","+(P=T+u),(j=a-s)+","+(M+P)/2];_.append("polygon").attr("points",k.join(" ")).attr("class","in c"+n.role.cat)}if(n.openEnded){var M,P,j=c,L=Math.min(s+j,x);k=[j+","+(M=T),j+","+(P=T+u),L+","+(M+P)/2];_.append("polygon").attr("points",k.join(" ")).attr("class","out c"+n.role.cat)}_.append("rect").attr("x",a).attr("y",T).attr("width",f).attr("height",u).attr("class","c"+n.role.cat),_.append("text").attr("x",h).attr("y",S).attr("class","label-text c"+n.role.cat).text(d.text),++E},L=0,R=A.bars;L<R.length;L++){j(R[L])}D||(O>N?O>200&&e.append("text").attr("x",w+O).attr("y",S).attr("class","left extra").text(A.text):N>200&&e.append("text").attr("x",x-N).attr("y",S).attr("class","right extra").text(A.text)),++_}var F=new Date,$="Heute, "+function(t){return t?t.toLocaleDateString():""}(F),U=m(F),H=e.append("svg:a").attr("xlink:title",$);H.append("title").text($),H.append("line").attr("class","today").attr("x1",U).attr("y1",0).attr("x2",U).attr("y2",f+15),v.attr("height",f+30)}}},ts=function(t,e,n){if(n||2===arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))};!function(t){function e(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];t.options.__debug&&console[e].apply(console,n)}t.Widget=oi,t.version="1.278.10",t.options={dataDomain:"",detectDataDomain:!0,__debug:!0},t.initialize=function(e){var n,r;t.options.__debug=!1,void 0===e?(t.options.dataDomain="https://www.northdata.de",t.options.detectDataDomain=!1):(t.options.dataDomain=null!==(n=e.dataDomain)&&void 0!==n?n:t.options.dataDomain,t.options.detectDataDomain=null!==(r=e.detectDataDomain)&&void 0!==r?r:t.options.detectDataDomain)},t.debug=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.apply(void 0,ts(["info"],t,!1))},t.log=e,m(w,{barChart:wo,drillDown:va,graph:ya,dendrogram:ua,history:Bu,vita:Qu,pubTable:Ju,pubShop:Xu,personTable:Yu,sheet:Ku,financials:ga,contact:xo,overview:zu,searchResults:Gu})}(Zu||(Zu={}));var es=Zu,ns={Widget:Zu.Widget,version:Zu.version,initialize:Zu.initialize},rs={NorthData:ns,Bizq:ns}}(),r=r.default}()}));
|
|
3
3
|
//# sourceMappingURL=viz.min.js.map
|