northdata-viz 1.479.11 → 1.481.11
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 +0 -2
- package/viz.min.js +1 -2
- package/viz.esm.js.map +0 -1
- package/viz.min.js.map +0 -1
package/viz.min.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
/*! northdata-viz v0-0-0-SNAPSHOT */
|
|
2
2
|
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t():typeof define==`function`&&define.amd?define([],t):(e=typeof globalThis<`u`?globalThis:e||self,e.NorthData=t())})(this,function(){var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n));typeof Object.assign!=`function`&&(function(){Object.assign=function(e){if(console.info(`installing Object.assign polyfill`),e==null)throw TypeError(`Cannot convert undefined or null to object`);let t=Object(e);for(let e=1;e<arguments.length;e++){let n=arguments[e];if(n!=null)for(let e in n)Object.prototype.hasOwnProperty.call(n,e)&&(t[e]=n[e])}return t}})(),String.prototype.includes||(console.info(`installing String.includes polyfill`),String.prototype.includes=function(e,t){"use strict";return typeof t!=`number`&&(t=0),t+e.length>this.length?!1:this.indexOf(e,t)!==-1}),String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return this.substr(!t||t<0?0:+t,e.length)===e});function l(e){var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){return t.reject(n)})})}function u(e){return new this(function(t,n){if(!(e&&e.length!==void 0))return n(TypeError(typeof e+` `+e+` is not iterable(cannot read property Symbol(Symbol.iterator))`));var r=Array.prototype.slice.call(e);if(r.length===0)return t([]);var i=r.length;function a(e,n){if(n&&(typeof n==`object`||typeof n==`function`)){var o=n.then;if(typeof o==`function`){o.call(n,function(t){a(e,t)},function(n){r[e]={status:`rejected`,reason:n},--i===0&&t(r)});return}}r[e]={status:`fulfilled`,value:n},--i===0&&t(r)}for(var o=0;o<r.length;o++)a(o,r[o])})}function d(e,t){this.name=`AggregateError`,this.errors=e,this.message=t||``}d.prototype=Error.prototype;function f(e){var t=this;return new t(function(n,r){if(!(e&&e.length!==void 0))return r(TypeError(`Promise.any accepts an array`));var i=Array.prototype.slice.call(e);if(i.length===0)return r();for(var a=[],o=0;o<i.length;o++)try{t.resolve(i[o]).then(n).catch(function(e){a.push(e),a.length===i.length&&r(new d(a,`All promises were rejected`))})}catch(e){r(e)}})}var p=setTimeout;function m(e){return!!(e&&e.length!==void 0)}function h(){}function g(e,t){return function(){e.apply(t,arguments)}}function _(e){if(!(this instanceof _))throw TypeError(`Promises must be constructed via new`);if(typeof e!=`function`)throw TypeError(`not a function`);this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],C(e,this)}function v(e,t){for(;e._state===3;)e=e._value;if(e._state===0){e._deferreds.push(t);return}e._handled=!0,_._immediateFn(function(){var n=e._state===1?t.onFulfilled:t.onRejected;if(n===null){(e._state===1?y:b)(t.promise,e._value);return}var r;try{r=n(e._value)}catch(e){b(t.promise,e);return}y(t.promise,r)})}function y(e,t){try{if(t===e)throw TypeError(`A promise cannot be resolved with itself.`);if(t&&(typeof t==`object`||typeof t==`function`)){var n=t.then;if(t instanceof _){e._state=3,e._value=t,x(e);return}else if(typeof n==`function`){C(g(n,t),e);return}}e._state=1,e._value=t,x(e)}catch(t){b(e,t)}}function b(e,t){e._state=2,e._value=t,x(e)}function x(e){e._state===2&&e._deferreds.length===0&&_._immediateFn(function(){e._handled||_._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)v(e,e._deferreds[t]);e._deferreds=null}function S(e,t,n){this.onFulfilled=typeof e==`function`?e:null,this.onRejected=typeof t==`function`?t:null,this.promise=n}function C(e,t){var n=!1;try{e(function(e){n||(n=!0,y(t,e))},function(e){n||(n=!0,b(t,e))})}catch(e){if(n)return;n=!0,b(t,e)}}_.prototype.catch=function(e){return this.then(null,e)},_.prototype.then=function(e,t){var n=new this.constructor(h);return v(this,new S(e,t,n)),n},_.prototype.finally=l,_.all=function(e){return new _(function(t,n){if(!m(e))return n(TypeError(`Promise.all accepts an array`));var r=Array.prototype.slice.call(e);if(r.length===0)return t([]);var i=r.length;function a(e,o){try{if(o&&(typeof o==`object`||typeof o==`function`)){var s=o.then;if(typeof s==`function`){s.call(o,function(t){a(e,t)},n);return}}r[e]=o,--i===0&&t(r)}catch(e){n(e)}}for(var o=0;o<r.length;o++)a(o,r[o])})},_.any=f,_.allSettled=u,_.resolve=function(e){return e&&typeof e==`object`&&e.constructor===_?e:new _(function(t){t(e)})},_.reject=function(e){return new _(function(t,n){n(e)})},_.race=function(e){return new _(function(t,n){if(!m(e))return n(TypeError(`Promise.race accepts an array`));for(var r=0,i=e.length;r<i;r++)_.resolve(e[r]).then(t,n)})},_._immediateFn=typeof setImmediate==`function`&&function(e){setImmediate(e)}||function(e){p(e,0)},_._unhandledRejectionFn=function(e){typeof console<`u`&&console&&console.warn(`Possible Unhandled Promise Rejection:`,e)};var w=(function(){if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(typeof global<`u`)return global;throw Error(`unable to locate global object`)})();typeof w.Promise==`function`?(w.Promise.prototype.finally||(w.Promise.prototype.finally=l),w.Promise.allSettled||(w.Promise.allSettled=u),w.Promise.any||(w.Promise.any=f)):w.Promise=_,self.fetch||(self.fetch=function(e,t){return t||={},new Promise(function(n,r){var i=new XMLHttpRequest,a=[],o={},s=function e(){return{ok:(i.status/100|0)==2,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:e,headers:{keys:function(){return a},entries:function(){return a.map(function(e){return[e,i.getResponseHeader(e)]})},get:function(e){return i.getResponseHeader(e)},has:function(e){return i.getResponseHeader(e)!=null}}}};for(var c in i.open(t.method||`get`,e,!0),i.onload=function(){i.getAllResponseHeaders().toLowerCase().replace(/^(.+?):/gm,function(e,t){o[t]||a.push(o[t]=t)}),n(s())},i.onerror=r,i.withCredentials=t.credentials==`include`,t.headers)i.setRequestHeader(c,t.headers[c]);i.send(t.body||null)})}),(function(e){typeof define==`function`&&define.amd?define(e):e()})((function(){"use strict";function e(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function t(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function n(e,t,n){return t=c(t),d(e,u()?Reflect.construct(t,n||[],c(e).constructor):t.apply(e,n))}function r(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,g(r.key),r)}}function a(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function o(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=_(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
3
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function s(){return s=typeof Reflect<`u`&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=p(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},s.apply(null,arguments)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function l(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(u=function(){return!!e})()}function d(e,n){if(n&&(typeof n==`object`||typeof n==`function`))return n;if(n!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return t(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function p(e,t){for(;!{}.hasOwnProperty.call(e,t)&&(e=c(e))!==null;);return e}function m(e,t,n,r){var i=s(c(1&r?e.prototype:e),t,n);return 2&r&&typeof i==`function`?function(e){return i.apply(n,e)}:i}function h(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function g(e){var t=h(e,`string`);return typeof t==`symbol`?t:t+``}function _(t,n){if(t){if(typeof t==`string`)return e(t,n);var r={}.toString.call(t).slice(8,-1);return r===`Object`&&t.constructor&&(r=t.constructor.name),r===`Map`||r===`Set`?Array.from(t):r===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}(function(e){return{NativeAbortSignal:e.AbortSignal,NativeAbortController:e.AbortController}})(typeof self<`u`?self:global);function v(e){var t;try{t=new Event(`abort`)}catch{typeof document<`u`?document.createEvent?(t=document.createEvent(`Event`),t.initEvent(`abort`,!1,!1)):(t=document.createEventObject(),t.type=`abort`):t={type:`abort`,bubbles:!1,cancelable:!1}}return t.reason=e,t}function y(e){if(e===void 0)if(typeof document>`u`)e=Error(`This operation was aborted`),e.name=`AbortError`;else try{e=new DOMException(`signal is aborted without reason`),Object.defineProperty(e,"name",{value:`AbortError`})}catch{e=Error(`This operation was aborted`),e.name=`AbortError`}return e}var b=function(){function e(){r(this,e),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return a(e,[{key:`addEventListener`,value:function(e,t,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:n})}},{key:`removeEventListener`,value:function(e,t){if(e in this.listeners){for(var n=this.listeners[e],r=0,i=n.length;r<i;r++)if(n[r].callback===t){n.splice(r,1);return}}}},{key:`dispatchEvent`,value:function(e){var t=this;if(e.type in this.listeners){for(var n=this.listeners[e.type].slice(),r=function(){var r=n[i];try{r.callback.call(t,e)}catch(e){Promise.resolve().then(function(){throw e})}r.options&&r.options.once&&t.removeEventListener(e.type,r.callback)},i=0,a=n.length;i<a;i++)r();return!e.defaultPrevented}}}])}(),x=function(e){function t(){var e;return r(this,t),e=n(this,t),e.listeners||b.call(e),Object.defineProperty(e,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(e,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(e,"reason",{value:void 0,writable:!0,configurable:!0}),e}return l(t,e),a(t,[{key:`toString`,value:function(){return`[object AbortSignal]`}},{key:`dispatchEvent`,value:function(e){e.type===`abort`&&(this.aborted=!0,typeof this.onabort==`function`&&this.onabort.call(this,e)),m(t,`dispatchEvent`,this,3)([e])}},{key:`throwIfAborted`,value:function(){var e=this.aborted,t=this.reason,n=t===void 0?`Aborted`:t;if(e)throw n}}],[{key:`timeout`,value:function(e){var t=new S;return setTimeout(function(){return t.abort(new DOMException(`This signal is timeout in ${e}ms`,`TimeoutError`))},e),t.signal}},{key:`any`,value:function(e){var t=new S;function n(){t.abort(this.reason),r()}function r(){var t=o(e),r;try{for(t.s();!(r=t.n()).done;)r.value.removeEventListener(`abort`,n)}catch(e){t.e(e)}finally{t.f()}}var i=o(e),a;try{for(i.s();!(a=i.n()).done;){var s=a.value;if(s.aborted){t.abort(s.reason);break}else s.addEventListener(`abort`,n)}}catch(e){i.e(e)}finally{i.f()}return t.signal}}])}(b),S=function(){function e(){r(this,e),Object.defineProperty(this,"signal",{value:new x,writable:!0,configurable:!0})}return a(e,[{key:`abort`,value:function(e){var t=y(e),n=v(t);this.signal.reason=t,this.signal.dispatchEvent(n)}},{key:`toString`,value:function(){return`[object AbortController]`}}])}();typeof Symbol<`u`&&Symbol.toStringTag&&(S.prototype[Symbol.toStringTag]=`AbortController`,x.prototype[Symbol.toStringTag]=`AbortSignal`);function C(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log(`__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill`),!0):typeof e.Request==`function`&&!e.Request.prototype.hasOwnProperty(`signal`)||!e.AbortController}function w(e){typeof e==`function`&&(e={fetch:e});var t=e,n=t.fetch,r=t.Request,i=r===void 0?n.Request:r,a=t.AbortController,o=t.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL,s=o!==void 0&&o;if(!C({fetch:n,Request:i,AbortController:a,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:s}))return{fetch:n,Request:c};var c=i;(c&&!c.prototype.hasOwnProperty(`signal`)||s)&&(c=function(e,t){var n;t&&t.signal&&(n=t.signal,delete t.signal);var r=new i(e,t);return n&&Object.defineProperty(r,"signal",{writable:!1,enumerable:!1,configurable:!0,value:n}),r},c.prototype=i.prototype);var l=n;return{fetch:function(e,t){var n=c&&c.prototype.isPrototypeOf(e)?e.signal:t?t.signal:void 0;if(n){var r;try{r=new DOMException(`Aborted`,`AbortError`)}catch{r=Error(`Aborted`),r.name=`AbortError`}if(n.aborted)return Promise.reject(r);var i=new Promise(function(e,t){n.addEventListener(`abort`,function(){return t(r)},{once:!0})});return t&&t.signal&&delete t.signal,Promise.race([i,l(e,t)])}return l(e,t)},Request:c}}(function(e){if(C(e)){if(!e.fetch){console.warn(`fetch() is not available, cannot install abortcontroller-polyfill`);return}var t=w(e),n=t.fetch,r=t.Request;e.fetch=n,e.Request=r,Object.defineProperty(e,"AbortController",{writable:!0,enumerable:!1,configurable:!0,value:S}),Object.defineProperty(e,"AbortSignal",{writable:!0,enumerable:!1,configurable:!0,value:x})}})(typeof self<`u`?self:global)}));var T=`0.0.0-SNAPSHOT`;function E(e,t){return Object.assign(e,t),e}var D={draw(){}},O={};function ee(e){E(O,e)}function te(e){return O[e]}function k(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function A(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function j(){}var M=.7,ne=1/M,re=`\\s*([+-]?\\d+)\\s*`,ie=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,N=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,ae=/^#([0-9a-f]{3,8})$/,oe=RegExp(`^rgb\\(${re},${re},${re}\\)$`),se=RegExp(`^rgb\\(${N},${N},${N}\\)$`),ce=RegExp(`^rgba\\(${re},${re},${re},${ie}\\)$`),le=RegExp(`^rgba\\(${N},${N},${N},${ie}\\)$`),ue=RegExp(`^hsl\\(${ie},${N},${N}\\)$`),de=RegExp(`^hsla\\(${ie},${N},${N},${ie}\\)$`),fe={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};k(j,_e,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:pe,formatHex:pe,formatHex8:me,formatHsl:he,formatRgb:ge,toString:ge});function pe(){return this.rgb().formatHex()}function me(){return this.rgb().formatHex8()}function he(){return ke(this).formatHsl()}function ge(){return this.rgb().formatRgb()}function _e(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=ae.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?ve(t):n===3?new P(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ye(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ye(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=oe.exec(e))?new P(t[1],t[2],t[3],1):(t=se.exec(e))?new P(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=ce.exec(e))?ye(t[1],t[2],t[3],t[4]):(t=le.exec(e))?ye(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=ue.exec(e))?Oe(t[1],t[2]/100,t[3]/100,1):(t=de.exec(e))?Oe(t[1],t[2]/100,t[3]/100,t[4]):fe.hasOwnProperty(e)?ve(fe[e]):e===`transparent`?new P(NaN,NaN,NaN,0):null}function ve(e){return new P(e>>16&255,e>>8&255,e&255,1)}function ye(e,t,n,r){return r<=0&&(e=t=n=NaN),new P(e,t,n,r)}function be(e){return e instanceof j||(e=_e(e)),e?(e=e.rgb(),new P(e.r,e.g,e.b,e.opacity)):new P}function xe(e,t,n,r){return arguments.length===1?be(e):new P(e,t,n,r??1)}function P(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}k(P,xe,A(j,{brighter(e){return e=e==null?ne:ne**+e,new P(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?M:M**+e,new P(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new P(Ee(this.r),Ee(this.g),Ee(this.b),Te(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:Se,formatHex:Se,formatHex8:Ce,formatRgb:we,toString:we}));function Se(){return`#${De(this.r)}${De(this.g)}${De(this.b)}`}function Ce(){return`#${De(this.r)}${De(this.g)}${De(this.b)}${De((isNaN(this.opacity)?1:this.opacity)*255)}`}function we(){let e=Te(this.opacity);return`${e===1?`rgb(`:`rgba(`}${Ee(this.r)}, ${Ee(this.g)}, ${Ee(this.b)}${e===1?`)`:`, ${e})`}`}function Te(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ee(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function De(e){return e=Ee(e),(e<16?`0`:``)+e.toString(16)}function Oe(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new F(e,t,n,r)}function ke(e){if(e instanceof F)return new F(e.h,e.s,e.l,e.opacity);if(e instanceof j||(e=_e(e)),!e)return new F;if(e instanceof F)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new F(o,s,c,e.opacity)}function Ae(e,t,n,r){return arguments.length===1?ke(e):new F(e,t,n,r??1)}function F(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}k(F,Ae,A(j,{brighter(e){return e=e==null?ne:ne**+e,new F(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?M:M**+e,new F(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new P(Ne(e>=240?e-240:e+120,i,r),Ne(e,i,r),Ne(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new F(je(this.h),Me(this.s),Me(this.l),Te(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(){let e=Te(this.opacity);return`${e===1?`hsl(`:`hsla(`}${je(this.h)}, ${Me(this.s)*100}%, ${Me(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function je(e){return e=(e||0)%360,e<0?e+360:e}function Me(e){return Math.max(0,Math.min(1,e||0))}function Ne(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var Pe={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function Fe(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),Pe.hasOwnProperty(t)?{space:Pe[t],local:e}:e}function Ie(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function Le(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Re(e){var t=Fe(e);return(t.local?Le:Ie)(t)}function ze(){}function Be(e){return e==null?ze:function(){return this.querySelector(e)}}function Ve(e){typeof e!=`function`&&(e=Be(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new I(r,this._parents)}function He(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Ue(){return[]}function We(e){return e==null?Ue:function(){return this.querySelectorAll(e)}}function Ge(e){return function(){return He(e.apply(this,arguments))}}function Ke(e){e=typeof e==`function`?Ge(e):We(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new I(r,i)}function qe(e){return function(){return this.matches(e)}}function Je(e){return function(t){return t.matches(e)}}var Ye=Array.prototype.find;function Xe(e){return function(){return Ye.call(this.children,e)}}function Ze(){return this.firstElementChild}function Qe(e){return this.select(e==null?Ze:Xe(typeof e==`function`?e:Je(e)))}var $e=Array.prototype.filter;function et(){return Array.from(this.children)}function tt(e){return function(){return $e.call(this.children,e)}}function nt(e){return this.selectAll(e==null?et:tt(typeof e==`function`?e:Je(e)))}function rt(e){typeof e!=`function`&&(e=qe(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new I(r,this._parents)}function it(e){return Array(e.length)}function at(){return new I(this._enter||this._groups.map(it),this._parents)}function ot(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}ot.prototype={constructor:ot,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function st(e){return function(){return e}}function ct(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new ot(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function lt(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new ot(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function ut(e){return e.__data__}function dt(e,t){if(!arguments.length)return Array.from(this,ut);var n=t?lt:ct,r=this._parents,i=this._groups;typeof e!=`function`&&(e=st(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=ft(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new I(o,r),o._enter=s,o._exit=c,o}function ft(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function pt(){return new I(this._exit||this._groups.map(it),this._parents)}function mt(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function ht(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new I(s,this._parents)}function gt(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function _t(e){e||=vt;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new I(i,this._parents).order()}function vt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function yt(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function bt(){return Array.from(this)}function xt(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function St(){let e=0;for(let t of this)++e;return e}function Ct(){return!this.node()}function wt(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function Tt(e){return function(){this.removeAttribute(e)}}function Et(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Dt(e,t){return function(){this.setAttribute(e,t)}}function Ot(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function kt(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function At(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function jt(e,t){var n=Fe(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Et:Tt:typeof t==`function`?n.local?At:kt:n.local?Ot:Dt)(n,t))}function Mt(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Nt(e){return function(){this.style.removeProperty(e)}}function Pt(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Ft(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function It(e,t,n){return arguments.length>1?this.each((t==null?Nt:typeof t==`function`?Ft:Pt)(e,t,n??``)):Lt(this.node(),e)}function Lt(e,t){return e.style.getPropertyValue(t)||Mt(e).getComputedStyle(e,null).getPropertyValue(t)}function Rt(e){return function(){delete this[e]}}function zt(e,t){return function(){this[e]=t}}function Bt(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Vt(e,t){return arguments.length>1?this.each((t==null?Rt:typeof t==`function`?Bt:zt)(e,t)):this.node()[e]}function Ht(e){return e.trim().split(/^|\s+/)}function Ut(e){return e.classList||new Wt(e)}function Wt(e){this._node=e,this._names=Ht(e.getAttribute(`class`)||``)}Wt.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function Gt(e,t){for(var n=Ut(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Kt(e,t){for(var n=Ut(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function qt(e){return function(){Gt(this,e)}}function Jt(e){return function(){Kt(this,e)}}function Yt(e,t){return function(){(t.apply(this,arguments)?Gt:Kt)(this,e)}}function Xt(e,t){var n=Ht(e+``);if(arguments.length<2){for(var r=Ut(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?Yt:t?qt:Jt)(n,t))}function Zt(){this.textContent=``}function Qt(e){return function(){this.textContent=e}}function $t(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function en(e){return arguments.length?this.each(e==null?Zt:(typeof e==`function`?$t:Qt)(e)):this.node().textContent}function tn(){this.innerHTML=``}function nn(e){return function(){this.innerHTML=e}}function rn(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function an(e){return arguments.length?this.each(e==null?tn:(typeof e==`function`?rn:nn)(e)):this.node().innerHTML}function on(){this.nextSibling&&this.parentNode.appendChild(this)}function sn(){return this.each(on)}function cn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ln(){return this.each(cn)}function un(e){var t=typeof e==`function`?e:Re(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function dn(){return null}function fn(e,t){var n=typeof e==`function`?e:Re(e),r=t==null?dn:typeof t==`function`?t:Be(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function pn(){var e=this.parentNode;e&&e.removeChild(this)}function mn(){return this.each(pn)}function hn(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function gn(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function _n(e){return this.select(e?gn:hn)}function vn(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function yn(e){return function(t){e.call(this,t,this.__data__)}}function bn(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function xn(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function Sn(e,t,n){return function(){var r=this.__on,i,a=yn(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function Cn(e,t,n){var r=bn(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?Sn:xn,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function wn(e,t,n){var r=Mt(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Tn(e,t){return function(){return wn(this,e,t)}}function En(e,t){return function(){return wn(this,e,t.apply(this,arguments))}}function Dn(e,t){return this.each((typeof t==`function`?En:Tn)(e,t))}function*On(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var kn=[null];function I(e,t){this._groups=e,this._parents=t}function An(){return new I([[document.documentElement]],kn)}function jn(){return this}I.prototype=An.prototype={constructor:I,select:Ve,selectAll:Ke,selectChild:Qe,selectChildren:nt,filter:rt,data:dt,enter:at,exit:pt,join:mt,merge:ht,selection:jn,order:gt,sort:_t,call:yt,nodes:bt,node:xt,size:St,empty:Ct,each:wt,attr:jt,style:It,property:Vt,classed:Xt,text:en,html:an,raise:sn,lower:ln,append:un,insert:fn,remove:mn,clone:_n,datum:vn,on:Cn,dispatch:Dn,[Symbol.iterator]:On};function L(e){return typeof e==`string`?new I([[document.querySelector(e)]],[document.documentElement]):new I([[e]],kn)}function Mn(e){return L(Re(e).call(document.documentElement))}function Nn(e){return typeof e==`string`?new I([document.querySelectorAll(e)],[document.documentElement]):new I([He(e)],kn)}function Pn(e){return[e.width,e.height]}function Fn(e,t){L(e).style(`height`,t+`px`)}function In(e,t){let n,r=[];return e.each(function(){let e=this;for(;typeof e.parentNode.matches==`function`&&!n;)e=e.parentNode,e.matches(t)&&(n=e,r.push(n));n=void 0}),Nn(r)}function Ln(e,t){for(;;){if(!e||!t)return!1;if(e.isSameNode(t))return!0;e=e.parentNode}}function Rn(e,t,n,r){L(t).on(e,function(e){try{let i;i=typeof n==`string`?L(t).selectAll(n):n,i.each(function(){let t=this;Ln(e.target,t)&&r.bind(t)(L(t).data()[0])})}catch(e){throw console.error(e),e}})}function zn(){let e=window.navigator.userAgent;return e.indexOf(`MSIE `)>=0||e.indexOf(`Edge `)>=0||e.indexOf(`Trident`)>=0}function Bn(e){return e&&e.trim()}function Vn(e){return e&&=encodeURIComponent(e).replace(/%20/g,`+`),e}function Hn(e){return e.replace(/-([a-z])/g,e=>e[1].toUpperCase())}function Un(e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];typeof r==`object`&&(r=JSON.stringify(r)),(typeof r==`string`||typeof r==`number`)&&t.push(Vn(n)+`=`+Vn(r))}return t.join(`&`)}function Wn(){let e=document.scripts;for(let t=0;t<e.length;++t){let n=e[t].src;if(n&&n.indexOf(`/viz.`)>=0){let e=n.indexOf(`/`,9);if(e>=0)return n.substring(0,e)}}return``}function Gn(e){if(!e.ok)throw Error(e.status+` `+e.statusText);if(!(e.status===204||e.status===205))return e.json()}function Kn(e,t){return fetch(e,t).then(Gn)}var qn=(function(){let e=[];function t(t,n,a){let o={options:t,success:n,error:a};t.immediate?r([o]):(e.push(o),window.setTimeout(i))}function n(e,t,n){let r=($.options.detectDataDomain?Wn():void 0)||$.options.dataDomain,i=(window.dataDomain||r)+`/data.json`,a={"Content-Type":`application/json; charset=UTF-8`,...e&&{"X-Api-Key":e}};if(t.options.length===1&&t.options[0].useGet===`true`){var o=new URLSearchParams;Object.keys(t.options[0]).filter(e=>e!==`useGet`).filter(e=>e!==`apiKey`).filter(e=>{let n=t.options[0][e];return typeof n==`string`||typeof n==`boolean`||typeof n==`number`}).forEach(e=>{o.set(e,t.options[0][e])}),t.options[0].type===`graph`&&(o.delete(`width`),o.delete(`height`)),Kn(`${i}?${o.toString()}`,{headers:a,method:`GET`}).then(e=>n(null,e)).catch(e=>n(e,void 0));return}Kn(i,{headers:a,method:`POST`,body:JSON.stringify(t)}).then(e=>n(null,e)).catch(e=>n(e,void 0))}function r(e){let t=[],r;for(let n of e)t.push(n.options),r??=n.options.apiKey;if(t.length>0){let i={options:t,origin:document.location.hostname,v:$.version};n(r,i,function(t,n){if(t)for(let n of e)n.error(t.message);else{let t=n.result;e.forEach((e,n)=>{let r=t[n],i=r.error;i?e.error(i.message):e.success(r)})}})}}function i(){r(e),e=[]}return{requestData:t}})(),Jn=new Date,Yn=new Date;function R(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=n=>R(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(i.count=(t,r)=>(Jn.setTime(+t),Yn.setTime(+r),e(Jn),e(Yn),Math.floor(n(Jn,Yn))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var Xn=R(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Xn.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?R(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Xn),Xn.range;var z=1e3,B=z*60,V=B*60,H=V*24,Zn=H*7,Qn=H*30,$n=H*365,er=R(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*z)},(e,t)=>(t-e)/z,e=>e.getUTCSeconds());er.range;var tr=R(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*z)},(e,t)=>{e.setTime(+e+t*B)},(e,t)=>(t-e)/B,e=>e.getMinutes());tr.range;var nr=R(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*B)},(e,t)=>(t-e)/B,e=>e.getUTCMinutes());nr.range;var rr=R(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*z-e.getMinutes()*B)},(e,t)=>{e.setTime(+e+t*V)},(e,t)=>(t-e)/V,e=>e.getHours());rr.range;var ir=R(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*V)},(e,t)=>(t-e)/V,e=>e.getUTCHours());ir.range;var ar=R(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*B)/H,e=>e.getDate()-1);ar.range;var or=R(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/H,e=>e.getUTCDate()-1);or.range;var sr=R(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/H,e=>Math.floor(e/H));sr.range;function cr(e){return R(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*B)/Zn)}var lr=cr(0),ur=cr(1),dr=cr(2),fr=cr(3),pr=cr(4),mr=cr(5),hr=cr(6);lr.range,ur.range,dr.range,fr.range,pr.range,mr.range,hr.range;function gr(e){return R(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/Zn)}var _r=gr(0),vr=gr(1),yr=gr(2),br=gr(3),xr=gr(4),Sr=gr(5),Cr=gr(6);_r.range,vr.range,yr.range,br.range,xr.range,Sr.range,Cr.range;var wr=R(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());wr.range;var Tr=R(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Tr.range;var U=R(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());U.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:R(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),U.range;var W=R(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());W.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:R(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),W.range;function Er(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Dr(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Or(e){let t,n,r;e.length===2?(t=e===Er||e===Dr?e:kr,n=e,r=e):(t=Er,n=(t,n)=>Er(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<0?i=t+1:a=t}while(i<a)}return i}function a(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<=0?i=t+1:a=t}while(i<a)}return i}function o(e,t,n=0,a=e.length){let o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function kr(){return 0}function Ar(e){return e===null?NaN:+e}var jr=Or(Er),Mr=jr.right;jr.left,Or(Ar).center;function Nr(e,t){let n,r;if(t===void 0)for(let t of e)t!=null&&(n===void 0?t>=t&&(n=r=t):(n>t&&(n=t),r<t&&(r=t)));else{let i=-1;for(let a of e)(a=t(a,++i,e))!=null&&(n===void 0?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)))}return[n,r]}var Pr=class extends Map{constructor(e,t=Rr){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(Fr(this,e))}has(e){return super.has(Fr(this,e))}set(e,t){return super.set(Ir(this,e),t)}delete(e){return super.delete(Lr(this,e))}};function Fr({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function Ir({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Lr({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Rr(e){return typeof e==`object`&&e?e.valueOf():e}var zr=Math.sqrt(50),Br=Math.sqrt(10),Vr=Math.sqrt(2);function Hr(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=zr?10:a>=Br?5:a>=Vr?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?Hr(e,t,n*2):[s,c,l]}function Ur(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?Hr(t,e,n):Hr(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r)if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o;else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function Wr(e,t,n){return t=+t,e=+e,n=+n,Hr(e,t,n)[2]}function Gr(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?Wr(t,e,n):Wr(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function Kr(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function qr(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function Jr(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=Array(i);++r<i;)a[r]=e+r*n;return a}function Yr(e,t,n,r,i,a){let o=[[er,1,z],[er,5,5*z],[er,15,15*z],[er,30,30*z],[a,1,B],[a,5,5*B],[a,15,15*B],[a,30,30*B],[i,1,V],[i,3,3*V],[i,6,6*V],[i,12,12*V],[r,1,H],[r,2,2*H],[n,1,Zn],[t,1,Qn],[t,3,3*Qn],[e,1,$n]];function s(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&typeof n.range==`function`?n:c(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a}function c(t,n,r){let i=Math.abs(n-t)/r,a=Or(([,,e])=>e).right(o,i);if(a===o.length)return e.every(Gr(t/$n,n/$n,r));if(a===0)return Xn.every(Math.max(Gr(t,n,r),1));let[s,c]=o[i/o[a-1][2]<o[a][2]/i?a-1:a];return s.every(c)}return[s,c]}var[Xr,Zr]=Yr(W,Tr,_r,sr,ir,nr),[Qr,$r]=Yr(U,wr,lr,ar,rr,tr);function ei(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function ti(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function ni(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function ri(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,l=ci(i),u=li(i),d=ci(a),f=li(a),p=ci(o),m=li(o),h=ci(s),g=li(s),_=ci(c),v=li(c),y={a:j,A:M,b:ne,B:re,c:null,d:Ai,e:Ai,f:Fi,g:Ki,G:Ji,H:ji,I:Mi,j:Ni,L:Pi,m:Ii,M:Li,p:ie,q:N,Q:_a,s:va,S:Ri,u:zi,U:Bi,V:Hi,w:Ui,W:Wi,x:null,X:null,y:Gi,Y:qi,Z:Yi,"%":ga},b={a:ae,A:oe,b:se,B:ce,c:null,d:Xi,e:Xi,f:ta,g:fa,G:ma,H:Zi,I:Qi,j:$i,L:ea,m:na,M:ra,p:le,q:ue,Q:_a,s:va,S:ia,u:aa,U:oa,V:ca,w:la,W:ua,x:null,X:null,y:da,Y:pa,Z:ha,"%":ga},x={a:E,A:D,b:O,B:ee,c:te,d:bi,e:bi,f:Ei,g:gi,G:hi,H:Si,I:Si,j:xi,L:Ti,m:yi,M:Ci,p:T,q:vi,Q:Oi,s:ki,S:wi,u:di,U:fi,V:pi,w:ui,W:mi,x:k,X:A,y:gi,Y:hi,Z:_i,"%":Di};y.x=S(n,y),y.X=S(r,y),y.c=S(t,y),b.x=S(n,b),b.X=S(r,b),b.c=S(t,b);function S(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,c,l;for(n instanceof Date||(n=new Date(+n));++i<o;)e.charCodeAt(i)===37&&(r.push(e.slice(a,i)),(c=ii[s=e.charAt(++i)])==null?c=s===`e`?` `:`0`:s=e.charAt(++i),(l=t[s])&&(s=l(n,c)),r.push(s),a=i+1);return r.push(e.slice(a,i)),r.join(``)}}function C(e,t){return function(n){var r=ni(1900,void 0,1),i=w(r,e,n+=``,0),a,o;if(i!=n.length)return null;if(`Q`in r)return new Date(r.Q);if(`s`in r)return new Date(r.s*1e3+(`L`in r?r.L:0));if(t&&!(`Z`in r)&&(r.Z=0),`p`in r&&(r.H=r.H%12+r.p*12),r.m===void 0&&(r.m=`q`in r?r.q:0),`V`in r){if(r.V<1||r.V>53)return null;`w`in r||(r.w=1),`Z`in r?(a=ti(ni(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?vr.ceil(a):vr(a),a=or.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=ei(ni(r.y,0,1)),o=a.getDay(),a=o>4||o===0?ur.ceil(a):ur(a),a=ar.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else(`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),o=`Z`in r?ti(ni(r.y,0,1)).getUTCDay():ei(ni(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,ti(r)):ei(r)}}function w(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i<a;){if(r>=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=x[s in ii?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function T(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1}function E(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1}function ee(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function te(e,n,r){return w(e,t,n,r)}function k(e,t,r){return w(e,n,t,r)}function A(e,t,n){return w(e,r,t,n)}function j(e){return o[e.getDay()]}function M(e){return a[e.getDay()]}function ne(e){return c[e.getMonth()]}function re(e){return s[e.getMonth()]}function ie(e){return i[+(e.getHours()>=12)]}function N(e){return 1+~~(e.getMonth()/3)}function ae(e){return o[e.getUTCDay()]}function oe(e){return a[e.getUTCDay()]}function se(e){return c[e.getUTCMonth()]}function ce(e){return s[e.getUTCMonth()]}function le(e){return i[+(e.getUTCHours()>=12)]}function ue(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=S(e+=``,y);return t.toString=function(){return e},t},parse:function(e){var t=C(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+=``,b);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+=``,!0);return t.toString=function(){return e},t}}}var ii={"-":``,_:` `,0:`0`},G=/^\s*\d+/,ai=/^%/,oi=/[\\^$*+?|[\]().{}]/g;function K(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function si(e){return e.replace(oi,`\\$&`)}function ci(e){return RegExp(`^(?:`+e.map(si).join(`|`)+`)`,`i`)}function li(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function ui(e,t,n){var r=G.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function di(e,t,n){var r=G.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function fi(e,t,n){var r=G.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function pi(e,t,n){var r=G.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function mi(e,t,n){var r=G.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function hi(e,t,n){var r=G.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function gi(e,t,n){var r=G.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function _i(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function vi(e,t,n){var r=G.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function yi(e,t,n){var r=G.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function bi(e,t,n){var r=G.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function xi(e,t,n){var r=G.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Si(e,t,n){var r=G.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Ci(e,t,n){var r=G.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function wi(e,t,n){var r=G.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Ti(e,t,n){var r=G.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Ei(e,t,n){var r=G.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Di(e,t,n){var r=ai.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Oi(e,t,n){var r=G.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function ki(e,t,n){var r=G.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Ai(e,t){return K(e.getDate(),t,2)}function ji(e,t){return K(e.getHours(),t,2)}function Mi(e,t){return K(e.getHours()%12||12,t,2)}function Ni(e,t){return K(1+ar.count(U(e),e),t,3)}function Pi(e,t){return K(e.getMilliseconds(),t,3)}function Fi(e,t){return Pi(e,t)+`000`}function Ii(e,t){return K(e.getMonth()+1,t,2)}function Li(e,t){return K(e.getMinutes(),t,2)}function Ri(e,t){return K(e.getSeconds(),t,2)}function zi(e){var t=e.getDay();return t===0?7:t}function Bi(e,t){return K(lr.count(U(e)-1,e),t,2)}function Vi(e){var t=e.getDay();return t>=4||t===0?pr(e):pr.ceil(e)}function Hi(e,t){return e=Vi(e),K(pr.count(U(e),e)+(U(e).getDay()===4),t,2)}function Ui(e){return e.getDay()}function Wi(e,t){return K(ur.count(U(e)-1,e),t,2)}function Gi(e,t){return K(e.getFullYear()%100,t,2)}function Ki(e,t){return e=Vi(e),K(e.getFullYear()%100,t,2)}function qi(e,t){return K(e.getFullYear()%1e4,t,4)}function Ji(e,t){var n=e.getDay();return e=n>=4||n===0?pr(e):pr.ceil(e),K(e.getFullYear()%1e4,t,4)}function Yi(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+K(t/60|0,`0`,2)+K(t%60,`0`,2)}function Xi(e,t){return K(e.getUTCDate(),t,2)}function Zi(e,t){return K(e.getUTCHours(),t,2)}function Qi(e,t){return K(e.getUTCHours()%12||12,t,2)}function $i(e,t){return K(1+or.count(W(e),e),t,3)}function ea(e,t){return K(e.getUTCMilliseconds(),t,3)}function ta(e,t){return ea(e,t)+`000`}function na(e,t){return K(e.getUTCMonth()+1,t,2)}function ra(e,t){return K(e.getUTCMinutes(),t,2)}function ia(e,t){return K(e.getUTCSeconds(),t,2)}function aa(e){var t=e.getUTCDay();return t===0?7:t}function oa(e,t){return K(_r.count(W(e)-1,e),t,2)}function sa(e){var t=e.getUTCDay();return t>=4||t===0?xr(e):xr.ceil(e)}function ca(e,t){return e=sa(e),K(xr.count(W(e),e)+(W(e).getUTCDay()===4),t,2)}function la(e){return e.getUTCDay()}function ua(e,t){return K(vr.count(W(e)-1,e),t,2)}function da(e,t){return K(e.getUTCFullYear()%100,t,2)}function fa(e,t){return e=sa(e),K(e.getUTCFullYear()%100,t,2)}function pa(e,t){return K(e.getUTCFullYear()%1e4,t,4)}function ma(e,t){var n=e.getUTCDay();return e=n>=4||n===0?xr(e):xr.ceil(e),K(e.getUTCFullYear()%1e4,t,4)}function ha(){return`+0000`}function ga(){return`%`}function _a(e){return+e}function va(e){return Math.floor(e/1e3)}var ya,ba;xa({dateTime:`%x, %X`,date:`%-m/%-d/%Y`,time:`%-I:%M:%S %p`,periods:[`AM`,`PM`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]});function xa(e){return ya=ri(e),ba=ya.format,ya.parse,ya.utcFormat,ya.utcParse,ya}function Sa(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function Ca(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function wa(e){return e=Ca(Math.abs(e)),e?e[1]:NaN}function Ta(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Ea(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var Da=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Oa(e){if(!(t=Da.exec(e)))throw Error(`invalid format: `+e);var t;return new ka({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Oa.prototype=ka.prototype;function ka(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}ka.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type};function Aa(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var ja;function Ma(e,t){var n=Ca(e,t);if(!n)return ja=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(ja=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+Ca(e,Math.max(0,t+a-1))[0]}function Na(e,t){var n=Ca(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var Pa={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:Sa,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Na(e*100,t),r:Na,s:Ma,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Fa(e){return e}var Ia=Array.prototype.map,La=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function Ra(e){var t=e.grouping===void 0||e.thousands===void 0?Fa:Ta(Ia.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?Fa:Ea(Ia.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e,l){e=Oa(e);var u=e.fill,d=e.align,f=e.sign,p=e.symbol,m=e.zero,h=e.width,g=e.comma,_=e.precision,v=e.trim,y=e.type;y===`n`?(g=!0,y=`g`):Pa[y]||(_===void 0&&(_=12),v=!0,y=`g`),(m||u===`0`&&d===`=`)&&(m=!0,u=`0`,d=`=`);var b=(l&&l.prefix!==void 0?l.prefix:``)+(p===`$`?n:p===`#`&&/[boxX]/.test(y)?`0`+y.toLowerCase():``),x=(p===`$`?r:/[%p]/.test(y)?o:``)+(l&&l.suffix!==void 0?l.suffix:``),S=Pa[y],C=/[defgprs%]/.test(y);_=_===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function w(e){var n=b,r=x,o,l,p;if(y===`c`)r=S(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:S(Math.abs(e),_),v&&(e=Aa(e)),w&&+e==0&&f!==`+`&&(w=!1),n=(w?f===`(`?f:s:f===`-`||f===`(`?``:f)+n,r=(y===`s`&&!isNaN(e)&&ja!==void 0?La[8+ja/3]:``)+r+(w&&f===`(`?`)`:``),C){for(o=-1,l=e.length;++o<l;)if(p=e.charCodeAt(o),48>p||p>57){r=(p===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}g&&!m&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T<h?Array(h-T+1).join(u):``;switch(g&&m&&(e=t(E+e,E.length?h-r.length:1/0),E=``),d){case`<`:e=n+e+r+E;break;case`=`:e=n+E+e+r;break;case`^`:e=E.slice(0,T=E.length>>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r;break}return a(e)}return w.toString=function(){return e+``},w}function u(e,t){var n=Math.max(-8,Math.min(8,Math.floor(wa(t)/3)))*3,r=10**-n,i=l((e=Oa(e),e.type=`f`,e),{suffix:La[8+n/3]});return function(e){return i(r*e)}}return{format:l,formatPrefix:u}}var za,Ba,Va;Ha({thousands:`,`,grouping:[3],currency:[`$`,``]});function Ha(e){return za=Ra(e),Ba=za.format,Va=za.formatPrefix,za}function Ua(e){return Math.max(0,-wa(Math.abs(e)))}function Wa(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(wa(t)/3)))*3-wa(Math.abs(e)))}function Ga(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,wa(t)-wa(e))+1}var Ka={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`]},qa={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`]},Ja={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.`]},Ya={decimal:`,`,thousands:`.`,grouping:[3],currency:[``,`\xA0€`]},Xa={decimal:`.`,thousands:`,`,grouping:[3],currency:[`$`,``]},Za={decimal:`,`,thousands:`\xA0`,grouping:[3],currency:[``,`\xA0€`],percent:` %`},Qa=document.documentElement.lang===`en`?`en`:document.documentElement.lang===`fr`?`fr`:`de`;function $a(){return Qa}function eo(e,t,n=``){return $a()===`de`?t:$a()===`fr`?n:e}function to(e){let t=e.format(`.%L`),n=e.format(`:%S`),r=e.format(`%I:%M`),i=e.format(`%I %p`),a=e.format(`%a %d`),o=e.format(`%b %d`),s=e.format(`%B`),c=e.format(`%Y`);return e=>(er(e)<e?t:tr(e)<e?n:rr(e)<e?r:ar(e)<e?i:wr(e)<e?lr(e)<e?a:o:U(e)<e?s:c)(e)}function no(e,t){let n=ri(e),r=Ra(t),i=e=>Math.round(e*100)/100,a=r.format(`,.2f`),o=r.format(`,.0f`),s=n.format(e.date);return{timeFormatLocaleDefinition:e,numberFormatLocaleDefinition:t,createNumberFormatter:function(e,t){let n=e.accuracy,i=r.format(t);return t=>e.prefix+i(t/n)+e.postfix},decimalFormatter:e=>a(i(e)),numberFormatter:e=>o(Math.round(e)),dateFormatter:e=>e?(typeof e==`string`&&(e=new Date(e)),s(e)):``,timeScaleFormatter:to(n)}}var ro=no(Ka,{...Ya,currency:[`€`,``]}),io=no({...qa,date:`%Y-%m-%d`},{...Xa,currency:[`€`,``]}),ao=no(Ja,{...Za,currency:[`€`,``]}),oo=class{data;chart;container;widgetType;options;items=[];constructor(e,t){let n=typeof e==`string`?document.getElementById(e):e;if(!n)throw Error(`container node undefined or null`);this.container=n,this.options=so(t,this.container);let r=this.stringValue(`type`)||this.stringValue(`layout`);if(!r)throw Error(`no widget type specified`);this.widgetType=r,this.options.type=r,(r==`graph`||r==`contact`)&&(this.options.immediate=!0);let i=this.load.bind(this);this.data=this.objectValue(`data`),this.data?window.setTimeout(i):qn.requestData(this.options,i,this.fail.bind(this))}getType(){return this.widgetType}fail(e){let t=this.handlerValue(`error`);t?t(e):$.log(`error`,e)}load(e){this.data=this.data||e;try{let e=te(this.widgetType);if(!e)throw Error(`invalid widget type: `+this.widgetType);this.chart=e(this,this.data),this.container.setAttribute(`data-layout`,this.widgetType),this.draw()}catch(e){this.fail(e);return}let t=this.handlerValue(`success`);t&&t()}showItem(e,t){let n=(this.handlerValue(`handleItem`)||((e,t)=>{if(this.stringValue(`subject`))return t;let n=document.createElement(`div`),r=document.createElement(`h2`);return r.textContent=e,n.appendChild(r),n.appendChild(t),n}))(e,t);n&&(this.container.appendChild(n),this.items.push(n))}adjustSize(e){let t=e.getBoundingClientRect(),n=this.numberValue(`width`)||t.width,r=this.numberValue(`height`)||t.height,i=this.numberValue(`ratio`),a=this.numberValue(`minHeight`),o=this.numberValue(`maxHeight`),s=r;i&&(s=n*i),a&&(s=Math.max(s,a)),o&&(s=Math.min(s,o)),r!=s&&Fn(e,s)}draw(){this.adjustSize(this.container),this.chart&&(this.chart.draw(),L(this.container).selectAll(`*`).each(function(){let e=this.getAttribute(`transform`);e||(e=getComputedStyle(this).getPropertyValue(`transform`),e&&e!=`none`&&this.setAttribute(`transform`,e))}))}markup(e){let t=this.handlerValue(`companyClick`);t&&e.selectAll(`.company`).attr(`data-clickable`,!0);let n=this.handlerValue(`personClick`);n&&e.selectAll(`.person`).attr(`data-clickable`,!0);let r=this.handlerValue(`addressClick`);r&&e.selectAll(`address`).attr(`data-clickable`,!0);let i=this.handlerValue(`registerClick`);i&&e.selectAll(`.register`).attr(`data-clickable`,!0);let a=this.handlerValue(`filingClick`);a&&e.selectAll(`.filing`).attr(`data-clickable`,!0),e.on(`click`,function(e){let o=e.target,s=co(o),c;t&&o.classList.contains(`company`)&&(t(s),c=!0),n&&o.classList.contains(`person`)&&(n(s),c=!0),r&&o.tagName==`ADDRESS`&&(r({query:o.textContent}),c=!0),i&&o.classList.contains(`register`)&&(i({query:o.textContent}),c=!0),a&&o.classList.contains(`filing`)&&(a({query:o.textContent}),c=!0),c&&e.preventDefault()})}invokeClickHandler(e,t){let n=this.getClickHandler(t);return n?(n(e),!0):!1}getClickHandler(e){if(e)switch(e.toString().toLowerCase()[0]){case`c`:return this.handlerValue(`companyClick`);case`p`:return this.handlerValue(`personClick`);case`h`:return this.handlerValue(`publicationClick`)}}getLinkifier(){return this.handlerValue(`linkify`)||lo}getRootColor(){return Ae(this.stringValue(`rootColor`)||`#00dddd`)}isReverseChronology(){return this.stringValue(`chronology`)===`reverse`}getLanguage(){return this.stringValue(`language`)||`de`}i18n(){return this.getLanguage()==`de`?ro:this.getLanguage()==`fr`?ao:io}trilingual(e,t,n){return this.getLanguage()==`de`?t:this.getLanguage()==`fr`?n:e}isPrint(){return document.documentElement.classList&&document.documentElement.classList.contains(`print`)}numberValue(e){let t=this.options[e];if(typeof t==`function`)return t();if(typeof t==`number`)return t;if(typeof t==`string`)return Number(t)}stringValue(e){let t=this.options[e];if(typeof t==`function`)return t();if(typeof t==`string`)return t}booleanValue(e){return this.stringValue(e)?.toLowerCase()===`true`}nodeValue(e){let t=this.options[e];if(typeof t==`object`)return t;if(typeof t==`function`)return t();if(typeof t==`string`)return L(this.container).select(t).node()}objectValue(e){let t=this.options[e];if(typeof t==`function`)return t();if(typeof t==`object`)return t===null?void 0:t;if(typeof t==`string`)return JSON.parse(t)}handlerValue(e){let t=this.options[e];if(typeof t==`function`)return t.bind(this)}};function so(e,t){let n={};Object.assign(n,e);for(let e=0;e<t.attributes.length;++e){let r=t.attributes[e],i=r.name;if(i.indexOf(`data-`)===0){let e=Hn(i.substring(5));n[e]=n[e]||r.value}}return n}function co(e){return so({},e)}var lo=()=>null;function uo(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}var fo=Symbol(`implicit`);function po(){var e=new Pr,t=[],n=[],r=fo;function i(i){let a=e.get(i);if(a===void 0){if(r!==fo)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Pr;for(let r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return po(t,n).unknown(r)},uo.apply(i,arguments),i}function mo(){var e=po().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,c=0,l=0,u=.5;delete e.unknown;function d(){var e=t().length,d=i<r,f=d?i:r,p=d?r:i;a=(p-f)/Math.max(1,e-c+l*2),s&&(a=Math.floor(a)),f+=(p-f-a*(e-c))*u,o=a*(1-c),s&&(f=Math.round(f),o=Math.round(o));var m=Jr(e).map(function(e){return f+a*e});return n(d?m.reverse():m)}return e.domain=function(e){return arguments.length?(t(e),d()):t()},e.range=function(e){return arguments.length?([r,i]=e,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(e){return[r,i]=e,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(e){return arguments.length?(s=!!e,d()):s},e.padding=function(e){return arguments.length?(c=Math.min(1,l=+e),d()):c},e.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),d()):c},e.paddingOuter=function(e){return arguments.length?(l=+e,d()):l},e.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},e.copy=function(){return mo(t(),[r,i]).round(s).paddingInner(c).paddingOuter(l).align(u)},uo.apply(d(),arguments)}var ho=e=>()=>e;function go(e,t){return function(n){return e+n*t}}function _o(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function vo(e){return(e=+e)==1?yo:function(t,n){return n-t?_o(t,n,e):ho(isNaN(t)?n:t)}}function yo(e,t){var n=t-e;return n?go(e,n):ho(isNaN(e)?t:e)}var bo=(function e(t){var n=vo(t);function r(e,t){var r=n((e=xe(e)).r,(t=xe(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=yo(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function xo(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function So(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Co(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o;for(o=0;o<r;++o)i[o]=jo(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function wo(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function q(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function To(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=jo(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var Eo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Do=new RegExp(Eo.source,`g`);function Oo(e){return function(){return e}}function ko(e){return function(t){return e(t)+``}}function Ao(e,t){var n=Eo.lastIndex=Do.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=Eo.exec(e))&&(i=Do.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:q(r,i)})),n=Do.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?ko(c[0].x):Oo(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}function jo(e,t){var n=typeof t,r;return t==null||n===`boolean`?ho(t):(n===`number`?q:n===`string`?(r=_e(t))?(t=r,bo):Ao:t instanceof _e?bo:t instanceof Date?wo:So(t)?xo:Array.isArray(t)?Co:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?To:q)(e,t)}function Mo(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var No=180/Math.PI,Po={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Fo(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*No,skewX:Math.atan(c)*No,scaleX:o,scaleY:s}}var Io;function Lo(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?Po:Fo(t.a,t.b,t.c,t.d,t.e,t.f)}function Ro(e){return e==null||(Io||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),Io.setAttribute(`transform`,e),!(e=Io.transform.baseVal.consolidate()))?Po:(e=e.matrix,Fo(e.a,e.b,e.c,e.d,e.e,e.f))}function zo(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:q(e,i)},{i:c-2,x:q(r,a)})}else(i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:q(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:q(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:q(e,n)},{i:s-2,x:q(t,r)})}else(n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var Bo=zo(Lo,`px, `,`px)`,`deg)`),Vo=zo(Ro,`, `,`)`,`)`);function Ho(e){return function(){return e}}function Uo(e){return+e}var Wo=[0,1];function Go(e){return e}function Ko(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Ho(isNaN(t)?NaN:.5)}function qo(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function Jo(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=Ko(i,r),a=n(o,a)):(r=Ko(r,i),a=n(a,o)),function(e){return a(r(e))}}function Yo(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=Ko(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=Mr(e,t,1,r)-1;return a[n](i[n](t))}}function Xo(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Zo(){var e=Wo,t=Wo,n=jo,r,i,a,o=Go,s,c,l;function u(){var n=Math.min(e.length,t.length);return o!==Go&&(o=qo(e[0],e[n-1])),s=n>2?Yo:Jo,c=l=null,d}function d(i){return i==null||isNaN(i=+i)?a:(c||=s(e.map(r),t,n))(r(o(i)))}return d.invert=function(n){return o(i((l||=s(t,e.map(r),q))(n)))},d.domain=function(t){return arguments.length?(e=Array.from(t,Uo),u()):e.slice()},d.range=function(e){return arguments.length?(t=Array.from(e),u()):t.slice()},d.rangeRound=function(e){return t=Array.from(e),n=Mo,u()},d.clamp=function(e){return arguments.length?(o=e?!0:Go,u()):o!==Go},d.interpolate=function(e){return arguments.length?(n=e,u()):n},d.unknown=function(e){return arguments.length?(a=e,d):a},function(e,t){return r=e,i=t,u()}}function Qo(){return Zo()(Go,Go)}function $o(e,t,n,r){var i=Gr(e,t,n),a;switch(r=Oa(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=Wa(i,o))&&(r.precision=a),Va(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=Ga(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=Ua(i))&&(r.precision=a-(r.type===`%`)*2);break}return Ba(r)}function es(e){var t=e.domain;return e.ticks=function(e){var n=t();return Ur(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return $o(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-->0;){if(l=Wr(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function ts(){var e=Qo();return e.copy=function(){return Xo(e,ts())},uo.apply(e,arguments),es(e)}function ns(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function rs(e){return new Date(e)}function is(e){return e instanceof Date?+e:+new Date(+e)}function as(e,t,n,r,i,a,o,s,c,l){var u=Qo(),d=u.invert,f=u.domain,p=l(`.%L`),m=l(`:%S`),h=l(`%I:%M`),g=l(`%I %p`),_=l(`%a %d`),v=l(`%b %d`),y=l(`%B`),b=l(`%Y`);function x(e){return(c(e)<e?p:s(e)<e?m:o(e)<e?h:a(e)<e?g:r(e)<e?i(e)<e?_:v:n(e)<e?y:b)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?f(Array.from(e,is)):f().map(rs)},u.ticks=function(t){var n=f();return e(n[0],n[n.length-1],t??10)},u.tickFormat=function(e,t){return t==null?x:l(t)},u.nice=function(e){var n=f();return(!e||typeof e.range!=`function`)&&(e=t(n[0],n[n.length-1],e??10)),e?f(ns(n,e)):u},u.copy=function(){return Xo(u,as(e,t,n,r,i,a,o,s,c,l))},u}function os(){return uo.apply(as(Qr,$r,U,wr,lr,ar,rr,tr,er,ba).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function ss(e){return e}var cs=1,ls=2,us=3,ds=4,fs=1e-6;function ps(e){return`translate(`+e+`,0)`}function ms(e){return`translate(0,`+e+`)`}function hs(e){return t=>+e(t)}function gs(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function _s(){return!this.__axis}function vs(e,t){var n=[],r=null,i=null,a=6,o=6,s=3,c=typeof window<`u`&&window.devicePixelRatio>1?0:.5,l=e===cs||e===ds?-1:1,u=e===ds||e===ls?`x`:`y`,d=e===cs||e===us?ps:ms;function f(f){var p=r??(t.ticks?t.ticks.apply(t,n):t.domain()),m=i??(t.tickFormat?t.tickFormat.apply(t,n):ss),h=Math.max(a,0)+s,g=t.range(),_=+g[0]+c,v=+g[g.length-1]+c,y=(t.bandwidth?gs:hs)(t.copy(),c),b=f.selection?f.selection():f,x=b.selectAll(`.domain`).data([null]),S=b.selectAll(`.tick`).data(p,t).order(),C=S.exit(),w=S.enter().append(`g`).attr(`class`,`tick`),T=S.select(`line`),E=S.select(`text`);x=x.merge(x.enter().insert(`path`,`.tick`).attr(`class`,`domain`).attr(`stroke`,`currentColor`)),S=S.merge(w),T=T.merge(w.append(`line`).attr(`stroke`,`currentColor`).attr(u+`2`,l*a)),E=E.merge(w.append(`text`).attr(`fill`,`currentColor`).attr(u,l*h).attr(`dy`,e===cs?`0em`:e===us?`0.71em`:`0.32em`)),f!==b&&(x=x.transition(f),S=S.transition(f),T=T.transition(f),E=E.transition(f),C=C.transition(f).attr(`opacity`,fs).attr(`transform`,function(e){return isFinite(e=y(e))?d(e+c):this.getAttribute(`transform`)}),w.attr(`opacity`,fs).attr(`transform`,function(e){var t=this.parentNode.__axis;return d((t&&isFinite(t=t(e))?t:y(e))+c)})),C.remove(),x.attr(`d`,e===ds||e===ls?o?`M`+l*o+`,`+_+`H`+c+`V`+v+`H`+l*o:`M`+c+`,`+_+`V`+v:o?`M`+_+`,`+l*o+`V`+c+`H`+v+`V`+l*o:`M`+_+`,`+c+`H`+v),S.attr(`opacity`,1).attr(`transform`,function(e){return d(y(e)+c)}),T.attr(u+`2`,l*a),E.attr(u,l*h).text(m),b.filter(_s).attr(`fill`,`none`).attr(`font-size`,10).attr(`font-family`,`sans-serif`).attr(`text-anchor`,e===ls?`start`:e===ds?`end`:`middle`),b.each(function(){this.__axis=y})}return f.scale=function(e){return arguments.length?(t=e,f):t},f.ticks=function(){return n=Array.from(arguments),f},f.tickArguments=function(e){return arguments.length?(n=e==null?[]:Array.from(e),f):n.slice()},f.tickValues=function(e){return arguments.length?(r=e==null?null:Array.from(e),f):r&&r.slice()},f.tickFormat=function(e){return arguments.length?(i=e,f):i},f.tickSize=function(e){return arguments.length?(a=o=+e,f):a},f.tickSizeInner=function(e){return arguments.length?(a=+e,f):a},f.tickSizeOuter=function(e){return arguments.length?(o=+e,f):o},f.tickPadding=function(e){return arguments.length?(s=+e,f):s},f.offset=function(e){return arguments.length?(c=+e,f):c},f}function ys(e){return vs(us,e)}function bs(e){return vs(ds,e)}function xs(){let e=L(`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(t,n){let r=document.documentElement.clientWidth,i=e.node().offsetWidth,a=e.node().offsetHeight,o=t+i+16<r,s=o?t+16:t-i-16,c=n-a/2;return e.style(`transform`,`translate(${s}px, ${c}px)`).classed(`left right pointing`,!1).classed(o?`left`:`right`,!0).classed(`pointing`,!0),this},visible(t){return e.interrupt().transition().delay(t?0:100).duration(0).style(`visibility`,()=>t?null:`hidden`),this},content(t){return e.html(t),this}}}var Ss=function(e,t){let n=[],r=t.note;if((!t.item||t.item.length==0)&&!r)throw Error(`no data`);let i={top:15,right:10,bottom:50,left:15},a=xs();function o(t,n){let r=t.note?`<span class='note'>`+t.note+`</span>`:``,i=t.source&&t.source.publicationTitle?`<span class='source'>`+e.trilingual(`Source: `,`Quelle: `,`Source: `)+t.source.publicationTitle+`</span>`:``;return`<span class='name'>`+n+` `+t.year+`</span><span class='value'>`+t.formattedValue+`</span>`+r+i}for(let r of t.item){let t=r.data;if(!t)continue;let s=e.options.colors,c=typeof s==`string`?s.split(`|`):s;c??=t.colors;let l=t.title.substring(0,3),u=[],d=t.colorIndexes;for(let e=0;e<d.length;++e){let n=d[e],r=t.estimate[e]?`url(#diag`+l+n+`)`:c[n];u.push(r)}let f=Mn(`svg:defs`);f.selectAll(`pattern`).data(c).join(`svg:pattern`).attr(`id`,(e,t)=>`diag${l}${t}`).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`,e=>e).style(`stroke-width`,15);let[p,m]=Nr(t.data,e=>e.value0);m=Math.max(m,1),p=Math.min(p,0);let h=Math.min(5,Math.floor(Math.max(Math.abs(p),m))),g=document.createElement(`div`);g.setAttribute(`data-item`,r.item),e.showItem(r.title,g);let _=L(g).style(`height`,`100%`).append(`svg`).attr(`width`,`100%`).attr(`height`,`100%`);_.attr(`aria-label`,r.title),_.append(()=>f.node());let v=mo().domain(t.data.map(e=>e.year)).padding(.2),y=ys(v),b=_.append(`g`).classed(`x-axis`,!0),x=ts().domain([p,m]),S=bs(x).tickSizeInner(0).tickSizeOuter(0).ticks(h).tickFormat(e.i18n().createNumberFormatter(t.numberFormat,`,.0f`)),C=_.append(`g`).classed(`y-axis`,!0),w=_.append(`g`),T=_.append(`g`);n.push(()=>{let{width:e,height:n}=g.getBoundingClientRect();_.attr(`viewBox`,`0 0 ${e} ${n}`),x.range([n-i.bottom,i.top]),C.call(S).attr(`font-size`,null).attr(`font-family`,null).call(e=>e.selectAll(`.tick`).classed(`zero`,e=>e===0));let s=45;C.selectAll(`.tick > text`).each(function(){s=Math.max(s,this.getBBox().width)});let c=i.left+s;C.attr(`transform`,`translate(${c},0)`).selectAll(`.tick > line`).attr(`x2`,e-c-i.right),v.range([c,e-i.right]),y.tickSizeInner(-(n-i.top-i.bottom)),b.attr(`transform`,`translate(0,${n-i.bottom})`).call(y).call(e=>e.select(`.domain`).remove()).attr(`font-size`,null).attr(`font-family`,null);let l=e=>Math.abs(x(0)-x(e));T.selectAll(`rect`).data(t.data).join(`rect`).attr(`x`,e=>v(e.year)).attr(`y`,e=>x(Math.max(e.value0,0))).attr(`height`,e=>Math.max(l(e.value0),1)).attr(`width`,v.bandwidth()).attr(`fill`,(e,t)=>u[t]),w.selectAll(`rect`).data(t.data.filter(e=>l(e.value0)<45)).join(`rect`).attr(`x`,e=>v(e.year)).attr(`y`,e=>{let t=e.value0>0?45:0;return x(0)-t}).attr(`height`,45).attr(`width`,v.bandwidth()).attr(`fill`,`transparent`),_.selectAll(`g > rect`).on(`mousemove`,e=>{a.position(e.clientX,e.clientY)}).on(`mouseover`,(e,t)=>{a.content(o(t,r.title)).visible(!0)}).on(`mouseout`,()=>{a.visible(!1)})})}if(r){let t=document.createElement(`div`),n=L(t).classed(`note`,!0).html(r);e.markup(n),e.container.appendChild(t)}return{draw:function(){for(let e of n)e()}}},Cs=function(e,t){if(t){let n=e.handlerValue(`load`);n&&n(t)}return D};function ws(e,t){return e.parent===t.parent?1:2}function Ts(e){return e.reduce(Es,0)/e.length}function Es(e,t){return e+t.x}function Ds(e){return 1+e.reduce(Os,0)}function Os(e,t){return Math.max(e,t.y)}function ks(e){for(var t;t=e.children;)e=t[0];return e}function As(e){for(var t;t=e.children;)e=t[t.length-1];return e}function js(){var e=ws,t=1,n=1,r=!1;function i(i){var a,o=0;i.eachAfter(function(t){var n=t.children;n?(t.x=Ts(n),t.y=Ds(n)):(t.x=a?o+=e(t,a):0,t.y=0,a=t)});var s=ks(i),c=As(i),l=s.x-e(s,c)/2,u=c.x+e(c,s)/2;return i.eachAfter(r?function(e){e.x=(e.x-i.x)*t,e.y=(i.y-e.y)*n}:function(e){e.x=(e.x-l)/(u-l)*t,e.y=(1-(i.y?e.y/i.y:1))*n})}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i}function Ms(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function Ns(){return this.eachAfter(Ms)}function Ps(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this}function Fs(e,t){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(e.call(t,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}function Is(e,t){for(var n=this,r=[n],i=[],a,o,s,c=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o<s;++o)r.push(a[o]);for(;n=i.pop();)e.call(t,n,++c,this);return this}function Ls(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r}function Rs(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function zs(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function Bs(e){for(var t=this,n=Vs(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function Vs(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function Hs(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function Us(){return Array.from(this)}function Ws(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function Gs(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*Ks(){var e=this,t,n=[e],r,i,a;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,a=r.length;i<a;++i)n.push(r[i]);while(n.length)}function qs(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=Xs)):t===void 0&&(t=Ys);for(var n=new $s(e),r,i=[n],a,o,s,c;r=i.pop();)if((o=t(r.data))&&(c=(o=Array.from(o)).length))for(r.children=o,s=c-1;s>=0;--s)i.push(a=o[s]=new $s(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(Qs)}function Js(){return qs(this).eachBefore(Zs)}function Ys(e){return e.children}function Xs(e){return Array.isArray(e)?e[1]:null}function Zs(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function Qs(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function $s(e){this.data=e,this.depth=this.height=0,this.parent=null}$s.prototype=qs.prototype={constructor:$s,count:Ns,each:Ps,eachAfter:Is,eachBefore:Fs,find:Ls,sum:Rs,sort:zs,path:Bs,ancestors:Hs,descendants:Us,leaves:Ws,links:Gs,copy:Js,[Symbol.iterator]:Ks};function ec(e){if(typeof e!=`function`)throw Error();return e}function tc(){return 0}function nc(e){return function(){return e}}function rc(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function ic(e,t,n,r,i){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(r-t)/e.value;++s<c;)o=a[s],o.y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*l}function ac(e,t,n,r,i){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(i-n)/e.value;++s<c;)o=a[s],o.x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*l}var oc=(1+Math.sqrt(5))/2;function sc(e,t,n,r,i,a){for(var o=[],s=t.children,c,l,u=0,d=0,f=s.length,p,m,h=t.value,g,_,v,y,b,x,S;u<f;){p=i-n,m=a-r;do g=s[d++].value;while(!g&&d<f);for(_=v=g,x=Math.max(m/p,p/m)/(h*e),S=g*g*x,b=Math.max(v/S,S/_);d<f;++d){if(g+=l=s[d].value,l<_&&(_=l),l>v&&(v=l),S=g*g*x,y=Math.max(v/S,S/_),y>b){g-=l;break}b=y}o.push(c={value:g,dice:p<m,children:s.slice(u,d)}),c.dice?ic(c,n,r,i,h?r+=m*g/h:a):ac(c,n,r,h?n+=p*g/h:i,a),h-=g,u=d}return o}var cc=(function e(t){function n(e,n,r,i,a){sc(t,e,n,r,i,a)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n})(oc);function lc(){var e=cc,t=!1,n=1,r=1,i=[0],a=tc,o=tc,s=tc,c=tc,l=tc;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),i=[0],t&&e.eachBefore(rc),e}function d(t){var n=i[t.depth],r=t.x0+n,u=t.y0+n,d=t.x1-n,f=t.y1-n;d<r&&(r=d=(r+d)/2),f<u&&(u=f=(u+f)/2),t.x0=r,t.y0=u,t.x1=d,t.y1=f,t.children&&(n=i[t.depth+1]=a(t)/2,r+=l(t)-n,u+=o(t)-n,d-=s(t)-n,f-=c(t)-n,d<r&&(r=d=(r+d)/2),f<u&&(u=f=(u+f)/2),e(t,r,u,d,f))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],r=+e[1],u):[n,r]},u.tile=function(t){return arguments.length?(e=ec(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(a=typeof e==`function`?e:nc(+e),u):a},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(o=typeof e==`function`?e:nc(+e),u):o},u.paddingRight=function(e){return arguments.length?(s=typeof e==`function`?e:nc(+e),u):s},u.paddingBottom=function(e){return arguments.length?(c=typeof e==`function`?e:nc(+e),u):c},u.paddingLeft=function(e){return arguments.length?(l=typeof e==`function`?e:nc(+e),u):l},u}function J(e){return function(){return e}}var uc=Math.PI,dc=2*uc,fc=1e-6,pc=dc-fc;function mc(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function hc(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return mc;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var gc=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?mc:hc(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>fc)if(!(Math.abs(u*s-c*l)>fc)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((uc-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>fc&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>fc||Math.abs(this._y1-l)>fc)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%dc+dc),d>pc?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>fc&&this._append`A${n},${n},0,${+(d>=uc)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function _c(){return new gc}_c.prototype=gc.prototype;function vc(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new gc(t)}var yc=Array.prototype.slice;function bc(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function xc(e){this._context=e}xc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Sc(e){return new xc(e)}function Cc(e){return e[0]}function wc(e){return e[1]}function Tc(e,t){var n=J(!0),r=null,i=Sc,a=null,o=vc(s);e=typeof e==`function`?e:e===void 0?Cc:J(e),t=typeof t==`function`?t:t===void 0?wc:J(t);function s(s){var c,l=(s=bc(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:J(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:J(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:J(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}var Ec=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}this._x0=e,this._y0=t}};function Dc(e){return new Ec(e,!0)}function Oc(e){return e.source}function kc(e){return e.target}function Ac(e){let t=Oc,n=kc,r=Cc,i=wc,a=null,o=null,s=vc(c);function c(){let c,l=yc.call(arguments),u=t.apply(this,l),d=n.apply(this,l);if(a??(o=e(c=s())),o.lineStart(),l[0]=u,o.point(+r.apply(this,l),+i.apply(this,l)),l[0]=d,o.point(+r.apply(this,l),+i.apply(this,l)),o.lineEnd(),c)return o=null,c+``||null}return c.source=function(e){return arguments.length?(t=e,c):t},c.target=function(e){return arguments.length?(n=e,c):n},c.x=function(e){return arguments.length?(r=typeof e==`function`?e:J(+e),c):r},c.y=function(e){return arguments.length?(i=typeof e==`function`?e:J(+e),c):i},c.context=function(t){return arguments.length?(t==null?a=o=null:o=e(a=t),c):a},c}function jc(){return Ac(Dc)}function Mc(e){return Tc().x(function(t){return e*t.x}).y(function(t){return e*t.y}).curve(Sc)([{x:0,y:0},{x:1,y:.5},{x:1,y:-.5},{x:0,y:0}])}function Nc(e,t,n,r,i,a,o=0){e.each(function(){let e=L(this),s=e.select(t).node(),c=e.select(n).node();if(s&&c&&s.textContent){let t=s.getBBox(),n=Number(e.attr(`data-dx`));if(n!=0){let e=t.x,i=-n+r,o=a-r-t.width-n;e<i?(t.x=i,L(s).attr(`x`,i-e)):e>o&&(t.x=o,L(s).attr(`x`,o-e))}L(c).attr(`width`,t.width+r*2).attr(`height`,t.height+i*2).attr(`x`,t.x-r).attr(`y`,t.y-i).attr(`rx`,o).attr(`ry`,o)}})}function Pc(e,t=!1){if(zn())return;e.reverse();let n=[],r=[];for(let i of e){let e=t&&i.classList.contains(`link`)?r:n;e.includes(i)||e.push(i)}if(r.reverse(),n.reverse(),Fc(r))for(let e of r)e.parentNode?.appendChild(e);if(Fc(n))for(let e of n)e.parentNode?.appendChild(e)}function Fc(e){let t=e[0];if(!t)return!1;let n=e.length,r=t.parentNode?.childNodes??[];for(let t=0;t<n;++t)if(r[r.length-n+t]!=e[t])return!0;return!1}function Ic(e,t,n,r,i={}){let a=e.container.getBoundingClientRect().width;function o(e){return t.select(`.node[data-id='`+e+`']`)}function s(){return t.select(`[data-root]`)}let c;function l(e){let n=e.id,s=n==r?`root`:`node`,l=o(n).attr(`data-highlight`,s).classed(`hovered`,!0);l.select(`.text`).text(e.desc),Nc(l,`.text`,`.text-bg`,i.denseLeaves?2:5,2,a);let u=t.selectAll(`[data-source-id='`+n+`'],[data-target-id='`+n+`']`).attr(`data-highlight`,s);Nc(u,`.desc`,`.desc-bg`,3,2,a),window.clearTimeout(c);let d=[];u.each(function(e){d.push(this);function t(e){e!=n&&d.push(o(e).node())}t(e.source.id),t(e.target.id)}),d.push(l.node()),Pc(d,i.separateLinksContainer)}function u(){let e=[];t.select(`.node`).each(function(){e.push(this)}),e.push(s().node()),Pc(e)}function d(e){t.selectAll(`[data-highlight]`).attr(`data-highlight`,`false`).classed(`hovered`,!1),t.select(`.node[data-id='`+e.id+`']`).select(`.text`).text(e.text).attr(`x`,0),c=window.setTimeout(u,1e3)}let f=t.select(`g.nodes`);f.empty()&&(f=t.append(`g`).attr(`class`,`nodes`)),f.style(`pointer-events`,`all`);let p=f.selectAll(`.node`).data(n),m=e=>e.clickable||!e.root,h=p.enter().append(`svg:a`).attr(`class`,`node`).attr(`data-leaf`,e=>!e.children||e.children.length==0).attr(`data-id`,e=>e.id).attr(`data-root`,e=>e.root).attr(`data-old`,e=>e.old??null).attr(`data-warning`,e=>e.warning??null).attr(`data-color`,e=>e.color??null).attr(`data-d`,e=>e.distance??null).attr(`xlink:href`,function(e){return e.url||``}).attr(`data-clickable`,t=>m(t)&&e.getClickHandler(t.type)?!0:null).on(`click`,function(t,n){m(n)&&e.invokeClickHandler(n.query,n.type)&&t.preventDefault()});return Rn(`mouseover`,f.node(),h,l),Rn(`mouseout`,f.node(),h,d),h.append(`circle`).attr(`r`,20),h.append(`text`).attr(`class`,`icon`).text(e=>e.icon),h.append(`rect`).attr(`class`,`text-bg`),h.append(`text`).attr(`class`,`text`).text(e=>e.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(e=>e.warning??``),u(),h}function Lc(e,t,n){let r=e.container.getBoundingClientRect().width,i=t.select(`g.nodes`),a=t.append(`g`).attr(`class`,`highlight-container`).attr(`style`,`pointer-events: none;`);function o(e){return t.select(`.node[data-id='`+e+`']`)}function s(){return t.select(`[data-root]`)}let c;function l(e){let t=e.getAttribute(`data-id`),a=e.getAttribute(`data-root`)==`true`?`root`:`node`;L(e).attr(`data-highlight`,a).classed(`hovered`,!0);var s=e.querySelector(`.text`);s&&(s.textContent=e.getAttribute(`data-description`)),Nc(L(e),`.text`,`.text-bg`,n?2:5,2,r);let l=i.selectAll(`.link[data-source-id='`+t+`'],.link[data-target-id='`+t+`']`).attr(`data-highlight`,a);Nc(l,`.desc`,`.desc-bg`,3,2,r),window.clearTimeout(c);let u=[];l.each(function(){var e=this;u.push(e);function n(e){e!=t&&u.push(o(e).node())}n(e.getAttribute(`data-source-id`)||``),n(e.getAttribute(`data-target-id`)||``)}),u.push(e),Pc(u)}function u(e){let t=L(e).clone(!0);t.attr(`data-highlight`,`link`).selectAll(`:not(.desc, .desc-bg)`).remove();let n=t.node();n&&(a.html(null),a.node()?.append(n))}function d(){t.selectAll(`[data-highlight]`).attr(`data-highlight`,`false`).classed(`hovered`,!1)}function f(){let e=[];t.select(`.node`).each(function(){e.push(this)}),e.push(s().node()),Pc(e)}function p(e){d();let n=e.getAttribute(`data-id`);t.select(`.node[data-id='`+n+`']`).select(`.text`).text(e.getAttribute(`data-text`)||``).attr(`x`,0),c=window.setTimeout(f,1e3)}i.selectAll(`.node`).each(function(){let t=this,n=t.getAttribute(`data-root`)==`true`,r=e.getLinkifier();if(!n){let n=t.getAttribute(`data-type`)||``,i=t.getAttribute(`data-query`)||``;L(t).attr(`xlink:href`,r(t)).attr(`data-clickable`,e.getClickHandler(n)?`true`:`false`).on(`click`,function(t){e.invokeClickHandler(i,n)&&t.preventDefault()})}}),i.selectAll(`.node`).on(`mouseover`,function(){l(this)}).on(`mouseout`,function(){p(this)}),i.selectAll(`.link`).on(`mouseover`,function(){u(this)}).on(`mouseout`,function(){d()}),f()}var Rc=function(e,t){let n=e.container;L(n).selectAll(`.shake`).style(`display`,`none`);let r=t.size>=10,i=t.scope,a=L(n).append(`svg`).attr(`class`,t.svgClass).attr(`data-dense`,r).attr(`aria-label`,t.desc);function o(){let o=n.getBoundingClientRect().width,s={left:-o/6,right:o/6,top:-20,bottom:38},c={left:-8,right:o/3-8,top:-8,bottom:8},l=r?c:s,u=s,d=[s.bottom-s.top,s.right-s.left],f=[c.bottom-c.top,c.right-c.left],p=r?f:d,m=r?7:12,h=1.5,g=js().nodeSize(p).separation(function(e,t){let n=e.parent==t.parent;if(r){if(n)return 1;{let n=(e.parent.children.length+t.parent.children.length)*1/2+h,r=5-n;return n<5?h+r:h}}else return n?1:1.4})(qs(t)),_=e=>({...e.data,x:e.x,y:e.y,depth:e.depth}),v=g.descendants().map(_),y=g.links().map(e=>({target:_(e.target),source:_(e.source)})),b,x=0;for(let e of v)e.root&&(b=e,i===`publication`&&(e.clickable=!0)),x=Math.max(x,e.depth);a.select(`g`).remove();let S=a.append(`g`),C=S.append(`g`).selectAll(`.link`).data(y),w=e=>e.target.edge,T=C.enter().append(`g`).attr(`class`,`link`).attr(`data-source-id`,e=>e.source.id).attr(`data-target-id`,e=>e.target.id).attr(`data-old`,e=>w(e)?.old??null).attr(`data-warn`,e=>w(e)?.warn??null).attr(`data-color`,e=>w(e)?.color??null).attr(`data-head`,e=>w(e)?.head??null).attr(`data-tail`,e=>w(e)?.tail??null);T.append(`path`).attr(`class`,`line`),T.append(`path`).attr(`class`,`head`).attr(`d`,Mc(m)),T.append(`path`).attr(`class`,`tail`).attr(`d`,Mc(m));let E=Ic(e,S,v,b?b.id:void 0,{denseLeaves:r,separateLinksContainer:!0}),D=(e,t)=>`translate(`+e+`,`+t+`)`,O=function(e){let t=e=>!e.children||e.children.length===0,n=e=>t(e)?l:u,i=e=>e.y+n(e).left,a=e=>e.y+n(e).right,o=e=>e.x+n(e).top,s=e=>e.x+n(e).bottom,c=[qr(v,i),Kr(v,a)],d=qr(v,o),f=Kr(v,s),p=Nr(v,e=>e.x),m=p[1]-p[0],h=ts().domain(c).range([0,e]),g=ts().domain(p).range([0,m]),_=e=>h(r&&t(e)?i(e):e.y),y=e=>g(e.x),b=e=>D(_(e),y(e)),x=jc().x(e=>_(e)).y(e=>y(e)),S=Math.max(10,(150-(f-d))/2),C=f-p[1]+S,w=p[0]-d+S;return{height:m+C+w,diagonal:x,nodeTransform:b,headTransform:e=>b(e.target)+` `+D(r&&t(e.target)?0:-20,0)+` rotate(180)`,tailTransform:e=>b(e.source)+` `+D(20,0),canvasTransform:D(0,w)}}(o);Fn(n,O.height),a.attr(`width`,`100%`).attr(`height`,`100%`).attr(`viewBox`,`0 0 ${o} ${O.height}`),S.attr(`transform`,O.canvasTransform),E.attr(`transform`,O.nodeTransform),T.select(`.line`).attr(`d`,O.diagonal),T.select(`.head`).attr(`transform`,O.headTransform),T.select(`.tail`).attr(`transform`,O.tailTransform)}return{draw:o}},zc=function(e,t){if(!t.item||t.item.length==0)throw Error(`no data`);let n=[];for(let r of t.item){let t=r.data,i=document.createElement(`div`),a=L(i).attr(`data-item`,r.item).attr(`class`,`root`),o=a.append(`div`).attr(`class`,`box-parent`);e.showItem(r.title,i);let s=L(e.nodeValue(`legend1`)??null);s.empty()&&(s=a.selectAll(`.legend1`));let c=L(e.nodeValue(`legend2`)??null);c.empty()&&(c=a.selectAll(`.legend2`));let l=L(e.nodeValue(`legend3`)??null);if(l.empty()&&(l=a.selectAll(`.legend3`)),s.empty()||c.empty()||l.empty()){let e=a.selectAll(`.legends`);e.empty()&&(e=a.append(`div`).attr(`class`,`legends`)),s.empty()&&(s=e.append(`span`).attr(`class`,`legend1`)),c.empty()&&(c=e.append(`span`).attr(`class`,`legend2`)),l.empty()&&(l=e.append(`span`).attr(`class`,`legend3`))}e.booleanValue(`hideLegend1`)&&s.classed(`hidden`,!0),e.booleanValue(`hideLegend2`)&&c.classed(`hidden`,!0),e.booleanValue(`hideLegend3`)&&l.classed(`hidden`,!0),l.text(eo(`As of: `,`Stand: `,`Date de `)+r.date);let u=e.i18n().createNumberFormatter(t.numberFormat,`,.3r`),d=null,f=function(e,t){t.children||(!d||d==t)&&(o.classed(`highlighting`,!0),Nn(`.highlighted`).classed(`highlighted`,!1),L(e).classed(`highlighted`,!0),g(t))},p=function(){d||(o.classed(`highlighting`,!1),Nn(`.highlighted`).classed(`highlighted`,!1),g(t.default??t.root))},m=function(e,t){d==t?(d=null,p()):(d=t,f(e,t))},h=function(e){return!!e&&e.indexOf(`Fehlbetrag`)>=0},g=function(e){s.text((e.formattedValue??u(e.raw))+` `),c.text(e.name)};p(),function(t){function n(e,t,r,i){e.color=t.toString();let a=r;if(e.children){let o=e.children.length+1;if(o>0){let s=(i-r)/o;for(let r of e.children)t.h=a%360,n(r,t,a,a+s),a+=s}}}let r=e.getRootColor();n(t,r,r.h,r.h+360)}(t.root),n.push(function(){let e=o.node().getBoundingClientRect();if(e.width==0||e.height==0)return;let n=qs(t.root).sum(e=>e.children?0:Math.abs(e.raw)).sort((e,t)=>Er(e.value,t.value)),r=lc().size(Pn(e)).round(!0)(n),i=e=>e.x1-e.x0,a=e=>e.y1-e.y0,s=o.selectAll(`.box`).data(r.descendants()),c=s.enter().append(`div`).attr(`class`,`box`).on(`mouseenter`,function(e,t){f(this,t.data)}).on(`mouseleave`,p).on(`click`,function(e,t){m(this,t.data)}).attr(`data-neg`,e=>!!(e.data.raw<0||h(e.data.name)));c.append(`div`).attr(`class`,`value`).text(e=>e.children?null:e?.data?.formattedValue??u(e.value)),c.append(`div`).attr(`class`,`desc`).text(e=>e.children?null:e.data.name),c.merge(s).attr(`data-small`,e=>i(e)<40||a(e)<32||null).style(`left`,e=>e.x0+`px`).style(`top`,e=>e.y0+`px`).style(`width`,e=>Math.max(0,i(e)-1)+`px`).style(`height`,e=>Math.max(0,a(e)-1)+`px`).style(`background`,e=>e.children?`white`:e.data.color)})}return{draw:function(){for(let e of n)e()}}},Bc=function(e,t){let n=t&&t.financials&&t.financials.filter(e=>e.items.length>0),r=e.isReverseChronology();if(n&&n.length>0&&n[0].items.length>0){let a=document.createElement(`table`),o=L(a).attr(`class`,`ui bizq very compact celled small unstackable striped selectable first stuck table`),s=o.append(`thead`).append(`tr`),c=o.append(`tbody`),l=o.append(`tfoot`).append(`tr`);var i={};for(let e of n){e.itemsById={};for(let t of e.items)e.itemsById[t.id]=t,i[t.id]=t}let u=n[n.length-1];r&&n.reverse();let d=e.stringValue(`title`),f=s.append(`th`).attr(`class`,`first`);e.booleanValue(`hideTitleCell`)||f.text(d),f.append(`a`).attr(`href`,t.csvUrl).attr(`download`,`download`).attr(`title`,`CSV/Excel Download`).classed(`screen-only`,!0).append(`i`).attr(`class`,`download icon`);for(let e of n)s.append(`th`).text(e.formattedDate);for(let t in i){let r=c.append(`tr`).attr(`class`,`active-on-hover`),a=i[t];r.append(`td`).text(a.name);for(let i of n){let n=i.itemsById[t],a=r.append(`td`);if(n){let t=n.value>=0?`pos`:`neg`,r=n.formattedValue;a.append(`span`).attr(`class`,t+` value`).text(r),n.estimate&&a.append(`a`).attr(`href`,`javascript:void()`).attr(`title`,e.trilingual(`Unsafe value (estimation or indirect determination)`,`Indirekte oder unsichere Bestimmungsmethode`,`Valeur non sûre (estimation ou détermination indirecte)`)).html(` * `),n.note&&a.append(`span`).attr(`class`,`note`).text(n.note)}else a.append(`span`).text(`N/A`)}}if(u.source){if(u.source.auditorName){let t=c.append(`tr`).attr(`class`,`active-on-hover`);t.append(`td`).text(e.trilingual(`Auditor`,`Prüfer`,`Auditeur`));for(let e of n){let n=e.source&&e.source.auditorName;t.append(`td`).append(`span`).attr(`class`,`auditor value`).text(n||`N/A`)}}if(u.source&&u.source.publicationDate){let t=c.append(`tr`).attr(`class`,`active-on-hover`);t.append(`td`).text(e.trilingual(`Publication date`,`Veröffentlichungsdatum`,`Date de publication`));for(let r of n){let n=r.source&&r.source.publicationDate;t.append(`td`).append(`span`).attr(`class`,`date value`).text(n?e.i18n().dateFormatter(new Date(n)):`N/A`)}}l.append(`th`).text(e.trilingual(`Source`,`Quelle`,`Source`));let t=e.handlerValue(`sourceClick`);for(let e of n){let n=l.append(`th`);n.html(e.note.html),t&&n.selectAll(`a`).attr(`href`,`javascript:void(0);`).on(`click`,function(n){n.preventDefault(),t(e.source)})}}e.showItem(d,a)}else throw Error(`no data available`);return D},Vc=function(e,t){if(t.children)return Rc(e,t);let n=t.type==`orgchart`,r=e.container;if(t.html)return r.innerHTML=t.html,t.legendHtml||L(r).selectAll(`foreignObject:has(> .extended-legend-button)`).remove(),Nc(L(r).selectAll(`.link`),`.desc`,`.desc-bg`,3,3,1e3),Lc(e,L(r).select(`svg`),!1),{draw:function(){}};if(!t.nodes||t.nodes.length<2)throw Error(`graph empty or single node`);let i,a={},o=t.nodes.length,s=!1;for(let e of t.nodes)e.root&&(i=e),e.warning&&(s=!0),a[e.id]=e;for(let e of t.links)e.source=a[e.source],e.target=a[e.target],(!e.source||!e.target)&&$.log(`error`,`broken link: `,e);let c=L(r).append(`svg`).attr(`width`,`100%`).attr(`height`,`100%`).attr(`aria-label`,eo(`Network`,`Netzwerk`,`Réseau`)),l=c.append(`g`).attr(`class`,`nodes`).selectAll(`.link`).data(t.links),u=c.append(`g`).attr(`class`,`legend`);n||(u.append(`line`).attr(`data-old`,!1),u.append(`line`).attr(`data-old`,!0)),s&&u.append(`line`).attr(`data-warn`,!0),u.append(`text`).attr(`data-old`,!1).text(e.trilingual(`currently`,`aktuell`,`actuel`)),u.append(`text`).attr(`data-old`,!0).text(e.trilingual(`previously`,`vormals`,`auparavant`)),s&&u.append(`text`).attr(`data-warn`,!0).text(e.trilingual(`politically exposed`,`politisch exponiert`,`politiquement exposé`));function d(e){if(e.type==`SameAddress`)return`3, 3`;if(e.type==`CommonFiling`)return`6, 6`}let f=l.enter().append(`g`).attr(`class`,`link`).attr(`data-source-id`,e=>e.source.id).attr(`data-target-id`,e=>e.target.id).attr(`data-head`,e=>e.head).attr(`data-tail`,e=>e.tail).attr(`data-old`,e=>e.old).attr(`data-warn`,e=>e.warn).attr(`data-length`,e=>e.length).attr(`data-helper`,e=>e.helper);if(n)for(var p=0;p<3;++p)f.append(`line`).attr(`class`,`line`).attr(`class`,`segment`+p).attr(`stroke-width`,1).attr(`stroke`,`#000000`);else f.append(`line`).attr(`class`,`line`).attr(`stroke-width`,1).attr(`stroke`,`#000000`).attr(`stroke-dasharray`,e=>d(e));f.append(`rect`).attr(`class`,`desc-bg`),f.append(`text`).attr(`class`,`desc`).attr(`text-anchor`,`middle`).text(e=>e.text),f.append(`path`).attr(`class`,`head`).attr(`d`,Mc(12)),f.append(`path`).attr(`class`,`tail`).attr(`d`,Mc(12));let m=Ic(e,c,t.nodes,i.id),h=0,g=!0,_=function(){if(g||h++%3!=0)return;function e(e,t){return(t[1]-t[0])/(e[1]-e[0])}function i(e){return(e[1]+e[0])/2}let a=r.getBoundingClientRect(),s=a.width,l=a.height,u=Nr(t.nodes,e=>e.x),d=Nr(t.nodes,e=>e.y),p=[100,s-100],_=n?d:[40,(o==2?120:l)-1.5*40],v=i(u),y=i(p),b=i(d),x=i(_),S=e(u,p),C=e(d,_),w=o==2?2:t.diameter*1.1;S=Math.min(S,C*w),o==2&&(C=0,S*=2,Fn(r,120));let T=e=>(e-v)*S+y,E=e=>(e-b)*C+x,D=e=>T(e.source.x),O=e=>T(e.target.x),ee=e=>E(e.source.y),te=e=>E(e.target.y),k=e=>O(e)-D(e),A=e=>te(e)-ee(e),j=e=>(O(e)-D(e))/2,M=e=>(te(e)-ee(e))/2,ne=e=>180/Math.PI*Math.atan2(A(e),k(e)),re=e=>{let t=180/Math.PI*Math.atan2(A(e),k(e));return t>90&&t<270?t-=180:t<-90&&t>-270&&(t+=180),t};f.attr(`transform`,e=>`translate(`+D(e)+` `+ee(e)+`)`),f.select(`line`).attr(`x1`,0).attr(`y1`,0).attr(`x2`,k).attr(`y2`,A),f.select(`.segment0`).attr(`x1`,0).attr(`y1`,0).attr(`x2`,0).attr(`y2`,M),f.select(`.segment1`).attr(`x1`,0).attr(`y1`,M).attr(`x2`,k).attr(`y2`,M),f.select(`.segment2`).attr(`x1`,k).attr(`y1`,M).attr(`x2`,k).attr(`y2`,A);let ie=e=>`rotate(`+re(e)+` `+j(e)+` `+M(e)+` ) translate(0 -7)`;if(f.select(`.desc`).attr(`x`,j).attr(`y`,M).attr(`transform`,ie),f.select(`.desc-bg`).attr(`x`,j).attr(`y`,M).attr(`transform`,ie),!n){let e=e=>k(e)+0,t=e=>A(e)+0;f.select(`.tail`).attr(`transform`,e=>`rotate(`+ne(e)+`) translate(20 0)`),f.select(`.head`).attr(`transform`,n=>`translate(`+e(n)+` `+t(n)+`) rotate(`+(180+ne(n))+`) translate(20 0)`)}let N=_[1]+40/2,ae=N-18,oe=N+18;c.selectAll(`.legend line`).attr(`x1`,50).attr(`x2`,90),c.selectAll(`.legend line[data-old='false'`).attr(`y1`,ae).attr(`y2`,ae),c.selectAll(`.legend line[data-old='true'`).attr(`y1`,N).attr(`y2`,N),c.selectAll(`.legend line[data-warn='true'`).attr(`y1`,oe).attr(`y2`,oe),c.selectAll(`.legend text`).attr(`x`,95),c.selectAll(`.legend text[data-old='false'`).attr(`y`,ae+3),c.selectAll(`.legend text[data-old='true'`).attr(`y`,N+3),c.selectAll(`.legend text[data-warn='true'`).attr(`y`,oe+3),Nc(f,`.desc`,`.desc-bg`,3,3,1e3),m.attr(`data-dx`,e=>T(e.x)).attr(`transform`,e=>`translate(`+T(e.x)+`,`+E(e.y)+`)`)};function v(){let[e,t]=Pn(r.getBoundingClientRect());c.attr(`viewBox`,`0 0 `+e+` `+t),g=!1,_()}return{draw:v}},Hc={value:()=>{}};function Uc(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new Wc(n)}function Wc(e){this._=e}function Gc(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}Wc.prototype=Uc.prototype={constructor:Wc,on:function(e,t){var n=this._,r=Gc(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=Kc(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=qc(n[i],e.name,t);else if(t==null)for(i in n)n[i]=qc(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Wc(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function Kc(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function qc(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Hc,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var Jc=0,Yc=0,Xc=0,Zc=1e3,Qc,$c,el=0,tl=0,nl=0,rl=typeof performance==`object`&&performance.now?performance:Date,il=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function al(){return tl||=(il(ol),rl.now()+nl)}function ol(){tl=0}function sl(){this._call=this._time=this._next=null}sl.prototype=cl.prototype={constructor:sl,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?al():+n)+(t==null?0:+t),!this._next&&$c!==this&&($c?$c._next=this:Qc=this,$c=this),this._call=e,this._time=n,pl()},stop:function(){this._call&&(this._call=null,this._time=1/0,pl())}};function cl(e,t,n){var r=new sl;return r.restart(e,t,n),r}function ll(){al(),++Jc;for(var e=Qc,t;e;)(t=tl-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Jc}function ul(){tl=(el=rl.now())+nl,Jc=Yc=0;try{ll()}finally{Jc=0,fl(),tl=0}}function dl(){var e=rl.now(),t=e-el;t>Zc&&(nl-=t,el=e)}function fl(){for(var e,t=Qc,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Qc=n);$c=e,pl(r)}function pl(e){Jc||(Yc&&=clearTimeout(Yc),e-tl>24?(e<1/0&&(Yc=setTimeout(ul,e-rl.now()-nl)),Xc&&=clearInterval(Xc)):(Xc||=(el=rl.now(),setInterval(dl,Zc)),Jc=1,il(ul)))}function ml(e,t,n){var r=new sl;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var hl=Uc(`start`,`end`,`cancel`,`interrupt`),gl=[];function _l(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;yl(e,n,{name:t,index:r,group:i,on:hl,tween:gl,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function vl(e,t){var n=X(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function Y(e,t){var n=X(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function X(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function yl(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=cl(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return ml(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(ml(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function bl(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function xl(e){return this.each(function(){bl(this,e)})}function Sl(e,t){var n,r;return function(){var i=Y(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function Cl(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=Y(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function wl(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=X(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?Sl:Cl)(n,e,t))}function Tl(e,t,n){var r=e._id;return e.each(function(){var e=Y(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return X(e,r).value[t]}}function El(e,t){var n;return(typeof t==`number`?q:t instanceof _e?bo:(n=_e(t))?(t=n,bo):Ao)(e,t)}function Dl(e){return function(){this.removeAttribute(e)}}function Ol(e){return function(){this.removeAttributeNS(e.space,e.local)}}function kl(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function Al(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function jl(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Ml(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Nl(e,t){var n=Fe(e),r=n===`transform`?Vo:El;return this.attrTween(e,typeof t==`function`?(n.local?Ml:jl)(n,r,Tl(this,`attr.`+e,t)):t==null?(n.local?Ol:Dl)(n):(n.local?Al:kl)(n,r,t))}function Pl(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Fl(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Il(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Fl(e,i)),n}return i._value=t,i}function Ll(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Pl(e,i)),n}return i._value=t,i}function Rl(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=Fe(e);return this.tween(n,(r.local?Il:Ll)(r,t))}function zl(e,t){return function(){vl(this,e).delay=+t.apply(this,arguments)}}function Bl(e,t){return t=+t,function(){vl(this,e).delay=t}}function Vl(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?zl:Bl)(t,e)):X(this.node(),t).delay}function Hl(e,t){return function(){Y(this,e).duration=+t.apply(this,arguments)}}function Ul(e,t){return t=+t,function(){Y(this,e).duration=t}}function Wl(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Hl:Ul)(t,e)):X(this.node(),t).duration}function Gl(e,t){if(typeof t!=`function`)throw Error();return function(){Y(this,e).ease=t}}function Kl(e){var t=this._id;return arguments.length?this.each(Gl(t,e)):X(this.node(),t).ease}function ql(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();Y(this,e).ease=n}}function Jl(e){if(typeof e!=`function`)throw Error();return this.each(ql(this._id,e))}function Yl(e){typeof e!=`function`&&(e=qe(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new Z(r,this._parents,this._name,this._id)}function Xl(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new Z(o,this._parents,this._name,this._id)}function Zl(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function Ql(e,t,n){var r,i,a=Zl(t)?vl:Y;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function $l(e,t){var n=this._id;return arguments.length<2?X(this.node(),n).on.on(e):this.each(Ql(n,e,t))}function eu(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function tu(){return this.on(`end.remove`,eu(this._id))}function nu(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=Be(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,_l(l[f],t,n,f,l,X(u,n)));return new Z(a,this._parents,t,n)}function ru(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=We(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=X(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&_l(p,t,n,h,f,m);a.push(f),o.push(u)}return new Z(a,o,t,n)}var iu=An.prototype.constructor;function au(){return new iu(this._groups,this._parents)}function ou(e,t){var n,r,i;return function(){var a=Lt(this,e),o=(this.style.removeProperty(e),Lt(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function su(e){return function(){this.style.removeProperty(e)}}function cu(e,t,n){var r,i=n+``,a;return function(){var o=Lt(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function lu(e,t,n){var r,i,a;return function(){var o=Lt(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),Lt(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function uu(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=Y(this,e),l=c.on,u=c.value[a]==null?s||=su(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function du(e,t,n){var r=(e+=``)==`transform`?Bo:El;return t==null?this.styleTween(e,ou(e,r)).on(`end.style.`+e,su(e)):typeof t==`function`?this.styleTween(e,lu(e,r,Tl(this,`style.`+e,t))).each(uu(this._id,e)):this.styleTween(e,cu(e,r,t),n).on(`end.style.`+e,null)}function fu(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function pu(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&fu(e,a,n)),r}return a._value=t,a}function mu(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,pu(e,t,n??``))}function hu(e){return function(){this.textContent=e}}function gu(e){return function(){var t=e(this);this.textContent=t??``}}function _u(e){return this.tween(`text`,typeof e==`function`?gu(Tl(this,`text`,e)):hu(e==null?``:e+``))}function vu(e){return function(t){this.textContent=e.call(this,t)}}function yu(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&vu(r)),t}return r._value=e,r}function bu(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,yu(e))}function xu(){for(var e=this._name,t=this._id,n=Tu(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=X(c,t);_l(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Z(r,this._parents,e,n)}function Su(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=Y(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var Cu=0;function Z(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function wu(e){return An().transition(e)}function Tu(){return++Cu}var Q=An.prototype;Z.prototype=wu.prototype={constructor:Z,select:nu,selectAll:ru,selectChild:Q.selectChild,selectChildren:Q.selectChildren,filter:Yl,merge:Xl,selection:au,transition:xu,call:Q.call,nodes:Q.nodes,node:Q.node,size:Q.size,empty:Q.empty,each:Q.each,on:$l,attr:Nl,attrTween:Rl,style:du,styleTween:mu,text:_u,textTween:bu,remove:tu,tween:wl,delay:Vl,duration:Wl,ease:Kl,easeVarying:Jl,end:Su,[Symbol.iterator]:Q[Symbol.iterator]};function Eu(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Du={time:null,delay:0,duration:250,ease:Eu};function Ou(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function ku(e){var t,n;e instanceof Z?(t=e._id,e=e._name):(t=Tu(),(n=Du).time=al(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&_l(c,e,t,l,o,n||Ou(c,t));return new Z(r,this._parents,e,t)}An.prototype.interrupt=xl,An.prototype.transition=ku;var Au=o(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.labella=r():n.labella=r()})(e,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p=``,t(0)}([function(e,t,n){"use strict";e.exports={Node:n(1),Force:n(2),Distributor:n(3),Renderer:n(10)}},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();e.exports=function(){function e(t,r,i){n(this,e),this.idealPos=t,this.currentPos=t,this.width=r,this.data=i,this.layerIndex=0}return r(e,[{key:`distanceFrom`,value:function(e){var t=this.width/2,n=e.width/2;return Math.max(this.currentPos-t,e.currentPos-n)-Math.min(this.currentPos+t,e.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(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this.distanceFrom(e)-t<0}},{key:`overlapWithPoint`,value:function(e){var t=this.width/2;return e>=this.currentPos-t&&e<=this.currentPos+t}},{key:`positionBefore`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.currentLeft()-this.width/2-t}},{key:`positionAfter`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.currentRight()+this.width/2+t}},{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(t){var n=new e(this.idealPos,t,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,null),this}},{key:`isStub`,value:function(){return!!this.child}},{key:`getPathToRoot`,value:function(){for(var e=[],t=this;t;)e.push(t),t=t.parent;return e}},{key:`getPathFromRoot`,value:function(){return this.getPathToRoot().reverse()}},{key:`getPathToRootLength`,value:function(){for(var e=0,t=this;t;){var n=t.parent?t.parent.currentPos:t.idealPos;e+=Math.abs(t.currentPos-n),t=t.parent}return e}},{key:`getRoot`,value:function(){for(var e=this,t=this;t;)e=t,t=t.parent;return e}},{key:`getLayerIndex`,value:function(){return this.layerIndex}},{key:`clone`,value:function(){var t=new e(this.idealPos,this.width,this.data);return t.currentPos=this.currentPos,t.layerIndex=this.layerIndex,t}}]),e}()},function(e,t,n){"use strict";var r=n(3),i=n(4),a=n(8),o={nodeSpacing:3,minPos:0,maxPos:null,algorithm:`overlap`,removeOverlap:!0,density:.85,stubWidth:1},s=function(e){var t={},n=i.extend({},o),s=new r,c=[],l=null;return t.nodes=function(e){return arguments.length?(c=e,l=[e.concat()],t):c},t.getLayers=function(){return l},t.options=function(e){if(!arguments.length)return n;n=i.extend(n,e);var a=i.pick(n,Object.keys(r.DEFAULT_OPTIONS));return i.isDefined(n.minPos)&&i.isDefined(n.maxPos)?a.layerWidth=n.maxPos-n.minPos:a.layerWidth=null,s.options(a),t},t.options(e),t.compute=function(){var e=i.pick(n,Object.keys(a.DEFAULT_OPTIONS));return c.forEach(function(e){e.removeStub()}),l=s.distribute(c),l.map(function(t,r){t.forEach(function(e){e.layerIndex=r}),n.removeOverlap&&a(t,e)}),t},t.start=function(){console.log(`[warning] force.start() is deprecated. Please use force.compute() instead.`)},t};s.DEFAULT_OPTIONS=o,e.exports=s},function(e,t,n){"use strict";var r=n(4),i=n(6),a={algorithm:`overlap`,layerWidth:1e3,density:.75,nodeSpacing:3,stubWidth:1},o=function(e){var t={};e=r.extend({},a,e),t.options=function(n){return arguments.length?(e=r.extend(e,n),t):e},t.computeRequiredWidth=function(t){return r.sum(t,function(t){return t.width+e.nodeSpacing})-e.nodeSpacing},t.maxWidthPerLayer=function(){return e.density*e.layerWidth},t.needToSplit=function(e){return t.estimateRequiredLayers(e)>1},t.estimateRequiredLayers=function(n){return e.layerWidth?Math.ceil(t.computeRequiredWidth(n)/t.maxWidthPerLayer()):1};var n={simple:function(n){for(var r=t.estimateRequiredLayers(n),i=[],a=0;a<r;a++)i.push([]);return n.forEach(function(t,n){var a=n%r;i[a].push(t);for(var o=t,s=a-1;s>=0;s--)o=o.createStub(e.stubWidth),i[s].push(o)}),i},roundRobin:function(e){return[]},overlap:function(n){for(var r=[],i=t.maxWidthPerLayer(),a=n.concat(),o=t.computeRequiredWidth(a);o>i;){t.countIdealOverlaps(a);var s=a.concat(),c=o;for(a=[];s.length>2&&c>i;){s.sort(function(e,t){return t.overlapCount-e.overlapCount});var l=s.shift();c-=l.width,c+=e.stubWidth,l.overlaps.forEach(function(e){e.overlapCount--}),a.push(l)}r.push(s),o=t.computeRequiredWidth(a)}a.length>0&&r.push(a);for(var u=r.length-1;u>=1;u--)for(var d=r[u],f=0;f<d.length;f++){var p=d[f];if(!p.isStub())for(var m=p,h=u-1;h>=0;h--)m=m.createStub(e.stubWidth),r[h].push(m)}return r}};return t.countIdealOverlaps=function(t){var n=new i(e.layerWidth/2);return t.forEach(function(e){n.add([e.idealLeft(),e.idealRight(),e])}),t.forEach(function(e){var t=n.search(e.idealLeft(),e.idealRight());e.overlaps=t.map(function(e){return e.data[2]}),e.overlapCount=t.length}),t},t.distribute=function(i){if(!i||i.length===0)return[];if(e.algorithm==`none`||!r.isDefined(e.algorithm)||!t.needToSplit(i))return[i];var a=i.concat().sort(function(e,t){return e.idealPos-t.idealPos});if(typeof e.algorithm==`function`)return e.algorithm(a,e);if(n.hasOwnProperty(e.algorithm))return n[e.algorithm](a);throw`Unknown algorithm: `+e.algorithm},t};o.DEFAULT_OPTIONS=a,e.exports=o},function(e,t,n){"use strict";var r={isDefined:function(e){return e!=null},last:function(e){return e.length>0?e[e.length-1]:null},pick:function(e,t){return t.reduce(function(t,n){return t[n]=e[n],t},{})},sum:function(e,t){return e.map(t).reduce(function(e,t){return e+t},0)}};r.extend=n(5),e.exports=r},function(e,t){"use strict";var n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=function(e){return typeof Array.isArray==`function`?Array.isArray(e):i.call(e)===`[object Array]`},o=function(e){if(!e||i.call(e)!==`[object Object]`)return!1;var t=r.call(e,`constructor`),n=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!n)return!1;for(var a in e);return a===void 0||r.call(e,a)};e.exports=function e(){var t,r,i,s,c,l,u=arguments[0],d=1,f=arguments.length,p=!1;for(typeof u==`boolean`?(p=u,u=arguments[1]||{},d=2):((u===void 0?`undefined`:n(u))!==`object`&&typeof u!=`function`||u==null)&&(u={});d<f;++d)if(t=arguments[d],t!=null)for(r in t)i=u[r],s=t[r],u!==s&&(p&&s&&(o(s)||(c=a(s)))?(c?(c=!1,l=i&&a(i)?i:[]):l=i&&o(i)?i:{},u[r]=e(p,l,s)):s!==void 0&&(u[r]=s));return u}},function(e,t,n){"use strict";function r(e,t){if(t||={},this.startKey=t.startKey||0,this.endKey=t.endKey||1,this.intervalHash={},this.pointTree=new l({compare:function(e,t){if(e==null)return-1;if(t==null)return 1;var n=e[0]-t[0];return n>0?1:n==0?0:-1}}),this._autoIncrement=0,!e||typeof e!=`number`)throw Error(`you must specify center index as the 2nd argument.`);this.root=new s(e,this)}function i(e,t){return t.end<e.idx?(e.left||=new s(t.start+t.end>>1,this),i.call(this,e.left,t)):e.idx<t.start?(e.right||=new s(t.start+t.end>>1,this),i.call(this,e.right,t)):e.insert(t)}function a(e,t,n){if(e)return t<e.idx?(e.starts.every(function(e){var r=e.start<=t;return r&&n.push(e.result()),r}),a.call(this,e.left,t,n)):t>e.idx?(e.ends.every(function(e){var r=e.end>=t;return r&&n.push(e.result()),r}),a.call(this,e.right,t,n)):void e.starts.map(function(e){n.push(e.result())})}function o(e,t,n){if(t-e<=0)throw Error(`end must be greater than start. start: `+e+`, end: `+t);var r={},i=[];a.call(this,this.root,e+t>>1,i,!0),i.forEach(function(e){r[e.id]=!0});for(var o=this.pointTree.bsearch([e,null]),s=this.pointTree;o>=0&&s[o][0]==e;)o--;var c=this.pointTree.bsearch([t,null]);if(c>=0){for(var l=s.length-1;c<=l&&s[c][0]<=t;)c++;s.slice(o+1,c).forEach(function(e){var t=e[1];r[t]=!0},this),Object.keys(r).forEach(function(r){var i=this.intervalHash[r];n.push(i.result(e,t))},this)}}function s(e){this.idx=e,this.starts=new l({compare:function(e,t){if(e==null)return-1;if(t==null)return 1;var n=e.start-t.start;return n>0?1:n==0?0:-1}}),this.ends=new l({compare:function(e,t){if(e==null)return-1;if(t==null)return 1;var n=e.end-t.end;return n<0?1:n==0?0:-1}})}function c(e,t,n,r){if(this.id=t,this.start=e[n],this.end=e[r],this.data=e,typeof this.start!=`number`||typeof this.end!=`number`)throw Error(`start, end must be number. start: `+this.start+`, end: `+this.end);if(this.start>=this.end)throw Error(`start must be smaller than end. start: `+this.start+`, end: `+this.end)}var l=n(7);r.prototype.add=function(e,t){if(this.intervalHash[t])throw Error(`id `+t+` is already registered.`);if(t==null){for(;this.intervalHash[this._autoIncrement];)this._autoIncrement++;t=this._autoIncrement}var n=new c(e,t,this.startKey,this.endKey);this.pointTree.insert([n.start,t]),this.pointTree.insert([n.end,t]),this.intervalHash[t]=n,this._autoIncrement++,i.call(this,this.root,n)},r.prototype.search=function(e,t){var n=[];if(typeof e!=`number`)throw Error(e+`: invalid input`);if(t==null)a.call(this,this.root,e,n);else{if(typeof t!=`number`)throw Error(e+`,`+t+`: invalid input`);o.call(this,e,t,n)}return n},r.prototype.remove=function(e){},s.prototype.insert=function(e){this.starts.insert(e),this.ends.insert(e)},c.prototype.result=function(e,t){var n={id:this.id,data:this.data};if(typeof e==`number`&&typeof t==`number`){var r=Math.max(this.start,e),i=Math.min(this.end,t)-r;n.rate1=i/(t-e),n.rate2=i/(this.end-this.start)}return n},e.exports=r},function(e,t){"use strict";var n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},r=function e(){var t=null,r={},i=arguments;[`0`,`1`].forEach(function(e){var a=i[e];Array.isArray(a)?t=a:a&&(a===void 0?`undefined`:n(a))==`object`&&(r=a)}),typeof r.filter==`function`&&(this._filter=r.filter),typeof r.compare==`function`?this._compare=r.compare:typeof r.compare==`string`&&e.compares[r.compare]&&(this._compare=e.compares[r.compare]),this._unique=!!r.unique,r.resume&&t?t.forEach(function(e,t){this.push(e)},this):t&&this.insert.apply(this,t)};r.create=function(e,t){return new r(e,t)},r.prototype=[],r.prototype.constructor=Array.prototype.constructor,r.prototype.insertOne=function(e){var t=this.bsearch(e);return(!this._unique||this.key(e,t)==null)&&!!this._filter(e,t)&&(this.splice(t+1,0,e),t+1)},r.prototype.insert=function(){return Array.prototype.map.call(arguments,function(e){return this.insertOne(e)},this)},r.prototype.remove=function(e){return this.splice(e,1),this},r.prototype.bsearch=function(e){if(!this.length)return-1;for(var t,n=0,r=this.length;r-n>1;){t=Math.floor((n+r)/2);var i=this[t],a=this._compare(e,i);if(a==0)return t;a>0?n=t:r=t}return n==0&&this._compare(this[0],e)>0?-1:n},r.prototype.key=function(e,t){t??=this.bsearch(e);var n=t;if(n==-1||this._compare(this[n],e)<0)return n+1<this.length&&this._compare(this[n+1],e)==0?n+1:null;for(;n>=1&&this._compare(this[n-1],e)==0;)n--;return n},r.prototype.keys=function(e,t){var n=[];t??=this.bsearch(e);for(var r=t;r>=0&&this._compare(this[r],e)==0;)n.push(r),r--;var i=this.length;for(r=t+1;r<i&&this._compare(this[r],e)==0;)n.push(r),r++;return n.length?n:null},r.prototype.unique=function(e){if(e)return this.filter(function(e,t){return t==0||this._compare(this[t-1],e)!=0},this);var t=0;return this.map(function(e,n){return n==0||this._compare(this[n-1],e)!=0?null:n-t++},this).forEach(function(e){e!=null&&this.remove(e)},this),this},r.prototype.toArray=function(){return this.slice()},r.prototype._filter=function(e,t){return!0},r.compares={number:function(e,t){var n=e-t;return n>0?1:n==0?0:-1},string:function(e,t){return e>t?1:e==t?0:-1}},r.prototype._compare=r.compares.string,e.exports=r},function(e,t,n){"use strict";function r(e){var t=new o.Variable(e.targetPos);return t.node=e,t}function i(e,t){if(e.length>0){t=a.extend(s,t),e.forEach(function(e,t){e.targetPos=e.parent?e.parent.currentPos:e.idealPos,e.index=t});for(var n=e.concat().sort(function(e,t){var n=e.targetPos-t.targetPos;if(n!==0)return n;var r=e.isStub()-t.isStub();return r===0?e.index-t.index:r}).map(r),i=[],c=1;c<n.length;c++){var l=n[c-1],u=n[c],d=void 0;d=l.node.isStub()&&u.node.isStub()?(l.node.width+u.node.width)/2+t.lineSpacing:(l.node.width+u.node.width)/2+t.nodeSpacing,i.push(new o.Constraint(l,u,d))}if(a.isDefined(t.minPos)){var f=new o.Variable(t.minPos,1e10),p=n[0];i.push(new o.Constraint(f,p,p.node.width/2)),n.unshift(f)}if(a.isDefined(t.maxPos)){var m=new o.Variable(t.maxPos,1e10),h=a.last(n);i.push(new o.Constraint(h,m,h.node.width/2)),n.push(m)}new o.Solver(n,i).solve(),n.filter(function(e){return e.node}).map(function(e){return e.node.currentPos=Math.round(e.position()),e})}return e}var a=n(4),o=n(9),s={lineSpacing:2,nodeSpacing:3,minPos:0,maxPos:null};i.DEFAULT_OPTIONS=s,e.exports=i},function(e,t){"use strict";var n={},r=function(){function e(e){this.scale=e,this.AB=0,this.AD=0,this.A2=0}return e.prototype.addVariable=function(e){var t=this.scale/e.scale,n=e.offset/e.scale,r=e.weight;this.AB+=r*t*n,this.AD+=r*t*e.desiredPosition,this.A2+=r*t*t},e.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},e}();n.PositionStats=r,n.Constraint=function(){function e(e,t,n,r){r===void 0&&(r=!1),this.left=e,this.right=t,this.gap=n,this.equality=r,this.active=!1,this.unsatisfiable=!1,this.left=e,this.right=t,this.gap=n,this.equality=r}return e.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},e}(),n.Variable=function(){function e(e,t,n){t===void 0&&(t=1),n===void 0&&(n=1),this.desiredPosition=e,this.weight=t,this.scale=n,this.offset=0}return e.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},e.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},e.prototype.visitNeighbours=function(e,t){var n=function(n,r){return n.active&&e!==r&&t(n,r)};this.cOut.forEach(function(e){return n(e,e.right)}),this.cIn.forEach(function(e){return n(e,e.left)})},e}();var i=function(){function e(e){this.vars=[],e.offset=0,this.ps=new r(e.scale),this.addVariable(e)}return e.prototype.addVariable=function(e){e.block=this,this.vars.push(e),this.ps.addVariable(e),this.posn=this.ps.getPosn()},e.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var e=0,t=this.vars.length;e<t;++e)this.ps.addVariable(this.vars[e]);this.posn=this.ps.getPosn()},e.prototype.compute_lm=function(e,t,n){var r=this,i=e.dfdv();return e.visitNeighbours(t,function(t,a){var o=r.compute_lm(a,e,n);a===t.right?(i+=o*t.left.scale,t.lm=o):(i+=o*t.right.scale,t.lm=-o),n(t)}),i/e.scale},e.prototype.populateSplitBlock=function(e,t){var n=this;e.visitNeighbours(t,function(t,r){r.offset=e.offset+(r===t.right?t.gap:-t.gap),n.addVariable(r),n.populateSplitBlock(r,e)})},e.prototype.traverse=function(e,t,n,r){var i=this;n===void 0&&(n=this.vars[0]),r===void 0&&(r=null),n.visitNeighbours(r,function(r,a){t.push(e(r)),i.traverse(e,t,a,n)})},e.prototype.findMinLM=function(){var e=null;return this.compute_lm(this.vars[0],null,function(t){!t.equality&&(e===null||t.lm<e.lm)&&(e=t)}),e},e.prototype.findMinLMBetween=function(e,t){this.compute_lm(e,null,function(){});var n=null;return this.findPath(e,null,t,function(e,t){!e.equality&&e.right===t&&(n===null||e.lm<n.lm)&&(n=e)}),n},e.prototype.findPath=function(e,t,n,r){var i=this,a=!1;return e.visitNeighbours(t,function(t,o){a||o!==n&&!i.findPath(o,e,n,r)||(a=!0,r(t,o))}),a},e.prototype.isActiveDirectedPathBetween=function(e,t){if(e===t)return!0;for(var n=e.cOut.length;n--;){var r=e.cOut[n];if(r.active&&this.isActiveDirectedPathBetween(r.right,t))return!0}return!1},e.split=function(t){return t.active=!1,[e.createSplitBlock(t.left),e.createSplitBlock(t.right)]},e.createSplitBlock=function(t){var n=new e(t);return n.populateSplitBlock(t,null),n},e.prototype.splitBetween=function(t,n){var r=this.findMinLMBetween(t,n);if(r!==null){var i=e.split(r);return{constraint:r,lb:i[0],rb:i[1]}}return null},e.prototype.mergeAcross=function(e,t,n){t.active=!0;for(var r=0,i=e.vars.length;r<i;++r){var a=e.vars[r];a.offset+=n,this.addVariable(a)}this.posn=this.ps.getPosn()},e.prototype.cost=function(){for(var e=0,t=this.vars.length;t--;){var n=this.vars[t],r=n.position()-n.desiredPosition;e+=r*r*n.weight}return e},e}();n.Block=i;var a=function(){function e(e){this.vs=e;var t=e.length;for(this.list=Array(t);t--;){var n=new i(e[t]);this.list[t]=n,n.blockInd=t}}return e.prototype.cost=function(){for(var e=0,t=this.list.length;t--;)e+=this.list[t].cost();return e},e.prototype.insert=function(e){e.blockInd=this.list.length,this.list.push(e)},e.prototype.remove=function(e){var t=this.list.length-1,n=this.list[t];this.list.length=t,e!==n&&(this.list[e.blockInd]=n,n.blockInd=e.blockInd)},e.prototype.merge=function(e){var t=e.left.block,n=e.right.block,r=e.right.offset-e.left.offset-e.gap;t.vars.length<n.vars.length?(n.mergeAcross(t,e,r),this.remove(t)):(t.mergeAcross(n,e,-r),this.remove(n))},e.prototype.forEach=function(e){this.list.forEach(e)},e.prototype.updateBlockPositions=function(){this.list.forEach(function(e){return e.updateWeightedPosition()})},e.prototype.split=function(e){var t=this;this.updateBlockPositions(),this.list.forEach(function(n){var r=n.findMinLM();r!==null&&r.lm<o.LAGRANGIAN_TOLERANCE&&(n=r.left.block,i.split(r).forEach(function(e){return t.insert(e)}),t.remove(n),e.push(r))})},e}();n.Blocks=a;var o=function(){function e(e,t){this.vs=e,this.cs=t,this.vs=e,e.forEach(function(e){e.cIn=[],e.cOut=[]}),this.cs=t,t.forEach(function(e){e.left.cOut.push(e),e.right.cIn.push(e)}),this.inactive=t.map(function(e){return e.active=!1,e}),this.bs=null}return e.prototype.cost=function(){return this.bs.cost()},e.prototype.setStartingPositions=function(e){this.inactive=this.cs.map(function(e){return e.active=!1,e}),this.bs=new a(this.vs),this.bs.forEach(function(t,n){return t.posn=e[n]})},e.prototype.setDesiredPositions=function(e){this.vs.forEach(function(t,n){return t.desiredPosition=e[n]})},e.prototype.mostViolated=function(){for(var t=Number.MAX_VALUE,n=null,r=this.inactive,i=r.length,a=i,o=0;o<i;++o){var s=r[o];if(!s.unsatisfiable){var c=s.slack();if((s.equality||c<t)&&(t=c,n=s,a=o,s.equality))break}}return a!==i&&(t<e.ZERO_UPPERBOUND&&!n.active||n.equality)&&(r[a]=r[i-1],r.length=i-1),n},e.prototype.satisfy=function(){this.bs??=new a(this.vs),this.bs.split(this.inactive);for(var t=null;(t=this.mostViolated())&&(t.equality||t.slack()<e.ZERO_UPPERBOUND&&!t.active);){var n=t.left.block;if(n!==t.right.block)this.bs.merge(t);else{if(n.isActiveDirectedPathBetween(t.right,t.left)){t.unsatisfiable=!0;continue}var r=n.splitBetween(t.left,t.right);if(r===null){t.unsatisfiable=!0;continue}this.bs.insert(r.lb),this.bs.insert(r.rb),this.bs.remove(n),this.inactive.push(r.constraint),t.slack()>=0?this.inactive.push(t):this.bs.merge(t)}}},e.prototype.solve=function(){this.satisfy();for(var e=Number.MAX_VALUE,t=this.bs.cost();Math.abs(e-t)>1e-4;)this.satisfy(),e=t,t=this.bs.cost();return t},e.LAGRANGIAN_TOLERANCE=-1e-4,e.ZERO_UPPERBOUND=-1e-10,e}();n.Solver=o,e.exports=n},function(e,t,n){"use strict";function r(e){this.options=l.extend({layerGap:60,nodeHeight:10,direction:`down`},e)}function i(e){return`L `+e.join(` `)}function a(e){return`M `+e.join(` `)}function o(e,t,n){return`C `+e.join(` `)+` `+t.join(` `)+` `+n.join(` `)}function s(e,t){var n=(e[1]+t[1])/2;return o([e[0],n],[t[0],n],t)}function c(e,t){var n=(e[0]+t[0])/2;return o([n,e[1]],[n,t[1]],t)}var l=n(4);r.lineTo=i,r.moveTo=a,r.curveTo=o,r.vCurveBetween=s,r.hCurveBetween=c,r.prototype.getWaypoints=function(e){var t=this.options,n=t.direction,r=e.getPathFromRoot(),i=t.nodeHeight+t.layerGap;return n===`left`?[[[0,r[0].idealPos]]].concat(r.map(function(e,n){var r=i*(n+1)*-1;return[[r+t.nodeHeight,e.currentPos],[r,e.currentPos]]})):n===`right`?[[[0,r[0].idealPos]]].concat(r.map(function(e,n){var r=i*(n+1);return[[r-t.nodeHeight,e.currentPos],[r,e.currentPos]]})):n===`up`?[[[r[0].idealPos,0]]].concat(r.map(function(e,n){var r=i*(n+1)*-1;return[[e.currentPos,r+t.nodeHeight],[e.currentPos,r]]})):[[[r[0].idealPos,0]]].concat(r.map(function(e,n){var r=i*(n+1);return[[e.currentPos,r-t.nodeHeight],[e.currentPos,r]]}))},r.prototype.layout=function(e){var t=this.options,n=t.layerGap+t.nodeHeight;switch(t.direction){case`left`:e.forEach(function(e){e.x=-(e.getLayerIndex()*n+t.layerGap)-t.nodeHeight,e.y=e.currentPos,e.dx=t.nodeHeight,e.dy=e.width});break;case`right`:e.forEach(function(e){e.x=e.getLayerIndex()*n+t.layerGap,e.y=e.currentPos,e.dx=t.nodeHeight,e.dy=e.width});break;case`up`:e.forEach(function(e){var r=e.getLayerIndex()*n+t.layerGap;e.x=e.currentPos,e.y=-r-t.nodeHeight,e.dx=e.width,e.dy=t.nodeHeight});break;default:case`down`:e.forEach(function(e){var r=e.getLayerIndex()*n+t.layerGap;e.x=e.currentPos,e.y=r,e.dx=e.width,e.dy=t.nodeHeight})}return e},r.prototype.generatePath=function(e){var t=this.options.direction,n=this.getWaypoints(e,t),r=[a(n[0][0])];return t===`left`||t===`right`?n.reduce(function(e,t,a){return r.push(c(e[e.length-1],t[0])),a<n.length-1&&r.push(i(t[1])),t}):n.reduce(function(e,t,a){return r.push(s(e[e.length-1],t[0])),a<n.length-1&&r.push(i(t[1])),t}),r.join(` `)},e.exports=r}])})})),ju=o(((e,t)=>{var n=NaN,r=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt,c=typeof global==`object`&&global&&global.Object===Object&&global,l=typeof self==`object`&&self&&self.Object===Object&&self,u=c||l||Function(`return this`)(),d=Object.prototype.toString,f=Math.max,p=Math.min,m=function(){return u.Date.now()};function h(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,h=!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);t=y(t)||0,g(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?f(y(n.maxWait)||0,t):a,h=`trailing`in n?!!n.trailing:h);function _(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function v(e){return l=e,s=setTimeout(S,t),u?_(e):o}function b(e){var n=e-c,r=e-l,i=t-n;return d?p(i,a-r):i}function x(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function S(){var e=m();if(x(e))return C(e);s=setTimeout(S,b(e))}function C(e){return s=void 0,h&&r?_(e):(r=i=void 0,o)}function w(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function T(){return s===void 0?o:C(m())}function E(){var e=m(),n=x(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return v(c);if(d)return s=setTimeout(S,t),_(c)}return s===void 0&&(s=setTimeout(S,t)),o}return E.cancel=w,E.flush=T,E}function g(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function _(e){return!!e&&typeof e==`object`}function v(e){return typeof e==`symbol`||_(e)&&d.call(e)==`[object Symbol]`}function y(e){if(typeof e==`number`)return e;if(v(e))return n;if(g(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=g(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(r,``);var c=a.test(e);return c||o.test(e)?s(e.slice(2),c?2:8):i.test(e)?n:+e}t.exports=h})),Mu=c(Au()),Nu=c(ju());function Pu(e){return{standard:e.toString(),light:e.brighter(1.15).toString(),bright:Ae(e.h,e.s*1.3,e.l*.9).toString()}}function Fu(e,t){let n=[],r=360/t+1,i=e.h;for(let a=0;a<t;++a)e.h=(i+a*r)%360,n.push(Pu(e));return n}function Iu(e,t){let n=Fu(e,t),r=Pu(Ae(`#888888`));return function(e){return e.old?r:n[e.cat%t]}}var Lu=function(e,t){let n=t.event,r=1;n.forEach(e=>e.id=r++),e.container.innerHTML=``;let i=new Date(t.minDate),a=new Date(t.maxDate),o=Iu(e.getRootColor(),12),s=e=>o(e).standard,c={alternatingTickLength:10,initialHeight:50,initialWidth:400,direction:`horizontal`,domain:[i,a],dotRadius:5,linkColor:s,dotColor:s,labelBgColor:s,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:e=>new Date(e.date),textFn:e=>e.text,formatAxis:t=>{let n=a.getFullYear()-i.getFullYear();return t.tickFormat(e.i18n().timeScaleFormatter).tickSizeInner(8).tickSizeOuter(10).ticks(n<=4?2*n:void 0)}},l={innerWidth:0,innerHeight:0,width:c.initialWidth,height:c.initialHeight},u=new Mu.default.Force,d=os(),f=L(e.container);f.style(`line-height`,0);let p=f.append(`div`).style(`display`,`inline-block`).style(`position`,`relative`).style(`line-height`,0),m=p.append(`svg`).style(`position`,`absolute`).style(`top`,0).style(`left`,0),h=m.append(`g`);function g(e,t){return e.append(`g`).attr(`name`,t)}let _=g(h,`dummy`),v=g(h,`main`),y=g(v,`main/axis`),b=g(v,`main/link`),x=g(v,`main/label`),S=g(v,`main/dot`);y.classed(`axis`,!0);function C(){let{width:e,height:t}=l,n=f.node(),r=n?.clientWidth??0,i=n?.clientHeight??0,a=!1;e!==r&&(l.width=r,a=!0),t>i&&(l.height=i,a=!0),a&&(T(),T.flush())}function w(){let e=u.nodes(),t;switch(c.direction){case`horizontal`:t=Kr(e,e=>Math.abs(e.y))??0,l.height=t+c.margin.top+c.margin.bottom;break;case`vertical`:t=Kr(e,e=>Math.abs(e.x+e.dx))??0,l.width=t+c.margin.left+c.margin.right;break}}let T=(0,Nu.default)(function(){let{width:e,height:t}=l,{margin:n}=c,{top:r,right:i,bottom:a,left:o}=n;l.innerWidth=e-o-i,l.innerHeight=t-r-a,p.style(`width`,`${e}px`).style(`height`,`${t}px`),m.attr(`width`,e).attr(`height`,t),h.attr(`transform`,`translate(${o}, ${r})`),k()},1);function E(e,t){let n=typeof t==`function`?t:()=>t;e.attr(`dy`,c.textYOffset).attr(`x`,c.labelPadding.left).attr(`y`,c.labelPadding.top).style(`fill`,c.textStyle.fill).text(e=>c.textFn(n(e)))}function D(){let e;switch(c.direction){case`vertical`:e=bs(d),v.attr(`transform`,`translate(0,0)`);break;case`horizontal`:e=ys(d),v.attr(`transform`,`translate(0,`+l.innerHeight+`)`);break}c.formatAxis?.(e),y.call(e).attr(`font-family`,null).attr(`font-size`,null)}function O(e){let t=c.direction===`vertical`?`cy`:`cx`,n=e=>d(c.timeFn(e)),r=S.selectAll(`circle.dot`).data(e);r.enter().append(`circle`).classed(`dot`,!0).style(`fill`,c.dotColor).attr(`r`,c.dotRadius).attr(t,n),r.transition().style(`fill`,c.dotColor).attr(`r`,c.dotRadius).attr(t,n),r.exit().remove()}function ee(e){let t;t=c.direction===`vertical`?Kr(e,e=>e.w):Kr(e,e=>e.h);let n=new Mu.default.Renderer({nodeHeight:t??0,layerGap:c.layerGap,direction:c.direction===`horizontal`?`up`:`right`});n.layout(e);function r(e){if(isNaN(e.x)||isNaN(e.y))return null;switch(c.direction){case`vertical`:return`translate(`+e.x+`,`+(e.y-e.dy/2)+`)`;case`horizontal`:return`translate(`+(e.x-e.dx/2)+`,`+e.y+`)`}}let i=x.selectAll(`g.label-g`).data(e),a=i.enter().append(`g`).classed(`label-g`,!0).attr(`transform`,r);a.append(`rect`).classed(`label-bg`,!0).attr(`rx`,2).attr(`ry`,2).attr(`width`,e=>e.w).attr(`height`,e=>e.h).style(`fill`,e=>c.labelBgColor(e.data)),a.append(`text`).classed(`label-text`,!0).call(E,e=>e.data);let o=i.transition().attr(`transform`,r);o.select(`rect`).attr(`width`,e=>e.w).attr(`height`,e=>e.h).style(`fill`,e=>c.labelBgColor(e.data)),o.select(`text.label-text`).call(E,e=>e.data),i.exit().remove();let s=b.selectAll(`path.link`).data(e);s.enter().append(`path`).classed(`link`,!0).attr(`d`,e=>n.generatePath(e)).style(`stroke`,e=>c.linkColor(e.data)).style(`fill`,`none`),s.transition().attr(`d`,e=>n.generatePath(e)).style(`stroke`,e=>c.linkColor(e.data)),s.exit().remove()}let te=!0;function k(){if(!n||l.innerWidth<=0&&l.innerHeight<=0)return;let e=n||[];u=new Mu.default.Force,d.domain(c.domain),d.range([0,c.direction===`vertical`?l.innerHeight:l.innerWidth]);let t=_.append(`text`).classed(`label-text`,!0),r=e.map(e=>{let n=t.call(E,e).node().getBBox(),r=n.width+c.labelPadding.left+c.labelPadding.right,i=n.height+c.labelPadding.top+c.labelPadding.bottom,a=new Mu.default.Node(d(c.timeFn(e)),c.direction===`vertical`?i:r,e);return a.w=r,a.h=i,a});t.remove();let{left:i,right:a}=c.margin;u.options({maxPos:l.width-(i+a)}).nodes(r).compute(),D(),O(e),ee(u.nodes()),te&&(te=!1,A()),j()}function A(){m.insert(`title`,`:first-child`).text(t.title),x.selectAll(`g.label-g`).each(function(){let e=L(this),t=e.selectAll(`g.label-g > *`).remove(),n=e.append(`svg:a`).attr(`class`,e=>e.data.class).attr(`xlink:href`,e=>e.data.href).attr(`xlink:title`,e=>e.data.desc??null);n.append(`title`).text(e=>e.data.desc??null),t.each(function(){n.append(()=>this)})});let n=e.handlerValue(`publicationClick`),r=!!n;x.selectAll(`.label-g`).attr(`data-clickable`,()=>r||null).on(`click`,function(e,t){n&&(n(t.data.query),e.preventDefault())}).on(`mouseenter touchstart`,function(e,t){if(!e.target)return;let n=o(t.data);L(e.target).select(`rect`).style(`fill`,n.bright);let r=t.data.id;b.selectAll(`path.link`).filter(e=>e.data.id===r).attr(`data-highlighted`,!0);let i=t.data.query&&t.data.query.id;i&&Nn(`[data-publication-id='`+i+`']`).style(`background-color`,n.light)}).on(`mouseleave touchend`,function(e,t){if(!e.target)return;let n=o(t.data);L(e.target).select(`rect`).style(`fill`,n.standard),b.selectAll(`path.link`).attr(`data-highlighted`,!1);let r=t.data.query&&t.data.query.id;r&&Nn(`[data-publication-id='`+r+`']`).style(`background-color`,null)})}function j(){let e=y.selectAll(`g.tick`);l.width/e.size()<=32&&e.each(function(e,t){if(t%2!=0)return;let n=L(this),r=n.select(`text`),i=n.select(`line`);r.attr(`y`,Number(r.attr(`y`))+c.alternatingTickLength),i.attr(`y2`,Number(i.attr(`y2`))+c.alternatingTickLength)})}return{draw:function(){C(),w(),T(),T.flush()}}},Ru=function(e,t){if(t){let n=e.handlerValue(`load`);n&&n(t)}return D},zu=function(e,t){let n=e=>e?new Date(e):null,r=e=>n(e)?.toLocaleDateString(),i=L(e.container).append(`table`).attr(`class`,`ui bizq very compact celled small unstackable striped table`),a=i.append(`tbody`);$.debug(`data`,t);for(let e of[`current`,`former`]){e==`former`&&a.append(`tr`).append(`td`).attr(`class`,`first`).attr(`colspan`,2).text(`Vormals`);let n=t.current;for(let e of n){$.debug(`group`,e);let t=e.name,n=e.entries;a.append(`tr`).append(`td`).attr(`class`,`first`).attr(`colspan`,2).text(t);for(let e of n){$.debug(`entry`,e);let t=a.append(`tr`),n=e.person,i=t.append(`td`).append(`span`).text(n.name).attr(`class`,`person`);for(let e in n.query)i.attr(e,n.query[e]);let o=t.append(`td`);for(let t of e.chunks){let e;!t.start&&t.end?e=`bis `+r(t.end):t.start&&!t.end?e=`seit `+r(t.start):t.start&&t.end&&(e=r(t.start)+` – `+r(t.end)),o.append(`span`).text(e)}}}}return e.markup(i),D},Bu;function Vu(e){if(e){Bu=document.querySelectorAll(`button:not([disabled])`);for(let e=0;e<Bu.length;++e)Bu[e].disabled=!0}else if(Bu)for(let e=0;e<Bu.length;++e)Bu[e].disabled=!1;document.body.classList.toggle(`waiting`,e)}var Hu=function(e,t){return Rn(`click`,e.container,`*`,function(){Vu(!0);let t=new XMLHttpRequest;t.open(`POST`,`/_api/shop/v1/products`),t.setRequestHeader(`Content-Type`,`application/json`);function n(e){$.log(`error`,`cannot list pubs`,e)}return t.onerror=function(e){Vu(!1),n(e)},t.onload=function(){Vu(!1),$.debug(t.status),t.status>=400&&n(t.responseText||t.statusText),$.debug(`ok`,t.responseText);let e=JSON.parse(t.responseText);$.debug(`data`,e)},t.send(JSON.stringify(e.options)),!1}),D},Uu=function(e,t){let n=L(e.container).selectAll(`.publication`).data(t.publications).enter().append(`div`).attr(`class`,`pub`).attr(`data-publication-id`,e=>e.id),r=n.append(`h2`);return r.append(`span`).attr(`class`,`icon`).text(e=>e.internal.icon),r.append(`span`).attr(`class`,`date`).text(e=>e.internal.formattedDate),r.append(`a`).attr(`href`,`#`).html(e=>e.internal.htmlTitle).on(`click`,function(e){e.target?.parentElement?.parentElement?.classList?.toggle(`expanded`),e.preventDefault()}),n.append(`div`).attr(`class`,`text`).html(e=>e.html),e.markup(n),D},Wu=function(e,t){let n=L(e.container),r=n.append(`ul`).attr(`class`,`search-results`),i=t.cursor;function a(e){let t={},n=e.subject,r=n.name[0].name,i=n.address&&n.address[0],a=i&&i.city,o={query:t,address:i,name:r,details:e.formattedDetails},s=n.tag;switch(s&&s.terminated&&(o.terminated=!0),e.targetType){case`Company`:o.type=`c`,t.address=a,t.name=r;let i=n.register&&n.register[0];i&&i.id&&(i.city&&(t.registerCity=i.city),t.registerId=i.id);break;case`Person`:o.type=`p`;let s=r.split(`,`);t.lastName=s[0],t.firstName=Bn(s[1]),t.birthDate=n.birthDate,t.address=a,(!t.address||!t.birthDate)&&(t.id=e.targetId);break}return o}let o=n.append(`div`).attr(`class`,`more`),s=o.append(`p`),c=o.append(`a`).attr(`href`,`#`).on(`click`,function(t){let n=E(e.options,{offset:c.attr(`data-offset`),position:c.attr(`data-position`)});qn.requestData(n,function(e){f(e)},e.fail.bind(e)),t.preventDefault()}),l=i.items.length==0,u=e.handlerValue(`noResults`),d=e.handlerValue(`oneResult`);l?u?u():n.append(`p`).text(`Keine Resultate zu dieser Suche.`):i.items.length==1&&d?d(a(i.items[0])):f(t);function f(t){let n=t.cursor;for(let i of n.items){let n=a(i),o=n.query,s=o.address,c=o.name;c||=o.lastName+`, `+o.firstName,s&&(c+=`, `+s);let l=r.append(`li`).attr(`class`,`search-result`);l.append(`span`).attr(`class`,`icon`).text(i.targetType==`Company`?``:``);let u=l.append(`div`).attr(`class`,`body`),d=u.append(`a`).attr(`href`,document.location.pathname+`?`+Un(o)).text(c).on(`click`,function(n){e.invokeClickHandler(t)&&n.preventDefault()});n.terminated&&d.append(`sup`).attr(`title`,`erloschen`).text(`✝︎`),u.append(`div`).attr(`class`,`detail`).text(n.detail);for(let e of i.formattedDetails)u.append(`div`).attr(`class`,`detail`).text(e)}o.attr(`data-total`,n.total);let i=Number(n.offset+n.items.length).toLocaleString();n.total?i+=` Resultate von `+Number(n.total).toLocaleString()+` insgesamt.`:i+=` Resultate.`,s.text(i),c.text(n.lastPage?``:`Weitere Resultate anzeigen`).attr(`data-offset`,n.offset+n.limit).attr(`data-position`,t.properties.nextPosition)}return D};function Gu(e){return!isNaN(parseFloat(e))&&isFinite(e)}var Ku=function(e,t){if(!t.sheet)throw Error(`no data`);for(let n of t.sheet){if(!n){let t=e.stringValue(`subject`)||`assets`;throw Error(`no data for subject '`+t+`'`)}let t=n.column,r=n.row,i=e.isReverseChronology(),a=e.numberValue(`maxYears`)||5;i&&t.reverse();let o=function(e){return i?e<a:e>=t.length-a};if(t.length<=0)break;let s=t[0].currency,l=1,u=s.unit,d=e.i18n().numberFormatter;if(s){let t=0,n=0,i=0;for(let e of r)for(let r of e.cell)if(Gu(r.value)){let e=Math.abs(r.value);e>1e5&&(++i,e>1e7&&(++n,e>1e10&&++t))}let a=t>=5,o=n>=5;if(i<5&&(d=e.i18n().decimalFormatter),o){u==`EUR`&&(u=`€`),u==`USD`&&(u=`$`),u==`GBP`&&(u=`£`);let e=eo(`K`,`Tsd. `,`K`);l=1e3,a&&(l=1e6,e=eo(`M`,`Mio. `,`M`)),e.length==1&&u.length==1&&(u=` `+u),u=e+u}}let f=document.createElement(`table`),p=L(f).attr(`class`,`ui bizq very compact celled small unstackable selectable first stuck table`),m=p.append(`thead`).append(`tr`),h=m.append(`th`).attr(`class`,`first`);h.text(u),h.append(`a`).attr(`href`,n.info.csvUrl).attr(`download`,`download`).attr(`title`,`CSV/Excel Download`).classed(`screen-only`,!0).append(`i`).attr(`class`,`download icon`),t.forEach((n,r)=>{o(r)&&m.append(`th`).text(n.date?e.i18n().dateFormatter(n.date):``).attr(`data-col`,t.length-r).attr(`data-source-title`,n.info.publication.title).attr(`data-source-date`,n.info.publication.date)});let g=(e,t)=>e&&e.semantics&&e.semantics.indexOf(t)>=0,_=e=>g(e,`SUMMARY`),v=e=>g(e,`CUSTOM`),y=p.append(`tbody`);r.forEach(n=>{if(!g(n,`HELPER`)){let r=0,a=e.isPrint()?2:1,s=n.level&&n.level.value,u=s<a?`expanded`:`closed`;s>a&&(u+=` hidden`);let f=L(document.createElement(`tr`)).attr(`class`,u+` active-on-hover`).attr(`data-row`,n.info&&n.info.id).attr(`data-level`,s).attr(`data-parent-row`,n.info?n.info.parentId:null).attr(`data-child-count`,()=>n.info&&typeof n.info.childCount==`number`&&n.info.childCount>0?n.info.childCount:null).attr(`data-summary`,_(n)).attr(`data-custom`,v(n)).on(`click`,function(e){c(e&&e.target),e.preventDefault()});f.append(`td`).attr(`class`,`first`).text(n.text??n.name),i&&n.cell.reverse(),n.cell.forEach((e,n)=>{if(o(n)){let i=e.value===void 0?``:d(e.value/l);i&&r++,f.append(`td`).attr(`data-col`,t.length-n).text(i)}}),r>0?y.node().appendChild(f.node()):n.info?.parentId&&y.select(`tr[data-row="${n.info.parentId}"][data-child-count]`).attr(`data-child-count`,function(){let e=parseInt(L(this).attr(`data-child-count`))-1;return e>0?e:null})}});let b=p.append(`tfoot`).append(`tr`);b.append(`th`).attr(`class`,`first`).text(e.trilingual(`Source`,`Quelle`,`Source`));let x=e.handlerValue(`sourceClick`);t.forEach((e,n)=>{if(o(n)){let r=b.append(`th`).attr(`data-col`,t.length-n);if(r.html(e.info.noteHtml),x){let t=e.info.publication,n=typeof e.info.source==`string`?[e.info.source]:e.info.source;r.selectAll(`a`).attr(`href`,`javascript:void(0);`).on(`click`,function(e){e.preventDefault(),x({publication:t,source:n})})}}}),f.setAttribute(`data-item`,n.info.item),e.showItem(n.info.title,f)}let n=`expanded`,r=`closed`;function i(e){let t=L(e);return e.matches(`tr`)?t:In(t,`tr`)}function a(e){let t=e.size()==0?`?`:e.attr(`data-row`);return In(e,`table`).selectAll(`[data-parent-row='`+t+`']`)}function o(e){let t=i(e);t.classed(r,!1).classed(n,!0),a(t).classed(`hidden`,!1)}function s(e){let t=i(e);t.classed(r,!0).classed(n,!1),a(t).classed(`hidden`,!0).each(function(){s(this)})}function c(e){i(e).classed(n)?s(e):o(e)}return D},qu=function(e,t){let n=e.container,r=e.i18n().timeScaleFormatter,i={chartLeft:12,right:15,top:0,bottom:0},a=.5,o=18*.71,s=t.lines;if(!s||!s.length)throw Error(`vita empty`);let c=s.length,l=i.top+23*c+5,u=new Date(t.startDate).getTime(),d=new Date(t.endDate).getTime(),f=e=>e?new Date(e):null,p=L(e.container).append(`svg`);p.append(`title`).text(eo(`History`,`Historie`,`Historique`));let m=e=>e?e.toLocaleDateString():``;return{draw:function(){p.select(`g`).remove();let t=p.append(`g`),c=n.getBoundingClientRect().width;p.attr(`width`,c);let h=function(){let e=[];for(let t of s)for(let n of t.bars)e.push(n.role.abbr),e.push(n.role.abbr+` `+t.text);let n={};return t.selectAll(`.textWidthDummy`).data(e).enter().append(`text`).text(function(e){return e}).each(function(e){n[e]=this.getComputedTextLength(),this.remove()}),n}(),g=function(e,t,n){if(t){let r=e+` `+t,i=h[r],a=n-8;if(i!==void 0&&a>i)return{text:r,width:i,containsSuffix:!0}}let r=h[e];return r!==void 0&&n>r?{text:e,width:r}:{text:`…`,width:0}},_=function(){if(c>=600)return!0;let e=30*86400*1e3;for(let t of s)for(let n of t.bars){let t=f(n.assumedStart),r=f(n.end)||new Date;if(!t||Math.abs(t.getTime()-u)<e||Math.abs(d-r.getTime())<e)return!0}return!1},v=os().domain([u,d]).range([i.chartLeft,c-i.right]);_()&&(v=v.nice());let y=ys(v).tickFormat(r).tickSizeInner(8).tickSizeOuter(10).ticks(Math.min(c/100,10));t.append(`g`).attr(`class`,`axis`).attr(`transform`,`translate(0,`+l+`)`).call(y).attr(`font-size`,null).attr(`font-family`,null),t.append(`g`).attr(`class`,`axis grid`).attr(`transform`,`translate(0,`+l+`)`).call(y.tickSizeInner(-l).tickSizeOuter(0)).call(e=>e.selectAll(`.tick text`).remove());let b=i.chartLeft,x=c-i.right,S=0;for(let n of s){let r=i.top+23*S+5,s=r+18,c=r+18*.75-1,l=(r+s)/2;t.append(`line`).attr(`x1`,b).attr(`x2`,x).attr(`y1`,l).attr(`y2`,l).attr(`class`,`grid`);let u=n.bars.length,d=0,p=!1,m=0,h=0;for(let s of n.bars){let l=f(s.assumedStart),_=f(s.end)||new Date,y=l?v(l):i.chartLeft+o,S=!s.start;S?y+=o:y+=a;let C=v(_);s.openEnded&&s.end?C-=o:C-=a,C=Math.max(y,C);let w=C-y,T=y+w/2;w<10&&(S&&!s.openEnded?T-=3:s.openEnded&&!S&&(T+=3));let E=g(s.role.abbr,p?void 0:n.text,w);if(E.containsSuffix&&(p=!0),d==0){let e=S?y-o:y;m=(E.width?Math.min(T-E.width/2,e):e)-b-2}if(d==u-1){let e=s.openEnded?C+o:C;h=x-(E.width?Math.max(T+E.width/2,e):e)-2}let D=t.append(`svg:a`).attr(`xlink:href`,s.url||``).attr(`xlink:title`,s.title).attr(`data-old`,s.end?!0:null).attr(`data-clickable`,()=>e.getClickHandler(`p`)?!0:null).on(`click`,function(t){e.invokeClickHandler(s)&&t.preventDefault()});if(D.append(`title`).text(s.title),S){let e=y-o,t=y,n=r,i=r+18,a=[t+`,`+n,t+`,`+i,e+`,`+(n+i)/2];D.append(`polygon`).attr(`points`,a.join(` `)).attr(`class`,`in c`+s.role.cat)}if(s.openEnded){let e=C,t=Math.min(o+e,x),n=r,i=r+18,a=[e+`,`+n,e+`,`+i,t+`,`+(n+i)/2];D.append(`polygon`).attr(`points`,a.join(` `)).attr(`class`,`out c`+s.role.cat)}D.append(`rect`).attr(`x`,y).attr(`y`,r).attr(`width`,w).attr(`height`,18).attr(`class`,`c`+s.role.cat),D.append(`text`).attr(`x`,T).attr(`y`,c).attr(`class`,`label-text c`+s.role.cat).text(E.text),++d}p||(m>h?m>200&&t.append(`text`).attr(`x`,b+m).attr(`y`,c).attr(`class`,`left extra`).text(n.text):h>200&&t.append(`text`).attr(`x`,x-h).attr(`y`,c).attr(`class`,`right extra`).text(n.text)),++S}let C=new Date,w=`Heute, `+m(C),T=v(C),E=t.append(`svg:a`).attr(`xlink:title`,w);E.append(`title`).text(w),E.append(`line`).attr(`class`,`today`).attr(`x1`,T).attr(`y1`,0).attr(`x2`,T).attr(`y2`,l+15),p.attr(`height`,l+30)}}},Ju;(function(e){e.Widget=oo,e.version=T;let t=e.options={dataDomain:``,detectDataDomain:!0,__debug:!0};function n(e){t.__debug=!1,e===void 0?(t.dataDomain=`https://www.northdata.de`,t.detectDataDomain=!1):(t.dataDomain=e.dataDomain??t.dataDomain,t.detectDataDomain=e.detectDataDomain??t.detectDataDomain)}e.initialize=n;function r(...e){i(`info`,...e)}e.debug=r;function i(e,...n){t.__debug&&console[e](...n)}e.log=i,ee({barChart:Ss,drillDown:zc,graph:Vc,dendrogram:Rc,history:Lu,vita:qu,pubTable:Uu,pubShop:Hu,personTable:zu,sheet:Ku,financials:Bc,contact:Cs,overview:Ru,searchResults:Wu})})(Ju||={});var $=Ju;return{Widget:Ju.Widget,version:Ju.version,initialize:Ju.initialize}});
|
|
4
|
-
//# sourceMappingURL=viz.min.js.map
|
|
3
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||n.return==null||n.return()}finally{if(s)throw a}}}}function s(){return s=typeof Reflect<`u`&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=p(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},s.apply(null,arguments)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function l(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}function u(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(u=function(){return!!e})()}function d(e,n){if(n&&(typeof n==`object`||typeof n==`function`))return n;if(n!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return t(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function p(e,t){for(;!{}.hasOwnProperty.call(e,t)&&(e=c(e))!==null;);return e}function m(e,t,n,r){var i=s(c(1&r?e.prototype:e),t,n);return 2&r&&typeof i==`function`?function(e){return i.apply(n,e)}:i}function h(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function g(e){var t=h(e,`string`);return typeof t==`symbol`?t:t+``}function _(t,n){if(t){if(typeof t==`string`)return e(t,n);var r={}.toString.call(t).slice(8,-1);return r===`Object`&&t.constructor&&(r=t.constructor.name),r===`Map`||r===`Set`?Array.from(t):r===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}(function(e){return{NativeAbortSignal:e.AbortSignal,NativeAbortController:e.AbortController}})(typeof self<`u`?self:global);function v(e){var t;try{t=new Event(`abort`)}catch{typeof document<`u`?document.createEvent?(t=document.createEvent(`Event`),t.initEvent(`abort`,!1,!1)):(t=document.createEventObject(),t.type=`abort`):t={type:`abort`,bubbles:!1,cancelable:!1}}return t.reason=e,t}function y(e){if(e===void 0)if(typeof document>`u`)e=Error(`This operation was aborted`),e.name=`AbortError`;else try{e=new DOMException(`signal is aborted without reason`),Object.defineProperty(e,"name",{value:`AbortError`})}catch{e=Error(`This operation was aborted`),e.name=`AbortError`}return e}var b=function(){function e(){r(this,e),Object.defineProperty(this,"listeners",{value:{},writable:!0,configurable:!0})}return a(e,[{key:`addEventListener`,value:function(e,t,n){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push({callback:t,options:n})}},{key:`removeEventListener`,value:function(e,t){if(e in this.listeners){for(var n=this.listeners[e],r=0,i=n.length;r<i;r++)if(n[r].callback===t){n.splice(r,1);return}}}},{key:`dispatchEvent`,value:function(e){var t=this;if(e.type in this.listeners){for(var n=this.listeners[e.type].slice(),r=function(){var r=n[i];try{r.callback.call(t,e)}catch(e){Promise.resolve().then(function(){throw e})}r.options&&r.options.once&&t.removeEventListener(e.type,r.callback)},i=0,a=n.length;i<a;i++)r();return!e.defaultPrevented}}}])}(),x=function(e){function t(){var e;return r(this,t),e=n(this,t),e.listeners||b.call(e),Object.defineProperty(e,"aborted",{value:!1,writable:!0,configurable:!0}),Object.defineProperty(e,"onabort",{value:null,writable:!0,configurable:!0}),Object.defineProperty(e,"reason",{value:void 0,writable:!0,configurable:!0}),e}return l(t,e),a(t,[{key:`toString`,value:function(){return`[object AbortSignal]`}},{key:`dispatchEvent`,value:function(e){e.type===`abort`&&(this.aborted=!0,typeof this.onabort==`function`&&this.onabort.call(this,e)),m(t,`dispatchEvent`,this,3)([e])}},{key:`throwIfAborted`,value:function(){var e=this.aborted,t=this.reason,n=t===void 0?`Aborted`:t;if(e)throw n}}],[{key:`timeout`,value:function(e){var t=new S;return setTimeout(function(){return t.abort(new DOMException(`This signal is timeout in ${e}ms`,`TimeoutError`))},e),t.signal}},{key:`any`,value:function(e){var t=new S;function n(){t.abort(this.reason),r()}function r(){var t=o(e),r;try{for(t.s();!(r=t.n()).done;)r.value.removeEventListener(`abort`,n)}catch(e){t.e(e)}finally{t.f()}}var i=o(e),a;try{for(i.s();!(a=i.n()).done;){var s=a.value;if(s.aborted){t.abort(s.reason);break}else s.addEventListener(`abort`,n)}}catch(e){i.e(e)}finally{i.f()}return t.signal}}])}(b),S=function(){function e(){r(this,e),Object.defineProperty(this,"signal",{value:new x,writable:!0,configurable:!0})}return a(e,[{key:`abort`,value:function(e){var t=y(e),n=v(t);this.signal.reason=t,this.signal.dispatchEvent(n)}},{key:`toString`,value:function(){return`[object AbortController]`}}])}();typeof Symbol<`u`&&Symbol.toStringTag&&(S.prototype[Symbol.toStringTag]=`AbortController`,x.prototype[Symbol.toStringTag]=`AbortSignal`);function C(e){return e.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL?(console.log(`__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL=true is set, will force install polyfill`),!0):typeof e.Request==`function`&&!e.Request.prototype.hasOwnProperty(`signal`)||!e.AbortController}function w(e){typeof e==`function`&&(e={fetch:e});var t=e,n=t.fetch,r=t.Request,i=r===void 0?n.Request:r,a=t.AbortController,o=t.__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL,s=o!==void 0&&o;if(!C({fetch:n,Request:i,AbortController:a,__FORCE_INSTALL_ABORTCONTROLLER_POLYFILL:s}))return{fetch:n,Request:c};var c=i;(c&&!c.prototype.hasOwnProperty(`signal`)||s)&&(c=function(e,t){var n;t&&t.signal&&(n=t.signal,delete t.signal);var r=new i(e,t);return n&&Object.defineProperty(r,"signal",{writable:!1,enumerable:!1,configurable:!0,value:n}),r},c.prototype=i.prototype);var l=n;return{fetch:function(e,t){var n=c&&c.prototype.isPrototypeOf(e)?e.signal:t?t.signal:void 0;if(n){var r;try{r=new DOMException(`Aborted`,`AbortError`)}catch{r=Error(`Aborted`),r.name=`AbortError`}if(n.aborted)return Promise.reject(r);var i=new Promise(function(e,t){n.addEventListener(`abort`,function(){return t(r)},{once:!0})});return t&&t.signal&&delete t.signal,Promise.race([i,l(e,t)])}return l(e,t)},Request:c}}(function(e){if(C(e)){if(!e.fetch){console.warn(`fetch() is not available, cannot install abortcontroller-polyfill`);return}var t=w(e),n=t.fetch,r=t.Request;e.fetch=n,e.Request=r,Object.defineProperty(e,"AbortController",{writable:!0,enumerable:!1,configurable:!0,value:S}),Object.defineProperty(e,"AbortSignal",{writable:!0,enumerable:!1,configurable:!0,value:x})}})(typeof self<`u`?self:global)}));var T=`0.0.0-SNAPSHOT`;function E(e,t){return Object.assign(e,t),e}var D={draw(){}},O={};function ee(e){E(O,e)}function te(e){return O[e]}function k(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function A(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function j(){}var M=.7,ne=1/M,re=`\\s*([+-]?\\d+)\\s*`,ie=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,N=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,ae=/^#([0-9a-f]{3,8})$/,oe=RegExp(`^rgb\\(${re},${re},${re}\\)$`),se=RegExp(`^rgb\\(${N},${N},${N}\\)$`),ce=RegExp(`^rgba\\(${re},${re},${re},${ie}\\)$`),le=RegExp(`^rgba\\(${N},${N},${N},${ie}\\)$`),ue=RegExp(`^hsl\\(${ie},${N},${N}\\)$`),de=RegExp(`^hsla\\(${ie},${N},${N},${ie}\\)$`),fe={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};k(j,_e,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:pe,formatHex:pe,formatHex8:me,formatHsl:he,formatRgb:ge,toString:ge});function pe(){return this.rgb().formatHex()}function me(){return this.rgb().formatHex8()}function he(){return ke(this).formatHsl()}function ge(){return this.rgb().formatRgb()}function _e(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=ae.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?ve(t):n===3?new P(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ye(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ye(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=oe.exec(e))?new P(t[1],t[2],t[3],1):(t=se.exec(e))?new P(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=ce.exec(e))?ye(t[1],t[2],t[3],t[4]):(t=le.exec(e))?ye(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=ue.exec(e))?Oe(t[1],t[2]/100,t[3]/100,1):(t=de.exec(e))?Oe(t[1],t[2]/100,t[3]/100,t[4]):fe.hasOwnProperty(e)?ve(fe[e]):e===`transparent`?new P(NaN,NaN,NaN,0):null}function ve(e){return new P(e>>16&255,e>>8&255,e&255,1)}function ye(e,t,n,r){return r<=0&&(e=t=n=NaN),new P(e,t,n,r)}function be(e){return e instanceof j||(e=_e(e)),e?(e=e.rgb(),new P(e.r,e.g,e.b,e.opacity)):new P}function xe(e,t,n,r){return arguments.length===1?be(e):new P(e,t,n,r??1)}function P(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}k(P,xe,A(j,{brighter(e){return e=e==null?ne:ne**+e,new P(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?M:M**+e,new P(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new P(Ee(this.r),Ee(this.g),Ee(this.b),Te(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:Se,formatHex:Se,formatHex8:Ce,formatRgb:we,toString:we}));function Se(){return`#${De(this.r)}${De(this.g)}${De(this.b)}`}function Ce(){return`#${De(this.r)}${De(this.g)}${De(this.b)}${De((isNaN(this.opacity)?1:this.opacity)*255)}`}function we(){let e=Te(this.opacity);return`${e===1?`rgb(`:`rgba(`}${Ee(this.r)}, ${Ee(this.g)}, ${Ee(this.b)}${e===1?`)`:`, ${e})`}`}function Te(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ee(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function De(e){return e=Ee(e),(e<16?`0`:``)+e.toString(16)}function Oe(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new F(e,t,n,r)}function ke(e){if(e instanceof F)return new F(e.h,e.s,e.l,e.opacity);if(e instanceof j||(e=_e(e)),!e)return new F;if(e instanceof F)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new F(o,s,c,e.opacity)}function Ae(e,t,n,r){return arguments.length===1?ke(e):new F(e,t,n,r??1)}function F(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}k(F,Ae,A(j,{brighter(e){return e=e==null?ne:ne**+e,new F(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?M:M**+e,new F(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new P(Ne(e>=240?e-240:e+120,i,r),Ne(e,i,r),Ne(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new F(je(this.h),Me(this.s),Me(this.l),Te(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(){let e=Te(this.opacity);return`${e===1?`hsl(`:`hsla(`}${je(this.h)}, ${Me(this.s)*100}%, ${Me(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function je(e){return e=(e||0)%360,e<0?e+360:e}function Me(e){return Math.max(0,Math.min(1,e||0))}function Ne(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var Pe={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function Fe(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),Pe.hasOwnProperty(t)?{space:Pe[t],local:e}:e}function Ie(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function Le(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Re(e){var t=Fe(e);return(t.local?Le:Ie)(t)}function ze(){}function Be(e){return e==null?ze:function(){return this.querySelector(e)}}function Ve(e){typeof e!=`function`&&(e=Be(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new I(r,this._parents)}function He(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Ue(){return[]}function We(e){return e==null?Ue:function(){return this.querySelectorAll(e)}}function Ge(e){return function(){return He(e.apply(this,arguments))}}function Ke(e){e=typeof e==`function`?Ge(e):We(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new I(r,i)}function qe(e){return function(){return this.matches(e)}}function Je(e){return function(t){return t.matches(e)}}var Ye=Array.prototype.find;function Xe(e){return function(){return Ye.call(this.children,e)}}function Ze(){return this.firstElementChild}function Qe(e){return this.select(e==null?Ze:Xe(typeof e==`function`?e:Je(e)))}var $e=Array.prototype.filter;function et(){return Array.from(this.children)}function tt(e){return function(){return $e.call(this.children,e)}}function nt(e){return this.selectAll(e==null?et:tt(typeof e==`function`?e:Je(e)))}function rt(e){typeof e!=`function`&&(e=qe(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new I(r,this._parents)}function it(e){return Array(e.length)}function at(){return new I(this._enter||this._groups.map(it),this._parents)}function ot(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}ot.prototype={constructor:ot,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function st(e){return function(){return e}}function ct(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new ot(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function lt(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new ot(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function ut(e){return e.__data__}function dt(e,t){if(!arguments.length)return Array.from(this,ut);var n=t?lt:ct,r=this._parents,i=this._groups;typeof e!=`function`&&(e=st(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=ft(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new I(o,r),o._enter=s,o._exit=c,o}function ft(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function pt(){return new I(this._exit||this._groups.map(it),this._parents)}function mt(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function ht(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new I(s,this._parents)}function gt(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function _t(e){e||=vt;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new I(i,this._parents).order()}function vt(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function yt(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function bt(){return Array.from(this)}function xt(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function St(){let e=0;for(let t of this)++e;return e}function Ct(){return!this.node()}function wt(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function Tt(e){return function(){this.removeAttribute(e)}}function Et(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Dt(e,t){return function(){this.setAttribute(e,t)}}function Ot(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function kt(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function At(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function jt(e,t){var n=Fe(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?Et:Tt:typeof t==`function`?n.local?At:kt:n.local?Ot:Dt)(n,t))}function Mt(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Nt(e){return function(){this.style.removeProperty(e)}}function Pt(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Ft(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function It(e,t,n){return arguments.length>1?this.each((t==null?Nt:typeof t==`function`?Ft:Pt)(e,t,n??``)):Lt(this.node(),e)}function Lt(e,t){return e.style.getPropertyValue(t)||Mt(e).getComputedStyle(e,null).getPropertyValue(t)}function Rt(e){return function(){delete this[e]}}function zt(e,t){return function(){this[e]=t}}function Bt(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function Vt(e,t){return arguments.length>1?this.each((t==null?Rt:typeof t==`function`?Bt:zt)(e,t)):this.node()[e]}function Ht(e){return e.trim().split(/^|\s+/)}function Ut(e){return e.classList||new Wt(e)}function Wt(e){this._node=e,this._names=Ht(e.getAttribute(`class`)||``)}Wt.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function Gt(e,t){for(var n=Ut(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Kt(e,t){for(var n=Ut(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function qt(e){return function(){Gt(this,e)}}function Jt(e){return function(){Kt(this,e)}}function Yt(e,t){return function(){(t.apply(this,arguments)?Gt:Kt)(this,e)}}function Xt(e,t){var n=Ht(e+``);if(arguments.length<2){for(var r=Ut(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?Yt:t?qt:Jt)(n,t))}function Zt(){this.textContent=``}function Qt(e){return function(){this.textContent=e}}function $t(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function en(e){return arguments.length?this.each(e==null?Zt:(typeof e==`function`?$t:Qt)(e)):this.node().textContent}function tn(){this.innerHTML=``}function nn(e){return function(){this.innerHTML=e}}function rn(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function an(e){return arguments.length?this.each(e==null?tn:(typeof e==`function`?rn:nn)(e)):this.node().innerHTML}function on(){this.nextSibling&&this.parentNode.appendChild(this)}function sn(){return this.each(on)}function cn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ln(){return this.each(cn)}function un(e){var t=typeof e==`function`?e:Re(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function dn(){return null}function fn(e,t){var n=typeof e==`function`?e:Re(e),r=t==null?dn:typeof t==`function`?t:Be(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function pn(){var e=this.parentNode;e&&e.removeChild(this)}function mn(){return this.each(pn)}function hn(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function gn(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function _n(e){return this.select(e?gn:hn)}function vn(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function yn(e){return function(t){e.call(this,t,this.__data__)}}function bn(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function xn(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function Sn(e,t,n){return function(){var r=this.__on,i,a=yn(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function Cn(e,t,n){var r=bn(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?Sn:xn,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function wn(e,t,n){var r=Mt(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Tn(e,t){return function(){return wn(this,e,t)}}function En(e,t){return function(){return wn(this,e,t.apply(this,arguments))}}function Dn(e,t){return this.each((typeof t==`function`?En:Tn)(e,t))}function*On(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var kn=[null];function I(e,t){this._groups=e,this._parents=t}function An(){return new I([[document.documentElement]],kn)}function jn(){return this}I.prototype=An.prototype={constructor:I,select:Ve,selectAll:Ke,selectChild:Qe,selectChildren:nt,filter:rt,data:dt,enter:at,exit:pt,join:mt,merge:ht,selection:jn,order:gt,sort:_t,call:yt,nodes:bt,node:xt,size:St,empty:Ct,each:wt,attr:jt,style:It,property:Vt,classed:Xt,text:en,html:an,raise:sn,lower:ln,append:un,insert:fn,remove:mn,clone:_n,datum:vn,on:Cn,dispatch:Dn,[Symbol.iterator]:On};function L(e){return typeof e==`string`?new I([[document.querySelector(e)]],[document.documentElement]):new I([[e]],kn)}function Mn(e){return L(Re(e).call(document.documentElement))}function Nn(e){return typeof e==`string`?new I([document.querySelectorAll(e)],[document.documentElement]):new I([He(e)],kn)}function Pn(e){return[e.width,e.height]}function Fn(e,t){L(e).style(`height`,t+`px`)}function In(e,t){let n,r=[];return e.each(function(){let e=this;for(;typeof e.parentNode.matches==`function`&&!n;)e=e.parentNode,e.matches(t)&&(n=e,r.push(n));n=void 0}),Nn(r)}function Ln(e,t){for(;;){if(!e||!t)return!1;if(e.isSameNode(t))return!0;e=e.parentNode}}function Rn(e,t,n,r){L(t).on(e,function(e){try{let i;i=typeof n==`string`?L(t).selectAll(n):n,i.each(function(){let t=this;Ln(e.target,t)&&r.bind(t)(L(t).data()[0])})}catch(e){throw console.error(e),e}})}function zn(){let e=window.navigator.userAgent;return e.indexOf(`MSIE `)>=0||e.indexOf(`Edge `)>=0||e.indexOf(`Trident`)>=0}function Bn(e){return e&&e.trim()}function Vn(e){return e&&=encodeURIComponent(e).replace(/%20/g,`+`),e}function Hn(e){return e.replace(/-([a-z])/g,e=>e[1].toUpperCase())}function Un(e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let r=e[n];typeof r==`object`&&(r=JSON.stringify(r)),(typeof r==`string`||typeof r==`number`)&&t.push(Vn(n)+`=`+Vn(r))}return t.join(`&`)}function Wn(){let e=document.scripts;for(let t=0;t<e.length;++t){let n=e[t].src;if(n&&n.indexOf(`/viz.`)>=0){let e=n.indexOf(`/`,9);if(e>=0)return n.substring(0,e)}}return``}function Gn(e){if(!e.ok)throw Error(e.status+` `+e.statusText);if(!(e.status===204||e.status===205))return e.json()}function Kn(e,t){return fetch(e,t).then(Gn)}var qn=(function(){let e=[];function t(t,n,a){let o={options:t,success:n,error:a};t.immediate?r([o]):(e.push(o),window.setTimeout(i))}function n(e,t,n){let r=($.options.detectDataDomain?Wn():void 0)||$.options.dataDomain,i=(window.dataDomain||r)+`/data.json`,a={"Content-Type":`application/json; charset=UTF-8`,...e&&{"X-Api-Key":e}};if(t.options.length===1&&t.options[0].useGet===`true`){var o=new URLSearchParams;Object.keys(t.options[0]).filter(e=>e!==`useGet`).filter(e=>e!==`apiKey`).filter(e=>{let n=t.options[0][e];return typeof n==`string`||typeof n==`boolean`||typeof n==`number`}).forEach(e=>{o.set(e,t.options[0][e])}),t.options[0].type===`graph`&&(o.delete(`width`),o.delete(`height`)),Kn(`${i}?${o.toString()}`,{headers:a,method:`GET`}).then(e=>n(null,e)).catch(e=>n(e,void 0));return}Kn(i,{headers:a,method:`POST`,body:JSON.stringify(t)}).then(e=>n(null,e)).catch(e=>n(e,void 0))}function r(e){let t=[],r;for(let n of e)t.push(n.options),r??=n.options.apiKey;if(t.length>0){let i={options:t,origin:document.location.hostname,v:$.version};n(r,i,function(t,n){if(t)for(let n of e)n.error(t.message);else{let t=n.result;e.forEach((e,n)=>{let r=t[n],i=r.error;i?e.error(i.message):e.success(r)})}})}}function i(){r(e),e=[]}return{requestData:t}})(),Jn=new Date,Yn=new Date;function R(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=n=>R(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}),n&&(i.count=(t,r)=>(Jn.setTime(+t),Yn.setTime(+r),e(Jn),e(Yn),Math.floor(n(Jn,Yn))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var Xn=R(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Xn.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?R(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Xn),Xn.range;var z=1e3,B=z*60,V=B*60,H=V*24,Zn=H*7,Qn=H*30,$n=H*365,er=R(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*z)},(e,t)=>(t-e)/z,e=>e.getUTCSeconds());er.range;var tr=R(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*z)},(e,t)=>{e.setTime(+e+t*B)},(e,t)=>(t-e)/B,e=>e.getMinutes());tr.range;var nr=R(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*B)},(e,t)=>(t-e)/B,e=>e.getUTCMinutes());nr.range;var rr=R(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*z-e.getMinutes()*B)},(e,t)=>{e.setTime(+e+t*V)},(e,t)=>(t-e)/V,e=>e.getHours());rr.range;var ir=R(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*V)},(e,t)=>(t-e)/V,e=>e.getUTCHours());ir.range;var ar=R(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*B)/H,e=>e.getDate()-1);ar.range;var or=R(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/H,e=>e.getUTCDate()-1);or.range;var sr=R(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/H,e=>Math.floor(e/H));sr.range;function cr(e){return R(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*B)/Zn)}var lr=cr(0),ur=cr(1),dr=cr(2),fr=cr(3),pr=cr(4),mr=cr(5),hr=cr(6);lr.range,ur.range,dr.range,fr.range,pr.range,mr.range,hr.range;function gr(e){return R(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/Zn)}var _r=gr(0),vr=gr(1),yr=gr(2),br=gr(3),xr=gr(4),Sr=gr(5),Cr=gr(6);_r.range,vr.range,yr.range,br.range,xr.range,Sr.range,Cr.range;var wr=R(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());wr.range;var Tr=R(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Tr.range;var U=R(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());U.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:R(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),U.range;var W=R(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());W.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:R(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),W.range;function Er(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function Dr(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Or(e){let t,n,r;e.length===2?(t=e===Er||e===Dr?e:kr,n=e,r=e):(t=Er,n=(t,n)=>Er(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<0?i=t+1:a=t}while(i<a)}return i}function a(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<=0?i=t+1:a=t}while(i<a)}return i}function o(e,t,n=0,a=e.length){let o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function kr(){return 0}function Ar(e){return e===null?NaN:+e}var jr=Or(Er),Mr=jr.right;jr.left,Or(Ar).center;function Nr(e,t){let n,r;if(t===void 0)for(let t of e)t!=null&&(n===void 0?t>=t&&(n=r=t):(n>t&&(n=t),r<t&&(r=t)));else{let i=-1;for(let a of e)(a=t(a,++i,e))!=null&&(n===void 0?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)))}return[n,r]}var Pr=class extends Map{constructor(e,t=Rr){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(Fr(this,e))}has(e){return super.has(Fr(this,e))}set(e,t){return super.set(Ir(this,e),t)}delete(e){return super.delete(Lr(this,e))}};function Fr({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function Ir({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Lr({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Rr(e){return typeof e==`object`&&e?e.valueOf():e}var zr=Math.sqrt(50),Br=Math.sqrt(10),Vr=Math.sqrt(2);function Hr(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=zr?10:a>=Br?5:a>=Vr?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?Hr(e,t,n*2):[s,c,l]}function Ur(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?Hr(t,e,n):Hr(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r)if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o;else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function Wr(e,t,n){return t=+t,e=+e,n=+n,Hr(e,t,n)[2]}function Gr(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?Wr(t,e,n):Wr(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function Kr(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function qr(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function Jr(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=Array(i);++r<i;)a[r]=e+r*n;return a}function Yr(e,t,n,r,i,a){let o=[[er,1,z],[er,5,5*z],[er,15,15*z],[er,30,30*z],[a,1,B],[a,5,5*B],[a,15,15*B],[a,30,30*B],[i,1,V],[i,3,3*V],[i,6,6*V],[i,12,12*V],[r,1,H],[r,2,2*H],[n,1,Zn],[t,1,Qn],[t,3,3*Qn],[e,1,$n]];function s(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&typeof n.range==`function`?n:c(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a}function c(t,n,r){let i=Math.abs(n-t)/r,a=Or(([,,e])=>e).right(o,i);if(a===o.length)return e.every(Gr(t/$n,n/$n,r));if(a===0)return Xn.every(Math.max(Gr(t,n,r),1));let[s,c]=o[i/o[a-1][2]<o[a][2]/i?a-1:a];return s.every(c)}return[s,c]}var[Xr,Zr]=Yr(W,Tr,_r,sr,ir,nr),[Qr,$r]=Yr(U,wr,lr,ar,rr,tr);function ei(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function ti(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function ni(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function ri(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,l=ci(i),u=li(i),d=ci(a),f=li(a),p=ci(o),m=li(o),h=ci(s),g=li(s),_=ci(c),v=li(c),y={a:j,A:M,b:ne,B:re,c:null,d:Ai,e:Ai,f:Fi,g:Ki,G:Ji,H:ji,I:Mi,j:Ni,L:Pi,m:Ii,M:Li,p:ie,q:N,Q:_a,s:va,S:Ri,u:zi,U:Bi,V:Hi,w:Ui,W:Wi,x:null,X:null,y:Gi,Y:qi,Z:Yi,"%":ga},b={a:ae,A:oe,b:se,B:ce,c:null,d:Xi,e:Xi,f:ta,g:fa,G:ma,H:Zi,I:Qi,j:$i,L:ea,m:na,M:ra,p:le,q:ue,Q:_a,s:va,S:ia,u:aa,U:oa,V:ca,w:la,W:ua,x:null,X:null,y:da,Y:pa,Z:ha,"%":ga},x={a:E,A:D,b:O,B:ee,c:te,d:bi,e:bi,f:Ei,g:gi,G:hi,H:Si,I:Si,j:xi,L:Ti,m:yi,M:Ci,p:T,q:vi,Q:Oi,s:ki,S:wi,u:di,U:fi,V:pi,w:ui,W:mi,x:k,X:A,y:gi,Y:hi,Z:_i,"%":Di};y.x=S(n,y),y.X=S(r,y),y.c=S(t,y),b.x=S(n,b),b.X=S(r,b),b.c=S(t,b);function S(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,c,l;for(n instanceof Date||(n=new Date(+n));++i<o;)e.charCodeAt(i)===37&&(r.push(e.slice(a,i)),(c=ii[s=e.charAt(++i)])==null?c=s===`e`?` `:`0`:s=e.charAt(++i),(l=t[s])&&(s=l(n,c)),r.push(s),a=i+1);return r.push(e.slice(a,i)),r.join(``)}}function C(e,t){return function(n){var r=ni(1900,void 0,1),i=w(r,e,n+=``,0),a,o;if(i!=n.length)return null;if(`Q`in r)return new Date(r.Q);if(`s`in r)return new Date(r.s*1e3+(`L`in r?r.L:0));if(t&&!(`Z`in r)&&(r.Z=0),`p`in r&&(r.H=r.H%12+r.p*12),r.m===void 0&&(r.m=`q`in r?r.q:0),`V`in r){if(r.V<1||r.V>53)return null;`w`in r||(r.w=1),`Z`in r?(a=ti(ni(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?vr.ceil(a):vr(a),a=or.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=ei(ni(r.y,0,1)),o=a.getDay(),a=o>4||o===0?ur.ceil(a):ur(a),a=ar.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else(`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),o=`Z`in r?ti(ni(r.y,0,1)).getUTCDay():ei(ni(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,ti(r)):ei(r)}}function w(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i<a;){if(r>=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=x[s in ii?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function T(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1}function E(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1}function ee(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function te(e,n,r){return w(e,t,n,r)}function k(e,t,r){return w(e,n,t,r)}function A(e,t,n){return w(e,r,t,n)}function j(e){return o[e.getDay()]}function M(e){return a[e.getDay()]}function ne(e){return c[e.getMonth()]}function re(e){return s[e.getMonth()]}function ie(e){return i[+(e.getHours()>=12)]}function N(e){return 1+~~(e.getMonth()/3)}function ae(e){return o[e.getUTCDay()]}function oe(e){return a[e.getUTCDay()]}function se(e){return c[e.getUTCMonth()]}function ce(e){return s[e.getUTCMonth()]}function le(e){return i[+(e.getUTCHours()>=12)]}function ue(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=S(e+=``,y);return t.toString=function(){return e},t},parse:function(e){var t=C(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+=``,b);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+=``,!0);return t.toString=function(){return e},t}}}var ii={"-":``,_:` `,0:`0`},G=/^\s*\d+/,ai=/^%/,oi=/[\\^$*+?|[\]().{}]/g;function K(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function si(e){return e.replace(oi,`\\$&`)}function ci(e){return RegExp(`^(?:`+e.map(si).join(`|`)+`)`,`i`)}function li(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function ui(e,t,n){var r=G.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function di(e,t,n){var r=G.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function fi(e,t,n){var r=G.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function pi(e,t,n){var r=G.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function mi(e,t,n){var r=G.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function hi(e,t,n){var r=G.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function gi(e,t,n){var r=G.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function _i(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function vi(e,t,n){var r=G.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function yi(e,t,n){var r=G.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function bi(e,t,n){var r=G.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function xi(e,t,n){var r=G.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Si(e,t,n){var r=G.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Ci(e,t,n){var r=G.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function wi(e,t,n){var r=G.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Ti(e,t,n){var r=G.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Ei(e,t,n){var r=G.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Di(e,t,n){var r=ai.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Oi(e,t,n){var r=G.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function ki(e,t,n){var r=G.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Ai(e,t){return K(e.getDate(),t,2)}function ji(e,t){return K(e.getHours(),t,2)}function Mi(e,t){return K(e.getHours()%12||12,t,2)}function Ni(e,t){return K(1+ar.count(U(e),e),t,3)}function Pi(e,t){return K(e.getMilliseconds(),t,3)}function Fi(e,t){return Pi(e,t)+`000`}function Ii(e,t){return K(e.getMonth()+1,t,2)}function Li(e,t){return K(e.getMinutes(),t,2)}function Ri(e,t){return K(e.getSeconds(),t,2)}function zi(e){var t=e.getDay();return t===0?7:t}function Bi(e,t){return K(lr.count(U(e)-1,e),t,2)}function Vi(e){var t=e.getDay();return t>=4||t===0?pr(e):pr.ceil(e)}function Hi(e,t){return e=Vi(e),K(pr.count(U(e),e)+(U(e).getDay()===4),t,2)}function Ui(e){return e.getDay()}function Wi(e,t){return K(ur.count(U(e)-1,e),t,2)}function Gi(e,t){return K(e.getFullYear()%100,t,2)}function Ki(e,t){return e=Vi(e),K(e.getFullYear()%100,t,2)}function qi(e,t){return K(e.getFullYear()%1e4,t,4)}function Ji(e,t){var n=e.getDay();return e=n>=4||n===0?pr(e):pr.ceil(e),K(e.getFullYear()%1e4,t,4)}function Yi(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+K(t/60|0,`0`,2)+K(t%60,`0`,2)}function Xi(e,t){return K(e.getUTCDate(),t,2)}function Zi(e,t){return K(e.getUTCHours(),t,2)}function Qi(e,t){return K(e.getUTCHours()%12||12,t,2)}function $i(e,t){return K(1+or.count(W(e),e),t,3)}function ea(e,t){return K(e.getUTCMilliseconds(),t,3)}function ta(e,t){return ea(e,t)+`000`}function na(e,t){return K(e.getUTCMonth()+1,t,2)}function ra(e,t){return K(e.getUTCMinutes(),t,2)}function ia(e,t){return K(e.getUTCSeconds(),t,2)}function aa(e){var t=e.getUTCDay();return t===0?7:t}function oa(e,t){return K(_r.count(W(e)-1,e),t,2)}function sa(e){var t=e.getUTCDay();return t>=4||t===0?xr(e):xr.ceil(e)}function ca(e,t){return e=sa(e),K(xr.count(W(e),e)+(W(e).getUTCDay()===4),t,2)}function la(e){return e.getUTCDay()}function ua(e,t){return K(vr.count(W(e)-1,e),t,2)}function da(e,t){return K(e.getUTCFullYear()%100,t,2)}function fa(e,t){return e=sa(e),K(e.getUTCFullYear()%100,t,2)}function pa(e,t){return K(e.getUTCFullYear()%1e4,t,4)}function ma(e,t){var n=e.getUTCDay();return e=n>=4||n===0?xr(e):xr.ceil(e),K(e.getUTCFullYear()%1e4,t,4)}function ha(){return`+0000`}function ga(){return`%`}function _a(e){return+e}function va(e){return Math.floor(e/1e3)}var ya,ba;xa({dateTime:`%x, %X`,date:`%-m/%-d/%Y`,time:`%-I:%M:%S %p`,periods:[`AM`,`PM`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]});function xa(e){return ya=ri(e),ba=ya.format,ya.parse,ya.utcFormat,ya.utcParse,ya}function Sa(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function Ca(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function wa(e){return e=Ca(Math.abs(e)),e?e[1]:NaN}function Ta(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function Ea(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var Da=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Oa(e){if(!(t=Da.exec(e)))throw Error(`invalid format: `+e);var t;return new ka({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Oa.prototype=ka.prototype;function ka(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}ka.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type};function Aa(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var ja;function Ma(e,t){var n=Ca(e,t);if(!n)return ja=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(ja=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+Ca(e,Math.max(0,t+a-1))[0]}function Na(e,t){var n=Ca(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var Pa={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:Sa,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Na(e*100,t),r:Na,s:Ma,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function Fa(e){return e}var Ia=Array.prototype.map,La=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function Ra(e){var t=e.grouping===void 0||e.thousands===void 0?Fa:Ta(Ia.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?Fa:Ea(Ia.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e,l){e=Oa(e);var u=e.fill,d=e.align,f=e.sign,p=e.symbol,m=e.zero,h=e.width,g=e.comma,_=e.precision,v=e.trim,y=e.type;y===`n`?(g=!0,y=`g`):Pa[y]||(_===void 0&&(_=12),v=!0,y=`g`),(m||u===`0`&&d===`=`)&&(m=!0,u=`0`,d=`=`);var b=(l&&l.prefix!==void 0?l.prefix:``)+(p===`$`?n:p===`#`&&/[boxX]/.test(y)?`0`+y.toLowerCase():``),x=(p===`$`?r:/[%p]/.test(y)?o:``)+(l&&l.suffix!==void 0?l.suffix:``),S=Pa[y],C=/[defgprs%]/.test(y);_=_===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function w(e){var n=b,r=x,o,l,p;if(y===`c`)r=S(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:S(Math.abs(e),_),v&&(e=Aa(e)),w&&+e==0&&f!==`+`&&(w=!1),n=(w?f===`(`?f:s:f===`-`||f===`(`?``:f)+n,r=(y===`s`&&!isNaN(e)&&ja!==void 0?La[8+ja/3]:``)+r+(w&&f===`(`?`)`:``),C){for(o=-1,l=e.length;++o<l;)if(p=e.charCodeAt(o),48>p||p>57){r=(p===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}g&&!m&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T<h?Array(h-T+1).join(u):``;switch(g&&m&&(e=t(E+e,E.length?h-r.length:1/0),E=``),d){case`<`:e=n+e+r+E;break;case`=`:e=n+E+e+r;break;case`^`:e=E.slice(0,T=E.length>>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r;break}return a(e)}return w.toString=function(){return e+``},w}function u(e,t){var n=Math.max(-8,Math.min(8,Math.floor(wa(t)/3)))*3,r=10**-n,i=l((e=Oa(e),e.type=`f`,e),{suffix:La[8+n/3]});return function(e){return i(r*e)}}return{format:l,formatPrefix:u}}var za,Ba,Va;Ha({thousands:`,`,grouping:[3],currency:[`$`,``]});function Ha(e){return za=Ra(e),Ba=za.format,Va=za.formatPrefix,za}function Ua(e){return Math.max(0,-wa(Math.abs(e)))}function Wa(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(wa(t)/3)))*3-wa(Math.abs(e)))}function Ga(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,wa(t)-wa(e))+1}var Ka={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`]},qa={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`]},Ja={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.`]},Ya={decimal:`,`,thousands:`.`,grouping:[3],currency:[``,`\xA0€`]},Xa={decimal:`.`,thousands:`,`,grouping:[3],currency:[`$`,``]},Za={decimal:`,`,thousands:`\xA0`,grouping:[3],currency:[``,`\xA0€`],percent:` %`},Qa=document.documentElement.lang===`en`?`en`:document.documentElement.lang===`fr`?`fr`:`de`;function $a(){return Qa}function eo(e,t,n=``){return $a()===`de`?t:$a()===`fr`?n:e}function to(e){let t=e.format(`.%L`),n=e.format(`:%S`),r=e.format(`%I:%M`),i=e.format(`%I %p`),a=e.format(`%a %d`),o=e.format(`%b %d`),s=e.format(`%B`),c=e.format(`%Y`);return e=>(er(e)<e?t:tr(e)<e?n:rr(e)<e?r:ar(e)<e?i:wr(e)<e?lr(e)<e?a:o:U(e)<e?s:c)(e)}function no(e,t){let n=ri(e),r=Ra(t),i=e=>Math.round(e*100)/100,a=r.format(`,.2f`),o=r.format(`,.0f`),s=n.format(e.date);return{timeFormatLocaleDefinition:e,numberFormatLocaleDefinition:t,createNumberFormatter:function(e,t){let n=e.accuracy,i=r.format(t);return t=>e.prefix+i(t/n)+e.postfix},decimalFormatter:e=>a(i(e)),numberFormatter:e=>o(Math.round(e)),dateFormatter:e=>e?(typeof e==`string`&&(e=new Date(e)),s(e)):``,timeScaleFormatter:to(n)}}var ro=no(Ka,{...Ya,currency:[`€`,``]}),io=no({...qa,date:`%Y-%m-%d`},{...Xa,currency:[`€`,``]}),ao=no(Ja,{...Za,currency:[`€`,``]}),oo=class{data;chart;container;widgetType;options;items=[];constructor(e,t){let n=typeof e==`string`?document.getElementById(e):e;if(!n)throw Error(`container node undefined or null`);this.container=n,this.options=so(t,this.container);let r=this.stringValue(`type`)||this.stringValue(`layout`);if(!r)throw Error(`no widget type specified`);this.widgetType=r,this.options.type=r,(r==`graph`||r==`contact`)&&(this.options.immediate=!0);let i=this.load.bind(this);this.data=this.objectValue(`data`),this.data?window.setTimeout(i):qn.requestData(this.options,i,this.fail.bind(this))}getType(){return this.widgetType}fail(e){let t=this.handlerValue(`error`);t?t(e):$.log(`error`,e)}load(e){this.data=this.data||e;try{let e=te(this.widgetType);if(!e)throw Error(`invalid widget type: `+this.widgetType);this.chart=e(this,this.data),this.container.setAttribute(`data-layout`,this.widgetType),this.draw()}catch(e){this.fail(e);return}let t=this.handlerValue(`success`);t&&t()}showItem(e,t){let n=(this.handlerValue(`handleItem`)||((e,t)=>{if(this.stringValue(`subject`))return t;let n=document.createElement(`div`),r=document.createElement(`h2`);return r.textContent=e,n.appendChild(r),n.appendChild(t),n}))(e,t);n&&(this.container.appendChild(n),this.items.push(n))}adjustSize(e){let t=e.getBoundingClientRect(),n=this.numberValue(`width`)||t.width,r=this.numberValue(`height`)||t.height,i=this.numberValue(`ratio`),a=this.numberValue(`minHeight`),o=this.numberValue(`maxHeight`),s=r;i&&(s=n*i),a&&(s=Math.max(s,a)),o&&(s=Math.min(s,o)),r!=s&&Fn(e,s)}draw(){this.adjustSize(this.container),this.chart&&(this.chart.draw(),L(this.container).selectAll(`*`).each(function(){let e=this.getAttribute(`transform`);e||(e=getComputedStyle(this).getPropertyValue(`transform`),e&&e!=`none`&&this.setAttribute(`transform`,e))}))}markup(e){let t=this.handlerValue(`companyClick`);t&&e.selectAll(`.company`).attr(`data-clickable`,!0);let n=this.handlerValue(`personClick`);n&&e.selectAll(`.person`).attr(`data-clickable`,!0);let r=this.handlerValue(`addressClick`);r&&e.selectAll(`address`).attr(`data-clickable`,!0);let i=this.handlerValue(`registerClick`);i&&e.selectAll(`.register`).attr(`data-clickable`,!0);let a=this.handlerValue(`filingClick`);a&&e.selectAll(`.filing`).attr(`data-clickable`,!0),e.on(`click`,function(e){let o=e.target,s=co(o),c;t&&o.classList.contains(`company`)&&(t(s),c=!0),n&&o.classList.contains(`person`)&&(n(s),c=!0),r&&o.tagName==`ADDRESS`&&(r({query:o.textContent}),c=!0),i&&o.classList.contains(`register`)&&(i({query:o.textContent}),c=!0),a&&o.classList.contains(`filing`)&&(a({query:o.textContent}),c=!0),c&&e.preventDefault()})}invokeClickHandler(e,t){let n=this.getClickHandler(t);return n?(n(e),!0):!1}getClickHandler(e){if(e)switch(e.toString().toLowerCase()[0]){case`c`:return this.handlerValue(`companyClick`);case`p`:return this.handlerValue(`personClick`);case`h`:return this.handlerValue(`publicationClick`)}}getLinkifier(){return this.handlerValue(`linkify`)||lo}getRootColor(){return Ae(this.stringValue(`rootColor`)||`#00dddd`)}isReverseChronology(){return this.stringValue(`chronology`)===`reverse`}getLanguage(){return this.stringValue(`language`)||`de`}i18n(){return this.getLanguage()==`de`?ro:this.getLanguage()==`fr`?ao:io}trilingual(e,t,n){return this.getLanguage()==`de`?t:this.getLanguage()==`fr`?n:e}isPrint(){return document.documentElement.classList&&document.documentElement.classList.contains(`print`)}numberValue(e){let t=this.options[e];if(typeof t==`function`)return t();if(typeof t==`number`)return t;if(typeof t==`string`)return Number(t)}stringValue(e){let t=this.options[e];if(typeof t==`function`)return t();if(typeof t==`string`)return t}booleanValue(e){return this.stringValue(e)?.toLowerCase()===`true`}nodeValue(e){let t=this.options[e];if(typeof t==`object`)return t;if(typeof t==`function`)return t();if(typeof t==`string`)return L(this.container).select(t).node()}objectValue(e){let t=this.options[e];if(typeof t==`function`)return t();if(typeof t==`object`)return t===null?void 0:t;if(typeof t==`string`)return JSON.parse(t)}handlerValue(e){let t=this.options[e];if(typeof t==`function`)return t.bind(this)}};function so(e,t){let n={};Object.assign(n,e);for(let e=0;e<t.attributes.length;++e){let r=t.attributes[e],i=r.name;if(i.indexOf(`data-`)===0){let e=Hn(i.substring(5));n[e]=n[e]||r.value}}return n}function co(e){return so({},e)}var lo=()=>null;function uo(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}var fo=Symbol(`implicit`);function po(){var e=new Pr,t=[],n=[],r=fo;function i(i){let a=e.get(i);if(a===void 0){if(r!==fo)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new Pr;for(let r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return po(t,n).unknown(r)},uo.apply(i,arguments),i}function mo(){var e=po().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,c=0,l=0,u=.5;delete e.unknown;function d(){var e=t().length,d=i<r,f=d?i:r,p=d?r:i;a=(p-f)/Math.max(1,e-c+l*2),s&&(a=Math.floor(a)),f+=(p-f-a*(e-c))*u,o=a*(1-c),s&&(f=Math.round(f),o=Math.round(o));var m=Jr(e).map(function(e){return f+a*e});return n(d?m.reverse():m)}return e.domain=function(e){return arguments.length?(t(e),d()):t()},e.range=function(e){return arguments.length?([r,i]=e,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(e){return[r,i]=e,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(e){return arguments.length?(s=!!e,d()):s},e.padding=function(e){return arguments.length?(c=Math.min(1,l=+e),d()):c},e.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),d()):c},e.paddingOuter=function(e){return arguments.length?(l=+e,d()):l},e.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},e.copy=function(){return mo(t(),[r,i]).round(s).paddingInner(c).paddingOuter(l).align(u)},uo.apply(d(),arguments)}var ho=e=>()=>e;function go(e,t){return function(n){return e+n*t}}function _o(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function vo(e){return(e=+e)==1?yo:function(t,n){return n-t?_o(t,n,e):ho(isNaN(t)?n:t)}}function yo(e,t){var n=t-e;return n?go(e,n):ho(isNaN(e)?t:e)}var bo=(function e(t){var n=vo(t);function r(e,t){var r=n((e=xe(e)).r,(t=xe(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=yo(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function xo(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function So(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Co(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o;for(o=0;o<r;++o)i[o]=jo(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function wo(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function q(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function To(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=jo(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var Eo=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Do=new RegExp(Eo.source,`g`);function Oo(e){return function(){return e}}function ko(e){return function(t){return e(t)+``}}function Ao(e,t){var n=Eo.lastIndex=Do.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=Eo.exec(e))&&(i=Do.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:q(r,i)})),n=Do.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?ko(c[0].x):Oo(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}function jo(e,t){var n=typeof t,r;return t==null||n===`boolean`?ho(t):(n===`number`?q:n===`string`?(r=_e(t))?(t=r,bo):Ao:t instanceof _e?bo:t instanceof Date?wo:So(t)?xo:Array.isArray(t)?Co:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?To:q)(e,t)}function Mo(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var No=180/Math.PI,Po={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Fo(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*No,skewX:Math.atan(c)*No,scaleX:o,scaleY:s}}var Io;function Lo(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?Po:Fo(t.a,t.b,t.c,t.d,t.e,t.f)}function Ro(e){return e==null||(Io||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),Io.setAttribute(`transform`,e),!(e=Io.transform.baseVal.consolidate()))?Po:(e=e.matrix,Fo(e.a,e.b,e.c,e.d,e.e,e.f))}function zo(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:q(e,i)},{i:c-2,x:q(r,a)})}else(i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:q(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:q(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:q(e,n)},{i:s-2,x:q(t,r)})}else(n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var Bo=zo(Lo,`px, `,`px)`,`deg)`),Vo=zo(Ro,`, `,`)`,`)`);function Ho(e){return function(){return e}}function Uo(e){return+e}var Wo=[0,1];function Go(e){return e}function Ko(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Ho(isNaN(t)?NaN:.5)}function qo(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function Jo(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=Ko(i,r),a=n(o,a)):(r=Ko(r,i),a=n(a,o)),function(e){return a(r(e))}}function Yo(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=Ko(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=Mr(e,t,1,r)-1;return a[n](i[n](t))}}function Xo(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Zo(){var e=Wo,t=Wo,n=jo,r,i,a,o=Go,s,c,l;function u(){var n=Math.min(e.length,t.length);return o!==Go&&(o=qo(e[0],e[n-1])),s=n>2?Yo:Jo,c=l=null,d}function d(i){return i==null||isNaN(i=+i)?a:(c||=s(e.map(r),t,n))(r(o(i)))}return d.invert=function(n){return o(i((l||=s(t,e.map(r),q))(n)))},d.domain=function(t){return arguments.length?(e=Array.from(t,Uo),u()):e.slice()},d.range=function(e){return arguments.length?(t=Array.from(e),u()):t.slice()},d.rangeRound=function(e){return t=Array.from(e),n=Mo,u()},d.clamp=function(e){return arguments.length?(o=e?!0:Go,u()):o!==Go},d.interpolate=function(e){return arguments.length?(n=e,u()):n},d.unknown=function(e){return arguments.length?(a=e,d):a},function(e,t){return r=e,i=t,u()}}function Qo(){return Zo()(Go,Go)}function $o(e,t,n,r){var i=Gr(e,t,n),a;switch(r=Oa(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=Wa(i,o))&&(r.precision=a),Va(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=Ga(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=Ua(i))&&(r.precision=a-(r.type===`%`)*2);break}return Ba(r)}function es(e){var t=e.domain;return e.ticks=function(e){var n=t();return Ur(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return $o(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-->0;){if(l=Wr(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function ts(){var e=Qo();return e.copy=function(){return Xo(e,ts())},uo.apply(e,arguments),es(e)}function ns(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function rs(e){return new Date(e)}function is(e){return e instanceof Date?+e:+new Date(+e)}function as(e,t,n,r,i,a,o,s,c,l){var u=Qo(),d=u.invert,f=u.domain,p=l(`.%L`),m=l(`:%S`),h=l(`%I:%M`),g=l(`%I %p`),_=l(`%a %d`),v=l(`%b %d`),y=l(`%B`),b=l(`%Y`);function x(e){return(c(e)<e?p:s(e)<e?m:o(e)<e?h:a(e)<e?g:r(e)<e?i(e)<e?_:v:n(e)<e?y:b)(e)}return u.invert=function(e){return new Date(d(e))},u.domain=function(e){return arguments.length?f(Array.from(e,is)):f().map(rs)},u.ticks=function(t){var n=f();return e(n[0],n[n.length-1],t??10)},u.tickFormat=function(e,t){return t==null?x:l(t)},u.nice=function(e){var n=f();return(!e||typeof e.range!=`function`)&&(e=t(n[0],n[n.length-1],e??10)),e?f(ns(n,e)):u},u.copy=function(){return Xo(u,as(e,t,n,r,i,a,o,s,c,l))},u}function os(){return uo.apply(as(Qr,$r,U,wr,lr,ar,rr,tr,er,ba).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function ss(e){return e}var cs=1,ls=2,us=3,ds=4,fs=1e-6;function ps(e){return`translate(`+e+`,0)`}function ms(e){return`translate(0,`+e+`)`}function hs(e){return t=>+e(t)}function gs(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function _s(){return!this.__axis}function vs(e,t){var n=[],r=null,i=null,a=6,o=6,s=3,c=typeof window<`u`&&window.devicePixelRatio>1?0:.5,l=e===cs||e===ds?-1:1,u=e===ds||e===ls?`x`:`y`,d=e===cs||e===us?ps:ms;function f(f){var p=r??(t.ticks?t.ticks.apply(t,n):t.domain()),m=i??(t.tickFormat?t.tickFormat.apply(t,n):ss),h=Math.max(a,0)+s,g=t.range(),_=+g[0]+c,v=+g[g.length-1]+c,y=(t.bandwidth?gs:hs)(t.copy(),c),b=f.selection?f.selection():f,x=b.selectAll(`.domain`).data([null]),S=b.selectAll(`.tick`).data(p,t).order(),C=S.exit(),w=S.enter().append(`g`).attr(`class`,`tick`),T=S.select(`line`),E=S.select(`text`);x=x.merge(x.enter().insert(`path`,`.tick`).attr(`class`,`domain`).attr(`stroke`,`currentColor`)),S=S.merge(w),T=T.merge(w.append(`line`).attr(`stroke`,`currentColor`).attr(u+`2`,l*a)),E=E.merge(w.append(`text`).attr(`fill`,`currentColor`).attr(u,l*h).attr(`dy`,e===cs?`0em`:e===us?`0.71em`:`0.32em`)),f!==b&&(x=x.transition(f),S=S.transition(f),T=T.transition(f),E=E.transition(f),C=C.transition(f).attr(`opacity`,fs).attr(`transform`,function(e){return isFinite(e=y(e))?d(e+c):this.getAttribute(`transform`)}),w.attr(`opacity`,fs).attr(`transform`,function(e){var t=this.parentNode.__axis;return d((t&&isFinite(t=t(e))?t:y(e))+c)})),C.remove(),x.attr(`d`,e===ds||e===ls?o?`M`+l*o+`,`+_+`H`+c+`V`+v+`H`+l*o:`M`+c+`,`+_+`V`+v:o?`M`+_+`,`+l*o+`V`+c+`H`+v+`V`+l*o:`M`+_+`,`+c+`H`+v),S.attr(`opacity`,1).attr(`transform`,function(e){return d(y(e)+c)}),T.attr(u+`2`,l*a),E.attr(u,l*h).text(m),b.filter(_s).attr(`fill`,`none`).attr(`font-size`,10).attr(`font-family`,`sans-serif`).attr(`text-anchor`,e===ls?`start`:e===ds?`end`:`middle`),b.each(function(){this.__axis=y})}return f.scale=function(e){return arguments.length?(t=e,f):t},f.ticks=function(){return n=Array.from(arguments),f},f.tickArguments=function(e){return arguments.length?(n=e==null?[]:Array.from(e),f):n.slice()},f.tickValues=function(e){return arguments.length?(r=e==null?null:Array.from(e),f):r&&r.slice()},f.tickFormat=function(e){return arguments.length?(i=e,f):i},f.tickSize=function(e){return arguments.length?(a=o=+e,f):a},f.tickSizeInner=function(e){return arguments.length?(a=+e,f):a},f.tickSizeOuter=function(e){return arguments.length?(o=+e,f):o},f.tickPadding=function(e){return arguments.length?(s=+e,f):s},f.offset=function(e){return arguments.length?(c=+e,f):c},f}function ys(e){return vs(us,e)}function bs(e){return vs(ds,e)}function xs(){let e=L(`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(t,n){let r=document.documentElement.clientWidth,i=e.node().offsetWidth,a=e.node().offsetHeight,o=t+i+16<r,s=o?t+16:t-i-16,c=n-a/2;return e.style(`transform`,`translate(${s}px, ${c}px)`).classed(`left right pointing`,!1).classed(o?`left`:`right`,!0).classed(`pointing`,!0),this},visible(t){return e.interrupt().transition().delay(t?0:100).duration(0).style(`visibility`,()=>t?null:`hidden`),this},content(t){return e.html(t),this}}}var Ss=function(e,t){let n=[],r=t.note;if((!t.item||t.item.length==0)&&!r)throw Error(`no data`);let i={top:15,right:10,bottom:50,left:15},a=xs();function o(t,n){let r=t.note?`<span class='note'>`+t.note+`</span>`:``,i=t.source&&t.source.publicationTitle?`<span class='source'>`+e.trilingual(`Source: `,`Quelle: `,`Source: `)+t.source.publicationTitle+`</span>`:``;return`<span class='name'>`+n+` `+t.year+`</span><span class='value'>`+t.formattedValue+`</span>`+r+i}for(let r of t.item){let t=r.data;if(!t)continue;let s=e.options.colors,c=typeof s==`string`?s.split(`|`):s;c??=t.colors;let l=t.title.substring(0,3),u=[],d=t.colorIndexes;for(let e=0;e<d.length;++e){let n=d[e],r=t.estimate[e]?`url(#diag`+l+n+`)`:c[n];u.push(r)}let f=Mn(`svg:defs`);f.selectAll(`pattern`).data(c).join(`svg:pattern`).attr(`id`,(e,t)=>`diag${l}${t}`).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`,e=>e).style(`stroke-width`,15);let[p,m]=Nr(t.data,e=>e.value0);m=Math.max(m,1),p=Math.min(p,0);let h=Math.min(5,Math.floor(Math.max(Math.abs(p),m))),g=document.createElement(`div`);g.setAttribute(`data-item`,r.item),e.showItem(r.title,g);let _=L(g).style(`height`,`100%`).append(`svg`).attr(`width`,`100%`).attr(`height`,`100%`);_.attr(`aria-label`,r.title),_.append(()=>f.node());let v=mo().domain(t.data.map(e=>e.year)).padding(.2),y=ys(v),b=_.append(`g`).classed(`x-axis`,!0),x=ts().domain([p,m]),S=bs(x).tickSizeInner(0).tickSizeOuter(0).ticks(h).tickFormat(e.i18n().createNumberFormatter(t.numberFormat,`,.0f`)),C=_.append(`g`).classed(`y-axis`,!0),w=_.append(`g`),T=_.append(`g`);n.push(()=>{let{width:e,height:n}=g.getBoundingClientRect();_.attr(`viewBox`,`0 0 ${e} ${n}`),x.range([n-i.bottom,i.top]),C.call(S).attr(`font-size`,null).attr(`font-family`,null).call(e=>e.selectAll(`.tick`).classed(`zero`,e=>e===0));let s=45;C.selectAll(`.tick > text`).each(function(){s=Math.max(s,this.getBBox().width)});let c=i.left+s;C.attr(`transform`,`translate(${c},0)`).selectAll(`.tick > line`).attr(`x2`,e-c-i.right),v.range([c,e-i.right]),y.tickSizeInner(-(n-i.top-i.bottom)),b.attr(`transform`,`translate(0,${n-i.bottom})`).call(y).call(e=>e.select(`.domain`).remove()).attr(`font-size`,null).attr(`font-family`,null);let l=e=>Math.abs(x(0)-x(e));T.selectAll(`rect`).data(t.data).join(`rect`).attr(`x`,e=>v(e.year)).attr(`y`,e=>x(Math.max(e.value0,0))).attr(`height`,e=>Math.max(l(e.value0),1)).attr(`width`,v.bandwidth()).attr(`fill`,(e,t)=>u[t]),w.selectAll(`rect`).data(t.data.filter(e=>l(e.value0)<45)).join(`rect`).attr(`x`,e=>v(e.year)).attr(`y`,e=>{let t=e.value0>0?45:0;return x(0)-t}).attr(`height`,45).attr(`width`,v.bandwidth()).attr(`fill`,`transparent`),_.selectAll(`g > rect`).on(`mousemove`,e=>{a.position(e.clientX,e.clientY)}).on(`mouseover`,(e,t)=>{a.content(o(t,r.title)).visible(!0)}).on(`mouseout`,()=>{a.visible(!1)})})}if(r){let t=document.createElement(`div`),n=L(t).classed(`note`,!0).html(r);e.markup(n),e.container.appendChild(t)}return{draw:function(){for(let e of n)e()}}},Cs=function(e,t){if(t){let n=e.handlerValue(`load`);n&&n(t)}return D};function ws(e,t){return e.parent===t.parent?1:2}function Ts(e){return e.reduce(Es,0)/e.length}function Es(e,t){return e+t.x}function Ds(e){return 1+e.reduce(Os,0)}function Os(e,t){return Math.max(e,t.y)}function ks(e){for(var t;t=e.children;)e=t[0];return e}function As(e){for(var t;t=e.children;)e=t[t.length-1];return e}function js(){var e=ws,t=1,n=1,r=!1;function i(i){var a,o=0;i.eachAfter(function(t){var n=t.children;n?(t.x=Ts(n),t.y=Ds(n)):(t.x=a?o+=e(t,a):0,t.y=0,a=t)});var s=ks(i),c=As(i),l=s.x-e(s,c)/2,u=c.x+e(c,s)/2;return i.eachAfter(r?function(e){e.x=(e.x-i.x)*t,e.y=(i.y-e.y)*n}:function(e){e.x=(e.x-l)/(u-l)*t,e.y=(1-(i.y?e.y/i.y:1))*n})}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i}function Ms(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function Ns(){return this.eachAfter(Ms)}function Ps(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this}function Fs(e,t){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(e.call(t,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}function Is(e,t){for(var n=this,r=[n],i=[],a,o,s,c=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o<s;++o)r.push(a[o]);for(;n=i.pop();)e.call(t,n,++c,this);return this}function Ls(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r}function Rs(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}function zs(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function Bs(e){for(var t=this,n=Vs(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function Vs(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function Hs(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function Us(){return Array.from(this)}function Ws(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function Gs(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*Ks(){var e=this,t,n=[e],r,i,a;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,a=r.length;i<a;++i)n.push(r[i]);while(n.length)}function qs(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=Xs)):t===void 0&&(t=Ys);for(var n=new $s(e),r,i=[n],a,o,s,c;r=i.pop();)if((o=t(r.data))&&(c=(o=Array.from(o)).length))for(r.children=o,s=c-1;s>=0;--s)i.push(a=o[s]=new $s(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(Qs)}function Js(){return qs(this).eachBefore(Zs)}function Ys(e){return e.children}function Xs(e){return Array.isArray(e)?e[1]:null}function Zs(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function Qs(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function $s(e){this.data=e,this.depth=this.height=0,this.parent=null}$s.prototype=qs.prototype={constructor:$s,count:Ns,each:Ps,eachAfter:Is,eachBefore:Fs,find:Ls,sum:Rs,sort:zs,path:Bs,ancestors:Hs,descendants:Us,leaves:Ws,links:Gs,copy:Js,[Symbol.iterator]:Ks};function ec(e){if(typeof e!=`function`)throw Error();return e}function tc(){return 0}function nc(e){return function(){return e}}function rc(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function ic(e,t,n,r,i){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(r-t)/e.value;++s<c;)o=a[s],o.y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*l}function ac(e,t,n,r,i){for(var a=e.children,o,s=-1,c=a.length,l=e.value&&(i-n)/e.value;++s<c;)o=a[s],o.x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*l}var oc=(1+Math.sqrt(5))/2;function sc(e,t,n,r,i,a){for(var o=[],s=t.children,c,l,u=0,d=0,f=s.length,p,m,h=t.value,g,_,v,y,b,x,S;u<f;){p=i-n,m=a-r;do g=s[d++].value;while(!g&&d<f);for(_=v=g,x=Math.max(m/p,p/m)/(h*e),S=g*g*x,b=Math.max(v/S,S/_);d<f;++d){if(g+=l=s[d].value,l<_&&(_=l),l>v&&(v=l),S=g*g*x,y=Math.max(v/S,S/_),y>b){g-=l;break}b=y}o.push(c={value:g,dice:p<m,children:s.slice(u,d)}),c.dice?ic(c,n,r,i,h?r+=m*g/h:a):ac(c,n,r,h?n+=p*g/h:i,a),h-=g,u=d}return o}var cc=(function e(t){function n(e,n,r,i,a){sc(t,e,n,r,i,a)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n})(oc);function lc(){var e=cc,t=!1,n=1,r=1,i=[0],a=tc,o=tc,s=tc,c=tc,l=tc;function u(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(d),i=[0],t&&e.eachBefore(rc),e}function d(t){var n=i[t.depth],r=t.x0+n,u=t.y0+n,d=t.x1-n,f=t.y1-n;d<r&&(r=d=(r+d)/2),f<u&&(u=f=(u+f)/2),t.x0=r,t.y0=u,t.x1=d,t.y1=f,t.children&&(n=i[t.depth+1]=a(t)/2,r+=l(t)-n,u+=o(t)-n,d-=s(t)-n,f-=c(t)-n,d<r&&(r=d=(r+d)/2),f<u&&(u=f=(u+f)/2),e(t,r,u,d,f))}return u.round=function(e){return arguments.length?(t=!!e,u):t},u.size=function(e){return arguments.length?(n=+e[0],r=+e[1],u):[n,r]},u.tile=function(t){return arguments.length?(e=ec(t),u):e},u.padding=function(e){return arguments.length?u.paddingInner(e).paddingOuter(e):u.paddingInner()},u.paddingInner=function(e){return arguments.length?(a=typeof e==`function`?e:nc(+e),u):a},u.paddingOuter=function(e){return arguments.length?u.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):u.paddingTop()},u.paddingTop=function(e){return arguments.length?(o=typeof e==`function`?e:nc(+e),u):o},u.paddingRight=function(e){return arguments.length?(s=typeof e==`function`?e:nc(+e),u):s},u.paddingBottom=function(e){return arguments.length?(c=typeof e==`function`?e:nc(+e),u):c},u.paddingLeft=function(e){return arguments.length?(l=typeof e==`function`?e:nc(+e),u):l},u}function J(e){return function(){return e}}var uc=Math.PI,dc=2*uc,fc=1e-6,pc=dc-fc;function mc(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function hc(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return mc;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var gc=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?mc:hc(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>fc)if(!(Math.abs(u*s-c*l)>fc)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((uc-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>fc&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>fc||Math.abs(this._y1-l)>fc)&&this._append`L${c},${l}`,n&&(d<0&&(d=d%dc+dc),d>pc?this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`:d>fc&&this._append`A${n},${n},0,${+(d>=uc)},${u},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};function _c(){return new gc}_c.prototype=gc.prototype;function vc(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new gc(t)}var yc=Array.prototype.slice;function bc(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function xc(e){this._context=e}xc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function Sc(e){return new xc(e)}function Cc(e){return e[0]}function wc(e){return e[1]}function Tc(e,t){var n=J(!0),r=null,i=Sc,a=null,o=vc(s);e=typeof e==`function`?e:e===void 0?Cc:J(e),t=typeof t==`function`?t:t===void 0?wc:J(t);function s(s){var c,l=(s=bc(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:J(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:J(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:J(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}var Ec=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}this._x0=e,this._y0=t}};function Dc(e){return new Ec(e,!0)}function Oc(e){return e.source}function kc(e){return e.target}function Ac(e){let t=Oc,n=kc,r=Cc,i=wc,a=null,o=null,s=vc(c);function c(){let c,l=yc.call(arguments),u=t.apply(this,l),d=n.apply(this,l);if(a??(o=e(c=s())),o.lineStart(),l[0]=u,o.point(+r.apply(this,l),+i.apply(this,l)),l[0]=d,o.point(+r.apply(this,l),+i.apply(this,l)),o.lineEnd(),c)return o=null,c+``||null}return c.source=function(e){return arguments.length?(t=e,c):t},c.target=function(e){return arguments.length?(n=e,c):n},c.x=function(e){return arguments.length?(r=typeof e==`function`?e:J(+e),c):r},c.y=function(e){return arguments.length?(i=typeof e==`function`?e:J(+e),c):i},c.context=function(t){return arguments.length?(t==null?a=o=null:o=e(a=t),c):a},c}function jc(){return Ac(Dc)}function Mc(e){return Tc().x(function(t){return e*t.x}).y(function(t){return e*t.y}).curve(Sc)([{x:0,y:0},{x:1,y:.5},{x:1,y:-.5},{x:0,y:0}])}function Nc(e,t,n,r,i,a,o=0){e.each(function(){let e=L(this),s=e.select(t).node(),c=e.select(n).node();if(s&&c&&s.textContent){let t=s.getBBox(),n=Number(e.attr(`data-dx`));if(n!=0){let e=t.x,i=-n+r,o=a-r-t.width-n;e<i?(t.x=i,L(s).attr(`x`,i-e)):e>o&&(t.x=o,L(s).attr(`x`,o-e))}L(c).attr(`width`,t.width+r*2).attr(`height`,t.height+i*2).attr(`x`,t.x-r).attr(`y`,t.y-i).attr(`rx`,o).attr(`ry`,o)}})}function Pc(e,t=!1){if(zn())return;e.reverse();let n=[],r=[];for(let i of e){let e=t&&i.classList.contains(`link`)?r:n;e.includes(i)||e.push(i)}if(r.reverse(),n.reverse(),Fc(r))for(let e of r)e.parentNode?.appendChild(e);if(Fc(n))for(let e of n)e.parentNode?.appendChild(e)}function Fc(e){let t=e[0];if(!t)return!1;let n=e.length,r=t.parentNode?.childNodes??[];for(let t=0;t<n;++t)if(r[r.length-n+t]!=e[t])return!0;return!1}function Ic(e,t,n,r,i={}){let a=e.container.getBoundingClientRect().width;function o(e){return t.select(`.node[data-id='`+e+`']`)}function s(){return t.select(`[data-root]`)}let c;function l(e){let n=e.id,s=n==r?`root`:`node`,l=o(n).attr(`data-highlight`,s).classed(`hovered`,!0);l.select(`.text`).text(e.desc),Nc(l,`.text`,`.text-bg`,i.denseLeaves?2:5,2,a);let u=t.selectAll(`[data-source-id='`+n+`'],[data-target-id='`+n+`']`).attr(`data-highlight`,s);Nc(u,`.desc`,`.desc-bg`,3,2,a),window.clearTimeout(c);let d=[];u.each(function(e){d.push(this);function t(e){e!=n&&d.push(o(e).node())}t(e.source.id),t(e.target.id)}),d.push(l.node()),Pc(d,i.separateLinksContainer)}function u(){let e=[];t.select(`.node`).each(function(){e.push(this)}),e.push(s().node()),Pc(e)}function d(e){t.selectAll(`[data-highlight]`).attr(`data-highlight`,`false`).classed(`hovered`,!1),t.select(`.node[data-id='`+e.id+`']`).select(`.text`).text(e.text).attr(`x`,0),c=window.setTimeout(u,1e3)}let f=t.select(`g.nodes`);f.empty()&&(f=t.append(`g`).attr(`class`,`nodes`)),f.style(`pointer-events`,`all`);let p=f.selectAll(`.node`).data(n),m=e=>e.clickable||!e.root,h=p.enter().append(`svg:a`).attr(`class`,`node`).attr(`data-leaf`,e=>!e.children||e.children.length==0).attr(`data-id`,e=>e.id).attr(`data-root`,e=>e.root).attr(`data-old`,e=>e.old??null).attr(`data-warning`,e=>e.warning??null).attr(`data-color`,e=>e.color??null).attr(`data-d`,e=>e.distance??null).attr(`xlink:href`,function(e){return e.url||``}).attr(`data-clickable`,t=>m(t)&&e.getClickHandler(t.type)?!0:null).on(`click`,function(t,n){m(n)&&e.invokeClickHandler(n.query,n.type)&&t.preventDefault()});return Rn(`mouseover`,f.node(),h,l),Rn(`mouseout`,f.node(),h,d),h.append(`circle`).attr(`r`,20),h.append(`text`).attr(`class`,`icon`).text(e=>e.icon),h.append(`rect`).attr(`class`,`text-bg`),h.append(`text`).attr(`class`,`text`).text(e=>e.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(e=>e.warning??``),u(),h}function Lc(e,t,n){let r=e.container.getBoundingClientRect().width,i=t.select(`g.nodes`),a=t.append(`g`).attr(`class`,`highlight-container`).attr(`style`,`pointer-events: none;`);function o(e){return t.select(`.node[data-id='`+e+`']`)}function s(){return t.select(`[data-root]`)}let c;function l(e){let t=e.getAttribute(`data-id`),a=e.getAttribute(`data-root`)==`true`?`root`:`node`;L(e).attr(`data-highlight`,a).classed(`hovered`,!0);var s=e.querySelector(`.text`);s&&(s.textContent=e.getAttribute(`data-description`)),Nc(L(e),`.text`,`.text-bg`,n?2:5,2,r);let l=i.selectAll(`.link[data-source-id='`+t+`'],.link[data-target-id='`+t+`']`).attr(`data-highlight`,a);Nc(l,`.desc`,`.desc-bg`,3,2,r),window.clearTimeout(c);let u=[];l.each(function(){var e=this;u.push(e);function n(e){e!=t&&u.push(o(e).node())}n(e.getAttribute(`data-source-id`)||``),n(e.getAttribute(`data-target-id`)||``)}),u.push(e),Pc(u)}function u(e){let t=L(e).clone(!0);t.attr(`data-highlight`,`link`).selectAll(`:not(.desc, .desc-bg)`).remove();let n=t.node();n&&(a.html(null),a.node()?.append(n))}function d(){t.selectAll(`[data-highlight]`).attr(`data-highlight`,`false`).classed(`hovered`,!1)}function f(){let e=[];t.select(`.node`).each(function(){e.push(this)}),e.push(s().node()),Pc(e)}function p(e){d();let n=e.getAttribute(`data-id`);t.select(`.node[data-id='`+n+`']`).select(`.text`).text(e.getAttribute(`data-text`)||``).attr(`x`,0),c=window.setTimeout(f,1e3)}i.selectAll(`.node`).each(function(){let t=this,n=t.getAttribute(`data-root`)==`true`,r=e.getLinkifier();if(!n){let n=t.getAttribute(`data-type`)||``,i=t.getAttribute(`data-query`)||``;L(t).attr(`xlink:href`,r(t)).attr(`data-clickable`,e.getClickHandler(n)?`true`:`false`).on(`click`,function(t){e.invokeClickHandler(i,n)&&t.preventDefault()})}}),i.selectAll(`.node`).on(`mouseover`,function(){l(this)}).on(`mouseout`,function(){p(this)}),i.selectAll(`.link`).on(`mouseover`,function(){u(this)}).on(`mouseout`,function(){d()}),f()}var Rc=function(e,t){let n=e.container;L(n).selectAll(`.shake`).style(`display`,`none`);let r=t.size>=10,i=t.scope,a=L(n).append(`svg`).attr(`class`,t.svgClass).attr(`data-dense`,r).attr(`aria-label`,t.desc);function o(){let o=n.getBoundingClientRect().width,s={left:-o/6,right:o/6,top:-20,bottom:38},c={left:-8,right:o/3-8,top:-8,bottom:8},l=r?c:s,u=s,d=[s.bottom-s.top,s.right-s.left],f=[c.bottom-c.top,c.right-c.left],p=r?f:d,m=r?7:12,h=1.5,g=js().nodeSize(p).separation(function(e,t){let n=e.parent==t.parent;if(r){if(n)return 1;{let n=(e.parent.children.length+t.parent.children.length)*1/2+h,r=5-n;return n<5?h+r:h}}else return n?1:1.4})(qs(t)),_=e=>({...e.data,x:e.x,y:e.y,depth:e.depth}),v=g.descendants().map(_),y=g.links().map(e=>({target:_(e.target),source:_(e.source)})),b,x=0;for(let e of v)e.root&&(b=e,i===`publication`&&(e.clickable=!0)),x=Math.max(x,e.depth);a.select(`g`).remove();let S=a.append(`g`),C=S.append(`g`).selectAll(`.link`).data(y),w=e=>e.target.edge,T=C.enter().append(`g`).attr(`class`,`link`).attr(`data-source-id`,e=>e.source.id).attr(`data-target-id`,e=>e.target.id).attr(`data-old`,e=>w(e)?.old??null).attr(`data-warn`,e=>w(e)?.warn??null).attr(`data-color`,e=>w(e)?.color??null).attr(`data-head`,e=>w(e)?.head??null).attr(`data-tail`,e=>w(e)?.tail??null);T.append(`path`).attr(`class`,`line`),T.append(`path`).attr(`class`,`head`).attr(`d`,Mc(m)),T.append(`path`).attr(`class`,`tail`).attr(`d`,Mc(m));let E=Ic(e,S,v,b?b.id:void 0,{denseLeaves:r,separateLinksContainer:!0}),D=(e,t)=>`translate(`+e+`,`+t+`)`,O=function(e){let t=e=>!e.children||e.children.length===0,n=e=>t(e)?l:u,i=e=>e.y+n(e).left,a=e=>e.y+n(e).right,o=e=>e.x+n(e).top,s=e=>e.x+n(e).bottom,c=[qr(v,i),Kr(v,a)],d=qr(v,o),f=Kr(v,s),p=Nr(v,e=>e.x),m=p[1]-p[0],h=ts().domain(c).range([0,e]),g=ts().domain(p).range([0,m]),_=e=>h(r&&t(e)?i(e):e.y),y=e=>g(e.x),b=e=>D(_(e),y(e)),x=jc().x(e=>_(e)).y(e=>y(e)),S=Math.max(10,(150-(f-d))/2),C=f-p[1]+S,w=p[0]-d+S;return{height:m+C+w,diagonal:x,nodeTransform:b,headTransform:e=>b(e.target)+` `+D(r&&t(e.target)?0:-20,0)+` rotate(180)`,tailTransform:e=>b(e.source)+` `+D(20,0),canvasTransform:D(0,w)}}(o);Fn(n,O.height),a.attr(`width`,`100%`).attr(`height`,`100%`).attr(`viewBox`,`0 0 ${o} ${O.height}`),S.attr(`transform`,O.canvasTransform),E.attr(`transform`,O.nodeTransform),T.select(`.line`).attr(`d`,O.diagonal),T.select(`.head`).attr(`transform`,O.headTransform),T.select(`.tail`).attr(`transform`,O.tailTransform)}return{draw:o}},zc=function(e,t){if(!t.item||t.item.length==0)throw Error(`no data`);let n=[];for(let r of t.item){let t=r.data,i=document.createElement(`div`),a=L(i).attr(`data-item`,r.item).attr(`class`,`root`),o=a.append(`div`).attr(`class`,`box-parent`);e.showItem(r.title,i);let s=L(e.nodeValue(`legend1`)??null);s.empty()&&(s=a.selectAll(`.legend1`));let c=L(e.nodeValue(`legend2`)??null);c.empty()&&(c=a.selectAll(`.legend2`));let l=L(e.nodeValue(`legend3`)??null);if(l.empty()&&(l=a.selectAll(`.legend3`)),s.empty()||c.empty()||l.empty()){let e=a.selectAll(`.legends`);e.empty()&&(e=a.append(`div`).attr(`class`,`legends`)),s.empty()&&(s=e.append(`span`).attr(`class`,`legend1`)),c.empty()&&(c=e.append(`span`).attr(`class`,`legend2`)),l.empty()&&(l=e.append(`span`).attr(`class`,`legend3`))}e.booleanValue(`hideLegend1`)&&s.classed(`hidden`,!0),e.booleanValue(`hideLegend2`)&&c.classed(`hidden`,!0),e.booleanValue(`hideLegend3`)&&l.classed(`hidden`,!0),l.text(eo(`As of: `,`Stand: `,`Date de `)+r.date);let u=e.i18n().createNumberFormatter(t.numberFormat,`,.3r`),d=null,f=function(e,t){t.children||(!d||d==t)&&(o.classed(`highlighting`,!0),Nn(`.highlighted`).classed(`highlighted`,!1),L(e).classed(`highlighted`,!0),g(t))},p=function(){d||(o.classed(`highlighting`,!1),Nn(`.highlighted`).classed(`highlighted`,!1),g(t.default??t.root))},m=function(e,t){d==t?(d=null,p()):(d=t,f(e,t))},h=function(e){return!!e&&e.indexOf(`Fehlbetrag`)>=0},g=function(e){s.text((e.formattedValue??u(e.raw))+` `),c.text(e.name)};p(),function(t){function n(e,t,r,i){e.color=t.toString();let a=r;if(e.children){let o=e.children.length+1;if(o>0){let s=(i-r)/o;for(let r of e.children)t.h=a%360,n(r,t,a,a+s),a+=s}}}let r=e.getRootColor();n(t,r,r.h,r.h+360)}(t.root),n.push(function(){let e=o.node().getBoundingClientRect();if(e.width==0||e.height==0)return;let n=qs(t.root).sum(e=>e.children?0:Math.abs(e.raw)).sort((e,t)=>Er(e.value,t.value)),r=lc().size(Pn(e)).round(!0)(n),i=e=>e.x1-e.x0,a=e=>e.y1-e.y0,s=o.selectAll(`.box`).data(r.descendants()),c=s.enter().append(`div`).attr(`class`,`box`).on(`mouseenter`,function(e,t){f(this,t.data)}).on(`mouseleave`,p).on(`click`,function(e,t){m(this,t.data)}).attr(`data-neg`,e=>!!(e.data.raw<0||h(e.data.name)));c.append(`div`).attr(`class`,`value`).text(e=>e.children?null:e?.data?.formattedValue??u(e.value)),c.append(`div`).attr(`class`,`desc`).text(e=>e.children?null:e.data.name),c.merge(s).attr(`data-small`,e=>i(e)<40||a(e)<32||null).style(`left`,e=>e.x0+`px`).style(`top`,e=>e.y0+`px`).style(`width`,e=>Math.max(0,i(e)-1)+`px`).style(`height`,e=>Math.max(0,a(e)-1)+`px`).style(`background`,e=>e.children?`white`:e.data.color)})}return{draw:function(){for(let e of n)e()}}},Bc=function(e,t){let n=t&&t.financials&&t.financials.filter(e=>e.items.length>0),r=e.isReverseChronology();if(n&&n.length>0&&n[0].items.length>0){let a=document.createElement(`table`),o=L(a).attr(`class`,`ui bizq very compact celled small unstackable striped selectable first stuck table`),s=o.append(`thead`).append(`tr`),c=o.append(`tbody`),l=o.append(`tfoot`).append(`tr`);var i={};for(let e of n){e.itemsById={};for(let t of e.items)e.itemsById[t.id]=t,i[t.id]=t}let u=n[n.length-1];r&&n.reverse();let d=e.stringValue(`title`),f=s.append(`th`).attr(`class`,`first`);e.booleanValue(`hideTitleCell`)||f.text(d),f.append(`a`).attr(`href`,t.csvUrl).attr(`download`,`download`).attr(`title`,`CSV/Excel Download`).classed(`screen-only`,!0).append(`i`).attr(`class`,`download icon`);for(let e of n)s.append(`th`).text(e.formattedDate);for(let t in i){let r=c.append(`tr`).attr(`class`,`active-on-hover`),a=i[t];r.append(`td`).text(a.name);for(let i of n){let n=i.itemsById[t],a=r.append(`td`);if(n){let t=n.value>=0?`pos`:`neg`,r=n.formattedValue;a.append(`span`).attr(`class`,t+` value`).text(r),n.estimate&&a.append(`a`).attr(`href`,`javascript:void()`).attr(`title`,e.trilingual(`Unsafe value (estimation or indirect determination)`,`Indirekte oder unsichere Bestimmungsmethode`,`Valeur non sûre (estimation ou détermination indirecte)`)).html(` * `),n.note&&a.append(`span`).attr(`class`,`note`).text(n.note)}else a.append(`span`).text(`N/A`)}}if(u.source){if(u.source.auditorName){let t=c.append(`tr`).attr(`class`,`active-on-hover`);t.append(`td`).text(e.trilingual(`Auditor`,`Prüfer`,`Auditeur`));for(let e of n){let n=e.source&&e.source.auditorName;t.append(`td`).append(`span`).attr(`class`,`auditor value`).text(n||`N/A`)}}if(u.source&&u.source.publicationDate){let t=c.append(`tr`).attr(`class`,`active-on-hover`);t.append(`td`).text(e.trilingual(`Publication date`,`Veröffentlichungsdatum`,`Date de publication`));for(let r of n){let n=r.source&&r.source.publicationDate;t.append(`td`).append(`span`).attr(`class`,`date value`).text(n?e.i18n().dateFormatter(new Date(n)):`N/A`)}}l.append(`th`).text(e.trilingual(`Source`,`Quelle`,`Source`));let t=e.handlerValue(`sourceClick`);for(let e of n){let n=l.append(`th`);n.html(e.note.html),t&&n.selectAll(`a`).attr(`href`,`javascript:void(0);`).on(`click`,function(n){n.preventDefault(),t(e.source)})}}e.showItem(d,a)}else throw Error(`no data available`);return D},Vc=function(e,t){if(t.children)return Rc(e,t);let n=t.type==`orgchart`,r=e.container;if(t.html)return r.innerHTML=t.html,t.legendHtml||L(r).selectAll(`foreignObject:has(> .extended-legend-button)`).remove(),Nc(L(r).selectAll(`.link`),`.desc`,`.desc-bg`,3,3,1e3),Lc(e,L(r).select(`svg`),!1),{draw:function(){}};if(!t.nodes||t.nodes.length<2)throw Error(`graph empty or single node`);let i,a={},o=t.nodes.length,s=!1;for(let e of t.nodes)e.root&&(i=e),e.warning&&(s=!0),a[e.id]=e;for(let e of t.links)e.source=a[e.source],e.target=a[e.target],(!e.source||!e.target)&&$.log(`error`,`broken link: `,e);let c=L(r).append(`svg`).attr(`width`,`100%`).attr(`height`,`100%`).attr(`aria-label`,eo(`Network`,`Netzwerk`,`Réseau`)),l=c.append(`g`).attr(`class`,`nodes`).selectAll(`.link`).data(t.links),u=c.append(`g`).attr(`class`,`legend`);n||(u.append(`line`).attr(`data-old`,!1),u.append(`line`).attr(`data-old`,!0)),s&&u.append(`line`).attr(`data-warn`,!0),u.append(`text`).attr(`data-old`,!1).text(e.trilingual(`currently`,`aktuell`,`actuel`)),u.append(`text`).attr(`data-old`,!0).text(e.trilingual(`previously`,`vormals`,`auparavant`)),s&&u.append(`text`).attr(`data-warn`,!0).text(e.trilingual(`politically exposed`,`politisch exponiert`,`politiquement exposé`));function d(e){if(e.type==`SameAddress`)return`3, 3`;if(e.type==`CommonFiling`)return`6, 6`}let f=l.enter().append(`g`).attr(`class`,`link`).attr(`data-source-id`,e=>e.source.id).attr(`data-target-id`,e=>e.target.id).attr(`data-head`,e=>e.head).attr(`data-tail`,e=>e.tail).attr(`data-old`,e=>e.old).attr(`data-warn`,e=>e.warn).attr(`data-length`,e=>e.length).attr(`data-helper`,e=>e.helper);if(n)for(var p=0;p<3;++p)f.append(`line`).attr(`class`,`line`).attr(`class`,`segment`+p).attr(`stroke-width`,1).attr(`stroke`,`#000000`);else f.append(`line`).attr(`class`,`line`).attr(`stroke-width`,1).attr(`stroke`,`#000000`).attr(`stroke-dasharray`,e=>d(e));f.append(`rect`).attr(`class`,`desc-bg`),f.append(`text`).attr(`class`,`desc`).attr(`text-anchor`,`middle`).text(e=>e.text),f.append(`path`).attr(`class`,`head`).attr(`d`,Mc(12)),f.append(`path`).attr(`class`,`tail`).attr(`d`,Mc(12));let m=Ic(e,c,t.nodes,i.id),h=0,g=!0,_=function(){if(g||h++%3!=0)return;function e(e,t){return(t[1]-t[0])/(e[1]-e[0])}function i(e){return(e[1]+e[0])/2}let a=r.getBoundingClientRect(),s=a.width,l=a.height,u=Nr(t.nodes,e=>e.x),d=Nr(t.nodes,e=>e.y),p=[100,s-100],_=n?d:[40,(o==2?120:l)-1.5*40],v=i(u),y=i(p),b=i(d),x=i(_),S=e(u,p),C=e(d,_),w=o==2?2:t.diameter*1.1;S=Math.min(S,C*w),o==2&&(C=0,S*=2,Fn(r,120));let T=e=>(e-v)*S+y,E=e=>(e-b)*C+x,D=e=>T(e.source.x),O=e=>T(e.target.x),ee=e=>E(e.source.y),te=e=>E(e.target.y),k=e=>O(e)-D(e),A=e=>te(e)-ee(e),j=e=>(O(e)-D(e))/2,M=e=>(te(e)-ee(e))/2,ne=e=>180/Math.PI*Math.atan2(A(e),k(e)),re=e=>{let t=180/Math.PI*Math.atan2(A(e),k(e));return t>90&&t<270?t-=180:t<-90&&t>-270&&(t+=180),t};f.attr(`transform`,e=>`translate(`+D(e)+` `+ee(e)+`)`),f.select(`line`).attr(`x1`,0).attr(`y1`,0).attr(`x2`,k).attr(`y2`,A),f.select(`.segment0`).attr(`x1`,0).attr(`y1`,0).attr(`x2`,0).attr(`y2`,M),f.select(`.segment1`).attr(`x1`,0).attr(`y1`,M).attr(`x2`,k).attr(`y2`,M),f.select(`.segment2`).attr(`x1`,k).attr(`y1`,M).attr(`x2`,k).attr(`y2`,A);let ie=e=>`rotate(`+re(e)+` `+j(e)+` `+M(e)+` ) translate(0 -7)`;if(f.select(`.desc`).attr(`x`,j).attr(`y`,M).attr(`transform`,ie),f.select(`.desc-bg`).attr(`x`,j).attr(`y`,M).attr(`transform`,ie),!n){let e=e=>k(e)+0,t=e=>A(e)+0;f.select(`.tail`).attr(`transform`,e=>`rotate(`+ne(e)+`) translate(20 0)`),f.select(`.head`).attr(`transform`,n=>`translate(`+e(n)+` `+t(n)+`) rotate(`+(180+ne(n))+`) translate(20 0)`)}let N=_[1]+40/2,ae=N-18,oe=N+18;c.selectAll(`.legend line`).attr(`x1`,50).attr(`x2`,90),c.selectAll(`.legend line[data-old='false'`).attr(`y1`,ae).attr(`y2`,ae),c.selectAll(`.legend line[data-old='true'`).attr(`y1`,N).attr(`y2`,N),c.selectAll(`.legend line[data-warn='true'`).attr(`y1`,oe).attr(`y2`,oe),c.selectAll(`.legend text`).attr(`x`,95),c.selectAll(`.legend text[data-old='false'`).attr(`y`,ae+3),c.selectAll(`.legend text[data-old='true'`).attr(`y`,N+3),c.selectAll(`.legend text[data-warn='true'`).attr(`y`,oe+3),Nc(f,`.desc`,`.desc-bg`,3,3,1e3),m.attr(`data-dx`,e=>T(e.x)).attr(`transform`,e=>`translate(`+T(e.x)+`,`+E(e.y)+`)`)};function v(){let[e,t]=Pn(r.getBoundingClientRect());c.attr(`viewBox`,`0 0 `+e+` `+t),g=!1,_()}return{draw:v}},Hc={value:()=>{}};function Uc(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new Wc(n)}function Wc(e){this._=e}function Gc(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}Wc.prototype=Uc.prototype={constructor:Wc,on:function(e,t){var n=this._,r=Gc(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=Kc(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=qc(n[i],e.name,t);else if(t==null)for(i in n)n[i]=qc(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new Wc(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function Kc(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function qc(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Hc,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var Jc=0,Yc=0,Xc=0,Zc=1e3,Qc,$c,el=0,tl=0,nl=0,rl=typeof performance==`object`&&performance.now?performance:Date,il=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function al(){return tl||=(il(ol),rl.now()+nl)}function ol(){tl=0}function sl(){this._call=this._time=this._next=null}sl.prototype=cl.prototype={constructor:sl,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?al():+n)+(t==null?0:+t),!this._next&&$c!==this&&($c?$c._next=this:Qc=this,$c=this),this._call=e,this._time=n,pl()},stop:function(){this._call&&(this._call=null,this._time=1/0,pl())}};function cl(e,t,n){var r=new sl;return r.restart(e,t,n),r}function ll(){al(),++Jc;for(var e=Qc,t;e;)(t=tl-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Jc}function ul(){tl=(el=rl.now())+nl,Jc=Yc=0;try{ll()}finally{Jc=0,fl(),tl=0}}function dl(){var e=rl.now(),t=e-el;t>Zc&&(nl-=t,el=e)}function fl(){for(var e,t=Qc,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:Qc=n);$c=e,pl(r)}function pl(e){Jc||(Yc&&=clearTimeout(Yc),e-tl>24?(e<1/0&&(Yc=setTimeout(ul,e-rl.now()-nl)),Xc&&=clearInterval(Xc)):(Xc||=(el=rl.now(),setInterval(dl,Zc)),Jc=1,il(ul)))}function ml(e,t,n){var r=new sl;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var hl=Uc(`start`,`end`,`cancel`,`interrupt`),gl=[];function _l(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;yl(e,n,{name:t,index:r,group:i,on:hl,tween:gl,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function vl(e,t){var n=X(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function Y(e,t){var n=X(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function X(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function yl(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=cl(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return ml(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(ml(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function bl(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function xl(e){return this.each(function(){bl(this,e)})}function Sl(e,t){var n,r;return function(){var i=Y(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function Cl(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=Y(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function wl(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=X(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?Sl:Cl)(n,e,t))}function Tl(e,t,n){var r=e._id;return e.each(function(){var e=Y(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return X(e,r).value[t]}}function El(e,t){var n;return(typeof t==`number`?q:t instanceof _e?bo:(n=_e(t))?(t=n,bo):Ao)(e,t)}function Dl(e){return function(){this.removeAttribute(e)}}function Ol(e){return function(){this.removeAttributeNS(e.space,e.local)}}function kl(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function Al(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function jl(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Ml(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function Nl(e,t){var n=Fe(e),r=n===`transform`?Vo:El;return this.attrTween(e,typeof t==`function`?(n.local?Ml:jl)(n,r,Tl(this,`attr.`+e,t)):t==null?(n.local?Ol:Dl)(n):(n.local?Al:kl)(n,r,t))}function Pl(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Fl(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Il(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Fl(e,i)),n}return i._value=t,i}function Ll(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Pl(e,i)),n}return i._value=t,i}function Rl(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=Fe(e);return this.tween(n,(r.local?Il:Ll)(r,t))}function zl(e,t){return function(){vl(this,e).delay=+t.apply(this,arguments)}}function Bl(e,t){return t=+t,function(){vl(this,e).delay=t}}function Vl(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?zl:Bl)(t,e)):X(this.node(),t).delay}function Hl(e,t){return function(){Y(this,e).duration=+t.apply(this,arguments)}}function Ul(e,t){return t=+t,function(){Y(this,e).duration=t}}function Wl(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Hl:Ul)(t,e)):X(this.node(),t).duration}function Gl(e,t){if(typeof t!=`function`)throw Error();return function(){Y(this,e).ease=t}}function Kl(e){var t=this._id;return arguments.length?this.each(Gl(t,e)):X(this.node(),t).ease}function ql(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();Y(this,e).ease=n}}function Jl(e){if(typeof e!=`function`)throw Error();return this.each(ql(this._id,e))}function Yl(e){typeof e!=`function`&&(e=qe(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new Z(r,this._parents,this._name,this._id)}function Xl(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new Z(o,this._parents,this._name,this._id)}function Zl(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function Ql(e,t,n){var r,i,a=Zl(t)?vl:Y;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function $l(e,t){var n=this._id;return arguments.length<2?X(this.node(),n).on.on(e):this.each(Ql(n,e,t))}function eu(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function tu(){return this.on(`end.remove`,eu(this._id))}function nu(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=Be(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,_l(l[f],t,n,f,l,X(u,n)));return new Z(a,this._parents,t,n)}function ru(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=We(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=X(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&_l(p,t,n,h,f,m);a.push(f),o.push(u)}return new Z(a,o,t,n)}var iu=An.prototype.constructor;function au(){return new iu(this._groups,this._parents)}function ou(e,t){var n,r,i;return function(){var a=Lt(this,e),o=(this.style.removeProperty(e),Lt(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function su(e){return function(){this.style.removeProperty(e)}}function cu(e,t,n){var r,i=n+``,a;return function(){var o=Lt(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function lu(e,t,n){var r,i,a;return function(){var o=Lt(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),Lt(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function uu(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=Y(this,e),l=c.on,u=c.value[a]==null?s||=su(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function du(e,t,n){var r=(e+=``)==`transform`?Bo:El;return t==null?this.styleTween(e,ou(e,r)).on(`end.style.`+e,su(e)):typeof t==`function`?this.styleTween(e,lu(e,r,Tl(this,`style.`+e,t))).each(uu(this._id,e)):this.styleTween(e,cu(e,r,t),n).on(`end.style.`+e,null)}function fu(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function pu(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&fu(e,a,n)),r}return a._value=t,a}function mu(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,pu(e,t,n??``))}function hu(e){return function(){this.textContent=e}}function gu(e){return function(){var t=e(this);this.textContent=t??``}}function _u(e){return this.tween(`text`,typeof e==`function`?gu(Tl(this,`text`,e)):hu(e==null?``:e+``))}function vu(e){return function(t){this.textContent=e.call(this,t)}}function yu(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&vu(r)),t}return r._value=e,r}function bu(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,yu(e))}function xu(){for(var e=this._name,t=this._id,n=Tu(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=X(c,t);_l(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new Z(r,this._parents,e,n)}function Su(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=Y(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var Cu=0;function Z(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function wu(e){return An().transition(e)}function Tu(){return++Cu}var Q=An.prototype;Z.prototype=wu.prototype={constructor:Z,select:nu,selectAll:ru,selectChild:Q.selectChild,selectChildren:Q.selectChildren,filter:Yl,merge:Xl,selection:au,transition:xu,call:Q.call,nodes:Q.nodes,node:Q.node,size:Q.size,empty:Q.empty,each:Q.each,on:$l,attr:Nl,attrTween:Rl,style:du,styleTween:mu,text:_u,textTween:bu,remove:tu,tween:wl,delay:Vl,duration:Wl,ease:Kl,easeVarying:Jl,end:Su,[Symbol.iterator]:Q[Symbol.iterator]};function Eu(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Du={time:null,delay:0,duration:250,ease:Eu};function Ou(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function ku(e){var t,n;e instanceof Z?(t=e._id,e=e._name):(t=Tu(),(n=Du).time=al(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&_l(c,e,t,l,o,n||Ou(c,t));return new Z(r,this._parents,e,t)}An.prototype.interrupt=xl,An.prototype.transition=ku;var Au=o(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define([],r):typeof e==`object`?e.labella=r():n.labella=r()})(e,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p=``,t(0)}([function(e,t,n){"use strict";e.exports={Node:n(1),Force:n(2),Distributor:n(3),Renderer:n(10)}},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();e.exports=function(){function e(t,r,i){n(this,e),this.idealPos=t,this.currentPos=t,this.width=r,this.data=i,this.layerIndex=0}return r(e,[{key:`distanceFrom`,value:function(e){var t=this.width/2,n=e.width/2;return Math.max(this.currentPos-t,e.currentPos-n)-Math.min(this.currentPos+t,e.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(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return this.distanceFrom(e)-t<0}},{key:`overlapWithPoint`,value:function(e){var t=this.width/2;return e>=this.currentPos-t&&e<=this.currentPos+t}},{key:`positionBefore`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.currentLeft()-this.width/2-t}},{key:`positionAfter`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return e.currentRight()+this.width/2+t}},{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(t){var n=new e(this.idealPos,t,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,null),this}},{key:`isStub`,value:function(){return!!this.child}},{key:`getPathToRoot`,value:function(){for(var e=[],t=this;t;)e.push(t),t=t.parent;return e}},{key:`getPathFromRoot`,value:function(){return this.getPathToRoot().reverse()}},{key:`getPathToRootLength`,value:function(){for(var e=0,t=this;t;){var n=t.parent?t.parent.currentPos:t.idealPos;e+=Math.abs(t.currentPos-n),t=t.parent}return e}},{key:`getRoot`,value:function(){for(var e=this,t=this;t;)e=t,t=t.parent;return e}},{key:`getLayerIndex`,value:function(){return this.layerIndex}},{key:`clone`,value:function(){var t=new e(this.idealPos,this.width,this.data);return t.currentPos=this.currentPos,t.layerIndex=this.layerIndex,t}}]),e}()},function(e,t,n){"use strict";var r=n(3),i=n(4),a=n(8),o={nodeSpacing:3,minPos:0,maxPos:null,algorithm:`overlap`,removeOverlap:!0,density:.85,stubWidth:1},s=function(e){var t={},n=i.extend({},o),s=new r,c=[],l=null;return t.nodes=function(e){return arguments.length?(c=e,l=[e.concat()],t):c},t.getLayers=function(){return l},t.options=function(e){if(!arguments.length)return n;n=i.extend(n,e);var a=i.pick(n,Object.keys(r.DEFAULT_OPTIONS));return i.isDefined(n.minPos)&&i.isDefined(n.maxPos)?a.layerWidth=n.maxPos-n.minPos:a.layerWidth=null,s.options(a),t},t.options(e),t.compute=function(){var e=i.pick(n,Object.keys(a.DEFAULT_OPTIONS));return c.forEach(function(e){e.removeStub()}),l=s.distribute(c),l.map(function(t,r){t.forEach(function(e){e.layerIndex=r}),n.removeOverlap&&a(t,e)}),t},t.start=function(){console.log(`[warning] force.start() is deprecated. Please use force.compute() instead.`)},t};s.DEFAULT_OPTIONS=o,e.exports=s},function(e,t,n){"use strict";var r=n(4),i=n(6),a={algorithm:`overlap`,layerWidth:1e3,density:.75,nodeSpacing:3,stubWidth:1},o=function(e){var t={};e=r.extend({},a,e),t.options=function(n){return arguments.length?(e=r.extend(e,n),t):e},t.computeRequiredWidth=function(t){return r.sum(t,function(t){return t.width+e.nodeSpacing})-e.nodeSpacing},t.maxWidthPerLayer=function(){return e.density*e.layerWidth},t.needToSplit=function(e){return t.estimateRequiredLayers(e)>1},t.estimateRequiredLayers=function(n){return e.layerWidth?Math.ceil(t.computeRequiredWidth(n)/t.maxWidthPerLayer()):1};var n={simple:function(n){for(var r=t.estimateRequiredLayers(n),i=[],a=0;a<r;a++)i.push([]);return n.forEach(function(t,n){var a=n%r;i[a].push(t);for(var o=t,s=a-1;s>=0;s--)o=o.createStub(e.stubWidth),i[s].push(o)}),i},roundRobin:function(e){return[]},overlap:function(n){for(var r=[],i=t.maxWidthPerLayer(),a=n.concat(),o=t.computeRequiredWidth(a);o>i;){t.countIdealOverlaps(a);var s=a.concat(),c=o;for(a=[];s.length>2&&c>i;){s.sort(function(e,t){return t.overlapCount-e.overlapCount});var l=s.shift();c-=l.width,c+=e.stubWidth,l.overlaps.forEach(function(e){e.overlapCount--}),a.push(l)}r.push(s),o=t.computeRequiredWidth(a)}a.length>0&&r.push(a);for(var u=r.length-1;u>=1;u--)for(var d=r[u],f=0;f<d.length;f++){var p=d[f];if(!p.isStub())for(var m=p,h=u-1;h>=0;h--)m=m.createStub(e.stubWidth),r[h].push(m)}return r}};return t.countIdealOverlaps=function(t){var n=new i(e.layerWidth/2);return t.forEach(function(e){n.add([e.idealLeft(),e.idealRight(),e])}),t.forEach(function(e){var t=n.search(e.idealLeft(),e.idealRight());e.overlaps=t.map(function(e){return e.data[2]}),e.overlapCount=t.length}),t},t.distribute=function(i){if(!i||i.length===0)return[];if(e.algorithm==`none`||!r.isDefined(e.algorithm)||!t.needToSplit(i))return[i];var a=i.concat().sort(function(e,t){return e.idealPos-t.idealPos});if(typeof e.algorithm==`function`)return e.algorithm(a,e);if(n.hasOwnProperty(e.algorithm))return n[e.algorithm](a);throw`Unknown algorithm: `+e.algorithm},t};o.DEFAULT_OPTIONS=a,e.exports=o},function(e,t,n){"use strict";var r={isDefined:function(e){return e!=null},last:function(e){return e.length>0?e[e.length-1]:null},pick:function(e,t){return t.reduce(function(t,n){return t[n]=e[n],t},{})},sum:function(e,t){return e.map(t).reduce(function(e,t){return e+t},0)}};r.extend=n(5),e.exports=r},function(e,t){"use strict";var n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=function(e){return typeof Array.isArray==`function`?Array.isArray(e):i.call(e)===`[object Array]`},o=function(e){if(!e||i.call(e)!==`[object Object]`)return!1;var t=r.call(e,`constructor`),n=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,`isPrototypeOf`);if(e.constructor&&!t&&!n)return!1;for(var a in e);return a===void 0||r.call(e,a)};e.exports=function e(){var t,r,i,s,c,l,u=arguments[0],d=1,f=arguments.length,p=!1;for(typeof u==`boolean`?(p=u,u=arguments[1]||{},d=2):((u===void 0?`undefined`:n(u))!==`object`&&typeof u!=`function`||u==null)&&(u={});d<f;++d)if(t=arguments[d],t!=null)for(r in t)i=u[r],s=t[r],u!==s&&(p&&s&&(o(s)||(c=a(s)))?(c?(c=!1,l=i&&a(i)?i:[]):l=i&&o(i)?i:{},u[r]=e(p,l,s)):s!==void 0&&(u[r]=s));return u}},function(e,t,n){"use strict";function r(e,t){if(t||={},this.startKey=t.startKey||0,this.endKey=t.endKey||1,this.intervalHash={},this.pointTree=new l({compare:function(e,t){if(e==null)return-1;if(t==null)return 1;var n=e[0]-t[0];return n>0?1:n==0?0:-1}}),this._autoIncrement=0,!e||typeof e!=`number`)throw Error(`you must specify center index as the 2nd argument.`);this.root=new s(e,this)}function i(e,t){return t.end<e.idx?(e.left||=new s(t.start+t.end>>1,this),i.call(this,e.left,t)):e.idx<t.start?(e.right||=new s(t.start+t.end>>1,this),i.call(this,e.right,t)):e.insert(t)}function a(e,t,n){if(e)return t<e.idx?(e.starts.every(function(e){var r=e.start<=t;return r&&n.push(e.result()),r}),a.call(this,e.left,t,n)):t>e.idx?(e.ends.every(function(e){var r=e.end>=t;return r&&n.push(e.result()),r}),a.call(this,e.right,t,n)):void e.starts.map(function(e){n.push(e.result())})}function o(e,t,n){if(t-e<=0)throw Error(`end must be greater than start. start: `+e+`, end: `+t);var r={},i=[];a.call(this,this.root,e+t>>1,i,!0),i.forEach(function(e){r[e.id]=!0});for(var o=this.pointTree.bsearch([e,null]),s=this.pointTree;o>=0&&s[o][0]==e;)o--;var c=this.pointTree.bsearch([t,null]);if(c>=0){for(var l=s.length-1;c<=l&&s[c][0]<=t;)c++;s.slice(o+1,c).forEach(function(e){var t=e[1];r[t]=!0},this),Object.keys(r).forEach(function(r){var i=this.intervalHash[r];n.push(i.result(e,t))},this)}}function s(e){this.idx=e,this.starts=new l({compare:function(e,t){if(e==null)return-1;if(t==null)return 1;var n=e.start-t.start;return n>0?1:n==0?0:-1}}),this.ends=new l({compare:function(e,t){if(e==null)return-1;if(t==null)return 1;var n=e.end-t.end;return n<0?1:n==0?0:-1}})}function c(e,t,n,r){if(this.id=t,this.start=e[n],this.end=e[r],this.data=e,typeof this.start!=`number`||typeof this.end!=`number`)throw Error(`start, end must be number. start: `+this.start+`, end: `+this.end);if(this.start>=this.end)throw Error(`start must be smaller than end. start: `+this.start+`, end: `+this.end)}var l=n(7);r.prototype.add=function(e,t){if(this.intervalHash[t])throw Error(`id `+t+` is already registered.`);if(t==null){for(;this.intervalHash[this._autoIncrement];)this._autoIncrement++;t=this._autoIncrement}var n=new c(e,t,this.startKey,this.endKey);this.pointTree.insert([n.start,t]),this.pointTree.insert([n.end,t]),this.intervalHash[t]=n,this._autoIncrement++,i.call(this,this.root,n)},r.prototype.search=function(e,t){var n=[];if(typeof e!=`number`)throw Error(e+`: invalid input`);if(t==null)a.call(this,this.root,e,n);else{if(typeof t!=`number`)throw Error(e+`,`+t+`: invalid input`);o.call(this,e,t,n)}return n},r.prototype.remove=function(e){},s.prototype.insert=function(e){this.starts.insert(e),this.ends.insert(e)},c.prototype.result=function(e,t){var n={id:this.id,data:this.data};if(typeof e==`number`&&typeof t==`number`){var r=Math.max(this.start,e),i=Math.min(this.end,t)-r;n.rate1=i/(t-e),n.rate2=i/(this.end-this.start)}return n},e.exports=r},function(e,t){"use strict";var n=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},r=function e(){var t=null,r={},i=arguments;[`0`,`1`].forEach(function(e){var a=i[e];Array.isArray(a)?t=a:a&&(a===void 0?`undefined`:n(a))==`object`&&(r=a)}),typeof r.filter==`function`&&(this._filter=r.filter),typeof r.compare==`function`?this._compare=r.compare:typeof r.compare==`string`&&e.compares[r.compare]&&(this._compare=e.compares[r.compare]),this._unique=!!r.unique,r.resume&&t?t.forEach(function(e,t){this.push(e)},this):t&&this.insert.apply(this,t)};r.create=function(e,t){return new r(e,t)},r.prototype=[],r.prototype.constructor=Array.prototype.constructor,r.prototype.insertOne=function(e){var t=this.bsearch(e);return(!this._unique||this.key(e,t)==null)&&!!this._filter(e,t)&&(this.splice(t+1,0,e),t+1)},r.prototype.insert=function(){return Array.prototype.map.call(arguments,function(e){return this.insertOne(e)},this)},r.prototype.remove=function(e){return this.splice(e,1),this},r.prototype.bsearch=function(e){if(!this.length)return-1;for(var t,n=0,r=this.length;r-n>1;){t=Math.floor((n+r)/2);var i=this[t],a=this._compare(e,i);if(a==0)return t;a>0?n=t:r=t}return n==0&&this._compare(this[0],e)>0?-1:n},r.prototype.key=function(e,t){t??=this.bsearch(e);var n=t;if(n==-1||this._compare(this[n],e)<0)return n+1<this.length&&this._compare(this[n+1],e)==0?n+1:null;for(;n>=1&&this._compare(this[n-1],e)==0;)n--;return n},r.prototype.keys=function(e,t){var n=[];t??=this.bsearch(e);for(var r=t;r>=0&&this._compare(this[r],e)==0;)n.push(r),r--;var i=this.length;for(r=t+1;r<i&&this._compare(this[r],e)==0;)n.push(r),r++;return n.length?n:null},r.prototype.unique=function(e){if(e)return this.filter(function(e,t){return t==0||this._compare(this[t-1],e)!=0},this);var t=0;return this.map(function(e,n){return n==0||this._compare(this[n-1],e)!=0?null:n-t++},this).forEach(function(e){e!=null&&this.remove(e)},this),this},r.prototype.toArray=function(){return this.slice()},r.prototype._filter=function(e,t){return!0},r.compares={number:function(e,t){var n=e-t;return n>0?1:n==0?0:-1},string:function(e,t){return e>t?1:e==t?0:-1}},r.prototype._compare=r.compares.string,e.exports=r},function(e,t,n){"use strict";function r(e){var t=new o.Variable(e.targetPos);return t.node=e,t}function i(e,t){if(e.length>0){t=a.extend(s,t),e.forEach(function(e,t){e.targetPos=e.parent?e.parent.currentPos:e.idealPos,e.index=t});for(var n=e.concat().sort(function(e,t){var n=e.targetPos-t.targetPos;if(n!==0)return n;var r=e.isStub()-t.isStub();return r===0?e.index-t.index:r}).map(r),i=[],c=1;c<n.length;c++){var l=n[c-1],u=n[c],d=void 0;d=l.node.isStub()&&u.node.isStub()?(l.node.width+u.node.width)/2+t.lineSpacing:(l.node.width+u.node.width)/2+t.nodeSpacing,i.push(new o.Constraint(l,u,d))}if(a.isDefined(t.minPos)){var f=new o.Variable(t.minPos,1e10),p=n[0];i.push(new o.Constraint(f,p,p.node.width/2)),n.unshift(f)}if(a.isDefined(t.maxPos)){var m=new o.Variable(t.maxPos,1e10),h=a.last(n);i.push(new o.Constraint(h,m,h.node.width/2)),n.push(m)}new o.Solver(n,i).solve(),n.filter(function(e){return e.node}).map(function(e){return e.node.currentPos=Math.round(e.position()),e})}return e}var a=n(4),o=n(9),s={lineSpacing:2,nodeSpacing:3,minPos:0,maxPos:null};i.DEFAULT_OPTIONS=s,e.exports=i},function(e,t){"use strict";var n={},r=function(){function e(e){this.scale=e,this.AB=0,this.AD=0,this.A2=0}return e.prototype.addVariable=function(e){var t=this.scale/e.scale,n=e.offset/e.scale,r=e.weight;this.AB+=r*t*n,this.AD+=r*t*e.desiredPosition,this.A2+=r*t*t},e.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},e}();n.PositionStats=r,n.Constraint=function(){function e(e,t,n,r){r===void 0&&(r=!1),this.left=e,this.right=t,this.gap=n,this.equality=r,this.active=!1,this.unsatisfiable=!1,this.left=e,this.right=t,this.gap=n,this.equality=r}return e.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},e}(),n.Variable=function(){function e(e,t,n){t===void 0&&(t=1),n===void 0&&(n=1),this.desiredPosition=e,this.weight=t,this.scale=n,this.offset=0}return e.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},e.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},e.prototype.visitNeighbours=function(e,t){var n=function(n,r){return n.active&&e!==r&&t(n,r)};this.cOut.forEach(function(e){return n(e,e.right)}),this.cIn.forEach(function(e){return n(e,e.left)})},e}();var i=function(){function e(e){this.vars=[],e.offset=0,this.ps=new r(e.scale),this.addVariable(e)}return e.prototype.addVariable=function(e){e.block=this,this.vars.push(e),this.ps.addVariable(e),this.posn=this.ps.getPosn()},e.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var e=0,t=this.vars.length;e<t;++e)this.ps.addVariable(this.vars[e]);this.posn=this.ps.getPosn()},e.prototype.compute_lm=function(e,t,n){var r=this,i=e.dfdv();return e.visitNeighbours(t,function(t,a){var o=r.compute_lm(a,e,n);a===t.right?(i+=o*t.left.scale,t.lm=o):(i+=o*t.right.scale,t.lm=-o),n(t)}),i/e.scale},e.prototype.populateSplitBlock=function(e,t){var n=this;e.visitNeighbours(t,function(t,r){r.offset=e.offset+(r===t.right?t.gap:-t.gap),n.addVariable(r),n.populateSplitBlock(r,e)})},e.prototype.traverse=function(e,t,n,r){var i=this;n===void 0&&(n=this.vars[0]),r===void 0&&(r=null),n.visitNeighbours(r,function(r,a){t.push(e(r)),i.traverse(e,t,a,n)})},e.prototype.findMinLM=function(){var e=null;return this.compute_lm(this.vars[0],null,function(t){!t.equality&&(e===null||t.lm<e.lm)&&(e=t)}),e},e.prototype.findMinLMBetween=function(e,t){this.compute_lm(e,null,function(){});var n=null;return this.findPath(e,null,t,function(e,t){!e.equality&&e.right===t&&(n===null||e.lm<n.lm)&&(n=e)}),n},e.prototype.findPath=function(e,t,n,r){var i=this,a=!1;return e.visitNeighbours(t,function(t,o){a||o!==n&&!i.findPath(o,e,n,r)||(a=!0,r(t,o))}),a},e.prototype.isActiveDirectedPathBetween=function(e,t){if(e===t)return!0;for(var n=e.cOut.length;n--;){var r=e.cOut[n];if(r.active&&this.isActiveDirectedPathBetween(r.right,t))return!0}return!1},e.split=function(t){return t.active=!1,[e.createSplitBlock(t.left),e.createSplitBlock(t.right)]},e.createSplitBlock=function(t){var n=new e(t);return n.populateSplitBlock(t,null),n},e.prototype.splitBetween=function(t,n){var r=this.findMinLMBetween(t,n);if(r!==null){var i=e.split(r);return{constraint:r,lb:i[0],rb:i[1]}}return null},e.prototype.mergeAcross=function(e,t,n){t.active=!0;for(var r=0,i=e.vars.length;r<i;++r){var a=e.vars[r];a.offset+=n,this.addVariable(a)}this.posn=this.ps.getPosn()},e.prototype.cost=function(){for(var e=0,t=this.vars.length;t--;){var n=this.vars[t],r=n.position()-n.desiredPosition;e+=r*r*n.weight}return e},e}();n.Block=i;var a=function(){function e(e){this.vs=e;var t=e.length;for(this.list=Array(t);t--;){var n=new i(e[t]);this.list[t]=n,n.blockInd=t}}return e.prototype.cost=function(){for(var e=0,t=this.list.length;t--;)e+=this.list[t].cost();return e},e.prototype.insert=function(e){e.blockInd=this.list.length,this.list.push(e)},e.prototype.remove=function(e){var t=this.list.length-1,n=this.list[t];this.list.length=t,e!==n&&(this.list[e.blockInd]=n,n.blockInd=e.blockInd)},e.prototype.merge=function(e){var t=e.left.block,n=e.right.block,r=e.right.offset-e.left.offset-e.gap;t.vars.length<n.vars.length?(n.mergeAcross(t,e,r),this.remove(t)):(t.mergeAcross(n,e,-r),this.remove(n))},e.prototype.forEach=function(e){this.list.forEach(e)},e.prototype.updateBlockPositions=function(){this.list.forEach(function(e){return e.updateWeightedPosition()})},e.prototype.split=function(e){var t=this;this.updateBlockPositions(),this.list.forEach(function(n){var r=n.findMinLM();r!==null&&r.lm<o.LAGRANGIAN_TOLERANCE&&(n=r.left.block,i.split(r).forEach(function(e){return t.insert(e)}),t.remove(n),e.push(r))})},e}();n.Blocks=a;var o=function(){function e(e,t){this.vs=e,this.cs=t,this.vs=e,e.forEach(function(e){e.cIn=[],e.cOut=[]}),this.cs=t,t.forEach(function(e){e.left.cOut.push(e),e.right.cIn.push(e)}),this.inactive=t.map(function(e){return e.active=!1,e}),this.bs=null}return e.prototype.cost=function(){return this.bs.cost()},e.prototype.setStartingPositions=function(e){this.inactive=this.cs.map(function(e){return e.active=!1,e}),this.bs=new a(this.vs),this.bs.forEach(function(t,n){return t.posn=e[n]})},e.prototype.setDesiredPositions=function(e){this.vs.forEach(function(t,n){return t.desiredPosition=e[n]})},e.prototype.mostViolated=function(){for(var t=Number.MAX_VALUE,n=null,r=this.inactive,i=r.length,a=i,o=0;o<i;++o){var s=r[o];if(!s.unsatisfiable){var c=s.slack();if((s.equality||c<t)&&(t=c,n=s,a=o,s.equality))break}}return a!==i&&(t<e.ZERO_UPPERBOUND&&!n.active||n.equality)&&(r[a]=r[i-1],r.length=i-1),n},e.prototype.satisfy=function(){this.bs??=new a(this.vs),this.bs.split(this.inactive);for(var t=null;(t=this.mostViolated())&&(t.equality||t.slack()<e.ZERO_UPPERBOUND&&!t.active);){var n=t.left.block;if(n!==t.right.block)this.bs.merge(t);else{if(n.isActiveDirectedPathBetween(t.right,t.left)){t.unsatisfiable=!0;continue}var r=n.splitBetween(t.left,t.right);if(r===null){t.unsatisfiable=!0;continue}this.bs.insert(r.lb),this.bs.insert(r.rb),this.bs.remove(n),this.inactive.push(r.constraint),t.slack()>=0?this.inactive.push(t):this.bs.merge(t)}}},e.prototype.solve=function(){this.satisfy();for(var e=Number.MAX_VALUE,t=this.bs.cost();Math.abs(e-t)>1e-4;)this.satisfy(),e=t,t=this.bs.cost();return t},e.LAGRANGIAN_TOLERANCE=-1e-4,e.ZERO_UPPERBOUND=-1e-10,e}();n.Solver=o,e.exports=n},function(e,t,n){"use strict";function r(e){this.options=l.extend({layerGap:60,nodeHeight:10,direction:`down`},e)}function i(e){return`L `+e.join(` `)}function a(e){return`M `+e.join(` `)}function o(e,t,n){return`C `+e.join(` `)+` `+t.join(` `)+` `+n.join(` `)}function s(e,t){var n=(e[1]+t[1])/2;return o([e[0],n],[t[0],n],t)}function c(e,t){var n=(e[0]+t[0])/2;return o([n,e[1]],[n,t[1]],t)}var l=n(4);r.lineTo=i,r.moveTo=a,r.curveTo=o,r.vCurveBetween=s,r.hCurveBetween=c,r.prototype.getWaypoints=function(e){var t=this.options,n=t.direction,r=e.getPathFromRoot(),i=t.nodeHeight+t.layerGap;return n===`left`?[[[0,r[0].idealPos]]].concat(r.map(function(e,n){var r=i*(n+1)*-1;return[[r+t.nodeHeight,e.currentPos],[r,e.currentPos]]})):n===`right`?[[[0,r[0].idealPos]]].concat(r.map(function(e,n){var r=i*(n+1);return[[r-t.nodeHeight,e.currentPos],[r,e.currentPos]]})):n===`up`?[[[r[0].idealPos,0]]].concat(r.map(function(e,n){var r=i*(n+1)*-1;return[[e.currentPos,r+t.nodeHeight],[e.currentPos,r]]})):[[[r[0].idealPos,0]]].concat(r.map(function(e,n){var r=i*(n+1);return[[e.currentPos,r-t.nodeHeight],[e.currentPos,r]]}))},r.prototype.layout=function(e){var t=this.options,n=t.layerGap+t.nodeHeight;switch(t.direction){case`left`:e.forEach(function(e){e.x=-(e.getLayerIndex()*n+t.layerGap)-t.nodeHeight,e.y=e.currentPos,e.dx=t.nodeHeight,e.dy=e.width});break;case`right`:e.forEach(function(e){e.x=e.getLayerIndex()*n+t.layerGap,e.y=e.currentPos,e.dx=t.nodeHeight,e.dy=e.width});break;case`up`:e.forEach(function(e){var r=e.getLayerIndex()*n+t.layerGap;e.x=e.currentPos,e.y=-r-t.nodeHeight,e.dx=e.width,e.dy=t.nodeHeight});break;default:case`down`:e.forEach(function(e){var r=e.getLayerIndex()*n+t.layerGap;e.x=e.currentPos,e.y=r,e.dx=e.width,e.dy=t.nodeHeight})}return e},r.prototype.generatePath=function(e){var t=this.options.direction,n=this.getWaypoints(e,t),r=[a(n[0][0])];return t===`left`||t===`right`?n.reduce(function(e,t,a){return r.push(c(e[e.length-1],t[0])),a<n.length-1&&r.push(i(t[1])),t}):n.reduce(function(e,t,a){return r.push(s(e[e.length-1],t[0])),a<n.length-1&&r.push(i(t[1])),t}),r.join(` `)},e.exports=r}])})})),ju=o(((e,t)=>{var n=NaN,r=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt,c=typeof global==`object`&&global&&global.Object===Object&&global,l=typeof self==`object`&&self&&self.Object===Object&&self,u=c||l||Function(`return this`)(),d=Object.prototype.toString,f=Math.max,p=Math.min,m=function(){return u.Date.now()};function h(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,h=!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);t=y(t)||0,g(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?f(y(n.maxWait)||0,t):a,h=`trailing`in n?!!n.trailing:h);function _(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function v(e){return l=e,s=setTimeout(S,t),u?_(e):o}function b(e){var n=e-c,r=e-l,i=t-n;return d?p(i,a-r):i}function x(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function S(){var e=m();if(x(e))return C(e);s=setTimeout(S,b(e))}function C(e){return s=void 0,h&&r?_(e):(r=i=void 0,o)}function w(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function T(){return s===void 0?o:C(m())}function E(){var e=m(),n=x(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return v(c);if(d)return s=setTimeout(S,t),_(c)}return s===void 0&&(s=setTimeout(S,t)),o}return E.cancel=w,E.flush=T,E}function g(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function _(e){return!!e&&typeof e==`object`}function v(e){return typeof e==`symbol`||_(e)&&d.call(e)==`[object Symbol]`}function y(e){if(typeof e==`number`)return e;if(v(e))return n;if(g(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=g(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(r,``);var c=a.test(e);return c||o.test(e)?s(e.slice(2),c?2:8):i.test(e)?n:+e}t.exports=h})),Mu=c(Au()),Nu=c(ju());function Pu(e){return{standard:e.toString(),light:e.brighter(1.15).toString(),bright:Ae(e.h,e.s*1.3,e.l*.9).toString()}}function Fu(e,t){let n=[],r=360/t+1,i=e.h;for(let a=0;a<t;++a)e.h=(i+a*r)%360,n.push(Pu(e));return n}function Iu(e,t){let n=Fu(e,t),r=Pu(Ae(`#888888`));return function(e){return e.old?r:n[e.cat%t]}}var Lu=function(e,t){let n=t.event,r=1;n.forEach(e=>e.id=r++),e.container.innerHTML=``;let i=new Date(t.minDate),a=new Date(t.maxDate),o=Iu(e.getRootColor(),12),s=e=>o(e).standard,c={alternatingTickLength:10,initialHeight:50,initialWidth:400,direction:`horizontal`,domain:[i,a],dotRadius:5,linkColor:s,dotColor:s,labelBgColor:s,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:e=>new Date(e.date),textFn:e=>e.text,formatAxis:t=>{let n=a.getFullYear()-i.getFullYear();return t.tickFormat(e.i18n().timeScaleFormatter).tickSizeInner(8).tickSizeOuter(10).ticks(n<=4?2*n:void 0)}},l={innerWidth:0,innerHeight:0,width:c.initialWidth,height:c.initialHeight},u=new Mu.default.Force,d=os(),f=L(e.container);f.style(`line-height`,0);let p=f.append(`div`).style(`display`,`inline-block`).style(`position`,`relative`).style(`line-height`,0),m=p.append(`svg`).style(`position`,`absolute`).style(`top`,0).style(`left`,0),h=m.append(`g`);function g(e,t){return e.append(`g`).attr(`name`,t)}let _=g(h,`dummy`),v=g(h,`main`),y=g(v,`main/axis`),b=g(v,`main/link`),x=g(v,`main/label`),S=g(v,`main/dot`);y.classed(`axis`,!0);function C(){let{width:e,height:t}=l,n=f.node(),r=n?.clientWidth??0,i=n?.clientHeight??0,a=!1;e!==r&&(l.width=r,a=!0),t>i&&(l.height=i,a=!0),a&&(T(),T.flush())}function w(){let e=u.nodes(),t;switch(c.direction){case`horizontal`:t=Kr(e,e=>Math.abs(e.y))??0,l.height=t+c.margin.top+c.margin.bottom;break;case`vertical`:t=Kr(e,e=>Math.abs(e.x+e.dx))??0,l.width=t+c.margin.left+c.margin.right;break}}let T=(0,Nu.default)(function(){let{width:e,height:t}=l,{margin:n}=c,{top:r,right:i,bottom:a,left:o}=n;l.innerWidth=e-o-i,l.innerHeight=t-r-a,p.style(`width`,`${e}px`).style(`height`,`${t}px`),m.attr(`width`,e).attr(`height`,t),h.attr(`transform`,`translate(${o}, ${r})`),k()},1);function E(e,t){let n=typeof t==`function`?t:()=>t;e.attr(`dy`,c.textYOffset).attr(`x`,c.labelPadding.left).attr(`y`,c.labelPadding.top).style(`fill`,c.textStyle.fill).text(e=>c.textFn(n(e)))}function D(){let e;switch(c.direction){case`vertical`:e=bs(d),v.attr(`transform`,`translate(0,0)`);break;case`horizontal`:e=ys(d),v.attr(`transform`,`translate(0,`+l.innerHeight+`)`);break}c.formatAxis?.(e),y.call(e).attr(`font-family`,null).attr(`font-size`,null)}function O(e){let t=c.direction===`vertical`?`cy`:`cx`,n=e=>d(c.timeFn(e)),r=S.selectAll(`circle.dot`).data(e);r.enter().append(`circle`).classed(`dot`,!0).style(`fill`,c.dotColor).attr(`r`,c.dotRadius).attr(t,n),r.transition().style(`fill`,c.dotColor).attr(`r`,c.dotRadius).attr(t,n),r.exit().remove()}function ee(e){let t;t=c.direction===`vertical`?Kr(e,e=>e.w):Kr(e,e=>e.h);let n=new Mu.default.Renderer({nodeHeight:t??0,layerGap:c.layerGap,direction:c.direction===`horizontal`?`up`:`right`});n.layout(e);function r(e){if(isNaN(e.x)||isNaN(e.y))return null;switch(c.direction){case`vertical`:return`translate(`+e.x+`,`+(e.y-e.dy/2)+`)`;case`horizontal`:return`translate(`+(e.x-e.dx/2)+`,`+e.y+`)`}}let i=x.selectAll(`g.label-g`).data(e),a=i.enter().append(`g`).classed(`label-g`,!0).attr(`transform`,r);a.append(`rect`).classed(`label-bg`,!0).attr(`rx`,2).attr(`ry`,2).attr(`width`,e=>e.w).attr(`height`,e=>e.h).style(`fill`,e=>c.labelBgColor(e.data)),a.append(`text`).classed(`label-text`,!0).call(E,e=>e.data);let o=i.transition().attr(`transform`,r);o.select(`rect`).attr(`width`,e=>e.w).attr(`height`,e=>e.h).style(`fill`,e=>c.labelBgColor(e.data)),o.select(`text.label-text`).call(E,e=>e.data),i.exit().remove();let s=b.selectAll(`path.link`).data(e);s.enter().append(`path`).classed(`link`,!0).attr(`d`,e=>n.generatePath(e)).style(`stroke`,e=>c.linkColor(e.data)).style(`fill`,`none`),s.transition().attr(`d`,e=>n.generatePath(e)).style(`stroke`,e=>c.linkColor(e.data)),s.exit().remove()}let te=!0;function k(){if(!n||l.innerWidth<=0&&l.innerHeight<=0)return;let e=n||[];u=new Mu.default.Force,d.domain(c.domain),d.range([0,c.direction===`vertical`?l.innerHeight:l.innerWidth]);let t=_.append(`text`).classed(`label-text`,!0),r=e.map(e=>{let n=t.call(E,e).node().getBBox(),r=n.width+c.labelPadding.left+c.labelPadding.right,i=n.height+c.labelPadding.top+c.labelPadding.bottom,a=new Mu.default.Node(d(c.timeFn(e)),c.direction===`vertical`?i:r,e);return a.w=r,a.h=i,a});t.remove();let{left:i,right:a}=c.margin;u.options({maxPos:l.width-(i+a)}).nodes(r).compute(),D(),O(e),ee(u.nodes()),te&&(te=!1,A()),j()}function A(){m.insert(`title`,`:first-child`).text(t.title),x.selectAll(`g.label-g`).each(function(){let e=L(this),t=e.selectAll(`g.label-g > *`).remove(),n=e.append(`svg:a`).attr(`class`,e=>e.data.class).attr(`xlink:href`,e=>e.data.href).attr(`xlink:title`,e=>e.data.desc??null);n.append(`title`).text(e=>e.data.desc??null),t.each(function(){n.append(()=>this)})});let n=e.handlerValue(`publicationClick`),r=!!n;x.selectAll(`.label-g`).attr(`data-clickable`,()=>r||null).on(`click`,function(e,t){n&&(n(t.data.query),e.preventDefault())}).on(`mouseenter touchstart`,function(e,t){if(!e.target)return;let n=o(t.data);L(e.target).select(`rect`).style(`fill`,n.bright);let r=t.data.id;b.selectAll(`path.link`).filter(e=>e.data.id===r).attr(`data-highlighted`,!0);let i=t.data.query&&t.data.query.id;i&&Nn(`[data-publication-id='`+i+`']`).style(`background-color`,n.light)}).on(`mouseleave touchend`,function(e,t){if(!e.target)return;let n=o(t.data);L(e.target).select(`rect`).style(`fill`,n.standard),b.selectAll(`path.link`).attr(`data-highlighted`,!1);let r=t.data.query&&t.data.query.id;r&&Nn(`[data-publication-id='`+r+`']`).style(`background-color`,null)})}function j(){let e=y.selectAll(`g.tick`);l.width/e.size()<=32&&e.each(function(e,t){if(t%2!=0)return;let n=L(this),r=n.select(`text`),i=n.select(`line`);r.attr(`y`,Number(r.attr(`y`))+c.alternatingTickLength),i.attr(`y2`,Number(i.attr(`y2`))+c.alternatingTickLength)})}return{draw:function(){C(),w(),T(),T.flush()}}},Ru=function(e,t){if(t){let n=e.handlerValue(`load`);n&&n(t)}return D},zu=function(e,t){let n=e=>e?new Date(e):null,r=e=>n(e)?.toLocaleDateString(),i=L(e.container).append(`table`).attr(`class`,`ui bizq very compact celled small unstackable striped table`),a=i.append(`tbody`);$.debug(`data`,t);for(let e of[`current`,`former`]){e==`former`&&a.append(`tr`).append(`td`).attr(`class`,`first`).attr(`colspan`,2).text(`Vormals`);let n=t.current;for(let e of n){$.debug(`group`,e);let t=e.name,n=e.entries;a.append(`tr`).append(`td`).attr(`class`,`first`).attr(`colspan`,2).text(t);for(let e of n){$.debug(`entry`,e);let t=a.append(`tr`),n=e.person,i=t.append(`td`).append(`span`).text(n.name).attr(`class`,`person`);for(let e in n.query)i.attr(e,n.query[e]);let o=t.append(`td`);for(let t of e.chunks){let e;!t.start&&t.end?e=`bis `+r(t.end):t.start&&!t.end?e=`seit `+r(t.start):t.start&&t.end&&(e=r(t.start)+` – `+r(t.end)),o.append(`span`).text(e)}}}}return e.markup(i),D},Bu;function Vu(e){if(e){Bu=document.querySelectorAll(`button:not([disabled])`);for(let e=0;e<Bu.length;++e)Bu[e].disabled=!0}else if(Bu)for(let e=0;e<Bu.length;++e)Bu[e].disabled=!1;document.body.classList.toggle(`waiting`,e)}var Hu=function(e,t){return Rn(`click`,e.container,`*`,function(){Vu(!0);let t=new XMLHttpRequest;t.open(`POST`,`/_api/shop/v1/products`),t.setRequestHeader(`Content-Type`,`application/json`);function n(e){$.log(`error`,`cannot list pubs`,e)}return t.onerror=function(e){Vu(!1),n(e)},t.onload=function(){Vu(!1),$.debug(t.status),t.status>=400&&n(t.responseText||t.statusText),$.debug(`ok`,t.responseText);let e=JSON.parse(t.responseText);$.debug(`data`,e)},t.send(JSON.stringify(e.options)),!1}),D},Uu=function(e,t){let n=L(e.container).selectAll(`.publication`).data(t.publications).enter().append(`div`).attr(`class`,`pub`).attr(`data-publication-id`,e=>e.id),r=n.append(`h2`);return r.append(`span`).attr(`class`,`icon`).text(e=>e.internal.icon),r.append(`span`).attr(`class`,`date`).text(e=>e.internal.formattedDate),r.append(`a`).attr(`href`,`#`).html(e=>e.internal.htmlTitle).on(`click`,function(e){e.target?.parentElement?.parentElement?.classList?.toggle(`expanded`),e.preventDefault()}),n.append(`div`).attr(`class`,`text`).html(e=>e.html),e.markup(n),D},Wu=function(e,t){let n=L(e.container),r=n.append(`ul`).attr(`class`,`search-results`),i=t.cursor;function a(e){let t={},n=e.subject,r=n.name[0].name,i=n.address&&n.address[0],a=i&&i.city,o={query:t,address:i,name:r,details:e.formattedDetails},s=n.tag;switch(s&&s.terminated&&(o.terminated=!0),e.targetType){case`Company`:o.type=`c`,t.address=a,t.name=r;let i=n.register&&n.register[0];i&&i.id&&(i.city&&(t.registerCity=i.city),t.registerId=i.id);break;case`Person`:o.type=`p`;let s=r.split(`,`);t.lastName=s[0],t.firstName=Bn(s[1]),t.birthDate=n.birthDate,t.address=a,(!t.address||!t.birthDate)&&(t.id=e.targetId);break}return o}let o=n.append(`div`).attr(`class`,`more`),s=o.append(`p`),c=o.append(`a`).attr(`href`,`#`).on(`click`,function(t){let n=E(e.options,{offset:c.attr(`data-offset`),position:c.attr(`data-position`)});qn.requestData(n,function(e){f(e)},e.fail.bind(e)),t.preventDefault()}),l=i.items.length==0,u=e.handlerValue(`noResults`),d=e.handlerValue(`oneResult`);l?u?u():n.append(`p`).text(`Keine Resultate zu dieser Suche.`):i.items.length==1&&d?d(a(i.items[0])):f(t);function f(t){let n=t.cursor;for(let i of n.items){let n=a(i),o=n.query,s=o.address,c=o.name;c||=o.lastName+`, `+o.firstName,s&&(c+=`, `+s);let l=r.append(`li`).attr(`class`,`search-result`);l.append(`span`).attr(`class`,`icon`).text(i.targetType==`Company`?``:``);let u=l.append(`div`).attr(`class`,`body`),d=u.append(`a`).attr(`href`,document.location.pathname+`?`+Un(o)).text(c).on(`click`,function(n){e.invokeClickHandler(t)&&n.preventDefault()});n.terminated&&d.append(`sup`).attr(`title`,`erloschen`).text(`✝︎`),u.append(`div`).attr(`class`,`detail`).text(n.detail);for(let e of i.formattedDetails)u.append(`div`).attr(`class`,`detail`).text(e)}o.attr(`data-total`,n.total);let i=Number(n.offset+n.items.length).toLocaleString();n.total?i+=` Resultate von `+Number(n.total).toLocaleString()+` insgesamt.`:i+=` Resultate.`,s.text(i),c.text(n.lastPage?``:`Weitere Resultate anzeigen`).attr(`data-offset`,n.offset+n.limit).attr(`data-position`,t.properties.nextPosition)}return D};function Gu(e){return!isNaN(parseFloat(e))&&isFinite(e)}var Ku=function(e,t){if(!t.sheet)throw Error(`no data`);for(let n of t.sheet){if(!n){let t=e.stringValue(`subject`)||`assets`;throw Error(`no data for subject '`+t+`'`)}let t=n.column,r=n.row,i=e.isReverseChronology(),a=e.numberValue(`maxYears`)||5;i&&t.reverse();let o=function(e){return i?e<a:e>=t.length-a};if(t.length<=0)break;let s=t[0].currency,l=1,u=s.unit,d=e.i18n().numberFormatter;if(s){let t=0,n=0,i=0;for(let e of r)for(let r of e.cell)if(Gu(r.value)){let e=Math.abs(r.value);e>1e5&&(++i,e>1e7&&(++n,e>1e10&&++t))}let a=t>=5,o=n>=5;if(i<5&&(d=e.i18n().decimalFormatter),o){u==`EUR`&&(u=`€`),u==`USD`&&(u=`$`),u==`GBP`&&(u=`£`);let e=eo(`K`,`Tsd. `,`K`);l=1e3,a&&(l=1e6,e=eo(`M`,`Mio. `,`M`)),e.length==1&&u.length==1&&(u=` `+u),u=e+u}}let f=document.createElement(`table`),p=L(f).attr(`class`,`ui bizq very compact celled small unstackable selectable first stuck table`),m=p.append(`thead`).append(`tr`),h=m.append(`th`).attr(`class`,`first`);h.text(u),h.append(`a`).attr(`href`,n.info.csvUrl).attr(`download`,`download`).attr(`title`,`CSV/Excel Download`).classed(`screen-only`,!0).append(`i`).attr(`class`,`download icon`),t.forEach((n,r)=>{o(r)&&m.append(`th`).text(n.date?e.i18n().dateFormatter(n.date):``).attr(`data-col`,t.length-r).attr(`data-source-title`,n.info.publication.title).attr(`data-source-date`,n.info.publication.date)});let g=(e,t)=>e&&e.semantics&&e.semantics.indexOf(t)>=0,_=e=>g(e,`SUMMARY`),v=e=>g(e,`CUSTOM`),y=p.append(`tbody`);r.forEach(n=>{if(!g(n,`HELPER`)){let r=0,a=e.isPrint()?2:1,s=n.level&&n.level.value,u=s<a?`expanded`:`closed`;s>a&&(u+=` hidden`);let f=L(document.createElement(`tr`)).attr(`class`,u+` active-on-hover`).attr(`data-row`,n.info&&n.info.id).attr(`data-level`,s).attr(`data-parent-row`,n.info?n.info.parentId:null).attr(`data-child-count`,()=>n.info&&typeof n.info.childCount==`number`&&n.info.childCount>0?n.info.childCount:null).attr(`data-summary`,_(n)).attr(`data-custom`,v(n)).on(`click`,function(e){c(e&&e.target),e.preventDefault()});f.append(`td`).attr(`class`,`first`).text(n.text??n.name),i&&n.cell.reverse(),n.cell.forEach((e,n)=>{if(o(n)){let i=e.value===void 0?``:d(e.value/l);i&&r++,f.append(`td`).attr(`data-col`,t.length-n).text(i)}}),r>0?y.node().appendChild(f.node()):n.info?.parentId&&y.select(`tr[data-row="${n.info.parentId}"][data-child-count]`).attr(`data-child-count`,function(){let e=parseInt(L(this).attr(`data-child-count`))-1;return e>0?e:null})}});let b=p.append(`tfoot`).append(`tr`);b.append(`th`).attr(`class`,`first`).text(e.trilingual(`Source`,`Quelle`,`Source`));let x=e.handlerValue(`sourceClick`);t.forEach((e,n)=>{if(o(n)){let r=b.append(`th`).attr(`data-col`,t.length-n);if(r.html(e.info.noteHtml),x){let t=e.info.publication,n=typeof e.info.source==`string`?[e.info.source]:e.info.source;r.selectAll(`a`).attr(`href`,`javascript:void(0);`).on(`click`,function(e){e.preventDefault(),x({publication:t,source:n})})}}}),f.setAttribute(`data-item`,n.info.item),e.showItem(n.info.title,f)}let n=`expanded`,r=`closed`;function i(e){let t=L(e);return e.matches(`tr`)?t:In(t,`tr`)}function a(e){let t=e.size()==0?`?`:e.attr(`data-row`);return In(e,`table`).selectAll(`[data-parent-row='`+t+`']`)}function o(e){let t=i(e);t.classed(r,!1).classed(n,!0),a(t).classed(`hidden`,!1)}function s(e){let t=i(e);t.classed(r,!0).classed(n,!1),a(t).classed(`hidden`,!0).each(function(){s(this)})}function c(e){i(e).classed(n)?s(e):o(e)}return D},qu=function(e,t){let n=e.container,r=e.i18n().timeScaleFormatter,i={chartLeft:12,right:15,top:0,bottom:0},a=.5,o=18*.71,s=t.lines;if(!s||!s.length)throw Error(`vita empty`);let c=s.length,l=i.top+23*c+5,u=new Date(t.startDate).getTime(),d=new Date(t.endDate).getTime(),f=e=>e?new Date(e):null,p=L(e.container).append(`svg`);p.append(`title`).text(eo(`History`,`Historie`,`Historique`));let m=e=>e?e.toLocaleDateString():``;return{draw:function(){p.select(`g`).remove();let t=p.append(`g`),c=n.getBoundingClientRect().width;p.attr(`width`,c);let h=function(){let e=[];for(let t of s)for(let n of t.bars)e.push(n.role.abbr),e.push(n.role.abbr+` `+t.text);let n={};return t.selectAll(`.textWidthDummy`).data(e).enter().append(`text`).text(function(e){return e}).each(function(e){n[e]=this.getComputedTextLength(),this.remove()}),n}(),g=function(e,t,n){if(t){let r=e+` `+t,i=h[r],a=n-8;if(i!==void 0&&a>i)return{text:r,width:i,containsSuffix:!0}}let r=h[e];return r!==void 0&&n>r?{text:e,width:r}:{text:`…`,width:0}},_=function(){if(c>=600)return!0;let e=30*86400*1e3;for(let t of s)for(let n of t.bars){let t=f(n.assumedStart),r=f(n.end)||new Date;if(!t||Math.abs(t.getTime()-u)<e||Math.abs(d-r.getTime())<e)return!0}return!1},v=os().domain([u,d]).range([i.chartLeft,c-i.right]);_()&&(v=v.nice());let y=ys(v).tickFormat(r).tickSizeInner(8).tickSizeOuter(10).ticks(Math.min(c/100,10));t.append(`g`).attr(`class`,`axis`).attr(`transform`,`translate(0,`+l+`)`).call(y).attr(`font-size`,null).attr(`font-family`,null),t.append(`g`).attr(`class`,`axis grid`).attr(`transform`,`translate(0,`+l+`)`).call(y.tickSizeInner(-l).tickSizeOuter(0)).call(e=>e.selectAll(`.tick text`).remove());let b=i.chartLeft,x=c-i.right,S=0;for(let n of s){let r=i.top+23*S+5,s=r+18,c=r+18*.75-1,l=(r+s)/2;t.append(`line`).attr(`x1`,b).attr(`x2`,x).attr(`y1`,l).attr(`y2`,l).attr(`class`,`grid`);let u=n.bars.length,d=0,p=!1,m=0,h=0;for(let s of n.bars){let l=f(s.assumedStart),_=f(s.end)||new Date,y=l?v(l):i.chartLeft+o,S=!s.start;S?y+=o:y+=a;let C=v(_);s.openEnded&&s.end?C-=o:C-=a,C=Math.max(y,C);let w=C-y,T=y+w/2;w<10&&(S&&!s.openEnded?T-=3:s.openEnded&&!S&&(T+=3));let E=g(s.role.abbr,p?void 0:n.text,w);if(E.containsSuffix&&(p=!0),d==0){let e=S?y-o:y;m=(E.width?Math.min(T-E.width/2,e):e)-b-2}if(d==u-1){let e=s.openEnded?C+o:C;h=x-(E.width?Math.max(T+E.width/2,e):e)-2}let D=t.append(`svg:a`).attr(`xlink:href`,s.url||``).attr(`xlink:title`,s.title).attr(`data-old`,s.end?!0:null).attr(`data-clickable`,()=>e.getClickHandler(`p`)?!0:null).on(`click`,function(t){e.invokeClickHandler(s)&&t.preventDefault()});if(D.append(`title`).text(s.title),S){let e=y-o,t=y,n=r,i=r+18,a=[t+`,`+n,t+`,`+i,e+`,`+(n+i)/2];D.append(`polygon`).attr(`points`,a.join(` `)).attr(`class`,`in c`+s.role.cat)}if(s.openEnded){let e=C,t=Math.min(o+e,x),n=r,i=r+18,a=[e+`,`+n,e+`,`+i,t+`,`+(n+i)/2];D.append(`polygon`).attr(`points`,a.join(` `)).attr(`class`,`out c`+s.role.cat)}D.append(`rect`).attr(`x`,y).attr(`y`,r).attr(`width`,w).attr(`height`,18).attr(`class`,`c`+s.role.cat),D.append(`text`).attr(`x`,T).attr(`y`,c).attr(`class`,`label-text c`+s.role.cat).text(E.text),++d}p||(m>h?m>200&&t.append(`text`).attr(`x`,b+m).attr(`y`,c).attr(`class`,`left extra`).text(n.text):h>200&&t.append(`text`).attr(`x`,x-h).attr(`y`,c).attr(`class`,`right extra`).text(n.text)),++S}let C=new Date,w=`Heute, `+m(C),T=v(C),E=t.append(`svg:a`).attr(`xlink:title`,w);E.append(`title`).text(w),E.append(`line`).attr(`class`,`today`).attr(`x1`,T).attr(`y1`,0).attr(`x2`,T).attr(`y2`,l+15),p.attr(`height`,l+30)}}},Ju;(function(e){e.Widget=oo,e.version=T;let t=e.options={dataDomain:``,detectDataDomain:!0,__debug:!0};function n(e){t.__debug=!1,e===void 0?(t.dataDomain=`https://www.northdata.de`,t.detectDataDomain=!1):(t.dataDomain=e.dataDomain??t.dataDomain,t.detectDataDomain=e.detectDataDomain??t.detectDataDomain)}e.initialize=n;function r(...e){i(`info`,...e)}e.debug=r;function i(e,...n){t.__debug&&console[e](...n)}e.log=i,ee({barChart:Ss,drillDown:zc,graph:Vc,dendrogram:Rc,history:Lu,vita:qu,pubTable:Uu,pubShop:Hu,personTable:zu,sheet:Ku,financials:Bc,contact:Cs,overview:Ru,searchResults:Wu})})(Ju||={});var $=Ju;return{Widget:Ju.Widget,version:Ju.version,initialize:Ju.initialize}});
|