vue-chrts 0.0.97 → 0.0.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +1 -468
- package/dist/index.d.ts +0 -5
- package/dist/index.js +508 -9069
- package/package.json +1 -1
- package/dist/Area/AreaChart.vue.d.ts +0 -32
- package/dist/Area/index.d.ts +0 -1
- package/dist/AreaStacked/AreaStackedChart.vue.d.ts +0 -13
- package/dist/AreaStacked/index.d.ts +0 -1
- package/dist/Bar/BarChart.vue.d.ts +0 -25
- package/dist/Bar/index.d.ts +0 -1
- package/dist/Button/Button.vue.d.ts +0 -2
- package/dist/Button/index.d.ts +0 -1
- package/dist/Donut/DonutChart.vue.d.ts +0 -11
- package/dist/Donut/index.d.ts +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,468 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("vue");var er="http://www.w3.org/1999/xhtml";const No={svg:"http://www.w3.org/2000/svg",xhtml:er,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function mi(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),No.hasOwnProperty(e)?{space:No[e],local:t}:t}function Tc(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===er&&e.documentElement.namespaceURI===er?e.createElement(t):e.createElementNS(n,t)}}function Cc(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function oa(t){var e=mi(t);return(e.local?Cc:Tc)(e)}function Ac(){}function Pr(t){return t==null?Ac:function(){return this.querySelector(t)}}function Mc(t){typeof t!="function"&&(t=Pr(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o=e[r],s=o.length,a=i[r]=new Array(s),l,c,h=0;h<s;++h)(l=o[h])&&(c=t.call(l,l.__data__,h,o))&&("__data__"in l&&(c.__data__=l.__data__),a[h]=c);return new bt(i,this._parents)}function $c(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function Ec(){return[]}function sa(t){return t==null?Ec:function(){return this.querySelectorAll(t)}}function Nc(t){return function(){return $c(t.apply(this,arguments))}}function Dc(t){typeof t=="function"?t=Nc(t):t=sa(t);for(var e=this._groups,n=e.length,i=[],r=[],o=0;o<n;++o)for(var s=e[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&(i.push(t.call(l,l.__data__,c,s)),r.push(l));return new bt(i,r)}function aa(t){return function(){return this.matches(t)}}function la(t){return function(e){return e.matches(t)}}var Oc=Array.prototype.find;function Rc(t){return function(){return Oc.call(this.children,t)}}function Lc(){return this.firstElementChild}function Bc(t){return this.select(t==null?Lc:Rc(typeof t=="function"?t:la(t)))}var Fc=Array.prototype.filter;function Pc(){return Array.from(this.children)}function zc(t){return function(){return Fc.call(this.children,t)}}function Ic(t){return this.selectAll(t==null?Pc:zc(typeof t=="function"?t:la(t)))}function Vc(t){typeof t!="function"&&(t=aa(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o=e[r],s=o.length,a=i[r]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new bt(i,this._parents)}function ca(t){return new Array(t.length)}function Hc(){return new bt(this._enter||this._groups.map(ca),this._parents)}function Wn(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Wn.prototype={constructor:Wn,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 Uc(t){return function(){return t}}function Wc(t,e,n,i,r,o){for(var s=0,a,l=e.length,c=o.length;s<c;++s)(a=e[s])?(a.__data__=o[s],i[s]=a):n[s]=new Wn(t,o[s]);for(;s<l;++s)(a=e[s])&&(r[s]=a)}function Yc(t,e,n,i,r,o,s){var a,l,c=new Map,h=e.length,u=o.length,f=new Array(h),p;for(a=0;a<h;++a)(l=e[a])&&(f[a]=p=s.call(l,l.__data__,a,e)+"",c.has(p)?r[a]=l:c.set(p,l));for(a=0;a<u;++a)p=s.call(t,o[a],a,o)+"",(l=c.get(p))?(i[a]=l,l.__data__=o[a],c.delete(p)):n[a]=new Wn(t,o[a]);for(a=0;a<h;++a)(l=e[a])&&c.get(f[a])===l&&(r[a]=l)}function Xc(t){return t.__data__}function Gc(t,e){if(!arguments.length)return Array.from(this,Xc);var n=e?Yc:Wc,i=this._parents,r=this._groups;typeof t!="function"&&(t=Uc(t));for(var o=r.length,s=new Array(o),a=new Array(o),l=new Array(o),c=0;c<o;++c){var h=i[c],u=r[c],f=u.length,p=qc(t.call(h,h&&h.__data__,c,i)),m=p.length,g=a[c]=new Array(m),v=s[c]=new Array(m),y=l[c]=new Array(f);n(h,u,g,v,y,p,e);for(var x=0,_=0,w,k;x<m;++x)if(w=g[x]){for(x>=_&&(_=x+1);!(k=v[_])&&++_<m;);w._next=k||null}}return s=new bt(s,i),s._enter=a,s._exit=l,s}function qc(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function jc(){return new bt(this._exit||this._groups.map(ca),this._parents)}function Zc(t,e,n){var i=this.enter(),r=this,o=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?o.remove():n(o),i&&r?i.merge(r).order():r}function Qc(t){for(var e=t.selection?t.selection():t,n=this._groups,i=e._groups,r=n.length,o=i.length,s=Math.min(r,o),a=new Array(r),l=0;l<s;++l)for(var c=n[l],h=i[l],u=c.length,f=a[l]=new Array(u),p,m=0;m<u;++m)(p=c[m]||h[m])&&(f[m]=p);for(;l<r;++l)a[l]=n[l];return new bt(a,this._parents)}function Jc(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var i=t[e],r=i.length-1,o=i[r],s;--r>=0;)(s=i[r])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function Kc(t){t||(t=tu);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),o=0;o<i;++o){for(var s=n[o],a=s.length,l=r[o]=new Array(a),c,h=0;h<a;++h)(c=s[h])&&(l[h]=c);l.sort(e)}return new bt(r,this._parents).order()}function tu(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function eu(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function nu(){return Array.from(this)}function iu(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,o=i.length;r<o;++r){var s=i[r];if(s)return s}return null}function ru(){let t=0;for(const e of this)++t;return t}function ou(){return!this.node()}function su(t){for(var e=this._groups,n=0,i=e.length;n<i;++n)for(var r=e[n],o=0,s=r.length,a;o<s;++o)(a=r[o])&&t.call(a,a.__data__,o,r);return this}function au(t){return function(){this.removeAttribute(t)}}function lu(t){return function(){this.removeAttributeNS(t.space,t.local)}}function cu(t,e){return function(){this.setAttribute(t,e)}}function uu(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function hu(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function fu(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 du(t,e){var n=mi(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?lu:au:typeof e=="function"?n.local?fu:hu:n.local?uu:cu)(n,e))}function ua(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function pu(t){return function(){this.style.removeProperty(t)}}function gu(t,e,n){return function(){this.style.setProperty(t,e,n)}}function mu(t,e,n){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function vu(t,e,n){return arguments.length>1?this.each((e==null?pu:typeof e=="function"?mu:gu)(t,e,n??"")):Ee(this.node(),t)}function Ee(t,e){return t.style.getPropertyValue(e)||ua(t).getComputedStyle(t,null).getPropertyValue(e)}function _u(t){return function(){delete this[t]}}function yu(t,e){return function(){this[t]=e}}function xu(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function bu(t,e){return arguments.length>1?this.each((e==null?_u:typeof e=="function"?xu:yu)(t,e)):this.node()[t]}function ha(t){return t.trim().split(/^|\s+/)}function zr(t){return t.classList||new fa(t)}function fa(t){this._node=t,this._names=ha(t.getAttribute("class")||"")}fa.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 da(t,e){for(var n=zr(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function pa(t,e){for(var n=zr(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function wu(t){return function(){da(this,t)}}function ku(t){return function(){pa(this,t)}}function Su(t,e){return function(){(e.apply(this,arguments)?da:pa)(this,t)}}function Tu(t,e){var n=ha(t+"");if(arguments.length<2){for(var i=zr(this.node()),r=-1,o=n.length;++r<o;)if(!i.contains(n[r]))return!1;return!0}return this.each((typeof e=="function"?Su:e?wu:ku)(n,e))}function Cu(){this.textContent=""}function Au(t){return function(){this.textContent=t}}function Mu(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function $u(t){return arguments.length?this.each(t==null?Cu:(typeof t=="function"?Mu:Au)(t)):this.node().textContent}function Eu(){this.innerHTML=""}function Nu(t){return function(){this.innerHTML=t}}function Du(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function Ou(t){return arguments.length?this.each(t==null?Eu:(typeof t=="function"?Du:Nu)(t)):this.node().innerHTML}function Ru(){this.nextSibling&&this.parentNode.appendChild(this)}function Lu(){return this.each(Ru)}function Bu(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Fu(){return this.each(Bu)}function Pu(t){var e=typeof t=="function"?t:oa(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function zu(){return null}function Iu(t,e){var n=typeof t=="function"?t:oa(t),i=e==null?zu:typeof e=="function"?e:Pr(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function Vu(){var t=this.parentNode;t&&t.removeChild(this)}function Hu(){return this.each(Vu)}function Uu(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Wu(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function Yu(t){return this.select(t?Wu:Uu)}function Xu(t){return arguments.length?this.property("__data__",t):this.node().__data__}function Gu(t){return function(e){t.call(this,e,this.__data__)}}function qu(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 ju(t){return function(){var e=this.__on;if(e){for(var n=0,i=-1,r=e.length,o;n<r;++n)o=e[n],(!t.type||o.type===t.type)&&o.name===t.name?this.removeEventListener(o.type,o.listener,o.options):e[++i]=o;++i?e.length=i:delete this.__on}}}function Zu(t,e,n){return function(){var i=this.__on,r,o=Gu(e);if(i){for(var s=0,a=i.length;s<a;++s)if((r=i[s]).type===t.type&&r.name===t.name){this.removeEventListener(r.type,r.listener,r.options),this.addEventListener(r.type,r.listener=o,r.options=n),r.value=e;return}}this.addEventListener(t.type,o,n),r={type:t.type,name:t.name,value:e,listener:o,options:n},i?i.push(r):this.__on=[r]}}function Qu(t,e,n){var i=qu(t+""),r,o=i.length,s;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<o;++r)if((s=i[r]).type===h.type&&s.name===h.name)return h.value}return}for(a=e?Zu:ju,r=0;r<o;++r)this.each(a(i[r],e,n));return this}function ga(t,e,n){var i=ua(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 Ju(t,e){return function(){return ga(this,t,e)}}function Ku(t,e){return function(){return ga(this,t,e.apply(this,arguments))}}function th(t,e){return this.each((typeof e=="function"?Ku:Ju)(t,e))}function*eh(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var i=t[e],r=0,o=i.length,s;r<o;++r)(s=i[r])&&(yield s)}var ma=[null];function bt(t,e){this._groups=t,this._parents=e}function pn(){return new bt([[document.documentElement]],ma)}function nh(){return this}bt.prototype=pn.prototype={constructor:bt,select:Mc,selectAll:Dc,selectChild:Bc,selectChildren:Ic,filter:Vc,data:Gc,enter:Hc,exit:jc,join:Zc,merge:Qc,selection:nh,order:Jc,sort:Kc,call:eu,nodes:nu,node:iu,size:ru,empty:ou,each:su,attr:du,style:vu,property:bu,classed:Tu,text:$u,html:Ou,raise:Lu,lower:Fu,append:Pu,insert:Iu,remove:Hu,clone:Yu,datum:Xu,on:Qu,dispatch:th,[Symbol.iterator]:eh};function st(t){return typeof t=="string"?new bt([[document.querySelector(t)]],[document.documentElement]):new bt([[t]],ma)}function ih(t){let e;for(;e=t.sourceEvent;)t=e;return t}function Yn(t,e){if(t=ih(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 Ke;(function(t){t[t.SVG=0]="SVG",t[t.HTML=1]="HTML"})(Ke||(Ke={}));var Yt;(function(t){t.Fit="fit",t.Extend="extend",t.FitWidth="fit_width"})(Yt||(Yt={}));function tn(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function rh(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function vi(t){let e,n,i;t.length!==2?(e=tn,n=(a,l)=>tn(t(a),l),i=(a,l)=>t(a)-l):(e=t===tn||t===rh?t:oh,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 o(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){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:s,right:o}}function oh(){return 0}function va(t){return t===null?NaN:+t}const sh=vi(tn),_i=sh.right;vi(va).center;function ah(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 Do extends Map{constructor(e,n=uh){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(Oo(this,e))}has(e){return super.has(Oo(this,e))}set(e,n){return super.set(lh(this,e),n)}delete(e){return super.delete(ch(this,e))}}function Oo({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):n}function lh({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):(t.set(i,n),n)}function ch({_intern:t,_key:e},n){const i=e(n);return t.has(i)&&(n=t.get(i),t.delete(i)),n}function uh(t){return t!==null&&typeof t=="object"?t.valueOf():t}const hh=Math.sqrt(50),fh=Math.sqrt(10),dh=Math.sqrt(2);function Xn(t,e,n){const i=(e-t)/Math.max(0,n),r=Math.floor(Math.log10(i)),o=i/Math.pow(10,r),s=o>=hh?10:o>=fh?5:o>=dh?2:1;let a,l,c;return r<0?(c=Math.pow(10,-r)/s,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)*s,a=Math.round(t/c),l=Math.round(e/c),a*c<t&&++a,l*c>e&&--l),l<a&&.5<=n&&n<2?Xn(t,e,n*2):[a,l,c]}function nr(t,e,n){if(e=+e,t=+t,n=+n,!(n>0))return[];if(t===e)return[t];const i=e<t,[r,o,s]=i?Xn(e,t,n):Xn(t,e,n);if(!(o>=r))return[];const a=o-r+1,l=new Array(a);if(i)if(s<0)for(let c=0;c<a;++c)l[c]=(o-c)/-s;else for(let c=0;c<a;++c)l[c]=(o-c)*s;else if(s<0)for(let c=0;c<a;++c)l[c]=(r+c)/-s;else for(let c=0;c<a;++c)l[c]=(r+c)*s;return l}function ir(t,e,n){return e=+e,t=+t,n=+n,Xn(t,e,n)[2]}function rr(t,e,n){e=+e,t=+t,n=+n;const i=e<t,r=i?ir(e,t,n):ir(t,e,n);return(i?-1:1)*(r<0?1/-r:r)}function or(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 en(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 ph(t,e,n=va){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,o=Math.floor(r),s=+n(t[o],o,t),a=+n(t[o+1],o+1,t);return s+(a-s)*(r-o)}}function gh(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 o of t)(o=e(o,++r,t))!=null&&(o=+o)>=o&&(++n,i+=o)}if(n)return i/n}function*mh(t){for(const e of t)yield*e}function vh(t){return Array.from(mh(t))}function _a(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,o=new Array(r);++i<r;)o[i]=t+i*n;return o}function _h(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 yh(t,e,n){var i={},r=i.noTrailing,o=r===void 0?!1:r,s=i.noLeading,a=s===void 0?!1:s,l=i.debounceMode,c=l===void 0?void 0:l,h,u=!1,f=0;function p(){h&&clearTimeout(h)}function m(v){var y=v||{},x=y.upcomingOnly,_=x===void 0?!1:x;p(),u=!_}function g(){for(var v=arguments.length,y=new Array(v),x=0;x<v;x++)y[x]=arguments[x];var _=this,w=Date.now()-f;if(u)return;function k(){f=Date.now(),e.apply(_,y)}function b(){h=void 0}!a&&c&&!h&&k(),p(),c===void 0&&w>t?a?(f=Date.now(),o||(h=setTimeout(c?b:k,t))):k():o!==!0&&(h=setTimeout(c?b:k,c===void 0?t-w:t))}return g.cancel=m,g}const yt=t=>typeof t=="number",Ir=t=>typeof t=="function",Xt=t=>Array.isArray(t),xh=t=>t instanceof Object,Gn=t=>t.constructor.name!=="Function"&&t.constructor.name!=="Object",Ro=t=>xh(t)&&!Xt(t)&&!Ir(t)&&!Gn(t),bh=t=>[Object,Array].includes((t||{}).constructor)&&!Object.entries(t||{}).length,on=(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(!on(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(s=>!n.includes(s)),o=Object.keys(e).filter(s=>!n.includes(s));if(r.length!==o.length)return!1;if(i.has(t))return!0;i.add(t);for(const s of r)if(!on(t[s],e[s],n,i))return!1;return!0}return t===e},sr=t=>t.flat(),qn=(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):qn(i,e));return n}if(Gn(t))return t;if(t instanceof Object){const n={};e.set(t,n);const i=t;return Object.keys(t).reduce((r,o)=>(r[o]=e.has(i[o])?e.get(i[o]):qn(i[o],e),r),n),n}return t},_e=(t,e,n=new Map)=>{if(!t||!e||t===e)return t;const i=Gn(t)?t:qn(t);return n.has(e)?n.get(e):(n.set(e,i),Object.keys(e).forEach(r=>{r==="__proto__"||r==="constructor"||(Ro(t[r])&&Ro(e[r])?i[r]=_e(t[r],e[r],n):Gn(e)?i[r]=e:i[r]=qn(e[r]))}),i)},jn=(t,e,n)=>yh(e,t);function Vr(t,e,n){return Ir(e)?e(t,n):e}function Ne(t,e,n){return Vr(t,e,n)}function Y(t,e,n){return Vr(t,e,n)}function He(t){return t.filter(e=>e&&!yt(e))}function Lt(t,e,n){return Math.min(Math.max(t,e),n)}function wh(t,...e){if(!t)return[void 0,void 0];if(Xt(e)){let n=0,i=0;return t.forEach((r,o)=>{let s=0,a=0;for(const l of e){const c=Y(r,l,o)||0;c>=0?s+=c:a+=c}s>i&&(i=s),a<n&&(n=a)}),[n,i]}}function kh(t,e,...n){const i=[];let r=0,o=0;for(const s of n){const a=Y(t,s,e)||0;a>=0?i.push(r+=a):i.push(o+=a)}return i}function Sh(t,e,n,i){const r=t.map((a,l)=>Y(a,e,l)||0),o=n.map((a,l)=>{const c=gh(t,(h,u)=>Y(h,a,u)||0);return c===0&&Array.isArray(i)?i[l]:c<0}),s=n.map(()=>[]);return t.forEach((a,l)=>{let c=r[l],h=r[l];n.forEach((u,f)=>{const p=Y(a,u,l)||0;p>=0?s[f].push([c,c+=p]):s[f].push([h,h+=p])})}),s.forEach((a,l)=>{a.isMostlyNegative=o[l]}),s}function ya(t,...e){return t?en(t,(i,r)=>en(e,o=>Y(i,o,r))):void 0}function xa(t,...e){return t?or(t,(i,r)=>or(e,o=>Y(i,o,r))):void 0}function $n(t,...e){return[ya(t,...e),xa(t,...e)]}function Th(t,e,n){if(t.length<=1)return t[0];const i=t.map((s,a)=>Y(s,n,a));i.sort((s,a)=>s-a);const r=vi(s=>s).left,o=r(i,e,1,t.length-1);return e-i[o-1]>i[o]-e?t[o]:t[o-1]}function ba(t,e,n){return t.filter((r,o)=>{const s=Y(r,n,o);return s>=e[0]&&s<=e[1]})}var de=[],Ch=function(){return de.some(function(t){return t.activeTargets.length>0})},Ah=function(){return de.some(function(t){return t.skippedTargets.length>0})},Lo="ResizeObserver loop completed with undelivered notifications.",Mh=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:Lo}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=Lo),window.dispatchEvent(t)},sn;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(sn||(sn={}));var pe=function(t){return Object.freeze(t)},$h=function(){function t(e,n){this.inlineSize=e,this.blockSize=n,pe(this)}return t}(),wa=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,pe(this)}return t.prototype.toJSON=function(){var e=this,n=e.x,i=e.y,r=e.top,o=e.right,s=e.bottom,a=e.left,l=e.width,c=e.height;return{x:n,y:i,top:r,right:o,bottom:s,left:a,width:l,height:c}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),Hr=function(t){return t instanceof SVGElement&&"getBBox"in t},ka=function(t){if(Hr(t)){var e=t.getBBox(),n=e.width,i=e.height;return!n&&!i}var r=t,o=r.offsetWidth,s=r.offsetHeight;return!(o||s||t.getClientRects().length)},Bo=function(t){var e;if(t instanceof Element)return!0;var n=(e=t==null?void 0:t.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(n&&t instanceof n.Element)},Eh=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},nn=typeof window<"u"?window:{},xn=new WeakMap,Fo=/auto|scroll/,Nh=/^tb|vertical/,Dh=/msie|trident/i.test(nn.navigator&&nn.navigator.userAgent),Dt=function(t){return parseFloat(t||"0")},Ce=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new $h((n?e:t)||0,(n?t:e)||0)},Po=pe({devicePixelContentBoxSize:Ce(),borderBoxSize:Ce(),contentBoxSize:Ce(),contentRect:new wa(0,0,0,0)}),Sa=function(t,e){if(e===void 0&&(e=!1),xn.has(t)&&!e)return xn.get(t);if(ka(t))return xn.set(t,Po),Po;var n=getComputedStyle(t),i=Hr(t)&&t.ownerSVGElement&&t.getBBox(),r=!Dh&&n.boxSizing==="border-box",o=Nh.test(n.writingMode||""),s=!i&&Fo.test(n.overflowY||""),a=!i&&Fo.test(n.overflowX||""),l=i?0:Dt(n.paddingTop),c=i?0:Dt(n.paddingRight),h=i?0:Dt(n.paddingBottom),u=i?0:Dt(n.paddingLeft),f=i?0:Dt(n.borderTopWidth),p=i?0:Dt(n.borderRightWidth),m=i?0:Dt(n.borderBottomWidth),g=i?0:Dt(n.borderLeftWidth),v=u+c,y=l+h,x=g+p,_=f+m,w=a?t.offsetHeight-_-t.clientHeight:0,k=s?t.offsetWidth-x-t.clientWidth:0,b=r?v+x:0,T=r?y+_:0,R=i?i.width:Dt(n.width)-b-k,E=i?i.height:Dt(n.height)-T-w,U=R+v+k+x,$=E+y+w+_,F=pe({devicePixelContentBoxSize:Ce(Math.round(R*devicePixelRatio),Math.round(E*devicePixelRatio),o),borderBoxSize:Ce(U,$,o),contentBoxSize:Ce(R,E,o),contentRect:new wa(u,l,R,E)});return xn.set(t,F),F},Ta=function(t,e,n){var i=Sa(t,n),r=i.borderBoxSize,o=i.contentBoxSize,s=i.devicePixelContentBoxSize;switch(e){case sn.DEVICE_PIXEL_CONTENT_BOX:return s;case sn.BORDER_BOX:return r;default:return o}},Oh=function(){function t(e){var n=Sa(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=pe([n.borderBoxSize]),this.contentBoxSize=pe([n.contentBoxSize]),this.devicePixelContentBoxSize=pe([n.devicePixelContentBoxSize])}return t}(),Ca=function(t){if(ka(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},Rh=function(){var t=1/0,e=[];de.forEach(function(s){if(s.activeTargets.length!==0){var a=[];s.activeTargets.forEach(function(c){var h=new Oh(c.target),u=Ca(c.target);a.push(h),c.lastReportedSize=Ta(c.target,c.observedBox),u<t&&(t=u)}),e.push(function(){s.callback.call(s.observer,a,s.observer)}),s.activeTargets.splice(0,s.activeTargets.length)}});for(var n=0,i=e;n<i.length;n++){var r=i[n];r()}return t},zo=function(t){de.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(r){r.isActive()&&(Ca(r.target)>t?n.activeTargets.push(r):n.skippedTargets.push(r))})})},Lh=function(){var t=0;for(zo(t);Ch();)t=Rh(),zo(t);return Ah()&&Mh(),t>0},Pi,Aa=[],Bh=function(){return Aa.splice(0).forEach(function(t){return t()})},Fh=function(t){if(!Pi){var e=0,n=document.createTextNode(""),i={characterData:!0};new MutationObserver(function(){return Bh()}).observe(n,i),Pi=function(){n.textContent="".concat(e?e--:e++)}}Aa.push(t),Pi()},Ph=function(t){Fh(function(){requestAnimationFrame(t)})},En=0,zh=function(){return!!En},Ih=250,Vh={attributes:!0,characterData:!0,childList:!0,subtree:!0},Io=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Vo=function(t){return t===void 0&&(t=0),Date.now()+t},zi=!1,Hh=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=Ih),!zi){zi=!0;var i=Vo(e);Ph(function(){var r=!1;try{r=Lh()}finally{if(zi=!1,e=i-Vo(),!zh())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,Vh)};document.body?n():nn.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Io.forEach(function(n){return nn.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Io.forEach(function(n){return nn.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t}(),ar=new Hh,Ho=function(t){!En&&t>0&&ar.start(),En+=t,!En&&ar.stop()},Uh=function(t){return!Hr(t)&&!Eh(t)&&getComputedStyle(t).display==="inline"},Wh=function(){function t(e,n){this.target=e,this.observedBox=n||sn.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=Ta(this.target,this.observedBox,!0);return Uh(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),Yh=function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t}(),bn=new WeakMap,Uo=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},wn=function(){function t(){}return t.connect=function(e,n){var i=new Yh(e,n);bn.set(e,i)},t.observe=function(e,n,i){var r=bn.get(e),o=r.observationTargets.length===0;Uo(r.observationTargets,n)<0&&(o&&de.push(r),r.observationTargets.push(new Wh(n,i&&i.box)),Ho(1),ar.schedule())},t.unobserve=function(e,n){var i=bn.get(e),r=Uo(i.observationTargets,n),o=i.observationTargets.length===1;r>=0&&(o&&de.splice(de.indexOf(i),1),i.observationTargets.splice(r,1),Ho(-1))},t.disconnect=function(e){var n=this,i=bn.get(e);i.observationTargets.slice().forEach(function(r){return n.unobserve(e,r.target)}),i.activeTargets.splice(0,i.activeTargets.length)},t}(),Xh=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.");wn.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(!Bo(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");wn.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(!Bo(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");wn.unobserve(this,e)},t.prototype.disconnect=function(){wn.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();const Gh=globalThis.ResizeObserver||Xh,Ur={duration:void 0,margin:{top:0,bottom:0,left:0,right:0},padding:{top:0,bottom:0,left:0,right:0},sizing:Yt.Fit,width:void 0,height:void 0,svgDefs:void 0,ariaLabel:void 0};class De{constructor(e){this._defaultConfig=Ur,this._isFirstRender=!0,this._renderAnimationFrameId=null,this._container=e;const n=st(this._container);n.attr("role","figure"),this.svg=n.append("svg").style("display","block").attr("xmlns","http://www.w3.org/2000/svg").attr("height",De.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=_e(this._defaultConfig,e),(e==null?void 0:e.svgDefs)!==((n=this.prevConfig)===null||n===void 0?void 0:n.svgDefs)&&(this._svgDefsExternal.selectAll("*").remove(),this._svgDefsExternal.html(e.svgDefs))}_preRender(){}_render(e){const{config:n}=this;st(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||De.DEFAULT_CONTAINER_HEIGHT}get width(){return Lt(this.containerWidth-this.config.margin.left-this.config.margin.right,0,Number.POSITIVE_INFINITY)}get height(){return Lt(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===Yt.Fit||e.sizing===Yt.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 Gh((n,i)=>{cancelAnimationFrame(this._resizeObserverAnimationFrameId),this._resizeObserverAnimationFrameId=requestAnimationFrame(()=>{const r=this._container.getBoundingClientRect(),o={width:r.width,height:r.height};!on(this._containerSize,o)&&o.width&&o.height&&(this._containerSize=o,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()}}De.DEFAULT_CONTAINER_HEIGHT=300;function qh(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 jh(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 Zh=function(){function t(n){var i=this;this._insertTag=function(r){var o;i.tags.length===0?i.insertionPoint?o=i.insertionPoint.nextSibling:i.prepend?o=i.container.firstChild:o=i.before:o=i.tags[i.tags.length-1].nextSibling,i.container.insertBefore(r,o),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(jh(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=qh(r);try{o.insertRule(i,o.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(i));this.ctr++},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}(),it="-ms-",Zn="-moz-",I="-webkit-",Ma="comm",Wr="rule",Yr="decl",Qh="@import",$a="@keyframes",Jh="@layer",Kh=Math.abs,yi=String.fromCharCode,tf=Object.assign;function ef(t,e){return J(t,0)^45?(((e<<2^J(t,0))<<2^J(t,1))<<2^J(t,2))<<2^J(t,3):0}function Ea(t){return t.trim()}function nf(t,e){return(t=e.exec(t))?t[0]:t}function V(t,e,n){return t.replace(e,n)}function lr(t,e){return t.indexOf(e)}function J(t,e){return t.charCodeAt(e)|0}function an(t,e,n){return t.slice(e,n)}function Rt(t){return t.length}function Xr(t){return t.length}function kn(t,e){return e.push(t),t}function rf(t,e){return t.map(e).join("")}var xi=1,Oe=1,Na=0,gt=0,q=0,ze="";function bi(t,e,n,i,r,o,s){return{value:t,root:e,parent:n,type:i,props:r,children:o,line:xi,column:Oe,length:s,return:""}}function Ue(t,e){return tf(bi("",null,null,"",null,null,0),t,{length:-t.length},e)}function of(){return q}function sf(){return q=gt>0?J(ze,--gt):0,Oe--,q===10&&(Oe=1,xi--),q}function xt(){return q=gt<Na?J(ze,gt++):0,Oe++,q===10&&(Oe=1,xi++),q}function Bt(){return J(ze,gt)}function Nn(){return gt}function gn(t,e){return an(ze,t,e)}function ln(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 Da(t){return xi=Oe=1,Na=Rt(ze=t),gt=0,[]}function Oa(t){return ze="",t}function Dn(t){return Ea(gn(gt-1,cr(t===91?t+2:t===40?t+1:t)))}function af(t){for(;(q=Bt())&&q<33;)xt();return ln(t)>2||ln(q)>3?"":" "}function lf(t,e){for(;--e&&xt()&&!(q<48||q>102||q>57&&q<65||q>70&&q<97););return gn(t,Nn()+(e<6&&Bt()==32&&xt()==32))}function cr(t){for(;xt();)switch(q){case t:return gt;case 34:case 39:t!==34&&t!==39&&cr(q);break;case 40:t===41&&cr(t);break;case 92:xt();break}return gt}function cf(t,e){for(;xt()&&t+q!==57;)if(t+q===84&&Bt()===47)break;return"/*"+gn(e,gt-1)+"*"+yi(t===47?t:xt())}function uf(t){for(;!ln(Bt());)xt();return gn(t,gt)}function hf(t){return Oa(On("",null,null,null,[""],t=Da(t),0,[0],t))}function On(t,e,n,i,r,o,s,a,l){for(var c=0,h=0,u=s,f=0,p=0,m=0,g=1,v=1,y=1,x=0,_="",w=r,k=o,b=i,T=_;v;)switch(m=x,x=xt()){case 40:if(m!=108&&J(T,u-1)==58){lr(T+=V(Dn(x),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:T+=Dn(x);break;case 9:case 10:case 13:case 32:T+=af(m);break;case 92:T+=lf(Nn()-1,7);continue;case 47:switch(Bt()){case 42:case 47:kn(ff(cf(xt(),Nn()),e,n),l);break;default:T+="/"}break;case 123*g:a[c++]=Rt(T)*y;case 125*g:case 59:case 0:switch(x){case 0:case 125:v=0;case 59+h:y==-1&&(T=V(T,/\f/g,"")),p>0&&Rt(T)-u&&kn(p>32?Yo(T+";",i,n,u-1):Yo(V(T," ","")+";",i,n,u-2),l);break;case 59:T+=";";default:if(kn(b=Wo(T,e,n,c,h,r,a,_,w=[],k=[],u),o),x===123)if(h===0)On(T,e,b,b,w,o,u,a,k);else switch(f===99&&J(T,3)===110?100:f){case 100:case 108:case 109:case 115:On(t,b,b,i&&kn(Wo(t,b,b,0,0,r,a,_,r,w=[],u),k),r,k,u,a,i?w:k);break;default:On(T,b,b,b,[""],k,0,a,k)}}c=h=p=0,g=y=1,_=T="",u=s;break;case 58:u=1+Rt(T),p=m;default:if(g<1){if(x==123)--g;else if(x==125&&g++==0&&sf()==125)continue}switch(T+=yi(x),x*g){case 38:y=h>0?1:(T+="\f",-1);break;case 44:a[c++]=(Rt(T)-1)*y,y=1;break;case 64:Bt()===45&&(T+=Dn(xt())),f=Bt(),h=u=Rt(_=T+=uf(Nn())),x++;break;case 45:m===45&&Rt(T)==2&&(g=0)}}return o}function Wo(t,e,n,i,r,o,s,a,l,c,h){for(var u=r-1,f=r===0?o:[""],p=Xr(f),m=0,g=0,v=0;m<i;++m)for(var y=0,x=an(t,u+1,u=Kh(g=s[m])),_=t;y<p;++y)(_=Ea(g>0?f[y]+" "+x:V(x,/&\f/g,f[y])))&&(l[v++]=_);return bi(t,e,n,r===0?Wr:a,l,c,h)}function ff(t,e,n){return bi(t,e,n,Ma,yi(of()),an(t,2,-2),0)}function Yo(t,e,n,i){return bi(t,e,n,Yr,an(t,0,i),an(t,i+1,-1),i)}function Ae(t,e){for(var n="",i=Xr(t),r=0;r<i;r++)n+=e(t[r],r,t,e)||"";return n}function df(t,e,n,i){switch(t.type){case Jh:if(t.children.length)break;case Qh:case Yr:return t.return=t.return||t.value;case Ma:return"";case $a:return t.return=t.value+"{"+Ae(t.children,i)+"}";case Wr:t.value=t.props.join(",")}return Rt(n=Ae(t.children,i))?t.return=t.value+"{"+n+"}":""}function pf(t){var e=Xr(t);return function(n,i,r,o){for(var s="",a=0;a<e;a++)s+=t[a](n,i,r,o)||"";return s}}function gf(t){return function(e){e.root||(e=e.return)&&t(e)}}function mf(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var vf=function(e,n,i){for(var r=0,o=0;r=o,o=Bt(),r===38&&o===12&&(n[i]=1),!ln(o);)xt();return gn(e,gt)},_f=function(e,n){var i=-1,r=44;do switch(ln(r)){case 0:r===38&&Bt()===12&&(n[i]=1),e[i]+=vf(gt-1,n,i);break;case 2:e[i]+=Dn(r);break;case 4:if(r===44){e[++i]=Bt()===58?"&\f":"",n[i]=e[i].length;break}default:e[i]+=yi(r)}while(r=xt());return e},yf=function(e,n){return Oa(_f(Da(e),n))},Xo=new WeakMap,xf=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&&!Xo.get(i))&&!r){Xo.set(e,!0);for(var o=[],s=yf(n,o),a=i.props,l=0,c=0;l<s.length;l++)for(var h=0;h<a.length;h++,c++)e.props[c]=o[l]?s[l].replace(/&\f/g,a[h]):a[h]+" "+s[l]}}},bf=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function Ra(t,e){switch(ef(t,e)){case 5103:return I+"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 I+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return I+t+Zn+t+it+t+t;case 6828:case 4268:return I+t+it+t+t;case 6165:return I+t+it+"flex-"+t+t;case 5187:return I+t+V(t,/(\w+).+(:[^]+)/,I+"box-$1$2"+it+"flex-$1$2")+t;case 5443:return I+t+it+"flex-item-"+V(t,/flex-|-self/,"")+t;case 4675:return I+t+it+"flex-line-pack"+V(t,/align-content|flex-|-self/,"")+t;case 5548:return I+t+it+V(t,"shrink","negative")+t;case 5292:return I+t+it+V(t,"basis","preferred-size")+t;case 6060:return I+"box-"+V(t,"-grow","")+I+t+it+V(t,"grow","positive")+t;case 4554:return I+V(t,/([^-])(transform)/g,"$1"+I+"$2")+t;case 6187:return V(V(V(t,/(zoom-|grab)/,I+"$1"),/(image-set)/,I+"$1"),t,"")+t;case 5495:case 3959:return V(t,/(image-set\([^]*)/,I+"$1$`$1");case 4968:return V(V(t,/(.+:)(flex-)?(.*)/,I+"box-pack:$3"+it+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+I+t+t;case 4095:case 3583:case 4068:case 2532:return V(t,/(.+)-inline(.+)/,I+"$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(Rt(t)-1-e>6)switch(J(t,e+1)){case 109:if(J(t,e+4)!==45)break;case 102:return V(t,/(.+:)(.+)-([^]+)/,"$1"+I+"$2-$3$1"+Zn+(J(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~lr(t,"stretch")?Ra(V(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(J(t,e+1)!==115)break;case 6444:switch(J(t,Rt(t)-3-(~lr(t,"!important")&&10))){case 107:return V(t,":",":"+I)+t;case 101:return V(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+I+(J(t,14)===45?"inline-":"")+"box$3$1"+I+"$2$3$1"+it+"$2box$3")+t}break;case 5936:switch(J(t,e+11)){case 114:return I+t+it+V(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return I+t+it+V(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return I+t+it+V(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return I+t+it+t+t}return t}var wf=function(e,n,i,r){if(e.length>-1&&!e.return)switch(e.type){case Yr:e.return=Ra(e.value,e.length);break;case $a:return Ae([Ue(e,{value:V(e.value,"@","@"+I)})],r);case Wr:if(e.length)return rf(e.props,function(o){switch(nf(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ae([Ue(e,{props:[V(o,/:(read-\w+)/,":"+Zn+"$1")]})],r);case"::placeholder":return Ae([Ue(e,{props:[V(o,/:(plac\w+)/,":"+I+"input-$1")]}),Ue(e,{props:[V(o,/:(plac\w+)/,":"+Zn+"$1")]}),Ue(e,{props:[V(o,/:(plac\w+)/,it+"input-$1")]})],r)}return""})}},kf=[wf],Sf=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(g){var v=g.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var r=e.stylisPlugins||kf,o={},s,a=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var v=g.getAttribute("data-emotion").split(" "),y=1;y<v.length;y++)o[v[y]]=!0;a.push(g)});var l,c=[xf,bf];{var h,u=[df,gf(function(g){h.insert(g)})],f=pf(c.concat(r,u)),p=function(v){return Ae(hf(v),f)};l=function(v,y,x,_){h=x,p(v?v+"{"+y.styles+"}":y.styles),_&&(m.inserted[y.name]=!0)}}var m={key:n,sheet:new Zh({key:n,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:l};return m.sheet.hydrate(a),m};function Tf(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 Cf={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},Af=/[A-Z]|^ms/g,Mf=/_EMO_([^_]+?)_([^]*?)_EMO_/g,La=function(e){return e.charCodeAt(1)===45},Go=function(e){return e!=null&&typeof e!="boolean"},Ii=mf(function(t){return La(t)?t:t.replace(Af,"-$&").toLowerCase()}),qo=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(Mf,function(i,r,o){return ie={name:r,styles:o,next:ie},r})}return Cf[e]!==1&&!La(e)&&typeof n=="number"&&n!==0?n+"px":n};function Qn(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 ie={name:r.name,styles:r.styles,next:ie},r.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)ie={name:s.name,styles:s.styles,next:ie},s=s.next;var a=o.styles+";";return a}return $f(t,e,n)}}var l=n;if(e==null)return l;var c=e[l];return c!==void 0?c:l}function $f(t,e,n){var i="";if(Array.isArray(n))for(var r=0;r<n.length;r++)i+=Qn(t,e,n[r])+";";else for(var o in n){var s=n[o];if(typeof s!="object"){var a=s;e!=null&&e[a]!==void 0?i+=o+"{"+e[a]+"}":Go(a)&&(i+=Ii(o)+":"+qo(o,a)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(e==null||e[s[0]]===void 0))for(var l=0;l<s.length;l++)Go(s[l])&&(i+=Ii(o)+":"+qo(o,s[l])+";");else{var c=Qn(t,e,s);switch(o){case"animation":case"animationName":{i+=Ii(o)+":"+c+";";break}default:i+=o+"{"+c+"}"}}}return i}var jo=/label:\s*([^\s;{]+)\s*(;|$)/g,ie;function Vi(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="";ie=void 0;var o=t[0];if(o==null||o.raw===void 0)i=!1,r+=Qn(n,e,o);else{var s=o;r+=s[0]}for(var a=1;a<t.length;a++)if(r+=Qn(n,e,t[a]),i){var l=o;r+=l[a]}jo.lastIndex=0;for(var c="",h;(h=jo.exec(r))!==null;)c+="-"+h[1];var u=Tf(r)+c;return{name:u,styles:r,next:ie}}function Ba(t,e,n){var i="";return n.split(" ").forEach(function(r){t[r]!==void 0?e.push(t[r]+";"):r&&(i+=r+" ")}),i}var Ef=function(e,n,i){var r=e.key+"-"+n.name;e.registered[r]===void 0&&(e.registered[r]=n.styles)},Nf=function(e,n,i){Ef(e,n);var r=e.key+"-"+n.name;if(e.inserted[n.name]===void 0){var o=n;do e.insert(n===o?"."+r:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};function Zo(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function Qo(t,e,n){var i=[],r=Ba(t,i,n);return i.length<2?n:r+e(i)}var Df=function(e){var n=Sf(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=Vi(c,n.registered,void 0);return Nf(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];var u=Vi(c,n.registered),f="animation-"+u.name;return Zo(n,{name:u.name,styles:"@keyframes "+f+"{"+u.styles+"}"}),f},o=function(){for(var l=arguments.length,c=new Array(l),h=0;h<l;h++)c[h]=arguments[h];var u=Vi(c,n.registered);Zo(n,u)},s=function(){for(var l=arguments.length,c=new Array(l),h=0;h<l;h++)c[h]=arguments[h];return Qo(n.registered,i,Of(c))};return{css:i,cx:s,injectGlobal:o,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:Ba.bind(null,n.registered),merge:Qo.bind(null,n.registered,i)}},Of=function t(e){for(var n="",i=0;i<e.length;i++){var r=e[i];if(r!=null){var o=void 0;switch(typeof r){case"boolean":break;case"object":{if(Array.isArray(r))o=t(r);else{o="";for(var s in r)r[s]&&s&&(o&&(o+=" "),o+=s)}break}default:o=r}o&&(n&&(n+=" "),n+=o)}}return n},Fa=Df({key:"css"}),Qt=Fa.injectGlobal,O=Fa.css;function Rf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Hi,Jo;function Lf(){return Jo||(Jo=1,Hi=function(e,n){n||(n=[0,""]),e=String(e);var i=parseFloat(e,10);return n[0]=i,n[1]=e.match(/[\d.\-\+]*\s*(.*)/)[1]||"",n}),Hi}var Ui,Ko;function Bf(){if(Ko)return Ui;Ko=1;var t=Lf();Ui=r;var e=i("in",document.body);function n(o,s){var a=t(getComputedStyle(o).getPropertyValue(s));return a[0]*r(a[1],o)}function i(o,s){var a=document.createElement("div");a.style.height="128"+o,s.appendChild(a);var l=n(a,"height")/128;return s.removeChild(a),l}function r(o,s){if(!o)return null;switch(s=s||document.body,o=(o+""||"px").trim().toLowerCase(),(s===window||s===document)&&(s=document.body),o){case"%":return s.clientHeight/100;case"ch":case"ex":return i(o,s);case"em":return n(s,"font-size");case"rem":return n(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 e;case"cm":return e/2.54;case"mm":return e/25.4;case"pt":return e/72;case"pc":return e/6;case"px":return 1}var a=t(o);if(!isNaN(a[0])&&a[1]){var l=r(a[1],s);return typeof l=="number"?a[0]*l:null}return null}return Ui}Bf();function Pa(){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()}`}function Ff(t,e){const n=t.substr(4,t.length-5);return getComputedStyle(e).getPropertyValue(n)}function Pf(t,e,n=0){const[i,r,o,s]=[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<s||o<a||c<i)}function Gr(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function za(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function mn(){}var cn=.7,Jn=1/cn,Me="\\s*([+-]?\\d+)\\s*",un="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Ft="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",zf=/^#([0-9a-f]{3,8})$/,If=new RegExp(`^rgb\\(${Me},${Me},${Me}\\)$`),Vf=new RegExp(`^rgb\\(${Ft},${Ft},${Ft}\\)$`),Hf=new RegExp(`^rgba\\(${Me},${Me},${Me},${un}\\)$`),Uf=new RegExp(`^rgba\\(${Ft},${Ft},${Ft},${un}\\)$`),Wf=new RegExp(`^hsl\\(${un},${Ft},${Ft}\\)$`),Yf=new RegExp(`^hsla\\(${un},${Ft},${Ft},${un}\\)$`),ts={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};Gr(mn,ye,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:es,formatHex:es,formatHex8:Xf,formatHsl:Gf,formatRgb:ns,toString:ns});function es(){return this.rgb().formatHex()}function Xf(){return this.rgb().formatHex8()}function Gf(){return Ia(this).formatHsl()}function ns(){return this.rgb().formatRgb()}function ye(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=zf.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?is(e):n===3?new ft(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?Sn(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?Sn(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=If.exec(t))?new ft(e[1],e[2],e[3],1):(e=Vf.exec(t))?new ft(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Hf.exec(t))?Sn(e[1],e[2],e[3],e[4]):(e=Uf.exec(t))?Sn(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Wf.exec(t))?ss(e[1],e[2]/100,e[3]/100,1):(e=Yf.exec(t))?ss(e[1],e[2]/100,e[3]/100,e[4]):ts.hasOwnProperty(t)?is(ts[t]):t==="transparent"?new ft(NaN,NaN,NaN,0):null}function is(t){return new ft(t>>16&255,t>>8&255,t&255,1)}function Sn(t,e,n,i){return i<=0&&(t=e=n=NaN),new ft(t,e,n,i)}function qf(t){return t instanceof mn||(t=ye(t)),t?(t=t.rgb(),new ft(t.r,t.g,t.b,t.opacity)):new ft}function ur(t,e,n,i){return arguments.length===1?qf(t):new ft(t,e,n,i??1)}function ft(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}Gr(ft,ur,za(mn,{brighter(t){return t=t==null?Jn:Math.pow(Jn,t),new ft(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?cn:Math.pow(cn,t),new ft(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new ft(ge(this.r),ge(this.g),ge(this.b),Kn(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:rs,formatHex:rs,formatHex8:jf,formatRgb:os,toString:os}));function rs(){return`#${he(this.r)}${he(this.g)}${he(this.b)}`}function jf(){return`#${he(this.r)}${he(this.g)}${he(this.b)}${he((isNaN(this.opacity)?1:this.opacity)*255)}`}function os(){const t=Kn(this.opacity);return`${t===1?"rgb(":"rgba("}${ge(this.r)}, ${ge(this.g)}, ${ge(this.b)}${t===1?")":`, ${t})`}`}function Kn(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function ge(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function he(t){return t=ge(t),(t<16?"0":"")+t.toString(16)}function ss(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new At(t,e,n,i)}function Ia(t){if(t instanceof At)return new At(t.h,t.s,t.l,t.opacity);if(t instanceof mn||(t=ye(t)),!t)return new At;if(t instanceof At)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),o=Math.max(e,n,i),s=NaN,a=o-r,l=(o+r)/2;return a?(e===o?s=(n-i)/a+(n<i)*6:n===o?s=(i-e)/a+2:s=(e-n)/a+4,a/=l<.5?o+r:2-o-r,s*=60):a=l>0&&l<1?0:s,new At(s,a,l,t.opacity)}function qr(t,e,n,i){return arguments.length===1?Ia(t):new At(t,e,n,i??1)}function At(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}Gr(At,qr,za(mn,{brighter(t){return t=t==null?Jn:Math.pow(Jn,t),new At(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?cn:Math.pow(cn,t),new At(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 ft(Wi(t>=240?t-240:t+120,r,i),Wi(t,r,i),Wi(t<120?t+240:t-120,r,i),this.opacity)},clamp(){return new At(as(this.h),Tn(this.s),Tn(this.l),Kn(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=Kn(this.opacity);return`${t===1?"hsl(":"hsla("}${as(this.h)}, ${Tn(this.s)*100}%, ${Tn(this.l)*100}%${t===1?")":`, ${t})`}`}}));function as(t){return t=(t||0)%360,t<0?t+360:t}function Tn(t){return Math.max(0,Math.min(1,t||0))}function Wi(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 qe=(globalThis==null?void 0:globalThis.UNOVIS_COLORS)||["#4D8CFD","#FF6B7E","#F4B83E","#A6CC74","#00C19A","#6859BE"],Zf=(globalThis==null?void 0:globalThis.UNOVIS_COLORS_DARK)||["#4D8CFD","#FF6B7E","#FFC16D","#A6CC74","#00C19A","#7887E0"],ee=t=>`--vis-${yt(t)?`color${t%qe.length}`:t}`;function Qf(t,e=.4){const n=qr(t);return n.l=n.l*(1+e),n.formatHex()}function Jf(t,e=.4,n=.6){const i=qr(t);return i.s=i.s*(1-n),i.l=i.l*(1-e),i.formatHex()}const hn=10,hr=[{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"/>'}],fr=[{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 ne(t){return`vis-${`pattern-${t.svg?"fill":"marker"}`}-${t.id}`}const Kf=t=>`<mask id="${ne(t)}">
|
|
2
|
-
<pattern id="${t.id}" viewBox="0 0 10 10" width="${hn}" height="${hn}" 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>`,td=(t,e)=>`<marker id="${ne(t)}"
|
|
8
|
-
fill="var(${ee(e)})"
|
|
9
|
-
markerUnits="userSpaceOnUse"
|
|
10
|
-
refX="5"
|
|
11
|
-
refY="5"
|
|
12
|
-
markerWidth="${hn}"
|
|
13
|
-
markerHeight="${hn}">
|
|
14
|
-
${t.marker}
|
|
15
|
-
</marker>`;function ed(){const t=hr.map(Kf).concat(fr.map(td)).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 Va=(globalThis==null?void 0:globalThis.UNOVIS_FONT_W2H_RATIO_DEFAULT)||.5,Ha=(globalThis==null?void 0:globalThis.UNOVIS_TEXT_SEPARATOR_DEFAULT)||[" ","-",".",","],Ua=(globalThis==null?void 0:globalThis.UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT)||"-",ls=(globalThis==null?void 0:globalThis.UNOVIS_TEXT_DEFAULT)||{text:"",fontSize:12,fontFamily:"var(--vis-font-family)",lineHeight:1.25,marginTop:0,marginBottom:0};Qt`
|
|
16
|
-
:root {
|
|
17
|
-
label: vis-root-styles;
|
|
18
|
-
--vis-font-family: Inter, Arial, "Helvetica Neue", Helvetica, sans-serif;
|
|
19
|
-
--vis-font-wh-ratio: ${Va};
|
|
20
|
-
--vis-color-main: var(${ee(0)});
|
|
21
|
-
--vis-color-main-light: ${Qf(qe[0])};
|
|
22
|
-
--vis-color-main-dark: ${Jf(qe[0])};
|
|
23
|
-
--vis-color-grey: #2a2a2a;
|
|
24
|
-
${qe.map((t,e)=>`${ee(e)}: ${t};`)}
|
|
25
|
-
${Zf.map((t,e)=>`--vis-dark-color${e}: ${t};`)}
|
|
26
|
-
${hr.map((t,e)=>`
|
|
27
|
-
--${ne(t)}: url(#${ne(t)});
|
|
28
|
-
--vis-pattern-fill${e}: var(--${ne(t)});
|
|
29
|
-
`)}
|
|
30
|
-
${fr.map((t,e)=>{var n;return`
|
|
31
|
-
--${ne(t)}: url(#${ne(t)});
|
|
32
|
-
--vis-pattern-marker${e}: var(--${ne(t)});
|
|
33
|
-
--vis-pattern-dasharray${e}: ${(n=t.dashArray)===null||n===void 0?void 0:n.join(" ")};
|
|
34
|
-
`})}
|
|
35
|
-
|
|
36
|
-
body.theme-dark {
|
|
37
|
-
${qe.map((t,e)=>`${ee(e)}: var(--vis-dark-color${e});`)}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
body.theme-patterns {
|
|
41
|
-
${hr.map((t,e)=>`path[style*="fill: var(${ee(e)})"] {
|
|
42
|
-
mask: var(--vis-pattern-fill${e});
|
|
43
|
-
}`)}
|
|
44
|
-
${fr.map((t,e)=>`
|
|
45
|
-
path[stroke="var(${ee(e)})"]:not([style*="fill"]),
|
|
46
|
-
path[style*="stroke: var(${ee(e)})"]:not([style*="fill"]) {
|
|
47
|
-
marker: var(--vis-pattern-marker${e});
|
|
48
|
-
stroke-dasharray: var(--vis-pattern-dasharray${e});
|
|
49
|
-
}
|
|
50
|
-
`)}
|
|
51
|
-
}
|
|
52
|
-
`;function nd(t=window==null?void 0:window.document.body){return t?+Ff("var(--vis-font-wh-ratio)",t):Va}var id={value:()=>{}};function Wa(){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 Rn(n)}function Rn(t){this._=t}function rd(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}})}Rn.prototype=Wa.prototype={constructor:Rn,on:function(t,e){var n=this._,i=rd(t+"",n),r,o=-1,s=i.length;if(arguments.length<2){for(;++o<s;)if((r=(t=i[o]).type)&&(r=od(n[r],t.name)))return r;return}if(e!=null&&typeof e!="function")throw new Error("invalid callback: "+e);for(;++o<s;)if(r=(t=i[o]).type)n[r]=cs(n[r],t.name,e);else if(e==null)for(r in n)n[r]=cs(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 Rn(t)},call:function(t,e){if((r=arguments.length-2)>0)for(var n=new Array(r),i=0,r,o;i<r;++i)n[i]=arguments[i+2];if(!this._.hasOwnProperty(t))throw new Error("unknown type: "+t);for(o=this._[t],i=0,r=o.length;i<r;++i)o[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,o=i.length;r<o;++r)i[r].value.apply(e,n)}};function od(t,e){for(var n=0,i=t.length,r;n<i;++n)if((r=t[n]).name===e)return r.value}function cs(t,e,n){for(var i=0,r=t.length;i<r;++i)if(t[i].name===e){t[i]=id,t=t.slice(0,i).concat(t.slice(i+1));break}return n!=null&&t.push({name:e,value:n}),t}var Re=0,je=0,We=0,Ya=1e3,ti,Ze,ei=0,xe=0,wi=0,fn=typeof performance=="object"&&performance.now?performance:Date,Xa=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function jr(){return xe||(Xa(sd),xe=fn.now()+wi)}function sd(){xe=0}function ni(){this._call=this._time=this._next=null}ni.prototype=Ga.prototype={constructor:ni,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?jr():+n)+(e==null?0:+e),!this._next&&Ze!==this&&(Ze?Ze._next=this:ti=this,Ze=this),this._call=t,this._time=n,dr()},stop:function(){this._call&&(this._call=null,this._time=1/0,dr())}};function Ga(t,e,n){var i=new ni;return i.restart(t,e,n),i}function ad(){jr(),++Re;for(var t=ti,e;t;)(e=xe-t._time)>=0&&t._call.call(void 0,e),t=t._next;--Re}function us(){xe=(ei=fn.now())+wi,Re=je=0;try{ad()}finally{Re=0,cd(),xe=0}}function ld(){var t=fn.now(),e=t-ei;e>Ya&&(wi-=e,ei=t)}function cd(){for(var t,e=ti,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:ti=n);Ze=t,dr(i)}function dr(t){if(!Re){je&&(je=clearTimeout(je));var e=t-xe;e>24?(t<1/0&&(je=setTimeout(us,t-fn.now()-wi)),We&&(We=clearInterval(We))):(We||(ei=fn.now(),We=setInterval(ld,Ya)),Re=1,Xa(us))}}function hs(t,e,n){var i=new ni;return e=e==null?0:+e,i.restart(r=>{i.stop(),t(r+e)},e,n),i}var ud=Wa("start","end","cancel","interrupt"),hd=[],qa=0,fs=1,pr=2,Ln=3,ds=4,gr=5,Bn=6;function ki(t,e,n,i,r,o){var s=t.__transition;if(!s)t.__transition={};else if(n in s)return;fd(t,n,{name:e,index:i,group:r,on:ud,tween:hd,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:qa})}function Zr(t,e){var n=$t(t,e);if(n.state>qa)throw new Error("too late; already scheduled");return n}function Pt(t,e){var n=$t(t,e);if(n.state>Ln)throw new Error("too late; already running");return n}function $t(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function fd(t,e,n){var i=t.__transition,r;i[e]=n,n.timer=Ga(o,0,n.time);function o(c){n.state=fs,n.timer.restart(s,n.delay,n.time),n.delay<=c&&s(c-n.delay)}function s(c){var h,u,f,p;if(n.state!==fs)return l();for(h in i)if(p=i[h],p.name===n.name){if(p.state===Ln)return hs(s);p.state===ds?(p.state=Bn,p.timer.stop(),p.on.call("interrupt",t,t.__data__,p.index,p.group),delete i[h]):+h<e&&(p.state=Bn,p.timer.stop(),p.on.call("cancel",t,t.__data__,p.index,p.group),delete i[h])}if(hs(function(){n.state===Ln&&(n.state=ds,n.timer.restart(a,n.delay,n.time),a(c))}),n.state=pr,n.on.call("start",t,t.__data__,n.index,n.group),n.state===pr){for(n.state=Ln,r=new Array(f=n.tween.length),h=0,u=-1;h<f;++h)(p=n.tween[h].value.call(t,t.__data__,n.index,n.group))&&(r[++u]=p);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=gr,1),u=-1,f=r.length;++u<f;)r[u].call(t,h);n.state===gr&&(n.on.call("end",t,t.__data__,n.index,n.group),l())}function l(){n.state=Bn,n.timer.stop(),delete i[e];for(var c in i)return;delete t.__transition}}function Qr(t,e){var n=t.__transition,i,r,o=!0,s;if(n){e=e==null?null:e+"";for(s in n){if((i=n[s]).name!==e){o=!1;continue}r=i.state>pr&&i.state<gr,i.state=Bn,i.timer.stop(),i.on.call(r?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete n[s]}o&&delete t.__transition}}function dd(t){return this.each(function(){Qr(this,t)})}const Jr=t=>()=>t;function pd(t,e){return function(n){return t+n*e}}function gd(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 md(t){return(t=+t)==1?ja:function(e,n){return n-e?gd(e,n,t):Jr(isNaN(e)?n:e)}}function ja(t,e){var n=e-t;return n?pd(t,n):Jr(isNaN(t)?e:t)}const ii=function t(e){var n=md(e);function i(r,o){var s=n((r=ur(r)).r,(o=ur(o)).r),a=n(r.g,o.g),l=n(r.b,o.b),c=ja(r.opacity,o.opacity);return function(h){return r.r=s(h),r.g=a(h),r.b=l(h),r.opacity=c(h),r+""}}return i.gamma=t,i}(1);function vd(t,e){e||(e=[]);var n=t?Math.min(e.length,t.length):0,i=e.slice(),r;return function(o){for(r=0;r<n;++r)i[r]=t[r]*(1-o)+e[r]*o;return i}}function _d(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function yd(t,e){var n=e?e.length:0,i=t?Math.min(n,t.length):0,r=new Array(i),o=new Array(n),s;for(s=0;s<i;++s)r[s]=be(t[s],e[s]);for(;s<n;++s)o[s]=e[s];return function(a){for(s=0;s<i;++s)o[s]=r[s](a);return o}}function xd(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function Tt(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function bd(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]=be(t[r],e[r]):i[r]=e[r];return function(o){for(r in n)i[r]=n[r](o);return i}}var mr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Yi=new RegExp(mr.source,"g");function wd(t){return function(){return t}}function kd(t){return function(e){return t(e)+""}}function Za(t,e){var n=mr.lastIndex=Yi.lastIndex=0,i,r,o,s=-1,a=[],l=[];for(t=t+"",e=e+"";(i=mr.exec(t))&&(r=Yi.exec(e));)(o=r.index)>n&&(o=e.slice(n,o),a[s]?a[s]+=o:a[++s]=o),(i=i[0])===(r=r[0])?a[s]?a[s]+=r:a[++s]=r:(a[++s]=null,l.push({i:s,x:Tt(i,r)})),n=Yi.lastIndex;return n<e.length&&(o=e.slice(n),a[s]?a[s]+=o:a[++s]=o),a.length<2?l[0]?kd(l[0].x):wd(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 be(t,e){var n=typeof e,i;return e==null||n==="boolean"?Jr(e):(n==="number"?Tt:n==="string"?(i=ye(e))?(e=i,ii):Za:e instanceof ye?ii:e instanceof Date?xd:_d(e)?vd:Array.isArray(e)?yd:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?bd:Tt)(t,e)}function Kr(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var ps=180/Math.PI,vr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Qa(t,e,n,i,r,o){var s,a,l;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(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,s=-s),{translateX:r,translateY:o,rotate:Math.atan2(e,t)*ps,skewX:Math.atan(l)*ps,scaleX:s,scaleY:a}}var Cn;function Sd(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?vr:Qa(e.a,e.b,e.c,e.d,e.e,e.f)}function Td(t){return t==null||(Cn||(Cn=document.createElementNS("http://www.w3.org/2000/svg","g")),Cn.setAttribute("transform",t),!(t=Cn.transform.baseVal.consolidate()))?vr:(t=t.matrix,Qa(t.a,t.b,t.c,t.d,t.e,t.f))}function Ja(t,e,n,i){function r(c){return c.length?c.pop()+" ":""}function o(c,h,u,f,p,m){if(c!==u||h!==f){var g=p.push("translate(",null,e,null,n);m.push({i:g-4,x:Tt(c,u)},{i:g-2,x:Tt(h,f)})}else(u||f)&&p.push("translate("+u+e+f+n)}function s(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:Tt(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:Tt(c,h)}):h&&u.push(r(u)+"skewX("+h+i)}function l(c,h,u,f,p,m){if(c!==u||h!==f){var g=p.push(r(p)+"scale(",null,",",null,")");m.push({i:g-4,x:Tt(c,u)},{i:g-2,x:Tt(h,f)})}else(u!==1||f!==1)&&p.push(r(p)+"scale("+u+","+f+")")}return function(c,h){var u=[],f=[];return c=t(c),h=t(h),o(c.translateX,c.translateY,h.translateX,h.translateY,u,f),s(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(p){for(var m=-1,g=f.length,v;++m<g;)u[(v=f[m]).i]=v.x(p);return u.join("")}}}var Cd=Ja(Sd,"px, ","px)","deg)"),Ad=Ja(Td,", ",")",")");function Md(t,e){e===void 0&&(e=t,t=be);for(var n=0,i=e.length-1,r=e[0],o=new Array(i<0?0:i);n<i;)o[n]=t(r,r=e[++n]);return function(s){var a=Math.max(0,Math.min(i-1,Math.floor(s*=i)));return o[a](s-a)}}function $d(t,e){var n,i;return function(){var r=Pt(this,t),o=r.tween;if(o!==n){i=n=o;for(var s=0,a=i.length;s<a;++s)if(i[s].name===e){i=i.slice(),i.splice(s,1);break}}r.tween=i}}function Ed(t,e,n){var i,r;if(typeof n!="function")throw new Error;return function(){var o=Pt(this,t),s=o.tween;if(s!==i){r=(i=s).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)}o.tween=r}}function Nd(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i=$t(this.node(),n).tween,r=0,o=i.length,s;r<o;++r)if((s=i[r]).name===t)return s.value;return null}return this.each((e==null?$d:Ed)(n,t,e))}function to(t,e,n){var i=t._id;return t.each(function(){var r=Pt(this,i);(r.value||(r.value={}))[e]=n.apply(this,arguments)}),function(r){return $t(r,i).value[e]}}function Ka(t,e){var n;return(typeof e=="number"?Tt:e instanceof ye?ii:(n=ye(e))?(e=n,ii):Za)(t,e)}function Dd(t){return function(){this.removeAttribute(t)}}function Od(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Rd(t,e,n){var i,r=n+"",o;return function(){var s=this.getAttribute(t);return s===r?null:s===i?o:o=e(i=s,n)}}function Ld(t,e,n){var i,r=n+"",o;return function(){var s=this.getAttributeNS(t.space,t.local);return s===r?null:s===i?o:o=e(i=s,n)}}function Bd(t,e,n){var i,r,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttribute(t):(s=this.getAttribute(t),l=a+"",s===l?null:s===i&&l===r?o:(r=l,o=e(i=s,a)))}}function Fd(t,e,n){var i,r,o;return function(){var s,a=n(this),l;return a==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),l=a+"",s===l?null:s===i&&l===r?o:(r=l,o=e(i=s,a)))}}function Pd(t,e){var n=mi(t),i=n==="transform"?Ad:Ka;return this.attrTween(t,typeof e=="function"?(n.local?Fd:Bd)(n,i,to(this,"attr."+t,e)):e==null?(n.local?Od:Dd)(n):(n.local?Ld:Rd)(n,i,e))}function zd(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function Id(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function Vd(t,e){var n,i;function r(){var o=e.apply(this,arguments);return o!==i&&(n=(i=o)&&Id(t,o)),n}return r._value=e,r}function Hd(t,e){var n,i;function r(){var o=e.apply(this,arguments);return o!==i&&(n=(i=o)&&zd(t,o)),n}return r._value=e,r}function Ud(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=mi(t);return this.tween(n,(i.local?Vd:Hd)(i,e))}function Wd(t,e){return function(){Zr(this,t).delay=+e.apply(this,arguments)}}function Yd(t,e){return e=+e,function(){Zr(this,t).delay=e}}function Xd(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Wd:Yd)(e,t)):$t(this.node(),e).delay}function Gd(t,e){return function(){Pt(this,t).duration=+e.apply(this,arguments)}}function qd(t,e){return e=+e,function(){Pt(this,t).duration=e}}function jd(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?Gd:qd)(e,t)):$t(this.node(),e).duration}function Zd(t,e){if(typeof e!="function")throw new Error;return function(){Pt(this,t).ease=e}}function Qd(t){var e=this._id;return arguments.length?this.each(Zd(e,t)):$t(this.node(),e).ease}function Jd(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;Pt(this,t).ease=n}}function Kd(t){if(typeof t!="function")throw new Error;return this.each(Jd(this._id,t))}function tp(t){typeof t!="function"&&(t=aa(t));for(var e=this._groups,n=e.length,i=new Array(n),r=0;r<n;++r)for(var o=e[r],s=o.length,a=i[r]=[],l,c=0;c<s;++c)(l=o[c])&&t.call(l,l.__data__,c,o)&&a.push(l);return new Gt(i,this._parents,this._name,this._id)}function ep(t){if(t._id!==this._id)throw new Error;for(var e=this._groups,n=t._groups,i=e.length,r=n.length,o=Math.min(i,r),s=new Array(i),a=0;a<o;++a)for(var l=e[a],c=n[a],h=l.length,u=s[a]=new Array(h),f,p=0;p<h;++p)(f=l[p]||c[p])&&(u[p]=f);for(;a<i;++a)s[a]=e[a];return new Gt(s,this._parents,this._name,this._id)}function np(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 ip(t,e,n){var i,r,o=np(e)?Zr:Pt;return function(){var s=o(this,t),a=s.on;a!==i&&(r=(i=a).copy()).on(e,n),s.on=r}}function rp(t,e){var n=this._id;return arguments.length<2?$t(this.node(),n).on.on(t):this.each(ip(n,t,e))}function op(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function sp(){return this.on("end.remove",op(this._id))}function ap(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Pr(t));for(var i=this._groups,r=i.length,o=new Array(r),s=0;s<r;++s)for(var a=i[s],l=a.length,c=o[s]=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,ki(c[f],e,n,f,c,$t(h,n)));return new Gt(o,this._parents,e,n)}function lp(t){var e=this._name,n=this._id;typeof t!="function"&&(t=sa(t));for(var i=this._groups,r=i.length,o=[],s=[],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),p,m=$t(h,n),g=0,v=f.length;g<v;++g)(p=f[g])&&ki(p,e,n,g,f,m);o.push(f),s.push(h)}return new Gt(o,s,e,n)}var cp=pn.prototype.constructor;function up(){return new cp(this._groups,this._parents)}function hp(t,e){var n,i,r;return function(){var o=Ee(this,t),s=(this.style.removeProperty(t),Ee(this,t));return o===s?null:o===n&&s===i?r:r=e(n=o,i=s)}}function tl(t){return function(){this.style.removeProperty(t)}}function fp(t,e,n){var i,r=n+"",o;return function(){var s=Ee(this,t);return s===r?null:s===i?o:o=e(i=s,n)}}function dp(t,e,n){var i,r,o;return function(){var s=Ee(this,t),a=n(this),l=a+"";return a==null&&(l=a=(this.style.removeProperty(t),Ee(this,t))),s===l?null:s===i&&l===r?o:(r=l,o=e(i=s,a))}}function pp(t,e){var n,i,r,o="style."+e,s="end."+o,a;return function(){var l=Pt(this,t),c=l.on,h=l.value[o]==null?a||(a=tl(e)):void 0;(c!==n||r!==h)&&(i=(n=c).copy()).on(s,r=h),l.on=i}}function gp(t,e,n){var i=(t+="")=="transform"?Cd:Ka;return e==null?this.styleTween(t,hp(t,i)).on("end.style."+t,tl(t)):typeof e=="function"?this.styleTween(t,dp(t,i,to(this,"style."+t,e))).each(pp(this._id,t)):this.styleTween(t,fp(t,i,e),n).on("end.style."+t,null)}function mp(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}function vp(t,e,n){var i,r;function o(){var s=e.apply(this,arguments);return s!==r&&(i=(r=s)&&mp(t,s,n)),i}return o._value=e,o}function _p(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,vp(t,e,n??""))}function yp(t){return function(){this.textContent=t}}function xp(t){return function(){var e=t(this);this.textContent=e??""}}function bp(t){return this.tween("text",typeof t=="function"?xp(to(this,"text",t)):yp(t==null?"":t+""))}function wp(t){return function(e){this.textContent=t.call(this,e)}}function kp(t){var e,n;function i(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&wp(r)),e}return i._value=t,i}function Sp(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,kp(t))}function Tp(){for(var t=this._name,e=this._id,n=el(),i=this._groups,r=i.length,o=0;o<r;++o)for(var s=i[o],a=s.length,l,c=0;c<a;++c)if(l=s[c]){var h=$t(l,e);ki(l,t,n,c,s,{time:h.time+h.delay+h.duration,delay:0,duration:h.duration,ease:h.ease})}return new Gt(i,this._parents,t,n)}function Cp(){var t,e,n=this,i=n._id,r=n.size();return new Promise(function(o,s){var a={value:s},l={value:function(){--r===0&&o()}};n.each(function(){var c=Pt(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&&o()})}var Ap=0;function Gt(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function el(){return++Ap}var Vt=pn.prototype;Gt.prototype={constructor:Gt,select:ap,selectAll:lp,selectChild:Vt.selectChild,selectChildren:Vt.selectChildren,filter:tp,merge:ep,selection:up,transition:Tp,call:Vt.call,nodes:Vt.nodes,node:Vt.node,size:Vt.size,empty:Vt.empty,each:Vt.each,on:rp,attr:Pd,attrTween:Ud,style:gp,styleTween:_p,text:bp,textTween:Sp,remove:sp,tween:Nd,delay:Xd,duration:jd,ease:Qd,easeVarying:Kd,end:Cp,[Symbol.iterator]:Vt[Symbol.iterator]};const gs=t=>+t;function Mp(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var $p={time:null,delay:0,duration:250,ease:Mp};function Ep(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 Np(t){var e,n;t instanceof Gt?(e=t._id,t=t._name):(e=el(),(n=$p).time=jr(),t=t==null?null:t+"");for(var i=this._groups,r=i.length,o=0;o<r;++o)for(var s=i[o],a=s.length,l,c=0;c<a;++c)(l=s[c])&&ki(l,t,e,c,s,n||Ep(l,e));return new Gt(i,this._parents,t,e)}pn.prototype.interrupt=dd;pn.prototype.transition=Np;function G(t,e,n){if(t.nodes().forEach(i=>Qr(i)),e){const i=t.transition().duration(e);return n&&i.ease(n),i}else return t}const Dp=Object.assign(Object.assign({},Ur),{tooltip:void 0,annotations:void 0});class Op extends De{constructor(e,n,i){var r;super(e),this._defaultConfig=Dp,this.config=this._defaultConfig,n&&(this.updateContainer(n,!0),this.component=n.component),i&&this.setData(i,!0),!((r=this.component)===null||r===void 0)&&r.datamodel.data&&this.render()}setData(e,n){var i;const{config:r}=this;this.component&&this.component.setData(e),n||this.render(),(i=r.tooltip)===null||i===void 0||i.hide()}updateContainer(e,n){super.updateContainer(e),this._removeAllChildren(),this.component=e.component,e.sizing&&(this.component.sizing=e.sizing),this.element.appendChild(this.component.element);const i=e.tooltip;i&&(i.hasContainer()||i.setContainer(this._container),i.setComponents([this.component]));const r=e.annotations;r&&this.element.appendChild(r.element),this.element.appendChild(this._svgDefs.node()),this.element.appendChild(this._svgDefsExternal.node()),n||this.render()}updateComponent(e,n){this.component.setConfig(e),n||this.render()}update(e,n,i){e&&this.updateContainer(e,!0),n&&this.updateComponent(n,!0),i&&this.setData(i,!0),this.render()}getFitWidthScale(){const{config:e,component:n}=this,i=n;if(!i.getWidth)return 1;const r=i.getWidth()+e.margin.left+e.margin.right;return this.width/r}_preRender(){var e;super._preRender(),this.component.setSize(this.width,this.height,this.containerWidth,this.containerHeight),(e=this.config.annotations)===null||e===void 0||e.setSize(this.width,this.height,this.containerWidth,this.containerHeight)}_render(e){var n;const{config:i,component:r}=this;super._render(e),r.g.attr("transform",`translate(${i.margin.left},${i.margin.top})`),r.render(e),(n=i.annotations)===null||n===void 0||n.render(e),i.tooltip&&i.tooltip.update()}render(e=this.config.duration){const{config:n,component:i}=this;if(n.sizing===Yt.Extend||n.sizing===Yt.FitWidth){const r=n.sizing===Yt.FitWidth,o=i,s=o.getWidth()+n.margin.left+n.margin.right,a=o.getHeight()+n.margin.top+n.margin.bottom,l=r?this.getFitWidthScale():1,c=this.svg.attr("width"),h=this.svg.attr("height"),u=s*l,f=a*l,p=c||h;G(this.svg,p?e:0).attr("width",u).attr("height",f).attr("viewBox",`0 0 ${s} ${r?f:a}`).attr("preserveAspectRatio","xMinYMin")}else this.svg.attr("width",this.config.width||this.containerWidth).attr("height",this.config.height||this.containerHeight);this._resizeObserver||this._setUpResizeObserver(),cancelAnimationFrame(this._renderAnimationFrameId),this._renderAnimationFrameId=requestAnimationFrame(()=>{this._preRender(),this._render(e)})}_onResize(){var e;const{config:n}=this;super._onResize(),(e=n.tooltip)===null||e===void 0||e.hide()}destroy(){var e,n;const{component:i,config:r}=this;super.destroy(),i==null||i.destroy(),(e=r.tooltip)===null||e===void 0||e.destroy(),(n=r.annotations)===null||n===void 0||n.destroy()}}class eo{constructor(e){this.data=e}get data(){return this._data}set data(e){this._data=e}}var H;(function(t){t.X="x",t.Y="y"})(H||(H={}));function Et(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function nl(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 ms=Symbol("implicit");function no(){var t=new Do,e=[],n=[],i=ms;function r(o){let s=t.get(o);if(s===void 0){if(i!==ms)return i;t.set(o,s=e.push(o)-1)}return n[s%n.length]}return r.domain=function(o){if(!arguments.length)return e.slice();e=[],t=new Do;for(const s of o)t.has(s)||t.set(s,e.push(s)-1);return r},r.range=function(o){return arguments.length?(n=Array.from(o),r):n.slice()},r.unknown=function(o){return arguments.length?(i=o,r):i},r.copy=function(){return no(e,n).unknown(i)},Et.apply(r,arguments),r}function Si(){var t=no().unknown(void 0),e=t.domain,n=t.range,i=0,r=1,o,s,a=!1,l=0,c=0,h=.5;delete t.unknown;function u(){var f=e().length,p=r<i,m=p?r:i,g=p?i:r;o=(g-m)/Math.max(1,f-l+c*2),a&&(o=Math.floor(o)),m+=(g-m-o*(f-l))*h,s=o*(1-l),a&&(m=Math.round(m),s=Math.round(s));var v=_a(f).map(function(y){return m+o*y});return n(p?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 s},t.step=function(){return o},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 Si(e(),[i,r]).round(a).paddingInner(l).paddingOuter(c).align(h)},Et.apply(u(),arguments)}function il(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return il(e())},t}function Rp(){return il(Si.apply(null,arguments).paddingInner(1))}function Lp(t){return function(){return t}}function _r(t){return+t}var vs=[0,1];function dt(t){return t}function yr(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Lp(isNaN(e)?NaN:.5)}function Bp(t,e){var n;return t>e&&(n=t,t=e,e=n),function(i){return Math.max(t,Math.min(e,i))}}function Fp(t,e,n){var i=t[0],r=t[1],o=e[0],s=e[1];return r<i?(i=yr(r,i),o=n(s,o)):(i=yr(i,r),o=n(o,s)),function(a){return o(i(a))}}function Pp(t,e,n){var i=Math.min(t.length,e.length)-1,r=new Array(i),o=new Array(i),s=-1;for(t[i]<t[0]&&(t=t.slice().reverse(),e=e.slice().reverse());++s<i;)r[s]=yr(t[s],t[s+1]),o[s]=n(e[s],e[s+1]);return function(a){var l=_i(t,a,1,i)-1;return o[l](r[l](a))}}function vn(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function Ti(){var t=vs,e=vs,n=be,i,r,o,s=dt,a,l,c;function h(){var f=Math.min(t.length,e.length);return s!==dt&&(s=Bp(t[0],t[f-1])),a=f>2?Pp:Fp,l=c=null,u}function u(f){return f==null||isNaN(f=+f)?o:(l||(l=a(t.map(i),e,n)))(i(s(f)))}return u.invert=function(f){return s(r((c||(c=a(e,t.map(i),Tt)))(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=Kr,h()},u.clamp=function(f){return arguments.length?(s=f?!0:dt,h()):s!==dt},u.interpolate=function(f){return arguments.length?(n=f,h()):n},u.unknown=function(f){return arguments.length?(o=f,u):o},function(f,p){return i=f,r=p,h()}}function rl(){return Ti()(dt,dt)}function zp(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function ri(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,i=t.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function Le(t){return t=ri(Math.abs(t)),t?t[1]:NaN}function Ip(t,e){return function(n,i){for(var r=n.length,o=[],s=0,a=t[0],l=0;r>0&&a>0&&(l+a+1>i&&(a=Math.max(1,i-l)),o.push(n.substring(r-=a,r+a)),!((l+=a+1)>i));)a=t[s=(s+1)%t.length];return o.reverse().join(e)}}function Vp(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var Hp=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function dn(t){if(!(e=Hp.exec(t)))throw new Error("invalid format: "+t);var e;return new io({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]})}dn.prototype=io.prototype;function io(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+""}io.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 Up(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 ol;function Wp(t,e){var n=ri(t,e);if(!n)return t+"";var i=n[0],r=n[1],o=r-(ol=Math.max(-8,Math.min(8,Math.floor(r/3)))*3)+1,s=i.length;return o===s?i:o>s?i+new Array(o-s+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+ri(t,Math.max(0,e+o-1))[0]}function _s(t,e){var n=ri(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 ys={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:zp,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)=>_s(t*100,e),r:_s,s:Wp,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function xs(t){return t}var bs=Array.prototype.map,ws=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Yp(t){var e=t.grouping===void 0||t.thousands===void 0?xs:Ip(bs.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+"",o=t.numerals===void 0?xs:Vp(bs.call(t.numerals,String)),s=t.percent===void 0?"%":t.percent+"",a=t.minus===void 0?"−":t.minus+"",l=t.nan===void 0?"NaN":t.nan+"";function c(u){u=dn(u);var f=u.fill,p=u.align,m=u.sign,g=u.symbol,v=u.zero,y=u.width,x=u.comma,_=u.precision,w=u.trim,k=u.type;k==="n"?(x=!0,k="g"):ys[k]||(_===void 0&&(_=12),w=!0,k="g"),(v||f==="0"&&p==="=")&&(v=!0,f="0",p="=");var b=g==="$"?n:g==="#"&&/[boxX]/.test(k)?"0"+k.toLowerCase():"",T=g==="$"?i:/[%p]/.test(k)?s:"",R=ys[k],E=/[defgprs%]/.test(k);_=_===void 0?6:/[gprs]/.test(k)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function U($){var F=b,C=T,D,tt,at;if(k==="c")C=R($)+C,$="";else{$=+$;var et=$<0||1/$<0;if($=isNaN($)?l:R(Math.abs($),_),w&&($=Up($)),et&&+$==0&&m!=="+"&&(et=!1),F=(et?m==="("?m:a:m==="-"||m==="("?"":m)+F,C=(k==="s"?ws[8+ol/3]:"")+C+(et&&m==="("?")":""),E){for(D=-1,tt=$.length;++D<tt;)if(at=$.charCodeAt(D),48>at||at>57){C=(at===46?r+$.slice(D+1):$.slice(D))+C,$=$.slice(0,D);break}}}x&&!v&&($=e($,1/0));var lt=F.length+$.length+C.length,Z=lt<y?new Array(y-lt+1).join(f):"";switch(x&&v&&($=e(Z+$,Z.length?y-C.length:1/0),Z=""),p){case"<":$=F+$+C+Z;break;case"=":$=F+Z+$+C;break;case"^":$=Z.slice(0,lt=Z.length>>1)+F+$+C+Z.slice(lt);break;default:$=Z+F+$+C;break}return o($)}return U.toString=function(){return u+""},U}function h(u,f){var p=c((u=dn(u),u.type="f",u)),m=Math.max(-8,Math.min(8,Math.floor(Le(f)/3)))*3,g=Math.pow(10,-m),v=ws[8+m/3];return function(y){return p(g*y)+v}}return{format:c,formatPrefix:h}}var An,ro,sl;Xp({thousands:",",grouping:[3],currency:["$",""]});function Xp(t){return An=Yp(t),ro=An.format,sl=An.formatPrefix,An}function Gp(t){return Math.max(0,-Le(Math.abs(t)))}function qp(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Le(e)/3)))*3-Le(Math.abs(t)))}function jp(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Le(e)-Le(t))+1}function Zp(t,e,n,i){var r=rr(t,e,n),o;switch(i=dn(i??",f"),i.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return i.precision==null&&!isNaN(o=qp(r,s))&&(i.precision=o),sl(i,s)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(o=jp(r,Math.max(Math.abs(t),Math.abs(e))))&&(i.precision=o-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(o=Gp(r))&&(i.precision=o-(i.type==="%")*2);break}}return ro(i)}function we(t){var e=t.domain;return t.ticks=function(n){var i=e();return nr(i[0],i[i.length-1],n??10)},t.tickFormat=function(n,i){var r=e();return Zp(r[0],r[r.length-1],n??10,i)},t.nice=function(n){n==null&&(n=10);var i=e(),r=0,o=i.length-1,s=i[r],a=i[o],l,c,h=10;for(a<s&&(c=s,s=a,a=c,c=r,r=o,o=c);h-- >0;){if(c=ir(s,a,n),c===l)return i[r]=s,i[o]=a,e(i);if(c>0)s=Math.floor(s/c)*c,a=Math.ceil(a/c)*c;else if(c<0)s=Math.ceil(s*c)/c,a=Math.floor(a*c)/c;else break;l=c}return t},t}function al(){var t=rl();return t.copy=function(){return vn(t,al())},Et.apply(t,arguments),we(t)}function ll(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},n.copy=function(){return ll(t).unknown(e)},t=arguments.length?Array.from(t,_r):[0,1],we(n)}function cl(t,e){t=t.slice();var n=0,i=t.length-1,r=t[n],o=t[i],s;return o<r&&(s=n,n=i,i=s,s=r,r=o,o=s),t[n]=e.floor(r),t[i]=e.ceil(o),t}function ks(t){return Math.log(t)}function Ss(t){return Math.exp(t)}function Qp(t){return-Math.log(-t)}function Jp(t){return-Math.exp(-t)}function Kp(t){return isFinite(t)?+("1e"+t):t<0?0:t}function tg(t){return t===10?Kp:t===Math.E?Math.exp:e=>Math.pow(t,e)}function eg(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 Ts(t){return(e,n)=>-t(-e,n)}function ng(t){const e=t(ks,Ss),n=e.domain;let i=10,r,o;function s(){return r=eg(i),o=tg(i),n()[0]<0?(r=Ts(r),o=Ts(o),t(Qp,Jp)):t(ks,Ss),e}return e.base=function(a){return arguments.length?(i=+a,s()):i},e.domain=function(a){return arguments.length?(n(a),s()):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),p=r(h),m,g;const v=a==null?10:+a;let y=[];if(!(i%1)&&p-f<v){if(f=Math.floor(f),p=Math.ceil(p),c>0){for(;f<=p;++f)for(m=1;m<i;++m)if(g=f<0?m/o(-f):m*o(f),!(g<c)){if(g>h)break;y.push(g)}}else for(;f<=p;++f)for(m=i-1;m>=1;--m)if(g=f>0?m/o(-f):m*o(f),!(g<c)){if(g>h)break;y.push(g)}y.length*2<v&&(y=nr(c,h,v))}else y=nr(f,p,Math.min(p-f,v)).map(o);return u?y.reverse():y},e.tickFormat=(a,l)=>{if(a==null&&(a=10),l==null&&(l=i===10?"s":","),typeof l!="function"&&(!(i%1)&&(l=dn(l)).precision==null&&(l.trim=!0),l=ro(l)),a===1/0)return l;const c=Math.max(1,i*a/e.ticks().length);return h=>{let u=h/o(Math.round(r(h)));return u*i<i-.5&&(u*=i),u<=c?l(h):""}},e.nice=()=>n(cl(n(),{floor:a=>o(Math.floor(r(a))),ceil:a=>o(Math.ceil(r(a)))})),e}function ul(){const t=ng(Ti()).domain([1,10]);return t.copy=()=>vn(t,ul()).base(t.base()),Et.apply(t,arguments),t}function Cs(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function As(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function ig(t){var e=1,n=t(Cs(e),As(e));return n.constant=function(i){return arguments.length?t(Cs(e=+i),As(e)):e},we(n)}function hl(){var t=ig(Ti());return t.copy=function(){return vn(t,hl()).constant(t.constant())},Et.apply(t,arguments)}function Ms(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function rg(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function og(t){return t<0?-t*t:t*t}function sg(t){var e=t(dt,dt),n=1;function i(){return n===1?t(dt,dt):n===.5?t(rg,og):t(Ms(n),Ms(1/n))}return e.exponent=function(r){return arguments.length?(n=+r,i()):n},we(e)}function oo(){var t=sg(Ti());return t.copy=function(){return vn(t,oo()).exponent(t.exponent())},Et.apply(t,arguments),t}function ag(){return oo.apply(null,arguments).exponent(.5)}function fl(){var t=[],e=[],n=[],i;function r(){var s=0,a=Math.max(1,e.length);for(n=new Array(a-1);++s<a;)n[s-1]=ph(t,s/a);return o}function o(s){return s==null||isNaN(s=+s)?i:e[_i(n,s)]}return o.invertExtent=function(s){var a=e.indexOf(s);return a<0?[NaN,NaN]:[a>0?n[a-1]:t[0],a<n.length?n[a]:t[t.length-1]]},o.domain=function(s){if(!arguments.length)return t.slice();t=[];for(let a of s)a!=null&&!isNaN(a=+a)&&t.push(a);return t.sort(tn),r()},o.range=function(s){return arguments.length?(e=Array.from(s),r()):e.slice()},o.unknown=function(s){return arguments.length?(i=s,o):i},o.quantiles=function(){return n.slice()},o.copy=function(){return fl().domain(t).range(e).unknown(i)},Et.apply(o,arguments)}function dl(){var t=0,e=1,n=1,i=[.5],r=[0,1],o;function s(l){return l!=null&&l<=l?r[_i(i,l,0,n)]:o}function a(){var l=-1;for(i=new Array(n);++l<n;)i[l]=((l+1)*e-(l-n)*t)/(n+1);return s}return s.domain=function(l){return arguments.length?([t,e]=l,t=+t,e=+e,a()):[t,e]},s.range=function(l){return arguments.length?(n=(r=Array.from(l)).length-1,a()):r.slice()},s.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]]},s.unknown=function(l){return arguments.length&&(o=l),s},s.thresholds=function(){return i.slice()},s.copy=function(){return dl().domain([t,e]).range(r).unknown(o)},Et.apply(we(s),arguments)}function pl(){var t=[.5],e=[0,1],n,i=1;function r(o){return o!=null&&o<=o?e[_i(t,o,0,i)]:n}return r.domain=function(o){return arguments.length?(t=Array.from(o),i=Math.min(t.length,e.length-1),r):t.slice()},r.range=function(o){return arguments.length?(e=Array.from(o),i=Math.min(t.length,e.length-1),r):e.slice()},r.invertExtent=function(o){var s=e.indexOf(o);return[t[s-1],t[s]]},r.unknown=function(o){return arguments.length?(n=o,r):n},r.copy=function(){return pl().domain(t).range(e).unknown(n)},Et.apply(r,arguments)}const Xi=new Date,Gi=new Date;function j(t,e,n,i){function r(o){return t(o=arguments.length===0?new Date:new Date(+o)),o}return r.floor=o=>(t(o=new Date(+o)),o),r.ceil=o=>(t(o=new Date(o-1)),e(o,1),t(o),o),r.round=o=>{const s=r(o),a=r.ceil(o);return o-s<a-o?s:a},r.offset=(o,s)=>(e(o=new Date(+o),s==null?1:Math.floor(s)),o),r.range=(o,s,a)=>{const l=[];if(o=r.ceil(o),a=a==null?1:Math.floor(a),!(o<s)||!(a>0))return l;let c;do l.push(c=new Date(+o)),e(o,a),t(o);while(c<o&&o<s);return l},r.filter=o=>j(s=>{if(s>=s)for(;t(s),!o(s);)s.setTime(s-1)},(s,a)=>{if(s>=s)if(a<0)for(;++a<=0;)for(;e(s,-1),!o(s););else for(;--a>=0;)for(;e(s,1),!o(s););}),n&&(r.count=(o,s)=>(Xi.setTime(+o),Gi.setTime(+s),t(Xi),t(Gi),Math.floor(n(Xi,Gi))),r.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?r.filter(i?s=>i(s)%o===0:s=>r.count(0,s)%o===0):r)),r}const oi=j(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);oi.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?j(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):oi);oi.range;const Ut=1e3,St=Ut*60,Wt=St*60,qt=Wt*24,so=qt*7,$s=qt*30,qi=qt*365,fe=j(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*Ut)},(t,e)=>(e-t)/Ut,t=>t.getUTCSeconds());fe.range;const ao=j(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ut)},(t,e)=>{t.setTime(+t+e*St)},(t,e)=>(e-t)/St,t=>t.getMinutes());ao.range;const lo=j(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*St)},(t,e)=>(e-t)/St,t=>t.getUTCMinutes());lo.range;const co=j(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*Ut-t.getMinutes()*St)},(t,e)=>{t.setTime(+t+e*Wt)},(t,e)=>(e-t)/Wt,t=>t.getHours());co.range;const uo=j(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*Wt)},(t,e)=>(e-t)/Wt,t=>t.getUTCHours());uo.range;const _n=j(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*St)/qt,t=>t.getDate()-1);_n.range;const Ci=j(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/qt,t=>t.getUTCDate()-1);Ci.range;const gl=j(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/qt,t=>Math.floor(t/qt));gl.range;function ke(t){return j(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())*St)/so)}const Ai=ke(0),si=ke(1),lg=ke(2),cg=ke(3),Be=ke(4),ug=ke(5),hg=ke(6);Ai.range;si.range;lg.range;cg.range;Be.range;ug.range;hg.range;function Se(t){return j(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)/so)}const Mi=Se(0),ai=Se(1),fg=Se(2),dg=Se(3),Fe=Se(4),pg=Se(5),gg=Se(6);Mi.range;ai.range;fg.range;dg.range;Fe.range;pg.range;gg.range;const ho=j(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());ho.range;const fo=j(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());fo.range;const jt=j(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());jt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:j(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)});jt.range;const Zt=j(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());Zt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:j(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)});Zt.range;function ml(t,e,n,i,r,o){const s=[[fe,1,Ut],[fe,5,5*Ut],[fe,15,15*Ut],[fe,30,30*Ut],[o,1,St],[o,5,5*St],[o,15,15*St],[o,30,30*St],[r,1,Wt],[r,3,3*Wt],[r,6,6*Wt],[r,12,12*Wt],[i,1,qt],[i,2,2*qt],[n,1,so],[e,1,$s],[e,3,3*$s],[t,1,qi]];function a(c,h,u){const f=h<c;f&&([c,h]=[h,c]);const p=u&&typeof u.range=="function"?u:l(c,h,u),m=p?p.range(c,+h+1):[];return f?m.reverse():m}function l(c,h,u){const f=Math.abs(h-c)/u,p=vi(([,,v])=>v).right(s,f);if(p===s.length)return t.every(rr(c/qi,h/qi,u));if(p===0)return oi.every(Math.max(rr(c,h,u),1));const[m,g]=s[f/s[p-1][2]<s[p][2]/f?p-1:p];return m.every(g)}return[a,l]}const[mg,vg]=ml(Zt,fo,Mi,gl,uo,lo),[_g,yg]=ml(jt,ho,Ai,_n,co,ao);function ji(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 Zi(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 Ye(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function xg(t){var e=t.dateTime,n=t.date,i=t.time,r=t.periods,o=t.days,s=t.shortDays,a=t.months,l=t.shortMonths,c=Xe(r),h=Ge(r),u=Xe(o),f=Ge(o),p=Xe(s),m=Ge(s),g=Xe(a),v=Ge(a),y=Xe(l),x=Ge(l),_={a:et,A:lt,b:Z,B:Nt,c:null,d:Ls,e:Ls,f:Ug,g:Kg,G:e0,H:Ig,I:Vg,j:Hg,L:vl,m:Wg,M:Yg,p:Jt,q:It,Q:Ps,s:zs,S:Xg,u:Gg,U:qg,V:jg,w:Zg,W:Qg,x:null,X:null,y:Jg,Y:t0,Z:n0,"%":Fs},w={a:Kt,A:le,b:ct,B:te,c:null,d:Bs,e:Bs,f:s0,g:m0,G:_0,H:i0,I:r0,j:o0,L:yl,m:a0,M:l0,p:N,q:ot,Q:Ps,s:zs,S:c0,u:u0,U:h0,V:f0,w:d0,W:p0,x:null,X:null,y:g0,Y:v0,Z:y0,"%":Fs},k={a:U,A:$,b:F,B:C,c:D,d:Os,e:Os,f:Bg,g:Ds,G:Ns,H:Rs,I:Rs,j:Dg,L:Lg,m:Ng,M:Og,p:E,q:Eg,Q:Pg,s:zg,S:Rg,u:Tg,U:Cg,V:Ag,w:Sg,W:Mg,x:tt,X:at,y:Ds,Y:Ns,Z:$g,"%":Fg};_.x=b(n,_),_.X=b(i,_),_.c=b(e,_),w.x=b(n,w),w.X=b(i,w),w.c=b(e,w);function b(A,L){return function(P){var S=[],ut=-1,W=0,mt=A.length,vt,ce,Eo;for(P instanceof Date||(P=new Date(+P));++ut<mt;)A.charCodeAt(ut)===37&&(S.push(A.slice(W,ut)),(ce=Es[vt=A.charAt(++ut)])!=null?vt=A.charAt(++ut):ce=vt==="e"?" ":"0",(Eo=L[vt])&&(vt=Eo(P,ce)),S.push(vt),W=ut+1);return S.push(A.slice(W,ut)),S.join("")}}function T(A,L){return function(P){var S=Ye(1900,void 0,1),ut=R(S,A,P+="",0),W,mt;if(ut!=P.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(L&&!("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?(W=Zi(Ye(S.y,0,1)),mt=W.getUTCDay(),W=mt>4||mt===0?ai.ceil(W):ai(W),W=Ci.offset(W,(S.V-1)*7),S.y=W.getUTCFullYear(),S.m=W.getUTCMonth(),S.d=W.getUTCDate()+(S.w+6)%7):(W=ji(Ye(S.y,0,1)),mt=W.getDay(),W=mt>4||mt===0?si.ceil(W):si(W),W=_n.offset(W,(S.V-1)*7),S.y=W.getFullYear(),S.m=W.getMonth(),S.d=W.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),mt="Z"in S?Zi(Ye(S.y,0,1)).getUTCDay():ji(Ye(S.y,0,1)).getDay(),S.m=0,S.d="W"in S?(S.w+6)%7+S.W*7-(mt+5)%7:S.w+S.U*7-(mt+6)%7);return"Z"in S?(S.H+=S.Z/100|0,S.M+=S.Z%100,Zi(S)):ji(S)}}function R(A,L,P,S){for(var ut=0,W=L.length,mt=P.length,vt,ce;ut<W;){if(S>=mt)return-1;if(vt=L.charCodeAt(ut++),vt===37){if(vt=L.charAt(ut++),ce=k[vt in Es?L.charAt(ut++):vt],!ce||(S=ce(A,P,S))<0)return-1}else if(vt!=P.charCodeAt(S++))return-1}return S}function E(A,L,P){var S=c.exec(L.slice(P));return S?(A.p=h.get(S[0].toLowerCase()),P+S[0].length):-1}function U(A,L,P){var S=p.exec(L.slice(P));return S?(A.w=m.get(S[0].toLowerCase()),P+S[0].length):-1}function $(A,L,P){var S=u.exec(L.slice(P));return S?(A.w=f.get(S[0].toLowerCase()),P+S[0].length):-1}function F(A,L,P){var S=y.exec(L.slice(P));return S?(A.m=x.get(S[0].toLowerCase()),P+S[0].length):-1}function C(A,L,P){var S=g.exec(L.slice(P));return S?(A.m=v.get(S[0].toLowerCase()),P+S[0].length):-1}function D(A,L,P){return R(A,e,L,P)}function tt(A,L,P){return R(A,n,L,P)}function at(A,L,P){return R(A,i,L,P)}function et(A){return s[A.getDay()]}function lt(A){return o[A.getDay()]}function Z(A){return l[A.getMonth()]}function Nt(A){return a[A.getMonth()]}function Jt(A){return r[+(A.getHours()>=12)]}function It(A){return 1+~~(A.getMonth()/3)}function Kt(A){return s[A.getUTCDay()]}function le(A){return o[A.getUTCDay()]}function ct(A){return l[A.getUTCMonth()]}function te(A){return a[A.getUTCMonth()]}function N(A){return r[+(A.getUTCHours()>=12)]}function ot(A){return 1+~~(A.getUTCMonth()/3)}return{format:function(A){var L=b(A+="",_);return L.toString=function(){return A},L},parse:function(A){var L=T(A+="",!1);return L.toString=function(){return A},L},utcFormat:function(A){var L=b(A+="",w);return L.toString=function(){return A},L},utcParse:function(A){var L=T(A+="",!0);return L.toString=function(){return A},L}}}var Es={"-":"",_:" ",0:"0"},Q=/^\s*\d+/,bg=/^%/,wg=/[\\^$*+?|[\]().{}]/g;function z(t,e,n){var i=t<0?"-":"",r=(i?-t:t)+"",o=r.length;return i+(o<n?new Array(n-o+1).join(e)+r:r)}function kg(t){return t.replace(wg,"\\$&")}function Xe(t){return new RegExp("^(?:"+t.map(kg).join("|")+")","i")}function Ge(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function Sg(t,e,n){var i=Q.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function Tg(t,e,n){var i=Q.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function Cg(t,e,n){var i=Q.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function Ag(t,e,n){var i=Q.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function Mg(t,e,n){var i=Q.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function Ns(t,e,n){var i=Q.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function Ds(t,e,n){var i=Q.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function $g(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 Eg(t,e,n){var i=Q.exec(e.slice(n,n+1));return i?(t.q=i[0]*3-3,n+i[0].length):-1}function Ng(t,e,n){var i=Q.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function Os(t,e,n){var i=Q.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function Dg(t,e,n){var i=Q.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function Rs(t,e,n){var i=Q.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function Og(t,e,n){var i=Q.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function Rg(t,e,n){var i=Q.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function Lg(t,e,n){var i=Q.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function Bg(t,e,n){var i=Q.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function Fg(t,e,n){var i=bg.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function Pg(t,e,n){var i=Q.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function zg(t,e,n){var i=Q.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function Ls(t,e){return z(t.getDate(),e,2)}function Ig(t,e){return z(t.getHours(),e,2)}function Vg(t,e){return z(t.getHours()%12||12,e,2)}function Hg(t,e){return z(1+_n.count(jt(t),t),e,3)}function vl(t,e){return z(t.getMilliseconds(),e,3)}function Ug(t,e){return vl(t,e)+"000"}function Wg(t,e){return z(t.getMonth()+1,e,2)}function Yg(t,e){return z(t.getMinutes(),e,2)}function Xg(t,e){return z(t.getSeconds(),e,2)}function Gg(t){var e=t.getDay();return e===0?7:e}function qg(t,e){return z(Ai.count(jt(t)-1,t),e,2)}function _l(t){var e=t.getDay();return e>=4||e===0?Be(t):Be.ceil(t)}function jg(t,e){return t=_l(t),z(Be.count(jt(t),t)+(jt(t).getDay()===4),e,2)}function Zg(t){return t.getDay()}function Qg(t,e){return z(si.count(jt(t)-1,t),e,2)}function Jg(t,e){return z(t.getFullYear()%100,e,2)}function Kg(t,e){return t=_l(t),z(t.getFullYear()%100,e,2)}function t0(t,e){return z(t.getFullYear()%1e4,e,4)}function e0(t,e){var n=t.getDay();return t=n>=4||n===0?Be(t):Be.ceil(t),z(t.getFullYear()%1e4,e,4)}function n0(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+z(e/60|0,"0",2)+z(e%60,"0",2)}function Bs(t,e){return z(t.getUTCDate(),e,2)}function i0(t,e){return z(t.getUTCHours(),e,2)}function r0(t,e){return z(t.getUTCHours()%12||12,e,2)}function o0(t,e){return z(1+Ci.count(Zt(t),t),e,3)}function yl(t,e){return z(t.getUTCMilliseconds(),e,3)}function s0(t,e){return yl(t,e)+"000"}function a0(t,e){return z(t.getUTCMonth()+1,e,2)}function l0(t,e){return z(t.getUTCMinutes(),e,2)}function c0(t,e){return z(t.getUTCSeconds(),e,2)}function u0(t){var e=t.getUTCDay();return e===0?7:e}function h0(t,e){return z(Mi.count(Zt(t)-1,t),e,2)}function xl(t){var e=t.getUTCDay();return e>=4||e===0?Fe(t):Fe.ceil(t)}function f0(t,e){return t=xl(t),z(Fe.count(Zt(t),t)+(Zt(t).getUTCDay()===4),e,2)}function d0(t){return t.getUTCDay()}function p0(t,e){return z(ai.count(Zt(t)-1,t),e,2)}function g0(t,e){return z(t.getUTCFullYear()%100,e,2)}function m0(t,e){return t=xl(t),z(t.getUTCFullYear()%100,e,2)}function v0(t,e){return z(t.getUTCFullYear()%1e4,e,4)}function _0(t,e){var n=t.getUTCDay();return t=n>=4||n===0?Fe(t):Fe.ceil(t),z(t.getUTCFullYear()%1e4,e,4)}function y0(){return"+0000"}function Fs(){return"%"}function Ps(t){return+t}function zs(t){return Math.floor(+t/1e3)}var Te,bl,wl;x0({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function x0(t){return Te=xg(t),bl=Te.format,Te.parse,wl=Te.utcFormat,Te.utcParse,Te}function b0(t){return new Date(t)}function w0(t){return t instanceof Date?+t:+new Date(+t)}function po(t,e,n,i,r,o,s,a,l,c){var h=rl(),u=h.invert,f=h.domain,p=c(".%L"),m=c(":%S"),g=c("%I:%M"),v=c("%I %p"),y=c("%a %d"),x=c("%b %d"),_=c("%B"),w=c("%Y");function k(b){return(l(b)<b?p:a(b)<b?m:s(b)<b?g:o(b)<b?v:i(b)<b?r(b)<b?y:x:n(b)<b?_:w)(b)}return h.invert=function(b){return new Date(u(b))},h.domain=function(b){return arguments.length?f(Array.from(b,w0)):f().map(b0)},h.ticks=function(b){var T=f();return t(T[0],T[T.length-1],b??10)},h.tickFormat=function(b,T){return T==null?k:c(T)},h.nice=function(b){var T=f();return(!b||typeof b.range!="function")&&(b=e(T[0],T[T.length-1],b??10)),b?f(cl(T,b)):h},h.copy=function(){return vn(h,po(t,e,n,i,r,o,s,a,l,c))},h}function k0(){return Et.apply(po(_g,yg,jt,ho,Ai,_n,co,ao,fe,bl).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function S0(){return Et.apply(po(mg,vg,Zt,fo,Mi,Ci,uo,lo,fe,wl).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function T0(){var t=0,e=1,n,i,r,o,s=dt,a=!1,l;function c(u){return u==null||isNaN(u=+u)?l:s(r===0?.5:(u=(o(u)-n)*r,a?Math.max(0,Math.min(1,u)):u))}c.domain=function(u){return arguments.length?([t,e]=u,n=o(t=+t),i=o(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?(s=u,c):s};function h(u){return function(f){var p,m;return arguments.length?([p,m]=f,s=u(p,m),c):[s(0),s(1)]}}return c.range=h(be),c.rangeRound=h(Kr),c.unknown=function(u){return arguments.length?(l=u,c):l},function(u){return o=u,n=u(t),i=u(e),r=n===i?0:1/(i-n),c}}function kl(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Sl(){var t=we(T0()(dt));return t.copy=function(){return kl(t,Sl())},nl.apply(t,arguments)}function C0(){var t=0,e=.5,n=1,i=1,r,o,s,a,l,c=dt,h,u=!1,f;function p(g){return isNaN(g=+g)?f:(g=.5+((g=+h(g))-o)*(i*g<i*o?a:l),c(u?Math.max(0,Math.min(1,g)):g))}p.domain=function(g){return arguments.length?([t,e,n]=g,r=h(t=+t),o=h(e=+e),s=h(n=+n),a=r===o?0:.5/(o-r),l=o===s?0:.5/(s-o),i=o<r?-1:1,p):[t,e,n]},p.clamp=function(g){return arguments.length?(u=!!g,p):u},p.interpolator=function(g){return arguments.length?(c=g,p):c};function m(g){return function(v){var y,x,_;return arguments.length?([y,x,_]=v,c=Md(g,[y,x,_]),p):[c(0),c(.5),c(1)]}}return p.range=m(be),p.rangeRound=m(Kr),p.unknown=function(g){return arguments.length?(f=g,p):f},function(g){return h=g,r=g(t),o=g(e),s=g(n),a=r===o?0:.5/(o-r),l=o===s?0:.5/(s-o),i=o<r?-1:1,p}}function Tl(){var t=we(C0()(dt));return t.copy=function(){return kl(t,Tl())},nl.apply(t,arguments)}const Is={scaleLinear:al,scalePow:oo,scaleSqrt:ag,scaleLog:ul,scaleSymlog:hl,scaleIdentity:ll,scaleTime:k0,scaleUtc:S0,scaleSequential:Sl,scaleDiverging:Tl,scaleQuantize:dl,scaleQuantile:fl,scaleThreshold:pl,scaleOrdinal:no,scaleBand:Si,scalePoint:Rp};var X;(function(t){t.X="x",t.Y="y"})(X||(X={}));var Mt;(function(t){t.West="west",t.East="east",t.North="north",t.South="south"})(Mt||(Mt={}));const A0=Object.assign(Object.assign({},Ur),{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:Mt.North,preventEmptyDomain:null,scaleByDomain:!1});class M0 extends De{constructor(e,n,i){var r,o;super(e),this._defaultConfig=A0,this.datamodel=new eo,this.config=this._defaultConfig,this._clipPathId=Pa(),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 s="saturate",a=window.location.href.replace(window.location.hash,"");this.svg.attr("class",O`
|
|
53
|
-
--highlight-filter-id: url(${a}#${s}); // defining a css variable
|
|
54
|
-
`),this._svgDefs.append("filter").attr("id",s).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(),(o=document.fonts)===null||o===void 0||o.ready.then(()=>{this._firstRender||this._renderAxes(0)})}get components(){return this.config.components}get width(){const e=this._getMargin();return Lt(this.containerWidth-e.left-e.right,0,Number.POSITIVE_INFINITY)}get height(){const e=this._getMargin();return Lt(this.containerHeight-e.top-e.bottom,0,Number.POSITIVE_INFINITY)}setData(e,n){var i,r,o,s;const{components:a,config:l}=this;e&&(this.datamodel.data=e,a.forEach(c=>{c.setData(e)}),(i=l.crosshair)===null||i===void 0||i.setData(e),(r=l.xAxis)===null||r===void 0||r.setData(e),(o=l.yAxis)===null||o===void 0||o.setData(e),(s=l.tooltip)===null||s===void 0||s.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=H.X,this.element.appendChild(e.xAxis.element)),e.yAxis&&(this.config.yAxis.config.type=H.Y,this.element.appendChild(e.yAxis.element));for(const s of this.components)this.element.appendChild(s.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 o=e.annotations;o&&this.element.appendChild(o.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,o)=>{e[o]&&r.setConfig(e[o])}),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=He([...this.components,e.xAxis,e.yAxis,e.crosshair,e.annotations]);for(const i of n)i.setSize(this.width,this.height,this.containerWidth,this.containerHeight);this._updateScales(...this.components,e.xAxis,e.yAxis,e.crosshair)}_render(e){var n,i,r,o,s;const{config:a}=this;super._render();const l=this._getMargin();for(const u of this.components)u.g.attr("transform",`translate(${l.left},${l.top})`).style("clip-path",u.clippable?`url(#${this._clipPathId})`:null).style("-webkit-clip-path",u.clippable?`url(#${this._clipPathId})`:null),u.render(e);this._renderAxes(this._firstRender?0:e);const c=2;this._clipPath.select("rect").attr("x",-2).attr("y",-2).attr("width",this.width+2*c).attr("height",this.height+2*c),(n=a.tooltip)===null||n===void 0||n.update();const h=a.crosshair;if(h){const u=this.components.filter(g=>!g.stacked).map(g=>g.config.y),f=this.components.filter(g=>g.stacked).map(g=>g.config.y),p=(i=this.components.find(g=>g.config.baseline))===null||i===void 0?void 0:i.config,m=p==null?void 0:p.baseline;h.accessors={x:(r=this.components[0])===null||r===void 0?void 0:r.config.x,y:sr(u),yStacked:sr(f),baseline:m},h.g.attr("transform",`translate(${l.left},${l.top})`).style("clip-path",`url(#${this._clipPathId})`).style("-webkit-clip-path",`url(#${this._clipPathId})`),h.hide()}(o=a.annotations)===null||o===void 0||o.g.attr("transform",`translate(${l.left},${l.top})`),(s=a.annotations)===null||s===void 0||s.render(),this._firstRender=!1}_updateScales(...e){const n=He(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(X.X,n.xScale)),n.yScale&&e.forEach(i=>i.setScale(X.Y,n.yScale)))}_updateScalesDomain(...e){const{config:n}=this;if(!e)return;const i=e.filter(r=>!r.config.excludeFromDomainCalculation);Object.values(X).forEach(r=>{var o,s,a,l,c,h,u,f;const[p,m]=ah(vh(i.map(k=>k.getDataExtent(r,n.scaleByDomain)))),g=r===X.Y?n.yDomain:n.xDomain,v=r===X.Y?n.yDomainMinConstraint:n.xDomainMinConstraint,y=r===X.Y?n.yDomainMaxConstraint:n.xDomainMaxConstraint,x=(s=(o=g==null?void 0:g[0])!==null&&o!==void 0?o:p)!==null&&s!==void 0?s:0,_=(l=(a=g==null?void 0:g[1])!==null&&a!==void 0?a:m)!==null&&l!==void 0?l:1,w=[Lt(x,(c=v==null?void 0:v[0])!==null&&c!==void 0?c:Number.NEGATIVE_INFINITY,(h=v==null?void 0:v[1])!==null&&h!==void 0?h:Number.POSITIVE_INFINITY),Lt(_,(u=y==null?void 0:y[0])!==null&&u!==void 0?u:Number.NEGATIVE_INFINITY,(f=y==null?void 0:y[1])!==null&&f!==void 0?f:Number.POSITIVE_INFINITY)];if(w[0]===w[1]){const k=i.some(b=>{var T;return((T=b.datamodel.data)===null||T===void 0?void 0:T.length)>0});(n.preventEmptyDomain||n.preventEmptyDomain===null&&(!k||r===X.Y))&&(w[1]=w[0]+1)}e.forEach(k=>k.setScaleDomain(r,w))})}_updateScalesRange(...e){var n,i,r,o,s,a;const{config:l}=this;if(!e)return;const c=l.yDirection===Mt.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),(o=l.padding.top)!==null&&o!==void 0?o:0];c&&u.reverse();for(const p of e)p.setSize(this.width,this.height,this.containerWidth,this.containerHeight),p.setScaleRange(X.X,(s=l.xRange)!==null&&s!==void 0?s:h),p.setScaleRange(X.Y,(a=l.yRange)!==null&&a!==void 0?a:u);const f=e.map(p=>p.bleed).reduce((p,m)=>{for(const g of Object.keys(p)){const v=g;p[v]<m[v]&&(p[v]=m[v])}return p},{top:0,bottom:0,left:0,right:0});for(const p of e)p.setScaleRange(X.X,[h[0]+f.left,h[1]-f.right]),p.setScaleRange(X.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();He([n,i]).forEach(s=>{const a=s.getOffset(r);s.g.attr("transform",`translate(${a.left},${a.top})`),s.render(e)})}_setAutoMargin(){const{config:{xAxis:e,yAxis:n}}=this,i=He([...this.components,e,n]);this._setScales(...i),this._updateScalesDomain(...i);const r=this._firstRender?2:1;for(let o=0;o<r;o+=1){const s={top:0,bottom:0,left:0,right:0};this._updateScalesRange(...i),He([e,n]).forEach(l=>{l.preRender();const c=l.getRequiredMargin();s.top<c.top&&(s.top=c.top),s.bottom<c.bottom&&(s.bottom=c.bottom),s.left<c.left&&(s.left=c.left),s.right<c.right&&(s.right=c.right)}),this._axisMargin=s}}_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}}destroy(){const{components:e,config:{tooltip:n,crosshair:i,annotations:r,xAxis:o,yAxis:s}}=this;super.destroy();for(const a of e)a==null||a.destroy();n==null||n.destroy(),i==null||i.destroy(),r==null||r.destroy(),o==null||o.destroy(),s==null||s.destroy()}}const go={duration:600,events:{},attributes:{}};class Cl{constructor(e=Ke.SVG){var n,i;this.type=Ke.SVG,this.datamodel=new eo,this.sizing=Yt.Fit,this.events={},this._defaultConfig=go,this._width=400,this._height=200,this._containerWidth=void 0,this._containerHeight=void 0,this._setUpComponentEventsThrottled=jn(this._setUpComponentEvents,500),this._setCustomAttributesThrottled=jn(this._setCustomAttributes,500),e===Ke.SVG?this.element=document.createElementNS("http://www.w3.org/2000/svg","g"):this.element=document.createElement("div"),this.uid=Pa(),this.g=st(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)}setConfig(e){this.prevConfig=this.config,this.config=_e(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 o=this.g.selectAll(`.${i}`);o.on(r+n,(s,a)=>{const l=o.nodes(),c=l.indexOf(s.currentTarget),h=e[i][r];return h==null?void 0:h(a,s,c,l)})})})}destroy(){var e;(e=this.g)===null||e===void 0||e.remove(),this.element=void 0}isDestroyed(){return!this.element}}class Al extends eo{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 Ie=Object.assign(Object.assign({},go),{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 yn extends Cl{constructor(){super(...arguments),this.datamodel=new Al,this.clippable=!0,this.stacked=!1,this._defaultConfig=Ie,this._xScale=Is.scaleLinear(),this._yScale=Is.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===X.X&&((i=this._xScale)===null||i===void 0||i.domain(n)),e===X.Y&&((r=this._yScale)===null||r===void 0||r.domain(n))}setScaleRange(e,n){var i,r;e===X.X&&((i=this._xScale)===null||i===void 0||i.range(n)),e===X.Y&&((r=this._yScale)===null||r===void 0||r.range(n))}setScale(e,n){n&&e===X.X&&(this._xScale=n),n&&e===X.Y&&(this._yScale=n)}getDataExtent(e,n){const{config:i,datamodel:r}=this;switch(e){case X.X:return this.getXDataExtent();case X.Y:return this.getYDataExtent(n);default:return $n(r.data,i[e])}}getXDataExtent(){const{config:e,datamodel:n}=this;return $n(n.data,e.x)}getYDataExtent(e){const{config:n,datamodel:i}=this,r=e?ba(i.data,this.xScale.domain(),n.x):i.data,o=Xt(n.y)?n.y:[n.y];return $n(r,...o)}}var M;(function(t){t.Top="top",t.Bottom="bottom",t.Left="left",t.Right="right",t.Center="center",t.Auto="auto"})(M||(M={}));var Vs;(function(t){t.Absolute="absolute",t.Fixed="fixed"})(Vs||(Vs={}));var Hs;(function(t){t.Inside="inside",t.Outside="outside"})(Hs||(Hs={}));var li;(function(t){t.Horizontal="horizontal",t.Vertical="vertical"})(li||(li={}));const $0={components:[],container:void 0,followCursor:!0,allowHover:!0,horizontalPlacement:M.Auto,horizontalShift:0,verticalPlacement:M.Top,verticalShift:0,attributes:{},triggers:{},className:void 0},$i=O`
|
|
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
|
-
`,E0=$i,N0=Qt`
|
|
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 ${`.${$i}`} {
|
|
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
|
-
`,Ml=O`
|
|
104
|
-
bottom: unset;
|
|
105
|
-
position: fixed;
|
|
106
|
-
`,xr=O`
|
|
107
|
-
opacity: 1;
|
|
108
|
-
`,br=O`
|
|
109
|
-
display: none;
|
|
110
|
-
`,$l=O`
|
|
111
|
-
label: non-interactive;
|
|
112
|
-
pointer-events: none;
|
|
113
|
-
user-select: none;
|
|
114
|
-
`,D0=Object.freeze(Object.defineProperty({__proto__:null,hidden:br,nonInteractive:$l,positionFixed:Ml,root:$i,show:xr,tooltip:E0,variables:N0},Symbol.toStringTag,{value:"Module"}));class El{constructor(e={}){this._defaultConfig=$0,this.config=this._defaultConfig,this._setUpEventsThrottled=jn(this._setUpEvents,500),this._setContainerPositionThrottled=jn(this._setContainerPosition,500),this._isShown=!1,this.element=document.createElement("div"),this.div=st(this.element).attr("class",$i),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=_e(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(xr,!1).on("transitionend",()=>{this.div.classed(br,!this._isShown)}),this._isShown=!1}display(){this.div.classed(br,!1).classed(xr,!0),this._isShown=!0}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,o=this._overriddenHorizontalPlacement||(n.horizontalPlacement===M.Auto?M.Center:n.horizontalPlacement),s=n.verticalPlacement===M.Auto?e.y-r<0?M.Bottom:M.Top:n.verticalPlacement,a=5,l=o===M.Left?-i-a-n.horizontalShift:o===M.Center?-i/2:a+n.horizontalShift,c=s===M.Bottom?a+n.verticalShift:s===M.Center?-r/2:-5-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,o=this.element.offsetHeight,s=this.isContainerBody(),a=s?window.innerWidth:this._container.scrollWidth,l=e.getBoundingClientRect(),c=s?[l.x,l.y]:Yn({clientX:l.x,clientY:l.y,pageX:l.x,pageY:l.y},this._container),h=this._overriddenHorizontalPlacement||(n.horizontalPlacement===M.Auto?c[0]-r<0?M.Right:c[0]+r>a?M.Left:M.Center:n.horizontalPlacement);let u=0;switch(h){case M.Left:u=-r-i-n.horizontalShift;break;case M.Right:u=l.width+i+n.horizontalShift;break;case M.Center:default:u=(-r+l.width)/2;break}const f=n.verticalPlacement===M.Auto?h!==M.Center?M.Center:c[1]-o<0?M.Bottom:M.Top:n.verticalPlacement;let p=-o;switch(f){case M.Center:p+=(o+l.height)/2;break;case M.Bottom:p+=o+l.height+i+n.verticalShift;break;case M.Top:default:p+=-5-n.verticalShift;break}const[m,g]=this._constraintPosToContainer(c[0]+u,c[1]+p,r,o);this._applyPosition(m,g,o)}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&&this.div.html(e),this.div.classed((n=i.className)!==null&&n!==void 0?n:"",!!i.className).classed($l,!i.allowHover||i.followCursor),r!=null&&r.className&&r.className!==i.className&&this.div.classed(r.className,!1),this.display()}_applyPosition(e,n,i){const r=this.isContainerBody(),o=r?window.innerHeight:this._container.scrollHeight;this.div.classed(Ml,r).style("top",r?`${n}px`:"unset").style("bottom",r?"unset":`${o-n-i}px`).style("left",`${e}px`)}_constraintPosToContainer(e,n,i,r){const o=this.isContainerBody(),s=o?window.innerHeight:this._container.scrollHeight,a=o?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,p=n>s-r-f,m=n<f,g=p?s-r-f:m?f:n;return[a<i?0:u,s<r?0:g]}_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;this.components.forEach(n=>{const i=st(n.element);i.on("mousemove.tooltip",r=>{const o=r.composedPath&&r.composedPath()||r.path||[r.target];for(const s of Object.keys(e.triggers)){const a=e.triggers[s];if(!a)continue;const l=i.selectAll(`.${s}`).nodes();for(const c of o){if(c===i.node())break;if(c.classList.contains(s)){const h=l.indexOf(c),u=st(c).datum(),f=a(u,h,l),[p,m]=this.isContainerBody()?[r.clientX,r.clientY]:Yn(r,this._container);f===null?this.hide():(this.render(f),e.followCursor?this.place({x:p,y:m}):this.placeByElement(c)),r.stopPropagation();return}}}this._isShown&&this.hide()}).on("mouseleave.tooltip",r=>{r.stopPropagation(),this.hide()})}),e.allowHover&&!e.followCursor?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(),(e=this.div)===null||e===void 0||e.remove()}}El.selectors=D0;function B(t){return function(){return t}}const Us=Math.abs,nt=Math.atan2,Ht=Math.cos,O0=Math.max,Qi=Math.min,ht=Math.sin,K=Math.sqrt,rt=1e-12,oe=Math.PI,ci=oe/2,re=2*oe;function R0(t){return t>1?0:t<-1?oe:Math.acos(t)}function Ws(t){return t>=1?ci:t<=-1?-ci:Math.asin(t)}const wr=Math.PI,kr=2*wr,ue=1e-6,L0=kr-ue;function Nl(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function B0(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Nl;const n=10**e;return function(i){this._+=i[0];for(let r=1,o=i.length;r<o;++r)this._+=Math.round(arguments[r]*n)/n+i[r]}}class F0{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?Nl:B0(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,o,s){this._append`C${+e},${+n},${+i},${+r},${this._x1=+o},${this._y1=+s}`}arcTo(e,n,i,r,o){if(e=+e,n=+n,i=+i,r=+r,o=+o,o<0)throw new Error(`negative radius: ${o}`);let s=this._x1,a=this._y1,l=i-e,c=r-n,h=s-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>ue)if(!(Math.abs(u*l-c*h)>ue)||!o)this._append`L${this._x1=e},${this._y1=n}`;else{let p=i-s,m=r-a,g=l*l+c*c,v=p*p+m*m,y=Math.sqrt(g),x=Math.sqrt(f),_=o*Math.tan((wr-Math.acos((g+f-v)/(2*y*x)))/2),w=_/x,k=_/y;Math.abs(w-1)>ue&&this._append`L${e+w*h},${n+w*u}`,this._append`A${o},${o},0,0,${+(u*p>h*m)},${this._x1=e+k*l},${this._y1=n+k*c}`}}arc(e,n,i,r,o,s){if(e=+e,n=+n,i=+i,s=!!s,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^s,f=s?r-o:o-r;this._x1===null?this._append`M${c},${h}`:(Math.abs(this._x1-c)>ue||Math.abs(this._y1-h)>ue)&&this._append`L${c},${h}`,i&&(f<0&&(f=f%kr+kr),f>L0?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>ue&&this._append`A${i},${i},0,${+(f>=wr)},${u},${this._x1=e+i*Math.cos(o)},${this._y1=n+i*Math.sin(o)}`)}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 Ei(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 F0(e)}function P0(t){return t.innerRadius}function z0(t){return t.outerRadius}function I0(t){return t.startAngle}function V0(t){return t.endAngle}function H0(t){return t&&t.padAngle}function U0(t,e,n,i,r,o,s,a){var l=n-t,c=i-e,h=s-r,u=a-o,f=u*l-h*c;if(!(f*f<rt))return f=(h*(e-o)-u*(t-r))/f,[t+f*l,e+f*c]}function Mn(t,e,n,i,r,o,s){var a=t-n,l=e-i,c=(s?o:-o)/K(a*a+l*l),h=c*l,u=-c*a,f=t+h,p=e+u,m=n+h,g=i+u,v=(f+m)/2,y=(p+g)/2,x=m-f,_=g-p,w=x*x+_*_,k=r-o,b=f*g-m*p,T=(_<0?-1:1)*K(O0(0,k*k*w-b*b)),R=(b*_-x*T)/w,E=(-b*x-_*T)/w,U=(b*_+x*T)/w,$=(-b*x+_*T)/w,F=R-v,C=E-y,D=U-v,tt=$-y;return F*F+C*C>D*D+tt*tt&&(R=U,E=$),{cx:R,cy:E,x01:-h,y01:-u,x11:R*(r/k-1),y11:E*(r/k-1)}}function W0(){var t=P0,e=z0,n=B(0),i=null,r=I0,o=V0,s=H0,a=null,l=Ei(c);function c(){var h,u,f=+t.apply(this,arguments),p=+e.apply(this,arguments),m=r.apply(this,arguments)-ci,g=o.apply(this,arguments)-ci,v=Us(g-m),y=g>m;if(a||(a=h=l()),p<f&&(u=p,p=f,f=u),!(p>rt))a.moveTo(0,0);else if(v>re-rt)a.moveTo(p*Ht(m),p*ht(m)),a.arc(0,0,p,m,g,!y),f>rt&&(a.moveTo(f*Ht(g),f*ht(g)),a.arc(0,0,f,g,m,y));else{var x=m,_=g,w=m,k=g,b=v,T=v,R=s.apply(this,arguments)/2,E=R>rt&&(i?+i.apply(this,arguments):K(f*f+p*p)),U=Qi(Us(p-f)/2,+n.apply(this,arguments)),$=U,F=U,C,D;if(E>rt){var tt=Ws(E/f*ht(R)),at=Ws(E/p*ht(R));(b-=tt*2)>rt?(tt*=y?1:-1,w+=tt,k-=tt):(b=0,w=k=(m+g)/2),(T-=at*2)>rt?(at*=y?1:-1,x+=at,_-=at):(T=0,x=_=(m+g)/2)}var et=p*Ht(x),lt=p*ht(x),Z=f*Ht(k),Nt=f*ht(k);if(U>rt){var Jt=p*Ht(_),It=p*ht(_),Kt=f*Ht(w),le=f*ht(w),ct;if(v<oe)if(ct=U0(et,lt,Kt,le,Jt,It,Z,Nt)){var te=et-ct[0],N=lt-ct[1],ot=Jt-ct[0],A=It-ct[1],L=1/ht(R0((te*ot+N*A)/(K(te*te+N*N)*K(ot*ot+A*A)))/2),P=K(ct[0]*ct[0]+ct[1]*ct[1]);$=Qi(U,(f-P)/(L-1)),F=Qi(U,(p-P)/(L+1))}else $=F=0}T>rt?F>rt?(C=Mn(Kt,le,et,lt,p,F,y),D=Mn(Jt,It,Z,Nt,p,F,y),a.moveTo(C.cx+C.x01,C.cy+C.y01),F<U?a.arc(C.cx,C.cy,F,nt(C.y01,C.x01),nt(D.y01,D.x01),!y):(a.arc(C.cx,C.cy,F,nt(C.y01,C.x01),nt(C.y11,C.x11),!y),a.arc(0,0,p,nt(C.cy+C.y11,C.cx+C.x11),nt(D.cy+D.y11,D.cx+D.x11),!y),a.arc(D.cx,D.cy,F,nt(D.y11,D.x11),nt(D.y01,D.x01),!y))):(a.moveTo(et,lt),a.arc(0,0,p,x,_,!y)):a.moveTo(et,lt),!(f>rt)||!(b>rt)?a.lineTo(Z,Nt):$>rt?(C=Mn(Z,Nt,Jt,It,f,-$,y),D=Mn(et,lt,Kt,le,f,-$,y),a.lineTo(C.cx+C.x01,C.cy+C.y01),$<U?a.arc(C.cx,C.cy,$,nt(C.y01,C.x01),nt(D.y01,D.x01),!y):(a.arc(C.cx,C.cy,$,nt(C.y01,C.x01),nt(C.y11,C.x11),!y),a.arc(0,0,f,nt(C.cy+C.y11,C.cx+C.x11),nt(D.cy+D.y11,D.cx+D.x11),y),a.arc(D.cx,D.cy,$,nt(D.y11,D.x11),nt(D.y01,D.x01),!y))):a.arc(0,0,f,k,w,y)}if(a.closePath(),h)return a=null,h+""||null}return c.centroid=function(){var h=(+t.apply(this,arguments)+ +e.apply(this,arguments))/2,u=(+r.apply(this,arguments)+ +o.apply(this,arguments))/2-oe/2;return[Ht(u)*h,ht(u)*h]},c.innerRadius=function(h){return arguments.length?(t=typeof h=="function"?h:B(+h),c):t},c.outerRadius=function(h){return arguments.length?(e=typeof h=="function"?h:B(+h),c):e},c.cornerRadius=function(h){return arguments.length?(n=typeof h=="function"?h:B(+h),c):n},c.padRadius=function(h){return arguments.length?(i=h==null?null:typeof h=="function"?h:B(+h),c):i},c.startAngle=function(h){return arguments.length?(r=typeof h=="function"?h:B(+h),c):r},c.endAngle=function(h){return arguments.length?(o=typeof h=="function"?h:B(+h),c):o},c.padAngle=function(h){return arguments.length?(s=typeof h=="function"?h:B(+h),c):s},c.context=function(h){return arguments.length?(a=h??null,c):a},c}function mo(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function Dl(t){this._context=t}Dl.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 vo(t){return new Dl(t)}function Ol(t){return t[0]}function Rl(t){return t[1]}function Ll(t,e){var n=B(!0),i=null,r=vo,o=null,s=Ei(a);t=typeof t=="function"?t:t===void 0?Ol:B(t),e=typeof e=="function"?e:e===void 0?Rl:B(e);function a(l){var c,h=(l=mo(l)).length,u,f=!1,p;for(i==null&&(o=r(p=s())),c=0;c<=h;++c)!(c<h&&n(u=l[c],c,l))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+t(u,c,l),+e(u,c,l));if(p)return o=null,p+""||null}return a.x=function(l){return arguments.length?(t=typeof l=="function"?l:B(+l),a):t},a.y=function(l){return arguments.length?(e=typeof l=="function"?l:B(+l),a):e},a.defined=function(l){return arguments.length?(n=typeof l=="function"?l:B(!!l),a):n},a.curve=function(l){return arguments.length?(r=l,i!=null&&(o=r(i)),a):r},a.context=function(l){return arguments.length?(l==null?i=o=null:o=r(i=l),a):i},a}function Y0(t,e,n){var i=null,r=B(!0),o=null,s=vo,a=null,l=Ei(c);t=typeof t=="function"?t:t===void 0?Ol:B(+t),e=typeof e=="function"?e:B(e===void 0?0:+e),n=typeof n=="function"?n:n===void 0?Rl:B(+n);function c(u){var f,p,m,g=(u=mo(u)).length,v,y=!1,x,_=new Array(g),w=new Array(g);for(o==null&&(a=s(x=l())),f=0;f<=g;++f){if(!(f<g&&r(v=u[f],f,u))===y)if(y=!y)p=f,a.areaStart(),a.lineStart();else{for(a.lineEnd(),a.lineStart(),m=f-1;m>=p;--m)a.point(_[m],w[m]);a.lineEnd(),a.areaEnd()}y&&(_[f]=+t(v,f,u),w[f]=+e(v,f,u),a.point(i?+i(v,f,u):_[f],n?+n(v,f,u):w[f]))}if(x)return a=null,x+""||null}function h(){return Ll().defined(r).curve(s).context(o)}return c.x=function(u){return arguments.length?(t=typeof u=="function"?u:B(+u),i=null,c):t},c.x0=function(u){return arguments.length?(t=typeof u=="function"?u:B(+u),c):t},c.x1=function(u){return arguments.length?(i=u==null?null:typeof u=="function"?u:B(+u),c):i},c.y=function(u){return arguments.length?(e=typeof u=="function"?u:B(+u),n=null,c):e},c.y0=function(u){return arguments.length?(e=typeof u=="function"?u:B(+u),c):e},c.y1=function(u){return arguments.length?(n=u==null?null:typeof u=="function"?u:B(+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:B(!!u),c):r},c.curve=function(u){return arguments.length?(s=u,o!=null&&(a=s(o)),c):s},c.context=function(u){return arguments.length?(u==null?o=a=null:a=s(o=u),c):o},c}function X0(t,e){return e<t?-1:e>t?1:e>=t?0:NaN}function G0(t){return t}function q0(){var t=G0,e=X0,n=null,i=B(0),r=B(re),o=B(0);function s(a){var l,c=(a=mo(a)).length,h,u,f=0,p=new Array(c),m=new Array(c),g=+i.apply(this,arguments),v=Math.min(re,Math.max(-re,r.apply(this,arguments)-g)),y,x=Math.min(Math.abs(v)/c,o.apply(this,arguments)),_=x*(v<0?-1:1),w;for(l=0;l<c;++l)(w=m[p[l]=l]=+t(a[l],l,a))>0&&(f+=w);for(e!=null?p.sort(function(k,b){return e(m[k],m[b])}):n!=null&&p.sort(function(k,b){return n(a[k],a[b])}),l=0,u=f?(v-c*_)/f:0;l<c;++l,g=y)h=p[l],w=m[h],y=g+(w>0?w*u:0)+_,m[h]={data:a[h],index:l,value:w,startAngle:g,endAngle:y,padAngle:x};return m}return s.value=function(a){return arguments.length?(t=typeof a=="function"?a:B(+a),s):t},s.sortValues=function(a){return arguments.length?(e=a,n=null,s):e},s.sort=function(a){return arguments.length?(n=a,e=null,s):n},s.startAngle=function(a){return arguments.length?(i=typeof a=="function"?a:B(+a),s):i},s.endAngle=function(a){return arguments.length?(r=typeof a=="function"?a:B(+a),s):r},s.padAngle=function(a){return arguments.length?(o=typeof a=="function"?a:B(+a),s):o},s}const Bl={draw(t,e){const n=K(e/oe);t.moveTo(n,0),t.arc(0,0,n,0,re)}},j0={draw(t,e){const n=K(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()}},Fl=K(1/3),Z0=Fl*2,Q0={draw(t,e){const n=K(e/Z0),i=n*Fl;t.moveTo(0,-n),t.lineTo(i,0),t.lineTo(0,n),t.lineTo(-i,0),t.closePath()}},J0={draw(t,e){const n=K(e),i=-n/2;t.rect(i,i,n,n)}},K0=.8908130915292852,Pl=ht(oe/10)/ht(7*oe/10),tm=ht(re/10)*Pl,em=-Ht(re/10)*Pl,nm={draw(t,e){const n=K(e*K0),i=tm*n,r=em*n;t.moveTo(0,-n),t.lineTo(i,r);for(let o=1;o<5;++o){const s=re*o/5,a=Ht(s),l=ht(s);t.lineTo(l*n,-a*n),t.lineTo(a*i-l*r,l*i+a*r)}t.closePath()}},Ji=K(3),im={draw(t,e){const n=-K(e/(Ji*3));t.moveTo(0,n*2),t.lineTo(-Ji*n,-n),t.lineTo(Ji*n,-n),t.closePath()}},wt=-.5,kt=K(3)/2,Sr=1/K(12),rm=(Sr/2+1)*3,om={draw(t,e){const n=K(e/rm),i=n/2,r=n*Sr,o=i,s=n*Sr+n,a=-o,l=s;t.moveTo(i,r),t.lineTo(o,s),t.lineTo(a,l),t.lineTo(wt*i-kt*r,kt*i+wt*r),t.lineTo(wt*o-kt*s,kt*o+wt*s),t.lineTo(wt*a-kt*l,kt*a+wt*l),t.lineTo(wt*i+kt*r,wt*r-kt*i),t.lineTo(wt*o+kt*s,wt*s-kt*o),t.lineTo(wt*a+kt*l,wt*l-kt*a),t.closePath()}};function sm(t,e){let n=null,i=Ei(r);t=typeof t=="function"?t:B(t||Bl),e=typeof e=="function"?e:B(e===void 0?64:+e);function r(){let o;if(n||(n=o=i()),t.apply(this,arguments).draw(n,+e.apply(this,arguments)),o)return n=null,o+""||null}return r.type=function(o){return arguments.length?(t=typeof o=="function"?o:B(o),r):t},r.size=function(o){return arguments.length?(e=typeof o=="function"?o:B(+o),r):e},r.context=function(o){return arguments.length?(n=o??null,r):n},r}function se(){}function ui(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 Ni(t){this._context=t}Ni.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:ui(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:ui(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function am(t){return new Ni(t)}function zl(t){this._context=t}zl.prototype={areaStart:se,areaEnd:se,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:ui(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function lm(t){return new zl(t)}function Il(t){this._context=t}Il.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:ui(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function cm(t){return new Il(t)}function Vl(t,e){this._basis=new Ni(t),this._beta=e}Vl.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],o=t[n]-i,s=e[n]-r,a=-1,l;++a<=n;)l=a/n,this._basis.point(this._beta*t[a]+(1-this._beta)*(i+l*o),this._beta*e[a]+(1-this._beta)*(r+l*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const um=function t(e){function n(i){return e===1?new Ni(i):new Vl(i,e)}return n.beta=function(i){return t(+i)},n}(.85);function hi(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 _o(t,e){this._context=t,this._k=(1-e)/6}_o.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:hi(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:hi(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 hm=function t(e){function n(i){return new _o(i,e)}return n.tension=function(i){return t(+i)},n}(0);function yo(t,e){this._context=t,this._k=(1-e)/6}yo.prototype={areaStart:se,areaEnd:se,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:hi(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 fm=function t(e){function n(i){return new yo(i,e)}return n.tension=function(i){return t(+i)},n}(0);function xo(t,e){this._context=t,this._k=(1-e)/6}xo.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:hi(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 dm=function t(e){function n(i){return new xo(i,e)}return n.tension=function(i){return t(+i)},n}(0);function bo(t,e,n){var i=t._x1,r=t._y1,o=t._x2,s=t._y2;if(t._l01_a>rt){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>rt){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);o=(o*c+t._x1*t._l23_2a-e*t._l12_2a)/h,s=(s*c+t._y1*t._l23_2a-n*t._l12_2a)/h}t._context.bezierCurveTo(i,r,o,s,t._x2,t._y2)}function Hl(t,e){this._context=t,this._alpha=e}Hl.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:bo(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 pm=function t(e){function n(i){return e?new Hl(i,e):new _o(i,0)}return n.alpha=function(i){return t(+i)},n}(.5);function Ul(t,e){this._context=t,this._alpha=e}Ul.prototype={areaStart:se,areaEnd:se,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:bo(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 gm=function t(e){function n(i){return e?new Ul(i,e):new yo(i,0)}return n.alpha=function(i){return t(+i)},n}(.5);function Wl(t,e){this._context=t,this._alpha=e}Wl.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:bo(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 mm=function t(e){function n(i){return e?new Wl(i,e):new xo(i,0)}return n.alpha=function(i){return t(+i)},n}(.5);function Yl(t){this._context=t}Yl.prototype={areaStart:se,areaEnd:se,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 vm(t){return new Yl(t)}function Ys(t){return t<0?-1:1}function Xs(t,e,n){var i=t._x1-t._x0,r=e-t._x1,o=(t._y1-t._y0)/(i||r<0&&-0),s=(n-t._y1)/(r||i<0&&-0),a=(o*r+s*i)/(i+r);return(Ys(o)+Ys(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function Gs(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Ki(t,e,n){var i=t._x0,r=t._y0,o=t._x1,s=t._y1,a=(o-i)/3;t._context.bezierCurveTo(i+a,r+a*e,o-a,s-a*n,o,s)}function fi(t){this._context=t}fi.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:Ki(this,this._t0,Gs(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,Ki(this,Gs(this,n=Xs(this,t,e)),n);break;default:Ki(this,this._t0,n=Xs(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function Xl(t){this._context=new Gl(t)}(Xl.prototype=Object.create(fi.prototype)).point=function(t,e){fi.prototype.point.call(this,e,t)};function Gl(t){this._context=t}Gl.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,o){this._context.bezierCurveTo(e,t,i,n,o,r)}};function _m(t){return new fi(t)}function ym(t){return new Xl(t)}function ql(t){this._context=t}ql.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=qs(t),r=qs(e),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(i[0][o],r[0][o],i[1][o],r[1][o],t[s],e[s]);(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 qs(t){var e,n=t.length-1,i,r=new Array(n),o=new Array(n),s=new Array(n);for(r[0]=0,o[0]=2,s[0]=t[0]+2*t[1],e=1;e<n-1;++e)r[e]=1,o[e]=4,s[e]=4*t[e]+2*t[e+1];for(r[n-1]=2,o[n-1]=7,s[n-1]=8*t[n-1]+t[n],e=1;e<n;++e)i=r[e]/o[e-1],o[e]-=i,s[e]-=i*s[e-1];for(r[n-1]=s[n-1]/o[n-1],e=n-2;e>=0;--e)r[e]=(s[e]-r[e+1])/o[e];for(o[n-1]=(t[n]+r[n-1])/2,e=0;e<n-1;++e)o[e]=2*t[e+1]-r[e+1];return[r,o]}function xm(t){return new ql(t)}function Di(t,e){this._context=t,this._t=e}Di.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 bm(t){return new Di(t,.5)}function wm(t){return new Di(t,0)}function km(t){return new Di(t,1)}function js(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 Sm(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?js(Object(n),!0).forEach(function(i){Tm(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):js(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function rn(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?rn=function(e){return typeof e}:rn=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rn(t)}function Tm(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function di(){return di=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},di.apply(this,arguments)}function Cm(t,e){if(t){if(typeof t=="string")return Zs(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 Zs(t,e)}}function Zs(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 jl(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=Cm(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.
|
|
115
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,a;return{s:function(){n=n.call(t)},n:function(){var l=n.next();return o=l.done,l},e:function(l){s=!0,a=l},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(s)throw a}}}}function Am(t,e){var n=[],i=[];function r(o,s){if(o.length===1)n.push(o[0]),i.push(o[0]);else{for(var a=Array(o.length-1),l=0;l<a.length;l++)l===0&&n.push(o[0]),l===a.length-1&&i.push(o[l+1]),a[l]=[(1-s)*o[l][0]+s*o[l+1][0],(1-s)*o[l][1]+s*o[l+1][1]];r(a,s)}}return t.length&&r(t,e),{left:n,right:i.reverse()}}function Mm(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 $m(t,e){e=e||2;for(var n=[],i=t,r=1/e,o=0;o<e-1;o++){var s=r/(1-r*o),a=Am(i,s);n.push(a.left),i=a.right}return n.push(i),n}function Em(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]),$m(i,n).map(Mm)}var Nm=/[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g,$e={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($e).forEach(function(t){$e[t.toLowerCase()]=$e[t]});function Tr(t,e){for(var n=Array(t),i=0;i<t;i++)n[i]=e;return n}function Dm(t){return"".concat(t.type).concat($e[t.type].map(function(e){return t[e]}).join(","))}function Om(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(o){var s=e[o],a=t[o];a===void 0&&(i.includes(o)?a=s:(a===void 0&&n[o]&&(a=t[n[o]]),a===void 0&&(a=0))),r[o]=a}),r.type=e.type,t=r}return t}function Rm(t,e,n){var i=[];if(e.type==="L"||e.type==="Q"||e.type==="C")i=i.concat(Em(t,e,n));else{var r=di({},t);r.type==="M"&&(r.type="L"),i=i.concat(Tr(n-1).map(function(){return r})),i.push(e)}return i}function Qs(t,e,n){var i=t.length-1,r=e.length-1,o=i/r,s=Tr(r).reduce(function(l,c,h){var u=Math.floor(o*h);if(n&&u<t.length-1&&n(t[u],t[u+1])){var f=o*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=s.reduce(function(l,c,h){if(h===t.length-1){var u=Tr(c,di({},t[t.length-1]));return u[0].type==="M"&&u.forEach(function(f){f.type="L"}),l.concat(u)}return l.concat(Rm(t[h],t[h+1],c))},[]);return a.unshift(t[0]),a}function Js(t){for(var e=(t||"").match(Nm)||[],n=[],i,r,o=0;o<e.length;++o)if(i=$e[e[o]],i){r={type:e[o]};for(var s=0;s<i.length;++s)r[i[s]]=+e[o+s+1];o+=i.length,n.push(r)}return n}function Lm(t,e,n){var i=t==null?[]:t.slice(),r=e==null?[]:e.slice(),o=rn(n)==="object"?n:{excludeSegment:n,snapEndsToInput:!0},s=o.excludeSegment,a=o.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=Qs(i,r,s):r.length<i.length&&(r=Qs(r,i,s))),i=i.map(function(u,f){return Om(u,r[f])});var h=i.map(function(u){return Sm({},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 p=0;p<h.length;++p){var m=i[p],g=r[p],v=h[p],y=jl($e[v.type]),x;try{for(y.s();!(x=y.n()).done;){var _=x.value;v[_]=(1-f)*m[_]+f*g[_],(_==="largeArcFlag"||_==="sweepFlag")&&(v[_]=Math.round(v[_]))}}catch(w){y.e(w)}finally{y.f()}}return h}}function Zl(t,e,n){var i=Js(t),r=Js(e),o=rn(n)==="object"?n:{excludeSegment:n,snapEndsToInput:!0},s=o.excludeSegment,a=o.snapEndsToInput;if(!i.length&&!r.length)return function(){return""};var l=Lm(i,r,{excludeSegment:s,snapEndsToInput:a});return function(h){if(h===1&&a)return e??"";var u=l(h),f="",p=jl(u),m;try{for(p.s();!(m=p.n()).done;){var g=m.value;f+=Dm(g)}}catch(v){p.e(v)}finally{p.f()}return f}}function pt(t,e,n,i){return Array.isArray(e)&&isFinite(n)?e[n%e.length]:Ne(t,e,n)||(yt(n)?`var(${ee(n)})`:null)}exports.CurveType=void 0;(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"})(exports.CurveType||(exports.CurveType={}));const Cr={[exports.CurveType.Basis]:am,[exports.CurveType.BasisClosed]:lm,[exports.CurveType.BasisOpen]:cm,[exports.CurveType.Bundle]:um,[exports.CurveType.Cardinal]:hm,[exports.CurveType.CardinalClosed]:fm,[exports.CurveType.CardinalOpen]:dm,[exports.CurveType.CatmullRom]:pm,[exports.CurveType.CatmullRomClosed]:gm,[exports.CurveType.CatmullRomOpen]:mm,[exports.CurveType.Linear]:vo,[exports.CurveType.LinearClosed]:vm,[exports.CurveType.MonotoneX]:_m,[exports.CurveType.MonotoneY]:ym,[exports.CurveType.Natural]:xm,[exports.CurveType.Step]:bm,[exports.CurveType.StepAfter]:km,[exports.CurveType.StepBefore]:wm},Bm=Object.assign(Object.assign({},Ie),{curveType:exports.CurveType.MonotoneX,lineWidth:2,lineDashArray:void 0,fallbackValue:void 0,highlightOnHover:!1,cursor:null,interpolateMissingData:!1}),Fm=Qt`
|
|
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
|
-
`,Pm=O`
|
|
126
|
-
label: line-component;
|
|
127
|
-
`,Qe=O`
|
|
128
|
-
label: line;
|
|
129
|
-
transition: opacity 200ms;
|
|
130
|
-
cursor: var(--vis-line-cursor);
|
|
131
|
-
`,Ar=O`
|
|
132
|
-
label: linePath;
|
|
133
|
-
fill: none;
|
|
134
|
-
stroke-dasharray: var(--vis-line-stroke-dasharray);
|
|
135
|
-
stroke-dashoffset: var(--vis-line-stroke-dashoffset);
|
|
136
|
-
`,Mr=O`
|
|
137
|
-
label: lineSelectionHelper;
|
|
138
|
-
fill: none;
|
|
139
|
-
stroke: rgba(0, 0, 0, 0);
|
|
140
|
-
stroke-width: 8px;
|
|
141
|
-
`,$r=O`
|
|
142
|
-
opacity: 0.2;
|
|
143
|
-
`,Er=O`
|
|
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
|
-
`,zm=Object.freeze(Object.defineProperty({__proto__:null,dim:$r,globalStyles:Fm,interpolatedPath:Er,line:Qe,linePath:Ar,lineSelectionHelper:Mr,root:Pm},Symbol.toStringTag,{value:"Module"}));class Oi extends yn{constructor(e){super(),this._defaultConfig=Bm,this.config=this._defaultConfig,this.curve=Cr[exports.CurveType.MonotoneX],this.events={[Oi.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]?Mt.North:Mt.South)===Mt.South,o=e>3,s=e>=10;return{top:!s&&(!r&&n[1]===0||r&&n[0]===0)?0:e/2,bottom:!s&&(!r&&n[0]===0||r&&n[1]===0)?0:e/2,left:o?e/2:0,right:o?e/2:0}}_render(e){super._render(e);const{config:n,datamodel:{data:i}}=this,r=yt(e)?e:n.duration;this.curve=Cr[n.curveType],this.lineGen=Ll().x(u=>u.x).y(u=>u.y).defined(u=>u.defined).curve(this.curve);const o=Xt(n.y)?n.y:[n.y],s=i.map((u,f)=>this.xScale(Y(u,n.x,f))),a=o.map(u=>{const f=i.map((y,x)=>{const _=Y(y,u,x),w=(yt(_)||_===null)&&isFinite(_)?_:n.fallbackValue,k=n.interpolateMissingData?(yt(_)||_===null)&&isFinite(_):isFinite(w);return{x:s[x],y:this.yScale(w??0),defined:k,value:w}}),p=f.reduce((y,x)=>x.defined||y,!1);let m=!1;const g=f.reduce((y,x,_)=>{!x.defined&&isFinite(n.fallbackValue)&&y.push(Object.assign(Object.assign({},x),{defined:!0})),!x.defined&&!m&&(m=!0);const w=_>0&&!f[_-1].defined||_<f.length-1&&!f[_+1].defined;return x.defined&&w&&(m||y.push(Object.assign(Object.assign({},x),{defined:!1})),y.push(x),m=!1),y},[]),v=p&&f.some(y=>y.value!==null);return{values:f,defined:p,gaps:g,visible:v}}),l=this.g.selectAll(`.${Qe}`).data(a),c=l.enter().append("g").attr("class",Qe);c.append("path").attr("class",Ar).attr("stroke",(u,f)=>pt(i,n.color,f)).attr("stroke-opacity",0).attr("stroke-width",n.lineWidth),c.append("path").attr("class",Mr).attr("d",this._emptyPath()),c.append("path").attr("class",Er).attr("d",this._emptyPath()).style("opacity",0);const h=c.merge(l);h.style("cursor",(u,f)=>Ne(i,n.cursor,f)),h.each((u,f,p)=>{var m;const g=st(p[f]),v=g.select(`.${Ar}`),y=g.select(`.${Mr}`),x=g.select(`.${Er}`),_=u.visible,w=Vr(i,n.lineDashArray,f),k=G(v,r).attr("stroke",pt(i,n.color,f)).attr("stroke-width",n.lineWidth).attr("stroke-opacity",_?1:0).style("stroke-dasharray",(m=w==null?void 0:w.join(" "))!==null&&m!==void 0?m:null),b=u.values.some(R=>!R.defined),T=this.lineGen(u.values);if(r&&!b){const R=v.attr("d")||this._emptyPath(),E=T||this._emptyPath();k.attrTween("d",()=>Zl(R,E))}else u.visible&&k.attr("d",T);y.attr("d",T).attr("visibility",_?null:"hidden"),b&&n.interpolateMissingData?G(x,r).attr("d",this.lineGen(u.gaps)).attr("stroke",pt(i,n.color,f)).attr("stroke-width",n.lineWidth-1).style("opacity",1):x.transition().duration(r).style("opacity",0)}),G(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(`.${Qe}`).classed($r,i=>i!==e)}_resetHighlight(){const{config:e}=this;e.highlightOnHover&&this.g.selectAll(`.${Qe}`).classed($r,!1)}}Oi.selectors=zm;function Im({x:t,y:e,w:n,h:i,tl:r=!1,tr:o=!1,bl:s=!1,br:a=!1,r:l=0}){let c;c=`M${t+l},${e}h${n-2*l}`;let h=o?l:0,u=o?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=s?l:0,u=s?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 Vm=Object.assign(Object.assign({},Ie),{color:void 0,groupMaxWidth:void 0,groupWidth:void 0,dataStep:void 0,groupPadding:.05,barPadding:0,roundedCorners:2,barMinHeight:2,cursor:null,orientation:li.Vertical}),Ql=O`
|
|
150
|
-
label: grouped-bar-component;
|
|
151
|
-
`,Hm=Qt`
|
|
152
|
-
:root {
|
|
153
|
-
--vis-grouped-bar-cursor: default;
|
|
154
|
-
--vis-grouped-bar-fill-color: var(--vis-color-main);
|
|
155
|
-
--vis-grouped-bar-stroke-color: none;
|
|
156
|
-
--vis-grouped-bar-stroke-width: 0px;
|
|
157
|
-
--vis-grouped-bar-hover-stroke-width: 1px;
|
|
158
|
-
--vis-grouped-bar-hover-stroke-color: none;
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
/* Dark Theme */
|
|
162
|
-
--vis-dark-grouped-bar-stroke-color: none;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
body.theme-dark ${`.${Ql}`} {
|
|
166
|
-
--vis-grouped-bar-stroke-color: var(--vis-dark-grouped-bar-stroke-color);
|
|
167
|
-
}
|
|
168
|
-
`,Fn=O`
|
|
169
|
-
label: bar;
|
|
170
|
-
fill: var(--vis-grouped-bar-fill-color);
|
|
171
|
-
stroke: var(--vis-grouped-bar-stroke-color);
|
|
172
|
-
stroke-width: var(--vis-grouped-bar-stroke-width);
|
|
173
|
-
cursor: var(--vis-grouped-bar-cursor);
|
|
174
|
-
|
|
175
|
-
&:hover {
|
|
176
|
-
stroke-width: var(--vis-grouped-bar-hover-stroke-width);
|
|
177
|
-
stroke: var(--vis-grouped-bar-hover-stroke-color);
|
|
178
|
-
}
|
|
179
|
-
`,Nr=O`
|
|
180
|
-
label: barGroup;
|
|
181
|
-
`,Jl=O`
|
|
182
|
-
label: barGroupExit;
|
|
183
|
-
`,Um=Object.freeze(Object.defineProperty({__proto__:null,bar:Fn,barGroup:Nr,barGroupExit:Jl,globalStyles:Hm,root:Ql},Symbol.toStringTag,{value:"Module"}));class Ri extends yn{constructor(e){super(),this._defaultConfig=Vm,this.config=this._defaultConfig,this.getAccessors=()=>Xt(this.config.y)?this.config.y:[this.config.y],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._getGroupWidth()/2,r=this._barData.map((p,m)=>Y(p,this.config.x,m)),o=en(r),s=or(r),a=this.dataScale(o),l=this.dataScale(s),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===li.Vertical}_render(e){const{config:n}=this,i=yt(e)?e:n.duration,r=this._getGroupWidth(),o=this.getAccessors(),s=[-r/2,r/2],a=Si().domain(_a(o.length)).range(s).paddingInner(n.barPadding).paddingOuter(n.barPadding),l=this.g.selectAll(`.${Nr}`).data(this._barData,(x,_)=>{var w;return`${(w=Ne(x,n.id,_))!==null&&w!==void 0?w:_}`}),c=(x,_)=>{const w=this.dataScale(Y(x,n.x,_)),k=this.isVertical()?w:0,b=this.isVertical()?0:w;return`translate(${k},${b})`},u=l.enter().append("g").attr("class",Nr).attr("transform",c).style("opacity",1).merge(l);G(u,i).attr("transform",c).style("opacity",1);const f=l.exit().attr("class",Jl);G(f,i).style("opacity",0).remove(),G(f.selectAll(`.${Fn}`),i).attr("transform",(x,_,w)=>this.isVertical()?`translate(0,${this.yScale(0)}) scale(1,0)`:`translate(${this.xScale(0)},0) scale(0,1)`);const p=a.bandwidth(),m=u.selectAll(`.${Fn}`).data(x=>o.map(()=>x)),g=this._getValueAxisDirection(),y=m.enter().append("path").attr("class",Fn).attr("d",(x,_)=>{const w=a(_),k=this.valueScale(0),b=p;return this._getBarPath(w,k,b,0,!1,g)}).style("fill",(x,_)=>pt(x,n.color,_)).merge(m);G(y,i).attr("d",(x,_)=>{const w=a(_),k=p,b=Y(x,o[_]),T=b<0;let R=T?this.valueScale(0):this.valueScale(b||0),E=Math.abs(this.valueScale(0)-this.valueScale(b))||0;if(E<n.barMinHeight){const U=g===Mt.North?-1:1;R=this.valueScale(0)+U*n.barMinHeight,E=n.barMinHeight}return this._getBarPath(w,R,k,E,T,g)}).style("fill",(x,_)=>pt(x,n.color,_)).style("cursor",(x,_)=>Ne(x,n.cursor,_)),G(m.exit(),i).remove()}_getValueAxisDirection(){return this.valueScale.range()[0]>this.valueScale.range()[1]?Mt.North:Mt.South}_getVisibleData(){const{config:e,datamodel:{data:n}}=this,i=this._getGroupWidth(),r=n.length<2?0:i/2,o=this.dataScale,s=Math.abs(o.invert(r)-o.invert(0));return n==null?void 0:n.filter((l,c)=>{const h=Y(l,e.x,c),u=o.domain(),f=+u[0],p=+u[1];return h>=f-s&&h<=p+s})}_getBarPath(e,n,i,r,o,s){const{config:a}=this,l=a.roundedCorners?yt(a.roundedCorners)?+a.roundedCorners:i/2:0,c=Lt(l,0,Math.min(r,i)/2),h=s===Mt.North,u=this.isVertical()&&o!==h,f=this.isVertical()&&o===h,p=!this.isVertical()&&o,m=!this.isVertical()&&!o;return Im({x:this.isVertical()?e:n+(h?0:-r),y:this.isVertical()?n+(h?0:-r):e,w:this.isVertical()?i:r,h:this.isVertical()?r:i,tl:u||p,tr:u||m,bl:f||p,br:f||m,r:c})}_getGroupWidth(){const{config:e,datamodel:{data:n}}=this;if(bh(n))return 0;if(e.groupWidth)return en([e.groupWidth,e.groupMaxWidth]);const i=this.dataScale.bandwidth,r=this.dataScale.domain?this.dataScale.domain():[];let s=1+(i?r.length:r[1]-r[0])/e.dataStep||!i&&n.filter((c,h)=>{const u=Y(c,e.x,h);return u>=r[0]&&u<=r[1]}).length||n.length;!i&&s>=2&&(s+=1);const l=(s<2?1:1-e.groupPadding)*(this.isVertical()?this._width:this._height)/s;return en([l,e.groupMaxWidth])}getValueScaleExtent(e){const{datamodel:n}=this,i=this.getAccessors(),r=e?this._getVisibleData():n.data,o=ya(r,...i),s=xa(r,...i);return[o>0?0:o,s<0?0:s]}getDataScaleExtent(){const{config:e,datamodel:n}=this;return $n(n.data,e.x)}getYDataExtent(e){return this.isVertical()?this.getValueScaleExtent(e):this.getDataScaleExtent()}getXDataExtent(){return this.isVertical()?this.getDataScaleExtent():this.getValueScaleExtent(!1)}}Ri.selectors=Um;function Wm(t){return t}var Pn=1,zn=2,Dr=3,Je=4,Ks=1e-6;function Ym(t){return"translate("+t+",0)"}function Xm(t){return"translate(0,"+t+")"}function Gm(t){return e=>+t(e)}function qm(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function jm(){return!this.__axis}function Li(t,e){var n=[],i=null,r=null,o=6,s=6,a=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,c=t===Pn||t===Je?-1:1,h=t===Je||t===zn?"x":"y",u=t===Pn||t===Dr?Ym:Xm;function f(p){var m=i??(e.ticks?e.ticks.apply(e,n):e.domain()),g=r??(e.tickFormat?e.tickFormat.apply(e,n):Wm),v=Math.max(o,0)+a,y=e.range(),x=+y[0]+l,_=+y[y.length-1]+l,w=(e.bandwidth?qm:Gm)(e.copy(),l),k=p.selection?p.selection():p,b=k.selectAll(".domain").data([null]),T=k.selectAll(".tick").data(m,e).order(),R=T.exit(),E=T.enter().append("g").attr("class","tick"),U=T.select("line"),$=T.select("text");b=b.merge(b.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),T=T.merge(E),U=U.merge(E.append("line").attr("stroke","currentColor").attr(h+"2",c*o)),$=$.merge(E.append("text").attr("fill","currentColor").attr(h,c*v).attr("dy",t===Pn?"0em":t===Dr?"0.71em":"0.32em")),p!==k&&(b=b.transition(p),T=T.transition(p),U=U.transition(p),$=$.transition(p),R=R.transition(p).attr("opacity",Ks).attr("transform",function(F){return isFinite(F=w(F))?u(F+l):this.getAttribute("transform")}),E.attr("opacity",Ks).attr("transform",function(F){var C=this.parentNode.__axis;return u((C&&isFinite(C=C(F))?C:w(F))+l)})),R.remove(),b.attr("d",t===Je||t===zn?s?"M"+c*s+","+x+"H"+l+"V"+_+"H"+c*s:"M"+l+","+x+"V"+_:s?"M"+x+","+c*s+"V"+l+"H"+_+"V"+c*s:"M"+x+","+l+"H"+_),T.attr("opacity",1).attr("transform",function(F){return u(w(F)+l)}),U.attr(h+"2",c*o),$.attr(h,c*v).text(g),k.filter(jm).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===zn?"start":t===Je?"end":"middle"),k.each(function(){this.__axis=w})}return f.scale=function(p){return arguments.length?(e=p,f):e},f.ticks=function(){return n=Array.from(arguments),f},f.tickArguments=function(p){return arguments.length?(n=p==null?[]:Array.from(p),f):n.slice()},f.tickValues=function(p){return arguments.length?(i=p==null?null:Array.from(p),f):i&&i.slice()},f.tickFormat=function(p){return arguments.length?(r=p,f):r},f.tickSize=function(p){return arguments.length?(o=s=+p,f):o},f.tickSizeInner=function(p){return arguments.length?(o=+p,f):o},f.tickSizeOuter=function(p){return arguments.length?(s=+p,f):s},f.tickPadding=function(p){return arguments.length?(a=+p,f):a},f.offset=function(p){return arguments.length?(l=+p,f):l},f}function ta(t){return Li(Pn,t)}function ea(t){return Li(zn,t)}function na(t){return Li(Dr,t)}function ia(t){return Li(Je,t)}var me;(function(t){t.Start="start",t.Middle="middle",t.End="end"})(me||(me={}));var ve;(function(t){t.Top="top",t.Middle="middle",t.Bottom="bottom"})(ve||(ve={}));var pi;(function(t){t.Wrap="wrap",t.Trim="trim"})(pi||(pi={}));var Ct;(function(t){t.Left="left",t.Center="center",t.Right="right"})(Ct||(Ct={}));var In={exports:{}},Zm=In.exports,ra;function Qm(){return ra||(ra=1,function(t){(function(e){if(typeof n!="function"){var n=function(m){return m};n.nonNative=!0}const i=n("plaintext"),r=n("html"),o=n("comment"),s=/<(\w*)>/g,a=/<\/?([^\s\/>]+)/;function l(m,g,v){m=m||"",g=g||[],v=v||"";let y=h(g,v);return u(m,y)}function c(m,g){m=m||[],g=g||"";let v=h(m,g);return function(x){return u(x||"",v)}}l.init_streaming_mode=c;function h(m,g){return m=f(m),{allowable_tags:m,tag_replacement:g,state:i,tag_buffer:"",depth:0,in_quote_char:""}}function u(m,g){if(typeof m!="string")throw new TypeError("'html' parameter must be a string");let v=g.allowable_tags,y=g.tag_replacement,x=g.state,_=g.tag_buffer,w=g.depth,k=g.in_quote_char,b="";for(let T=0,R=m.length;T<R;T++){let E=m[T];if(x===i)switch(E){case"<":x=r,_+=E;break;default:b+=E;break}else if(x===r)switch(E){case"<":if(k)break;w++;break;case">":if(k)break;if(w){w--;break}k="",x=i,_+=">",v.has(p(_))?b+=_:b+=y,_="";break;case'"':case"'":E===k?k="":k=k||E,_+=E;break;case"-":_==="<!-"&&(x=o),_+=E;break;case" ":case`
|
|
184
|
-
`:if(_==="<"){x=i,b+="< ",_="";break}_+=E;break;default:_+=E;break}else if(x===o)switch(E){case">":_.slice(-2)=="--"&&(x=i),_="";break;default:_+=E;break}}return g.state=x,g.tag_buffer=_,g.depth=w,g.in_quote_char=k,b}function f(m){let g=new Set;if(typeof m=="string"){let v;for(;v=s.exec(m);)g.add(v[1])}else!n.nonNative&&typeof m[n.iterator]=="function"?g=new Set(m):typeof m.forEach=="function"&&m.forEach(g.add,g);return g}function p(m){let g=a.exec(m);return g?g[1].toLowerCase():null}t.exports?t.exports=l:e.striptags=l})(Zm)}(In)),In.exports}var Jm=Qm();const Km=Rf(Jm);function tv(t){switch(t){case Ct.Center:return"middle";case Ct.Right:return"end";case Ct.Left:default:return"start"}}function ev(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 nv(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 iv(t,e=15){return t?t.length>e?`…${t.substr(t.length-e,e)}`:t:""}function rv(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 ov(t,e=15){return t?t.length>e?`${t.substr(0,e)}…`:t:""}function sv(t,e=15,n=me.Middle){if(!t)return"";let i=ov(t,e);return n===me.Start?i=iv(t,e):n===me.Middle&&(i=rv(t,e)),i}function Kl(t,e=[" "]){let n=[t];for(let i=0;i<e.length;i++){const r=e[i];n.forEach((o,s)=>{const a=o.split(r),l=a.map((c,h)=>`${c}${h===a.length-1?"":r}`);n[s]=l}),n=sr(n)}return n}function av(t,e,n=[" ","-",".",","]){const i=t.text();if(!i)return;const r=Xt(n)?n:[n],o=Kl(i,r),s=parseFloat(t.attr("x"))||0;t.text("");let a=t.append("tspan").attr("x",s),l=`${o[0]}`;a.text(l),o.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",s).attr("dy","1.2em").text(c),l=c):l+=c})}function lv(t,e,n,i,r,o){var s;e===void 0&&(e=50),n===void 0&&(n=me.Middle),r===void 0&&(r=+((s=window.getComputedStyle(t.node()))===null||s===void 0?void 0:s.fontSize)||0);const a=t.text(),l=a.length,c=r*l*o,u=Math.ceil(l*e/(1.1*c));return u<l?(t.text(sv(a,u,n)),!0):!1}function Vn(t,e,n=nd()){return t.length*e*n||0}function Hn(t,e,n){const i="http://www.w3.org/2000/svg",r=document.createElementNS(i,"svg"),o=document.createElementNS(i,"text");o.textContent=t,o.setAttribute("font-size",`${n}`),o.setAttribute("font-family",e),r.appendChild(o),document.body.appendChild(r);const s=o.getComputedTextLength();return document.body.removeChild(r),s}function cv(t,e=void 0,n=!0,i=Ha,r=!1){const o=`${t.text}`;if(!o)return[];const s=Array.isArray(i)?i:[i];return o.split(`
|
|
185
|
-
`).map(l=>{const c=[];if(!e)return[l];const h=Kl(l,s);let u="";for(let f=0;f<h.length;f+=1){(n?Vn(u+h[f],t.fontSize,t.fontWidthToHeightRatio):Hn(u+h[f],t.fontFamily,t.fontSize))<e||f===0?u+=h[f]:(c.push(u.trim()),u=h[f]);const m=2;if(r)for(;u.trim().length>m&&(n?Vn(u,t.fontSize,t.fontWidthToHeightRatio):Hn(u,t.fontFamily,t.fontSize))>e;){let v=u.trim().length-m;for(;v>0;){const y=`${u.substring(0,v)}${Ua}`;if((n?Vn(y,t.fontSize,t.fontWidthToHeightRatio):Hn(y,t.fontFamily,t.fontSize))<=e||v===1){c.push(y.trim()),u=u.substring(v);break}v--}}}return u&&c.push(u.trim()),c}).flat()}function uv(t,e=void 0,n=void 0,i=!0,r=Ha,o=!1){const s=Array.isArray(t)?t.map(u=>_e(ls,u)):[_e(ls,t)],a=s.map(u=>cv(u,e,i,r,o)),l=s[0];let c=-l.fontSize*(l.lineHeight-1);const h=[];return s.forEach((u,f)=>{var p;let m=a[f];const g=f>0?h[f-1]:void 0,v=g?g.marginBottom:0,y=u.marginTop,x=Math.max(v,y);c+=x;const _=u.fontSize*u.lineHeight;let w=0;for(let k=0;k<m.length;k+=1){let b=m[k];c+=_;const T=`${b} …`,R=i?Vn(T,u.fontSize,u.fontWidthToHeightRatio):Hn(T,u.fontFamily,u.fontSize);if(w=Math.max(R,w),n&&c+_>n&&k!==m.length-1){b.charAt(b.length-1)===Ua&&(b=b.substr(0,m[k].length-1)),R<e?m[k]=T:m[k]=`${m[k].substr(0,m[k].length-2)}…`,m=m.slice(0,k+1);break}}h.push(Object.assign(Object.assign({},u),{_lines:m,_estimatedHeight:c-((g==null?void 0:g._estimatedHeight)||0),_maxWidth:Math.max(w,(p=g==null?void 0:g._maxWidth)!==null&&p!==void 0?p:0)}))}),h}function hv(t,e=0,n){return t.map((i,r)=>{const o=r>0?t[r-1]:void 0,s=o?o.marginBottom/o.fontSize:0,a=i.marginTop/i.fontSize,l=Math.max(s,a),c={fontSize:i.fontSize,fontFamily:i.fontFamily,fontWeight:i.fontWeight,fill:i.color,y:r===0&&n};return`<tspan xmlns="http://www.w3.org/2000/svg" ${Object.entries(c).filter(([u,f])=>f).map(([u,f])=>`${ev(u)}="${nv(f.toString())}"`).join(" ")}>${i._lines.map((u,f)=>{let p;return r===0&&f===0?p=.8+l:f===0?p=l+i.lineHeight:p=i.lineHeight,`<tspan x="${e}" dy="${p}em">${u.length?u:" "}</tspan>`}).join("")}</tspan>`})}function fv(t){return _h(t,e=>e._estimatedHeight)}const dv=["text","tspan","textPath","altGlyph","altGlyphDef","altGlyphItem","glyphRef","textRef","textArea"];function pv(t,e,n,i){var r,o;const s=uv(e,n.width,void 0,n.fastMode,n.separator,n.wordBreak),a=(r=n.x)!==null&&r!==void 0?r:+t.getAttribute("x"),l=(o=n.y)!==null&&o!==void 0?o:+t.getAttribute("y"),c=a??0;let h=l??0;if(n.textAlign&&t.setAttribute("text-anchor",tv(n.textAlign)),n.verticalAlign&&n.verticalAlign!==ve.Top){const u=fv(s),f=n.verticalAlign===ve.Middle?-u/2:n.verticalAlign===ve.Bottom?-u:0;h+=f}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="",s.forEach(f=>{const p=hv([f],c,h).join(""),m=Km(p,dv),g=u.parseFromString(m,"image/svg+xml").firstChild;t.appendChild(g)})}}const gv=Object.assign(Object.assign({},Ie),{position:void 0,type:void 0,label:void 0,labelFontSize:null,gridLine:!0,tickLine:!0,domainLine:!0,numTicks:void 0,minMaxTicksOnly:!1,minMaxTicksOnlyWhenWidthIsLess:250,tickTextWidth:void 0,tickTextSeparator:void 0,tickTextForceWordBreak:!1,tickTextTrimType:me.Middle,tickTextFitMode:pi.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}),tc=O`
|
|
186
|
-
label: axis-component;
|
|
187
|
-
`,mv=Qt`
|
|
188
|
-
:root {
|
|
189
|
-
// Undefined by default to allow proper fallback to var(--vis-font-family)
|
|
190
|
-
/* --vis-axis-font-family: */
|
|
191
|
-
--vis-axis-tick-color: #e8e9ef;
|
|
192
|
-
/* --vis-axis-domain-color: // Undefined by default to allow fallback to var(--vis-axis-tick-color) */
|
|
193
|
-
--vis-axis-grid-color: #e8e9ef;
|
|
194
|
-
--vis-axis-label-color: #6c778c;
|
|
195
|
-
--vis-axis-tick-label-color: #6c778c;
|
|
196
|
-
--vis-axis-tick-label-font-size: 12px;
|
|
197
|
-
--vis-axis-tick-label-cursor: default;
|
|
198
|
-
--vis-axis-tick-label-text-decoration: none;
|
|
199
|
-
--vis-axis-label-font-size: 14px;
|
|
200
|
-
--vis-axis-tick-line-width: 1px;
|
|
201
|
-
--vis-axis-tick-label-hide-transition: opacity 400ms ease-in-out;
|
|
202
|
-
--vis-axis-grid-line-width: 1px;
|
|
203
|
-
/* --vis-axis-domain-line-width: // Undefined by default to allow fallback to var(--vis-axis-grid-line-width) */
|
|
204
|
-
|
|
205
|
-
--vis-dark-axis-tick-color: #6c778c;
|
|
206
|
-
/* --vis-dark-axis-domain-color: // Undefined by default to allow fallback to var(--vis-dark-axis-tick-color) */
|
|
207
|
-
--vis-dark-axis-tick-label-color: #e8e9ef;
|
|
208
|
-
--vis-dark-axis-grid-color: #6c778c;
|
|
209
|
-
--vis-dark-axis-label-color: #fefefe;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
body.theme-dark ${`.${tc}`} {
|
|
213
|
-
--vis-axis-tick-color: var(--vis-dark-axis-tick-color);
|
|
214
|
-
--vis-axis-domain-color: var(--vis-dark-axis-domain-color);
|
|
215
|
-
--vis-axis-tick-label-color: var(--vis-dark-axis-tick-label-color);
|
|
216
|
-
--vis-axis-grid-color: var(--vis-dark-axis-grid-color);
|
|
217
|
-
--vis-axis-label-color: var(--vis-dark-axis-label-color);
|
|
218
|
-
}
|
|
219
|
-
`,wo=O`
|
|
220
|
-
label: hide-tick-line;
|
|
221
|
-
`,ko=O`
|
|
222
|
-
label: hide-domain;
|
|
223
|
-
`,ec=O`
|
|
224
|
-
label: axis;
|
|
225
|
-
|
|
226
|
-
user-select: none;
|
|
227
|
-
|
|
228
|
-
.domain {
|
|
229
|
-
stroke: var(--vis-axis-domain-color, var(--vis-axis-tick-color));
|
|
230
|
-
stroke-width: var(--vis-axis-domain-line-width, var(--vis-axis-grid-line-width));
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
&${`.${wo}`} {
|
|
234
|
-
.tick > line {
|
|
235
|
-
opacity: 0;
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
&${`.${ko}`} {
|
|
240
|
-
.domain {
|
|
241
|
-
opacity: 0;
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
`,nc=O`
|
|
245
|
-
label: grid;
|
|
246
|
-
|
|
247
|
-
.domain {
|
|
248
|
-
opacity: 0;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
line {
|
|
252
|
-
stroke: var(--vis-axis-grid-color);
|
|
253
|
-
stroke-width: var(--vis-axis-grid-line-width);
|
|
254
|
-
}
|
|
255
|
-
`,ic=O`
|
|
256
|
-
label: tick;
|
|
257
|
-
|
|
258
|
-
stroke: none;
|
|
259
|
-
font-size: var(--vis-axis-tick-label-font-size);
|
|
260
|
-
|
|
261
|
-
line {
|
|
262
|
-
stroke: var(--vis-axis-tick-color);
|
|
263
|
-
stroke-width: var(--vis-axis-tick-line-width);
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
text {
|
|
267
|
-
fill: var(--vis-axis-tick-label-color);
|
|
268
|
-
cursor: var(--vis-axis-tick-label-cursor);
|
|
269
|
-
font-family: var(--vis-axis-font-family, var(--vis-font-family));
|
|
270
|
-
text-decoration: var(--vis-axis-tick-label-text-decoration);
|
|
271
|
-
stroke: none;
|
|
272
|
-
}
|
|
273
|
-
`,Or=O`
|
|
274
|
-
label: label;
|
|
275
|
-
fill: var(--vis-axis-label-color);
|
|
276
|
-
font-size: var(--vis-axis-label-font-size);
|
|
277
|
-
font-family: var(--vis-axis-font-family, var(--vis-font-family));
|
|
278
|
-
text-anchor: middle;
|
|
279
|
-
`,rc=O`
|
|
280
|
-
label: tick-label;
|
|
281
|
-
`,oc=O`
|
|
282
|
-
label: tick-label-hideable;
|
|
283
|
-
opacity: 0;
|
|
284
|
-
transition: var(--vis-axis-tick-label-hide-transition);
|
|
285
|
-
`,vv=Object.freeze(Object.defineProperty({__proto__:null,axis:ec,globalStyles:mv,grid:nc,hideDomain:ko,hideTickLine:wo,label:Or,root:tc,tick:ic,tickLabel:rc,tickLabelHideable:oc},Symbol.toStringTag,{value:"Module"}));class sc extends yn{constructor(e){super(),this._defaultConfig=gv,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",nc)}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===H.X?M.Bottom:M.Left)}_getAxisSize(e){return e.node().getBBox()}_getRequiredMargin(e=this._axisSizeBBox){const{config:{type:n,position:i}}=this;switch(n){case H.X:{const o=this._axisSizeBBox.x+this._axisSizeBBox.width,s=this._axisSizeBBox.x<0?Math.abs(this._axisSizeBBox.x):0,a=o-this._width>1?o-this._width:0;switch(i){case M.Top:return{top:e.height,left:s,right:a};case M.Bottom:default:return{bottom:e.height,left:s,right:a}}}case H.Y:{const r=e.height>this._height?(e.height-this._height)/2:0,o=r,s=r;switch(i){case M.Right:return{right:e.width,top:o,bottom:s};case M.Left:default:return{left:e.width,top:o,bottom:s}}}}}getRequiredMargin(){return this._requiredMargin}getOffset(e){const{config:{type:n,position:i}}=this;switch(n){case H.X:switch(i){case M.Top:return{top:e.top,left:e.left};case M.Bottom:default:return{top:e.top+this._height,left:e.left}}case H.Y:switch(i){case M.Right:return{top:e.top,left:e.left+this._width};case M.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().tickFormat(()=>"");r.tickValues(this._getConfiguredTickValues()),this.gridGroup.selectAll("*").interrupt(),G(this.gridGroup,e).call(r).style("opacity",1)}else G(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 H.X:switch(n){case M.Top:return ta(this.xScale).ticks(r).tickPadding(i);case M.Bottom:default:return na(this.xScale).ticks(r).tickPadding(i)}case H.Y:switch(n){case M.Right:return ea(this.yScale).ticks(r).tickPadding(i);case M.Left:default:return ia(this.yScale).ticks(r).tickPadding(i)}}}_buildGrid(){const{config:{type:e,position:n}}=this,i=this._getNumTicks();switch(e){case H.X:switch(n){case M.Top:return ta(this.xScale).ticks(i*2).tickSize(-this._height).tickSizeOuter(0);case M.Bottom:default:return na(this.xScale).ticks(i*2).tickSize(-this._height).tickSizeOuter(0)}case H.Y:switch(n){case M.Right:return ea(this.yScale).ticks(i*2).tickSize(-this._width).tickSizeOuter(0);case M.Left:default:return ia(this.yScale).ticks(i*2).tickSize(-this._width).tickSizeOuter(0)}}}_renderAxis(e=this.axisGroup,n=this.config.duration){const{config:i}=this,r=this._buildAxis(),o=this._getConfiguredTickValues()||r.scale().ticks(this._getNumTicks());r.tickValues(o),e.selectAll("*").interrupt(),G(e,n).call(r);const s=e.selectAll("g.tick");s.classed(ic,!0).style("font-size",i.tickTextFontSize);const a=e.selectAll("g.tick > text").filter(l=>o.some(c=>on(l,c))).classed(rc,!0).classed(oc,!!i.tickTextHideOverlapping).style("fill",i.tickTextColor);if(a.nodes().forEach(l=>Qr(l)),a.each((l,c,h)=>{var u,f;let p=(f=(u=i.tickFormat)===null||u===void 0?void 0:u.call(i,l,c,o))!==null&&f!==void 0?f:`${l}`;const m=h[c],g=i.tickTextWidth||(i.type===H.X?this._containerWidth/(s.size()+1):this._containerWidth/5),v=getComputedStyle(m),y=Number.parseFloat(v.fontSize),x=v.fontFamily,_={verticalAlign:i.type===H.X?ve.Top:ve.Middle,width:g,textRotationAngle:i.tickTextAngle,separator:i.tickTextSeparator,wordBreak:i.tickTextForceWordBreak};if(i.tickTextFitMode===pi.Trim){const k=st(m).text(p);lv(k,g,i.tickTextTrimType,!0,y,.58),p=st(m).text()}pv(m,{text:p,fontFamily:x,fontSize:y},_)}),e.classed(ec,!0).classed(wo,!i.tickLine).classed(ko,!i.domainLine),i.fullSize){const l=this._getFullDomainPath(0);G(e.select(".domain"),n).attr("d",l)}}_resolveTickLabelOverlap(e=this.axisGroup){const{config:n}=this,i=e.selectAll("g.tick > text");if(!n.tickTextHideOverlapping){i.style("opacity",null);return}cancelAnimationFrame(this._collideTickLabelsAnimFrameId),this._collideTickLabelsAnimFrameId=requestAnimationFrame(()=>{this._collideTickLabels(i)})}_collideTickLabels(e){e.each((i,r,o)=>{const s=o[r];s._visible=!0});const n=3;for(let i=0;i<n;i+=1)e.each((r,o,s)=>{const a=s[o];if(!a._visible)return;const c=a.getBoundingClientRect();for(let h=o+1;h<s.length;h+=1){if(o===h)continue;const u=s[h];if(u._visible){const p=u.getBoundingClientRect();if(Pf(c,p,-5)){u._visible=!1;break}}}});e.each((i,r,o)=>{const s=o[r];st(s).style("opacity",s._visible?1:0)})}_getNumTicks(){const{config:{type:e,numTicks:n}}=this;if(n)return n;if(e===H.X){const i=this.xScale.range(),r=i[1]-i[0];return Math.floor(r/175)}if(e===H.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===H.X?this.xScale:this.yScale,i=n==null?void 0:n.domain();return e.tickValues?e.tickValues.filter(r=>r>=i[0]&&r<=i[1]):e.minMaxTicksOnly||e.type===H.X&&this._width<e.minMaxTicksOnlyWhenWidthIsLess?i:null}_getFullDomainPath(e=0){const{config:{type:n}}=this;switch(n){case H.X:return`M0.5, ${e} V0.5 H${this._width+.5} V${e}`;case H.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:o,labelFontSize:s}=this.config;e.selectAll(`.${Or}`).remove();const a=this.getPosition(),{width:l,height:c}=(n=this._axisRawBBox)!==null&&n!==void 0?n:e.node().getBBox(),h=i===H.X?this._width/2:Math.pow(-1,+(a===M.Left))*l,u=i===H.X?Math.pow(-1,+(a===M.Top))*c:this._height/2,f=i===H.X?0:Math.pow(-1,+(a===M.Left))*o,p=i===H.X?Math.pow(-1,+(a===M.Top))*o:0,m=i===H.Y?-90:0;e.append("text").attr("class",Or).text(r).attr("dy",`${this._getLabelDY()}em`).attr("transform",`translate(${h+f},${u+p}) rotate(${m})`).style("font-size",s).style("fill",this.config.labelColor)}_getLabelDY(){const{type:e,position:n}=this.config;switch(e){case H.X:switch(n){case M.Top:return 0;case M.Bottom:default:return .75}case H.Y:switch(n){case M.Right:return .75;case M.Left:default:return-.25}}}_alignTickLabels(){const{config:{type:e,tickTextAlign:n,tickTextAngle:i,position:r}}=this,o=this.g.selectAll("g.tick > text"),s=this._getTickTextAnchor(n),a=e===H.X?0:this._getYTickTextTranslate(n,r),l=i?`translate(${a},0) rotate(${i})`:`translate(${a},0)`;o.attr("transform",l).attr("text-anchor",s)}_getTickTextAnchor(e){switch(e){case Ct.Left:return"start";case Ct.Right:return"end";case Ct.Center:return"middle";default:return null}}_getYTickTextTranslate(e,n=M.Left){const r=this._axisRawBBox.width-9;switch(e){case Ct.Left:return n===M.Left?r*-1:0;case Ct.Right:return n===M.Left?0:r;case Ct.Center:return n===M.Left?r*-.5:r*.5;default:return 0}}}sc.selectors=vv;var Ot;(function(t){t.Circle="circle",t.Cross="cross",t.Diamond="diamond",t.Square="square",t.Star="star",t.Triangle="triangle",t.Wye="wye"})(Ot||(Ot={}));const _v={[Ot.Circle]:Bl,[Ot.Cross]:j0,[Ot.Diamond]:Q0,[Ot.Square]:J0,[Ot.Star]:nm,[Ot.Triangle]:im,[Ot.Wye]:om},_t=Object.assign(Object.assign({},Ot),{Line:"line"});var gi;(function(t){t.Horizontal="horizontal",t.Vertical="vertical"})(gi||(gi={}));const yv={items:[],labelClassName:"",onLegendItemClick:void 0,labelFontSize:null,labelMaxWidth:null,bulletSize:null,bulletShape:t=>{var e;return(e=t.shape)!==null&&e!==void 0?e:_t.Circle},orientation:gi.Horizontal,renderIntoProvidedDomNode:!1},tr=hn*3,xv={[_t.Circle]:Math.PI/4,[_t.Cross]:5/9,[_t.Diamond]:Math.sqrt(3)/6,[_t.Square]:1,[_t.Star]:.3,[_t.Triangle]:Math.sqrt(3)/4,[_t.Wye]:5/11};function bv(t){t.each((e,n,i)=>{st(i[n]).append("svg").attr("width","100%").attr("height","100%").append("path")})}function wv(t,e,n){t.each((i,r,o)=>{const s=Ne(i,e.bulletShape,r),a=pt(i,n,r),l=tr,c=s===_t.Line?tr/2.5:tr,u=st(o[r]).select("svg").attr("viewBox",`0 0 ${l} ${c}`).select("path").attr("stroke",a),f=i.inactive?"var(--vis-legend-bullet-inactive-opacity)":1;if(s===_t.Line)u.attr("d",`M0,${c/2} L${l/2},${c/2} L${l},${c/2}`).attr("transform",null).style("opacity",f).style("stroke-width","3px").style("fill",null).style("fill-opacity",null).style("marker-start","none").style("marker-end","none");else{const p=sm().type(_v[s]).size(l*c*xv[s]),m=(l-2)/l;let g=c/2;switch(s){case _t.Triangle:g+=c/8;break;case _t.Star:g+=c/16;break;case _t.Wye:g-=c/16;break}u.attr("d",p).attr("transform",`translate(${l/2}, ${Math.round(g)}) scale(${m})`).style("stroke-width","1px").style("opacity",null).style("fill",a).style("fill-opacity",f)}})}const So=O`
|
|
286
|
-
label: bullet-legend-component;
|
|
287
|
-
`,kv=Qt`
|
|
288
|
-
:root {
|
|
289
|
-
// Undefined by default to allow proper fallback to var(--vis-font-family)
|
|
290
|
-
/* --vis-legend-font-family: */
|
|
291
|
-
|
|
292
|
-
--vis-legend-label-color: #6c778c;
|
|
293
|
-
--vis-legend-label-max-width: 300px;
|
|
294
|
-
--vis-legend-label-font-size: 12px;
|
|
295
|
-
--vis-legend-bullet-size: 9px;
|
|
296
|
-
--vis-legend-bullet-inactive-opacity: 0.15;
|
|
297
|
-
--vis-legend-item-spacing: 20px;
|
|
298
|
-
--vis-legend-vertical-item-spacing: 5px;
|
|
299
|
-
--vis-legend-bullet-label-spacing: 8px;
|
|
300
|
-
|
|
301
|
-
--vis-dark-legend-label-color: #eee;
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
body.theme-dark ${`.${So}`} {
|
|
305
|
-
--vis-legend-label-color: var(--vis-dark-legend-label-color);
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
body.theme-patterns {
|
|
309
|
-
--vis-legend-bullet-size: 14px;
|
|
310
|
-
}
|
|
311
|
-
`,Un=O`
|
|
312
|
-
label: legendItem;
|
|
313
|
-
display: inline-flex;
|
|
314
|
-
align-items: center;
|
|
315
|
-
font-family: var(--vis-legend-font-family, var(--vis-font-family));
|
|
316
|
-
margin-right: var(--vis-legend-item-spacing);
|
|
317
|
-
white-space: nowrap;
|
|
318
|
-
cursor: default;
|
|
319
|
-
user-select: none;
|
|
320
|
-
max-width: min-content;
|
|
321
|
-
`,ac=O`
|
|
322
|
-
label: legendItemVertical;
|
|
323
|
-
display: flex;
|
|
324
|
-
margin-top: var(--vis-legend-vertical-item-spacing);
|
|
325
|
-
`,lc=O`
|
|
326
|
-
cursor: pointer;
|
|
327
|
-
`,Rr=O`
|
|
328
|
-
label: legendItemLabel;
|
|
329
|
-
font-size: var(--vis-legend-label-font-size);
|
|
330
|
-
display: inline-block;
|
|
331
|
-
vertical-align: middle;
|
|
332
|
-
color: var(--vis-legend-label-color);
|
|
333
|
-
max-width: var(--vis-legend-label-max-width);
|
|
334
|
-
text-overflow: ellipsis;
|
|
335
|
-
overflow: hidden;
|
|
336
|
-
white-space: nowrap;
|
|
337
|
-
`,Lr=O`
|
|
338
|
-
flex: 0 0 auto;
|
|
339
|
-
label: legendItemBullet;
|
|
340
|
-
margin-right: var(--vis-legend-bullet-label-spacing);
|
|
341
|
-
height: var(--vis-legend-bullet-size);
|
|
342
|
-
width: var(--vis-legend-bullet-size);
|
|
343
|
-
|
|
344
|
-
svg {
|
|
345
|
-
display: block;
|
|
346
|
-
}
|
|
347
|
-
`,Sv=Object.freeze(Object.defineProperty({__proto__:null,bullet:Lr,clickable:lc,item:Un,itemVertical:ac,label:Rr,root:So,variables:kv},Symbol.toStringTag,{value:"Module"}));class cc{constructor(e,n){this._defaultConfig=yv,this.config=this._defaultConfig,this._colorAccessor=i=>i.color,this._container=e,this.div=n!=null&&n.renderIntoProvidedDomNode?st(this._container):st(this._container).append("div"),this.div.classed(So,!0),this.element=this.div.node(),n&&this.update(n)}update(e){this.prevConfig=this.config,this.config=_e(this._defaultConfig,e),this.render()}render(){const{config:e}=this,n=this.div.selectAll(`.${Un}`).data(e.items),i=n.enter().append("div").on("click",this._onItemClick.bind(this)),r=i.merge(n);r.attr("class",o=>{var s;return`${Un} ${(s=o.className)!==null&&s!==void 0?s:""}`}).classed(ac,e.orientation===gi.Vertical).classed(lc,o=>!!e.onLegendItemClick&&this._isItemClickable(o)).attr("title",o=>o.name).style("display",o=>o.hidden?"none":null),i.append("span").attr("class",Lr).call(bv),r.select(`.${Lr}`).style("width",e.bulletSize).style("height",e.bulletSize).style("box-sizing","content-box").call(wv,this.config,this._colorAccessor),i.append("span").attr("class",Rr).classed(e.labelClassName,!0).style("max-width",e.labelMaxWidth).style("font-size",e.labelFontSize),r.select(`.${Rr}`).text(o=>o.name),n.exit().remove()}_isItemClickable(e){return e.pointer===void 0?!0:e.pointer}_onItemClick(e,n){const{config:{onLegendItemClick:i}}=this,o=this.div.selectAll(`.${Un}`).nodes().indexOf(e.currentTarget);i&&i(n,o)}destroy(){this.element!==this._container&&this.div.remove()}}cc.selectors=Sv;const Tv=Object.assign(Object.assign({},Ie),{yStacked:void 0,baseline:null,duration:100,tooltip:void 0,template:(t,e)=>"",hideWhenFarFromPointer:!0,hideWhenFarFromPointerDistance:100,snapToData:!0,getCircles:void 0,color:void 0,strokeColor:void 0,strokeWidth:void 0}),Cv=Qt`
|
|
348
|
-
:root {
|
|
349
|
-
--vis-crosshair-line-stroke-color: #888;
|
|
350
|
-
--vis-crosshair-line-stroke-width: 1px;
|
|
351
|
-
--vis-crosshair-line-stroke-opacity: 1;
|
|
352
|
-
--vis-crosshair-circle-stroke-color: #fff;
|
|
353
|
-
--vis-crosshair-circle-stroke-width: 1px;
|
|
354
|
-
--vis-crosshair-circle-stroke-opacity: 0.75;
|
|
355
|
-
}
|
|
356
|
-
`,Av=O`
|
|
357
|
-
label: crosshair-component;
|
|
358
|
-
`,uc=O`
|
|
359
|
-
stroke: var(--vis-crosshair-line-stroke-color);
|
|
360
|
-
stroke-width: var(--vis-crosshair-line-stroke-width);
|
|
361
|
-
stroke-opacity: var(--vis-crosshair-line-stroke-opacity);
|
|
362
|
-
pointer-events: none;
|
|
363
|
-
`,hc=O`
|
|
364
|
-
stroke: var(--vis-crosshair-circle-stroke-color);
|
|
365
|
-
stroke-width: var(--vis-crosshair-circle-stroke-width);
|
|
366
|
-
stroke-opacity: var(--vis-crosshair-circle-stroke-opacity);
|
|
367
|
-
pointer-events: none;
|
|
368
|
-
`,Mv=Object.freeze(Object.defineProperty({__proto__:null,circle:hc,globalStyles:Cv,line:uc,root:Av},Symbol.toStringTag,{value:"Module"}));class fc extends yn{constructor(e){super(),this.clippable=!0,this._defaultConfig=Tv,this.config=this._defaultConfig,this.x=0,this.show=!1,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",this.show?1:0),this.line=this.g.append("line").attr("class",uc)}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,o=i?n.y:this._accessors.y,s=o?Xt(o)?o:[o]: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:s,yStacked:a,baseline:l}}setContainer(e){this.container=e,this.container.on("mousemove.crosshair",this._onMouseMove.bind(this)),this.container.on("mouseout.crosshair",this._onMouseOut.bind(this))}_render(e){const{config:n}=this;if(n.snapToData&&!this.datum)return;const i=yt(e)?e:n.duration;G(this.g,i).style("opacity",this.show?1:0),this.line.attr("y1",0).attr("y1",this._height),G(this.line,i,gs).attr("x1",this.x).attr("x2",this.x);const r=this.getCircleData(),o=this.g.selectAll("circle").data(r,(a,l)=>{var c;return(c=a.id)!==null&&c!==void 0?c:l}),s=o.enter().append("circle").attr("class",hc).attr("r",0).attr("cx",this.x).attr("cy",a=>a.y).style("fill",a=>a.color).style("stroke",a=>a.strokeColor).style("stroke-width",a=>a.strokeWidth);G(s.merge(o),i,gs).attr("cx",this.x).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),o.exit().remove()}hide(){this._onMouseOut()}_onMouseMove(e){var n,i;const{config:r,datamodel:o,element:s}=this;!this.accessors.x&&(!((n=o.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[a]=Yn(e,s),l=this.xScale.range();if(r.snapToData){!this.accessors.y&&!this.accessors.yStacked&&(!((i=o.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");const c=this.xScale,h=c.invert(a);if(this.datum=Th(o.data,h,this.accessors.x),this.datumIndex=o.data.indexOf(this.datum),!this.datum)return;this.x=Lt(Math.round(c(Y(this.datum,this.accessors.x,this.datumIndex))),0,this._width),this.show=this.x>=0&&this.x<=this._width&&(!r.hideWhenFarFromPointer||Math.abs(this.x-a)<r.hideWhenFarFromPointerDistance)}else this.x=Lt(a,l[0],l[1]),this.show=a>=l[0]-2&&a<=l[1]+2;window.cancelAnimationFrame(this._animFrameId),this._animFrameId=window.requestAnimationFrame(()=>{this._render()}),this.show?this._showTooltip(e):this._hideTooltip()}_onMouseOut(){this.show=!1,window.cancelAnimationFrame(this._animFrameId),this._animFrameId=window.requestAnimationFrame(()=>{this._render()}),this._hideTooltip()}_showTooltip(e){var n;const{config:i}=this,r=(n=i.tooltip)!==null&&n!==void 0?n:this.tooltip;if(!r)return;const o=r.getContainer()||this.container.node(),[s,a]=r.isContainerBody()?[e.clientX,e.clientY]:Yn(e,o),l=i.template(this.datum,this.xScale.invert(this.x));if(r.config.followCursor=!0,!r.config.horizontalPlacement||r.config.horizontalPlacement===M.Auto){const c=r.isContainerBody()?s-this.container.node().getBoundingClientRect().left:s;r.overrideHorizontalPlacement(c>this._containerWidth/2?M.Left:M.Right)}l&&r.show(l,{x:s,y:a})}_hideTooltip(){var e;const{config:n}=this,i=(e=n.tooltip)!==null&&e!==void 0?e:this.tooltip;i==null||i.hide()}getYDataExtent(){return[void 0,void 0]}getCircleData(){var e,n;const{config:i,datamodel:{data:r}}=this;if(Ir(i.getCircles))return i.getCircles(this.xScale.invert(this.x),r,this.yScale);if(i.snapToData&&this.datum){const o=(e=this.accessors.y)!==null&&e!==void 0?e:[],s=(n=this.accessors.yStacked)!==null&&n!==void 0?n:[],a=Y(this.datum,this.accessors.baseline,this.datumIndex)||0,l=kh(this.datum,this.datumIndex,...s).map((h,u,f)=>({y:this.yScale(h+a),opacity:yt(Y(this.datum,s[u]))?1:0,color:pt(this.datum,i.color,u),strokeColor:i.strokeColor?pt(this.datum,i.strokeColor,u):void 0,strokeWidth:i.strokeWidth?Y(this.datum,i.strokeWidth,u):void 0})),c=o.map((h,u)=>{const f=Y(this.datum,h);return{y:this.yScale(f),opacity:yt(f)?1:0,color:pt(this.datum,i.color,l.length+u),strokeColor:i.strokeColor?pt(this.datum,i.strokeColor,u):void 0,strokeWidth:i.strokeWidth?Y(this.datum,i.strokeWidth,u):void 0}});return l.concat(c)}return[]}}fc.selectors=Mv;const $v=Object.assign(Object.assign({},Ie),{color:void 0,curveType:exports.CurveType.MonotoneX,baseline:()=>0,opacity:1,cursor:null,minHeight1Px:!1}),dc=O`
|
|
369
|
-
label: area-component;
|
|
370
|
-
`,Ev=Qt`
|
|
371
|
-
:root {
|
|
372
|
-
--vis-area-cursor: default;
|
|
373
|
-
--vis-area-fill-opacity: 1;
|
|
374
|
-
--vis-area-stroke-color: none;
|
|
375
|
-
--vis-area-stroke-width: 0px;
|
|
376
|
-
--vis-area-stroke-dasharray: none;
|
|
377
|
-
--vis-area-stroke-opacity: 1;
|
|
378
|
-
--vis-area-hover-fill-opacity: none;
|
|
379
|
-
--vis-area-hover-stroke-width: none;
|
|
380
|
-
|
|
381
|
-
/* Dark Theme */
|
|
382
|
-
--vis-dark-area-stroke-color: none;
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
body.theme-dark ${`.${dc}`} {
|
|
386
|
-
--vis-area-stroke-color: var(--vis-dark-area-stroke-color);
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
`,Br=O`
|
|
390
|
-
label: area;
|
|
391
|
-
cursor: var(--vis-area-cursor);
|
|
392
|
-
fill-opacity: var(--vis-area-fill-opacity);
|
|
393
|
-
stroke-width: var(--vis-area-stroke-width);
|
|
394
|
-
stroke-dasharray: var(--vis-area-stroke-dasharray);
|
|
395
|
-
stroke: var(--vis-area-stroke-color);
|
|
396
|
-
stroke-opacity: var(--vis-area-stroke-opacity);
|
|
397
|
-
|
|
398
|
-
&:hover {
|
|
399
|
-
fill-opacity: var(--vis-area-hover-fill-opacity);
|
|
400
|
-
stroke-width: var(--vis-area-hover-stroke-width);
|
|
401
|
-
}
|
|
402
|
-
`,Nv=Object.freeze(Object.defineProperty({__proto__:null,area:Br,globalStyles:Ev,root:dc},Symbol.toStringTag,{value:"Module"}));class Bi extends yn{constructor(e){super(),this._defaultConfig=$v,this.config=this._defaultConfig,this.stacked=!0,this.events={[Bi.selectors.area]:{}},e&&this.setConfig(e),this.stacked=Array.isArray(this.config.y)}_render(e){super._render(e);const{config:n,datamodel:{data:i}}=this,r=yt(e)?e:n.duration,o=Cr[n.curveType];this._areaGen=Y0().x(g=>g.x).y0(g=>g.y0).y1(g=>{const v=Math.abs(g.y1-g.y0)<1;return g.y1-(v&&n.minHeight1Px?1:0)}).curve(o);const s=Xt(n.y)?n.y:[n.y],a=i.map((g,v)=>this.xScale(Y(g,n.x,v))),l=Sh(i,n.baseline,s,this._prevNegative);this._prevNegative=l.map(g=>!!g.isMostlyNegative);const c=l.map(g=>g.map((v,y)=>({y0:this.yScale(v[0]),y1:this.yScale(v[1]),x:a[y]}))),h=c.length-1,u=c.reverse(),f=this.g.selectAll(`.${Br}`).data(u),p=f.enter().append("path").attr("class",Br).attr("d",g=>this._areaGen(g)||this._emptyPath()).style("opacity",0).style("fill",(g,v)=>pt(i,n.color,h-v)),m=G(p.merge(f),r).style("opacity",(g,v)=>g.some(x=>x.y0-x.y1!==0)?Y(i,n.opacity,h-v):0).style("fill",(g,v)=>pt(i,n.color,h-v)).style("cursor",(g,v)=>Ne(i,n.cursor,h-v));r?m.attrTween("d",(v,y,x)=>{const _=st(x[y]).attr("d"),w=this._areaGen(v)||this._emptyPath();return Zl(_,w)}):m.attr("d",g=>this._areaGen(g)||this._emptyPath()),G(f.exit(),r).style("opacity",0).remove()}getYDataExtent(e){const{config:n,datamodel:i}=this,r=Xt(n.y)?n.y:[n.y],o=e?ba(i.data,this.xScale.domain(),n.x):i.data;return wh(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]}])}}Bi.selectors=Nv;const Dv=Object.assign(Object.assign({},go),{id:(t,e)=>{var n;return(n=t.id)!==null&&n!==void 0?n:e},value:void 0,angleRange:[0,2*Math.PI],padAngle:0,sortFunction:void 0,cornerRadius:0,color:void 0,radius:void 0,arcWidth:20,centralLabel:void 0,centralSubLabel:void 0,centralSubLabelWrap:!0,showEmptySegments:!1,emptySegmentAngle:.5*Math.PI/180,showBackground:!0,backgroundAngleRange:void 0,centralLabelOffsetX:void 0,centralLabelOffsetY:void 0});function Ov(t,e){t.style("fill",n=>pt(n.data,e.color,n.index)).style("opacity",0).each((n,i,r)=>{const o=r[i],s=(n.startAngle+n.endAngle)/2,a=(n.endAngle-n.startAngle)/2;o._animState={startAngle:s-a,endAngle:s+a,innerRadius:n.innerRadius,outerRadius:n.outerRadius,padAngle:n.padAngle}})}function Rv(t,e,n,i){t.style("transition",`fill ${i}ms`).style("fill",o=>pt(o.data,e.color,o.index));const r=o=>e.showEmptySegments||o.value?1:0;i?G(t,i).style("opacity",r).attrTween("d",(s,a,l)=>{const c=l[a],h={startAngle:s.startAngle,endAngle:s.endAngle,innerRadius:s.innerRadius,outerRadius:s.outerRadius,padAngle:s.padAngle},u=be(c._animState,h);return f=>(c._animState=u(f),n(c._animState))}):t.attr("d",n).style("opacity",r)}function Lv(t,e){G(t,e).style("opacity",0).remove()}const pc=Array.from({length:4},(t,e)=>{const n=-Math.PI/2+e*Math.PI/2;return[n,n+Math.PI]}),[D_,O_,R_,L_]=pc,gc=O`
|
|
403
|
-
label: donut-component;
|
|
404
|
-
`,Bv=Qt`
|
|
405
|
-
:root {
|
|
406
|
-
--vis-donut-central-label-font-size: 16px;
|
|
407
|
-
--vis-donut-central-label-text-color: #5b5f6d;
|
|
408
|
-
// Undefined by default to allow proper fallback to var(--vis-font-family)
|
|
409
|
-
/* --vis-donut-central-label-font-family: */
|
|
410
|
-
--vis-donut-central-label-font-weight: 600;
|
|
411
|
-
|
|
412
|
-
--vis-donut-central-sub-label-font-size: 12px;
|
|
413
|
-
--vis-donut-central-sub-label-text-color: #5b5f6d;
|
|
414
|
-
// Undefined by default to allow proper fallback to var(--vis-font-family)
|
|
415
|
-
/* --vis-donut-central-sub-label-font-family: */
|
|
416
|
-
--vis-donut-central-sub-label-font-weight: 500;
|
|
417
|
-
|
|
418
|
-
--vis-donut-background-color: #E7E9F3;
|
|
419
|
-
--vis-donut-segment-stroke-width: 0;
|
|
420
|
-
// The line segment color variable is not defined by default
|
|
421
|
-
// to allow it to fallback to the donut background color
|
|
422
|
-
/* --vis-donut-segment-stroke-color: none; */
|
|
423
|
-
|
|
424
|
-
--vis-dark-donut-central-label-text-color: #C2BECE;
|
|
425
|
-
--vis-dark-donut-central-sub-label-text-color: #C2BECE;
|
|
426
|
-
--vis-dark-donut-background-color: #18160C;
|
|
427
|
-
}
|
|
428
|
-
|
|
429
|
-
body.theme-dark ${`.${gc}`} {
|
|
430
|
-
--vis-donut-central-label-text-color: var(--vis-dark-donut-central-label-text-color);
|
|
431
|
-
--vis-donut-central-sub-label-text-color: var(--vis-dark-donut-central-sub-label-text-color);
|
|
432
|
-
--vis-donut-background-color: var(--vis-dark-donut-background-color);
|
|
433
|
-
}
|
|
434
|
-
`,mc=O`
|
|
435
|
-
label: background;
|
|
436
|
-
fill: var(--vis-donut-background-color);
|
|
437
|
-
`,Fr=O`
|
|
438
|
-
label: segment;
|
|
439
|
-
stroke-width: var(--vis-donut-segment-stroke-width);
|
|
440
|
-
stroke: var(--vis-donut-segment-stroke-color, var(--vis-donut-background-color));
|
|
441
|
-
`,vc=O`
|
|
442
|
-
label: segment-exit;
|
|
443
|
-
`,_c=O`
|
|
444
|
-
label: central-label;
|
|
445
|
-
text-anchor: middle;
|
|
446
|
-
dominant-baseline: middle;
|
|
447
|
-
font-size: var(--vis-donut-central-label-font-size);
|
|
448
|
-
font-family: var(--vis-donut-central-label-font-family, var(--vis-font-family));
|
|
449
|
-
font-weight: var(--vis-donut-central-label-font-weight);
|
|
450
|
-
fill: var(--vis-donut-central-label-text-color);
|
|
451
|
-
`,yc=O`
|
|
452
|
-
label: central-label;
|
|
453
|
-
text-anchor: middle;
|
|
454
|
-
dominant-baseline: middle;
|
|
455
|
-
font-size: var(--vis-donut-central-sub-label-font-size);
|
|
456
|
-
font-family: var(--vis-donut-central-sub-label-font-family, var(--vis-font-family));
|
|
457
|
-
font-weight: var(--vis-donut-central-sub-label-font-weight);
|
|
458
|
-
fill: var(--vis-donut-central-sub-label-text-color);
|
|
459
|
-
`,Fv=Object.freeze(Object.defineProperty({__proto__:null,background:mc,centralLabel:_c,centralSubLabel:yc,root:gc,segment:Fr,segmentExit:vc,variables:Bv},Symbol.toStringTag,{value:"Module"}));class To extends Cl{constructor(e){super(),this._defaultConfig=Dv,this.config=this._defaultConfig,this.datamodel=new Al,this.arcGen=W0(),this.events={},e&&this.setConfig(e),this.arcBackground=this.g.append("path"),this.arcGroup=this.g.append("g"),this.centralLabel=this.g.append("text").attr("class",_c),this.centralSubLabel=this.g.append("text").attr("class",yc)}get bleed(){return{top:0,bottom:0,left:0,right:0}}_render(e){var n,i,r,o,s,a,l,c,h,u,f,p,m,g;const{config:v,datamodel:y,bleed:x}=this,_=y.data.map((N,ot)=>({index:ot,datum:N})).filter(N=>v.showEmptySegments||Y(N.datum,v.value,N.index)),w=yt(e)?e:v.duration,[k,b,T,R]=pc.map(N=>v.angleRange&&v.angleRange[0]===N[0]&&v.angleRange[1]===N[1]),E=k||T,U=b||R,$=this._width*(U?2:1),F=this._height*(E?2:1),C=v.radius||Math.min($-x.left-x.right,F-x.top-x.bottom)/2,D=v.arcWidth===0?0:Lt(C-v.arcWidth,0,C-1),tt=this._height/2+(k?C/2:T?-C/2:0),at=this._width/2+(R?C/2:b?-C/2:0),et=`translate(${at},${tt})`;this.arcGroup.attr("transform",et),this.arcGen.startAngle(N=>N.startAngle).endAngle(N=>N.endAngle).innerRadius(N=>N.innerRadius).outerRadius(N=>N.outerRadius).padAngle(N=>N.padAngle).cornerRadius(v.cornerRadius);const Z=q0().startAngle((i=(n=v.angleRange)===null||n===void 0?void 0:n[0])!==null&&i!==void 0?i:0).endAngle((o=(r=v.angleRange)===null||r===void 0?void 0:r[1])!==null&&o!==void 0?o:2*Math.PI).padAngle(v.padAngle).value(N=>Y(N.datum,v.value,N.index)||0).sort((N,ot)=>{var A;return(A=v.sortFunction)===null||A===void 0?void 0:A.call(v,N.datum,ot.datum)})(_).map(N=>{const ot=Object.assign(Object.assign({},N),{data:N.data.datum,index:N.data.index,innerRadius:D,outerRadius:C});return v.showEmptySegments&&N.endAngle-N.startAngle-N.padAngle<=Number.EPSILON&&(ot.endAngle=N.startAngle+Math.max(v.emptySegmentAngle,v.padAngle),ot.padAngle=N.padAngle/2),ot}),Nt=this.arcGroup.selectAll(`.${Fr}`).data(Z,N=>v.id(N.data,N.index)),Jt=Nt.enter().append("path").attr("class",Fr).call(Ov,v),It=Nt.merge(Jt);It.call(Rv,v,this.arcGen,w),It.sort((N,ot)=>ot.value-N.value),Nt.exit().attr("class",vc).call(Lv,w);const Kt=b?"start":R?"end":"middle";this.centralLabel.attr("dy",v.centralSubLabel?"-0.55em":null).style("text-anchor",Kt).text((s=v.centralLabel)!==null&&s!==void 0?s:null),this.centralSubLabel.attr("dy",v.centralLabel?"0.55em":null).style("text-anchor",Kt).text((a=v.centralSubLabel)!==null&&a!==void 0?a:null),v.centralSubLabelWrap&&av(this.centralSubLabel,D*1.9);const le=(v.centralLabelOffsetX||0)+at;let ct=(v.centralLabelOffsetY||0)+tt;E&&v.centralLabelOffsetX===void 0&&v.centralLabelOffsetY===void 0&&(ct=(k?-this.centralSubLabel.node().getBoundingClientRect().height:T?this.centralLabel.node().getBoundingClientRect().height:0)+tt);const te=`translate(${le},${ct})`;this.centralLabel.attr("transform",te),this.centralSubLabel.attr("transform",te),this.arcBackground.attr("class",mc).attr("visibility",v.showBackground?null:"hidden").attr("transform",et),G(this.arcBackground,w).attr("d",this.arcGen({startAngle:(u=(c=(l=v.backgroundAngleRange)===null||l===void 0?void 0:l[0])!==null&&c!==void 0?c:(h=v.angleRange)===null||h===void 0?void 0:h[0])!==null&&u!==void 0?u:0,endAngle:(g=(p=(f=v.backgroundAngleRange)===null||f===void 0?void 0:f[1])!==null&&p!==void 0?p:(m=v.angleRange)===null||m===void 0?void 0:m[1])!==null&&g!==void 0?g:2*Math.PI,innerRadius:D,outerRadius:C}))}}To.selectors=Fv;const Ve=Symbol("componentAccessorKey"),Co=Symbol("tooltipAccessorKey"),xc=Symbol("crosshairAccessorKey"),bc=Symbol("axisAccessorKey"),wc=Symbol("annotationsAccessorKey");function ae(t,e){return on(t,e)}function zt(t){const e=d.getCurrentInstance(),n=e.attrs;return d.computed(()=>{const i={},r=(e==null?void 0:e.vnode.props)??{};return Object.keys(r).forEach(o=>{i[d.camelize(o)]=t[d.camelize(o)]}),{...i,...n}})}const Ao=d.defineComponent({__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:{},duration:{},margin:{},padding:{},sizing:{},width:{},height:{},svgDefs:{},ariaLabel:{},data:{}},setup(t,{expose:e}){const n=t,{data:i}=d.toRefs(n),r=zt(n),o=d.ref(),s=d.reactive({components:[],annotations:void 0,crosshair:void 0,tooltip:void 0,xAxis:void 0,yAxis:void 0}),a=d.ref();return d.watch(i,()=>{o.value&&o.value.setData(i.value,!0)}),d.watchEffect(()=>{var l;s.components.map(c=>c.config),(l=o.value)==null||l.updateContainer({...d.toRaw(r.value),...d.toRaw(s)})}),d.onMounted(()=>{a.value&&(o.value=new M0(a.value,{...d.toRaw(s)},i.value))}),d.onUnmounted(()=>{var l;return(l=o.value)==null?void 0:l.destroy()}),d.provide(Ve,{data:i,update:l=>s.components=[...s.components,l],destroy:()=>{var l;return s.components=(l=s.components)==null?void 0:l.filter(c=>!c.isDestroyed())}}),d.provide(bc,{data:i,update:l=>s[`${l.config.type}Axis`]=l,destroy:l=>{s[`${l}Axis`]=void 0}}),d.provide(xc,{data:i,update:l=>s.crosshair=l,destroy:()=>{s.crosshair=void 0}}),d.provide(Co,{data:i,update:l=>s.tooltip=l,destroy:()=>{s.tooltip=void 0}}),d.provide(wc,{data:i,update:l=>s.annotations=l,destroy:()=>{s.annotations=void 0}}),e({component:o}),(l,c)=>(d.openBlock(),d.createElementBlock("div",{"data-vis-xy-container":"",ref_key:"elRef",ref:a,class:"unovis-xy-container"},[d.renderSlot(l.$slots,"default")],512))}}),Pv=d.defineComponent({__name:"index",props:{component:{},tooltip:{},annotations:{},duration:{},margin:{},padding:{},sizing:{},width:{},height:{},svgDefs:{},ariaLabel:{},data:{}},setup(t,{expose:e}){const n=t,{data:i}=d.toRefs(n),r=zt(n);let o;const s=d.reactive({component:void 0,tooltip:void 0,annotations:void 0}),a=d.ref(),l=()=>{o||a.value&&s.component&&(o=new Op(a.value,{...d.toRaw(s)},i.value))};return d.watchEffect(()=>{var c;l(),(c=s.component)==null||c.config,o==null||o.updateContainer({...d.toRaw(r.value),...d.toRaw(s)})}),d.watch(i,()=>{o?o.setData(i.value,!0):l()}),d.onUnmounted(()=>o==null?void 0:o.destroy()),d.provide(Ve,{data:i,update:c=>s.component=c,destroy:()=>s.component=void 0}),d.provide(Co,{data:i,update:c=>s.tooltip=c,destroy:()=>{s.tooltip=void 0}}),d.provide(wc,{data:i,update:c=>s.annotations=c,destroy:()=>{s.annotations=void 0}}),e({component:o}),(c,h)=>(d.openBlock(),d.createElementBlock("div",{"data-vis-single-container":"",ref_key:"elRef",ref:a,class:"unovis-single-container"},[d.renderSlot(c.$slots,"default")],512))}}),zv={"data-vis-component":""},kc=d.defineComponent({__name:"index",props:{color:{},curveType:{},baseline:{},opacity:{},cursor:{},minHeight1Px:{type:Boolean},x:{},y:{},id:{type:Function},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=d.inject(Ve),i=t,r=d.computed(()=>n.data.value??i.data),o=zt(i),s=d.ref();return d.onMounted(()=>{d.nextTick(()=>{var a;s.value=new Bi(o.value),(a=s.value)==null||a.setData(r.value),n.update(s.value)})}),d.onUnmounted(()=>{var a;(a=s.value)==null||a.destroy(),n.destroy()}),d.watch(o,(a,l)=>{var c;ae(a,l)||(c=s.value)==null||c.setConfig(o.value)}),d.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,l)=>(d.openBlock(),d.createElementBlock("div",zv))}}),Iv={"data-vis-axis":""},Pe=d.defineComponent({__name:"index",props:{position:{},type:{},fullSize:{type:Boolean},label:{},labelFontSize:{},labelMargin:{},labelColor:{},gridLine:{type:Boolean},tickLine:{type:Boolean},domainLine:{type:Boolean},minMaxTicksOnly:{type:Boolean},minMaxTicksOnlyWhenWidthIsLess:{},tickFormat:{type:Function},tickValues:{},numTicks:{},tickTextFitMode:{},tickTextWidth:{},tickTextSeparator:{},tickTextForceWordBreak:{type:Boolean},tickTextTrimType:{},tickTextFontSize:{},tickTextAlign:{},tickTextColor:{},tickTextAngle:{},tickTextHideOverlapping:{type:Boolean},tickPadding:{},x:{},y:{},id:{type:Function},color:{},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=d.inject(bc),i=t,r=d.computed(()=>n.data.value??i.data),o=zt(i),s=d.ref();return d.onMounted(()=>{d.nextTick(()=>{var a;s.value=new sc(o.value),(a=s.value)==null||a.setData(r.value),n.update(s.value)})}),d.onUnmounted(()=>{var a;(a=s.value)==null||a.destroy(),n.destroy(i.type)}),d.watch(o,(a,l)=>{var c;ae(a,l)||(c=s.value)==null||c.setConfig(o.value)}),d.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,l)=>(d.openBlock(),d.createElementBlock("div",Iv))}}),Vv={"data-vis-crosshair":""},Hv=d.defineComponent({__name:"index",props:{data:{}},setup(t,{expose:e}){const n=d.inject(xc),i=t,r=d.computed(()=>n.data.value??i.data),o=zt(i),s=d.ref();return d.onMounted(()=>{d.nextTick(()=>{var a;s.value=new fc(o.value),(a=s.value)==null||a.setData(r.value),n.update(s.value)})}),d.onUnmounted(()=>{var a;(a=s.value)==null||a.destroy(),n.destroy()}),d.watch(o,(a,l)=>{var c;ae(a,l)||(c=s.value)==null||c.setConfig(o.value)}),d.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,l)=>(d.openBlock(),d.createElementBlock("div",Vv))}}),Uv={"data-vis-component":""};Ri.selectors;const Wv=d.defineComponent({__name:"index",props:{color:{},groupWidth:{},groupMaxWidth:{},dataStep:{},groupPadding:{},barPadding:{},roundedCorners:{type:[Number,Boolean]},barMinHeight:{},cursor:{},orientation:{},x:{},y:{},id:{type:Function},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=d.inject(Ve),i=t,r=d.computed(()=>n.data.value??i.data),o=zt(i),s=d.ref();return d.onMounted(()=>{d.nextTick(()=>{var a;s.value=new Ri(o.value),(a=s.value)==null||a.setData(r.value),n.update(s.value)})}),d.onUnmounted(()=>{var a;(a=s.value)==null||a.destroy(),n.destroy()}),d.watch(o,(a,l)=>{var c;ae(a,l)||(c=s.value)==null||c.setConfig(o.value)}),d.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,l)=>(d.openBlock(),d.createElementBlock("div",Uv))}}),Yv={"data-vis-component":""},Xv=d.defineComponent({__name:"index",props:{color:{},curveType:{},lineWidth:{},lineDashArray:{},fallbackValue:{},highlightOnHover:{type:Boolean},cursor:{},interpolateMissingData:{type:Boolean},x:{},y:{},id:{type:Function},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=d.inject(Ve),i=t,r=d.computed(()=>n.data.value??i.data),o=zt(i),s=d.ref();return d.onMounted(()=>{d.nextTick(()=>{var a;s.value=new Oi(o.value),(a=s.value)==null||a.setData(r.value),n.update(s.value)})}),d.onUnmounted(()=>{var a;(a=s.value)==null||a.destroy(),n.destroy()}),d.watch(o,(a,l)=>{var c;ae(a,l)||(c=s.value)==null||c.setConfig(o.value)}),d.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,l)=>(d.openBlock(),d.createElementBlock("div",Yv))}}),Gv={"data-vis-component":""},qv=d.defineComponent({__name:"index",props:{id:{type:Function},value:{},angleRange:{},padAngle:{},sortFunction:{type:Function},cornerRadius:{},color:{},radius:{},arcWidth:{},centralLabel:{},centralSubLabel:{},centralSubLabelWrap:{type:Boolean},showEmptySegments:{type:Boolean},emptySegmentAngle:{},showBackground:{type:Boolean},backgroundAngleRange:{},centralLabelOffsetX:{},centralLabelOffsetY:{},duration:{},events:{},attributes:{},data:{}},setup(t,{expose:e}){const n=d.inject(Ve),i=t,r=d.computed(()=>n.data.value??i.data),o=zt(i),s=d.ref();return d.onMounted(()=>{d.nextTick(()=>{var a;s.value=new To(o.value),(a=s.value)==null||a.setData(r.value),n.update(s.value)})}),d.onUnmounted(()=>{var a;(a=s.value)==null||a.destroy(),n.destroy()}),d.watch(o,(a,l)=>{var c;ae(a,l)||(c=s.value)==null||c.setConfig(o.value)}),d.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,l)=>(d.openBlock(),d.createElementBlock("div",Gv))}}),jv={"data-vis-tooltip":""},Mo=d.defineComponent({__name:"index",props:{components:{},container:{},followCursor:{type:Boolean},allowHover:{type:Boolean},horizontalPlacement:{},horizontalShift:{},verticalPlacement:{},verticalShift:{},triggers:{},attributes:{},className:{},data:{}},setup(t,{expose:e}){const n=d.inject(Co),i=zt(t),r=d.ref();return d.onMounted(()=>{d.nextTick(()=>{r.value=new El(i.value),n.update(r.value)})}),d.onUnmounted(()=>{var o;(o=r.value)==null||o.destroy(),n.destroy()}),d.watch(i,(o,s)=>{var a;ae(o,s)||(a=r.value)==null||a.setConfig(i.value)}),e({component:r}),(o,s)=>(d.openBlock(),d.createElementBlock("div",jv))}}),Fi=d.defineComponent({__name:"index",props:{items:{},labelClassName:{},onLegendItemClick:{type:Function},labelFontSize:{},labelMaxWidth:{},bulletSize:{},bulletShape:{},orientation:{},renderIntoProvidedDomNode:{type:Boolean},data:{}},setup(t,{expose:e}){const n=t;d.computed(()=>n.data);const i=zt(n),r=d.ref(),o=d.ref();return d.onMounted(()=>{d.nextTick(()=>{o.value&&(r.value=new cc(o.value,{...i.value,renderIntoProvidedDomNode:!0}))})}),d.onUnmounted(()=>{var s;(s=r.value)==null||s.destroy()}),d.watch(i,(s,a)=>{var l;ae(s,a)||(l=r.value)==null||l.update(i.value)}),e({component:r}),(s,a)=>(d.openBlock(),d.createElementBlock("div",{"data-vis-bullet-legend":"",ref_key:"elRef",ref:o},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]{display:block}")),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();const Zv={key:0,class:"flex items center justify-end"},Qv=d.defineComponent({__name:"AreaChart",props:{data:{},height:{},xLabel:{},yLabel:{},categories:{},xFormatter:{},yFormatter:{},curveType:{},xNumTicks:{default:t=>t.data.length>24?24/4:t.data.length-1},yNumTicks:{default:t=>t.data.length>24?24/4:t.data.length-1},hideLegend:{type:Boolean},hideTooltip:{type:Boolean},gridLineX:{type:Boolean},domainLineX:{type:Boolean},gridLineY:{type:Boolean},domainLineY:{type:Boolean},paginationPoisition:{}},setup(t){const e=t,n=Object.values(e.categories).map(s=>s.color),i=d.computed(()=>s=>{const a=d.createApp($o,{data:s,categories:e.categories}),l=document.createElement("div");a.mount(l);const c=l.innerHTML;return a.unmount(),c});function r(s){var a;return{y:l=>Number(l[s]),color:((a=e.categories[s])==null?void 0:a.color)??"#3b82f6"}}const o=n.map((s,a)=>`
|
|
460
|
-
<linearGradient id="gradient${a}-${s}" gradientTransform="rotate(90)">
|
|
461
|
-
<stop offset="0%" stop-color="${s}" stop-opacity="1" />
|
|
462
|
-
<stop offset="100%" stop-color="${s}" stop-opacity="0" />
|
|
463
|
-
</linearGradient>
|
|
464
|
-
`).join("");return(s,a)=>(d.openBlock(),d.createElementBlock("div",{class:d.normalizeClass(["flex flex-col space-y-4",{"flex-col-reverse":e.paginationPoisition==="top"}])},[d.createVNode(d.unref(Ao),{data:s.data,height:s.height,"svg-defs":d.unref(o)},{default:d.withCtx(()=>[s.hideTooltip?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(d.unref(Mo),{key:0,"horizontal-placement":d.unref(M).Right,"vertical-placement":d.unref(M).Top},null,8,["horizontal-placement","vertical-placement"])),(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(Object.keys(e.categories),(l,c)=>(d.openBlock(),d.createElementBlock(d.Fragment,{key:c},[d.createVNode(d.unref(kc),d.mergeProps({x:(h,u)=>u,ref_for:!0},r(l),{color:`url(#gradient${c}-${d.unref(n)[c]})`,opacity:.5,"curve-type":s.curveType??d.unref(exports.CurveType).MonotoneX}),null,16,["x","color","curve-type"]),d.createVNode(d.unref(Xv),{x:(h,u)=>u,y:h=>h[l],color:d.unref(n)[c],"curve-type":s.curveType??d.unref(exports.CurveType).MonotoneX},null,8,["x","y","color","curve-type"])],64))),128)),d.createVNode(d.unref(Pe),{type:"x","tick-format":s.xFormatter,"num-ticks":s.xNumTicks,label:s.xLabel,"grid-line":s.gridLineX,"domain-line":s.domainLineX,"tick-line":!!s.gridLineX},null,8,["tick-format","num-ticks","label","grid-line","domain-line","tick-line"]),d.createVNode(d.unref(Pe),{type:"y","num-ticks":s.yNumTicks??s.data.length,"tick-format":s.yFormatter,label:s.yLabel,"grid-line":s.gridLineY,"domain-line":s.domainLineY,"tick-line":!!s.gridLineY},null,8,["num-ticks","tick-format","label","grid-line","domain-line","tick-line"]),s.hideTooltip?d.createCommentVNode("",!0):(d.openBlock(),d.createBlock(d.unref(Hv),{key:1,color:"#666",template:i.value},null,8,["template"]))]),_:1},8,["data","height","svg-defs"]),s.hideLegend?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("div",Zv,[d.createVNode(d.unref(Fi),{items:Object.values(s.categories)},null,8,["items"])]))],2))}}),Jv={class:"flex flex-col space-y-4"},Kv={class:"flex items center justify-end"},t_=d.defineComponent({__name:"AreaStackedChart",props:{data:{},categories:{}},setup(t){const e=t,n=r=>Number.parseInt(r.date),i=[r=>r.firstTime,r=>r.returning];return(r,o)=>(d.openBlock(),d.createElementBlock("div",Jv,[d.createVNode(d.unref(Ao),{data:r.data,height:200},{default:d.withCtx(()=>[d.createVNode(d.unref(kc),{x:n,y:i,color:Object.values(e.categories).map(s=>s.color),"curve-type":d.unref(exports.CurveType).Linear},null,8,["color","curve-type"]),d.createVNode(d.unref(Pe),{type:"x",label:"Time","num-ticks":12}),d.createVNode(d.unref(Pe),{type:"y",label:"Number of visitors","num-ticks":3})]),_:1},8,["data"]),d.createElementVNode("div",Kv,[d.createVNode(d.unref(Fi),{items:Object.values(r.categories)},null,8,["items"])])]))}}),e_={class:"space-y-2"},n_={key:0,class:"flex items center justify-end"},i_=d.defineComponent({__name:"BarChart",props:{data:{},height:{},xLabel:{},yLabel:{},categories:{},xFormatter:{type:Function},yFormatter:{type:Function},yNumTicks:{},xNumTicks:{},yAxis:{},groupPadding:{},barPadding:{},radius:{},hideLegend:{type:Boolean}},setup(t){const e=t,n=e.yAxis.map(o=>s=>s[o]),i=(o,s)=>Object.values(e.categories)[s].color,r=d.computed(()=>o=>{const s=d.createApp($o,{data:o,categories:e.categories}),a=document.createElement("div");s.mount(a);const l=a.innerHTML;return s.unmount(),l});return(o,s)=>(d.openBlock(),d.createElementBlock("div",e_,[d.createVNode(d.unref(Ao),{height:o.height},{default:d.withCtx(()=>[d.createVNode(d.unref(Mo),{triggers:{[d.unref(Ri).selectors.bar]:r.value}},null,8,["triggers"]),d.createVNode(d.unref(Wv),{data:o.data,x:(a,l)=>l,y:d.unref(n),"grid-line":!1,"domain-line":!1,color:i,"rounded-corners":o.radius??0,"group-padding":o.groupPadding??0,"bar-padding":o.barPadding??0},null,8,["data","x","y","rounded-corners","group-padding","bar-padding"]),d.createVNode(d.unref(Pe),{type:"x",label:o.xLabel,"grid-line":!1,"domain-line":!1,"tick-format":o.xFormatter,"num-ticks":o.xNumTicks},null,8,["label","tick-format","num-ticks"]),d.createVNode(d.unref(Pe),{type:"y",label:o.yLabel,"grid-line":!0,"domain-line":!1,"tick-format":o.yFormatter},null,8,["label","tick-format"])]),_:1},8,["height"]),o.hideLegend?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("div",n_,[d.createVNode(d.unref(Fi),{items:Object.values(o.categories)},null,8,["items"])]))]))}}),r_={class:"flex items-center justify-center"},o_={key:0,class:"flex items-center justify-center mt-4"},s_=d.defineComponent({__name:"DonutChart",props:{type:{},data:{},height:{},radius:{},hidePagination:{type:Boolean},labels:{}},setup(t){const e=t,n=o=>o,i=e.type==="half",r={[To.selectors.segment]:o=>(console.log(),`<div class='flex items-center'><div class='w-2 h-2 rounded-full mr-2' style='background-color: ${e.labels[o.index].color} ;'></div>
|
|
465
|
-
<div>${o.data}</div>
|
|
466
|
-
</vistooltip>
|
|
467
|
-
</vissinglecontainer>
|
|
468
|
-
</div>`)};return(o,s)=>(d.openBlock(),d.createElementBlock(d.Fragment,null,[d.createElementVNode("div",r_,[d.createVNode(d.unref(Pv),{class:d.normalizeClass(i?"mt-24":""),data:o.data,height:o.height,margin:{}},{default:d.withCtx(()=>[d.createVNode(d.unref(Mo),{"horizontal-shift":20,"vertical-shift":20,triggers:r}),d.createVNode(d.unref(qv),{value:n,"corner-radius":o.radius,color:e.labels.map(a=>a.color),"angle-range":i?[-1.5707963267948966,1.5707963267948966]:[]},null,8,["corner-radius","color","angle-range"])]),_:1},8,["class","data","height"]),d.renderSlot(o.$slots,"default")]),o.hidePagination?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("div",o_,[d.createVNode(d.unref(Fi),{items:o.labels},null,8,["items"])]))],64))}}),a_={class:"space-y-4 flex flex-col"},l_=d.defineComponent({__name:"LineChart",props:{data:{},height:{},xLabel:{},yLabel:{},categories:{},xFormatter:{type:Function},yFormatter:{type:Function},curveType:{},yNumTicks:{},xNumTicks:{},paginationPoisition:{}},setup(t){return(e,n)=>(d.openBlock(),d.createElementBlock("div",a_," 123123 "))}});var Sc=(t=>(t.Top="top",t.Bottom="bottom",t))(Sc||{});const c_={class:"space-y-2"},u_={class:"space-y-2"},h_={class:"text-gray-500 mb-1"},f_={class:"text-xl dark:text-white font-bold"},d_={class:"flex items-center justify-between text-sm font-medium dark:text-gray-500 mt-2"},p_={class:"dark:bg-white/5 bg-gray-100 rounded-full h-3"},g_=d.defineComponent({__name:"Progress",props:{label:{},value:{},unit:{},progress:{},total:{},color:{}},setup(t){const e=t,n=d.computed(()=>(e.progress/e.total*100).toFixed(1)),i=d.computed(()=>`${e.progress/e.total*100}%`);return(r,o)=>(d.openBlock(),d.createElementBlock("div",c_,[d.createElementVNode("div",u_,[d.createElementVNode("p",h_,d.toDisplayString(r.label),1),d.createElementVNode("h2",f_,d.toDisplayString(r.value),1)]),d.createElementVNode("div",d_,[d.createElementVNode("div",null,d.toDisplayString(n.value)+"%",1),d.createElementVNode("div",null,d.toDisplayString(r.progress)+" of "+d.toDisplayString(r.total)+d.toDisplayString(r.unit),1)]),d.createElementVNode("div",p_,[d.createElementVNode("div",{class:"rounded-full h-full",style:d.normalizeStyle({width:i.value,backgroundColor:r.color})},null,4)])]))}}),m_={class:"ring ring-border divide-y divide-border rounded-xl shadow-sm"},v_={class:"flex items-center justify-between p-4"},__={class:"flex items-center gap-2"},y_={class:"font-medium"},x_={class:"text-sm dark:text-gray-400"},b_={class:"p-4"},w_=d.defineComponent({__name:"Status",setup(t){const e=d.ref("example.com"),n=d.ref("99.9% uptime"),i=d.ref([{hour:0,status:"online"},{hour:1,status:"online"},{hour:2,status:"online"},{hour:3,status:"online"},{hour:4,status:"online"},{hour:5,status:"online"},{hour:6,status:"online"},{hour:7,status:"online"},{hour:8,status:"online"},{hour:9,status:"online"},{hour:10,status:"online"},{hour:11,status:"offline"},{hour:12,status:"online"},{hour:13,status:"online"},{hour:14,status:"online"},{hour:15,status:"online"},{hour:16,status:"online"},{hour:17,status:"online"},{hour:18,status:"online"},{hour:19,status:"online"},{hour:20,status:"online"},{hour:21,status:"online"},{hour:22,status:"online"},{hour:23,status:"online"},{hour:0,status:"online"},{hour:1,status:"online"},{hour:2,status:"online"},{hour:3,status:"online"},{hour:4,status:"online"},{hour:5,status:"online"},{hour:6,status:"online"},{hour:7,status:"online"},{hour:8,status:"online"},{hour:9,status:"online"},{hour:10,status:"online"},{hour:11,status:"online"},{hour:12,status:"online"},{hour:13,status:"online"},{hour:14,status:"online"},{hour:15,status:"online"},{hour:16,status:"online"},{hour:17,status:"online"},{hour:18,status:"online"},{hour:19,status:"online"},{hour:20,status:"online"},{hour:21,status:"online"},{hour:22,status:"online"},{hour:23,status:"online"},{hour:0,status:"online"},{hour:1,status:"online"}]);return(r,o)=>(d.openBlock(),d.createElementBlock("div",m_,[d.createElementVNode("div",v_,[d.createElementVNode("div",__,[o[0]||(o[0]=d.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6 text-primary"},[d.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})],-1)),d.createElementVNode("span",y_,d.toDisplayString(e.value),1)]),d.createElementVNode("span",x_,d.toDisplayString(n.value),1)]),d.createElementVNode("div",b_,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(i.value,(s,a)=>(d.openBlock(),d.createElementBlock("div",{key:a,class:d.normalizeClass(["w-2.5 h-8 first:rounded-tl first:rounded-bl last:rounded-tr last:rounded-br ml-[3px] inline-block",s.status==="online"?"bg-primary":"bg-white"])},null,2))),128))])]))}}),k_={class:"flex flex-col"},S_={class:"flex items-center mr-2 mt-2"},T_={class:"font-semibold capitalize text-white/75"},C_={class:"flex items-center gap-2"},A_={class:"font-normal"},$o=d.defineComponent({__name:"Tooltip",props:{data:{},categories:{}},setup(t){function e(i){var r;return((r=n.categories[i])==null?void 0:r.color)??"#f00"}const n=t;return(i,r)=>(d.openBlock(),d.createElementBlock("div",k_,[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(Object.entries(i.data),([o,s])=>{var a;return d.openBlock(),d.createElementBlock(d.Fragment,{key:o},[d.createElementVNode("div",S_,[d.createElementVNode("span",T_,d.toDisplayString(o)+":",1)]),d.createElementVNode("div",C_,[(a=n.categories[o])!=null&&a.color?(d.openBlock(),d.createElementBlock("span",{key:0,style:d.normalizeStyle({backgroundColor:e(o)}),class:"w-2 h-2"},null,4)):d.createCommentVNode("",!0),d.createElementVNode("span",A_,d.toDisplayString(s),1)])],64)}),128))]))}}),M_=(t,e)=>{const n=t.__vccOpts||t;for(const[i,r]of e)n[i]=r;return n},$_={};function E_(t,e){return d.openBlock(),d.createElementBlock("div",null,"This is not a button")}const N_=M_($_,[["render",E_]]);exports.AreaChart=Qv;exports.AreaStackedChart=t_;exports.BarChart=i_;exports.Button=N_;exports.DonutChart=s_;exports.LineChart=l_;exports.PaginationPosition=Sc;exports.Progress=g_;exports.Status=w_;exports.Tooltip=$o;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),j={class:"space-y-4 flex flex-col"},A=e.defineComponent({__name:"LineChart",props:{data:{},height:{},xLabel:{},yLabel:{},categories:{},xFormatter:{type:Function},yFormatter:{type:Function},curveType:{},yNumTicks:{},xNumTicks:{},paginationPoisition:{}},setup(t){return(i,s)=>(e.openBlock(),e.createElementBlock("div",j," 123123 "))}}),C=1e-12;function g(t){this._context=t}g.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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;default:this._context.lineTo(t,i);break}}};function X(t){return new g(t)}function l(){}function c(t,i,s){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+i)/6,(t._y0+4*t._y1+s)/6)}function f(t){this._context=t}f.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:c(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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);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:c(this,t,i);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}};function Y(t){return new f(t)}function B(t){this._context=t}B.prototype={areaStart:l,areaEnd:l,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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._x2=t,this._y2=i;break;case 1:this._point=2,this._x3=t,this._y3=i;break;case 2:this._point=3,this._x4=t,this._y4=i,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+i)/6);break;default:c(this,t,i);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}};function q(t){return new B(t)}function P(t){this._context=t}P.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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var s=(this._x0+4*this._x1+t)/6,n=(this._y0+4*this._y1+i)/6;this._line?this._context.lineTo(s,n):this._context.moveTo(s,n);break;case 3:this._point=4;default:c(this,t,i);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i}};function Z(t){return new P(t)}function V(t,i){this._basis=new f(t),this._beta=i}V.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,i=this._y,s=t.length-1;if(s>0)for(var n=t[0],o=i[0],_=t[s]-n,h=i[s]-o,a=-1,r;++a<=s;)r=a/s,this._basis.point(this._beta*t[a]+(1-this._beta)*(n+r*_),this._beta*i[a]+(1-this._beta)*(o+r*h));this._x=this._y=null,this._basis.lineEnd()},point:function(t,i){this._x.push(+t),this._y.push(+i)}};const G=function t(i){function s(n){return i===1?new f(n):new V(n,i)}return s.beta=function(n){return t(+n)},s}(.85);function u(t,i,s){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-i),t._y2+t._k*(t._y1-s),t._x2,t._y2)}function y(t,i){this._context=t,this._k=(1-i)/6}y.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:u(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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2,this._x1=t,this._y1=i;break;case 2:this._point=3;default:u(this,t,i);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const H=function t(i){function s(n){return new y(n,i)}return s.tension=function(n){return t(+n)},s}(0);function m(t,i){this._context=t,this._k=(1-i)/6}m.prototype={areaStart:l,areaEnd:l,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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._x3=t,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=i);break;case 2:this._point=3,this._x5=t,this._y5=i;break;default:u(this,t,i);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const I=function t(i){function s(n){return new m(n,i)}return s.tension=function(n){return t(+n)},s}(0);function b(t,i){this._context=t,this._k=(1-i)/6}b.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,i){switch(t=+t,i=+i,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:u(this,t,i);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const J=function t(i){function s(n){return new b(n,i)}return s.tension=function(n){return t(+n)},s}(0);function v(t,i,s){var n=t._x1,o=t._y1,_=t._x2,h=t._y2;if(t._l01_a>C){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,r=3*t._l01_a*(t._l01_a+t._l12_a);n=(n*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/r,o=(o*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/r}if(t._l23_a>C){var k=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,N=3*t._l23_a*(t._l23_a+t._l12_a);_=(_*k+t._x1*t._l23_2a-i*t._l12_2a)/N,h=(h*k+t._y1*t._l23_2a-s*t._l12_2a)/N}t._context.bezierCurveTo(n,o,_,h,t._x2,t._y2)}function M(t,i){this._context=t,this._alpha=i}M.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,i){if(t=+t,i=+i,this._point){var s=this._x2-t,n=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(s*s+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;break;case 2:this._point=3;default:v(this,t,i);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=i}};const K=function t(i){function s(n){return i?new M(n,i):new y(n,0)}return s.alpha=function(n){return t(+n)},s}(.5);function R(t,i){this._context=t,this._alpha=i}R.prototype={areaStart:l,areaEnd:l,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,i){if(t=+t,i=+i,this._point){var s=this._x2-t,n=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(s*s+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=i);break;case 2:this._point=3,this._x5=t,this._y5=i;break;default:v(this,t,i);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=i}};const Q=function t(i){function s(n){return i?new R(n,i):new m(n,0)}return s.alpha=function(n){return t(+n)},s}(.5);function $(t,i){this._context=t,this._alpha=i}$.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,i){if(t=+t,i=+i,this._point){var s=this._x2-t,n=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(s*s+n*n,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:v(this,t,i);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=i}};const U=function t(i){function s(n){return i?new $(n,i):new b(n,0)}return s.alpha=function(n){return t(+n)},s}(.5);function O(t){this._context=t}O.prototype={areaStart:l,areaEnd:l,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,i){t=+t,i=+i,this._point?this._context.lineTo(t,i):(this._point=1,this._context.moveTo(t,i))}};function W(t){return new O(t)}function w(t){return t<0?-1:1}function T(t,i,s){var n=t._x1-t._x0,o=i-t._x1,_=(t._y1-t._y0)/(n||o<0&&-0),h=(s-t._y1)/(o||n<0&&-0),a=(_*o+h*n)/(n+o);return(w(_)+w(h))*Math.min(Math.abs(_),Math.abs(h),.5*Math.abs(a))||0}function E(t,i){var s=t._x1-t._x0;return s?(3*(t._y1-t._y0)/s-i)/2:i}function d(t,i,s){var n=t._x0,o=t._y0,_=t._x1,h=t._y1,a=(_-n)/3;t._context.bezierCurveTo(n+a,o+a*i,_-a,h-a*s,_,h)}function p(t){this._context=t}p.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:d(this,this._t0,E(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){var s=NaN;if(t=+t,i=+i,!(t===this._x1&&i===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;break;case 2:this._point=3,d(this,E(this,s=T(this,t,i)),s);break;default:d(this,this._t0,s=T(this,t,i));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i,this._t0=s}}};function L(t){this._context=new z(t)}(L.prototype=Object.create(p.prototype)).point=function(t,i){p.prototype.point.call(this,i,t)};function z(t){this._context=t}z.prototype={moveTo:function(t,i){this._context.moveTo(i,t)},closePath:function(){this._context.closePath()},lineTo:function(t,i){this._context.lineTo(i,t)},bezierCurveTo:function(t,i,s,n,o,_){this._context.bezierCurveTo(i,t,n,s,_,o)}};function tt(t){return new p(t)}function it(t){return new L(t)}function D(t){this._context=t}D.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var t=this._x,i=this._y,s=t.length;if(s)if(this._line?this._context.lineTo(t[0],i[0]):this._context.moveTo(t[0],i[0]),s===2)this._context.lineTo(t[1],i[1]);else for(var n=S(t),o=S(i),_=0,h=1;h<s;++_,++h)this._context.bezierCurveTo(n[0][_],o[0][_],n[1][_],o[1][_],t[h],i[h]);(this._line||this._line!==0&&s===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(t,i){this._x.push(+t),this._y.push(+i)}};function S(t){var i,s=t.length-1,n,o=new Array(s),_=new Array(s),h=new Array(s);for(o[0]=0,_[0]=2,h[0]=t[0]+2*t[1],i=1;i<s-1;++i)o[i]=1,_[i]=4,h[i]=4*t[i]+2*t[i+1];for(o[s-1]=2,_[s-1]=7,h[s-1]=8*t[s-1]+t[s],i=1;i<s;++i)n=o[i]/_[i-1],_[i]-=n,h[i]-=n*h[i-1];for(o[s-1]=h[s-1]/_[s-1],i=s-2;i>=0;--i)o[i]=(h[i]-o[i+1])/_[i];for(_[s-1]=(t[s]+o[s-1])/2,i=0;i<s-1;++i)_[i]=2*t[i+1]-o[i+1];return[o,_]}function st(t){return new D(t)}function x(t,i){this._context=t,this._t=i}x.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,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,i),this._context.lineTo(t,i);else{var s=this._x*(1-this._t)+t*this._t;this._context.lineTo(s,this._y),this._context.lineTo(s,i)}break}}this._x=t,this._y=i}};function nt(t){return new x(t,.5)}function et(t){return new x(t,0)}function ot(t){return new x(t,1)}exports.CurveType=void 0;(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"})(exports.CurveType||(exports.CurveType={}));exports.CurveType.Basis+"",exports.CurveType.BasisClosed+"",exports.CurveType.BasisOpen+"",exports.CurveType.Bundle+"",exports.CurveType.Cardinal+"",exports.CurveType.CardinalClosed+"",exports.CurveType.CardinalOpen+"",exports.CurveType.CatmullRom+"",exports.CurveType.CatmullRomClosed+"",exports.CurveType.CatmullRomOpen+"",exports.CurveType.Linear+"",exports.CurveType.LinearClosed+"",exports.CurveType.MonotoneX+"",exports.CurveType.MonotoneY+"",exports.CurveType.Natural+"",exports.CurveType.Step+"",exports.CurveType.StepAfter+"",exports.CurveType.StepBefore+"";var F=(t=>(t.Top="top",t.Bottom="bottom",t))(F||{});const _t={class:"space-y-2"},ht={class:"space-y-2"},at={class:"text-gray-500 mb-1"},lt={class:"text-xl dark:text-white font-bold"},rt={class:"flex items-center justify-between text-sm font-medium dark:text-gray-500 mt-2"},ct={class:"dark:bg-white/5 bg-gray-100 rounded-full h-3"},ut=e.defineComponent({__name:"Progress",props:{label:{},value:{},unit:{},progress:{},total:{},color:{}},setup(t){const i=t,s=e.computed(()=>(i.progress/i.total*100).toFixed(1)),n=e.computed(()=>`${i.progress/i.total*100}%`);return(o,_)=>(e.openBlock(),e.createElementBlock("div",_t,[e.createElementVNode("div",ht,[e.createElementVNode("p",at,e.toDisplayString(o.label),1),e.createElementVNode("h2",lt,e.toDisplayString(o.value),1)]),e.createElementVNode("div",rt,[e.createElementVNode("div",null,e.toDisplayString(s.value)+"%",1),e.createElementVNode("div",null,e.toDisplayString(o.progress)+" of "+e.toDisplayString(o.total)+e.toDisplayString(o.unit),1)]),e.createElementVNode("div",ct,[e.createElementVNode("div",{class:"rounded-full h-full",style:e.normalizeStyle({width:n.value,backgroundColor:o.color})},null,4)])]))}}),pt={class:"ring ring-border divide-y divide-border rounded-xl shadow-sm"},ft={class:"flex items-center justify-between p-4"},xt={class:"flex items-center gap-2"},dt={class:"font-medium"},yt={class:"text-sm dark:text-gray-400"},mt={class:"p-4"},bt=e.defineComponent({__name:"Status",setup(t){const i=e.ref("example.com"),s=e.ref("99.9% uptime"),n=e.ref([{hour:0,status:"online"},{hour:1,status:"online"},{hour:2,status:"online"},{hour:3,status:"online"},{hour:4,status:"online"},{hour:5,status:"online"},{hour:6,status:"online"},{hour:7,status:"online"},{hour:8,status:"online"},{hour:9,status:"online"},{hour:10,status:"online"},{hour:11,status:"offline"},{hour:12,status:"online"},{hour:13,status:"online"},{hour:14,status:"online"},{hour:15,status:"online"},{hour:16,status:"online"},{hour:17,status:"online"},{hour:18,status:"online"},{hour:19,status:"online"},{hour:20,status:"online"},{hour:21,status:"online"},{hour:22,status:"online"},{hour:23,status:"online"},{hour:0,status:"online"},{hour:1,status:"online"},{hour:2,status:"online"},{hour:3,status:"online"},{hour:4,status:"online"},{hour:5,status:"online"},{hour:6,status:"online"},{hour:7,status:"online"},{hour:8,status:"online"},{hour:9,status:"online"},{hour:10,status:"online"},{hour:11,status:"online"},{hour:12,status:"online"},{hour:13,status:"online"},{hour:14,status:"online"},{hour:15,status:"online"},{hour:16,status:"online"},{hour:17,status:"online"},{hour:18,status:"online"},{hour:19,status:"online"},{hour:20,status:"online"},{hour:21,status:"online"},{hour:22,status:"online"},{hour:23,status:"online"},{hour:0,status:"online"},{hour:1,status:"online"}]);return(o,_)=>(e.openBlock(),e.createElementBlock("div",pt,[e.createElementVNode("div",ft,[e.createElementVNode("div",xt,[_[0]||(_[0]=e.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor",class:"size-6 text-primary"},[e.createElementVNode("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})],-1)),e.createElementVNode("span",dt,e.toDisplayString(i.value),1)]),e.createElementVNode("span",yt,e.toDisplayString(s.value),1)]),e.createElementVNode("div",mt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(h,a)=>(e.openBlock(),e.createElementBlock("div",{key:a,class:e.normalizeClass(["w-2.5 h-8 first:rounded-tl first:rounded-bl last:rounded-tr last:rounded-br ml-[3px] inline-block",h.status==="online"?"bg-primary":"bg-white"])},null,2))),128))])]))}}),vt={class:"flex flex-col"},kt={class:"flex items-center mr-2 mt-2"},Nt={class:"font-semibold capitalize text-white/75"},Ct={class:"flex items-center gap-2"},wt={class:"font-normal"},Tt=e.defineComponent({__name:"Tooltip",props:{data:{},categories:{}},setup(t){function i(n){var o;return((o=s.categories[n])==null?void 0:o.color)??"#f00"}const s=t;return(n,o)=>(e.openBlock(),e.createElementBlock("div",vt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.entries(n.data),([_,h])=>{var a;return e.openBlock(),e.createElementBlock(e.Fragment,{key:_},[e.createElementVNode("div",kt,[e.createElementVNode("span",Nt,e.toDisplayString(_)+":",1)]),e.createElementVNode("div",Ct,[(a=s.categories[_])!=null&&a.color?(e.openBlock(),e.createElementBlock("span",{key:0,style:e.normalizeStyle({backgroundColor:i(_)}),class:"w-2 h-2"},null,4)):e.createCommentVNode("",!0),e.createElementVNode("span",wt,e.toDisplayString(h),1)])],64)}),128))]))}});exports.LineChart=A;exports.PaginationPosition=F;exports.Progress=ut;exports.Status=bt;exports.Tooltip=Tt;
|