vendor: 8,932 bytes, line 1
1import{_ as zc}from"./p77YAyS_.js";import{_ as Hc}from"./8FTxKh1M.js";import{_ as Wc}from"./B6MTFT30.js";import{_ as Vc}from"./BhfY9hyJ.js";import{d as Fs}from"./u2-Vk_wz.js";import{fv as Uc,r as Bt,a3 as Yc,m as Is,P as Yt,bi as Xc,w as ut,bG as qc,aF as Jt,bg as Xi,aK as Kt,aN as gt,x as Xt,a_ as Gc,aW as Et,aU as jc,aQ as We,ai as Le,n as ve,eH as Zc,eI as Qc,fD as Jc,bJ as Kc,M as tt,bK as Te,y as tu,bm as V,u as qi,v as Gi,fE as eu,L as Ls,f3 as nu}from"./uKV8ELha.js";import"./1Fh_g1AI.js";try{let t=typeof window<"u"?window:typeof le<"u"?le:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="10beffcd-d5ee-4aab-89d8-25148b27ca72",t._sentryDebugIdIdentifier="sentry-dbid-10beffcd-d5ee-4aab-89d8-25148b27ca72")}catch{}var ur="http://www.w3.org/1999/xhtml";const Bs={svg:"http://www.w3.org/2000/svg",xhtml:ur,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ci(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),Bs.hasOwnProperty(e)?{space:Bs[e],local:t}:t}function iu(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===ur&&e.documentElement.namespaceURI===ur?e.createElement(t):e.createElementNS(n,t)}}function ru(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function va(t){var e=Ci(t);return(e.local?ru:iu)(e)}function su(){}function qr(t){return t==null?su:function(){return this.querySelector(t)}}function ou(t){typeof t!="function"&&(t=qr(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var s=e[r],o=s.length,a=i[r]=new Array(o),l,c,h=0;h<o;++h)(l=s[h])&&(c=t.call(l,l.__data__,h,s))&&("__data__"in l&&(c.__data__=l.__data__),a[h]=c);return new ht(i,this._parents)}function au(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function lu(){return[]}function ma(t){return t==null?lu:function(){return this.querySelectorAll(t)}}function cu(t){return function(){return au(t.apply(this,arguments))}}function uu(t){typeof t=="function"?t=cu(t):t=ma(t);for(var e=this._groups,n=e.length,i=[],r=[],s=0;s<n;++s)for(var o=e[s],a=o.length,l,c=0;c<a;++c)(l=o[c])&&(i.push(t.call(l,l.__data__,c,o)),r.push(l));return new ht(i,r)}function _a(t){return function(){return this.matches(t)}}function ya(t){return function(e){return e.matches(t)}}var hu=Array.prototype.find;function fu(t){return function(){return hu.call(this.children,t)}}function du(){return this.firstElementChild}function gu(t){return this.select(t==null?du:fu(typeof t=="function"?t:ya(t)))}var pu=Array.prototype.filter;function vu(){return Array.from(this.children)}function mu(t){return function(){return pu.call(this.children,t)}}function _u(t){return this.selectAll(t==null?vu:mu(typeof t=="function"?t:ya(t)))}function yu(t){typeof t!="function"&&(t=_a(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var s=e[r],o=s.length,a=i[r]=[],l,c=0;c<o;++c)(l=s[c])&&t.call(l,l.__data__,c,s)&&a.push(l);return new ht(i,this._parents)}function xa(t){return new Array(t.length)}function xu(){return new ht(this._enter||this._groups.map(xa),this._parents)}function Qn(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Qn.prototype={constructor:Qn,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function bu(t){return function(){return t}}function wu(t,e,n,i,r,s){for(var o=0,a,l=e.length,c=s.length;o<c;++o)(a=e[o])?(a.__data__=s[o],i[o]=a):n[o]=new Qn(t,s[o]);for(;o<l;++o)(a=e[o])&&(r[o]=a)}function ku(t,e,n,i,r,s,o){var a,l,c=new Map,h=e.length,u=s.length,f=new Array(h),d;for(a=0;a<h;++a)(l=e[a])&&(f[a]=d=o.call(l,l.__data__,a,e)+"",c.has(d)?r[a]=l:c.set(d,l));for(a=0;a<u;++a)d=o.call(t,s[a],a,s)+"",(l=c.get(d))?(i[a]=l,l.__data__=s[a],c.delete(d)):n[a]=new Qn(t,s[a]);for(a=0;a<h;++a)(l=e[a])&&c.get(f[a])===l&&(r[a]=l)}function Su(t){return t.__data__}function Tu(t,e){if(!arguments.length)return Array.from(this,Su);var n=e?ku:wu,i=this._parents,r=this._groups;typeof t!="function"&&(t=bu(t));for(var s=r.length,o=new Array(s),a=new Array(s),l=new Array(s),c=0;c<s;++c){var h=i[c],u=r[c],f=u.length,d=Cu(t.call(h,h&&h.__data__,c,i)),g=d.length,p=a[c]=new Array(g),v=o[c]=new Array(g),m=l[c]=new Array(f);n(h,u,p,v,m,d,e);for(var y=0,_=0,b,k;y<g;++y)if(b=p[y]){for(y>=_&&(_=y+1);!(k=v[_])&&++_<g;);b._next=k||null}}return o=new ht(o,i),o._enter=a,o._exit=l,o}function Cu(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Mu(){return new ht(this._exit||this._groups.map(xa),this._parents)}function Au(t,e,n){var i=this.enter(),r=this,s=this.exit();return typeof t=="function"?(i=t(i),i&&(i=i.selection())):i=i.append(t+""),e!=null&&(r=e(r),r&&(r=r.selection())),n==null?s.remove():n(s),i&&r?i.merge(r).order():r}function $u(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,r=n.length,s=i.length,o=Math.min(r,s),a=new Array(r),l=0;l<o;++l)for(var c=n[l],h=i[l],u=c.length,f=a[l]=new Array(u),d,g=0;g<u;++g)(d=c[g]||h[g])&&(f[g]=d);for(;l<r;++l)a[l]=n[l];return new ht(a,this._parents)}function Du(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i=t[e],r=i.length-1,s=i[r],o;--r>=0;)(o=i[r])&&(s&&o.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(o,s),s=o);return this}function Eu(t){t||(t=Nu);function e(u,f){return u&&f?t(u.__data__,f.__data__):!u-!f}for(var n=this._groups,i=n.length,r=new Array(i),s=0;s<i;++s){for(var o=n[s],a=o.length,l=r[s]=new Array(a),c,h=0;h<a;++h)(c=o[h])&&(l[h]=c);l.sort(e)}return new ht(r,this._parents).order()}function Nu(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Ou(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Ru(){return Array.from(this)}function Pu(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,s=i.length;r<s;++r){var o=i[r];if(o)return o}return null}function Fu(){let t=0;for(const e of this)++t;return t}function Iu(){return!this.node()}function Lu(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var r=e[n],s=0,o=r.length,a;s<o;++s)(a=r[s])&&t.call(a,a.__data__,s,r);return this}function Bu(t){return function(){this.removeAttribute(t)}}function zu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Hu(t,e){return function(){this.setAttribute(t,e)}}function Wu(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Vu(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function Uu(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,n)}}function Yu(t,e){var n=Ci(t);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((e==null?n.local?zu:Bu:typeof e=="function"?n.local?Uu:Vu:n.local?Wu:Hu)(n,e))}function ba(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function Xu(t){return function(){this.style.removeProperty(t)}}function qu(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Gu(t,e,n){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function ju(t,e,n){return arguments.length>1?this.each((e==null?Xu:typeof e=="function"?Gu:qu)(t,e,n??"")):Ee(this.node(),t)}function Ee(t,e){return t.style.getPropertyValue(e)||ba(t).getComputedStyle(t,null).getPropertyValue(e)}function Zu(t){return function(){delete this[t]}}function Qu(t,e){return function(){this[t]=e}}function Ju(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Ku(t,e){return arguments.length>1?this.each((e==null?Zu:typeof e=="function"?Ju:Qu)(t,e)):this.node()[t]}function wa(t){return t.trim().split(/^|\s+/)}function Gr(t){return t.classList||new ka(t)}function ka(t){this._node=t,this._names=wa(t.getAttribute("class")||"")}ka.prototype={add:function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};function Sa(t,e){for(var n=Gr(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function Ta(t,e){for(var n=Gr(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function th(t){return function(){Sa(this,t)}}function eh(t){return function(){Ta(this,t)}}function nh(t,e){return function(){(e.apply(this,arguments)?Sa:Ta)(this,t)}}function ih(t,e){var n=wa(t+"");
1if(arguments.length<2){for(var i=Gr(this.node()),r=-1,s=n.length;++r<s;)if(!i.contains(n[r]))return!1;return!0}return this.each((typeof e=="function"?nh:e?th:eh)(n,e))}function rh(){this.textContent=""}function sh(t){return function(){this.textContent=t}}function oh(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function ah(t){return arguments.length?this.each(t==null?rh:(typeof t=="function"?oh:sh)(t)):this.node().textContent}function lh(){this.innerHTML=""}function ch(t){return function(){this.innerHTML=t}}function uh(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function hh(t){return arguments.length?this.each(t==null?lh:(typeof t=="function"?uh:ch)(t)):this.node().innerHTML}function fh(){this.nextSibling&&this.parentNode.appendChild(this)}function dh(){return this.each(fh)}function gh(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ph(){return this.each(gh)}function vh(t){var e=typeof t=="function"?t:va(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function mh(){return null}function _h(t,e){var n=typeof t=="function"?t:va(t),i=e==null?mh:typeof e=="function"?e:qr(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function yh(){var t=this.parentNode;t&&t.removeChild(this)}function xh(){return this.each(yh)}function bh(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function wh(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function kh(t){return this.select(t?wh:bh)}function Sh(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Th(t){return function(e){t.call(this,e,this.__data__)}}function Ch(t){return t.trim().split(/^|\s+/).map(function(e){var n="",i=e.indexOf(".");return i>=0&&(n=e.slice(i+1),e=e.slice(0,i)),{type:e,name:n}})}function Mh(t){return function(){var e=this.__on;if(e){for(var n=0,i=-1,r=e.length,s;n<r;++n)s=e[n],(!t.type||s.type===t.type)&&s.name===t.name?this.removeEventListener(s.type,s.listener,s.options):e[++i]=s;++i?e.length=i:delete this.__on}}}function Ah(t,e,n){return function(){var i=this.__on,r,s=Th(e);if(i){for(var o=0,a=i.length;o<a;++o)if((r=i[o]).type===t.type&&r.name===t.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=s,r.options=n),r.value=e;return}}this.addEventListener(t.type,s,n),r={type:t.type,name:t.name,value:e,listener:s,options:n},i?i.push(r):this.__on=[r]}}function $h(t,e,n){var i=Ch(t+""),r,s=i.length,o;if(arguments.length<2){var a=this.node().__on;if(a){for(var l=0,c=a.length,h;l<c;++l)for(r=0,h=a[l];r<s;++r)if((o=i[r]).type===h.type&&o.name===h.name)return h.value}return}for(a=e?Ah:Mh,r=0;r<s;++r)this.each(a(i[r],e,n));return this}function Ca(t,e,n){var i=ba(t),r=i.CustomEvent;typeof r=="function"?r=new r(e,n):(r=i.document.createEvent("Event"),n?(r.initEvent(e,n.bubbles,n.cancelable),r.detail=n.detail):r.initEvent(e,!1,!1)),t.dispatchEvent(r)}function Dh(t,e){return function(){return Ca(this,t,e)}}function Eh(t,e){return function(){return Ca(this,t,e.apply(this,arguments))}}function Nh(t,e){return this.each((typeof e=="function"?Eh:Dh)(t,e))}function*Oh(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,s=i.length,o;r<s;++r)(o=i[r])&&(yield o)}var Ma=[null];function ht(t,e){this._groups=t,this._parents=e}function vn(){return new ht([[document.documentElement]],Ma)}function Rh(){return this}ht.prototype=vn.prototype={constructor:ht,select:ou,selectAll:uu,selectChild:gu,selectChildren:_u,filter:yu,data:Tu,enter:xu,exit:Mu,join:Au,merge:$u,selection:Rh,order:Du,sort:Eu,call:Ou,nodes:Ru,node:Pu,size:Fu,empty:Iu,each:Lu,attr:Yu,style:ju,property:Ku,classed:ih,text:ah,html:hh,raise:dh,lower:ph,append:vh,insert:_h,remove:xh,clone:kh,datum:Sh,on:$h,dispatch:Nh,[Symbol.iterator]:Oh};function K(t){return typeof t=="string"?new ht([[document.querySelector(t)]],[document.documentElement]):new ht([[t]],Ma)}function Ph(t){let e;for(;e=t.sourceEvent;)t=e;return t}function Jn(t,e){if(t=Ph(t),e===void 0&&(e=t.currentTarget),e){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=t.clientX,i.y=t.clientY,i=i.matrixTransform(e.getScreenCTM().inverse()),[i.x,i.y]}if(e.getBoundingClientRect){var r=e.getBoundingClientRect();return[t.clientX-r.left-e.clientLeft,t.clientY-r.top-e.clientTop]}}return[t.pageX,t.pageY]}var en;(function(t){t[t.SVG=0]="SVG",t[t.HTML=1]="HTML"})(en||(en={}));var Ne;(function(t){t.Fit="fit",t.Extend="extend",t.FitWidth="fit_width"})(Ne||(Ne={}));function nn(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Fh(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function jr(t){let e,n,i;t.length!==2?(e=nn,n=(a,l)=>nn(t(a),l),i=(a,l)=>t(a)-l):(e=t===nn||t===Fh?t:Ih,n=t,i=t);function r(a,l,c=0,h=a.length){if(c<h){if(e(l,l)!==0)return h;do{const u=c+h>>>1;n(a[u],l)<0?c=u+1:h=u}while(c<h)}return c}function s(a,l,c=0,h=a.length){if(c<h){if(e(l,l)!==0)return h;do{const u=c+h>>>1;n(a[u],l)<=0?c=u+1:h=u}while(c<h)}return c}function o(a,l,c=0,h=a.length){const u=r(a,l,c,h-1);return u>c&&i(a[u-1],l)>-i(a[u],l)?u-1:u}return{left:r,center:o,right:s}}function Ih(){return 0}function Aa(t){return t===null?NaN:+t}const $a=jr(nn),mn=$a.right,Lh=$a.left;jr(Aa).center;function Bh(t,e){let n,i;for(const r of t)r!=null&&(n===void 0?r>=r&&(n=i=r):(n>r&&(n=r),i<r&&(i=r)));return[n,i]}class zs extends Map{constructor(e,n=Wh){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),e!=null)for(const[i,r]of e)this.set(i,r)}get(e){return super.get(Hs(this,e))}has(e){return super.has(Hs(this,e))}set(e,n){return super.set(zh(this,e),n)}delete(e){return super.delete(Hh(this,e))}}function Hs({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):n}function zh({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):(t.set(i,n),n)}function Hh({_intern:t,_key:e},n){const i=e(n);return t.has(i)&&(n=t.get(i),t.delete(i)),n}function Wh(t){return t!==null&&typeof t=="object"?t.valueOf():t}const Vh=Math.sqrt(50),Uh=Math.sqrt(10),Yh=Math.sqrt(2);
1function Kn(t,e,n){const i=(e-t)/Math.max(0,n),r=Math.floor(Math.log10(i)),s=i/Math.pow(10,r),o=s>=Vh?10:s>=Uh?5:s>=Yh?2:1;let a,l,c;return r<0?(c=Math.pow(10,-r)/o,a=Math.round(t*c),l=Math.round(e*c),a/c<t&&++a,l/c>e&&--l,c=-c):(c=Math.pow(10,r)*o,a=Math.round(t/c),l=Math.round(e/c),a*c<t&&++a,l*c>e&&--l),l<a&&.5<=n&&n<2?Kn(t,e,n*2):[a,l,c]}function hr(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];const i=e<t,[r,s,o]=i?Kn(e,t,n):Kn(t,e,n);if(!(s>=r))return[];const a=s-r+1,l=new Array(a);if(i)if(o<0)for(let c=0;c<a;++c)l[c]=(s-c)/-o;else for(let c=0;c<a;++c)l[c]=(s-c)*o;else if(o<0)for(let c=0;c<a;++c)l[c]=(r+c)/-o;else for(let c=0;c<a;++c)l[c]=(r+c)*o;return l}function fr(t,e,n){return e=+e,t=+t,n=+n,Kn(t,e,n)[2]}function dr(t,e,n){e=+e,t=+t,n=+n;const i=e<t,r=i?fr(e,t,n):fr(t,e,n);return(i?-1:1)*(r<0?1/-r:r)}function gr(t,e){let n;if(e===void 0)for(const i of t)i!=null&&(n<i||n===void 0&&i>=i)&&(n=i);else{let i=-1;for(let r of t)(r=e(r,++i,t))!=null&&(n<r||n===void 0&&r>=r)&&(n=r)}return n}function rn(t,e){let n;if(e===void 0)for(const i of t)i!=null&&(n>i||n===void 0&&i>=i)&&(n=i);else{let i=-1;for(let r of t)(r=e(r,++i,t))!=null&&(n>r||n===void 0&&r>=r)&&(n=r)}return n}function Xh(t,e,n=Aa){if(!(!(i=t.length)||isNaN(e=+e))){if(e<=0||i<2)return+n(t[0],0,t);if(e>=1)return+n(t[i-1],i-1,t);var i,r=(i-1)*e,s=Math.floor(r),o=+n(t[s],s,t),a=+n(t[s+1],s+1,t);return o+(a-o)*(r-s)}}function qh(t,e){let n=0,i=0;if(e===void 0)for(let r of t)r!=null&&(r=+r)>=r&&(++n,i+=r);else{let r=-1;for(let s of t)(s=e(s,++r,t))!=null&&(s=+s)>=s&&(++n,i+=s)}if(n)return i/n}function*Gh(t){for(const e of t)yield*e}function jh(t){return Array.from(Gh(t))}function Zh(t,e,n){t=+t,e=+e,n=(r=arguments.length)<2?(e=t,t=0,1):r<3?1:+n;for(var i=-1,r=Math.max(0,Math.ceil((e-t)/n))|0,s=new Array(r);++i<r;)s[i]=t+i*n;return s}function Qh(t,e){let n=0;if(e===void 0)for(let i of t)(i=+i)&&(n+=i);else{let i=-1;for(let r of t)(r=+e(r,++i,t))&&(n+=r)}return n}function Jh(t,e,n){var i={},r=i.noTrailing,s=r===void 0?!1:r,o=i.noLeading,a=o===void 0?!1:o,l=i.debounceMode,c=l===void 0?void 0:l,h,u=!1,f=0;function d(){h&&clearTimeout(h)}function g(v){var m=v||{},y=m.upcomingOnly,_=y===void 0?!1:y;d(),u=!_}function p(){for(var v=arguments.length,m=new Array(v),y=0;y<v;y++)m[y]=arguments[y];var _=this,b=Date.now()-f;if(u)return;function k(){f=Date.now(),e.apply(_,m)}function x(){h=void 0}!a&&c&&!h&&k(),d(),c===void 0&&b>t?a?(f=Date.now(),s||(h=setTimeout(c?x:k,t))):k():s!==!0&&(h=setTimeout(c?x:k,c===void 0?t-b:t))}return p.cancel=g,p}var Pt;(function(t){t.Left="left",t.Right="right",t.Auto="auto"})(Pt||(Pt={}));const vt=t=>typeof t=="number",Zr=t=>typeof t=="function",Kh=t=>typeof t=="string",zt=t=>Array.isArray(t),tf=t=>t instanceof Object,ti=t=>t.constructor.name!=="Function"&&t.constructor.name!=="Object",Ws=t=>tf(t)&&!zt(t)&&!Zr(t)&&!ti(t),ef=t=>[Object,Array].includes((t||{}).constructor)&&!Object.entries(t||{}).length,he=(t,e,n=[],i=new Set)=>{if(Array.isArray(t)){if(!Array.isArray(e)||t.length!==e.length)return!1;if(i.has(t))return!0;i.add(t);for(let r=0;r<t.length;r++)if(!he(t[r],e[r],n,i))return!1;return!0}if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(typeof t=="object"&&t!==null&&e!==null){if(typeof e!="object")return!1;if(t===e)return!0;const r=Object.keys(t).filter(o=>!n.includes(o)),s=Object.keys(e).filter(o=>!n.includes(o));if(r.length!==s.length)return!1;if(i.has(t))return!0;i.add(t);for(const o of r)if(!he(t[o],e[o],n,i))return!1;return!0}return t===e},pr=t=>t.flat(),ei=(t,e=new Map)=>{if(typeof t!="object"||t===null)return t;if(t instanceof Date)return new Date(t.getTime());if(t instanceof Array){const n=[];e.set(t,n);for(const i of t)n.push(e.has(i)?e.get(i):ei(i,e));return n}if(ti(t))return t;if(t instanceof Object){const n={};e.set(t,n);const i=t;return Object.keys(t).reduce((r,s)=>(r[s]=e.has(i[s])?e.get(i[s]):ei(i[s],e),r),n),n}return t},fe=(t,e,n=new Map)=>{if(!t||!e||t===e)return t;const i=ti(t)?t:ei(t);return n.has(e)?n.get(e):(n.set(e,i),Object.keys(e).forEach(r=>{r==="__proto__"||r==="constructor"||(Ws(t[r])&&Ws(e[r])?i[r]=fe(t[r],e[r],n):ti(e)?i[r]=e:i[r]=ei(e[r]))}),i)},ni=(t,e,n)=>Jh(e,t);function Mi(t,e,n){return Zr(e)?e(t,n):e}function de(t,e,n){return Mi(t,e,n)}function L(t,e,n){return Mi(t,e,n)}function Ve(t){return t.filter(e=>e&&!vt(e))}function Ft(t,e,n){return Math.min(Math.max(t,e),n)}function Da(t,...e){if(!t)return[void 0,void 0];if(zt(e)){let n=0,i=0;return t.forEach((r,s)=>{let o=0,a=0;for(const l of e){const c=L(r,l,s)||0;c>=0?o+=c:a+=c}o>i&&(i=o),a<n&&(n=a)}),[n,i]}}function nf(t,e,...n){const i=[];let r=0,s=0;for(const o of n){const a=L(t,o,e)||0;a>=0?i.push(r+=a):i.push(s+=a)}return i}function Ea(t,e,n,i){const r=t.map((a,l)=>L(a,e,l)||0),s=n.map((a,l)=>{const c=qh(t,(h,u)=>L(h,a,u)||0);return c===0&&Array.isArray(i)?i[l]:c<0}),o=n.map(()=>[]);return t.forEach((a,l)=>{let c=r[l],h=r[l];
1n.forEach((u,f)=>{const d=L(a,u,l)||0;d>=0?o[f].push([c,c+=d]):o[f].push([h,h+=d])})}),o.forEach((a,l)=>{a.isMostlyNegative=s[l]}),o}function rf(t,...e){return t?rn(t,(i,r)=>rn(e,s=>L(i,s,r))):void 0}function sf(t,...e){return t?gr(t,(i,r)=>gr(e,s=>L(i,s,r))):void 0}function On(t,...e){return[rf(t,...e),sf(t,...e)]}function ii(t,e,n,i=Pt.Auto){if(t.length<=1)return t[0];const s=t.map((l,c)=>[l,c]).sort(([l,c],[h,u])=>L(l,n,c)-L(h,n,u)),o=s.map(([l,c])=>L(l,n,c)),a=i===Pt.Right?Lh(o,e,0,t.length-1):mn(o,e,1,t.length);return i===Pt.Right?s[a][0]:i===Pt.Left?s[a-1][0]:e-o[a-1]>o[a]-e?s[a][0]:s[a-1][0]}function Na(t,e,n,i=!1){if(!n)return[];const r=t.filter((s,o)=>{const a=L(s,n,o);return a>=e[0]&&a<=e[1]});if(i){if(r.length===0){const u=ii(t,e[0],n,Pt.Left),f=ii(t,e[1],n,Pt.Right);return[u,f].filter(Boolean)}const s=r[0],o=r[r.length-1],a=t.findIndex(u=>u===s),l=t.findIndex(u=>u===o),c=Math.max(0,a-1),h=Math.min(t.length-1,l+1);return t.slice(c,h+1)}return r}const of=t=>t==null?[]:Array.isArray(t)?t:[t];var oe=[],af=function(){return oe.some(function(t){return t.activeTargets.length>0})},lf=function(){return oe.some(function(t){return t.skippedTargets.length>0})},Vs="ResizeObserver loop completed with undelivered notifications.",cf=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:Vs}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=Vs),window.dispatchEvent(t)},an;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(an||(an={}));var ae=function(t){return Object.freeze(t)},uf=(function(){function t(e,n){this.inlineSize=e,this.blockSize=n,ae(this)}return t})(),Oa=(function(){function t(e,n,i,r){return this.x=e,this.y=n,this.width=i,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,ae(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,i=e.y,r=e.top,s=e.right,o=e.bottom,a=e.left,l=e.width,c=e.height;return{x:n,y:i,top:r,right:s,bottom:o,left:a,width:l,height:c}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t})(),Qr=function(t){return t instanceof SVGElement&&"getBBox"in t},Ra=function(t){if(Qr(t)){var e=t.getBBox(),n=e.width,i=e.height;return!n&&!i}var r=t,s=r.offsetWidth,o=r.offsetHeight;return!(s||o||t.getClientRects().length)},Us=function(t){var e;if(t instanceof Element)return!0;var n=(e=t?.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},hf=function(t){switch(t.tagName){case"INPUT":if(t.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},le=typeof window<"u"?window:{},Sn=new WeakMap,Ys=/auto|scroll/,ff=/^tb|vertical/,df=/msie|trident/i.test(le.navigator&&le.navigator.userAgent),Tt=function(t){return parseFloat(t||"0")},Me=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new uf((n?e:t)||0,(n?t:e)||0)},Xs=ae({devicePixelContentBoxSize:Me(),borderBoxSize:Me(),contentBoxSize:Me(),contentRect:new Oa(0,0,0,0)}),Pa=function(t,e){if(e===void 0&&(e=!1),Sn.has(t)&&!e)return Sn.get(t);if(Ra(t))return Sn.set(t,Xs),Xs;var n=getComputedStyle(t),i=Qr(t)&&t.ownerSVGElement&&t.getBBox(),r=!df&&n.boxSizing==="border-box",s=ff.test(n.writingMode||""),o=!i&&Ys.test(n.overflowY||""),a=!i&&Ys.test(n.overflowX||""),l=i?0:Tt(n.paddingTop),c=i?0:Tt(n.paddingRight),h=i?0:Tt(n.paddingBottom),u=i?0:Tt(n.paddingLeft),f=i?0:Tt(n.borderTopWidth),d=i?0:Tt(n.borderRightWidth),g=i?0:Tt(n.borderBottomWidth),p=i?0:Tt(n.borderLeftWidth),v=u+c,m=l+h,y=p+d,_=f+g,b=a?t.offsetHeight-_-t.clientHeight:0,k=o?t.offsetWidth-y-t.clientWidth:0,x=r?v+y:0,w=r?m+_:0,$=i?i.width:Tt(n.width)-x-k,D=i?i.height:Tt(n.height)-w-b,A=$+v+k+y,z=D+m+b+_,M=ae({devicePixelContentBoxSize:Me(Math.round($*devicePixelRatio),Math.round(D*devicePixelRatio),s),borderBoxSize:Me(A,z,s),contentBoxSize:Me($,D,s),contentRect:new Oa(u,l,$,D)});return Sn.set(t,M),M},Fa=function(t,e,n){var i=Pa(t,n),r=i.borderBoxSize,s=i.contentBoxSize,o=i.devicePixelContentBoxSize;switch(e){case an.DEVICE_PIXEL_CONTENT_BOX:return o;case an.BORDER_BOX:return r;default:return s}},gf=(function(){function t(e){var n=Pa(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=ae([n.borderBoxSize]),this.contentBoxSize=ae([n.contentBoxSize]),this.devicePixelContentBoxSize=ae([n.devicePixelContentBoxSize])}return t})(),Ia=function(t){if(Ra(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},pf=function(){var t=1/0,e=[];
1oe.forEach(function(o){if(o.activeTargets.length!==0){var a=[];o.activeTargets.forEach(function(c){var h=new gf(c.target),u=Ia(c.target);a.push(h),c.lastReportedSize=Fa(c.target,c.observedBox),u<t&&(t=u)}),e.push(function(){o.callback.call(o.observer,a,o.observer)}),o.activeTargets.splice(0,o.activeTargets.length)}});for(var n=0,i=e;n<i.length;n++){var r=i[n];r()}return t},qs=function(t){oe.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(r){r.isActive()&&(Ia(r.target)>t?n.activeTargets.push(r):n.skippedTargets.push(r))})})},vf=function(){var t=0;for(qs(t);af();)t=pf(),qs(t);return lf()&&cf(),t>0},ji,La=[],mf=function(){return La.splice(0).forEach(function(t){return t()})},_f=function(t){if(!ji){var e=0,n=document.createTextNode(""),i={characterData:!0};new MutationObserver(function(){return mf()}).observe(n,i),ji=function(){n.textContent="".concat(e?e--:e++)}}La.push(t),ji()},yf=function(t){_f(function(){requestAnimationFrame(t)})},Rn=0,xf=function(){return!!Rn},bf=250,wf={attributes:!0,characterData:!0,childList:!0,subtree:!0},Gs=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],js=function(t){return t===void 0&&(t=0),Date.now()+t},Zi=!1,kf=(function(){function t(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return t.prototype.run=function(e){var n=this;if(e===void 0&&(e=bf),!Zi){Zi=!0;var i=js(e);yf(function(){var r=!1;try{r=vf()}finally{if(Zi=!1,e=i-js(),!xf())return;r?n.run(1e3):e>0?n.run(e):n.start()}})}},t.prototype.schedule=function(){this.stop(),this.run()},t.prototype.observe=function(){var e=this,n=function(){return e.observer&&e.observer.observe(document.body,wf)};document.body?n():le.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Gs.forEach(function(n){return le.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Gs.forEach(function(n){return le.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t})(),vr=new kf,Zs=function(t){!Rn&&t>0&&vr.start(),Rn+=t,!Rn&&vr.stop()},Sf=function(t){return!Qr(t)&&!hf(t)&&getComputedStyle(t).display==="inline"},Tf=(function(){function t(e,n){this.target=e,this.observedBox=n||an.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=Fa(this.target,this.observedBox,!0);return Sf(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t})(),Cf=(function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t})(),Tn=new WeakMap,Qs=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},Cn=(function(){function t(){}return t.connect=function(e,n){var i=new Cf(e,n);Tn.set(e,i)},t.observe=function(e,n,i){var r=Tn.get(e),s=r.observationTargets.length===0;Qs(r.observationTargets,n)<0&&(s&&oe.push(r),r.observationTargets.push(new Tf(n,i&&i.box)),Zs(1),vr.schedule())},t.unobserve=function(e,n){var i=Tn.get(e),r=Qs(i.observationTargets,n),s=i.observationTargets.length===1;r>=0&&(s&&oe.splice(oe.indexOf(i),1),i.observationTargets.splice(r,1),Zs(-1))},t.disconnect=function(e){var n=this,i=Tn.get(e);i.observationTargets.slice().forEach(function(r){return n.unobserve(e,r.target)}),i.activeTargets.splice(0,i.activeTargets.length)},t})(),Mf=(function(){function t(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Cn.connect(this,e)}return t.prototype.observe=function(e,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Us(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Cn.observe(this,e,n)},t.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Us(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Cn.unobserve(this,e)},t.prototype.disconnect=function(){Cn.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t})();const Af=globalThis.ResizeObserver||Mf,Ba={duration:void 0,margin:{top:0,bottom:0,left:0,right:0},padding:{top:0,bottom:0,left:0,right:0},sizing:Ne.Fit,width:void 0,height:void 0,svgDefs:void 0,ariaLabel:void 0};class ln{constructor(e){this._defaultConfig=Ba,this._isFirstRender=!0,this._renderAnimationFrameId=null,this._container=e;const n=K(this._container);n.attr("role","figure"),this.svg=n.append("svg").style("display","block").attr("xmlns","http://www.w3.org/2000/svg").attr("height",ln.DEFAULT_CONTAINER_HEIGHT).attr("aria-hidden",!0),this._svgDefs=this.svg.append("defs"),this._svgDefsExternal=this.svg.append("defs"),this.element=this.svg.node()}updateContainer(e){var n;this.prevConfig=this.config,this.config=fe(this._defaultConfig,e),e?.svgDefs!==((n=this.prevConfig)===null||n===void 0?void 0:n.svgDef
1s)&&(this._svgDefsExternal.selectAll("*").remove(),this._svgDefsExternal.html(e.svgDefs))}_preRender(){}_render(e){const{config:n}=this;K(this._container).attr("aria-label",n.ariaLabel),this._isFirstRender=!1}render(e=this.config.duration){const n=this.config.width||this.containerWidth,i=this.config.height||this.containerHeight;this.svg.attr("width",n).attr("height",i),this._resizeObserver||this._setUpResizeObserver(),cancelAnimationFrame(this._renderAnimationFrameId),this._renderAnimationFrameId=requestAnimationFrame(()=>{this._preRender(),this._render(e)})}get containerWidth(){return this.config.width?this.element.clientWidth:this._container.clientWidth||this._container.getBoundingClientRect().width}get containerHeight(){return this.config.height?this.element.clientHeight:this._container.clientHeight||this._container.getBoundingClientRect().height||ln.DEFAULT_CONTAINER_HEIGHT}get width(){return Ft(this.containerWidth-this.config.margin.left-this.config.margin.right,0,Number.POSITIVE_INFINITY)}get height(){return Ft(this.containerHeight-this.config.margin.top-this.config.margin.bottom,0,Number.POSITIVE_INFINITY)}_removeAllChildren(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild)}_onResize(){const{config:e}=this;(e.sizing===Ne.Fit||e.sizing===Ne.FitWidth)&&this.render(0)}_setUpResizeObserver(){if(this._resizeObserver)return;const e=this._container.getBoundingClientRect();this._containerSize={width:e.width,height:e.height},this._resizeObserver=new Af((n,i)=>{cancelAnimationFrame(this._resizeObserverAnimationFrameId),this._resizeObserverAnimationFrameId=requestAnimationFrame(()=>{const r=this._container.getBoundingClientRect(),s={width:r.width,height:r.height};!he(this._containerSize,s)&&s.width&&s.height&&(this._containerSize=s,this._onResize())})}),this._resizeObserver.observe(this._container)}destroy(){var e;cancelAnimationFrame(this._renderAnimationFrameId),cancelAnimationFrame(this._resizeObserverAnimationFrameId),(e=this._resizeObserver)===null||e===void 0||e.disconnect(),this.svg.remove()}}ln.DEFAULT_CONTAINER_HEIGHT=300;function $f(t){if(t.sheet)return t.sheet;for(var e=0;e<document.styleSheets.length;e++)if(document.styleSheets[e].ownerNode===t)return document.styleSheets[e]}function Df(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),t.nonce!==void 0&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}var Ef=(function(){function t(n){var i=this;this._insertTag=function(r){var s;i.tags.length===0?i.insertionPoint?s=i.insertionPoint.nextSibling:i.prepend?s=i.container.firstChild:s=i.before:s=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(r,s),i.tags.push(r)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(i){i.forEach(this._insertTag)},e.insert=function(i){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Df(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var s=$f(r);try{s.insertRule(i,s.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(i));this.ctr++}
vendor: 12,798 bytes, line 1
1,e.flush=function(){this.tags.forEach(function(i){var r;return(r=i.parentNode)==null?void 0:r.removeChild(i)}),this.tags=[],this.ctr=0},t})(),J="-ms-",ri="-moz-",F="-webkit-",za="comm",Jr="rule",Kr="decl",Nf="@import",Ha="@keyframes",Of="@layer",Rf=Math.abs,Ai=String.fromCharCode,Pf=Object.assign;function Ff(t,e){return Z(t,0)^45?(((e<<2^Z(t,0))<<2^Z(t,1))<<2^Z(t,2))<<2^Z(t,3):0}function Wa(t){return t.trim()}function If(t,e){return(t=e.exec(t))?t[0]:t}function I(t,e,n){return t.replace(e,n)}function mr(t,e){return t.indexOf(e)}function Z(t,e){return t.charCodeAt(e)|0}function cn(t,e,n){return t.slice(e,n)}function Mt(t){return t.length}function ts(t){return t.length}function Mn(t,e){return e.push(t),t}function Lf(t,e){return t.map(e).join("")}var $i=1,Oe=1,Va=0,ot=0,Y=0,Be="";function Di(t,e,n,i,r,s,o){return{value:t,root:e,parent:n,type:i,props:r,children:s,line:$i,column:Oe,length:o,return:""}}function Ue(t,e){return Pf(Di("",null,null,"",null,null,0),t,{length:-t.length},e)}function Bf(){return Y}function zf(){return Y=ot>0?Z(Be,--ot):0,Oe--,Y===10&&(Oe=1,$i--),Y}function ct(){return Y=ot<Va?Z(Be,ot++):0,Oe++,Y===10&&(Oe=1,$i++),Y}function At(){return Z(Be,ot)}function Pn(){return ot}function _n(t,e){return cn(Be,t,e)}function un(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ua(t){return $i=Oe=1,Va=Mt(Be=t),ot=0,[]}function Ya(t){return Be="",t}function Fn(t){return Wa(_n(ot-1,_r(t===91?t+2:t===40?t+1:t)))}function Hf(t){for(;(Y=At())&&Y<33;)ct();return un(t)>2||un(Y)>3?"":" "}function Wf(t,e){for(;--e&&ct()&&!(Y<48||Y>102||Y>57&&Y<65||Y>70&&Y<97););return _n(t,Pn()+(e<6&&At()==32&&ct()==32))}function _r(t){for(;ct();)switch(Y){case t:return ot;case 34:case 39:t!==34&&t!==39&&_r(Y);break;case 40:t===41&&_r(t);break;case 92:ct();break}return ot}function Vf(t,e){for(;ct()&&t+Y!==57;)if(t+Y===84&&At()===47)break;return"/*"+_n(e,ot-1)+"*"+Ai(t===47?t:ct())}function Uf(t){for(;!un(At());)ct();return _n(t,ot)}function Yf(t){return Ya(In("",null,null,null,[""],t=Ua(t),0,[0],t))}function In(t,e,n,i,r,s,o,a,l){for(var c=0,h=0,u=o,f=0,d=0,g=0,p=1,v=1,m=1,y=0,_="",b=r,k=s,x=i,w=_;v;)switch(g=y,y=ct()){case 40:if(g!=108&&Z(w,u-1)==58){mr(w+=I(Fn(y),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:w+=Fn(y);break;case 9:case 10:case 13:case 32:w+=Hf(g);break;case 92:w+=Wf(Pn()-1,7);continue;case 47:switch(At()){case 42:case 47:Mn(Xf(Vf(ct(),Pn()),e,n),l);break;default:w+="/"}break;case 123*p:a[c++]=Mt(w)*m;case 125*p:case 59:case 0:switch(y){case 0:case 125:v=0;case 59+h:m==-1&&(w=I(w,/\f/g,"")),d>0&&Mt(w)-u&&Mn(d>32?Ks(w+";",i,n,u-1):Ks(I(w," ","")+";",i,n,u-2),l);break;case 59:w+=";";default:if(Mn(x=Js(w,e,n,c,h,r,a,_,b=[],k=[],u),s),y===123)if(h===0)In(w,e,x,x,b,s,u,a,k);else switch(f===99&&Z(w,3)===110?100:f){case 100:case 108:case 109:case 115:In(t,x,x,i&&Mn(Js(t,x,x,0,0,r,a,_,r,b=[],u),k),r,k,u,a,i?b:k);break;default:In(w,x,x,x,[""],k,0,a,k)}}c=h=d=0,p=m=1,_=w="",u=o;break;case 58:u=1+Mt(w),d=g;default:if(p<1){if(y==123)--p;else if(y==125&&p++==0&&zf()==125)continue}switch(w+=Ai(y),y*p){case 38:m=h>0?1:(w+="\f",-1);break;case 44:a[c++]=(Mt(w)-1)*m,m=1;break;case 64:At()===45&&(w+=Fn(ct())),f=At(),h=u=Mt(_=w+=Uf(Pn())),y++;break;case 45:g===45&&Mt(w)==2&&(p=0)}}return s}function Js(t,e,n,i,r,s,o,a,l,c,h){for(var u=r-1,f=r===0?s:[""],d=ts(f),g=0,p=0,v=0;g<i;++g)for(var m=0,y=cn(t,u+1,u=Rf(p=o[g])),_=t;m<d;++m)(_=Wa(p>0?f[m]+" "+y:I(y,/&\f/g,f[m])))&&(l[v++]=_);return Di(t,e,n,r===0?Jr:a,l,c,h)}function Xf(t,e,n){return Di(t,e,n,za,Ai(Bf()),cn(t,2,-2),0)}function Ks(t,e,n,i){return Di(t,e,n,Kr,cn(t,0,i),cn(t,i+1,-1),i)}function Ae(t,e){for(var n="",i=ts(t),r=0;r<i;r++)n+=e(t[r],r,t,e)||"";return n}function qf(t,e,n,i){switch(t.type){case Of:if(t.children.length)break;case Nf:case Kr:return t.return=t.return||t.value;case za:return"";case Ha:return t.return=t.value+"{"+Ae(t.children,i)+"}";case Jr:t.value=t.props.join(",")}return Mt(n=Ae(t.children,i))?t.return=t.value+"{"+n+"}":""}function Gf(t){var e=ts(t);return function(n,i,r,s){for(var o="",a=0;a<e;a++)o+=t[a](n,i,r,s)||"";return o}}function jf(t){return function(e){e.root||(e=e.return)&&t(e)}}function Zf(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Qf=function(e,n,i){for(var r=0,s=0;r=s,s=At(),r===38&&s===12&&(n[i]=1),!un(s);)ct();return _n(e,ot)},Jf=function(e,n){var i=-1,r=44;do switch(un(r)){case 0:r===38&&At()===12&&(n[i]=1),e[i]+=Qf(ot-1,n,i);break;case 2:e[i]+=Fn(r);break;case 4:if(r===44){e[++i]=At()===58?"&\f":"",n[i]=e[i].length;break}default:e[i]+=Ai(r)}while(r=ct());return e},Kf=function(e,n){return Ya(Jf(Ua(e),n))},to=new WeakMap,td=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var n=e.value,i=e.parent,r=e.column===i.column&&e.line===i.line;i.type!=="rule";)if(i=i.parent,!i)return;if(!(e.props.length===1&&n.charCodeAt(0)!==58&&!to.get(i))&&!r){to.set(e,!0);for(var s=[],o=Kf(n,s),a=i.props,l=0,c=0;l<o.length;l++)for(var h=0;h<a.length;h++,c++)e.props[c]=s[l]?o[l].replace(/&\f/g,a[h]):a[h]+" "+o[l]}}},ed=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function Xa(t,e){switch(Ff(t,e)){case 5103:return F+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return F+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return F+t+ri+t+J+t+t;case 6828:case 4268:return F+t+J+t+t;case 6165:return F+t+J+"flex-"+t+t;case 5187:return F+t+I(t,/(\w+).+(:[^]+)/,F+"box-$1$2"+J+"flex-$1$2")+t;case 5443:return F+t+J+"flex-item-"+I(t,/flex-|-self/,"")+t;case 4675:return F+t+J+"flex-line-pack"+I(t,/align-content|flex-|-self/,"")+t;case 5548:return F+t+J+I(t,"shrink","negative")+t;case 5292:return F+t+J+I(t,"basis","preferred-size")+t;case 6060:return F+"box-"+I(t,"-grow","")+F+t+J+I(t,"grow","positive")+t;case 4554:return F+I(t,/([^-])(transform)/g,"$1"+F+"$2")+t;case 6187:return I(I(I(t,/(zoom-|grab)/,F+"$1"),/(image-set)/,F+"$1"),t,"")+t;case 5495:case 3959:return I(t,/(image-set\([^]*)/,F+"$1$`$1");case 4968:return I(I(t,/(.+:)(flex-)?(.*)/,F+"box-pack:$3"+J+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+F+t+t;case 4095:case 3583:case 4068:case 2532:return I(t,/(.+)-inline(.+)/,F+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Mt(t)-1-e>6)switch(Z(t,e+1)){case 109:if(Z(t,e+4)!==45)break;case 102:return I(t,/(.+:)(.+)-([^]+)/,"$1"+F+"$2-$3$1"+ri+(Z(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~mr(t,"stretch")?Xa(I(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(Z(t,e+1)!==115)break;case 6444:switch(Z(t,Mt(t)-3-(~mr(t,"!important")&&10))){case 107:return I(t,":",":"+F)+t;case 101:return I(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+F+(Z(t,14)===45?"inline-":"")+"box$3$1"+F+"$2$3$1"+J+"$2box$3")+t}break;case 5936:switch(Z(t,e+11)){case 114:return F+t+J+I(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return F+t+J+I(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return F+t+J+I(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return F+t+J+t+t}return t}var nd=function(e,n,i,r){if(e.length>-1&&!e.return)switch(e.type){case Kr:e.return=Xa(e.value,e.length);break;case Ha:return Ae([Ue(e,{value:I(e.value,"@","@"+F)})],r);case Jr:if(e.length)return Lf(e.props,function(s){switch(If(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ae([Ue(e,{props:[I(s,/:(read-\w+)/,":"+ri+"$1")]})],r);case"::placeholder":return Ae([Ue(e,{props:[I(s,/:(plac\w+)/,":"+F+"input-$1")]}),Ue(e,{props:[I(s,/:(plac\w+)/,":"+ri+"$1")]}),Ue(e,{props:[I(s,/:(plac\w+)/,J+"input-$1")]})],r)}return""})}},id=[nd],rd=function(e){var n=e.key;if(n==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(p){var v=p.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(p),p.setAttribute("data-s",""))})}var r=e.stylisPlugins||id,s={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(p){for(var v=p.getAttribute("data-emotion").split(" "),m=1;m<v.length;m++)s[v[m]]=!0;a.push(p)});var l,c=[td,ed];{var h,u=[qf,jf(function(p){h.insert(p)})],f=Gf(c.concat(r,u)),d=function(v){return Ae(Yf(v),f)};l=function(v,m,y,_){h=y,d(v?v+"{"+m.styles+"}":m.styles),_&&(g.inserted[m.name]=!0)}}var g={key:n,sheet:new Ef({key:n,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:s,registered:{},insert:l};return g.sheet.hydrate(a),g};function sd(t){for(var e=0,n,i=0,r=t.length;r>=4;++i,r-=4)n=t.charCodeAt(i)&255|(t.charCodeAt(++i)&255)<<8|(t.charCodeAt(++i)&255)<<16|(t.charCodeAt(++i)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,e=(n&65535)*1540483477+((n>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(r){case 3:e^=(t.charCodeAt(i+2)&255)<<16;case 2:e^=(t.charCodeAt(i+1)&255)<<8;case 1:e^=t.charCodeAt(i)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}var od={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},ad=/[A-Z]|^ms/g,ld=/_EMO_([^_]+?)_([^]*?)_EMO_/g,qa=function(e){return e.charCodeAt(1)===45},eo=function(e){return e!=null&&typeof e!="boolean"},Qi=Zf(function(t){return qa(t)?t:t.replace(ad,"-$&").toLowerCase()}),no=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(ld,function(i,r,s){return jt={name:r,styles:s,next:jt},r})}return od[e]!==1&&!qa(e)&&typeof n=="number"&&n!==0?n+"px":n};function si(t,e,n){if(n==null)return"";var i=n;if(i.__emotion_styles!==void 0)return i;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return jt={name:r.name,styles:r.styles,next:jt},r.name;var s=n;if(s.styles!==void 0){var o=s.next;if(o!==void 0)for(;o!==void 0;)jt={name:o.name,styles:o.styles,next:jt},o=o.next;var a=s.styles+";";return a}return cd(t,e,n)}}var l=n;if(e==null)return l;var c=e[l];return c!==void 0?c:l}function cd(t,e,n){var i="";if(Array.isArray(n))for(var r=0;r<n.length;r++)i+=si(t,e,n[r])+";";else for(var s in n){var o=n[s];if(typeof o!="object"){var a=o;e!=null&&e[a]!==void 0?i+=s+"{"+e[a]+"}":eo(a)&&(i+=Qi(s)+":"+no(s,a)+";")}else if(Array.isArray(o)&&typeof o[0]=="string"&&(e==null||e[o[0]]===void 0))for(var l=0;l<o.length;l++)eo(o[l])&&(i+=Qi(s)+":"+no(s,o[l])+";");else{var c=si(t,e,o);switch(s){case"animation":case"animationName":{i+=Qi(s)+":"+c+";";break}default:i+=s+"{"+c+"}"}}}return i}var io=/label:\s*([^\s;{]+)\s*(;|$)/g,jt;function Ji(t,e,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var i=!0,r="";jt=void 0;var s=t[0];if(s==null||s.raw===void 0)i=!1,r+=si(n,e,s);else{var o=s;r+=o[0]}for(var a=1;a<t.length;a++)if(r+=si(n,e,t[a]),i){var l=s;r+=l[a]}io.lastIndex=0;for(var c="",h;(h=io.exec(r))!==null;)c+="-"+h[1];var u=sd(r)+c;return{name:u,styles:r,next:jt}}function Ga(t,e,n){var i="";return n.split(" ").forEach(function(r){t[r]!==void 0?e.push(t[r]+";"):r&&(i+=r+" ")}),i}var ud=function(e,n,i){var r=e.key+"-"+n.name;e.registered[r]===void 0&&(e.registered[r]=n.styles)},hd=function(e,n,i){ud(e,n);var r=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var s=n;do e.insert(n===s?"."+r:"",s,e.sheet,!0),s=s.next;while(s!==void 0)}};function ro(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function so(t,e,n){var i=[],r=Ga(t,i,n);return i.length<2?n:r+e(i)}var fd=function(e){var n=rd(e);n.sheet.speedy=function(a){this.isSpeedy=a},n.compat=!0;var i=function(){for(var l=arguments.length,c=new Array(l),h=0;h<l;h++)c[h]=arguments[h];var u=Ji(c,n.registered,void 0);return hd(n,u),n.key+"-"+u.name},r=function(){for(var l=arguments.length,c=new Array(l),h=0;h<l;h++)c[h]=arguments[h];
1var u=Ji(c,n.registered),f="animation-"+u.name;return ro(n,{name:u.name,styles:"@keyframes "+f+"{"+u.styles+"}"}),f},s=function(){for(var l=arguments.length,c=new Array(l),h=0;h<l;h++)c[h]=arguments[h];var u=Ji(c,n.registered);ro(n,u)},o=function(){for(var l=arguments.length,c=new Array(l),h=0;h<l;h++)c[h]=arguments[h];return so(n.registered,i,dd(c))};return{css:i,cx:o,injectGlobal:s,keyframes:r,hydrate:function(l){l.forEach(function(c){n.inserted[c]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:Ga.bind(null,n.registered),merge:so.bind(null,n.registered,i)}},dd=function t(e){for(var n="",i=0;i<e.length;i++){var r=e[i];if(r!=null){var s=void 0;switch(typeof r){case"boolean":break;case"object":{if(Array.isArray(r))s=t(r);else{s="";for(var o in r)r[o]&&o&&(s&&(s+=" "),s+=o)}break}default:s=r}s&&(n&&(n+=" "),n+=s)}}return n},ja=fd({key:"css"}),te=ja.injectGlobal,E=ja.css;function yr(t){var e;t=String(t);const n=parseFloat(t),i=((e=t.match(/[\d.\-+]*\s*(.*)/))===null||e===void 0?void 0:e[1])||"";return[n,i]}function Za(){return typeof window<"u"&&typeof document<"u"}function xr(t,e){var n;const i=yr(getComputedStyle(t).getPropertyValue(e));return i[0]*((n=yn(i[1],t))!==null&&n!==void 0?n:1)}function Qa(t,e){const n=document.createElement("div");n.style.height=`128${t}`,e.appendChild(n);const i=xr(n,"height")/128;return e.removeChild(n),i}let Ki=null;function Ye(){return Za()?(Ki===null&&(Ki=Qa("in",document.body)),Ki):96}function yn(t,e){var n;if(!t&&t!==0)return null;if(!Za()){const o=yr(String(t));if(!isNaN(o[0])){const a=((n=o[1])===null||n===void 0?void 0:n.toLowerCase())||"px";if(a==="px"||a==="")return o[0];if(a==="em"||a==="rem")return o[0]*16;if(a==="in")return o[0]*96;if(a==="cm")return o[0]*(96/2.54);if(a==="mm")return o[0]*(96/25.4);if(a==="pt")return o[0]*(96/72);if(a==="pc")return o[0]*(96/6)}return null}let i=document.body;e&&e!==window&&e!==document&&(i=e);const r=(String(t)||"px").trim().toLowerCase();switch(r){case"%":return i.clientHeight/100;case"ch":case"ex":return Qa(r,i);case"em":return xr(i,"font-size");case"rem":return xr(document.body,"font-size");case"vw":return window.innerWidth/100;case"vh":return window.innerHeight/100;case"vmin":return Math.min(window.innerWidth,window.innerHeight)/100;case"vmax":return Math.max(window.innerWidth,window.innerHeight)/100;case"in":return Ye();case"cm":return Ye()/2.54;case"mm":return Ye()/25.4;case"pt":return Ye()/72;case"pc":return Ye()/6;case"px":return 1}const s=yr(r);if(!isNaN(s[0])){if(s[1]){const o=yn(s[1],i);return typeof o=="number"?s[0]*o:null}return s[0]}return null}function Ja(){const t=()=>Math.floor((1+crypto.getRandomValues(new Uint32Array(1))[0])*65536).toString(16).substring(1);return`${t()+t()}-${t()}-${t()}-${t()}-${t()}${t()}${t()}`}const oo=new WeakMap;function Ka(t,e){if(!Kh(t))return"";const n=t.substr(4,t.length-5);let i=oo.get(e);if(i||(i=new Map,oo.set(e,i)),i.has(n))return i.get(n);const r=getComputedStyle(e).getPropertyValue(n);return i.set(n,r),r}function tl(t,e){const n=Ka(t,e);return yn(n)}function gd(t,e,n=0){const[i,r,s,o]=[t.x+n,t.y+t.height-2*n,t.x+t.width-2*n,t.y+n],[a,l,c,h]=[e.x+n,e.y+e.height-2*n,e.x+e.width-2*n,e.y+n];return!(r<h||l<o||s<a||c<i)}function es(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function el(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function xn(){}var hn=.7,oi=1/hn,$e="\\s*([+-]?\\d+)\\s*",fn="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",$t="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",pd=/^#([0-9a-f]{3,8})$/,vd=new RegExp(`^rgb\\(${$e},${$e},${$e}\\)$`),md=new RegExp(`^rgb\\(${$t},${$t},${$t}\\)$`),_d=new RegExp(`^rgba\\(${$e},${$e},${$e},${fn}\\)$`),yd=new RegExp(`^rgba\\(${$t},${$t},${$t},${fn}\\)$`),xd=new RegExp(`^hsl\\(${fn},${$t},${$t}\\)$`),bd=new RegExp(`^hsla\\(${fn},${$t},${$t},${fn}\\)$`),ao={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};es(xn,ge,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:lo,formatHex:lo,formatHex8:wd,formatHsl:kd,formatRgb:co,toString:co});function lo(){return this.rgb().formatHex()}function wd(){return this.rgb().formatHex8()}function kd(){return nl(this).formatHsl()}function co(){return this.rgb().formatRgb()}function ge(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=pd.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?uo(e):n===3?new it(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?An(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?An(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=vd.exec(t))?new it(e[1],e[2],e[3],1):(e=md.exec(t))?new it(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=_d.exec(t))?An(e[1],e[2],e[3],e[4]):(e=yd.exec(t))?An(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=xd.exec(t))?go(e[1],e[2]/100,e[3]/100,1):(e=bd.exec(t))?go(e[1],e[2]/100,e[3]/100,e[4]):ao.hasOwnProperty(t)?uo(ao[t]):t==="transparent"?new it(NaN,NaN,NaN,0):null}function uo(t){return new it(t>>16&255,t>>8&255,t&255,1)}function An(t,e,n,i){return i<=0&&(t=e=n=NaN),new it(t,e,n,i)}function Sd(t){return t instanceof xn||(t=ge(t)),t?(t=t.rgb(),new it(t.r,t.g,t.b,t.opacity)):new it}function br(t,e,n,i){return arguments.length===1?Sd(t):new it(t,e,n,i??1)}function it(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}es(it,br,el(xn,{brighter(t){return t=t==null?oi:Math.pow(oi,t),new it(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?hn:Math.pow(hn,t),new it(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new it(ce(this.r),ce(this.g),ce(this.b),ai(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:ho,formatHex:ho,formatHex8:Td,formatRgb:fo,toString:fo}));function ho(){return`#${re(this.r)}${re(this.g)}${re(this.b)}`}function Td(){return`#${re(this.r)}${re(this.g)}${re(this.b)}${re((isNaN(this.opacity)?1:this.opacity)*255)}`}function fo(){const t=ai(this.opacity);return`${t===1?"rgb(":"rgba("}${ce(this.r)}, ${ce(this.g)}, ${ce(this.b)}${t===1?")":`, ${t})`}`}function ai(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function ce(t){return Math.max(0,Math.min(255,Math.round(t)||0))}
1function re(t){return t=ce(t),(t<16?"0":"")+t.toString(16)}function go(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new yt(t,e,n,i)}function nl(t){if(t instanceof yt)return new yt(t.h,t.s,t.l,t.opacity);if(t instanceof xn||(t=ge(t)),!t)return new yt;if(t instanceof yt)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),s=Math.max(e,n,i),o=NaN,a=s-r,l=(s+r)/2;return a?(e===s?o=(n-i)/a+(n<i)*6:n===s?o=(i-e)/a+2:o=(e-n)/a+4,a/=l<.5?s+r:2-s-r,o*=60):a=l>0&&l<1?0:o,new yt(o,a,l,t.opacity)}function ns(t,e,n,i){return arguments.length===1?nl(t):new yt(t,e,n,i??1)}function yt(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}es(yt,ns,el(xn,{brighter(t){return t=t==null?oi:Math.pow(oi,t),new yt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?hn:Math.pow(hn,t),new yt(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new it(tr(t>=240?t-240:t+120,r,i),tr(t,r,i),tr(t<120?t+240:t-120,r,i),this.opacity)},clamp(){return new yt(po(this.h),$n(this.s),$n(this.l),ai(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const t=ai(this.opacity);return`${t===1?"hsl(":"hsla("}${po(this.h)}, ${$n(this.s)*100}%, ${$n(this.l)*100}%${t===1?")":`, ${t})`}`}}));function po(t){return t=(t||0)%360,t<0?t+360:t}function $n(t){return Math.max(0,Math.min(1,t||0))}function tr(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}const Ze=globalThis?.UNOVIS_COLORS||["#4D8CFD","#FF6B7E","#F4B83E","#A6CC74","#00C19A","#6859BE"],Cd=globalThis?.UNOVIS_COLORS_DARK||["#4D8CFD","#FF6B7E","#FFC16D","#A6CC74","#00C19A","#7887E0"],qt=t=>`--vis-${vt(t)?`color${t%Ze.length}`:t}`;function Md(t,e=.4){const n=ns(t);return n.l=n.l*(1+e),n.formatHex()}function Ad(t,e=.4,n=.6){const i=ns(t);return i.s=i.s*(1-n),i.l=i.l*(1-e),i.formatHex()}const dn=10,wr=[{id:"stripes-diagonal",svg:'<path d="M-1,1 l2,-2 M0,10 l10,-10 M9,11 l2,-2" stroke="#000"/>'},{id:"dots",svg:'<path d="m0-1.5a1 1 0 010 3m10-3a1 1 0 000 3M5 3.5a1 1 0 010 3 1 1 0 010-3M0 8.5 a1 1 0 010 3m10-3a1 1 0 000 3" fill"#000"/>'},{id:"stripes-vertical",svg:'<path d="M 5,-1 L5,11" stroke="#000"/>'},{id:"crosshatch",svg:'<path d="M0 0L10 10ZM10 0L0 10Z" stroke="#000"/>'},{id:"waves",svg:'<path d="M0 4Q2.5 1 5 4 7.5 7 10 4v2Q7.5 9 5 6 2.5 3 0 6Z" fill="#000"/>'},{id:"circles",svg:'<circle cx="5" cy="5" r="3" stroke="#000" fill="#fff"/>'}],kr=[{id:"circle",marker:'<circle cx="5" cy="5" r="5"/>',dashArray:[]},{id:"triangle",marker:'<path d="M5,0 L10,9 L0,9Z">',dashArray:[9,1]},{id:"diamond",marker:'<path d="M 0 5 L5 0 L 10 5 L 5 10 L 0 5Z">',dashArray:[2]},{id:"arrow",marker:'<path d="M4 0 0 0 6 5 0 10 4 10 10 5Z">',dashArray:[2,3,8,3]},{id:"square",marker:'<rect x="1" y="1" width="8" height="8"/>',dashArray:[6]},{id:"star",marker:'<path d="m2 9 3-9 3 9L0 3h10Z"/>',dashArray:[1,6]}];function Gt(t){return`vis-${`pattern-${t.svg?"fill":"marker"}`}-${t.id}`}const $d=t=>`<mask id="${Gt(t)}"> 2 <pattern id="${t.id}" viewBox="0 0 10 10" width="${dn}" height="${dn}" patternUnits="userSpaceOnUse"> 3 <rect width="100%" height="100%" fill="#fff"/> 4 ${t.svg} 5 </pattern> 6 <rect x="-50%" y="-50%" width="200%" height="200%" fill="url(#${t.id})"/> 7 </mask>`,Dd=(t,e)=>`<marker id="${Gt(t)}" 8 fill="var(${qt(e)})" 9 markerUnits="userSpaceOnUse" 10 refX="5" 11 refY="5" 12 markerWidth="${dn}" 13 markerHeight="${dn}"> 14 ${t.marker} 15 </marker>`;function Ed(){const t=wr.map($d).concat(kr.map(Dd)).join(""),e=document.createElementNS("http://www.w3.org/2000/svg","svg");e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.style.position="fixed",e.style.zIndex="-99999999",e.innerHTML=`<defs>${t}</defs>`,document.body.appendChild(e)}typeof window<"u"&&Ed();const il=globalThis?.UNOVIS_FONT_W2H_RATIO_DEFAULT||.5,rl=globalThis?.UNOVIS_TEXT_SEPARATOR_DEFAULT||[" ","-",".",","],sl=globalThis?.UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT||"-",sn=globalThis?.UNOVIS_TEXT_DEFAULT||{text:"",fontSize:12,fontFamily:"var(--vis-font-family)",lineHeight:1.25,marginTop:0,marginBottom:0};te` 16 :root { 17 label: vis-root-styles; 18 --vis-font-family: Inter, Arial, "Helvetica Neue", Helvetica, sans-serif; 19 --vis-font-wh-ratio: ${il}; 20 --vis-color-main: var(${qt(0)}); 21 --vis-color-main-light: ${Md(Ze[0])}; 22 --vis-color-main-dark: ${Ad(Ze[0])}; 23 --vis-color-grey: #2a2a2a; 24 ${Ze.map((t,e)=>`${qt(e)}: ${t};`)} 25 ${Cd.map((t,e)=>
25`--vis-dark-color${e}: ${t};`)} 26 ${wr.map((t,e)=>` 27 --${Gt(t)}: url(#${Gt(t)}); 28 --vis-pattern-fill${e}: var(--${Gt(t)}); 29 `)} 30 ${kr.map((t,e)=>{var n;return` 31 --${Gt(t)}: url(#${Gt(t)}); 32 --vis-pattern-marker${e}: var(--${Gt(t)}); 33 --vis-pattern-dasharray${e}: ${(n=t.dashArray)===null||n===void 0?void 0:n.join(" ")}; 34 `})} 35 36 body.theme-dark { 37 ${Ze.map((t,e)=>`${qt(e)}: var(--vis-dark-color${e});`)} 38 } 39 40 body.theme-patterns { 41 ${wr.map((t,e)=>`path[style*="fill: var(${qt(e)})"] { 42 mask: var(--vis-pattern-fill${e}); 43 }`)} 44 ${kr.map((t,e)=>` 45 path[stroke="var(${qt(e)})"]:not([style*="fill"]), 46 path[style*="stroke: var(${qt(e)})"]:not([style*="fill"]) { 47 marker: var(--vis-pattern-marker${e}); 48 stroke-dasharray: var(--vis-pattern-dasharray${e}); 49 } 50 `)} 51} 52`;function is(t=window?.document.body){return t?+Ka("var(--vis-font-wh-ratio)",t):il}var Nd={value:()=>{}};function ol(){for(var t=0,e=arguments.length,n={},i;t<e;++t){if(!(i=arguments[t]+"")||i in n||/[\s.]/.test(i))throw new Error("illegal type: "+i);n[i]=[]}return new Ln(n)}function Ln(t){this._=t}function Od(t,e){return t.trim().split(/^|\s+/).map(function(n){var i="",r=n.indexOf(".");if(r>=0&&(i=n.slice(r+1),n=n.slice(0,r)),n&&!e.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:i}})}Ln.prototype=ol.prototype={constructor:Ln,on:function(t,e){var n=this._,i=Od(t+"",n),r,s=-1,o=i.length;if(arguments.length<2){for(;++s<o;)if((r=(t=i[s]).type)&&(r=Rd(n[r],t.name)))return r;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++s<o;)if(r=(t=i[s]).type)n[r]=vo(n[r],t.name,e);else if(e==null)for(r in n)n[r]=vo(n[r],t.name,null);return this},copy:function(){var t={},e=this._;for(var n in e)t[n]=e[n].slice();return new Ln(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var n=new Array(r),i=0,r,s;i<r;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(s=this._[t],i=0,r=s.length;i<r;++i)s[i].value.apply(e,n)},apply:function(t,e,n){if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(var i=this._[t],r=0,s=i.length;r<s;++r)i[r].value.apply(e,n)}};function Rd(t,e){for(var n=0,i=t.length,r;n<i;++n)if((r=t[n]).name===e)return r.value}function vo(t,e,n){for(var i=0,r=t.length;i<r;++i)if(t[i].name===e){t[i]=Nd,t=t.slice(0,i).concat(t.slice(i+1));break}return n!=null&&t.push({name:e,value:n}),t}var Re=0,Qe=0,Xe=0,al=1e3,li,Je,ci=0,pe=0,Ei=0,gn=typeof performance=="object"&&performance.now?performance:Date,ll=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function rs(){return pe||(ll(Pd),pe=gn.now()+Ei)}function Pd(){pe=0}function ui(){this._call=this._time=this._next=null}ui.prototype=cl.prototype={constructor:ui,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?rs():+n)+(e==null?0:+e),!this._next&&Je!==this&&(Je?Je._next=this:li=this,Je=this),this._call=t,this._time=n,Sr()},stop:function(){this._call&&(this._call=null,this._time=1/0,Sr())}};function cl(t,e,n){var i=new ui;return i.restart(t,e,n),i}function Fd(){rs(),++Re;for(var t=li,e;t;)(e=pe-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Re}function mo(){pe=(ci=gn.now())+Ei,Re=Qe=0;try{Fd()}finally{Re=0,Ld(),pe=0}}function Id(){var t=gn.now(),e=t-ci;e>al&&(Ei-=e,ci=t)}function Ld(){for(var t,e=li,n,i=1/0;e;)e._call?(i>e._time&&(i=e._time),t=e,e=e._next):(n=e._next,e._next=null,e=t?t._next=n:li=n);Je=t,Sr(i)}function Sr(t){if(!Re){Qe&&(Qe=clearTimeout(Qe));var e=t-pe;e>24?(t<1/0&&(Qe=setTimeout(mo,t-gn.now()-Ei)),Xe&&(Xe=clearInterval(Xe))):(Xe||(ci=gn.now(),Xe=setInterval(Id,al)),Re=1,ll(mo))}}function _o(t,e,n){var i=new ui;return e=e==null?0:+e,i.restart(r=>{i.stop(),t(r+e)},e,n),i}var Bd=ol("start","end","cancel","interrupt"),zd=[],ul=0,yo=1,Tr=2,Bn=3,xo=4,Cr=5,zn=6;function Ni(t,e,n,i,r,s){var o=t.__transition;if(!o)t.__transition={};else if(n in o)return;Hd(t,n,{name:e,index:i,group:r,on:Bd,tween:zd,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:ul})}function ss(t,e){var n=bt(t,e);if(n.state>ul)throw new Error("too late; already scheduled");return n}function Nt(t,e){var n=bt(t,e);if(n.state>Bn)throw new Error("too late; already running");return n}function bt(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Hd(t,e,n){var i=t.__transition,r;i[e]=n,n.timer=cl(s,0,n.time);function s(c){n.state=yo,n.timer.restart(o,n.delay,n.time),n.delay<=c&&o(c-n.delay)}function o(c){var h,u,f,d;if(n.state!==yo)return l();for(h in i)if(d=i[h],d.name===n.name){if(d.state===Bn)return _o(o);d.state===xo?(d.state=zn,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[h]):+h<e&&(d.state=zn,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete i[h])}if(_o(function(){n.state===Bn&&(n.state=xo,n.timer.restart(a,n.delay,n.time),a(c))}),n.state=Tr,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Tr){for(n.state=Bn,r=new Array(f=n.tween.length),h=0,u=-1;h<f;++h)(d=n.tween[h].value.call(t,t.__data__,n.index,n.group))&&(r[++u]=d);r.length=u+1}}function a(c){for(var h=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(l),n.state=Cr,1),u=-1,f=r.length;++u<f;)r[u].call(t,h);n.state===Cr&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){n.state=zn,n.timer.stop(),delete i[e];for(var c in i)return;delete t.__transition}}function os(t,e){var n=t.__transition,i,r,s=!0,o;if(n){e=e==null?null:e+"";for(o in n){if((i=n[o]).name!==e){s=!1;continue}r=i.state>Tr&&i.state<Cr,i.state=zn,i.timer.stop(),i.on.call(r?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete n[o]}s&&delete t.__transition}}function Wd(t){return this.each(function(){os(this,t)})}const as=t=>()=>t;function Vd(t,e){return function(n){return t+n*e}}function Ud(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}function Yd(t){return(t=+t)==1?hl:function(e,n){return n-e?Ud(e,n,t):as(isNaN(e)?n:e)}}function hl(t,e){var n=e-t;return n?Vd(t,n):as(isNaN(t)?e:t)}const hi=(function t(e){var n=Yd(e);function i(r,s){var o=n((r=br(r)).r,(s=br(s)).r),a=n(r.g,s.g),l=n(r.b,s.b),c=hl(r.o
vendor: 11,410 bytes, line 52
52pacity,s.opacity);return function(h){return r.r=o(h),r.g=a(h),r.b=l(h),r.opacity=c(h),r+""}}return i.gamma=t,i})(1);function Xd(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,i=e.slice(),r;return function(s){for(r=0;r<n;++r)i[r]=t[r]*(1-s)+e[r]*s;return i}}function qd(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Gd(t,e){var n=e?e.length:0,i=t?Math.min(n,t.length):0,r=new Array(i),s=new Array(n),o;for(o=0;o<i;++o)r[o]=ze(t[o],e[o]);for(;o<n;++o)s[o]=e[o];return function(a){for(o=0;o<i;++o)s[o]=r[o](a);return s}}function jd(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function _t(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Zd(t,e){var n={},i={},r;(t===null||typeof t!="object")&&(t={}),(e===null||typeof e!="object")&&(e={});for(r in e)r in t?n[r]=ze(t[r],e[r]):i[r]=e[r];return function(s){for(r in n)i[r]=n[r](s);return i}}var Mr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,er=new RegExp(Mr.source,"g");function Qd(t){return function(){return t}}function Jd(t){return function(e){return t(e)+""}}function fl(t,e){var n=Mr.lastIndex=er.lastIndex=0,i,r,s,o=-1,a=[],l=[];for(t=t+"",e=e+"";(i=Mr.exec(t))&&(r=er.exec(e));)(s=r.index)>n&&(s=e.slice(n,s),a[o]?a[o]+=s:a[++o]=s),(i=i[0])===(r=r[0])?a[o]?a[o]+=r:a[++o]=r:(a[++o]=null,l.push({i:o,x:_t(i,r)})),n=er.lastIndex;return n<e.length&&(s=e.slice(n),a[o]?a[o]+=s:a[++o]=s),a.length<2?l[0]?Jd(l[0].x):Qd(e):(e=l.length,function(c){for(var h=0,u;h<e;++h)a[(u=l[h]).i]=u.x(c);return a.join("")})}function ze(t,e){var n=typeof e,i;return e==null||n==="boolean"?as(e):(n==="number"?_t:n==="string"?(i=ge(e))?(e=i,hi):fl:e instanceof ge?hi:e instanceof Date?jd:qd(e)?Xd:Array.isArray(e)?Gd:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Zd:_t)(t,e)}function ls(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var bo=180/Math.PI,Ar={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function dl(t,e,n,i,r,s){var o,a,l;return(o=Math.sqrt(t*t+e*e))&&(t/=o,e/=o),(l=t*n+e*i)&&(n-=t*l,i-=e*l),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,l/=a),t*i<e*n&&(t=-t,e=-e,l=-l,o=-o),{translateX:r,translateY:s,rotate:Math.atan2(e,t)*bo,skewX:Math.atan(l)*bo,scaleX:o,scaleY:a}}var Dn;function Kd(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Ar:dl(e.a,e.b,e.c,e.d,e.e,e.f)}function tg(t){return t==null||(Dn||(Dn=document.createElementNS("http://www.w3.org/2000/svg","g")),Dn.setAttribute("transform",t),!(t=Dn.transform.baseVal.consolidate()))?Ar:(t=t.matrix,dl(t.a,t.b,t.c,t.d,t.e,t.f))}function gl(t,e,n,i){function r(c){return c.length?c.pop()+" ":""}function s(c,h,u,f,d,g){if(c!==u||h!==f){var p=d.push("translate(",null,e,null,n);g.push({i:p-4,x:_t(c,u)},{i:p-2,x:_t(h,f)})}else(u||f)&&d.push("translate("+u+e+f+n)}function o(c,h,u,f){c!==h?(c-h>180?h+=360:h-c>180&&(c+=360),f.push({i:u.push(r(u)+"rotate(",null,i)-2,x:_t(c,h)})):h&&u.push(r(u)+"rotate("+h+i)}function a(c,h,u,f){c!==h?f.push({i:u.push(r(u)+"skewX(",null,i)-2,x:_t(c,h)}):h&&u.push(r(u)+"skewX("+h+i)}function l(c,h,u,f,d,g){if(c!==u||h!==f){var p=d.push(r(d)+"scale(",null,",",null,")");g.push({i:p-4,x:_t(c,u)},{i:p-2,x:_t(h,f)})}else(u!==1||f!==1)&&d.push(r(d)+"scale("+u+","+f+")")}return function(c,h){var u=[],f=[];return c=t(c),h=t(h),s(c.translateX,c.translateY,h.translateX,h.translateY,u,f),o(c.rotate,h.rotate,u,f),a(c.skewX,h.skewX,u,f),l(c.scaleX,c.scaleY,h.scaleX,h.scaleY,u,f),c=h=null,function(d){for(var g=-1,p=f.length,v;++g<p;)u[(v=f[g]).i]=v.x(d);return u.join("")}}}var eg=gl(Kd,"px, ","px)","deg)"),ng=gl(tg,", ",")",")");function ig(t,e){e===void 0&&(e=t,t=ze);for(var n=0,i=e.length-1,r=e[0],s=new Array(i<0?0:i);n<i;)s[n]=t(r,r=e[++n]);return function(o){var a=Math.max(0,Math.min(i-1,Math.floor(o*=i)));return s[a](o-a)}}function rg(t,e){var n,i;return function(){var r=Nt(this,t),s=r.tween;if(s!==n){i=n=s;for(var o=0,a=i.length;o<a;++o)if(i[o].name===e){i=i.slice(),i.splice(o,1);break}}r.tween=i}}function sg(t,e,n){var i,r;if(typeof n!="function")throw new Error;return function(){var s=Nt(this,t),o=s.tween;if(o!==i){r=(i=o).slice();for(var a={name:e,value:n},l=0,c=r.length;l<c;++l)if(r[l].name===e){r[l]=a;break}l===c&&r.push(a)}s.tween=r}}function og(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i=bt(this.node(),n).tween,r=0,s=i.length,o;r<s;++r)if((o=i[r]).name===t)return o.value;return null}return this.each((e==null?rg:sg)(n,t,e))}function cs(t,e,n){var i=t._id;return t.each(function(){var r=Nt(this,i);(r.value||(r.value={}))[e]=n.apply(this,arguments)}),function(r){return bt(r,i).value[e]}}function pl(t,e){var n;return(typeof e=="number"?_t:e instanceof ge?hi:(n=ge(e))?(e=n,hi):fl)(t,e)}function ag(t){return function(){this.removeAttribute(t)}}function lg(t){return function(){this.removeAttributeNS(t.space,t.local)}}function cg(t,e,n){var i,r=n+"",s;return function(){var o=this.getAttribute(t);return o===r?null:o===i?s:s=e(i=o,n)}}function ug(t,e,n){var i,r=n+"",s;return function(){var o=this.getAttributeNS(t.space,t.local);return o===r?null:o===i?s:s=e(i=o,n)}}function hg(t,e,n){var i,r,s;return function(){var o,a=n(this),l;return a==null?void this.removeAttribute(t):(o=this.getAttribute(t),l=a+"",o===l?null:o===i&&l===r?s:(r=l,s=e(i=o,a)))}}function fg(t,e,n){var i,r,s;return function(){var o,a=n(this),l;return a==null?void this.removeAttributeNS(t.space,t.local):(o=this.getAttributeNS(t.space,t.local),l=a+"",o===l?null:o===i&&l===r?s:(r=l,s=e(i=o,a)))}}function dg(t,e){var n=Ci(t),i=n==="transform"?ng:pl;return this.attrTween(t,typeof e=="function"?(n.local?fg:hg)(n,i,cs(this,"attr."+t,e)):e==null?(n.local?lg:ag)(n):(n.local?ug:cg)(n,i,e))}function gg(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function pg(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function vg(t,e){var n,i;function r(){var s=e.apply(this,arguments);return s!==i&&(n=(i=s)&&pg(t,s)),n}return r._value=e,r}function mg(t,e){var n,i;function r(){var s=e.apply(this,arguments);return s!==i&&(n=(i=s)&&gg(t,s)),n}return r._value=e,r}function _g(t,e){var n="attr."+t;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(e==null)return this.tween(n,null);if(typeof e!="function")throw new Error;var i=Ci(t);return this.tween(n,(i.local?vg:mg)(i,e))}function yg(t,e){return function(){ss(this,t).delay=+e.apply(this,arguments)}}function xg(t,e){return e=+e,function(){ss(this,t).delay=e}}function bg(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?yg:xg)(e,t)):bt(this.node(),e).delay}function wg(t,e){return function(){Nt(this,t).duration=+e.apply(this,arguments)}}function kg(t,e){return e=+e,function(){Nt(this,t).duration=e}}function Sg(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?wg:kg)(e,t)):bt(this.node(),e).duration}function Tg(t,e){if(typeof e!="function")throw new Error;return function(){Nt(this,t).ease=e}}function Cg(t){var e=this._id;return arguments.length?this.each(Tg(e,t)):bt(this.node(),e).ease}function Mg(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;Nt(this,t).ease=n}}function Ag(t){if(typeof t!="function")throw new Error;return this.each(Mg(this._id,t))}function $g(t){typeof t!="function"&&(t=_a(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var s=e[r],o=s.length,a=i[r]=[],l,c=0;c<o;++c)(l=s[c])&&t.call(l,l.__data__,c,s)&&a.push(l);return new Ht(i,this._parents,this._name,this._id)}function Dg(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,r=n.length,s=Math.min(i,r),o=new Array(i),a=0;a<s;++a)for(var l=e[a],c=n[a],h=l.length,u=o[a]=new Array(h),f,d=0;d<h;++d)(f=l[d]||c[d])&&(u[d]=f);for(;a<i;++a)o[a]=e[a];return new Ht(o,this._parents,this._name,this._id)}function Eg(t){return(t+"").trim().split(/^|\s+/).every(function(e){var n=e.indexOf(".");return n>=0&&(e=e.slice(0,n)),!e||e==="start"})}function Ng(t,e,n){var i,r,s=Eg(e)?ss:Nt;return function(){var o=s(this,t),a=o.on;a!==i&&(r=(i=a).copy()).on(e,n),o.on=r}}function Og(t,e){var n=this._id;return arguments.length<2?bt(this.node(),n).on.on(t):this.each(Ng(n,t,e))}function Rg(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function Pg(){return this.on("end.remove",Rg(this._id))}function Fg(t){var e=this._name,n=this._id;typeof t!="function"&&(t=qr(t));for(var i=this._groups,r=i.length,s=new Array(r),o=0;o<r;++o)for(var a=i[o],l=a.length,c=s[o]=new Array(l),h,u,f=0;f<l;++f)(h=a[f])&&(u=t.call(h,h.__data__,f,a))&&("__data__"in h&&(u.__data__=h.__data__),c[f]=u,Ni(c[f],e,n,f,c,bt(h,n)));return new Ht(s,this._parents,e,n)}function Ig(t){var e=this._name,n=this._id;typeof t!="function"&&(t=ma(t));for(var i=this._groups,r=i.length,s=[],o=[],a=0;a<r;++a)for(var l=i[a],c=l.length,h,u=0;u<c;++u)if(h=l[u]){for(var f=t.call(h,h.__data__,u,l),d,g=bt(h,n),p=0,v=f.length;p<v;++p)(d=f[p])&&Ni(d,e,n,p,f,g);s.push(f),o.push(h)}return new Ht(s,o,e,n)}var Lg=vn.prototype.constructor;function Bg(){return new Lg(this._groups,this._parents)}function zg(t,e){var n,i,r;return function(){var s=Ee(this,t),o=(this.style.removeProperty(t),Ee(this,t));return s===o?null:s===n&&o===i?r:r=e(n=s,i=o)}}function vl(t){return function(){this.style.removeProperty(t)}}function Hg(t,e,n){var i,r=n+"",s;return function(){var o=Ee(this,t);return o===r?null:o===i?s:s=e(i=o,n)}}function Wg(t,e,n){var i,r,s;return function(){var o=Ee(this,t),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),Ee(this,t))),o===l?null:o===i&&l===r?s:(r=l,s=e(i=o,a))}}function Vg(t,e){var n,i,r,s="style."+e,o="end."+s,a;return function(){var l=Nt(this,t),c=l.on,h=l.value[s]==null?a||(a=vl(e)):void 0;(c!==n||r!==h)&&(i=(n=c).copy()).on(o,r=h),l.on=i}}function Ug(t,e,n){var i=(t+="")=="transform"?eg:pl;return e==null?this.styleTween(t,zg(t,i)).on("end.style."+t,vl(t)):typeof e=="function"?this.styleTween(t,Wg(t,i,cs(this,"style."+t,e))).each(Vg(this._id,t)):this.styleTween(t,Hg(t,i,e),n).on("end.style."+t,null)}function Yg(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}function Xg(t,e,n){var i,r;function s(){var o=e.apply(this,arguments);return o!==r&&(i=(r=o)&&Yg(t,o,n)),i}return s._value=e,s}function qg(t,e,n){var i="style."+(t+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(e==null)return this.tween(i,null);if(typeof e!="function")throw new Error;return this.tween(i,Xg(t,e,n??""))}function Gg(t){return function(){this.textContent=t}}function jg(t){return function(){var e=t(this);this.textContent=e??""}}function Zg(t){return this.tween("text",typeof t=="function"?jg(cs(this,"text",t)):Gg(t==null?"":t+""))}function Qg(t){return function(e){this.textContent=t.call(this,e)}}function Jg(t){var e,n;function i(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Qg(r)),e}return i._value=t,i}function Kg(t){var e="text";if(arguments.length<1)return(e=this.tween(e))&&e._value;if(t==null)return this.tween(e,null);if(typeof t!="function")throw new Error;return this.tween(e,Jg(t))}function tp(){for(var t=this._name,e=this._id,n=ml(),i=this._groups,r=i.length,s=0;s<r;++s)for(var o=i[s],a=o.length,l,c=0;c<a;++c)if(l=o[c]){var h=bt(l,e);Ni(l,t,n,c,o,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Ht(i,this._parents,t,n)}
52function ep(){var t,e,n=this,i=n._id,r=n.size();return new Promise(function(s,o){var a={value:o},l={value:function(){--r===0&&s()}};n.each(function(){var c=Nt(this,i),h=c.on;h!==t&&(e=(t=h).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(l)),c.on=e}),r===0&&s()})}var np=0;function Ht(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function ml(){return++np}var Ot=vn.prototype;Ht.prototype={constructor:Ht,select:Fg,selectAll:Ig,selectChild:Ot.selectChild,selectChildren:Ot.selectChildren,filter:$g,merge:Dg,selection:Bg,transition:tp,call:Ot.call,nodes:Ot.nodes,node:Ot.node,size:Ot.size,empty:Ot.empty,each:Ot.each,on:Og,attr:dg,attrTween:_g,style:Ug,styleTween:qg,text:Zg,textTween:Kg,remove:Pg,tween:og,delay:bg,duration:Sg,ease:Cg,easeVarying:Ag,end:ep,[Symbol.iterator]:Ot[Symbol.iterator]};const wo=t=>+t;function ip(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var rp={time:null,delay:0,duration:250,ease:ip};function sp(t,e){for(var n;!(n=t.__transition)||!(n=n[e]);)if(!(t=t.parentNode))throw new Error(`transition ${e} not found`);return n}function op(t){var e,n;t instanceof Ht?(e=t._id,t=t._name):(e=ml(),(n=rp).time=rs(),t=t==null?null:t+"");for(var i=this._groups,r=i.length,s=0;s<r;++s)for(var o=i[s],a=o.length,l,c=0;c<a;++c)(l=o[c])&&Ni(l,t,e,c,o,n||sp(l,e));return new Ht(i,this._parents,t,e)}vn.prototype.interrupt=Wd;vn.prototype.transition=op;function q(t,e,n){if(t.nodes().forEach(i=>os(i)),e){const i=t.transition().duration(e);return n&&i.ease(n),i}else return t}class us{constructor(e){this.data=e}get data(){return this._data}set data(e){this._data=e}}var O;
52(function(t){t.X="x",t.Y="y"})(O||(O={}));function wt(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function _l(t,e){switch(arguments.length){case 0:break;case 1:{typeof t=="function"?this.interpolator(t):this.range(t);break}default:{this.domain(t),typeof e=="function"?this.interpolator(e):this.range(e);break}}return this}const ko=Symbol("implicit");function hs(){var t=new zs,e=[],n=[],i=ko;function r(s){let o=t.get(s);if(o===void 0){if(i!==ko)return i;t.set(s,o=e.push(s)-1)}return n[o%n.length]}return r.domain=function(s){if(!arguments.length)return e.slice();e=[],t=new zs;for(const o of s)t.has(o)||t.set(o,e.push(o)-1);return r},r.range=function(s){return arguments.length?(n=Array.from(s),r):n.slice()},r.unknown=function(s){return arguments.length?(i=s,r):i},r.copy=function(){return hs(e,n).unknown(i)},wt.apply(r,arguments),r}function fs(){var t=hs().unknown(void 0),e=t.domain,n=t.range,i=0,r=1,s,o,a=!1,l=0,c=0,h=.5;delete t.unknown;function u(){var f=e().length,d=r<i,g=d?r:i,p=d?i:r;s=(p-g)/Math.max(1,f-l+c*2),a&&(s=Math.floor(s)),g+=(p-g-s*(f-l))*h,o=s*(1-l),a&&(g=Math.round(g),o=Math.round(o));var v=Zh(f).map(function(m){return g+s*m});return n(d?v.reverse():v)}return t.domain=function(f){return arguments.length?(e(f),u()):e()},t.range=function(f){return arguments.length?([i,r]=f,i=+i,r=+r,u()):[i,r]},t.rangeRound=function(f){return[i,r]=f,i=+i,r=+r,a=!0,u()},t.bandwidth=function(){return o},t.step=function(){return s},t.round=function(f){return arguments.length?(a=!!f,u()):a},t.padding=function(f){return arguments.length?(l=Math.min(1,c=+f),u()):l},t.paddingInner=function(f){return arguments.length?(l=Math.min(1,f),u()):l},t.paddingOuter=function(f){return arguments.length?(c=+f,u()):c},t.align=function(f){return arguments.length?(h=Math.max(0,Math.min(1,f)),u()):h},t.copy=function(){return fs(e(),[i,r]).round(a).paddingInner(l).paddingOuter(c).align(h)},wt.apply(u(),arguments)}function yl(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return yl(e())},t}function ap(){return yl(fs.apply(null,arguments).paddingInner(1))}function lp(t){return function(){return t}}function $r(t){return+t}var So=[0,1];function rt(t){return t}function Dr(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:lp(isNaN(e)?NaN:.5)}function cp(t,e){var n;return t>e&&(n=t,t=e,e=n),function(i){return Math.max(t,Math.min(e,i))}}function up(t,e,n){var i=t[0],r=t[1],s=e[0],o=e[1];return r<i?(i=Dr(r,i),s=n(o,s)):(i=Dr(i,r),s=n(s,o)),function(a){return s(i(a))}}function hp(t,e,n){var i=Math.min(t.length,e.length)-1,r=new Array(i),s=new Array(i),o=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++o<i;)r[o]=Dr(t[o],t[o+1]),s[o]=n(e[o],e[o+1]);return function(a){var l=mn(t,a,1,i)-1;return s[l](r[l](a))}}function bn(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Oi(){var t=So,e=So,n=ze,i,r,s,o=rt,a,l,c;function h(){var f=Math.min(t.length,e.length);return o!==rt&&(o=cp(t[0],t[f-1])),a=f>2?hp:up,l=c=null,u}function u(f){return f==null||isNaN(f=+f)?s:(l||(l=a(t.map(i),e,n)))(i(o(f)))}return u.invert=function(f){return o(r((c||(c=a(e,t.map(i),_t)))(f)))},u.domain=function(f){return arguments.length?(t=Array.from(f,$r),h()):t.slice()},u.range=function(f){return arguments.length?(e=Array.from(f),h()):e.slice()},u.rangeRound=function(f){return e=Array.from(f),n=ls,h()},u.clamp=function(f){return arguments.length?(o=f?!0:rt,h()):o!==rt},u.interpolate=function(f){return arguments.length?(n=f,h()):n},u.unknown=function(f){return arguments.length?(s=f,u):s},function(f,d){return i=f,r=d,h()}}function xl(){return Oi()(rt,rt)}function fp(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function fi(t,e){if(!isFinite(t)||t===0)return null;var n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"),i=t.slice(0,n);return[i.length>
vendor: 4,749 bytes, line 52
521?i[0]+i.slice(2):i,+t.slice(n+1)]}function Pe(t){return t=fi(Math.abs(t)),t?t[1]:NaN}function dp(t,e){return function(n,i){for(var r=n.length,s=[],o=0,a=t[0],l=0;r>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),s.push(n.substring(r-=a,r+a)),!((l+=a+1)>i));)a=t[o=(o+1)%t.length];return s.reverse().join(e)}}function gp(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var pp=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function pn(t){if(!(e=pp.exec(t)))throw new Error("invalid format: "+t);var e;return new ds({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}pn.prototype=ds.prototype;function ds(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}ds.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 vp(t){t:for(var e=t.length,n=1,i=-1,r;n<e;++n)switch(t[n]){case".":i=r=n;break;case"0":i===0&&(i=n),r=n;break;default:if(!+t[n])break t;i>0&&(i=0);break}return i>0?t.slice(0,i)+t.slice(r+1):t}var di;function mp(t,e){var n=fi(t,e);if(!n)return di=void 0,t.toPrecision(e);var i=n[0],r=n[1],s=r-(di=Math.max(-8,Math.min(8,Math.floor(r/3)))*3)+1,o=i.length;return s===o?i:s>o?i+new Array(s-o+1).join("0"):s>0?i.slice(0,s)+"."+i.slice(s):"0."+new Array(1-s).join("0")+fi(t,Math.max(0,e+s-1))[0]}function To(t,e){var n=fi(t,e);if(!n)return t+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}const Co={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:fp,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>To(t*100,e),r:To,s:mp,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function Mo(t){return t}var Ao=Array.prototype.map,$o=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function _p(t){var e=t.grouping===void 0||t.thousands===void 0?Mo:dp(Ao.call(t.grouping,Number),t.thousands+""),n=t.currency===void 0?"":t.currency[0]+"",i=t.currency===void 0?"":t.currency[1]+"",r=t.decimal===void 0?".":t.decimal+"",s=t.numerals===void 0?Mo:gp(Ao.call(t.numerals,String)),o=t.percent===void 0?"%":t.percent+"",a=t.minus===void 0?"â":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function c(u,f){u=pn(u);var d=u.fill,g=u.align,p=u.sign,v=u.symbol,m=u.zero,y=u.width,_=u.comma,b=u.precision,k=u.trim,x=u.type;x==="n"?(_=!0,x="g"):Co[x]||(b===void 0&&(b=12),k=!0,x="g"),(m||d==="0"&&g==="=")&&(m=!0,d="0",g="=");var w=(f&&f.prefix!==void 0?f.prefix:"")+(v==="$"?n:v==="#"&&/[boxX]/.test(x)?"0"+x.toLowerCase():""),$=(v==="$"?i:/[%p]/.test(x)?o:"")+(f&&f.suffix!==void 0?f.suffix:""),D=Co[x],A=/[defgprs%]/.test(x);b=b===void 0?6:/[gprs]/.test(x)?Math.max(1,Math.min(21,b)):Math.max(0,Math.min(20,b));function z(M){var X=w,Q=$,St,be,we;if(x==="c")Q=D(M)+Q,M="";else{M=+M;var ke=M<0||1/M<0;if(M=isNaN(M)?l:D(Math.abs(M),b),k&&(M=vp(M)),ke&&+M==0&&p!=="+"&&(ke=!1),X=(ke?p==="("?p:a:p==="-"||p==="("?"":p)+X,Q=(x==="s"&&!isNaN(M)&&di!==void 0?$o[8+di/3]:"")+Q+(ke&&p==="("?")":""),A){for(St=-1,be=M.length;++St<be;)if(we=M.charCodeAt(St),48>we||we>57){Q=(we===46?r+M.slice(St+1):M.slice(St))+Q,M=M.slice(0,St);break}}}_&&!m&&(M=e(M,1/0));var Se=X.length+M.length+Q.length,mt=Se<y?new Array(y-Se+1).join(d):"";switch(_&&m&&(M=e(mt+M,mt.length?y-Q.length:1/0),mt=""),g){case"<":M=X+M+Q+mt;break;case"=":M=X+mt+M+Q;break;case"^":M=mt.slice(0,Se=mt.length>>1)+X+M+Q+mt.slice(Se);break;default:M=mt+X+M+Q;break}return s(M)}return z.toString=function(){return u+""},z}function h(u,f){var d=Math.max(-8,Math.min(8,Math.floor(Pe(f)/3)))*3,g=Math.pow(10,-d),p=c((u=pn(u),u.type="f",u),{suffix:$o[8+d/3]});return function(v){return p(g*v)}}return{format:c,formatPrefix:h}}var En,gs,bl;yp({thousands:",",grouping:[3],currency:["$",""]});function yp(t){return En=_p(t),gs=En.format,bl=En.formatPrefix,En}function xp(t){return Math.max(0,-Pe(Math.abs(t)))}function bp(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Pe(e)/3)))*3-Pe(Math.abs(t)))}function wp(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Pe(e)-Pe(t))+1}function kp(t,e,n,i){var r=dr(t,e,n),s;
vendor: 1,205 bytes, line 52
52switch(i=pn(i??",f"),i.type){case"s":{var o=Math.max(Math.abs(t),Math.abs(e));return i.precision==null&&!isNaN(s=bp(r,o))&&(i.precision=s),bl(i,o)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(s=wp(r,Math.max(Math.abs(t),Math.abs(e))))&&(i.precision=s-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(s=xp(r))&&(i.precision=s-(i.type==="%")*2);break}}return gs(i)}function me(t){var e=t.domain;return t.ticks=function(n){var i=e();return hr(i[0],i[i.length-1],n??10)},t.tickFormat=function(n,i){var r=e();return kp(r[0],r[r.length-1],n??10,i)},t.nice=function(n){n==null&&(n=10);var i=e(),r=0,s=i.length-1,o=i[r],a=i[s],l,c,h=10;for(a<o&&(c=o,o=a,a=c,c=r,r=s,s=c);h-- >0;){if(c=fr(o,a,n),c===l)return i[r]=o,i[s]=a,e(i);if(c>0)o=Math.floor(o/c)*c,a=Math.ceil(a/c)*c;else if(c<0)o=Math.ceil(o*c)/c,a=Math.floor(a*c)/c;else break;l=c}return t},t}function wl(){var t=xl();return t.copy=function(){return bn(t,wl())},wt.apply(t,arguments),me(t)}function kl(t){var e;function n(i){return i==null||isNaN(i=+i)?e:i}return n.invert=n,n.domain=n.range=function(i){return arguments.length?(t=Array.from(i,$r),n):t.slice()},n.unknown=function(i){return arguments.length?(e=i,n):e}
52,n.copy=function(){return kl(t).unknown(e)},t=arguments.length?Array.from(t,$r):[0,1],me(n)}function Sl(t,e){t=t.slice();var n=0,i=t.length-1,r=t[n],s=t[i],o;return s<r&&(o=n,n=i,i=o,o=r,r=s,s=o),t[n]=e.floor(r),t[i]=e.ceil(s),t}function Do(t){return Math.log(t)}function Eo(t){return Math.exp(t)}function Sp(t){return-Math.log(-t)}function Tp(t){return-Math.exp(-t)}function Cp(t){return isFinite(t)?+("1e"+t):t<0?0:t}function Mp(t){return t===10?Cp:t===Math.E?Math.exp:e=>Math.pow(t,e)}function Ap(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function No(t){return(e,n)=>-t(-e,n)}function $p(t){const e=t(Do,Eo),n=e.domain;let i=10,r,s;function o(){return r=Ap(i),s=Mp(i),n()[0]<0?(r=No(r),s=No(s),t(Sp,Tp)):t(Do,Eo),e}return e.base=function(a){return arguments.length?(i=+a,o()):i},e.domain=function(a){return arguments.length?(n(a),o()):n()},e.ticks=a=>{const l=n();let c=l[0],h=l[l.length-1];const u=h<c;u&&([c,h]=[h,c]);let f=r(c),d=r(h),g,p;const v=a==null?10:+a;let m=[];if(!(i%1)&&d-f<v){if(f=Math.floor(f),d=Math.ceil(d),c>0){for(;f<=d;++f)for(g=1;g<i;++g)if(p=f<0?g/s(-f):g*s(f),!(p<c)){if(p>h)break;m.push(p)}}else for(;f<=d;++f)for(g=i-1;g>=1;--g)if(p=f>0?g/s(-f):g*s(f),!(p<c)){if(p>h)break;m.push(p)}m.length*2<v&&(m=hr(c,h,v))}else m=hr(f,d,Math.min(d-f,v)).map(s);return u?m.reverse():m},e.tickFormat=(a,l)=>{if(a==null&&(a=10),l==null&&(l=i===10?"s":","),typeof l!="function"&&(!(i%1)&&(l=pn(l)).precision==null&&(l.trim=!0),l=gs(l)),a===1/0)return l;const c=Math.max(1,i*a/e.ticks().length);return h=>{let u=h/s(Math.round(r(h)));return u*i<i-.5&&(u*=i),u<=c?l(h):""}},e.nice=()=>n(Sl(n(),{floor:a=>s(Math.floor(r(a))),ceil:a=>s(Math.ceil(r(a)))})),e}function Tl(){const t=$p(Oi()).domain([1,10]);return t.copy=()=>bn(t,Tl()).base(t.base()),wt.apply(t,arguments),t}function Oo(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Ro(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Dp(t){var e=1,n=t(Oo(e),Ro(e));return n.constant=function(i){return arguments.length?t(Oo(e=+i),Ro(e)):e},me(n)}function Cl(){var t=Dp(Oi());return t.copy=function(){return bn(t,Cl()).constant(t.constant())},wt.apply(t,arguments)}function Po(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Ep(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Np(t){return t<0?-t*t:t*t}function Op(t){var e=t(rt,rt),n=1;function i(){return n===1?t(rt,rt):n===.5?t(Ep,Np):t(Po(n),Po(1/n))}return e.exponent=function(r){return arguments.length?(n=+r,i()):n},me(e)}function ps(){var t=Op(Oi());return t.copy=function(){return bn(t,ps()).exponent(t.exponent())},wt.apply(t,arguments),t}function Rp(){return ps.apply(null,arguments).exponent(.5)}function Ml(){var t=[],e=[],n=[],i;function r(){var o=0,a=Math.max(1,e.length);for(n=new Array(a-1);++o<a;)n[o-1]=Xh(t,o/a);return s}function s(o){return o==null||isNaN(o=+o)?i:e[mn(n,o)]}return s.invertExtent=function(o){var a=e.indexOf(o);return a<0?[NaN,NaN]:[a>0?n[a-1]:t[0],a<n.length?n[a]:t[t.length-1]]},s.domain=function(o){if(!arguments.length)return t.slice();t=[];for(let a of o)a!=null&&!isNaN(a=+a)&&t.push(a);return t.sort(nn),r()},s.range=function(o){return arguments.length?(e=Array.from(o),r()):e.slice()},s.unknown=function(o){return arguments.length?(i=o,s):i},s.quantiles=function(){return n.slice()},s.copy=function(){return Ml().domain(t).range(e).unknown(i)},wt.apply(s,arguments)}function Al(){var t=0,e=1,n=1,i=[.5],r=[0,1],s;function o(l){return l!=null&&l<=l?r[mn(i,l,0,n)]:s}function a(){var l=-1;for(i=new Array(n);++l<n;)i[l]=((l+1)*e-(l-n)*t)/(n+1);return o}return o.domain=function(l){return arguments.length?([t,e]=l,t=+t,e=+e,a()):[t,e]},o.range=function(l){return arguments.length?(n=(r=Array.from(l)).length-1,a()):r.slice()},o.invertExtent=function(l){var c=r.indexOf(l);return c<0?[NaN,NaN]:c<1?[t,i[0]]:c>=n?[i[n-1],e]:[i[c-1],i[c]]},o.unknown=function(l){return arguments.length&&(s=l),o},o.thresholds=function(){return i.slice()},o.copy=function(){return Al().domain([t,e]).range(r).unknown(s)},wt.apply(me(o),arguments)}function $l(){var t=[.5],e=[0,1],n,i=1;function r(s){return s!=null&&s<=s?e[mn(t,s,0,i)]:n}return r.domain=function(s){return arguments.length?(t=Array.from(s),i=Math.min(t.length,e.length-1),r):t.slice()},r.range=function(s){return arguments.length?(e=Array.from(s),i=Math.min(t.length,e.length-1),r):e.slice()},r.invertExtent=function(s){var o=e.indexOf(s);return[t[o-1],t[o]]},r.unknown=function(s){return arguments.length?(n=s,r):n}
vendor: 5,581 bytes, line 52
52,r.copy=function(){return $l().domain(t).range(e).unknown(n)},wt.apply(r,arguments)}const nr=new Date,ir=new Date;function G(t,e,n,i){function r(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return r.floor=s=>(t(s=new Date(+s)),s),r.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),r.round=s=>{const o=r(s),a=r.ceil(s);return s-o<a-s?o:a},r.offset=(s,o)=>(e(s=new Date(+s),o==null?1:Math.floor(o)),s),r.range=(s,o,a)=>{const l=[];if(s=r.ceil(s),a=a==null?1:Math.floor(a),!(s<o)||!(a>0))return l;let c;do l.push(c=new Date(+s)),e(s,a),t(s);while(c<s&&s<o);return l},r.filter=s=>G(o=>{if(o>=o)for(;t(o),!s(o);)o.setTime(o-1)},(o,a)=>{if(o>=o)if(a<0)for(;++a<=0;)for(;e(o,-1),!s(o););else for(;--a>=0;)for(;e(o,1),!s(o););}),n&&(r.count=(s,o)=>(nr.setTime(+s),ir.setTime(+o),t(nr),t(ir),Math.floor(n(nr,ir))),r.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?r.filter(i?o=>i(o)%s===0:o=>r.count(0,o)%s===0):r)),r}const gi=G(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);gi.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?G(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):gi);gi.range;const It=1e3,pt=It*60,Lt=pt*60,Wt=Lt*24,vs=Wt*7,Fo=Wt*30,rr=Wt*365,se=G(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*It)},(t,e)=>(e-t)/It,t=>t.getUTCSeconds());se.range;const ms=G(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*It)},(t,e)=>{t.setTime(+t+e*pt)},(t,e)=>(e-t)/pt,t=>t.getMinutes());ms.range;const _s=G(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*pt)},(t,e)=>(e-t)/pt,t=>t.getUTCMinutes());_s.range;const ys=G(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*It-t.getMinutes()*pt)},(t,e)=>{t.setTime(+t+e*Lt)},(t,e)=>(e-t)/Lt,t=>t.getHours());ys.range;const xs=G(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Lt)},(t,e)=>(e-t)/Lt,t=>t.getUTCHours());xs.range;const wn=G(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*pt)/Wt,t=>t.getDate()-1);wn.range;const Ri=G(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Wt,t=>t.getUTCDate()-1);Ri.range;const Dl=G(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/Wt,t=>Math.floor(t/Wt));Dl.range;function _e(t){return G(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,n)=>{e.setDate(e.getDate()+n*7)},(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*pt)/vs)}const Pi=_e(0),pi=_e(1),Pp=_e(2),Fp=_e(3),Fe=_e(4),Ip=_e(5),Lp=_e(6);Pi.range;pi.range;Pp.range;Fp.range;Fe.range;Ip.range;Lp.range;function ye(t){return G(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n*7)},(e,n)=>(n-e)/vs)}const Fi=ye(0),vi=ye(1),Bp=ye(2),zp=ye(3),Ie=ye(4),Hp=ye(5),Wp=ye(6);Fi.range;vi.range;Bp.range;zp.range;Ie.range;Hp.range;Wp.range;const bs=G(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth());bs.range;const ws=G(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth());ws.range;const Vt=G(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());Vt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:G(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n*t)});Vt.range;const Ut=G(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Ut.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:G(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)});Ut.range;function El(t,e,n,i,r,s){const o=[[se,1,It],[se,5,5*It],[se,15,15*It],[se,30,30*It],[s,1,pt],[s,5,5*pt],[s,15,15*pt],[s,30,30*pt],[r,1,Lt],[r,3,3*Lt],[r,6,6*Lt],[r,12,12*Lt],[i,1,Wt],[i,2,2*Wt],[n,1,vs],[e,1,Fo],[e,3,3*Fo],[t,1,rr]];function a(c,h,u){const f=h<c;f&&([c,h]=[h,c]);const d=u&&typeof u.range=="function"?u:l(c,h,u),g=d?d.range(c,+h+1):[];return f?g.reverse():g}function l(c,h,u){const f=Math.abs(h-c)/u,d=jr(([,,v])=>v).right(o,f);if(d===o.length)return t.every(dr(c/rr,h/rr,u));if(d===0)return gi.every(Math.max(dr(c,h,u),1));const[g,p]=o[f/o[d-1][2]<o[d][2]/f?d-1:d];return g.every(p)}return[a,l]}const[Vp,Up]=El(Ut,ws,Fi,Dl,xs,_s),[Yp,Xp]=El(Vt,bs,Pi,wn,ys,ms);function sr(t){if(0<=t.y&&t.y<100){var e=new Date(-1,t.m,t.d,t.H,t.M,t.S,t.L);return e.setFullYear(t.y),e}return new Date(t.y,t.m,t.d,t.H,t.M,t.S,t.L)}function or(t){if(0<=t.y&&t.y<100){var e=new Date(Date.UTC(-1,t.m,t.d,t.H,t.M,t.S,t.L));return e.setUTCFullYear(t.y),e}return new Date(Date.UTC(t.y,t.m,t.d,t.H,t.M,t.S,t.L))}function qe(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function qp(t){var e=t.dateTime,n=t.date,i=t.time,r=t.periods,s=t.days,o=t.shortDays,a=t.months,l=t.shortMonths,c=Ge(r),h=je(r),u=Ge(s),f=je(s),d=Ge(o),g=je(o),p=Ge(a),v=je(a),m=Ge(l),y=je(l),_={a:we,A:ke,b:Se,B:mt,c:null,d:Wo,e:Wo,f:v0,g:C0,G:A0,H:d0,I:g0,j:p0,L:Nl,m:m0,M:_0,p:Nc,q:Oc,Q:Yo,s:Xo,S:y0,u:x0,U:b0,V:w0,w:k0,W:S0,x:null,X:null,y:T0,Y:M0,Z:$0,"%":Uo},b={a:Rc,A:Pc,b:Fc,B:Ic,c:null,d:Vo,e:Vo,f:O0,g:V0,G:Y0,H:D0,I:E0,j:N0,L:Rl,m:R0,M:P0,p:Lc,q:Bc,Q:Yo,s:Xo,S:F0,u:I0,U:L0,V:B0,w:z0,W:H0,x:null,X:null,y:W0,Y:U0,Z:X0,"%":Uo}
vendor: 7,738 bytes, line 52
52,k={a:A,A:z,b:M,B:X,c:Q,d:zo,e:zo,f:c0,g:Bo,G:Lo,H:Ho,I:Ho,j:s0,L:l0,m:r0,M:o0,p:D,q:i0,Q:h0,s:f0,S:a0,u:Jp,U:Kp,V:t0,w:Qp,W:e0,x:St,X:be,y:Bo,Y:Lo,Z:n0,"%":u0};_.x=x(n,_),_.X=x(i,_),_.c=x(e,_),b.x=x(n,b),b.X=x(i,b),b.c=x(e,b);function x(C,N){return function(R){var S=[],et=-1,B=0,at=C.length,lt,ne,Ps;for(R instanceof Date||(R=new Date(+R));++et<at;)C.charCodeAt(et)===37&&(S.push(C.slice(B,et)),(ne=Io[lt=C.charAt(++et)])!=null?lt=C.charAt(++et):ne=lt==="e"?" ":"0",(Ps=N[lt])&&(lt=Ps(R,ne)),S.push(lt),B=et+1);return S.push(C.slice(B,et)),S.join("")}}function w(C,N){return function(R){var S=qe(1900,void 0,1),et=$(S,C,R+="",0),B,at;if(et!=R.length)return null;if("Q"in S)return new Date(S.Q);if("s"in S)return new Date(S.s*1e3+("L"in S?S.L:0));if(N&&!("Z"in S)&&(S.Z=0),"p"in S&&(S.H=S.H%12+S.p*12),S.m===void 0&&(S.m="q"in S?S.q:0),"V"in S){if(S.V<1||S.V>53)return null;"w"in S||(S.w=1),"Z"in S?(B=or(qe(S.y,0,1)),at=B.getUTCDay(),B=at>4||at===0?vi.ceil(B):vi(B),B=Ri.offset(B,(S.V-1)*7),S.y=B.getUTCFullYear(),S.m=B.getUTCMonth(),S.d=B.getUTCDate()+(S.w+6)%7):(B=sr(qe(S.y,0,1)),at=B.getDay(),B=at>4||at===0?pi.ceil(B):pi(B),B=wn.offset(B,(S.V-1)*7),S.y=B.getFullYear(),S.m=B.getMonth(),S.d=B.getDate()+(S.w+6)%7)}else("W"in S||"U"in S)&&("w"in S||(S.w="u"in S?S.u%7:"W"in S?1:0),at="Z"in S?or(qe(S.y,0,1)).getUTCDay():sr(qe(S.y,0,1)).getDay(),S.m=0,S.d="W"in S?(S.w+6)%7+S.W*7-(at+5)%7:S.w+S.U*7-(at+6)%7);return"Z"in S?(S.H+=S.Z/100|0,S.M+=S.Z%100,or(S)):sr(S)}}function $(C,N,R,S){for(var et=0,B=N.length,at=R.length,lt,ne;et<B;){if(S>=at)return-1;if(lt=N.charCodeAt(et++),lt===37){if(lt=N.charAt(et++),ne=k[lt in Io?N.charAt(et++):lt],!ne||(S=ne(C,R,S))<0)return-1}else if(lt!=R.charCodeAt(S++))return-1}return S}function D(C,N,R){var S=c.exec(N.slice(R));return S?(C.p=h.get(S[0].toLowerCase()),R+S[0].length):-1}function A(C,N,R){var S=d.exec(N.slice(R));return S?(C.w=g.get(S[0].toLowerCase()),R+S[0].length):-1}function z(C,N,R){var S=u.exec(N.slice(R));return S?(C.w=f.get(S[0].toLowerCase()),R+S[0].length):-1}function M(C,N,R){var S=m.exec(N.slice(R));return S?(C.m=y.get(S[0].toLowerCase()),R+S[0].length):-1}function X(C,N,R){var S=p.exec(N.slice(R));return S?(C.m=v.get(S[0].toLowerCase()),R+S[0].length):-1}function Q(C,N,R){return $(C,e,N,R)}function St(C,N,R){return $(C,n,N,R)}function be(C,N,R){return $(C,i,N,R)}function we(C){return o[C.getDay()]}function ke(C){return s[C.getDay()]}function Se(C){return l[C.getMonth()]}function mt(C){return a[C.getMonth()]}function Nc(C){return r[+(C.getHours()>=12)]}function Oc(C){return 1+~~(C.getMonth()/3)}function Rc(C){return o[C.getUTCDay()]}function Pc(C){return s[C.getUTCDay()]}function Fc(C){return l[C.getUTCMonth()]}function Ic(C){return a[C.getUTCMonth()]}function Lc(C){return r[+(C.getUTCHours()>=12)]}function Bc(C){return 1+~~(C.getUTCMonth()/3)}return{format:function(C){var N=x(C+="",_);return N.toString=function(){return C},N},parse:function(C){var N=w(C+="",!1);return N.toString=function(){return C},N},utcFormat:function(C){var N=x(C+="",b);return N.toString=function(){return C},N},utcParse:function(C){var N=w(C+="",!0);return N.toString=function(){return C},N}}}var Io={"-":"",_:" ",0:"0"},j=/^\s*\d+/,Gp=/^%/,jp=/[\\^$*+?|[\]().{}]/g;function P(t,e,n){var i=t<0?"-":"",r=(i?-t:t)+"",s=r.length;return i+(s<n?new Array(n-s+1).join(e)+r:r)}function Zp(t){return t.replace(jp,"\\$&")}function Ge(t){return new RegExp("^(?:"+t.map(Zp).join("|")+")","i")}function je(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function Qp(t,e,n){var i=j.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function Jp(t,e,n){var i=j.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function Kp(t,e,n){var i=j.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function t0(t,e,n){var i=j.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function e0(t,e,n){var i=j.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function Lo(t,e,n){var i=j.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function Bo(t,e,n){var i=j.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function n0(t,e,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function i0(t,e,n){var i=j.exec(e.slice(n,n+1));return i?(t.q=i[0]*3-3,n+i[0].length):-1}function r0(t,e,n){var i=j.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function zo(t,e,n){var i=j.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function s0(t,e,n){var i=j.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function Ho(t,e,n){var i=j.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function o0(t,e,n){var i=j.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function a0(t,e,n){var i=j.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function l0(t,e,n){var i=j.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function c0(t,e,n){var i=j.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function u0(t,e,n){var i=Gp.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function h0(t,e,n){var i=j.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function f0(t,e,n){var i=j.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function Wo(t,e){return P(t.getDate(),e,2)}function d0(t,e){return P(t.getHours(),e,2)}function g0(t,e){return P(t.getHours()%12||12,e,2)}function p0(t,e){return P(1+wn.count(Vt(t),t),e,3)}function Nl(t,e){return P(t.getMilliseconds(),e,3)}function v0(t,e){return Nl(t,e)+"000"}function m0(t,e){return P(t.getMonth()+1,e,2)}function _0(t,e){return P(t.getMinutes(),e,2)}function y0(t,e){return P(t.getSeconds(),e,2)}function x0(t){var e=t.getDay();return e===0?7:e}function b0(t,e){return P(Pi.count(Vt(t)-1,t),e,2)}function Ol(t){var e=t.getDay();return e>=4||e===0?Fe(t):Fe.ceil(t)}function w0(t,e){return t=Ol(t),P(Fe.count(Vt(t),t)+(Vt(t).getDay()===4),e,2)}function k0(t){return t.getDay()}function S0(t,e){return P(pi.count(Vt(t)-1,t),e,2)}function T0(t,e){return P(t.getFullYear()%100,e,2)}function C0(t,e){return t=Ol(t),P(t.getFullYear()%100,e,2)}function M0(t,e){return P(t.getFullYear()%1e4,e,4)}function A0(t,e){var n=t.getDay();return t=n>=4||n===0?Fe(t):Fe.ceil(t),P(t.getFullYear()%1e4,e,4)}function $0(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+P(e/60|0,"0",2)+P(e%60,"0",2)}function Vo(t,e){return P(t.getUTCDate(),e,2)}function D0(t,e){return P(t.getUTCHours(),e,2)}function E0(t,e){return P(t.getUTCHours()%12||12,e,2)}function N0(t,e){return P(1+Ri.count(Ut(t),t),e,3)}function Rl(t,e){return P(t.getUTCMilliseconds(),e,3)}function O0(t,e){return Rl(t,e)+"000"}function R0(t,e){return P(t.getUTCMonth()+1,e,2)}function P0(t,e){return P(t.getUTCMinutes(),e,2)}function F0(t,e){return P(t.getUTCSeconds(),e,2)}function I0(t){var e=t.getUTCDay();return e===0?7:e}function L0(t,e){return P(Fi.count(Ut(t)-1,t),e,2)}function Pl(t){var e=t.getUTCDay();return e>=4||e===0?Ie(t):Ie.ceil(t)}function B0(t,e){return t=Pl(t),P(Ie.count(Ut(t),t)+(Ut(t).getUTCDay()===4),e,2)}function z0(t){return t.getUTCDay()}function H0(t,e){return P(vi.count(Ut(t)-1,t),e,2)}function W0(t,e){return P(t.getUTCFullYear()%100,e,2)}function V0(t,e){return t=Pl(t),P(t.getUTCFullYear()%100,e,2)}function U0(t,e){return P(t.getUTCFullYear()%1e4,e,4)}function Y0(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Ie(t):Ie.ceil(t),P(t.getUTCFullYear()%1e4,e,4)}function X0(){return"+0000"}function Uo(){return"%"}function Yo(t){return+t}function Xo(t){return Math.floor(+t/1e3)}var Ce,Fl,Il;q0({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
52ay","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 q0(t){return Ce=qp(t),Fl=Ce.format,Ce.parse,Il=Ce.utcFormat,Ce.utcParse,Ce}function G0(t){return new Date(t)}function j0(t){return t instanceof Date?+t:+new Date(+t)}function ks(t,e,n,i,r,s,o,a,l,c){var h=xl(),u=h.invert,f=h.domain,d=c(".%L"),g=c(":%S"),p=c("%I:%M"),v=c("%I %p"),m=c("%a %d"),y=c("%b %d"),_=c("%B"),b=c("%Y");function k(x){return(l(x)<x?d:a(x)<x?g:o(x)<x?p:s(x)<x?v:i(x)<x?r(x)<x?m:y:n(x)<x?_:b)(x)}return h.invert=function(x){return new Date(u(x))},h.domain=function(x){return arguments.length?f(Array.from(x,j0)):f().map(G0)},h.ticks=function(x){var w=f();return t(w[0],w[w.length-1],x??10)},h.tickFormat=function(x,w){return w==null?k:c(w)},h.nice=function(x){var w=f();return(!x||typeof x.range!="function")&&(x=e(w[0],w[w.length-1],x??10)),x?f(Sl(w,x)):h},h.copy=function(){return bn(h,ks(t,e,n,i,r,s,o,a,l,c))},h}function Z0(){return wt.apply(ks(Yp,Xp,Vt,bs,Pi,wn,ys,ms,se,Fl).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Q0(){return wt.apply(ks(Vp,Up,Ut,ws,Fi,Ri,xs,_s,se,Il).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function J0(){var t=0,e=1,n,i,r,s,o=rt,a=!1,l;function c(u){return u==null||isNaN(u=+u)?l:o(r===0?.5:(u=(s(u)-n)*r,a?Math.max(0,Math.min(1,u)):u))}c.domain=function(u){return arguments.length?([t,e]=u,n=s(t=+t),i=s(e=+e),r=n===i?0:1/(i-n),c):[t,e]},c.clamp=function(u){return arguments.length?(a=!!u,c):a},c.interpolator=function(u){return arguments.length?(o=u,c):o};function h(u){return function(f){var d,g;return arguments.length?([d,g]=f,o=u(d,g),c):[o(0),o(1)]}}return c.range=h(ze),c.rangeRound=h(ls),c.unknown=function(u){return arguments.length?(l=u,c):l},function(u){return s=u,n=u(t),i=u(e),r=n===i?0:1/(i-n),c}}function Ll(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Bl(){var t=me(J0()(rt));return t.copy=function(){return Ll(t,Bl())},_l.apply(t,arguments)}function K0(){var t=0,e=.5,n=1,i=1,r,s,o,a,l,c=rt,h,u=!1,f;function d(p){return isNaN(p=+p)?f:(p=.5+((p=+h(p))-s)*(i*p<i*s?a:l),c(u?Math.max(0,Math.min(1,p)):p))}d.domain=function(p){return arguments.length?([t,e,n]=p,r=h(t=+t),s=h(e=+e),o=h(n=+n),a=r===s?0:.5/(s-r),l=s===o?0:.5/(o-s),i=s<r?-1:1,d):[t,e,n]},d.clamp=function(p){return arguments.length?(u=!!p,d):u},d.interpolator=function(p){return arguments.length?(c=p,d):c};function g(p){return function(v){var m,y,_;return arguments.length?([m,y,_]=v,c=ig(p,[m,y,_]),d):[c(0),c(.5),c(1)]}}return d.range=g(ze),d.rangeRound=g(ls),d.unknown=function(p){return arguments.length?(f=p,d):f},function(p){return h=p,r=p(t),s=p(e),o=p(n),a=r===s?0:.5/(s-r),l=s===o?0:.5/(o-s),i=s<r?-1:1,d}}function zl(){var t=me(K0()(rt));return t.copy=function(){return Ll(t,zl())},_l.apply(t,arguments)}const qo={scaleLinear:wl,scalePow:ps,scaleSqrt:Rp,scaleLog:Tl,scaleSymlog:Cl,scaleIdentity:kl,scaleTime:Z0,scaleUtc:Q0,scaleSequential:Bl,scaleDiverging:zl,scaleQuantize:Al,scaleQuantile:Ml,scaleThreshold:$l,scaleOrdinal:hs,scaleBand:fs,scalePoint:ap};var U;(function(t){t.X="x",t.Y="y"})(U||(U={}));var Dt;(function(t){t.West="west",t.East="east",t.North="north",t.South="south"})(Dt||(Dt={}));const tv=Object.assign(Object.assign({},Ba),{components:[],tooltip:void 0,crosshair:void 0,annotations:void 0,xAxis:void 0,yAxis:void 0,autoMargin:!0,xScale:void 0,xDomain:void 0,xDomainMinConstraint:void 0,xDomainMaxConstraint:void 0,xRange:void 0,yScale:void 0,yDomain:void 0,yDomainMinConstraint:void 0,yDomainMaxConstraint:void 0,yRange:void 0,yDirection:Dt.North,preventEmptyDomain:null,scaleByDomain:!1,clipPathExtend:2});class ev extends ln{constructor(e,n,i){var r,s;super(e),this._defaultConfig=tv,this.datamodel=new us,this.config=this._defaultConfig,this._clipPathId=Ja(),this._axisMargin={top:0,bottom:0,left:0,right:0},this._firstRender=!0,this._clipPath=this.svg.append("clipPath").attr("id",this._clipPathId),this._clipPath.append("rect");const o="saturate",a=window.location.href.replace(window.location.hash,"");this.svg.attr("class",E` 53 --highlight-filter-id: url(${a}#${o}); // defining a css variable 54 `),this._svgDefs.append("filter").attr("id",o).attr("filterUnits","objectBoundingBox").html('<feColorMatrix type="saturate" in="SourceGraphic" values="1.35"/>'),n&&this.updateContainer(n,!0),i&&this.setData(i,!0),(this.config.xAxis||this.config.yAxis||!((r=this.components)===null||r===void 0)&&r.some(l=>l.datamodel.data))&&this.render(),(s=document.fonts)===null||s===void 0||s.ready.then(()=>
54{this._firstRender||this._renderAxes(0)})}get components(){return this.config.components}get width(){const e=this._getMargin();return Ft(this.containerWidth-e.left-e.right,0,Number.POSITIVE_INFINITY)}get height(){const e=this._getMargin();return Ft(this.containerHeight-e.top-e.bottom,0,Number.POSITIVE_INFINITY)}setData(e,n){var i,r,s,o,a;const{components:l,config:c}=this;if(!e)return;this.datamodel.data=e,l.forEach(u=>{u.setData(e)}),(i=c.crosshair)===null||i===void 0||i.setData(e),(r=c.xAxis)===null||r===void 0||r.setData(e),(s=c.yAxis)===null||s===void 0||s.setData(e),!he(this.datamodel.data,e)&&((o=c.tooltip)===null||o===void 0||o.hide(),(a=c.crosshair)===null||a===void 0||a.hide()),n||this.render()}updateContainer(e,n){super.updateContainer(e),this._removeAllChildren(),this.setData(this.datamodel.data,!0),e.xAxis&&(this.config.xAxis.config.type=O.X,this.element.appendChild(e.xAxis.element)),e.yAxis&&(this.config.yAxis.config.type=O.Y,this.element.appendChild(e.yAxis.element));for(const o of this.components)this.element.appendChild(o.element);const i=e.tooltip;i&&(i.hasContainer()||i.setContainer(this._container),i.setComponents(this.components));const r=e.crosshair;r&&(r.setContainer(this.svg),r.tooltip=i,this.element.appendChild(r.element));const s=e.annotations;s&&this.element.appendChild(s.element),this.element.appendChild(this._clipPath.node()),this.element.appendChild(this._svgDefs.node()),this.element.appendChild(this._svgDefsExternal.node()),n||this.render()}updateComponents(e,n){const{config:i}=this;this.components.forEach((r,s)=>{e[s]&&r.setConfig(e[s])}),this._updateScales(...this.components,i.xAxis,i.yAxis,i.crosshair),n||this.render()}update(e,n,i){i&&(this.datamodel.data=i),e&&this.updateContainer(e,!0),n&&this.updateComponents(n,!0),this.render()}_preRender(){const{config:e}=this;super._preRender(),e.autoMargin&&this._setAutoMargin();const n=Ve([...this.components,e.xAxis,e.yAxis,e.crosshair,e.annotations]),i=this._getMargin();for(const r of n)r.setSize(this.width,this.height,this.containerWidth,this.containerHeight),r.setContainerMargin(i);this._updateScales(...this.components,e.xAxis,e.yAxis,e.crosshair)}_render(e){var n,i,r,s,o,a;const{config:l}=this;super._render();const c=this._getMargin();for(const f of this.components)f.g.attr("transform",`translate(${c.left},${c.top})`).style("clip-path",f.clippable?`url(#${this._clipPathId})`:null).style("-webkit-clip-path",f.clippable?`url(#${this._clipPathId})`:null),f.render(e);this._renderAxes(this._firstRender?0:e);const h=l.clipPathExtend;this._clipPath.select("rect").attr("x",-h).attr("y",-h).attr("width",this.width+2*h).attr("height",this.height+2*h),(n=l.tooltip)===null||n===void 0||n.update();const u=l.crosshair;if(u){const f=this.components.filter(v=>!v.stacked).map(v=>v.config.y),d=this.components.filter(v=>v.stacked).map(v=>v.config.y),g=(i=this.components.find(v=>v.config.baseline))===null||i===void 0?void 0:i.config,p=g?.baseline;u.accessors={x:(r=this.components[0])===null||r===void 0?void 0:r.config.x,y:pr(f),yStacked:pr(d),baseline:p},u.g.attr("transform",`translate(${c.left},${c.top})`).style("clip-path",`url(#${this._clipPathId})`).style("-webkit-clip-path",`url(#${this._clipPathId})`),u.render()}(s=l.annotations)===null||s===void 0||s.g.attr("transform",`translate(${c.left},${c.top})`),(o=l.annotations)===null||o===void 0||o.render(),this._firstRender=!1,(a=l.onRenderComplete)===null||a===void 0||a.call(l,this.svg.node(),c,this._getBleed(this.components),this.containerWidth,this.containerHeight,this.width,this.height)}_updateScales(...e){const n=Ve(e||this.components);this._setScales(...n),this._updateScalesDomain(...n),this._updateScalesRange(...n)}_setScales(...e){const{config:n}=this;e&&(n.xScale&&e.forEach(i=>i.setScale(U.X,n.xScale)),n.yScale&&e.forEach(i=>i.setScale(U.Y,n.yScale)))}_updateScalesDomain(...e){const{config:n}=this;if(!e)return;const i=e.filter(r=>!r.config.excludeFromDomainCalculation);Object.values(U).forEach(r=>{var s,o,a,l,c,h,u,f;const[d,g]=Bh(jh(i.map(k=>k.getDataExtent(r,n.scaleByDomain)))),p=r===U.Y?n.yDomain:n.xDomain,v=r===U.Y?n.yDomainMinConstraint:n.xDomainMinConstraint,m=r===U.Y?n.yDomainMaxConstraint:n.xDomainMaxConstraint,y=(o=(s=p?.[0])!==null&&s!==void 0?s:d)!==null&&o!==void 0?o:0,_=(l=(a=p?.[1])!==null&&a!==void 0?a:g)!==null&&l!==void 0?l:1,b=[Ft(y,(c=v?.[0])!==null&&c!==void 0?c:Number.NEGATIVE_INFINITY,(h=v?.[1])!==null&&h!==void 0?h:Number.POSITIVE_INFINITY),Ft(_,(u=m?.[0])!==null&&u!==void 0?u:Number.NEGATIVE_INFINITY,(f=m?.[1])!==null&&f!==void 0?f:Number.POSITIVE_INFINITY)];if(b[0]===b[1]){const k=i.some(x=>{var w;return((w=x.datamodel.data)===null||w===void 0?void 0:w.length)>0});(n.preventEmptyDomain||n.preventEmptyDomain===null&&(!k||r===U.Y))&&(b[1]=b[0]+1)}e.forEach(k=>k.setScaleDomain(r,b))})}_updateScalesRange(...e){var n,i,r,s,o,a;const{config:l}=this;if(!e)return;const c=l.yDirection===Dt.South,h=[(n=l.padding.left)!==null&&n!==void 0?n:0,this.width-((i=l.padding.right)!==null&&i!==void 0?i:0)],u=[this.height-((r=l.padding.bottom)!==null&&r!==void 0?r:0),(s=l.padding.top)!==null&&s!==void 0?s:0];c&&u.reverse();for(const d of e)d.setSize(this.width,this.height,this.containerWidth,this.containerHeight),d.setScaleRange(U.X,(o=l.xRange)!==null&&o!==void 0?o:h),d.setScaleRange(U.Y,(a=l.yRange)!==null&&a!==void 0?a:u);const f=this._getBleed(e);for(const d of e)d.setScaleRange(U.X,[h[0]+f.left,h[1]-f.right]),d.setScaleRange(U.Y,c?[u[0]+f.top,u[1]-f.bottom]:[u[0]-f.bottom,u[1]+f.top])}_renderAxes(e){const{config:{xAxis:n,yAxis:i}}=this,r=this._getMargin();
54Ve([n,i]).forEach(o=>{const a=o.getOffset(r);o.g.attr("transform",`translate(${a.left},${a.top})`),o.render(e)})}_setAutoMargin(){const{config:{xAxis:e,yAxis:n}}=this,i=Ve([...this.components,e,n]);this._setScales(...i),this._updateScalesDomain(...i);const r=this._firstRender?2:1;for(let s=0;s<r;s+=1){const o={top:0,bottom:0,left:0,right:0};this._updateScalesRange(...i),Ve([e,n]).forEach(l=>{l.preRender();const c=l.getRequiredMargin();o.top<c.top&&(o.top=c.top),o.bottom<c.bottom&&(o.bottom=c.bottom),o.left<c.left&&(o.left=c.left),o.right<c.right&&(o.right=c.right)}),this._axisMargin=o}}_getMargin(){const{config:{margin:e}}=this;return{top:e.top+this._axisMargin.top,bottom:e.bottom+this._axisMargin.bottom,left:e.left+this._axisMargin.left,right:e.right+this._axisMargin.right}}_getBleed(e){return e.map(n=>n.bleed).reduce((n,i)=>{for(const r of Object.keys(n)){const s=r;n[s]<i[s]&&(n[s]=i[s])}return n},{top:0,bottom:0,left:0,right:0})}destroy(){const{components:e,config:{tooltip:n,crosshair:i,annotations:r,xAxis:s,yAxis:o}}=this;super.destroy();for(const a of e)a?.destroy();n?.destroy(),i?.destroy(),r?.destroy(),s?.destroy(),o?.destroy()}}const Hl={duration:600,events:{},attributes:{}};class nv{constructor(e=en.SVG){var n,i;this.type=en.SVG,this.datamodel=new us,this.sizing=Ne.Fit,this.events={},this._defaultConfig=Hl,this._width=400,this._height=200,this._containerWidth=void 0,this._containerHeight=void 0,this._containerMargin={top:0,bottom:0,left:0,right:0},this._setUpComponentEventsThrottled=ni(this._setUpComponentEvents,500),this._setCustomAttributesThrottled=ni(this._setCustomAttributes,500),e===en.SVG?this.element=document.createElementNS("http://www.w3.org/2000/svg","g"):this.element=document.createElement("div"),this.uid=Ja(),this.g=K(this.element);const r=(i=(n=this.constructor)===null||n===void 0?void 0:n.selectors)===null||i===void 0?void 0:i.root;r&&this.g.attr("class",r)}setContainerMargin(e){this._containerMargin=e}setConfig(e){this.prevConfig=this.config,this.config=fe(this._defaultConfig,e)}setData(e){this.datamodel.data=e}setSize(e,n,i,r){isFinite(e)&&(this._width=e),isFinite(n)&&(this._height=n),isFinite(i)&&(this._containerWidth=i),isFinite(r)&&(this._containerHeight=r)}render(e=this.config.duration){this._render(e);const n="animating";e&&(this.g.attr(n,""),this.g.transition(n).duration(e).on("end interrupt",()=>{this.g.attr(n,null)})),this._setUpComponentEventsThrottled(),this._setCustomAttributesThrottled()}get bleed(){return{top:0,bottom:0,left:0,right:0}}_render(e=this.config.duration){}_setCustomAttributes(){const e=this.config.attributes;Object.keys(e).forEach(n=>{Object.keys(e[n]).forEach(i=>{this.g.selectAll(`.${n}`).attr(i,e[n][i])})})}_setUpComponentEvents(){this._bindEvents(this.events),this._bindEvents(this.config.events,".user")}_bindEvents(e=this.events,n=""){Object.keys(e).forEach(i=>{Object.keys(e[i]).forEach(r=>{const s=this.g.selectAll(`.${i}`);s.on(r+n,(o,a)=>{const l=s.nodes(),c=l.indexOf(o.currentTarget),h=e[i][r];return h?.(a,o,c,l)})})})}destroy(){var e;(e=this.g)===null||e===void 0||e.remove(),this.element=void 0}isDestroyed(){return!this.element}}class iv extends us{constructor(e){super(e)}get data(){var e;return(e=this._data)!==null&&e!==void 0?e:[]}set data(e){Array.isArray(e)&&(this._data=e)}}const He=Object.assign(Object.assign({},Hl),{x:void 0,y:void 0,id:(t,e)=>{var n;return(n=t.id)!==null&&n!==void 0?n:`${e}`},color:t=>t.color,xScale:void 0,yScale:void 0,excludeFromDomainCalculation:!1});class kn extends nv{constructor(){super(...arguments),this.datamodel=new iv,this.clippable=!0,this.stacked=!1,this._defaultConfig=He,this._xScale=qo.scaleLinear(),this._yScale=qo.scaleLinear()}get xScale(){return this.config.xScale||this._xScale}get yScale(){return this.config.yScale||this._yScale}setConfig(e){var n,i;!((n=this.config)===null||n===void 0)&&n.xScale&&(e.xScale=this.config.xScale),!((i=this.config)===null||i===void 0)&&i.yScale&&(e.yScale=this.config.yScale),super.setConfig(e)}setScaleDomain(e,n){var i,r;e===U.X&&((i=this._xScale)===null||i===void 0||i.domain(n)),e===U.Y&&((r=this._yScale)===null||r===void 0||r.domain(n))}setScaleRange(e,n){var i,r;e===U.X&&((i=this._xScale)===null||i===void 0||i.range(n)),e===U.Y&&((r=this._yScale)===null||r===void 0||r.range(n))}setScale(e,n){n&&e===U.X&&(this._xScale=n),n&&e===U.Y&&(this._yScale=n)}getDataExtent(e,n){const{config:i,datamodel:r}=this;switch(e){case U.X:return this.getXDataExtent();case U.Y:return this.getYDataExtent(n);default:return On(r.data,i[e])}}getXDataExtent(){const{config:e,datamodel:n}=this;return On(n.data,e.x)}getYDataExtent(e){const{config:n,datamodel:i}=this,r=this.xScale.domain(),s=e?Na(i.data,r,n.x,!0):i.data,o=zt(n.y)?n.y:[n.y];return On(s,...o)}}var T;(function(t){t.Top="top",t.Bottom="bottom",t.Left="left",t.Right="right",t.Center="center",t.Auto="auto"})(T||(T={}));var Go;(function(t){t.Absolute="absolute",t.Fixed="fixed"})(Go||(Go={}));var jo;(function(t){t.Inside="inside",t.Outside="outside",t.Center="center"})(jo||(jo={}));var mi;(function(t){t.Horizontal="horizontal",t.Vertical="vertical"})(mi||(mi={}));const rv={components:[],container:void 0,followCursor:!0,allowHover:!1,horizontalPlacement:T.Auto,horizontalShift:0,verticalPlacement:T.Top,verticalShift:0,attributes:{},triggers:{},className:void 0,showDelay:void 0,hideDelay:void 0},Ii=E` 55 label: tooltip; 56 display: inline-block; 57 left: 0; 58 bottom: 0; 59 min-width: max-content; 60 position: absolute; 61 opacity: 0; 62 transition: opacity; 63 transition-duration: var(--vis-tooltip-transition-duration); 64 z-index: 999999; 65 padding: var(--vis-tooltip-padding); 66 color: var(--vis-tooltip-text-color); 67 border-radius: var(--vis-tooltip-border-radius);
68 box-shadow: var(--vis-tooltip-box-shadow); 69 border: solid 1px var(--vis-tooltip-border-color); 70 background-color: var(--vis-tooltip-background-color); 71 backdrop-filter: var(--vis-tooltip-backdrop-filter); 72`,sv=Ii,ov=te` 73 :root { 74 --vis-tooltip-background-color: rgba(255, 255, 255, 0.95); 75 --vis-tooltip-border-color: #e5e9f7; 76 --vis-tooltip-text-color: #000; 77 --vis-tooltip-shadow-color: rgba(172, 179, 184, 0.35); 78 --vis-tooltip-backdrop-filter: none; 79 --vis-tooltip-padding: 10px 15px; 80 --vis-tooltip-border-radius: 5px; 81 --vis-tooltip-transition-duration: 300ms; 82 --vis-tooltip-box-shadow: none; 83 84 --vis-dark-tooltip-background-color: rgba(30,30,30, 0.95); 85 --vis-dark-tooltip-text-color: #e5e9f7; 86 --vis-dark-tooltip-border-color: var(--vis-color-grey); 87 --vis-dark-tooltip-shadow-color: rgba(0,0,0, 0.95); 88 } 89 90 body.theme-dark ${`.${Ii}`} { 91 --vis-tooltip-background-color: var(--vis-dark-tooltip-background-color); 92 --vis-tooltip-text-color: var(--vis-dark-tooltip-text-color); 93 --vis-tooltip-border-color: var(--vis-dark-tooltip-border-color); 94 --vis-tooltip-shadow-color: var(--vis-dark-tooltip-shadow-color); 95 } 96 97 body.theme-dark { 98 --vis-tooltip-background-color: rgba(30,30,30, 0.95); 99 --vis-tooltip-text-color: #e5e9f7; 100 --vis-tooltip-border-color: var(--vis-color-grey); 101 --vis-tooltip-shadow-color: rgba(0,0,0, 0.95); 102 } 103`,Wl=E` 104 bottom: unset; 105 position: fixed; 106`,Hn=E` 107 opacity: 1; 108`,Wn=E` 109 display: none; 110`,Vl=E` 111 label: non-interactive; 112 pointer-events: none; 113 user-select: none; 114`,av=Object.freeze(Object.defineProperty({__proto__:null,hidden:Wn,nonInteractive:Vl,positionFixed:Wl,root:Ii,show:Hn,tooltip:sv,variables:ov},Symbol.toStringTag,{value:"Module"}));class Ul{constructor(e={}){this._defaultConfig=rv,this.config=this._defaultConfig,this._setUpEventsThrottled=ni(this._setUpEvents,500),this._setContainerPositionThrottled=ni(this._setContainerPosition,500),this._isShown=!1,this.element=document.createElement("div"),this.div=K(this.element).attr("class",Ii).classed(Hn,!1).classed(Wn,!0),this.setConfig(e),this.components=this.config.components,this._mutationObserver=new MutationObserver(()=>{this._isShown&&(!this.config.followCursor&&this._hoveredElement?this.placeByElement(this._hoveredElement):this._position&&this.place({x:this._position[0],y:this._position[1]}))}),this._mutationObserver.observe(this.div.node(),{childList:!0,subtree:!0})}setConfig(e){var n;this.prevConfig=this.config,this.config=fe(this._defaultConfig,e),this.prevConfig.horizontalPlacement!==this.config.horizontalPlacement&&this.overrideHorizontalPlacement(void 0),this.config.container&&this.config.container!==((n=this.prevConfig)===null||n===void 0?void 0:n.container)&&this.setContainer(this.config.container),this._setUpAttributes()}setContainer(e){var n;(n=this.element.parentNode)===null||n===void 0||n.removeChild(this.element),this._container=e,this._container.appendChild(this.element),this._setContainerPositionThrottled()}getContainer(){return this._container}hasContainer(){return!!this._container&&this._container.isConnected}setComponents(e){this.components=e}update(){this._container&&this._setUpEventsThrottled()}show(e,n){this.render(e),this.place(n)}_hide(){this.div.classed(Hn,!1).on("transitionend",()=>{this.div.classed(Wn,!this._isShown)}),this._isShown=!1}hide(){window.clearTimeout(this._showDelayTimeoutId),this.config.hideDelay?(window.clearTimeout(this._hideDelayTimeoutId),this._hideDelayTimeoutId=setTimeout(()=>this._hide(),this.config.hideDelay)):this._hide()}_display(){window.clearTimeout(this._hideDelayTimeoutId),this.div.classed(Wn,!1).classed(Hn,!0),this._isShown=!0}display(){this._isShown||(this.config.showDelay?(window.clearTimeout(this._showDelayTimeoutId),this._showDelayTimeoutId=setTimeout(()=>{this._display(),this.place({x:this._position[0],y:this._position[1]})},this.config.showDelay)):this._display())}place(e){if(this._position=[e.x,e.y],!this.hasContainer()){console.warn("Unovis | Tooltip: Container was not set or is not initialized yet");return}const{config:n}=this,i=this.element.offsetWidth,r=this.element.offsetHeight,s=this._overriddenHorizontalPlacement||(n.horizontalPlacement===T.Auto?T.Center:n.horizontalPlacement),o=n.verticalPlacement===T.Auto?e.y-r<0?T.Bottom:T.Top:n.verticalPlacement,a=5,l=s===T.Left?-i-a-n.horizontalShift:s===T.Center?-i/2:a+n.horizontalShift,c=o===T.Bottom?a+n.verticalShift:o===T.Center?-r/2:-a-n.verticalShift-r,[h,u]=this._constraintPosToContainer(e.x+l,e.y+c,i,r);this._applyPosition(h,u,r)}placeByElement(e){const{config:n}=this;this._hoveredElement=e;const i=5,r=this.element.offsetWidth,s=this.element.offsetHeight,o=this.isContainerBody(),a=o?window.innerWidth:this._container.scrollWidth,l=e.getBoundingClientRect(),c=o?[l.x,l.y]:Jn({clientX:l.x,clientY:l.y,pageX:l.x,pageY:l.y},this._container),h=this._overriddenHorizontalPlacement||(n.horizontalPlacement===T.Auto?c[0]-r<0?T.Right:c[0]+r>a?T.Left:T.Center:n.horizontalPlacement);let u=0;switch(h){case T.Left:u=-r-i-n.horizontalShift;break;case T.Right:u=l.width+i+n.horizontalShift;break;case T.Center:default:u=(-r+l.width)/2;break}const f=n.verticalPlacement===T.Auto?h!==T.Center?T.Center:c[1]-s<0?T.Bottom:T.Top:n.verticalPlacement;let d=-s;switch(f){case T.Center:d+=(s+l.height)/2;break;case T.Bottom:d+=s+l.height+i+n.verticalShift;break;case T.Top:default:d+=-i-n.verticalShift;break}const[g,p]=this._constraintPosToContainer(c[0]+u,c[1]+d,r,s);this._applyPosition(g,p,s)}isContainerBody(){return this._container===document.body}overrideHorizontalPlacement(e){this._overriddenHorizontalPlacement=e}render(e){var n;const{config:i,prevConfig:r}=this;e instanceof HTMLElement?this.div.select(":first-child").node()!==e&&this.div.html("").append(()=>e):e!==null&&this.div.html(e||""),this.div.classed((n=i.className)!==null&&n!==void 0?n:"",!!i.className).classed(Vl,!i.allowHover),r?.className&&r.className!==i.className&&this.div.classed(r.className,!1),this.display()}_applyPosition(e,n,i){const r=this.isContainerBody(),s=r?window.innerHeight:this._container.scrollHeight;this.div.classed(Wl,r).style("top",r?`${n}px`:"unset").style("bottom",r?"unset":`${s-n-i}px`).style("left",`${e}px`)}_constraintPosToContainer(e,n,i,r){const s=this.isContainerBody(),o=s?window.innerHeight:this._container.scrollHeight,a=s?window.innerWidth:this._container.scrollWidth,l=10,c=e>a-i-l,h=e<l,u=c?a-i-l:h?l:e,f=10,d=n>o-r-f,g=n<f,p=d?o-r-f:g?f:n;return[a<i?0:u,o<r?0:p]}_setContainerPosition(){var e;this._container!==document.body&&((e=getComputedStyle(this._container))===null||e===void 0?void 0:e.position)==="static"&&(this._container.style.position="relative")}_setUpEvents(){const{config:e}=this;
114this.components.forEach(n=>{const i=K(n.element);i.on("mousemove.tooltip",r=>{const{config:s}=this,o=r.composedPath&&r.composedPath()||r.path||[r.target];for(const a of Object.keys(s.triggers)){const l=s.triggers[a];if(!l)continue;const c=i.selectAll(`.${a}`).nodes();for(const h of o){if(h===i.node())break;if(h.classList.contains(a)){const u=c.indexOf(h),f=K(h).datum(),d=l(f,u,c),[g,p]=this.isContainerBody()?[r.clientX,r.clientY]:Jn(r,this._container);d===null?this.hide():(this.render(d),s.followCursor?this.place({x:g,y:p}):this.placeByElement(h)),r.stopPropagation();return}}}this._isShown&&this.hide()}).on("mouseleave.tooltip",r=>{r.stopPropagation(),this.hide()})}),e.allowHover?this.div.on("mouseenter.tooltip",this._display.bind(this)).on("mouseleave.tooltip",this.hide.bind(this)):this.div.on("mouseenter.tooltip",null).on("mouseleave.tooltip",null)}_setUpAttributes(){const e=this.config.attributes;e&&Object.keys(e).forEach(n=>{this.div.attr(n,e[n])})}destroy(){var e;this._mutationObserver.disconnect(),window.clearTimeout(this._hideDelayTimeoutId),window.clearTimeout(this._showDelayTimeoutId),(e=this.div)===null||e===void 0||e.remove()}}Ul.selectors=av;function W(t){return function(){return t}}const Yl=Math.cos,_i=Math.sin,kt=Math.sqrt,Zo=1e-12,yi=Math.PI,Li=2*yi,Er=Math.PI,Nr=2*Er,ie=1e-6,lv=Nr-ie;function Xl(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function cv(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Xl;const n=10**e;return function(i){this._+=i[0];for(let r=1,s=i.length;r<s;++r)this._+=Math.round(arguments[r]*n)/n+i[r]}}class uv{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?Xl:cv(e)}moveTo(e,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,n){this._append`L${this._x1=+e},${this._y1=+n}`}quadraticCurveTo(e,n,i,r){this._append`Q${+e},${+n},${this._x1=+i},${this._y1=+r}`}bezierCurveTo(e,n,i,r,s,o){this._append`C${+e},${+n},${+i},${+r},${this._x1=+s},${this._y1=+o}`}arcTo(e,n,i,r,s){if(e=+e,n=+n,i=+i,r=+r,s=+s,s<0)throw new Error(`negative radius: ${s}`);let o=this._x1,a=this._y1,l=i-e,c=r-n,h=o-e,u=a-n,f=h*h+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(f>ie)if(!(Math.abs(u*l-c*h)>ie)||!s)this._append`L${this._x1=e},${this._y1=n}`;else{let d=i-o,g=r-a,p=l*l+c*c,v=d*d+g*g,m=Math.sqrt(p),y=Math.sqrt(f),_=s*Math.tan((Er-Math.acos((p+f-v)/(2*m*y)))/2),b=_/y,k=_/m;Math.abs(b-1)>ie&&this._append`L${e+b*h},${n+b*u}`,this._append`A${s},${s},0,0,${+(u*d>h*g)},${this._x1=e+k*l},${this._y1=n+k*c}`}}arc(e,n,i,r,s,o){if(e=+e,n=+n,i=+i,o=!!o,i<0)throw new Error(`negative radius: ${i}`);let a=i*Math.cos(r),l=i*Math.sin(r),c=e+a,h=n+l,u=1^o,f=o?r-s:s-r;this._x1===null?this._append`M${c},${h}`:(Math.abs(this._x1-c)>ie||Math.abs(this._y1-h)>ie)&&this._append`L${c},${h}`,i&&(f<0&&(f=f%Nr+Nr),f>lv?this._append`A${i},${i},0,1,${u},${e-a},${n-l}A${i},${i},0,1,${u},${this._x1=c},${this._y1=h}`:f>ie&&this._append`A${i},${i},0,${+(f>=Er)},${u},${this._x1=e+i*Math.cos(s)},${this._y1=n+i*Math.sin(s)}`)}rect(e,n,i,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+n}h${i=+i}v${+r}h${-i}Z`}toString(){return this._}}function Ss(t){let e=3;return t.digits=function(n){if(!arguments.length)return e;if(n==null)e=null;else{const i=Math.floor(n);if(!(i>=0))throw new RangeError(`invalid digits: ${n}`);e=i}return t},()=>new uv(e)}function ql(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Gl(t){this._context=t}Gl.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(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function Ts(t){return new Gl(t)}function jl(t){return t[0]}function Zl(t){return t[1]}function Cs(t,e){var n=W(!0),i=null,r=Ts,s=null,o=Ss(a);t=typeof t=="function"?t:t===void 0?jl:W(t),e=typeof e=="function"?e:e===void 0?Zl:W(e);function a(l){var c,h=(l=ql(l)).length,u,f=!1,d;for(i==null&&(s=r(d=o())),c=0;c<=h;++c)!(c<h&&n(u=l[c],c,l))===f&&((f=!f)?s.lineStart():s.lineEnd()),f&&s.point(+t(u,c,l),+e(u,c,l));if(d)return s=null,d+""||null}return a.x=function(l){return arguments.length?(t=typeof l=="function"?l:W(+l),a):t},a.y=function(l){return arguments.length?(e=typeof l=="function"?l:W(+l),a):e},a.defined=function(l){return arguments.length?(n=typeof l=="function"?l:W(!!l),a):n},a.curve=function(l){return arguments.length?(r=l,i!=null&&(s=r(i)),a):r},a.context=function(l){return arguments.length?(l==null?i=s=null:s=r(i=l),a):i},a}function hv(t,e,n){var i=null,r=W(!0),s=null,o=Ts,a=null,l=Ss(c);t=typeof t=="function"?t:t===void 0?jl:W(+t),e=typeof e=="function"?e:W(e===void 0?0:+e),n=typeof n=="function"?n:n===void 0?Zl:W(+n);
114function c(u){var f,d,g,p=(u=ql(u)).length,v,m=!1,y,_=new Array(p),b=new Array(p);for(s==null&&(a=o(y=l())),f=0;f<=p;++f){if(!(f<p&&r(v=u[f],f,u))===m)if(m=!m)d=f,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),g=f-1;g>=d;--g)a.point(_[g],b[g]);a.lineEnd(),a.areaEnd()}m&&(_[f]=+t(v,f,u),b[f]=+e(v,f,u),a.point(i?+i(v,f,u):_[f],n?+n(v,f,u):b[f]))}if(y)return a=null,y+""||null}function h(){return Cs().defined(r).curve(o).context(s)}return c.x=function(u){return arguments.length?(t=typeof u=="function"?u:W(+u),i=null,c):t},c.x0=function(u){return arguments.length?(t=typeof u=="function"?u:W(+u),c):t},c.x1=function(u){return arguments.length?(i=u==null?null:typeof u=="function"?u:W(+u),c):i},c.y=function(u){return arguments.length?(e=typeof u=="function"?u:W(+u),n=null,c):e},c.y0=function(u){return arguments.length?(e=typeof u=="function"?u:W(+u),c):e},c.y1=function(u){return arguments.length?(n=u==null?null:typeof u=="function"?u:W(+u),c):n},c.lineX0=c.lineY0=function(){return h().x(t).y(e)},c.lineY1=function(){return h().x(t).y(n)},c.lineX1=function(){return h().x(i).y(e)},c.defined=function(u){return arguments.length?(r=typeof u=="function"?u:W(!!u),c):r},c.curve=function(u){return arguments.length?(o=u,s!=null&&(a=o(s)),c):o},c.context=function(u){return arguments.length?(u==null?s=a=null:a=o(s=u),c):s},c}const Ql={draw(t,e){const n=kt(e/yi);t.moveTo(n,0),t.arc(0,0,n,0,Li)}},fv={draw(t,e){const n=kt(e/5)/2;t.moveTo(-3*n,-n),t.lineTo(-n,-n),t.lineTo(-n,-3*n),t.lineTo(n,-3*n),t.lineTo(n,-n),t.lineTo(3*n,-n),t.lineTo(3*n,n),t.lineTo(n,n),t.lineTo(n,3*n),t.lineTo(-n,3*n),t.lineTo(-n,n),t.lineTo(-3*n,n),t.closePath()}},Jl=kt(1/3),dv=Jl*2,gv={draw(t,e){const n=kt(e/dv),i=n*Jl;t.moveTo(0,-n),t.lineTo(i,0),t.lineTo(0,n),t.lineTo(-i,0),t.closePath()}},pv={draw(t,e){const n=kt(e),i=-n/2;t.rect(i,i,n,n)}},vv=.8908130915292852,Kl=_i(yi/10)/_i(7*yi/10),mv=_i(Li/10)*Kl,_v=-Yl(Li/10)*Kl,yv={draw(t,e){const n=kt(e*vv),i=mv*n,r=_v*n;t.moveTo(0,-n),t.lineTo(i,r);for(let s=1;s<5;++s){const o=Li*s/5,a=Yl(o),l=_i(o);t.lineTo(l*n,-a*n),t.lineTo(a*i-l*r,l*i+a*r)}t.closePath()}},ar=kt(3),xv={draw(t,e){const n=-kt(e/(ar*3));t.moveTo(0,n*2),t.lineTo(-ar*n,-n),t.lineTo(ar*n,-n),t.closePath()}},ft=-.5,dt=kt(3)/2,Or=1/kt(12),bv=(Or/2+1)*3,wv={draw(t,e){const n=kt(e/bv),i=n/2,r=n*Or,s=i,o=n*Or+n,a=-s,l=o;t.moveTo(i,r),t.lineTo(s,o),t.lineTo(a,l),t.lineTo(ft*i-dt*r,dt*i+ft*r),t.lineTo(ft*s-dt*o,dt*s+ft*o),t.lineTo(ft*a-dt*l,dt*a+ft*l),t.lineTo(ft*i+dt*r,ft*r-dt*i),t.lineTo(ft*s+dt*o,ft*o-dt*s),t.lineTo(ft*a+dt*l,ft*l-dt*a),t.closePath()}};function kv(t,e){let n=null,i=Ss(r);t=typeof t=="function"?t:W(t||Ql),e=typeof e=="function"?e:W(e===void 0?64:+e);function r(){let s;if(n||(n=s=i()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),s)return n=null,s+""||null}return r.type=function(s){return arguments.length?(t=typeof s=="function"?s:W(s),r):t},r.size=function(s){return arguments.length?(e=typeof s=="function"?s:W(+s),r):e},r.context=function(s){return arguments.length?(n=s??null,r):n},r}function Qt(){}function xi(t,e,n){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+n)/6)}function Bi(t){this._context=t}Bi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:xi(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:xi(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Sv(t){return new Bi(t)}function tc(t){this._context=t}tc.prototype={areaStart:Qt,areaEnd:Qt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:xi(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Tv(t){return new tc(t)}function ec(t){this._context=t}ec.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+t)/6,i=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(n,i):this._context.moveTo(n,i);break;case 3:this._point=4;default:xi(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function Cv(t){return new ec(t)}function nc(t,e){this._basis=new Bi(t),this._beta=e}nc.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,e=this._y,n=t.length-1;if(n>0)for(var i=t[0],r=e[0],s=t[n]-i,o=e[n]-r,a=-1,l;++a<=n;)l=a/n,this._basis.point(this._beta*t[a]+(1-this._beta)*(i+l*s),this._beta*e[a]+(1-this._beta)*(r+l*o));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const Mv=(function t(e){function n(i){return e===1?new Bi(i):new nc(i,e)}return n.beta=function(i){return t(+i)},n})(.85);function bi(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function Ms(t,e){this._context=t,this._k=(1-e)/6}Ms.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:bi(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:bi(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Av=(function t(e){function n(i){return new Ms(i,e)}return n.tension=function(i){return t(+i)},n})(0);function As(t,e){this._context=t,this._k=(1-e)/6}As.prototype={areaStart:Qt,areaEnd:Qt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:bi(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const $v=(function t(e){function n(i){return new As(i,e)}return n.tension=function(i){return t(+i)},n})(0);function $s(t,e){this._context=t,this._k=(1-e)/6}$s.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:bi(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Dv=(function t(e){function n(i){return new $s(i,e)}return n.tension=function(i){return t(+i)},n})(0);function Ds(t,e,n){var i=t._x1,r=t._y1,s=t._x2,o=t._y2;if(t._l01_a>Zo){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/l,r=(r*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>Zo){var c=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,h=3*t._l23_a*(t._l23_a+t._l12_a);s=(s*c+t._x1*t._l23_2a-e*t._l12_2a)/h,o=(o*c+t._y1*t._l23_2a-n*t._l12_2a)/h}t._context.bezierCurveTo(i,r,s,o,t._x2,t._y2)}function ic(t,e){this._context=t,this._alpha=e}ic.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Ds(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Ev=(function t(e){function n(i){return e?new ic(i,e):new Ms(i,0)}
vendor: 4,918 bytes, line 114
114return n.alpha=function(i){return t(+i)},n})(.5);function rc(t,e){this._context=t,this._alpha=e}rc.prototype={areaStart:Qt,areaEnd:Qt,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Ds(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Nv=(function t(e){function n(i){return e?new rc(i,e):new As(i,0)}return n.alpha=function(i){return t(+i)},n})(.5);function sc(t,e){this._context=t,this._alpha=e}sc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){if(t=+t,e=+e,this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ds(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Ov=(function t(e){function n(i){return e?new sc(i,e):new $s(i,0)}return n.alpha=function(i){return t(+i)},n})(.5);function oc(t){this._context=t}oc.prototype={areaStart:Qt,areaEnd:Qt,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function Rv(t){return new oc(t)}function Qo(t){return t<0?-1:1}function Jo(t,e,n){var i=t._x1-t._x0,r=e-t._x1,s=(t._y1-t._y0)/(i||r<0&&-0),o=(n-t._y1)/(r||i<0&&-0),a=(s*r+o*i)/(i+r);return(Qo(s)+Qo(o))*Math.min(Math.abs(s),Math.abs(o),.5*Math.abs(a))||0}function Ko(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function lr(t,e,n){var i=t._x0,r=t._y0,s=t._x1,o=t._y1,a=(s-i)/3;t._context.bezierCurveTo(i+a,r+a*e,s-a,o-a*n,s,o)}function wi(t){this._context=t}wi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:lr(this,this._t0,Ko(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,lr(this,Ko(this,n=Jo(this,t,e)),n);break;default:lr(this,this._t0,n=Jo(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function ac(t){this._context=new lc(t)}(ac.prototype=Object.create(wi.prototype)).point=function(t,e){wi.prototype.point.call(this,e,t)};function lc(t){this._context=t}lc.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,i,r,s){this._context.bezierCurveTo(e,t,i,n,s,r)}};function Pv(t){return new wi(t)}function Fv(t){return new ac(t)}function cc(t){this._context=t}cc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),n===2)this._context.lineTo(t[1],e[1]);else for(var i=ta(t),r=ta(e),s=0,o=1;o<n;++s,++o)this._context.bezierCurveTo(i[0][s],r[0][s],i[1][s],r[1][s],t[o],e[o
114]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,e){this._x.push(+t),this._y.push(+e)}};function ta(t){var e,n=t.length-1,i,r=new Array(n),s=new Array(n),o=new Array(n);for(r[0]=0,s[0]=2,o[0]=t[0]+2*t[1],e=1;e<n-1;++e)r[e]=1,s[e]=4,o[e]=4*t[e]+2*t[e+1];for(r[n-1]=2,s[n-1]=7,o[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)i=r[e]/s[e-1],s[e]-=i,o[e]-=i*o[e-1];for(r[n-1]=o[n-1]/s[n-1],e=n-2;e>=0;--e)r[e]=(o[e]-r[e+1])/s[e];for(s[n-1]=(t[n]+r[n-1])/2,e=0;e<n-1;++e)s[e]=2*t[e+1]-r[e+1];return[r,s]}function Iv(t){return new cc(t)}function zi(t,e){this._context=t,this._t=e}zi.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function Lv(t){return new zi(t,.5)}function Bv(t){return new zi(t,0)}function zv(t){return new zi(t,1)}function ea(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable})),n.push.apply(n,i)}return n}function Hv(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ea(Object(n),!0).forEach(function(i){Wv(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ea(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function on(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?on=function(e){return typeof e}:on=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},on(t)}function Wv(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ki(){return ki=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},ki.apply(this,arguments)}function Vv(t,e){if(t){if(typeof t=="string")return na(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return Array.from(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return na(t,e)}}function na(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function uc(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Vv(t))||e){n&&(t=n);var i=0,r=function(){};return{s:r,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(l){throw l},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. 115In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,o=!1,a;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return s=l.done,l},e:function(l){o=!0,a=l},f:function(){try{!s&&n.return!=null&&n.return()}finally{if(o)throw a}}}}function Uv(t,e){var n=[],i=[];function r(s,o){if(s.length===1)n.push(s[0]),i.push(s[0]);else{for(var a=Array(s.length-1),l=0;l<a.length;l++)l===0&&n.push(s[0]),l===a.length-1&&i.push(s[l+1]),a[l]=[(1-o)*s[l][0]+o*s[l+1][0],(1-o)*s[l][1]+o*s[l+1][1]];r(a,o)}}return t.length&&r(t,e),{left:n,right:i.reverse()}}function Yv(t){var e={};return t.length===4&&(e.x2=t[2][0],e.y2=t[2][1]),t.length>=3&&(e.x1=t[1][0],e.y1=t[1][1]),e.x=t[t.length-1][0],e.y=t[t.length-1][1],t.length===4?e.type="C":t.length===3?e.type="Q":e.type="L",e}function Xv(t,e){e=e||2;for(var n=[],i=t,r=1/e,s=0;s<e-1;s++){var o=r/(1-r*s),a=Uv(i,o);n.push(a.left),i=a.right}return n.push(i),n}function qv(t,e,n){var i=[[t.x,t.y]];return e.x1!=null&&i.push([e.x1,e.y1]),e.x2!=null&&i.push([e.x2,e.y2]),i.push([e.x,e.y]),Xv(i,n).map(Yv)}var Gv=/[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g,De={M:["x","y"],L:["x","y"],H:["x"],V:["y"],C:["x1","y1","x2","y2","x","y"],S:["x2","y2","x","y"],Q:["x1","y1","x","y"],T:["x","y"],A:["rx","ry","xAxisRotation","largeArcFlag","sweepFlag","x","y"],Z:[]};Object.keys(De).forEach(function(t){De[t.toLowerCase()]=De[t]});function Rr(t,e){for(var n=Array(t),i=0;i<t;i++)n[i]=e;return n}
115function jv(t){return"".concat(t.type).concat(De[t.type].map(function(e){return t[e]}).join(","))}function Zv(t,e){var n={x1:"x",y1:"y",x2:"x",y2:"y"},i=["xAxisRotation","largeArcFlag","sweepFlag"];if(t.type!==e.type&&e.type.toUpperCase()!=="M"){var r={};Object.keys(e).forEach(function(s){var o=e[s],a=t[s];a===void 0&&(i.includes(s)?a=o:(a===void 0&&n[s]&&(a=t[n[s]]),a===void 0&&(a=0))),r[s]=a}),r.type=e.type,t=r}return t}function Qv(t,e,n){var i=[];if(e.type==="L"||e.type==="Q"||e.type==="C")i=i.concat(qv(t,e,n));else{var r=ki({},t);r.type==="M"&&(r.type="L"),i=i.concat(Rr(n-1).map(function(){return r})),i.push(e)}return i}function ia(t,e,n){var i=t.length-1,r=e.length-1,s=i/r,o=Rr(r).reduce(function(l,c,h){var u=Math.floor(s*h);if(n&&u<t.length-1&&n(t[u],t[u+1])){var f=s*h%1<.5;l[u]&&(f?u>0?u-=1:u<t.length-1&&(u+=1):u<t.length-1?u+=1:u>0&&(u-=1))}return l[u]=(l[u]||0)+1,l},[]),a=o.reduce(function(l,c,h){if(h===t.length-1){var u=Rr(c,ki({},t[t.length-1]));return u[0].type==="M"&&u.forEach(function(f){f.type="L"}),l.concat(u)}return l.concat(Qv(t[h],t[h+1],c))},[]);return a.unshift(t[0]),a}function ra(t){for(var e=(t||"").match(Gv)||[],n=[],i,r,s=0;s<e.length;++s)if(i=De[e[s]],i){r={type:e[s]};for(var o=0;o<i.length;++o)r[i[o]]=+e[s+o+1];s+=i.length,n.push(r)}return n}function Jv(t,e,n){var i=t==null?[]:t.slice(),r=e==null?[]:e.slice(),s=on(n)==="object"?n:{excludeSegment:n,snapEndsToInput:!0},o=s.excludeSegment,a=s.snapEndsToInput;if(!i.length&&!r.length)return function(){return[]};var l=(i.length===0||i[i.length-1].type==="Z")&&(r.length===0||r[r.length-1].type==="Z");i.length>0&&i[i.length-1].type==="Z"&&i.pop(),r.length>0&&r[r.length-1].type==="Z"&&r.pop(),i.length?r.length||r.push(i[0]):i.push(r[0]);var c=Math.abs(r.length-i.length);c!==0&&(r.length>i.length?i=ia(i,r,o):r.length<i.length&&(r=ia(r,i,o))),i=i.map(function(u,f){return Zv(u,r[f])});var h=i.map(function(u){return Hv({},u)});return l&&(h.push({type:"Z"}),i.push({type:"Z"})),function(f){if(f===1&&a)return e??[];if(f===0)return i;for(var d=0;d<h.length;++d){var g=i[d],p=r[d],v=h[d],m=uc(De[v.type]),y;try{for(m.s();!(y=m.n()).done;){var _=y.value;v[_]=(1-f)*g[_]+f*p[_],(_==="largeArcFlag"||_==="sweepFlag")&&(v[_]=Math.round(v[_]))}}catch(b){m.e(b)}finally{m.f()}}return h}}function Pr(t,e,n){var i=ra(t),r=ra(e),s=on(n)==="object"?n:{excludeSegment:n,snapEndsToInput:!0},o=s.excludeSegment,a=s.snapEndsToInput;if(!i.length&&!r.length)return function(){return""};var l=Jv(i,r,{excludeSegment:o,snapEndsToInput:a});return function(h){if(h===1&&a)return e??"";var u=l(h),f="",d=uc(u),g;try{for(d.s();!(g=d.n()).done;){var p=g.value;f+=jv(p)}}catch(v){d.e(v)}finally{d.f()}return f}}function st(t,e,n,i){return Array.isArray(e)&&isFinite(n)?e[n%e.length]:de(t,e,n)||(vt(n)?`var(${qt(n)})`:null)}var H;(function(t){t.Basis="basis",t.BasisClosed="basisClosed",t.BasisOpen="basisOpen",t.Bundle="bundle",t.Cardinal="cardinal",t.CardinalClosed="cardinalClosed",t.CardinalOpen="cardinalOpen",t.CatmullRom="catmullRom",t.CatmullRomClosed="catmullRomClosed",t.CatmullRomOpen="catmullRomOpen",t.Linear="linear",t.LinearClosed="linearClosed",t.MonotoneX="monotoneX",t.MonotoneY="monotoneY",t.Natural="natural",t.Step="step",t.StepAfter="stepAfter",t.StepBefore="stepBefore"})(H||(H={}));const Si={[H.Basis]:Sv,[H.BasisClosed]:Tv,[H.BasisOpen]:Cv,[H.Bundle]:Mv,[H.Cardinal]:Av,[H.CardinalClosed]:$v,[H.CardinalOpen]:Dv,[H.CatmullRom]:Ev,[H.CatmullRomClosed]:Nv,[H.CatmullRomOpen]:Ov,[H.Linear]:Ts,[H.LinearClosed]:Rv,[H.MonotoneX]:Pv,[H.MonotoneY]:Fv,[H.Natural]:Iv,[H.Step]:Lv,[H.StepAfter]:zv,[H.StepBefore]:Bv},Kv=Object.assign(Object.assign({},He),{curveType:H.MonotoneX,lineWidth:2,lineDashArray:void 0,fallbackValue:void 0,highlightOnHover:!1,cursor:null,interpolateMissingData:!1}),tm=te` 116 :root { 117 --vis-line-cursor: default; 118 --vis-line-stroke-dasharray: none; 119 --vis-line-stroke-dashoffset: 0; 120 121 --vis-line-gapfill-stroke-dasharray: 2 3; 122 --vis-line-gapfill-stroke-opacity: 0.8; 123 --vis-line-gapfill-stroke-dashoffset: 0; 124 } 125`,em=E` 126 label: line-component; 127`,Ke=E` 128 label: line; 129 transition: opacity 200ms; 130 cursor: var(--vis-line-cursor); 131`,Fr=E` 132 label: linePath; 133 fill: none; 134 stroke-dasharray: var(--vis-line-stroke-dasharray); 135 stroke-dashoffset: var(--vis-line-stroke-dashoffset); 136`,Ir=E` 137 label: lineSelectionHelper; 138 fill: none; 139 stroke: rgba(0, 0, 0, 0); 140 stroke-width: 8px; 141`,Lr=E` 142 opacity: 0.2; 143`,Br=E` 144 label: interpolated-path; 145 fill: none; 146 stroke-dasharray: var(--vis-line-gapfill-stroke-dasharray); 147 stroke-dashoffset: var(--vis-line-gapfill-stroke-dashoffset); 148 stroke-opacity: var(--vis-line-gapfill-stroke-opacity); 149`,nm=Object.freeze(Object.defineProperty({__proto__:null,dim:Lr,globalStyles:tm,interpolatedPath:Br,line:Ke,linePath:Fr,lineSelectionHelper:Ir,root:em},Symbol.toStringTag,{value:"Module"}));class Hi extends kn{constructor(e){super(),this._defaultConfig=Kv,this.config=this._defaultConfig,this.curve=Si[H.MonotoneX],this.events={[Hi.selectors.line]:{mouseover:this._highlight.bind(this),mouseleave:this._resetHighlight.bind(this)}},e&&this.setConfig(e)}get bleed(){const{config:{lineWidth:e}}=this,n=this.yScale.domain(),r=(this.yScale.range()[0]>this.yScale.range()[1]?Dt.North:Dt.South)===Dt.South,s=e>3,o=e>=10;return{top:!o&&(!r&&n[1]===0||r&&n[0]===0)?0:e/2,bottom:!o&&(!r&&n[0]===0||r&&n[1]===0)?0:e/2,left:s?e/2:0,right:s?e/2:0}}_render(e){super._render(e);const{config:n,datamodel:{data:i}}=this,r=vt(e)?e:n.duration;this.curve=Si[n.curveType],this.lineGen=Cs().x(u=>u.x).y(u=>u.y).defined(u=>u.defined).curve(this.curve);const s=zt(n.y)?n.y:[n.y],o=i.map((u,f)=>this.xScale(L(u,n.x,f))),a=s.map(u=>{const f=i.map((m,y)=>{const _=L(m,u,y),b=(vt(_)||_===null)&&isFinite(_)?_:n.fallbackValue,k=n.interpolateMissingData?(vt(_)||_===null)&&isFinite(_):isFinite(b);
149return{x:o[y],y:this.yScale(b??0),defined:k,value:b}}),d=f.reduce((m,y)=>y.defined||m,!1);let g=!1;const p=f.reduce((m,y,_)=>{!y.defined&&isFinite(n.fallbackValue)&&m.push(Object.assign(Object.assign({},y),{defined:!0})),!y.defined&&!g&&(g=!0);const b=_>0&&!f[_-1].defined||_<f.length-1&&!f[_+1].defined;return y.defined&&b&&(g||m.push(Object.assign(Object.assign({},y),{defined:!1})),m.push(y),g=!1),m},[]),v=d&&f.some(m=>m.value!==null);return{values:f,defined:d,gaps:p,visible:v}}),l=this.g.selectAll(`.${Ke}`).data(a),c=l.enter().append("g").attr("class",Ke);c.append("path").attr("class",Fr).attr("stroke",(u,f)=>st(i,n.color,f)).attr("stroke-opacity",0).attr("stroke-width",n.lineWidth),c.append("path").attr("class",Ir).attr("d",this._emptyPath()),c.append("path").attr("class",Br).attr("d",this._emptyPath()).style("opacity",0);const h=c.merge(l);h.style("cursor",(u,f)=>de(i,n.cursor,f)),h.each((u,f,d)=>{var g;const p=K(d[f]),v=p.select(`.${Fr}`),m=p.select(`.${Ir}`),y=p.select(`.${Br}`),_=u.visible,b=Mi(i,n.lineDashArray,f),k=q(v,r).attr("stroke",st(i,n.color,f)).attr("stroke-width",n.lineWidth).attr("stroke-opacity",_?1:0).style("stroke-dasharray",(g=b?.join(" "))!==null&&g!==void 0?g:null),x=u.values.some($=>!$.defined),w=this.lineGen(u.values);if(r&&!x){const $=v.attr("d")||this._emptyPath(),D=w||this._emptyPath();k.attrTween("d",()=>Pr($,D))}else u.visible&&k.attr("d",w);m.attr("d",w).attr("visibility",_?null:"hidden"),x&&n.interpolateMissingData?q(y,r).attr("d",this.lineGen(u.gaps)).attr("stroke",st(i,n.color,f)).attr("stroke-width",n.lineWidth-1).style("opacity",1):y.transition().duration(r).style("opacity",0)}),q(l.exit(),r).style("opacity",0).remove()}_emptyPath(){const e=this.xScale.range(),n=this.yScale.range();return`M${e[0]},${n[0]} L${e[1]},${n[0]}`}_highlight(e){const{config:n}=this;n.highlightOnHover&&this.g.selectAll(`.${Ke}`).classed(Lr,i=>i!==e)}_resetHighlight(){const{config:e}=this;e.highlightOnHover&&this.g.selectAll(`.${Ke}`).classed(Lr,!1)}}Hi.selectors=nm;function im({x:t,y:e,w:n,h:i,tl:r=!1,tr:s=!1,bl:o=!1,br:a=!1,r:l=0}){let c;c=`M${t+l},${e}h${n-2*l}`;let h=s?l:0,u=s?0:l;return c+=`a${h},${h} 0 0 1 ${h},${h}`,c+=`h${u}v${u}`,c+=`v${i-2*l}`,h=a?l:0,u=a?0:l,c+=`a${h},${h} 0 0 1 ${-h},${h}`,c+=`v${u}h${-u}`,c+=`h${2*l-n}`,h=o?l:0,u=o?0:l,c+=`a${h},${h} 0 0 1 ${-h},${-h}`,c+=`h${-u}v${-u}`,c+=`v${2*l-i}`,h=r?l:0,u=r?0:l,c+=`a${h},${h} 0 0 1 ${h},${-h}`,c+=`v${-u}h${u}`,c+="z",c}const rm=Object.assign(Object.assign({},He),{color:void 0,barMaxWidth:void 0,barWidth:void 0,dataStep:void 0,barPadding:0,roundedCorners:2,cursor:null,barMinHeight1Px:!1,barMinHeightZeroValue:null,orientation:mi.Vertical}),hc=E` 150 label: stacked-bar-component; 151`,sm=te` 152 :root { 153 --vis-stacked-bar-cursor: default; 154 --vis-stacked-bar-fill-color: var(--vis-color-main); 155 --vis-stacked-bar-stroke-color: none; 156 --vis-stacked-bar-stroke-width: 0px; 157 --vis-stacked-bar-hover-stroke-width: none; 158 --vis-stacked-bar-hover-stroke-color: none; 159 160 /* Dark Theme */ 161 --vis-dark-stacked-bar-stroke-color: none; 162 } 163 164 body.theme-dark ${`.${hc}`} { 165 --vis-stacked-bar-stroke-color: var(--vis-dark-stacked-bar-stroke-color); 166 } 167`,Vn=E` 168 label: bar; 169 fill: var(--vis-stacked-bar-fill-color); 170 stroke: var(--vis-stacked-bar-stroke-color); 171 stroke-width: var(--vis-stacked-bar-stroke-width); 172 cursor: var(--vis-stacked-bar-cursor); 173 174 &:hover { 175 stroke-width: var(--vis-stacked-bar-hover-stroke-width); 176 stroke: var(--vis-stacked-bar-hover-stroke-color); 177 } 178`,zr=E` 179 label: barGroup; 180`,fc=E` 181 label: barGroupExit; 182`,om=Object.freeze(Object.defineProperty({__proto__:null,bar:Vn,barGroup:zr,barGroupExit:fc,globalStyles:sm,root:hc},Symbol.toStringTag,{value:"Module"}));class dc extends kn{constructor(e){super(),this._defaultConfig=rm,this.config=this._defaultConfig,this.getAccessors=()=>zt(this.config.y)?this.config.y:[this.config.y],this.stacked=!0,this.events={},this._barData=[],e&&this.setConfig(e)}get bleed(){if(this._barData=this._getVisibleData(),this._barData.length===0)return{top:0,bottom:0,left:0,right:0};const e=!this.isVertical()&&this.dataScale.range()[0]>this.dataScale.range()[1],n=this.dataScale.domain(),i=this._getBarWidth()/2,r=this._barData.map((d,g)=>L(d,this.config.x,g)),s=rn(r),o=gr(r),a=this.dataScale(s),l=this.dataScale(o),c=this.dataScale.invert(a+(e?i:-i)),h=this.dataScale.invert(l+(e?-i:i)),u=c<=n[0]?this.dataScale(n[0])-this.dataScale(c):0,f=h>n[1]?this.dataScale(h)-this.dataScale(n[1]):0;return{top:this.isVertical()?0:e?-f:u,bottom:this.isVertical()?0:e?-u:f,left:this.isVertical()?u:0,right:this.isVertical()?f:0}}get dataScale(){return this.isVertical()?this.xScale:this.yScale}get valueScale(){return this.isVertical()?this.yScale:this.xScale}isVertical(){return this.config.orientation===mi.Vertical}_render(e){const{config:n}=this,i=vt(e)?e:n.duration,r=this.getAccessors(),s=Ea(this._barData,0,r,this._prevNegative);this._prevNegative=s.map(g=>!!g.isMostlyNegative);const o=this.g.selectAll(`.${zr}`).data(this._barData,(g,p)=>{var v;return`${(v=de(g,n.id,p))!==null&&v!==void 0?v:p}`}),a=(g,p)=>{const v=this.dataScale(L(g,n.x,p)),m=this.isVertical()?v:0,y=this.isVertical()?0:v;return`translate(${m},${y})`},c=o.enter().append("g").attr("class",zr).attr("transform",a).style("opacity",1).merge(o);q(c,i).attr("transform",a).style("opacity",1);const h=o.exit().attr("class",fc);q(h,i).style("opacity",0).remove(),q(h.selectAll(`.${Vn}`),i).attr("transform",this.isVertical()?`translate(0,${this._height/3})`:`translate(${this._width/6},0)`);const u=c.selectAll(`.${Vn}`).data((g,p)=>s.map((v,m)=>
182({datum:g,index:p,stacked:v[p],stackIndex:m,isEnding:m===s.length-1||m<=s.length-1&&s[m+1][p][0]!==v[p][1]})).filter(v=>v.stacked[0]!==v.stacked[1]),g=>g.stackIndex),d=u.enter().append("path").attr("class",Vn).attr("d",g=>this._getBarPath(g,!0)).style("fill",g=>st(g.datum,n.color,g.stackIndex)).merge(u);q(d,i).attr("d",g=>this._getBarPath(g)).style("fill",g=>st(g.datum,n.color,g.stackIndex)).style("cursor",g=>de(g.datum,n.cursor,g.stackIndex)),q(u.exit(),i).style("opacity",0).remove()}_getBarWidth(){const{config:e,datamodel:{data:n}}=this;if(ef(n))return 0;if(e.barWidth)return rn([e.barWidth,e.barMaxWidth]);const i=this.dataScale.bandwidth,r=this.dataScale.domain?this.dataScale.domain():[];let o=1+(i?r.length:r[1]-r[0])/e.dataStep||!i&&n.filter((c,h)=>{const u=L(c,e.x,h);return u>=r[0]&&u<=r[1]}).length||n.length;!i&&o>=2&&(o+=1);const l=(o<2?1:1-e.barPadding)*(this.isVertical()?this._width:this._height)/o;return rn([l,e.barMaxWidth])}_getVisibleData(){const{config:e,datamodel:{data:n}}=this,i=this._getBarWidth(),r=n.length<2?0:i/2,s=this.dataScale,o=Math.abs(s.invert(r)-s.invert(0));return n?.filter((l,c)=>{const h=L(l,e.x,c),u=s.domain(),f=+u[0],d=+u[1];return h>=f-o&&h<=d+o})}_getBarPath(e,n=!1){const{config:i}=this,r=this.getAccessors(),s=this._getBarWidth(),o=e.stacked[1]<0,a=e.isEnding,l=L(e.datum,r[e.stackIndex],e.index),c=n?0:Math.abs(this.valueScale(e.stacked[0])-this.valueScale(e.stacked[1])),h=!n&&i.barMinHeight1Px&&c<1&&isFinite(l)&&l!==i.barMinHeightZeroValue?1:c,u=n?this.valueScale(0):this.valueScale(o?e.stacked[0]:e.stacked[1])-(c<1&&i.barMinHeight1Px?1:0),f=-s/2,d=s,g=i.roundedCorners?vt(i.roundedCorners)?+i.roundedCorners:d/2:0,p=Ft(g,0,Math.min(c,d)/2),v=this.yScale.range()[0]>this.yScale.range()[1];return im({x:this.isVertical()?f:u-h,y:this.isVertical()?u+(v?0:-h):f,w:this.isVertical()?d:h,h:this.isVertical()?h:d,tl:a&&(this.isVertical()?!o&&v||o&&!v:o),tr:a&&(this.isVertical()?!o&&v||o&&!v:!o),br:a&&(this.isVertical()?o&&v||!o&&!v:!o),bl:a&&(this.isVertical()?o&&v||!o&&!v:o),r:p})}getValueScaleExtent(e){const{datamodel:n}=this,i=this.getAccessors(),r=e?this._getVisibleData():n.data;return Da(r,...i)}getDataScaleExtent(){const{config:e,datamodel:n}=this;return On(n.data,e.x)}getYDataExtent(e){return this.isVertical()?this.getValueScaleExtent(e):this.getDataScaleExtent()}getXDataExtent(){return this.isVertical()?this.getDataScaleExtent():this.getValueScaleExtent(!1)}}dc.selectors=om;function am(t){return t}var Un=1,Yn=2,Hr=3,tn=4,sa=1e-6;function lm(t){return"translate("+t+",0)"}function cm(t){return"translate(0,"+t+")"}function um(t){return e=>+t(e)}function hm(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function fm(){return!this.__axis}function Wi(t,e){var n=[],i=null,r=null,s=6,o=6,a=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,c=t===Un||t===tn?-1:1,h=t===tn||t===Yn?"x":"y",u=t===Un||t===Hr?lm:cm;function f(d){var g=i??(e.ticks?e.ticks.apply(e,n):e.domain()),p=r??(e.tickFormat?e.tickFormat.apply(e,n):am),v=Math.max(s,0)+a,m=e.range(),y=+m[0]+l,_=+m[m.length-1]+l,b=(e.bandwidth?hm:um)(e.copy(),l),k=d.selection?d.selection():d,x=k.selectAll(".domain").data([null]),w=k.selectAll(".tick").data(g,e).order(),$=w.exit(),D=w.enter().append("g").attr("class","tick"),A=w.select("line"),z=w.select("text");x=x.merge(x.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),w=w.merge(D),A=A.merge(D.append("line").attr("stroke","currentColor").attr(h+"2",c*s)),z=z.merge(D.append("text").attr("fill","currentColor").attr(h,c*v).attr("dy",t===Un?"0em":t===Hr?"0.71em":"0.32em")),d!==k&&(x=x.transition(d),w=w.transition(d),A=A.transition(d),z=z.transition(d),$=$.transition(d).attr("opacity",sa).attr("transform",function(M){return isFinite(M=b(M))?u(M+l):this.getAttribute("transform")}),D.attr("opacity",sa).attr("transform",function(M){var X=this.parentNode.__axis;return u((X&&isFinite(X=X(M))?X:b(M))+l)})),$.remove(),x.attr("d",t===tn||t===Yn?o?"M"+c*o+","+y+"H"+l+"V"+_+"H"+c*o:"M"+l+","+y+"V"+_:o?"M"+y+","+c*o+"V"+l+"H"+_+"V"+c*o:"M"+y+","+l+"H"+_),w.attr("opacity",1).attr("transform",function(M){return u(b(M
182)+l)}),A.attr(h+"2",c*s),z.attr(h,c*v).text(p),k.filter(fm).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Yn?"start":t===tn?"end":"middle"),k.each(function(){this.__axis=b})}return f.scale=function(d){return arguments.length?(e=d,f):e},f.ticks=function(){return n=Array.from(arguments),f},f.tickArguments=function(d){return arguments.length?(n=d==null?[]:Array.from(d),f):n.slice()},f.tickValues=function(d){return arguments.length?(i=d==null?null:Array.from(d),f):i&&i.slice()},f.tickFormat=function(d){return arguments.length?(r=d,f):r},f.tickSize=function(d){return arguments.length?(s=o=+d,f):s},f.tickSizeInner=function(d){return arguments.length?(s=+d,f):s},f.tickSizeOuter=function(d){return arguments.length?(o=+d,f):o},f.tickPadding=function(d){return arguments.length?(a=+d,f):a},f.offset=function(d){return arguments.length?(l=+d,f):l},f}function oa(t){return Wi(Un,t)}function aa(t){return Wi(Yn,t)}function la(t){return Wi(Hr,t)}function ca(t){return Wi(tn,t)}var Zt;(function(t){t.Start="start",t.Middle="middle",t.End="end"})(Zt||(Zt={}));var ue;(function(t){t.Top="top",t.Middle="middle",t.Bottom="bottom"})(ue||(ue={}));var Rt;(function(t){t.Wrap="wrap",t.Trim="trim"})(Rt||(Rt={}));var xt;(function(t){t.Left="left",t.Center="center",t.Right="right"})(xt||(xt={}));var Xn={exports:{}},dm=Xn.exports,ua;function gm(){return ua||(ua=1,(function(t){(function(e){if(typeof n!="function"){var n=function(g){return g};n.nonNative=!0}const i=n("plaintext"),r=n("html"),s=n("comment"),o=/<(\w*)>/g,a=/<\/?([^\s\/>]+)/;function l(g,p,v){g=g||"",p=p||[],v=v||"";let m=h(p,v);return u(g,m)}function c(g,p){g=g||[],p=p||"";let v=h(g,p);return function(y){return u(y||"",v)}}l.init_streaming_mode=c;function h(g,p){return g=f(g),{allowable_tags:g,tag_replacement:p,state:i,tag_buffer:"",depth:0,in_quote_char:""}}function u(g,p){if(typeof g!="string")throw new TypeError("'html' parameter must be a string");let v=p.allowable_tags,m=p.tag_replacement,y=p.state,_=p.tag_buffer,b=p.depth,k=p.in_quote_char,x="";for(let w=0,$=g.length;w<$;w++){let D=g[w];if(y===i)D==="<"?(y=r,_+=D):x+=D;else if(y===r)switch(D){case"<":if(k)break;b++;break;case">":if(k)break;if(b){b--;break}k="",y=i,_+=">",v.has(d(_))?x+=_:x+=m,_="";break;case'"':case"'":D===k?k="":k=k||D,_+=D;break;case"-":_==="<!-"&&(y=s),_+=D;break;case" ":case` 183`:if(_==="<"){y=i,x+="< ",_="";break}_+=D;break;default:_+=D;break}else y===s&&(D===">"?(_.slice(-2)=="--"&&(y=i),_=""):_+=D)}return p.state=y,p.tag_buffer=_,p.depth=b,p.in_quote_char=k,x}function f(g){let p=new Set;if(typeof g=="string"){let v;for(;v=o.exec(g);)p.add(v[1])}else!n.nonNative&&typeof g[n.iterator]=="function"?p=new Set(g):typeof g.forEach=="function"&&g.forEach(p.add,p);return p}function d(g){let p=a.exec(g);return p?p[1].toLowerCase():null}t.exports?t.exports=l:e.striptags=l})(dm)})(Xn)),Xn.exports}var pm=gm();const vm=Uc(pm);function mm(t){switch(t){case xt.Center:return"middle";case xt.Right:return"end";case xt.Left:default:return"start"}}const _m=t=>{switch(t){case xt.Left:return"start";case xt.Right:return"end";case xt.Center:return"middle";default:return null}};function ym(t){return t.replace(/-([a-z])/g,(e,n)=>n.toUpperCase())}function xm(t){var e;return(e=t.match(/[A-Z]{2,}(?=[A-Z][a-z0-9]*|\b)|[A-Z]?[a-z0-9]*|[A-Z]|[0-9]+/g))===null||e===void 0?void 0:e.filter(Boolean).map(n=>n.toLowerCase()).join("-")}function bm(t){return t.replace(/['"]/g,"'").replace(/\u0000/g,"\\0").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\v/g,"\\v").replace(/\t/g,"\\t").replace(/\f/g,"\\f")}function wm(t,e=15){return t?t.length>e?`â¦${t.substr(t.length-e,e)}`:t:""}function km(t,e=15){if(!t)return"";const n=Math.floor((e-3)/2);return t.length>e?`${t.substr(0,n)}â¦${t.substr(-n,n)}`:t}function Sm(t,e=15){return t?t.length>e?`${t.substr(0,e)}â¦`:t:""}function Tm(t,e=15,n=Zt.Middle){if(!t)return"";let i=Sm(t,e);return n===Zt.Start?i=wm(t,e):n===Zt.Middle&&(i=km(t,e)),i}function gc(t,e=[" "]){let n=[t];for(let i=0;i<e.length;i++){const r=e[i];n.forEach((s,o)=>{const a=s.split(r),l=a.map((c,h)=>`${c}${h===a.length-1?"":r}`);n[o]=l}),n=pr(n)}return n}function Cm(t,e,n=[" ","-",".",","]){const i=t.text();if(!i)return;const r=zt(n)?n:[n],s=gc(i,r),o=parseFloat(t.attr("x"))||0;t.text("");let a=t.append("tspan").attr("x",o),l=`${s[0]}`;
183a.text(l),s.forEach((c,h)=>{if(h===0)return;const u=`${l}${c}`;a.text(u),a.node().getComputedTextLength()>e?(a.text(l.trim()),a=t.append("tspan").attr("x",o).attr("dy","1.2em").text(c),l=c):l+=c})}function ha(t,e,n,i,r,s){var o;e===void 0&&(e=50),n===void 0&&(n=Zt.Middle),r===void 0&&(r=+((o=window.getComputedStyle(t.node()))===null||o===void 0?void 0:o.fontSize)||0),s===void 0&&(s=is());const a=t.text()||"",l=a.length,c=r*l*s,u=Math.ceil(l*e/(1.1*c));return u<l?(t.text(Tm(a,u,n)),!0):!1}function qn(t,e,n=is()){return t.length*e*n||0}function Gn(t,e,n){const i="http://www.w3.org/2000/svg",r=document.createElementNS(i,"svg"),s=document.createElementNS(i,"text");s.textContent=t,s.setAttribute("font-size",`${n}`),s.setAttribute("font-family",e),r.appendChild(s),document.body.appendChild(r);const o=s.getComputedTextLength();return document.body.removeChild(r),o}function Mm(t,e=void 0,n=!0,i=rl,r=!1){var s,o,a;const l=`${t.text}`;if(!l)return[];const c=(s=t.fontSize)!==null&&s!==void 0?s:sn.fontSize,h=(o=t.fontFamily)!==null&&o!==void 0?o:sn.fontFamily,u=(a=t.fontWidthToHeightRatio)!==null&&a!==void 0?a:sn.fontWidthToHeightRatio,f=Array.isArray(i)?i:[i];return l.split(` 184`).map(g=>{const p=[];if(!e)return[g];const v=gc(g,f);let m="";for(let y=0;y<v.length;y+=1){(n?qn(m+v[y],c,u):Gn(m+v[y],h,c))<e||y===0?m+=v[y]:(p.push(m.trim()),m=v[y]);const b=2;if(r)for(;m.trim().length>b&&(n?qn(m,c,u):Gn(m,h,c))>e;){let x=m.trim().length-b;for(;x>0;){const w=`${m.substring(0,x)}${sl}`;if((n?qn(w,c,u):Gn(w,h,c))<=e||x===1){p.push(w.trim()),m=m.substring(x);break}x--}}}return m&&p.push(m.trim()),p}).flat()}function Am(t,e=void 0,n=void 0,i=!0,r=rl,s=!1){const o=Array.isArray(t)?t.map(u=>fe(sn,u)):[fe(sn,t)],a=o.map(u=>Mm(u,e,i,r,s)),l=o[0];let c=-l.fontSize*(l.lineHeight-1);const h=[];return o.forEach((u,f)=>{var d;let g=a[f];const p=f>0?h[f-1]:void 0,v=p?p.marginBottom:0,m=u.marginTop,y=Math.max(v,m);c+=y;const _=u.fontSize*u.lineHeight;let b=0;for(let k=0;k<g.length;k+=1){let x=g[k];c+=_;const w=`${x} â¦`,$=i?qn(w,u.fontSize,u.fontWidthToHeightRatio):Gn(w,u.fontFamily,u.fontSize);if(b=Math.max($,b),n&&c+_>n&&k!==g.length-1){x.charAt(x.length-1)===sl&&(x=x.substr(0,g[k].length-1)),$<e?g[k]=w:g[k]=`${g[k].substr(0,g[k].length-2)}â¦`,g=g.slice(0,k+1);break}}h.push(Object.assign(Object.assign({},u),{_lines:g,_estimatedHeight:c-(p?._estimatedHeight||0),_maxWidth:Math.max(b,(d=p?._maxWidth)!==null&&d!==void 0?d:0)}))}),h}function $m(t,e=0,n,i){return t.map((r,s)=>{const o=s>0?t[s-1]:void 0,a=o?o.marginBottom/o.fontSize:0,l=r.marginTop/r.fontSize,c=Math.max(a,l),h={fontSize:r.fontSize,fontFamily:r.fontFamily,fontWeight:r.fontWeight,fill:r.color,y:s===0&&n};return`<tspan xmlns="http://www.w3.org/2000/svg" ${Object.entries(h).filter(([f,d])=>d).map(([f,d])=>`${xm(f)}="${bm(d.toString())}"`).join(" ")}>${r._lines.map((f,d)=>{let g;return s===0&&d===0?g=c:d===0?g=c+r.lineHeight:g=r.lineHeight,`<tspan x="${e}" dy="${g}em" dominant-baseline="${i??"auto"}">${f.length?f:" "}</tspan>`}).join("")}</tspan>`})}function Dm(t){return Qh(t,e=>e._estimatedHeight)}const Em=["text","tspan","textPath","altGlyph","altGlyphDef","altGlyphItem","glyphRef","textRef","textArea"];function Nm(t,e,n,i){var r,s;const o=Am(e,n.width,void 0,n.fastMode,n.separator,n.wordBreak),a=(r=n.x)!==null&&r!==void 0?r:+t.getAttribute("x"),l=(s=n.y)!==null&&s!==void 0?s:+t.getAttribute("y"),c=a??0;let h=l??0;if(n.textAlign&&t.setAttribute("text-anchor",mm(n.textAlign)),n.verticalAlign&&n.verticalAlign!==ue.Top){const f=Dm(o),d=n.verticalAlign===ue.Middle?-f/2:n.verticalAlign===ue.Bottom?-f:0;h+=d}n.textRotationAngle?t.setAttribute("transform",`rotate(${n.textRotationAngle===0||n.textRotationAngle?n.textRotationAngle:0} ${c} ${h})`):t.removeAttribute("transform");const u=new DOMParser;t.textContent="",o.forEach(f=>{const d=$m([f],c,h,i).join(""),g=vm(d,Em),p=u.parseFromString(g,"image/svg+xml").firstChild;t.appendChild(p)})}const Om=Object.assign(Object.assign({},He),{position:void 0,type:void 0,label:void 0,labelFontSize:null,labelTextFitMode:Rt.Wrap,labelTextTrimType:Zt.Middle,gridLine:!0,tickLine:!0,domainLine:!0,numTicks:void 0,minMaxTicksOnly:!1,minMaxTicksOnlyWhenWidthIsLess:250,minMaxTicksOnlyShowGridLines:!1,tickTextWidth:void 0,tickTextSeparator:void 0,tickTextForceWordBreak:!1,tickTextTrimType:Zt.Middle,tickTextFitMode:Rt.Wrap,tickTextFontSize:null,tickTextAlign:void 0,tickTextColor:null,tickTextAngle:void 0,labelMargin:8,labelColor:null,tickFormat:void 0,tickValues:void 0,fullSize:!0,tickPadding:8,tickTextHideOverlapping:void 0});function Rm(t,e){const n="--vis-",i=Object.entries(t);return Object.fromEntries(i.map(([r])=>[ym(r.replace(n,"")),r]))}function Pm(t,e){te({":root":t,[`body.theme-dark .${e}`]:Object.keys(t).filter(n=>n.includes("--vis-dark")).map(n=>({[n.replace("--vis-dark","--vis")]:`var(${n})`}))})}const pc=E` 185 label: axis-component; 186`,Es={"--vis-axis-tick-color":"#e8e9ef","--vis-axis-grid-color":"#e8e9ef","--vis-axis-grid-line-width":"1px","--vis-axis-grid-line-dasharray":"none","--vis-axis-label-font-size":"14px","--vis-axis-label-color":"#6c778c","--vis-axis-label-weight":"500","--v
186is-axis-tick-label-color":"#6c778c","--vis-axis-tick-label-font-size":"12px","--vis-axis-tick-label-weight":"500","--vis-axis-tick-label-cursor":"default","--vis-axis-tick-label-text-decoration":"none","--vis-axis-tick-line-width":"1px","--vis-axis-tick-label-hide-transition":"opacity 400ms ease-in-out","--vis-dark-axis-tick-color":"#6c778c","--vis-dark-axis-tick-label-color":"#e8e9ef","--vis-dark-axis-grid-color":"#6c778c","--vis-dark-axis-label-color":"#fefefe"},Fm=Rm(Es);Pm(Es,pc);const Ns=E` 187 label: hide-tick-line; 188`,Os=E` 189 label: hide-domain; 190`,vc=E` 191 label: axis; 192 193 user-select: none; 194 195 .domain { 196 stroke: var(--vis-axis-domain-color, var(--vis-axis-tick-color)); 197 stroke-width: var(--vis-axis-domain-line-width, var(--vis-axis-grid-line-width)); 198 stroke-dasharray: var(--vis-axis-domain-line-dasharray, var(--vis-axis-grid-line-dasharray)); 199 } 200 201 &${`.${Ns}`} { 202 .tick > line { 203 opacity: 0; 204 } 205 } 206 207 &${`.${Os}`} { 208 .domain { 209 opacity: 0; 210 } 211 } 212`,mc=E` 213 label: grid; 214 215 .domain { 216 opacity: 0; 217 } 218 219 line { 220 stroke: var(--vis-axis-grid-color); 221 stroke-width: var(--vis-axis-grid-line-width); 222 stroke-dasharray: var(--vis-axis-grid-line-dasharray); 223 } 224`,_c=E` 225 label: tick; 226 227 stroke: none; 228 font-size: var(--vis-axis-tick-label-font-size); 229 font-weight: var(--vis-axis-tick-label-weight); 230 231 line { 232 stroke: var(--vis-axis-tick-color); 233 stroke-width: var(--vis-axis-tick-line-width); 234 } 235 236 text { 237 fill: var(--vis-axis-tick-label-color); 238 cursor: var(--vis-axis-tick-label-cursor); 239 font-family: var(--vis-axis-font-family, var(--vis-font-family)); 240 text-decoration: var(--vis-axis-tick-label-text-decoration); 241 stroke: none; 242 } 243`,Wr=E` 244 label: tick-text-exiting; 245`,Vr=E` 246 label: label; 247 fill: var(--vis-axis-label-color); 248 font-size: var(--vis-axis-label-font-size); 249 font-weight: var(--vis-axis-label-weight); 250 font-family: var(--vis-axis-font-family, var(--vis-font-family)); 251 text-anchor: middle; 252`,yc=E` 253 label: tick-label; 254`,xc=E` 255 label: tick-label-hideable; 256 opacity: 0; 257 transition: var(--vis-axis-tick-label-hide-transition); 258`,Im=Object.freeze(Object.defineProperty({__proto__:null,axis:vc,cssVarDefaults:Es,grid:mc,hideDomain:Os,hideTickLine:Ns,label:Vr,root:pc,tick:_c,tickLabel:yc,tickLabelHideable:xc,tickTextExiting:Wr,variables:Fm},Symbol.toStringTag,{value:"Module"}));class Vi extends kn{constructor(e){super(),this._defaultConfig=Om,this.config=this._defaultConfig,this._defaultNumTicks=3,this.events={},e&&this.setConfig(e),this.axisGroup=this.g.append("g"),this.gridGroup=this.g.append("g").attr("class",mc)}preRender(){const{config:e}=this,n=this.g.append("g").attr("opacity",0);this._renderAxis(n,0),this._axisRawBBox=n.node().getBBox(),e.tickTextAlign&&this._alignTickLabels(),this._renderAxisLabel(n),this._axisSizeBBox=this._getAxisSize(n),this._requiredMargin=this._getRequiredMargin(this._axisSizeBBox),n.remove()}getPosition(){const{config:{type:e,position:n}}=this;return n??(e===O.X?T.Bottom:T.Left)}_getAxisSize(e){return e.node().getBBox()}_getRequiredMargin(e=this._axisSizeBBox){const{config:{type:n,position:i}}=this;switch(n){case O.X:{const s=this._axisSizeBBox.x+this._axisSizeBBox.width,o=this._axisSizeBBox.x<0?Math.abs(this._axisSizeBBox.x):0,a=s-this._width>1?s-this._width:0;switch(i){case T.Top:return{top:e.height,left:o,right:a};case T.Bottom:default:return{bottom:e.height,left:o,right:a}}}case O.Y:{const r=e.height>this._height?(e.height-this._height)/2:0,s=r,o=r;switch(i){case T.Right:return{right:e.width,top:s,bottom:o};case T.Left:default:return{left:e.width,top:s,bottom:o}}}}}getRequiredMargin(){return this._requiredMargin}getOffset(e){const{config:{type:n,position:i}}=this;switch(n){case O.X:switch(i){case T.Top:return{top:e.top,left:e.left};case T.Bottom:default:return{top:e.top+this._height,left:e.left}}case O.Y:switch(i){case T.Right:return{top:e.top,left:e.left+this._width};case T.Left:default:return{top:e.top,left:e.left}}}}_render(e=this.config.duration,n=this.axisGroup){const{config:i}=this;if(this._renderAxis(n,e),this._renderAxisLabel(n),i.gridLine){const r=this._buildGrid();this.gridGroup.selectAll("*").interrupt(),q(this.gridGroup,e).call(r).style("opacity",1)}else q(this.gridGroup,e).style("opacity",0);i.tickTextAlign&&this._alignTickLabels(),this._resolveTickLabelOverlap(n)}_buildAxis(){const{config:{type:e,position:n,tickPadding:i}}=this,r=this._getNumTicks();switch(e){case O.X:switch(n){case T.Top:return oa(this.xScale).ticks(r).tickPadding(i);case T.Bottom:default:return la(this.xScale).ticks(r).tickPadding(i)}case O.Y:switch(n){case T.Right:return aa(this.yScale).ticks(r).tickPadding(i);case T.Left:default:return ca(this.yScale).ticks(r).tickPadding(i)}}}_buildGrid(){const{config:e}=this;let n;switch(e.type){case O.X:switch(e.position){case T.Top:{n=oa(this.xScale);break}case T.Bottom:default:{n=la(this.xScale);break}}n.tickSize(-this._height);break;case O.Y:switch(e.position){case T.Right:{n=aa(this.yScale);break}case T.Left:default:{n=ca(this.yScale);break}}n.tickSize(-this._width)}
258n.tickSizeOuter(0).tickFormat(()=>"");const i=this._getNumTicks()*2,r=n.scale(),s=r.domain(),o=()=>{if(!e.minMaxTicksOnlyShowGridLines)return s;const l=r.ticks(i);if(l.length<2)return s;const c=+l[1]-+l[0],h=s[1];return+h-+l[l.length-1]>c/2?[...l,h]:l},a=e.tickValues?this._getConfiguredTickValues():this._shouldRenderMinMaxTicksOnly()?o():r.ticks(i);return n.tickValues(a),n}_renderAxis(e=this.axisGroup,n=this.config.duration){const{config:i}=this,r=this._buildAxis(),s=r.scale(),o=i.tickValues?this._getConfiguredTickValues():this._shouldRenderMinMaxTicksOnly()?s.domain():s.ticks(this._getNumTicks()),a=o.length;r.tickValues(o),e.selectAll("*").interrupt();const l=q(e,n).call(r);e.selectAll("text").attr("dy",null).attr("y",null),l.on("end",()=>{this._resolveTickLabelOverlap(e)}),e.selectAll("g.tick").classed(_c,!0).style("font-size",i.tickTextFontSize);const h=e.selectAll("g.tick > text").filter(g=>o.some(p=>he(g,p))).classed(yc,!0).classed(xc,!!i.tickTextHideOverlapping).style("fill",i.tickTextColor);e.selectAll("g.tick > text").filter(g=>!o.some(p=>he(g,p))).classed(Wr,!0),h.nodes().forEach(g=>os(g));const u=r.tickSize(),f=this.getPosition(),d=i.tickTextWidth||(i.type===O.X?this._containerWidth/(a+1):this._containerWidth/5);if(h.each((g,p,v)=>{var m,y;let _=(y=(m=i.tickFormat)===null||m===void 0?void 0:m.call(i,g,p,o))!==null&&y!==void 0?y:`${g}`;const b=v[p];if(!this._tickTextStyleCached){const A=getComputedStyle(b);this._tickTextStyleCached={fontSize:Number.parseFloat(A.fontSize),fontFamily:A.fontFamily,fontWidthToHeightRatio:is()}}const[k,x]=this._getTickTextOffset(f,u,this._tickTextStyleCached.fontSize),w={verticalAlign:i.type===O.X?ue.Top:ue.Middle,width:d,textRotationAngle:i.tickTextAngle,separator:i.tickTextSeparator,wordBreak:i.tickTextForceWordBreak,x:k,y:x};if(i.tickTextFitMode===Rt.Trim){const A=K(b).text(_);ha(A,d,i.tickTextTrimType,!0,this._tickTextStyleCached.fontSize,.58),_=K(b).text()}const $=Object.assign({text:_},this._tickTextStyleCached),D=i.type===O.X?"central":"hanging";Nm(b,$,w,D)}),e.classed(vc,!0).classed(Ns,!i.tickLine).classed(Os,!i.domainLine),i.fullSize){const g=this._getFullDomainPath(0);q(e.select(".domain"),n).attr("d",g)}}_resolveTickLabelOverlap(e=this.axisGroup){const{config:n}=this,i=e.selectAll(`g.tick > text:not(.${Wr})`);if(!n.tickTextHideOverlapping){i.style("opacity",null);return}cancelAnimationFrame(this._collideTickLabelsAnimFrameId),this._collideTickLabelsAnimFrameId=requestAnimationFrame(()=>{this._collideTickLabels(i)})}_collideTickLabels(e){e.each((i,r,s)=>{const o=s[r];o._visible=!0});const n=3;for(let i=0;i<n;i+=1)e.each((r,s,o)=>{const a=o[s];if(!a._visible)return;const c=a.getBoundingClientRect();for(let h=s+1;h<o.length;h+=1){if(s===h)continue;const u=o[h];if(u._visible){const d=u.getBoundingClientRect();if(gd(c,d,-5)){u._visible=!1;break}}}});e.each((i,r,s)=>{const o=s[r];K(o).style("opacity",o._visible?1:0)})}_getNumTicks(){const{config:{type:e,numTicks:n}}=this;if(n)return n;if(e===O.X){const i=this.xScale.range(),r=i[1]-i[0];return Math.floor(r/175)}if(e===O.Y){const i=this.yScale.range(),r=Math.abs(i[0]-i[1]);return Math.pow(r,.85)/25}return this._defaultNumTicks}_getConfiguredTickValues(){const{config:e}=this,n=e.type===O.X?this.xScale:this.yScale,i=n?.domain();return e.tickValues?e.tickValues.filter(r=>r>=i[0]&&r<=i[1]):null}_shouldRenderMinMaxTicksOnly(){const{config:e}=this;return e.minMaxTicksOnly||e.type===O.X&&this._width<e.minMaxTicksOnlyWhenWidthIsLess}_getFullDomainPath(e=0){const{config:{type:n}}=this;switch(n){case O.X:return`M0.5, ${e} V0.5 H${this._width+.5} V${e}`;case O.Y:return`M${-e}, ${this._height+.5} H0.5 V0.5 H${-e}`}}_renderAxisLabel(e=this.axisGroup){var n;const{type:i,label:r,labelMargin:s,labelFontSize:o,labelTextFitMode:a}=this.config;if(e.selectAll(`.${Vr}`).remove(),!r)return;const l=this.getPosition(),{width:c,height:h}=(n=this._axisRawBBox)!==null&&n!==void 0?n:e.node().getBBox(),u=i===O.Y?-90:0,f=e.append("text").attr("class",Vr).attr("dy",`${this._getLabelDY()}em`).style("font-size",o).style("fill",this.config.labelColor);f.text(r);let d=!1;if(a===Rt.Wrap){const b=i===O.Y?this._height:this._width;f.node().getComputedTextLength()>b&&(Cm(f,b),d=!0)}let g=c,p=h;if(a===Rt.Wrap){const b=f.node().getBBox();g=b.width,p=b.height}else{const b=i===O.X?g:p,k=getComputedStyle(f.node()),x=Number.parseFloat(k.fontSize);ha(f,b,this.config.labelTextTrimType,!0,x);const w=f.node().getBBox();g=w.width,p=w.height}const v=i===O.X?this._width/2:i===O.Y&&a===Rt.Wrap&&d?l===T.Left?-c-p/2-10:c:Math.pow(-1,+(l===T.Left))*c,m=i===O.Y?this._height/2:i===O.X&&a===Rt.Wrap?l===T.Top?-h-p/2:h:Math.pow(-1,+(l===T.Top))*h,y=i===O.X?0:Math.pow(-1,+(l===T.Left))*s,_=i===O.X?Math.pow(-1,+(l===T.Top))*s:0;f.attr("transform",`translate(${v+y},${m+_}) rotate(${u})`)}_getLabelDY(){const{type:e,position:n}=this.config;switch(e){case O.X:switch(n){case T.Top:return 0;case T.Bottom:default:return .75}case O.Y:switch(n){case T.Right:return .75;case T.Left:default:return-.25}}}_getTickTextOffset(e,n,i){var r;const{config:s}=this,o=((r=s.tickTextAngle)!==null&&r!==void 0?r:0)/180*Math.PI,a=n+s.tickPadding;if(s.type===O.X){const l=e===T.Bottom?1:-1;return[l*a*Math.sin(o),l*(a+i/2)*Math.cos(o)]}else{const l=e===T.Right?1:-1;return[l*a*Math.cos(o),l*a*Math.sin(o)]}}_alignTickLabels(){const{config:{type:e,tickTextAlign:n,tickTextAngle:i,position:r}}=this,s=this.g.selectAll("g.tick > text"),o=_m(n),a=e===O.X?0:this._getYTickTextTranslate(n,r),l=i?`translate(${a},0) rotate(${i})`:`translate(${a},0)`;s.attr("transform",l).attr("text-anchor",o)}_getYTickTextTranslate(e,n=T.Left){var i,r,s,o;const a=this.config.tickPadding+1,l=((o=(r=(i=this._axisRawBBox)===null||i===void 0?void 0:i.width)!==null&&r!==void 0?r:(s=this.axisGroup.node())===null||s===void 0?void 0:s.getBBox().width)!==null&&o!==void 0?o:0)-a;switch(e){case xt.Left:return n===T.Left?l*-1:0;case xt.Right:return n===T.Left?0:l;case xt.Center:return n===T.Left?l*-.5:l*.5;default:return 0}}}Vi.selectors=Im;var Ct;(function(t){t.Circle="circle",t.Cross="cross",t.Diamond="diamond",t.Square="square",t.Star="star",t.Triangle="triangle",t.Wye="wye"})(Ct||(Ct={}));const Lm={[Ct.Circle]:Ql,[Ct.Cross]:fv,[Ct.Diamond]:gv,[Ct.Square]:pv,[Ct.Star]:yv,[Ct.Triangle]:xv,[Ct.Wye]:wv},nt=Object.assign(Object.assign({},Ct),{Line:"line"});var Ti;(function(t){t.Horizontal="horizontal",t.Vertical="vertical"})(Ti||(Ti={}));const Bm={items:[],labelClassName:"",onLegendItemClick:void 0,labelFontSize:null,labelMaxWidth:null,bulletSize:null,bulletSpacing:4,bulletShape:t=>{var e;return(e=t.shape)!==null&&e!==void 0?e:nt.Circle},orientation:Ti.Horizontal,renderIntoProvidedDomNode:!1}
258,Nn=dn*3,zm={[nt.Circle]:Math.PI/4,[nt.Cross]:5/9,[nt.Diamond]:Math.sqrt(3)/6,[nt.Square]:1,[nt.Star]:.3,[nt.Triangle]:Math.sqrt(3)/4,[nt.Wye]:5/11};function bc(t,e,n){return e<1?0:t*e+n*(e-1)}function Hm(t){t.each((e,n,i)=>{K(i[n]).append("svg").attr("width","100%").attr("height","100%").append("path")})}function Wm(t,e,n){t.each((i,r,s)=>{var o;const a=de(i,e.bulletShape,r),l=of((o=i.color)!==null&&o!==void 0?o:st(i,n,r)),c=l.length,h=Nn,u=yn(e.bulletSize)||tl("var(--vis-legend-bullet-size)",s[r]),f=e.bulletSpacing*(Nn/u),d=bc(h,c,f),g=a===nt.Line?Nn/2.5:Nn,p=K(s[r]).select("svg").attr("viewBox",`0 0 ${d} ${g}`);p.selectAll("path").remove();const v=i.inactive?"var(--vis-legend-bullet-inactive-opacity)":1;l.forEach((m,y)=>{const _=p.append("path");if(a===nt.Line){const b=y*(h+f),k=b+h;_.attr("d",`M${b},${g/2} L${k},${g/2}`).attr("transform",null).style("opacity",v).style("stroke",m).style("stroke-width","3px").style("fill",null).style("fill-opacity",null).style("marker-start","none").style("marker-end","none")}else{const b=kv().type(Lm[a]).size(h*g*zm[a]),k=(h-2)/h;let x=g/2;switch(a){case nt.Triangle:x+=g/8;break;case nt.Star:x+=g/16;break;case nt.Wye:x-=g/16;break}const w=y*(h+f)+h/2;_.attr("d",b).attr("transform",`translate(${w}, ${Math.round(x)}) scale(${k})`).style("stroke",m).style("stroke-width","1px").style("opacity",null).style("fill",m).style("fill-opacity",v)}})})}const Rs=E` 259 label: bullet-legend-component; 260`,Vm=te` 261 :root { 262 // Undefined by default to allow proper fallback to var(--vis-font-family) 263 /* --vis-legend-font-family: */ 264 265 --vis-legend-label-color: #6c778c; 266 --vis-legend-label-max-width: 300px; 267 --vis-legend-label-font-size: 12px; 268 --vis-legend-bullet-size: 9px; 269 --vis-legend-bullet-inactive-opacity: 0.15; 270 --vis-legend-item-spacing: 20px; 271 --vis-legend-vertical-item-spacing: 5px; 272 --vis-legend-bullet-label-spacing: 8px; 273 274 --vis-dark-legend-label-color: #eee; 275 } 276 277 body.theme-dark ${`.${Rs}`} { 278 --vis-legend-label-color: var(--vis-dark-legend-label-color); 279 } 280 281 body.theme-patterns { 282 --vis-legend-bullet-size: 14px; 283 } 284`,jn=E` 285 label: legendItem; 286 display: inline-flex; 287 align-items: center; 288 font-family: var(--vis-legend-font-family, var(--vis-font-family)); 289 margin-right: var(--vis-legend-item-spacing); 290 white-space: nowrap; 291 cursor: default; 292 user-select: none; 293 max-width: min-content; 294`,wc=E` 295 label: legendItemVertical; 296 display: flex; 297 margin-top: var(--vis-legend-vertical-item-spacing); 298`,kc=E` 299 cursor: pointer; 300`,Ur=E` 301 label: legendItemLabel; 302 font-size: var(--vis-legend-label-font-size); 303 display: inline-block; 304 vertical-align: middle; 305 color: var(--vis-legend-label-color); 306 max-width: var(--vis-legend-label-max-width); 307 text-overflow: ellipsis; 308 overflow: hidden; 309 white-space: nowrap; 310`,Yr=E` 311 flex: 0 0 auto; 312 label: legendItemBullet; 313 margin-right: var(--vis-legend-bullet-label-spacing); 314 height: var(--vis-legend-bullet-size); 315 width: var(--vis-legend-bullet-size); 316 317 svg { 318 display: block; 319 } 320`,Um=Object.freeze(Object.defineProperty({__proto__:null,bullet:Yr,clickable:kc,item:jn,itemVertical:wc,label:Ur,root:Rs,variables:Vm},Symbol.toStringTag,{value:"Module"}));class Sc{constructor(e,n){this._defaultConfig=Bm,this.config=this._defaultConfig,this._colorAccessor=i=>i.color,this._container=e,this.div=n?.renderIntoProvidedDomNode?K(this._container):K(this._container).append("div"),this.div.classed(Rs,!0),this.element=this.div.node(),n&&this.setConfig(n)}setConfig(e){this.prevConfig=this.config,this.config=fe(this._defaultConfig,e),this.render()}update(e){this.setConfig(e)}render(){const{config:e}=this,n=this.div.selectAll(`.${jn}`).data(e.items),i=n.enter().append("div").on("click",this._onItemClick.bind(this)),r=i.merge(n);r.attr("class",s=>{var o;return`${jn} ${(o=s.className)!==null&&o!==void 0?o:""}`}).classed(wc,e.orientation===Ti.Vertical).classed(kc,s=>!!e.onLegendItemClick&&this._isItemClickable(s)).attr("title",s=>s.name).style("display",s=>s.hidden?"none":null),i.append("span").attr("class",Yr).call(Hm),r.select(`.${Yr}`).style("width",function(s){const a=(Array.isArray(s.color)?s.color:[s.color]).length,l=e.bulletSize?yn(e.bulletSize):tl("var(--vis-legend-bullet-size)",this)||9,c=e.bulletSpacing;return`${bc(l,a,c)}px`}).style("height",e.bulletSize).style("box-sizing","content-box").call(Wm,this.config,this._colorAccessor),i.append("span").attr("class",Ur).classed(e.labelClassName,!0).style("max-width",e.labelMaxWidth).style("font-size",e.labelFontSize),r.select(`.${Ur}`).text(s=>s.name),n.exit().remove()}_isItemClickable(e){return e.pointer===void 0?!0:e.pointer}_onItemClick(e,n){const{config:{onLegendItemClick:i}}=this,s=this.div.selectAll(`.${jn}`).nodes().indexOf(e.currentTarget);i&&i(n,s)}destroy(){this.element!==this._container&&this.div.remove()}}Sc.selectors=Um;const Ym=Object.assign(Object.assign({},He),{yStacked:void 0,baseline:null,duration:100,tooltip:void 0,template:(t,e,n,i)=>"",hideWhenFarFromPointer:!0,hideWhenFarFromPointerDistance:100,snapToData:!0,getCircles:void 0,color:void 0,strokeColor:void 0,strokeWidth:void 0,onCrosshairMove:void 0,forceShowAt:void 0,skipRangeCheck:!1}),Xm=te` 321 :root { 322 --vis-crosshair-line-stroke-color: #888; 323 --vis-crosshair-line-stroke-width: 1px; 324 --vis-crosshair-line-stroke-opacity: 1; 325 --vis-crosshair-circle-stroke-color: #fff; 326 --vis-crosshair-circle-stroke-width: 1px; 327 --vis-crosshair-circle-stroke-opacity: 0.75; 328 } 329`,qm=E` 330 label: crosshair-component; 331`,Tc=E` 332 stroke: var(--vis-crosshair-line-stroke-color); 333 stroke-width: var(--vis-crosshair-line-stroke-width); 334 stroke-opacity: var(--vis-crosshair-line-stroke-opacity); 335 pointer-events: none; 336`,Cc=E` 337 stroke: var(--vis-crosshair-circle-stroke-color); 338 stroke-width: var(--vis-crosshair-circle-stroke-width); 339 stroke-opacity: var(--vis-crosshair-circle-stroke-opacity); 340 pointer-events: none; 341`,Gm=Object.freeze(Object.defineProperty({__proto__:null,circle:Cc,globalStyles:Xm,line:Tc,root:qm},Symbol.toStringTag,{value:"Module"}));class Mc extends kn{constructor(e){super(),this.clippable=!0,this._defaultConfig=Ym,this.config=this._defaultConfig,this._xPx=void 0,this._yPx=void 0,this._mouseEvent=void 0,this._animFrameId=null,this._accessors={x:void 0,y:void 0,yStacked:void 0,baseline:void 0},e&&this.setConfig(e),this.g.style("opacity",0),this.line=this.g.append("line").attr("class",Tc)}set accessors(e){this._accessors=e}get accessors(){var e;const{config:n}=this,i=!!(n.x||n.y||n.yStacked),r=i?n.x:this._accessors.x,s=i?n.y:this._accessors.y,o=s?zt(s)?s:[s]:void 0,a=i?n.yStacked:this._accessors.yStacked,l=(e=n.baseline)!==null&&e!==void 0?e:this._accessors.baseline;return{x:r,y:o,yStacked:a,baseline:l}}_isContainerInViewport(){var e;if(!(!((e=this.container)===null||e===void 0)&&e.node()))return!1;const n=this.container.node().getBoundingClientRect(),i=window.innerWidth||document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight,s=Math.max(0,Math.min(n.right,i)-Math.max(n.left,0)),o=Math.max(0,Math.min(n.bottom,r)-Math.max(n.top,0)),a=n.width*n.height,l=s*o;return a>0&&l/a>=.35}setContainer(e){this.container!==e&&(this.container=e,this.container.on("mousemove.crosshair",this._onMouseMove.bind(this)),this.container.on("mouseout.crosshair",this._onMouseOut.bind(this)),this.container.on("wheel.crosshair",this._onWheel.bind(this)))}_render(e){var n,i,r,s,o;const{config:a,datamodel:l}=this,c=vt(e)?e:a.duration,h=a.forceShowAt!==void 0,u=h?this.xScale(a.forceShowAt):this._xPx,f=this.xScale.invert(u),d=!((n=l.data)===null||n===void 0)&&n.length&&this.accessors.x?l.data.indexOf(ii(l.data,f,this.accessors.x,Pt.Left)):void 0;let g,p;a.snapToData&&(!this.accessors.y&&!this.accessors.yStacked&&(!((i=l.data)===null||i===void 0)&&i.length)&&console.warn("Unovis | Crosshair: Y accessors have not been configured. Please check if they're present in the configuration object"),!(!((r=l.data)===null||r===void 0)&&r.length)&&this._mouseEvent&&c
341onsole.warn("Unovis | Crosshair: No data to snap to. Make sure the data has been passed to the container or to the crosshair itself"),g=ii(l.data,f,this.accessors.x),p=l.data.indexOf(g));const v=this.xScale.range(),m=this.yScale.range(),y=a.snapToData&&g?Ft(Math.round(this.xScale(L(g,this.accessors.x,p))),0,this._width):Ft(u,v[0],v[1]),_=u>=v[0]&&u<=v[1],b=this._yPx>=Math.min(m[0],m[1])&&this._yPx<=Math.max(m[0],m[1]);let k=a.skipRangeCheck?!!this._xPx:this._xPx?_&&b:_;a.hideWhenFarFromPointer&&Math.abs(y-+u)>=a.hideWhenFarFromPointerDistance&&(k=!1);const x=(s=a.tooltip)!==null&&s!==void 0?s:this.tooltip;if(k&&x&&this._isContainerInViewport()){const A=x.getContainer()||this.container.node(),z=x.isContainerBody(),M=this.accessors.x?L(g,this.accessors.x,p):void 0;if(h){const X=this.container.node().getBoundingClientRect(),Q=(z?u+X.left:u)+this._containerMargin.left,St=this._height/2+(z?X.top:0),be=[Q,St];this._showTooltip(g,M,be,d)}else if(this._mouseEvent){const X=z?[this._mouseEvent.clientX,this._mouseEvent.clientY]:Jn(this._mouseEvent,A);this._showTooltip(g,M,X,d)}}else this._hideTooltip();if(this._mouseEvent&&((o=a.onCrosshairMove)===null||o===void 0||o.call(a,k?this.xScale.invert(this._xPx):void 0,g,p,this._mouseEvent),this._mouseEvent=void 0),q(this.g,c).style("opacity",k?1:0),!isFinite(u))return;this.line.attr("y1",0).attr("y2",this._height),q(this.line,c,wo).attr("x1",y).attr("x2",y);const w=Zr(a.getCircles)?a.getCircles(f,l.data,this.yScale,d):this.getCircleData(g,p),$=this.g.selectAll("circle").data(w,(A,z)=>{var M;return(M=A.id)!==null&&M!==void 0?M:z}),D=$.enter().append("circle").attr("class",Cc).attr("r",0).attr("cx",y).attr("cy",A=>A.y).style("fill",A=>A.color).style("stroke",A=>A.strokeColor).style("stroke-width",A=>A.strokeWidth);q(D.merge($),c,wo).attr("cx",y).attr("cy",A=>A.y).attr("r",4).style("opacity",A=>A.opacity).style("fill",A=>A.color).style("stroke",A=>A.strokeColor).style("stroke-width",A=>A.strokeWidth),$.exit().remove()}hide(e){window.cancelAnimationFrame(this._animFrameId),this._animFrameId=window.requestAnimationFrame(()=>{var n,i;this._xPx=void 0,this._yPx=void 0,this._mouseEvent=void 0,(i=(n=this.config).onCrosshairMove)===null||i===void 0||i.call(n,void 0,void 0,void 0,e),this._render()})}_onMouseMove(e){var n;const{datamodel:i,element:r}=this;!this.accessors.x&&(!((n=i.data)===null||n===void 0)&&n.length)&&console.warn("Unovis | Crosshair: X accessor function has not been configured. Please check if it's present in the configuration object");const[s,o]=Jn(e,r);this._xPx=s,this._yPx=o,this._mouseEvent=e,window.cancelAnimationFrame(this._animFrameId),this._animFrameId=window.requestAnimationFrame(()=>{this._render()})}_onMouseOut(e){var n;(!e||!(!((n=this.container)===null||n===void 0)&&n.node().contains(e.relatedTarget)))&&this.hide(e)}_onWheel(e){this.hide(e)}_showTooltip(e,n,i,r){var s;const{config:o,datamodel:a}=this,l=(s=o.tooltip)!==null&&s!==void 0?s:this.tooltip;if(!l||!i)return;const[c,h]=i,u=o.template(e,n,a.data,r);if(l.config.followCursor=!0,!l.config.horizontalPlacement||l.config.horizontalPlacement===T.Auto){const f=l.isContainerBody()?c-this.container.node().getBoundingClientRect().left:c;l.overrideHorizontalPlacement(f>this._containerWidth/2?T.Left:T.Right)}u&&l.show(u,{x:c,y:h})}_hideTooltip(){var e;const{config:n}=this,i=(e=n.tooltip)!==null&&e!==void 0?e:this.tooltip;i?.hide()}getYDataExtent(){return[void 0,void 0]}getCircleData(e,n){var i,r;const{config:s}=this;if(s.snapToData&&e){const o=(i=this.accessors.y)!==null&&i!==void 0?i:[],a=(r=this.accessors.yStacked)!==null&&r!==void 0?r:[],l=L(e,this.accessors.baseline,n)||0,c=nf(e,n,...a).map((u,f)=>({y:this.yScale(u+l),opacity:vt(L(e,a[f],f))?1:0,color:st(e,s.color,f),strokeColor:s.strokeColor?st(e,s.strokeColor,f):void 0,strokeWidth:s.strokeWidth?L(e,s.strokeWidth,f):void 0})),h=o.map((u,f)=>{const d=L(e,u,n);return{y:this.yScale(d),opacity:vt(d)?1:0,color:st(e,s.color,c.length+f),strokeColor:s.strokeColor?st(e,s.strokeColor,f):void 0,strokeWidth:s.strokeWidth?L(e,s.strokeWidth,f):void 0}});return c.concat(h)}return[]}}
341Mc.selectors=Gm;const jm=Object.assign(Object.assign({},He),{color:void 0,curveType:H.MonotoneX,baseline:()=>0,opacity:1,cursor:null,line:!1,lineColor:void 0,lineWidth:2,lineDashArray:void 0,minHeight1Px:!1,minHeight:void 0,stackMinHeight:!1}),Ac=E` 342 label: area-component; 343`,Zm=te` 344 :root { 345 --vis-area-cursor: default; 346 --vis-area-fill-opacity: 1; 347 --vis-area-stroke-color: none; 348 --vis-area-stroke-width: 0px; 349 --vis-area-stroke-dasharray: none; 350 --vis-area-stroke-opacity: 1; 351 --vis-area-hover-fill-opacity: none; 352 --vis-area-hover-stroke-width: none; 353 354 /* Dark Theme */ 355 --vis-dark-area-stroke-color: none; 356 } 357 358 body.theme-dark ${`.${Ac}`} { 359 --vis-area-stroke-color: var(--vis-dark-area-stroke-color); 360 } 361 362`,Zn=E` 363 label: area; 364 cursor: var(--vis-area-cursor); 365 fill-opacity: var(--vis-area-fill-opacity); 366 stroke-width: var(--vis-area-stroke-width); 367 stroke-dasharray: var(--vis-area-stroke-dasharray); 368 stroke: var(--vis-area-stroke-color); 369 stroke-opacity: var(--vis-area-stroke-opacity); 370 371 &:hover { 372 fill-opacity: var(--vis-area-hover-fill-opacity); 373 stroke-width: var(--vis-area-hover-stroke-width); 374 } 375`,Xr=E` 376 label: areaLinePath; 377 fill: none; 378 stroke-dasharray: var(--vis-line-stroke-dasharray); 379 stroke-dashoffset: var(--vis-line-stroke-dashoffset); 380`,Qm=Object.freeze(Object.defineProperty({__proto__:null,area:Zn,areaLinePath:Xr,globalStyles:Zm,root:Ac},Symbol.toStringTag,{value:"Module"}));class Ui extends kn{constructor(e){super(),this._defaultConfig=jm,this.config=this._defaultConfig,this.stacked=!0,this.events={[Ui.selectors.area]:{}},e&&this.setConfig(e),this.stacked=Array.isArray(this.config.y)}get bleed(){const{config:{line:e,lineWidth:n}}=this;if(!e)return{top:0,bottom:0,left:0,right:0};const i=this.yScale.domain(),s=(this.yScale.range()[0]>this.yScale.range()[1]?Dt.North:Dt.South)===Dt.South,o=n>3,a=n>=10;return{top:!a&&(!s&&i[1]===0||s&&i[0]===0)?0:n/2,bottom:!a&&(!s&&i[0]===0||s&&i[1]===0)?0:n/2,left:o?n/2:0,right:o?n/2:0}}_render(e){super._render(e);const{config:n,datamodel:{data:i}}=this,r=vt(e)?e:n.duration,s=Si[n.curveType];this._areaGen=hv().x(v=>v.x).y0(v=>v.y0).y1(v=>v.y1).curve(s);const o=zt(n.y)?n.y:[n.y],a=i.map((v,m)=>this.xScale(L(v,n.x,m))),l=Ea(i,n.baseline,o,this._prevNegative);this._prevNegative=l.map(v=>!!v.isMostlyNegative);const c=[],h=l.map(v=>v.map((m,y)=>{var _,b;const k=a[y],x=this.yScale(m[0]),w=this.yScale(m[1]),$=w>x,D=n.stackMinHeight&&c[y]||0,A=$?x+D:x-D,z=$?w+D:w-D;let M=0;return(n.minHeight||n.minHeight1Px)&&Math.abs(z-A)<((_=n.minHeight)!==null&&_!==void 0?_:1)&&(M=((b=n.minHeight)!==null&&b!==void 0?b:1)-Math.abs(z-A),n.stackMinHeight&&(c[y]=D+M)),{x:k,y0:A,y1:$?z+M:z-M}})),u=h.length-1,f=[...h].reverse(),d=this.g.selectAll(`.${Zn}`).data(f),g=d.enter().append("path").attr("class",Zn).attr("d",v=>this._areaGen(v)||this._emptyPath()).style("opacity",0).style("fill",(v,m)=>st(i,n.color,u-m)),p=q(g.merge(d),r).style("opacity",(v,m)=>v.some(_=>_.y0-_.y1!==0)?L(i,n.opacity,u-m):0).style("fill",(v,m)=>st(i,n.color,u-m)).style("cursor",(v,m)=>de(i,n.cursor,u-m));r?p.attrTween("d",(m,y,_)=>{const b=K(_[y]).attr("d"),k=this._areaGen(m)||this._emptyPath();return Pr(b,k)}):p.attr("d",v=>this._areaGen(v)||this._emptyPath()),q(d.exit(),r).style("opacity",0).remove(),n.line&&this._renderLines(r,h)}_renderLines(e,n){var i;const{config:r,datamodel:{data:s}}=this,o=n.length-1,a=[...n].reverse(),l=(i=r.lineColor)!==null&&i!==void 0?i:r.color,c=this.g.selectAll(`.${Xr}`).data(a),h=this.g.selectAll(`.${Zn}`).nodes(),u=c.enter().insert("path",(g,p)=>h[p+1]).attr("class",Xr).attr("stroke",(g,p)=>st(s,l,o-p)).attr("stroke-width",r.lineWidth).attr("stroke-opacity",0),f=q(u.merge(c),e).attr("stroke",(g,p)=>st(s,l,o-p)).attr("stroke-width",r.lineWidth).attr("stroke-opacity",1).attr("cursor",(g,p)=>de(s,r.cursor,o-p)).style("stroke-dasharray",(g,p)=>{var v,m;return(m=(v=Mi(s,r.lineDashArray,p))===null||v===void 0?void 0:v.join(" "))!==null&&m!==void 0?m:null}),d=Si[r.curveType];this._lineGen=Cs().x(g=>g.x).y(g=>g.y1).curve(d),e?f.attrTween("d",(p,v,m)=>{const y=K(m[v]).attr("d")||this._emptyLinePath(),_=this._lineGen(p)||this._emptyLinePath();return Pr(y,_)}):f.attr("d",g=>this._lineGen(g)||this._emptyLinePath()),q(c.exit(),e).style("opacity",0).remove()}getYDataExtent(e){const{config:n,datamodel:i}=this,r=zt(n.y)?n.y:[n.y],s=this.xScale.domain(),o=e?Na(i.data,s,n.x,!0):i.data;return Da(o,n.baseline,...r)}_emptyPath(){const e=this.xScale.range(),n=this.yScale.domain(),i=this.yScale((n[0]+n[1])/2),r=i;return this._areaGen([{y0:i,y1:r,x:e[0]},{y0:i,y1:r,x:e[1]}])}_emptyLinePath(){const e=this.xScale.range(),n=this.yScale.range();return`M${e[0]},${n[0]} L${e[1]},${n[0]}`}}Ui.selectors=Qm;
380const Yi=Symbol("componentAccessorKey"),$c=Symbol("tooltipAccessorKey"),Dc=Symbol("crosshairAccessorKey"),Ec=Symbol("axisAccessorKey"),Jm=Symbol("annotationsAccessorKey");function xe(t,e){return he(t,e)}function ee(t){const e=Yc(),n=e.attrs;return Bt(()=>{const i={},r=e?.vnode.props??{};return Object.keys(r).forEach(s=>{i[Is(s)]=t[Is(s)]}),{...i,...n}})}const fa=Yt({__name:"index",props:{components:{},xScale:{type:[Object,Function]},xDomain:{},xDomainMinConstraint:{},xDomainMaxConstraint:{},xRange:{},yScale:{type:[Object,Function]},yDomain:{},yDomainMinConstraint:{},yDomainMaxConstraint:{},yRange:{},yDirection:{},xAxis:{},yAxis:{},autoMargin:{type:Boolean},tooltip:{},crosshair:{},preventEmptyDomain:{type:[Boolean,null]},scaleByDomain:{type:Boolean},annotations:{},clipPathExtend:{},duration:{},margin:{},padding:{},sizing:{},width:{},height:{},svgDefs:{},ariaLabel:{},data:{}},setup(t,{expose:e}){const n=t,{data:i}=Xc(n),r=ee(n),s=Et(),o=jc({components:[],annotations:void 0,crosshair:void 0,tooltip:void 0,xAxis:void 0,yAxis:void 0}),a=Et();return ut(i,()=>{s.value&&s.value.setData(i.value,!0)}),qc(()=>{var l;o.components.map(c=>c.config),(l=s.value)==null||l.updateContainer({...Xi(r.value),...Xi(o)})}),Jt(()=>{a.value&&(s.value=new ev(a.value,{...Xi(o)},i.value))}),Kt(()=>{var l;return(l=s.value)==null?void 0:l.destroy()}),We(Yi,{data:i,update:l=>o.components=[...o.components,l],destroy:()=>{var l;return o.components=(l=o.components)==null?void 0:l.filter(c=>!c.isDestroyed())}}),We(Ec,{data:i,update:l=>o[`${l.config.type}Axis`]=l,destroy:l=>{o[`${l}Axis`]=void 0}}),We(Dc,{data:i,update:l=>o.crosshair=l,destroy:()=>{o.crosshair=void 0}}),We($c,{data:i,update:l=>o.tooltip=l,destroy:()=>{o.tooltip=void 0}}),We(Jm,{data:i,update:l=>o.annotations=l,destroy:()=>{o.annotations=void 0}}),e({component:s}),(l,c)=>(gt(),Xt("div",{"data-vis-xy-container":"",ref_key:"elRef",ref:a,class:"unovis-xy-container"},[Gc(l.$slots,"default")],512))}}),Km={"data-vis-component":""},t_=Yt({__name:"index",props:{color:{type:[Function,String,Array,null]},curveType:{},baseline:{type:[Function,Number,null]},opacity:{type:[Function,Number,null]},cursor:{type:[Function,String,null]},minHeight1Px:{type:Boolean},minHeight:{},x:{type:[Function,Number,null]},y:{type:[Function,Number,null,Array]},id:{type:Function},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=Le(Yi),i=t,r=Bt(()=>n.data.value??i.data),s=ee(i),o=Et();return Jt(()=>{ve(()=>{var a;o.value=new Ui(s.value),(a=o.value)==null||a.setData(r.value),n.update(o.value)})}),Kt(()=>{var a;(a=o.value)==null||a.destroy(),n.destroy()}),ut(s,(a,l)=>{var c;xe(a,l)||(c=o.value)==null||c.setConfig(s.value)}),ut(r,()=>{var a;(a=o.value)==null||a.setData(r.value)}),e({component:o}),(a,l)=>(gt(),Xt("div",Km))}}),e_={"data-vis-axis":""};Vi.selectors;const cr=Yt({__name:"index",props:{position:{},type:{},fullSize:{type:Boolean},label:{},labelFontSize:{},labelMargin:{},labelTextFitMode:{},labelTextTrimType:{},labelColor:{},gridLine:{type:Boolean},tickLine:{type:Boolean},domainLine:{type:Boolean},minMaxTicksOnly:{type:Boolean},minMaxTicksOnlyShowGridLines:{type:Boolean},minMaxTicksOnlyWhenWidthIsLess:{},tickFormat:{type:Function},tickValues:{},numTicks:{},tickTextFitMode:{},tickTextWidth:{},tickTextSeparator:{},tickTextForceWordBreak:{type:Boolean},tickTextTrimType:{},tickTextFontSize:{},tickTextAlign:{},tickTextColor:{},tickTextAngle:{},tickTextHideOverlapping:{type:Boolean},tickPadding:{},x:{type:[Function,Number,null]},y:{type:[Function,Number,null,Array]},id:{type:Function},color:{type:[Function,String,Array,null]},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=Le(Ec),i=t,r=Bt(()=>n.data.value??i.data),s=ee(i),o=Et();return Jt(()=>{ve(()=>{var a;o.value=new Vi(s.value),(a=o.value)==null||a.setData(r.value),n.update(o.value)})}),Kt(()=>{var a;(a=o.value)==null||a.destroy(),n.destroy(i.type)}),ut(s,(a,l)=>{var c;xe(a,l)||(c=o.value)==null||c.setConfig(s.value)}),ut(r,()=>{var a;(a=o.value)==null||a.setData(r.value)}),e({component:o}),(a,l)=>(gt(),Xt("div",e_))}}),n_={"data-vis-crosshair":""},da=Yt({__name:"index",props:{data:{}},setup(t,{expose:e}){const n=Le(Dc),i=t,r=Bt(()=>n.data.value??i.data),s=ee(i),o=Et();return Jt(()=>{ve(()=>{var a;o.value=new Mc(s.value),(a=o.value)==null||a.setData(r.value),n.update(o.value)})}),Kt(()=>{var a;(a=o.value)==null||a.destroy(),n.destroy()}),ut(s,(a,l)=>{var c;xe(a,l)||(c=o.value)==null||c.setConfig(s.value)}),ut(r,()=>{var a;(a=o.value)==null||a.setData(r.value)}),e({component:o}),(a,l)=>(gt(),Xt("div",n_))}}),i_={"data-vis-component":""},ga=Yt({__name:"index",props:{color:{type:[Function,String,Array,null]},curveType:{},lineWidth:{},lineDashArray:{type:[Function,Array,null]},fallbackValue:{},highlightOnHover:{type:Boolean},cursor:{type:[Function,String,null]},interpolateMissingData:{type:Boolean},x:{type:[Function,Number,null]},y:{type:[Function,Number,null,Array]},id:{type:Function},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=Le(Yi),i=t,r=Bt(()=>n.data.value??i.data),s=ee(i),o=Et();return Jt(()=>{ve(()=>{var a;o.value=new Hi(s.value),(a=o.value)==null||a.setData(r.value),n.update(o.value)})}),Kt(()=>{var a;(a=o.value)==null||a.destroy(),n.destroy()}),ut(s,(a,l)=>{var c;xe(a,l)||(c=o.value)==null||c.setConfig(s.value)}),ut(r,()=>{var a;(a=o.value)==null||a.setData(r.value)}),e({component:o}),(a,l)=>(gt(),Xt("div",i_))}}),r_={"data-vis-component":""},s_=Yt({__name:"index",props:{color:{type:[Function,String,Array,null]},barWidth:{},barMaxWidth:{},dataStep:{},barPadding:{},roundedCorners:{type:[Number,Boolean]},cursor:{type:[Function,String,null]},barMinHeight1Px:{type:Boolean},barMinHeightZeroValue:{},orientation:{},x:{type:[Function,Number,null]},y:{type:[Function,Number,null,Array]},id:{type:Function},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=Le(Yi),i=t,r=Bt(()=>n.data.value??i.data),s=ee(i),o=Et();return Jt(()=>{ve(()=>{var a;o.value=new dc(s.value),(a=o.value)==null||a.setData(r.value),n.update(o.value)})}),Kt(()=>{var a;(a=o.value)==null||a.destroy(),n.destroy()}),ut(s,(a,l)=>{var c;xe(a,l)||(c=o.value)==null||c.setConfig(s.value)}),ut(r,()=>{var a;(a=o.value)==null||a.setData(r.value)}),e({component:o}),(a,l)=>(gt(),Xt("div",r_))}}),o_={"data-vis-tooltip":""},pa=Yt({__name:"index",props:{components:{},container:{},followCursor:{type:Boolean},allowHover:{type:Boolean},horizontalPlacement:{},horizontalShift:{},verticalPlacement:{},verticalShift:{},triggers:{},attributes:{},className:{},hideDelay:{},showDelay:{},data:{}},setup(t,{expose:e}){const n=Le($c),i=ee(t),r=Et();return Jt(()=>{ve(()=>{r.value=new Ul(i.value),n.update(r.value)})}),Kt(()=>{var s;(s=r.value)==null||s.destroy(),n.destroy()}),ut(i,(s,o)=>{var a;xe(s,o)||(a=r.value)==null||a.setConfig(i.value)}),e({component:r}),(s,o)=>(gt(),Xt("div",o_))}}),a_=Yt({__name:"index",props:{items:{},labelClassName:{},onLegendItemClick:{type:Function},labelFontSize:{},labelMaxWidth:{},bulletSize:{},bulletSpacing:{},bulletShape:{type:[Function,null]},orientation:{},renderIntoProvidedDomNode:{type:Boolean},data:{}},setup(t,{expose:e}){const n=t;Bt(()=>n.data);const i=ee(n),r=Et(),s=Et();return Jt(()=>{ve(()=>{s.value&&(r.value=new Sc(s.value,{...i.value,renderIntoProvidedDomNode:!0}))})}),Kt(()=>{var o;(o=r.value)==null||o.destroy()}),ut(i,(o,a)=>{var l;xe(o,a)||(l=r.value)==null||l.setConfig(i.value)}),e({component:r}),(o,a)=>(gt(),Xt("div",{"data-vis-bullet-legend":"",ref_key:"elRef",ref:s},null,512))}});(function(){try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode(".unovis-xy-container,.unovis-single-container{display:block;position:relative;width:100%}[data-vis-leaflet-map],[data-vis-leaflet-flow-map]{display:block;position:relative}[data-vis-bullet-legend],[data-vis-flow-legend],[data-vis-rolling-pin-legend]{display:block}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();const l_={class:"space-y-8"},c_={class:"relative"},m_=Yt({__name:"usage",async setup(t){let e,n;const i=Zc(),{activeOrganization:r}=Qc();if(!Bt(()=>
380r.value?.current_subscription?.features?.USAGE_CHARTS_EXPOSED===!0).value)throw Jc({statusCode:404,statusMessage:"Page Not Found"});const o=Bt(()=>{const _=r.value?.current_subscription;return _==null?0:(_.plan.features[nu.API_CONCURRENCY]??1/0)*_.quantity}),{data:a,status:l,refresh:c}=([e,n]=Kc(()=>eu("usage-data",()=>i.usage.concurrencies(),{default:()=>[]})),e=await e,n(),e),h=["basic","premium"],u=[{name:"Basic",factor:1},{name:"Premium",factor:4},{name:"Plan concurrent unit limit",shape:nt.Line}],f=(_,b)=>b,d=h.map(_=>b=>b[_]),g=h.map((_,b)=>(k,x)=>{let w=0;for(let $=0;$<=b;$++)w+=(a.value??[])[x]?.[h[$]]??0;return w}),p=_=>_.rate_limited_requests,v=_=>{const b=[];b.push(`<p class="mb-3">${Fs(_.timestamp).format("DD MMM YYYY HH:mm")}</p>`),b.push(...h.map((x,w)=>{const $=u[w].name,D=u[w].factor??1,A=_[x]??0,z=`${A/D} Ã ${D} = ${A}`;return`<span>${$}:</span><span>${z}</span>`}));const k=h.reduce((x,w)=>x+=_[w]??0,0);return b.push(`<strong>Total:</strong><strong>${k}</strong>`),b.map(x=>`<div class="flex w-full gap-4 justify-between">${x}</div>`).join("")},m=_=>`Rate-limited requests: ${_.rate_limited_requests??0}`,y=_=>{const b=Fs(a.value[_].timestamp),k=[b.format("HH:mm")];return _===0&&k.push(b.format("DD MMM YYYY")),k};return(_,b)=>{const k=zc,x=Hc,w=Wc,$=Vc;return gt(),Xt("div",l_,[tt($,null,{default:Te(()=>[tt(w,{class:"flex flex-col"},{default:Te(()=>[tt(k,{variant:"account"},{default:Te(()=>[...b[0]||(b[0]=[Ls(" Usage History ",-1)])]),_:1}),tt(x,{variant:"account"},{default:Te(()=>[...b[1]||(b[1]=[Ls(" The chart below shows your usage over the past 24 hours and the number of requests that were rate-limited. ",-1)])]),_:1})]),_:1})]),_:1}),tu("div",c_,[V(l)==="success"?(gt(),qi(V(fa),{key:0,data:V(a),height:500,margin:{top:20,left:60,bottom:80},"auto-margin":!1,class:"chart w-full relative z-10"},{default:Te(()=>[tt(V(a_),{items:u}),tt(V(ga),{x:f,y:V(g),"num-ticks":10},null,8,["y"]),tt(V(t_),{x:f,y:V(d)},null,8,["y"]),Number.isFinite(o.value)?(gt(),qi(V(ga),{key:0,color:"hsl(var(--primary))",x:f,y:()=>o.value},null,8,["y"])):Gi("",!0),tt(V(cr),{type:"x","tick-format":y,"tick-text-align":"left","tick-text-separator":",","tick-text-width":80,"grid-line":!1,"tick-line":!1,"num-ticks":12}),tt(V(cr),{type:"y",label:"Concurrent unit usage",attributes:{[V(Vi).selectors.grid]:{class:"text-content-secondary"}},"tick-line":!1,"domain-line":!1},null,8,["attributes"]),tt(V(pa),{"class-name":"chart-tooltip"}),tt(V(da),{template:v})]),_:1},8,["data"])):Gi("",!0),V(l)==="success"?(gt(),qi(V(fa),{key:1,data:V(a),height:100,padding:{top:20},margin:{left:60,bottom:40},"auto-margin":!1,class:"chart z-0"},{default:Te(()=>[tt(V(s_),{x:f,y:p,"curve-type":"step"}),tt(V(cr),{type:"x",label:"Rate-limited requests","tick-format":()=>"","grid-line":!1,"tick-line":!1,"min-max-ticks-only":"","tick-text-hide-overlapping":""}),tt(V(da),{template:m}),tt(V(pa),{"class-name":"chart-tooltip"})]),_:1},8,["data"])):Gi("",!0)])])}}});export{m_ as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.