vue-chrts 0.0.50 → 0.0.52

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.
@@ -0,0 +1,191 @@
1
+ (function(pt,T){typeof exports=="object"&&typeof module<"u"?T(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],T):(pt=typeof globalThis<"u"?globalThis:pt||self,T(pt["vue-chrts"]={},pt.Vue))})(this,function(pt,T){"use strict";var qn="http://www.w3.org/1999/xhtml";const br={svg:"http://www.w3.org/2000/svg",xhtml:qn,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function He(t){var e=t+="",n=e.indexOf(":");return n>=0&&(e=t.slice(0,n))!=="xmlns"&&(t=t.slice(n+1)),br.hasOwnProperty(e)?{space:br[e],local:t}:t}function Za(t){return function(){var e=this.ownerDocument,n=this.namespaceURI;return n===qn&&e.documentElement.namespaceURI===qn?e.createElement(t):e.createElementNS(n,t)}}function ja(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}function kr(t){var e=He(t);return(e.local?ja:Za)(e)}function Qa(){}function Gn(t){return t==null?Qa:function(){return this.querySelector(t)}}function Ja(t){typeof t!="function"&&(t=Gn(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),c,u,f=0;f<s;++f)(c=o[f])&&(u=t.call(c,c.__data__,f,o))&&("__data__"in c&&(u.__data__=c.__data__),a[f]=u);return new J(i,this._parents)}function Ka(t){return t==null?[]:Array.isArray(t)?t:Array.from(t)}function tc(){return[]}function Tr(t){return t==null?tc:function(){return this.querySelectorAll(t)}}function ec(t){return function(){return Ka(t.apply(this,arguments))}}function nc(t){typeof t=="function"?t=ec(t):t=Tr(t);for(var e=this._groups,n=e.length,i=[],r=[],o=0;o<n;++o)for(var s=e[o],a=s.length,c,u=0;u<a;++u)(c=s[u])&&(i.push(t.call(c,c.__data__,u,s)),r.push(c));return new J(i,r)}function Sr(t){return function(){return this.matches(t)}}function Mr(t){return function(e){return e.matches(t)}}var ic=Array.prototype.find;function rc(t){return function(){return ic.call(this.children,t)}}function oc(){return this.firstElementChild}function sc(t){return this.select(t==null?oc:rc(typeof t=="function"?t:Mr(t)))}var ac=Array.prototype.filter;function cc(){return Array.from(this.children)}function uc(t){return function(){return ac.call(this.children,t)}}function lc(t){return this.selectAll(t==null?cc:uc(typeof t=="function"?t:Mr(t)))}function fc(t){typeof t!="function"&&(t=Sr(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]=[],c,u=0;u<s;++u)(c=o[u])&&t.call(c,c.__data__,u,o)&&a.push(c);return new J(i,this._parents)}function Cr(t){return new Array(t.length)}function hc(){return new J(this._enter||this._groups.map(Cr),this._parents)}function Ye(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}Ye.prototype={constructor:Ye,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 dc(t){return function(){return t}}function gc(t,e,n,i,r,o){for(var s=0,a,c=e.length,u=o.length;s<u;++s)(a=e[s])?(a.__data__=o[s],i[s]=a):n[s]=new Ye(t,o[s]);for(;s<c;++s)(a=e[s])&&(r[s]=a)}function pc(t,e,n,i,r,o,s){var a,c,u=new Map,f=e.length,l=o.length,h=new Array(f),d;for(a=0;a<f;++a)(c=e[a])&&(h[a]=d=s.call(c,c.__data__,a,e)+"",u.has(d)?r[a]=c:u.set(d,c));for(a=0;a<l;++a)d=s.call(t,o[a],a,o)+"",(c=u.get(d))?(i[a]=c,c.__data__=o[a],u.delete(d)):n[a]=new Ye(t,o[a]);for(a=0;a<f;++a)(c=e[a])&&u.get(h[a])===c&&(r[a]=c)}function _c(t){return t.__data__}function mc(t,e){if(!arguments.length)return Array.from(this,_c);var n=e?pc:gc,i=this._parents,r=this._groups;typeof t!="function"&&(t=dc(t));for(var o=r.length,s=new Array(o),a=new Array(o),c=new Array(o),u=0;u<o;++u){var f=i[u],l=r[u],h=l.length,d=vc(t.call(f,f&&f.__data__,u,i)),p=d.length,g=a[u]=new Array(p),_=s[u]=new Array(p),v=c[u]=new Array(h);n(f,l,g,_,v,d,e);for(var y=0,m=0,S,b;y<p;++y)if(S=g[y]){for(y>=m&&(m=y+1);!(b=_[m])&&++m<p;);S._next=b||null}}return s=new J(s,i),s._enter=a,s._exit=c,s}function vc(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function yc(){return new J(this._exit||this._groups.map(Cr),this._parents)}function xc(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 wc(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),c=0;c<s;++c)for(var u=n[c],f=i[c],l=u.length,h=a[c]=new Array(l),d,p=0;p<l;++p)(d=u[p]||f[p])&&(h[p]=d);for(;c<r;++c)a[c]=n[c];return new J(a,this._parents)}function bc(){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=Tc);function e(l,h){return l&&h?t(l.__data__,h.__data__):!l-!h}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,c=r[o]=new Array(a),u,f=0;f<a;++f)(u=s[f])&&(c[f]=u);c.sort(e)}return new J(r,this._parents).order()}function Tc(t,e){return t<e?-1:t>e?1:t>=e?0:NaN}function Sc(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}function Mc(){return Array.from(this)}function Cc(){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 Ac(){let t=0;for(const e of this)++t;return t}function $c(){return!this.node()}function Ec(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 Nc(t){return function(){this.removeAttribute(t)}}function Oc(t){return function(){this.removeAttributeNS(t.space,t.local)}}function Dc(t,e){return function(){this.setAttribute(t,e)}}function Rc(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}function Fc(t,e){return function(){var n=e.apply(this,arguments);n==null?this.removeAttribute(t):this.setAttribute(t,n)}}function Lc(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 Ic(t,e){var n=He(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?Oc:Nc:typeof e=="function"?n.local?Lc:Fc:n.local?Rc:Dc)(n,e))}function Ar(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function zc(t){return function(){this.style.removeProperty(t)}}function Bc(t,e,n){return function(){this.style.setProperty(t,e,n)}}function Pc(t,e,n){return function(){var i=e.apply(this,arguments);i==null?this.style.removeProperty(t):this.style.setProperty(t,i,n)}}function Uc(t,e,n){return arguments.length>1?this.each((e==null?zc:typeof e=="function"?Pc:Bc)(t,e,n??"")):Vt(this.node(),t)}function Vt(t,e){return t.style.getPropertyValue(e)||Ar(t).getComputedStyle(t,null).getPropertyValue(e)}function Hc(t){return function(){delete this[t]}}function Yc(t,e){return function(){this[t]=e}}function Wc(t,e){return function(){var n=e.apply(this,arguments);n==null?delete this[t]:this[t]=n}}function Vc(t,e){return arguments.length>1?this.each((e==null?Hc:typeof e=="function"?Wc:Yc)(t,e)):this.node()[t]}function $r(t){return t.trim().split(/^|\s+/)}function Zn(t){return t.classList||new Er(t)}function Er(t){this._node=t,this._names=$r(t.getAttribute("class")||"")}Er.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 Nr(t,e){for(var n=Zn(t),i=-1,r=e.length;++i<r;)n.add(e[i])}function Or(t,e){for(var n=Zn(t),i=-1,r=e.length;++i<r;)n.remove(e[i])}function Xc(t){return function(){Nr(this,t)}}function qc(t){return function(){Or(this,t)}}function Gc(t,e){return function(){(e.apply(this,arguments)?Nr:Or)(this,t)}}function Zc(t,e){var n=$r(t+"");if(arguments.length<2){for(var i=Zn(this.node()),r=-1,o=n.length;++r<o;)if(!i.contains(n[r]))return!1;return!0}return this.each((typeof e=="function"?Gc:e?Xc:qc)(n,e))}function jc(){this.textContent=""}function Qc(t){return function(){this.textContent=t}}function Jc(t){return function(){var e=t.apply(this,arguments);this.textContent=e??""}}function Kc(t){return arguments.length?this.each(t==null?jc:(typeof t=="function"?Jc:Qc)(t)):this.node().textContent}function tu(){this.innerHTML=""}function eu(t){return function(){this.innerHTML=t}}function nu(t){return function(){var e=t.apply(this,arguments);this.innerHTML=e??""}}function iu(t){return arguments.length?this.each(t==null?tu:(typeof t=="function"?nu:eu)(t)):this.node().innerHTML}function ru(){this.nextSibling&&this.parentNode.appendChild(this)}function ou(){return this.each(ru)}function su(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function au(){return this.each(su)}function cu(t){var e=typeof t=="function"?t:kr(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})}function uu(){return null}function lu(t,e){var n=typeof t=="function"?t:kr(t),i=e==null?uu:typeof e=="function"?e:Gn(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})}function fu(){var t=this.parentNode;t&&t.removeChild(this)}function hu(){return this.each(fu)}function du(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function gu(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function pu(t){return this.select(t?gu:du)}function _u(t){return arguments.length?this.property("__data__",t):this.node().__data__}function mu(t){return function(e){t.call(this,e,this.__data__)}}function vu(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 yu(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 xu(t,e,n){return function(){var i=this.__on,r,o=mu(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 wu(t,e,n){var i=vu(t+""),r,o=i.length,s;if(arguments.length<2){var a=this.node().__on;if(a){for(var c=0,u=a.length,f;c<u;++c)for(r=0,f=a[c];r<o;++r)if((s=i[r]).type===f.type&&s.name===f.name)return f.value}return}for(a=e?xu:yu,r=0;r<o;++r)this.each(a(i[r],e,n));return this}function Dr(t,e,n){var i=Ar(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 bu(t,e){return function(){return Dr(this,t,e)}}function ku(t,e){return function(){return Dr(this,t,e.apply(this,arguments))}}function Tu(t,e){return this.each((typeof e=="function"?ku:bu)(t,e))}function*Su(){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 Rr=[null];function J(t,e){this._groups=t,this._parents=e}function fe(){return new J([[document.documentElement]],Rr)}function Mu(){return this}J.prototype=fe.prototype={constructor:J,select:Ja,selectAll:nc,selectChild:sc,selectChildren:lc,filter:fc,data:mc,enter:hc,exit:yc,join:xc,merge:wc,selection:Mu,order:bc,sort:kc,call:Sc,nodes:Mc,node:Cc,size:Ac,empty:$c,each:Ec,attr:Ic,style:Uc,property:Vc,classed:Zc,text:Kc,html:iu,raise:ou,lower:au,append:cu,insert:lu,remove:hu,clone:pu,datum:_u,on:wu,dispatch:Tu,[Symbol.iterator]:Su};function At(t){return typeof t=="string"?new J([[document.querySelector(t)]],[document.documentElement]):new J([[t]],Rr)}var he;(function(t){t[t.SVG=0]="SVG",t[t.HTML=1]="HTML"})(he||(he={}));var Xt;(function(t){t.Fit="fit",t.Extend="extend",t.FitWidth="fit_width"})(Xt||(Xt={}));function de(t,e){return t==null||e==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Cu(t,e){return t==null||e==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function jn(t){let e,n,i;t.length!==2?(e=de,n=(a,c)=>de(t(a),c),i=(a,c)=>t(a)-c):(e=t===de||t===Cu?t:Au,n=t,i=t);function r(a,c,u=0,f=a.length){if(u<f){if(e(c,c)!==0)return f;do{const l=u+f>>>1;n(a[l],c)<0?u=l+1:f=l}while(u<f)}return u}function o(a,c,u=0,f=a.length){if(u<f){if(e(c,c)!==0)return f;do{const l=u+f>>>1;n(a[l],c)<=0?u=l+1:f=l}while(u<f)}return u}function s(a,c,u=0,f=a.length){const l=r(a,c,u,f-1);return l>u&&i(a[l-1],c)>-i(a[l],c)?l-1:l}return{left:r,center:s,right:o}}function Au(){return 0}function Fr(t){return t===null?NaN:+t}const We=jn(de).right;jn(Fr).center;function $u(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 Lr extends Map{constructor(e,n=Ou){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(Ir(this,e))}has(e){return super.has(Ir(this,e))}set(e,n){return super.set(Eu(this,e),n)}delete(e){return super.delete(Nu(this,e))}}function Ir({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):n}function Eu({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):(t.set(i,n),n)}function Nu({_intern:t,_key:e},n){const i=e(n);return t.has(i)&&(n=t.get(i),t.delete(i)),n}function Ou(t){return t!==null&&typeof t=="object"?t.valueOf():t}const Du=Math.sqrt(50),Ru=Math.sqrt(10),Fu=Math.sqrt(2);function Ve(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>=Du?10:o>=Ru?5:o>=Fu?2:1;let a,c,u;return r<0?(u=Math.pow(10,-r)/s,a=Math.round(t*u),c=Math.round(e*u),a/u<t&&++a,c/u>e&&--c,u=-u):(u=Math.pow(10,r)*s,a=Math.round(t/u),c=Math.round(e/u),a*u<t&&++a,c*u>e&&--c),c<a&&.5<=n&&n<2?Ve(t,e,n*2):[a,c,u]}function Qn(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?Ve(e,t,n):Ve(t,e,n);if(!(o>=r))return[];const a=o-r+1,c=new Array(a);if(i)if(s<0)for(let u=0;u<a;++u)c[u]=(o-u)/-s;else for(let u=0;u<a;++u)c[u]=(o-u)*s;else if(s<0)for(let u=0;u<a;++u)c[u]=(r+u)/-s;else for(let u=0;u<a;++u)c[u]=(r+u)*s;return c}function Jn(t,e,n){return e=+e,t=+t,n=+n,Ve(t,e,n)[2]}function Kn(t,e,n){e=+e,t=+t,n=+n;const i=e<t,r=i?Jn(e,t,n):Jn(t,e,n);return(i?-1:1)*(r<0?1/-r:r)}function zr(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 Br(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 Lu(t,e,n=Fr){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*Iu(t){for(const e of t)yield*e}function zu(t){return Array.from(Iu(t))}function Bu(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 Pu(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 Uu(t,e,n){var i={},r=i.noTrailing,o=r===void 0?!1:r,s=i.noLeading,a=s===void 0?!1:s,c=i.debounceMode,u=c===void 0?void 0:c,f,l=!1,h=0;function d(){f&&clearTimeout(f)}function p(_){var v=_||{},y=v.upcomingOnly,m=y===void 0?!1:y;d(),l=!m}function g(){for(var _=arguments.length,v=new Array(_),y=0;y<_;y++)v[y]=arguments[y];var m=this,S=Date.now()-h;if(l)return;function b(){h=Date.now(),e.apply(m,v)}function w(){f=void 0}!a&&u&&!f&&b(),d(),u===void 0&&S>t?a?(h=Date.now(),o||(f=setTimeout(u?w:b,t))):b():o!==!0&&(f=setTimeout(u?w:b,u===void 0?t-S:t))}return g.cancel=p,g}const qt=t=>typeof t=="number",Pr=t=>typeof t=="function",ti=t=>Array.isArray(t),Hu=t=>t instanceof Object,Xe=t=>t.constructor.name!=="Function"&&t.constructor.name!=="Object",Ur=t=>Hu(t)&&!ti(t)&&!Pr(t)&&!Xe(t),ge=(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(!ge(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(!ge(t[s],e[s],n,i))return!1;return!0}return t===e},ei=t=>t.flat(),qe=(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):qe(i,e));return n}if(Xe(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]):qe(i[o],e),r),n),n}return t},pe=(t,e,n=new Map)=>{if(!t||!e||t===e)return t;const i=Xe(t)?t:qe(t);return n.has(e)?n.get(e):(n.set(e,i),Object.keys(e).forEach(r=>{r==="__proto__"||r==="constructor"||(Ur(t[r])&&Ur(e[r])?i[r]=pe(t[r],e[r],n):Xe(e)?i[r]=e:i[r]=qe(e[r]))}),i)},Hr=(t,e,n)=>Uu(e,t);function ni(t,e,n){return Pr(e)?e(t,n):e}function Yr(t,e,n){return ni(t,e,n)}function _e(t,e,n){return ni(t,e,n)}function me(t){return t.filter(e=>e&&!qt(e))}function Gt(t,e,n){return Math.min(Math.max(t,e),n)}function Yu(t,...e){return t?Br(t,(i,r)=>Br(e,o=>_e(i,o,r))):void 0}function Wu(t,...e){return t?zr(t,(i,r)=>zr(e,o=>_e(i,o,r))):void 0}function ii(t,...e){return[Yu(t,...e),Wu(t,...e)]}function Vu(t,e,n){return t.filter((r,o)=>{const s=_e(r,n,o);return s>=e[0]&&s<=e[1]})}var $t=[],Xu=function(){return $t.some(function(t){return t.activeTargets.length>0})},qu=function(){return $t.some(function(t){return t.skippedTargets.length>0})},Wr="ResizeObserver loop completed with undelivered notifications.",Gu=function(){var t;typeof ErrorEvent=="function"?t=new ErrorEvent("error",{message:Wr}):(t=document.createEvent("Event"),t.initEvent("error",!1,!1),t.message=Wr),window.dispatchEvent(t)},ve;(function(t){t.BORDER_BOX="border-box",t.CONTENT_BOX="content-box",t.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(ve||(ve={}));var Et=function(t){return Object.freeze(t)},Zu=function(){function t(e,n){this.inlineSize=e,this.blockSize=n,Et(this)}return t}(),Vr=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,Et(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,c=e.width,u=e.height;return{x:n,y:i,top:r,right:o,bottom:s,left:a,width:c,height:u}},t.fromRect=function(e){return new t(e.x,e.y,e.width,e.height)},t}(),ri=function(t){return t instanceof SVGElement&&"getBBox"in t},Xr=function(t){if(ri(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)},qr=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)},ju=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},ye=typeof window<"u"?window:{},Ge=new WeakMap,Gr=/auto|scroll/,Qu=/^tb|vertical/,Ju=/msie|trident/i.test(ye.navigator&&ye.navigator.userAgent),lt=function(t){return parseFloat(t||"0")},Zt=function(t,e,n){return t===void 0&&(t=0),e===void 0&&(e=0),n===void 0&&(n=!1),new Zu((n?e:t)||0,(n?t:e)||0)},Zr=Et({devicePixelContentBoxSize:Zt(),borderBoxSize:Zt(),contentBoxSize:Zt(),contentRect:new Vr(0,0,0,0)}),jr=function(t,e){if(e===void 0&&(e=!1),Ge.has(t)&&!e)return Ge.get(t);if(Xr(t))return Ge.set(t,Zr),Zr;var n=getComputedStyle(t),i=ri(t)&&t.ownerSVGElement&&t.getBBox(),r=!Ju&&n.boxSizing==="border-box",o=Qu.test(n.writingMode||""),s=!i&&Gr.test(n.overflowY||""),a=!i&&Gr.test(n.overflowX||""),c=i?0:lt(n.paddingTop),u=i?0:lt(n.paddingRight),f=i?0:lt(n.paddingBottom),l=i?0:lt(n.paddingLeft),h=i?0:lt(n.borderTopWidth),d=i?0:lt(n.borderRightWidth),p=i?0:lt(n.borderBottomWidth),g=i?0:lt(n.borderLeftWidth),_=l+u,v=c+f,y=g+d,m=h+p,S=a?t.offsetHeight-m-t.clientHeight:0,b=s?t.offsetWidth-y-t.clientWidth:0,w=r?_+y:0,k=r?v+m:0,I=i?i.width:lt(n.width)-w-b,F=i?i.height:lt(n.height)-k-S,tt=I+_+b+y,C=F+v+S+m,P=Et({devicePixelContentBoxSize:Zt(Math.round(I*devicePixelRatio),Math.round(F*devicePixelRatio),o),borderBoxSize:Zt(tt,C,o),contentBoxSize:Zt(I,F,o),contentRect:new Vr(l,c,I,F)});return Ge.set(t,P),P},Qr=function(t,e,n){var i=jr(t,n),r=i.borderBoxSize,o=i.contentBoxSize,s=i.devicePixelContentBoxSize;switch(e){case ve.DEVICE_PIXEL_CONTENT_BOX:return s;case ve.BORDER_BOX:return r;default:return o}},Ku=function(){function t(e){var n=jr(e);this.target=e,this.contentRect=n.contentRect,this.borderBoxSize=Et([n.borderBoxSize]),this.contentBoxSize=Et([n.contentBoxSize]),this.devicePixelContentBoxSize=Et([n.devicePixelContentBoxSize])}return t}(),Jr=function(t){if(Xr(t))return 1/0;for(var e=0,n=t.parentNode;n;)e+=1,n=n.parentNode;return e},tl=function(){var t=1/0,e=[];$t.forEach(function(s){if(s.activeTargets.length!==0){var a=[];s.activeTargets.forEach(function(u){var f=new Ku(u.target),l=Jr(u.target);a.push(f),u.lastReportedSize=Qr(u.target,u.observedBox),l<t&&(t=l)}),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},Kr=function(t){$t.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(r){r.isActive()&&(Jr(r.target)>t?n.activeTargets.push(r):n.skippedTargets.push(r))})})},el=function(){var t=0;for(Kr(t);Xu();)t=tl(),Kr(t);return qu()&&Gu(),t>0},oi,to=[],nl=function(){return to.splice(0).forEach(function(t){return t()})},il=function(t){if(!oi){var e=0,n=document.createTextNode(""),i={characterData:!0};new MutationObserver(function(){return nl()}).observe(n,i),oi=function(){n.textContent="".concat(e?e--:e++)}}to.push(t),oi()},rl=function(t){il(function(){requestAnimationFrame(t)})},Ze=0,ol=function(){return!!Ze},sl=250,al={attributes:!0,characterData:!0,childList:!0,subtree:!0},eo=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],no=function(t){return t===void 0&&(t=0),Date.now()+t},si=!1,cl=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=sl),!si){si=!0;var i=no(e);rl(function(){var r=!1;try{r=el()}finally{if(si=!1,e=i-no(),!ol())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,al)};document.body?n():ye.addEventListener("DOMContentLoaded",n)},t.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),eo.forEach(function(n){return ye.addEventListener(n,e.listener,!0)}))},t.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),eo.forEach(function(n){return ye.removeEventListener(n,e.listener,!0)}),this.stopped=!0)},t}(),ai=new cl,io=function(t){!Ze&&t>0&&ai.start(),Ze+=t,!Ze&&ai.stop()},ul=function(t){return!ri(t)&&!ju(t)&&getComputedStyle(t).display==="inline"},ll=function(){function t(e,n){this.target=e,this.observedBox=n||ve.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return t.prototype.isActive=function(){var e=Qr(this.target,this.observedBox,!0);return ul(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},t}(),fl=function(){function t(e,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=n}return t}(),je=new WeakMap,ro=function(t,e){for(var n=0;n<t.length;n+=1)if(t[n].target===e)return n;return-1},Qe=function(){function t(){}return t.connect=function(e,n){var i=new fl(e,n);je.set(e,i)},t.observe=function(e,n,i){var r=je.get(e),o=r.observationTargets.length===0;ro(r.observationTargets,n)<0&&(o&&$t.push(r),r.observationTargets.push(new ll(n,i&&i.box)),io(1),ai.schedule())},t.unobserve=function(e,n){var i=je.get(e),r=ro(i.observationTargets,n),o=i.observationTargets.length===1;r>=0&&(o&&$t.splice($t.indexOf(i),1),i.observationTargets.splice(r,1),io(-1))},t.disconnect=function(e){var n=this,i=je.get(e);i.observationTargets.slice().forEach(function(r){return n.unobserve(e,r.target)}),i.activeTargets.splice(0,i.activeTargets.length)},t}(),hl=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.");Qe.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(!qr(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Qe.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(!qr(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Qe.unobserve(this,e)},t.prototype.disconnect=function(){Qe.disconnect(this)},t.toString=function(){return"function ResizeObserver () { [polyfill code] }"},t}();const dl=globalThis.ResizeObserver||hl,oo={duration:void 0,margin:{top:0,bottom:0,left:0,right:0},padding:{top:0,bottom:0,left:0,right:0},sizing:Xt.Fit,width:void 0,height:void 0,svgDefs:void 0,ariaLabel:void 0};class xe{constructor(e){this._defaultConfig=oo,this._isFirstRender=!0,this._renderAnimationFrameId=null,this._container=e;const n=At(this._container);n.attr("role","figure"),this.svg=n.append("svg").style("display","block").attr("xmlns","http://www.w3.org/2000/svg").attr("height",xe.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=pe(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;At(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||xe.DEFAULT_CONTAINER_HEIGHT}get width(){return Gt(this.containerWidth-this.config.margin.left-this.config.margin.right,0,Number.POSITIVE_INFINITY)}get height(){return Gt(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===Xt.Fit||e.sizing===Xt.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 dl((n,i)=>{cancelAnimationFrame(this._resizeObserverAnimationFrameId),this._resizeObserverAnimationFrameId=requestAnimationFrame(()=>{const r=this._container.getBoundingClientRect(),o={width:r.width,height:r.height};!ge(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()}}xe.DEFAULT_CONTAINER_HEIGHT=300;function gl(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 pl(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 _l=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(pl(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var o=gl(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}(),X="-ms-",Je="-moz-",O="-webkit-",so="comm",ci="rule",ui="decl",ml="@import",ao="@keyframes",vl="@layer",yl=Math.abs,Ke=String.fromCharCode,xl=Object.assign;function wl(t,e){return V(t,0)^45?(((e<<2^V(t,0))<<2^V(t,1))<<2^V(t,2))<<2^V(t,3):0}function co(t){return t.trim()}function bl(t,e){return(t=e.exec(t))?t[0]:t}function D(t,e,n){return t.replace(e,n)}function li(t,e){return t.indexOf(e)}function V(t,e){return t.charCodeAt(e)|0}function we(t,e,n){return t.slice(e,n)}function ft(t){return t.length}function fi(t){return t.length}function tn(t,e){return e.push(t),t}function kl(t,e){return t.map(e).join("")}var en=1,jt=1,uo=0,G=0,U=0,Qt="";function nn(t,e,n,i,r,o,s){return{value:t,root:e,parent:n,type:i,props:r,children:o,line:en,column:jt,length:s,return:""}}function be(t,e){return xl(nn("",null,null,"",null,null,0),t,{length:-t.length},e)}function Tl(){return U}function Sl(){return U=G>0?V(Qt,--G):0,jt--,U===10&&(jt=1,en--),U}function K(){return U=G<uo?V(Qt,G++):0,jt++,U===10&&(jt=1,en++),U}function ht(){return V(Qt,G)}function rn(){return G}function ke(t,e){return we(Qt,t,e)}function Te(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 lo(t){return en=jt=1,uo=ft(Qt=t),G=0,[]}function fo(t){return Qt="",t}function on(t){return co(ke(G-1,hi(t===91?t+2:t===40?t+1:t)))}function Ml(t){for(;(U=ht())&&U<33;)K();return Te(t)>2||Te(U)>3?"":" "}function Cl(t,e){for(;--e&&K()&&!(U<48||U>102||U>57&&U<65||U>70&&U<97););return ke(t,rn()+(e<6&&ht()==32&&K()==32))}function hi(t){for(;K();)switch(U){case t:return G;case 34:case 39:t!==34&&t!==39&&hi(U);break;case 40:t===41&&hi(t);break;case 92:K();break}return G}function Al(t,e){for(;K()&&t+U!==57;)if(t+U===84&&ht()===47)break;return"/*"+ke(e,G-1)+"*"+Ke(t===47?t:K())}function $l(t){for(;!Te(ht());)K();return ke(t,G)}function El(t){return fo(sn("",null,null,null,[""],t=lo(t),0,[0],t))}function sn(t,e,n,i,r,o,s,a,c){for(var u=0,f=0,l=s,h=0,d=0,p=0,g=1,_=1,v=1,y=0,m="",S=r,b=o,w=i,k=m;_;)switch(p=y,y=K()){case 40:if(p!=108&&V(k,l-1)==58){li(k+=D(on(y),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:k+=on(y);break;case 9:case 10:case 13:case 32:k+=Ml(p);break;case 92:k+=Cl(rn()-1,7);continue;case 47:switch(ht()){case 42:case 47:tn(Nl(Al(K(),rn()),e,n),c);break;default:k+="/"}break;case 123*g:a[u++]=ft(k)*v;case 125*g:case 59:case 0:switch(y){case 0:case 125:_=0;case 59+f:v==-1&&(k=D(k,/\f/g,"")),d>0&&ft(k)-l&&tn(d>32?go(k+";",i,n,l-1):go(D(k," ","")+";",i,n,l-2),c);break;case 59:k+=";";default:if(tn(w=ho(k,e,n,u,f,r,a,m,S=[],b=[],l),o),y===123)if(f===0)sn(k,e,w,w,S,o,l,a,b);else switch(h===99&&V(k,3)===110?100:h){case 100:case 108:case 109:case 115:sn(t,w,w,i&&tn(ho(t,w,w,0,0,r,a,m,r,S=[],l),b),r,b,l,a,i?S:b);break;default:sn(k,w,w,w,[""],b,0,a,b)}}u=f=d=0,g=v=1,m=k="",l=s;break;case 58:l=1+ft(k),d=p;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&Sl()==125)continue}switch(k+=Ke(y),y*g){case 38:v=f>0?1:(k+="\f",-1);break;case 44:a[u++]=(ft(k)-1)*v,v=1;break;case 64:ht()===45&&(k+=on(K())),h=ht(),f=l=ft(m=k+=$l(rn())),y++;break;case 45:p===45&&ft(k)==2&&(g=0)}}return o}function ho(t,e,n,i,r,o,s,a,c,u,f){for(var l=r-1,h=r===0?o:[""],d=fi(h),p=0,g=0,_=0;p<i;++p)for(var v=0,y=we(t,l+1,l=yl(g=s[p])),m=t;v<d;++v)(m=co(g>0?h[v]+" "+y:D(y,/&\f/g,h[v])))&&(c[_++]=m);return nn(t,e,n,r===0?ci:a,c,u,f)}function Nl(t,e,n){return nn(t,e,n,so,Ke(Tl()),we(t,2,-2),0)}function go(t,e,n,i){return nn(t,e,n,ui,we(t,0,i),we(t,i+1,-1),i)}function Jt(t,e){for(var n="",i=fi(t),r=0;r<i;r++)n+=e(t[r],r,t,e)||"";return n}function Ol(t,e,n,i){switch(t.type){case vl:if(t.children.length)break;case ml:case ui:return t.return=t.return||t.value;case so:return"";case ao:return t.return=t.value+"{"+Jt(t.children,i)+"}";case ci:t.value=t.props.join(",")}return ft(n=Jt(t.children,i))?t.return=t.value+"{"+n+"}":""}function Dl(t){var e=fi(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 Rl(t){return function(e){e.root||(e=e.return)&&t(e)}}function Fl(t){var e=Object.create(null);return function(n){return e[n]===void 0&&(e[n]=t(n)),e[n]}}var Ll=function(e,n,i){for(var r=0,o=0;r=o,o=ht(),r===38&&o===12&&(n[i]=1),!Te(o);)K();return ke(e,G)},Il=function(e,n){var i=-1,r=44;do switch(Te(r)){case 0:r===38&&ht()===12&&(n[i]=1),e[i]+=Ll(G-1,n,i);break;case 2:e[i]+=on(r);break;case 4:if(r===44){e[++i]=ht()===58?"&\f":"",n[i]=e[i].length;break}default:e[i]+=Ke(r)}while(r=K());return e},zl=function(e,n){return fo(Il(lo(e),n))},po=new WeakMap,Bl=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&&!po.get(i))&&!r){po.set(e,!0);for(var o=[],s=zl(n,o),a=i.props,c=0,u=0;c<s.length;c++)for(var f=0;f<a.length;f++,u++)e.props[u]=o[c]?s[c].replace(/&\f/g,a[f]):a[f]+" "+s[c]}}},Pl=function(e){if(e.type==="decl"){var n=e.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(e.return="",e.value="")}};function _o(t,e){switch(wl(t,e)){case 5103:return O+"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 O+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return O+t+Je+t+X+t+t;case 6828:case 4268:return O+t+X+t+t;case 6165:return O+t+X+"flex-"+t+t;case 5187:return O+t+D(t,/(\w+).+(:[^]+)/,O+"box-$1$2"+X+"flex-$1$2")+t;case 5443:return O+t+X+"flex-item-"+D(t,/flex-|-self/,"")+t;case 4675:return O+t+X+"flex-line-pack"+D(t,/align-content|flex-|-self/,"")+t;case 5548:return O+t+X+D(t,"shrink","negative")+t;case 5292:return O+t+X+D(t,"basis","preferred-size")+t;case 6060:return O+"box-"+D(t,"-grow","")+O+t+X+D(t,"grow","positive")+t;case 4554:return O+D(t,/([^-])(transform)/g,"$1"+O+"$2")+t;case 6187:return D(D(D(t,/(zoom-|grab)/,O+"$1"),/(image-set)/,O+"$1"),t,"")+t;case 5495:case 3959:return D(t,/(image-set\([^]*)/,O+"$1$`$1");case 4968:return D(D(t,/(.+:)(flex-)?(.*)/,O+"box-pack:$3"+X+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+O+t+t;case 4095:case 3583:case 4068:case 2532:return D(t,/(.+)-inline(.+)/,O+"$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(ft(t)-1-e>6)switch(V(t,e+1)){case 109:if(V(t,e+4)!==45)break;case 102:return D(t,/(.+:)(.+)-([^]+)/,"$1"+O+"$2-$3$1"+Je+(V(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~li(t,"stretch")?_o(D(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(V(t,e+1)!==115)break;case 6444:switch(V(t,ft(t)-3-(~li(t,"!important")&&10))){case 107:return D(t,":",":"+O)+t;case 101:return D(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+O+(V(t,14)===45?"inline-":"")+"box$3$1"+O+"$2$3$1"+X+"$2box$3")+t}break;case 5936:switch(V(t,e+11)){case 114:return O+t+X+D(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return O+t+X+D(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return O+t+X+D(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return O+t+X+t+t}return t}var Ul=function(e,n,i,r){if(e.length>-1&&!e.return)switch(e.type){case ui:e.return=_o(e.value,e.length);break;case ao:return Jt([be(e,{value:D(e.value,"@","@"+O)})],r);case ci:if(e.length)return kl(e.props,function(o){switch(bl(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Jt([be(e,{props:[D(o,/:(read-\w+)/,":"+Je+"$1")]})],r);case"::placeholder":return Jt([be(e,{props:[D(o,/:(plac\w+)/,":"+O+"input-$1")]}),be(e,{props:[D(o,/:(plac\w+)/,":"+Je+"$1")]}),be(e,{props:[D(o,/:(plac\w+)/,X+"input-$1")]})],r)}return""})}},Hl=[Ul],Yl=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 _=g.getAttribute("data-emotion");_.indexOf(" ")!==-1&&(document.head.appendChild(g),g.setAttribute("data-s",""))})}var r=e.stylisPlugins||Hl,o={},s,a=[];s=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(g){for(var _=g.getAttribute("data-emotion").split(" "),v=1;v<_.length;v++)o[_[v]]=!0;a.push(g)});var c,u=[Bl,Pl];{var f,l=[Ol,Rl(function(g){f.insert(g)})],h=Dl(u.concat(r,l)),d=function(_){return Jt(El(_),h)};c=function(_,v,y,m){f=y,d(_?_+"{"+v.styles+"}":v.styles),m&&(p.inserted[v.name]=!0)}}var p={key:n,sheet:new _l({key:n,container:s,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:c};return p.sheet.hydrate(a),p};function Wl(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 Vl={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},Xl=/[A-Z]|^ms/g,ql=/_EMO_([^_]+?)_([^]*?)_EMO_/g,mo=function(e){return e.charCodeAt(1)===45},vo=function(e){return e!=null&&typeof e!="boolean"},di=Fl(function(t){return mo(t)?t:t.replace(Xl,"-$&").toLowerCase()}),yo=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(ql,function(i,r,o){return kt={name:r,styles:o,next:kt},r})}return Vl[e]!==1&&!mo(e)&&typeof n=="number"&&n!==0?n+"px":n};function an(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 kt={name:r.name,styles:r.styles,next:kt},r.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)kt={name:s.name,styles:s.styles,next:kt},s=s.next;var a=o.styles+";";return a}return Gl(t,e,n)}}var c=n;if(e==null)return c;var u=e[c];return u!==void 0?u:c}function Gl(t,e,n){var i="";if(Array.isArray(n))for(var r=0;r<n.length;r++)i+=an(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]+"}":vo(a)&&(i+=di(o)+":"+yo(o,a)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&(e==null||e[s[0]]===void 0))for(var c=0;c<s.length;c++)vo(s[c])&&(i+=di(o)+":"+yo(o,s[c])+";");else{var u=an(t,e,s);switch(o){case"animation":case"animationName":{i+=di(o)+":"+u+";";break}default:i+=o+"{"+u+"}"}}}return i}var xo=/label:\s*([^\s;{]+)\s*(;|$)/g,kt;function gi(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="";kt=void 0;var o=t[0];if(o==null||o.raw===void 0)i=!1,r+=an(n,e,o);else{var s=o;r+=s[0]}for(var a=1;a<t.length;a++)if(r+=an(n,e,t[a]),i){var c=o;r+=c[a]}xo.lastIndex=0;for(var u="",f;(f=xo.exec(r))!==null;)u+="-"+f[1];var l=Wl(r)+u;return{name:l,styles:r,next:kt}}function wo(t,e,n){var i="";return n.split(" ").forEach(function(r){t[r]!==void 0?e.push(t[r]+";"):r&&(i+=r+" ")}),i}var Zl=function(e,n,i){var r=e.key+"-"+n.name;e.registered[r]===void 0&&(e.registered[r]=n.styles)},jl=function(e,n,i){Zl(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 bo(t,e){if(t.inserted[e.name]===void 0)return t.insert("",e,t.sheet,!0)}function ko(t,e,n){var i=[],r=wo(t,i,n);return i.length<2?n:r+e(i)}var Ql=function(e){var n=Yl(e);n.sheet.speedy=function(a){this.isSpeedy=a},n.compat=!0;var i=function(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];var l=gi(u,n.registered,void 0);return jl(n,l),n.key+"-"+l.name},r=function(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];var l=gi(u,n.registered),h="animation-"+l.name;return bo(n,{name:l.name,styles:"@keyframes "+h+"{"+l.styles+"}"}),h},o=function(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];var l=gi(u,n.registered);bo(n,l)},s=function(){for(var c=arguments.length,u=new Array(c),f=0;f<c;f++)u[f]=arguments[f];return ko(n.registered,i,Jl(u))};return{css:i,cx:s,injectGlobal:o,keyframes:r,hydrate:function(c){c.forEach(function(u){n.inserted[u]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:wo.bind(null,n.registered),merge:ko.bind(null,n.registered,i)}},Jl=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},To=Ql({key:"css"}),pi=To.injectGlobal,q=To.css;function Kl(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var _i,So;function tf(){return So||(So=1,_i=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}),_i}var mi,Mo;function ef(){if(Mo)return mi;Mo=1;var t=tf();mi=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 c=n(a,"height")/128;return s.removeChild(a),c}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 c=r(a[1],s);return typeof c=="number"?a[0]*c:null}return null}return mi}ef();function Co(){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 nf(t,e){const n=t.substr(4,t.length-5);return getComputedStyle(e).getPropertyValue(n)}function rf(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,c,u,f]=[e.x+n,e.y+e.height-2*n,e.x+e.width-2*n,e.y+n];return!(r<f||c<s||o<a||u<i)}function vi(t,e,n){t.prototype=e.prototype=n,n.constructor=t}function Ao(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function Se(){}var Me=.7,cn=1/Me,Kt="\\s*([+-]?\\d+)\\s*",Ce="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",dt="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",of=/^#([0-9a-f]{3,8})$/,sf=new RegExp(`^rgb\\(${Kt},${Kt},${Kt}\\)$`),af=new RegExp(`^rgb\\(${dt},${dt},${dt}\\)$`),cf=new RegExp(`^rgba\\(${Kt},${Kt},${Kt},${Ce}\\)$`),uf=new RegExp(`^rgba\\(${dt},${dt},${dt},${Ce}\\)$`),lf=new RegExp(`^hsl\\(${Ce},${dt},${dt}\\)$`),ff=new RegExp(`^hsla\\(${Ce},${dt},${dt},${Ce}\\)$`),$o={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};vi(Se,Nt,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Eo,formatHex:Eo,formatHex8:hf,formatHsl:df,formatRgb:No,toString:No});function Eo(){return this.rgb().formatHex()}function hf(){return this.rgb().formatHex8()}function df(){return Lo(this).formatHsl()}function No(){return this.rgb().formatRgb()}function Nt(t){var e,n;return t=(t+"").trim().toLowerCase(),(e=of.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?Oo(e):n===3?new Z(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?un(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?un(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=sf.exec(t))?new Z(e[1],e[2],e[3],1):(e=af.exec(t))?new Z(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=cf.exec(t))?un(e[1],e[2],e[3],e[4]):(e=uf.exec(t))?un(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=lf.exec(t))?Fo(e[1],e[2]/100,e[3]/100,1):(e=ff.exec(t))?Fo(e[1],e[2]/100,e[3]/100,e[4]):$o.hasOwnProperty(t)?Oo($o[t]):t==="transparent"?new Z(NaN,NaN,NaN,0):null}function Oo(t){return new Z(t>>16&255,t>>8&255,t&255,1)}function un(t,e,n,i){return i<=0&&(t=e=n=NaN),new Z(t,e,n,i)}function gf(t){return t instanceof Se||(t=Nt(t)),t?(t=t.rgb(),new Z(t.r,t.g,t.b,t.opacity)):new Z}function yi(t,e,n,i){return arguments.length===1?gf(t):new Z(t,e,n,i??1)}function Z(t,e,n,i){this.r=+t,this.g=+e,this.b=+n,this.opacity=+i}vi(Z,yi,Ao(Se,{brighter(t){return t=t==null?cn:Math.pow(cn,t),new Z(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Me:Math.pow(Me,t),new Z(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Z(Ot(this.r),Ot(this.g),Ot(this.b),ln(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:Do,formatHex:Do,formatHex8:pf,formatRgb:Ro,toString:Ro}));function Do(){return`#${Dt(this.r)}${Dt(this.g)}${Dt(this.b)}`}function pf(){return`#${Dt(this.r)}${Dt(this.g)}${Dt(this.b)}${Dt((isNaN(this.opacity)?1:this.opacity)*255)}`}function Ro(){const t=ln(this.opacity);return`${t===1?"rgb(":"rgba("}${Ot(this.r)}, ${Ot(this.g)}, ${Ot(this.b)}${t===1?")":`, ${t})`}`}function ln(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Ot(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function Dt(t){return t=Ot(t),(t<16?"0":"")+t.toString(16)}function Fo(t,e,n,i){return i<=0?t=e=n=NaN:n<=0||n>=1?t=e=NaN:e<=0&&(t=NaN),new rt(t,e,n,i)}function Lo(t){if(t instanceof rt)return new rt(t.h,t.s,t.l,t.opacity);if(t instanceof Se||(t=Nt(t)),!t)return new rt;if(t instanceof rt)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,c=(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/=c<.5?o+r:2-o-r,s*=60):a=c>0&&c<1?0:s,new rt(s,a,c,t.opacity)}function xi(t,e,n,i){return arguments.length===1?Lo(t):new rt(t,e,n,i??1)}function rt(t,e,n,i){this.h=+t,this.s=+e,this.l=+n,this.opacity=+i}vi(rt,xi,Ao(Se,{brighter(t){return t=t==null?cn:Math.pow(cn,t),new rt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Me:Math.pow(Me,t),new rt(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 Z(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 rt(Io(this.h),fn(this.s),fn(this.l),ln(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=ln(this.opacity);return`${t===1?"hsl(":"hsla("}${Io(this.h)}, ${fn(this.s)*100}%, ${fn(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Io(t){return t=(t||0)%360,t<0?t+360:t}function fn(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 Ae=(globalThis==null?void 0:globalThis.UNOVIS_COLORS)||["#4D8CFD","#FF6B7E","#F4B83E","#A6CC74","#00C19A","#6859BE"],_f=(globalThis==null?void 0:globalThis.UNOVIS_COLORS_DARK)||["#4D8CFD","#FF6B7E","#FFC16D","#A6CC74","#00C19A","#7887E0"],Tt=t=>`--vis-${qt(t)?`color${t%Ae.length}`:t}`;function mf(t,e=.4){const n=xi(t);return n.l=n.l*(1+e),n.formatHex()}function vf(t,e=.4,n=.6){const i=xi(t);return i.s=i.s*(1-n),i.l=i.l*(1-e),i.formatHex()}const hn=10,bi=[{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"/>'}],ki=[{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 St(t){return`vis-${`pattern-${t.svg?"fill":"marker"}`}-${t.id}`}const yf=t=>`<mask id="${St(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>`,xf=(t,e)=>`<marker id="${St(t)}"
8
+ fill="var(${Tt(e)})"
9
+ markerUnits="userSpaceOnUse"
10
+ refX="5"
11
+ refY="5"
12
+ markerWidth="${hn}"
13
+ markerHeight="${hn}">
14
+ ${t.marker}
15
+ </marker>`;function wf(){const t=bi.map(yf).concat(ki.map(xf)).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"&&wf();const zo=(globalThis==null?void 0:globalThis.UNOVIS_FONT_W2H_RATIO_DEFAULT)||.5,Bo=(globalThis==null?void 0:globalThis.UNOVIS_TEXT_SEPARATOR_DEFAULT)||[" ","-",".",","],Po=(globalThis==null?void 0:globalThis.UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT)||"-",Uo=(globalThis==null?void 0:globalThis.UNOVIS_TEXT_DEFAULT)||{text:"",fontSize:12,fontFamily:"var(--vis-font-family)",lineHeight:1.25,marginTop:0,marginBottom:0};pi`
16
+ :root {
17
+ label: vis-root-styles;
18
+ --vis-font-family: Inter, Arial, "Helvetica Neue", Helvetica, sans-serif;
19
+ --vis-font-wh-ratio: ${zo};
20
+ --vis-color-main: var(${Tt(0)});
21
+ --vis-color-main-light: ${mf(Ae[0])};
22
+ --vis-color-main-dark: ${vf(Ae[0])};
23
+ --vis-color-grey: #2a2a2a;
24
+ ${Ae.map((t,e)=>`${Tt(e)}: ${t};`)}
25
+ ${_f.map((t,e)=>`--vis-dark-color${e}: ${t};`)}
26
+ ${bi.map((t,e)=>`
27
+ --${St(t)}: url(#${St(t)});
28
+ --vis-pattern-fill${e}: var(--${St(t)});
29
+ `)}
30
+ ${ki.map((t,e)=>{var n;return`
31
+ --${St(t)}: url(#${St(t)});
32
+ --vis-pattern-marker${e}: var(--${St(t)});
33
+ --vis-pattern-dasharray${e}: ${(n=t.dashArray)===null||n===void 0?void 0:n.join(" ")};
34
+ `})}
35
+
36
+ body.theme-dark {
37
+ ${Ae.map((t,e)=>`${Tt(e)}: var(--vis-dark-color${e});`)}
38
+ }
39
+
40
+ body.theme-patterns {
41
+ ${bi.map((t,e)=>`path[style*="fill: var(${Tt(e)})"] {
42
+ mask: var(--vis-pattern-fill${e});
43
+ }`)}
44
+ ${ki.map((t,e)=>`
45
+ path[stroke="var(${Tt(e)})"]:not([style*="fill"]),
46
+ path[style*="stroke: var(${Tt(e)})"]:not([style*="fill"]) {
47
+ marker: var(--vis-pattern-marker${e});
48
+ stroke-dasharray: var(--vis-pattern-dasharray${e});
49
+ }
50
+ `)}
51
+ }
52
+ `;function bf(t=window==null?void 0:window.document.body){return t?+nf("var(--vis-font-wh-ratio)",t):zo}var kf={value:()=>{}};function Ho(){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 dn(n)}function dn(t){this._=t}function Tf(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}})}dn.prototype=Ho.prototype={constructor:dn,on:function(t,e){var n=this._,i=Tf(t+"",n),r,o=-1,s=i.length;if(arguments.length<2){for(;++o<s;)if((r=(t=i[o]).type)&&(r=Sf(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]=Yo(n[r],t.name,e);else if(e==null)for(r in n)n[r]=Yo(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 dn(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 Sf(t,e){for(var n=0,i=t.length,r;n<i;++n)if((r=t[n]).name===e)return r.value}function Yo(t,e,n){for(var i=0,r=t.length;i<r;++i)if(t[i].name===e){t[i]=kf,t=t.slice(0,i).concat(t.slice(i+1));break}return n!=null&&t.push({name:e,value:n}),t}var te=0,$e=0,Ee=0,Wo=1e3,gn,Ne,pn=0,Rt=0,_n=0,Oe=typeof performance=="object"&&performance.now?performance:Date,Vo=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function Ti(){return Rt||(Vo(Mf),Rt=Oe.now()+_n)}function Mf(){Rt=0}function mn(){this._call=this._time=this._next=null}mn.prototype=Xo.prototype={constructor:mn,restart:function(t,e,n){if(typeof t!="function")throw new TypeError("callback is not a function");n=(n==null?Ti():+n)+(e==null?0:+e),!this._next&&Ne!==this&&(Ne?Ne._next=this:gn=this,Ne=this),this._call=t,this._time=n,Si()},stop:function(){this._call&&(this._call=null,this._time=1/0,Si())}};function Xo(t,e,n){var i=new mn;return i.restart(t,e,n),i}function Cf(){Ti(),++te;for(var t=gn,e;t;)(e=Rt-t._time)>=0&&t._call.call(void 0,e),t=t._next;--te}function qo(){Rt=(pn=Oe.now())+_n,te=$e=0;try{Cf()}finally{te=0,$f(),Rt=0}}function Af(){var t=Oe.now(),e=t-pn;e>Wo&&(_n-=e,pn=t)}function $f(){for(var t,e=gn,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:gn=n);Ne=t,Si(i)}function Si(t){if(!te){$e&&($e=clearTimeout($e));var e=t-Rt;e>24?(t<1/0&&($e=setTimeout(qo,t-Oe.now()-_n)),Ee&&(Ee=clearInterval(Ee))):(Ee||(pn=Oe.now(),Ee=setInterval(Af,Wo)),te=1,Vo(qo))}}function Go(t,e,n){var i=new mn;return e=e==null?0:+e,i.restart(r=>{i.stop(),t(r+e)},e,n),i}var Ef=Ho("start","end","cancel","interrupt"),Nf=[],Zo=0,jo=1,Mi=2,vn=3,Qo=4,Ci=5,yn=6;function xn(t,e,n,i,r,o){var s=t.__transition;if(!s)t.__transition={};else if(n in s)return;Of(t,n,{name:e,index:i,group:r,on:Ef,tween:Nf,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Zo})}function Ai(t,e){var n=ot(t,e);if(n.state>Zo)throw new Error("too late; already scheduled");return n}function gt(t,e){var n=ot(t,e);if(n.state>vn)throw new Error("too late; already running");return n}function ot(t,e){var n=t.__transition;if(!n||!(n=n[e]))throw new Error("transition not found");return n}function Of(t,e,n){var i=t.__transition,r;i[e]=n,n.timer=Xo(o,0,n.time);function o(u){n.state=jo,n.timer.restart(s,n.delay,n.time),n.delay<=u&&s(u-n.delay)}function s(u){var f,l,h,d;if(n.state!==jo)return c();for(f in i)if(d=i[f],d.name===n.name){if(d.state===vn)return Go(s);d.state===Qo?(d.state=yn,d.timer.stop(),d.on.call("interrupt",t,t.__data__,d.index,d.group),delete i[f]):+f<e&&(d.state=yn,d.timer.stop(),d.on.call("cancel",t,t.__data__,d.index,d.group),delete i[f])}if(Go(function(){n.state===vn&&(n.state=Qo,n.timer.restart(a,n.delay,n.time),a(u))}),n.state=Mi,n.on.call("start",t,t.__data__,n.index,n.group),n.state===Mi){for(n.state=vn,r=new Array(h=n.tween.length),f=0,l=-1;f<h;++f)(d=n.tween[f].value.call(t,t.__data__,n.index,n.group))&&(r[++l]=d);r.length=l+1}}function a(u){for(var f=u<n.duration?n.ease.call(null,u/n.duration):(n.timer.restart(c),n.state=Ci,1),l=-1,h=r.length;++l<h;)r[l].call(t,f);n.state===Ci&&(n.on.call("end",t,t.__data__,n.index,n.group),c())}function c(){n.state=yn,n.timer.stop(),delete i[e];for(var u in i)return;delete t.__transition}}function $i(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>Mi&&i.state<Ci,i.state=yn,i.timer.stop(),i.on.call(r?"interrupt":"cancel",t,t.__data__,i.index,i.group),delete n[s]}o&&delete t.__transition}}function Df(t){return this.each(function(){$i(this,t)})}const Ei=t=>()=>t;function Rf(t,e){return function(n){return t+n*e}}function Ff(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 Lf(t){return(t=+t)==1?Jo:function(e,n){return n-e?Ff(e,n,t):Ei(isNaN(e)?n:e)}}function Jo(t,e){var n=e-t;return n?Rf(t,n):Ei(isNaN(t)?e:t)}const wn=function t(e){var n=Lf(e);function i(r,o){var s=n((r=yi(r)).r,(o=yi(o)).r),a=n(r.g,o.g),c=n(r.b,o.b),u=Jo(r.opacity,o.opacity);return function(f){return r.r=s(f),r.g=a(f),r.b=c(f),r.opacity=u(f),r+""}}return i.gamma=t,i}(1);function If(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 zf(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)}function Bf(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]=ee(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 Pf(t,e){var n=new Date;return t=+t,e=+e,function(i){return n.setTime(t*(1-i)+e*i),n}}function st(t,e){return t=+t,e=+e,function(n){return t*(1-n)+e*n}}function Uf(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]=ee(t[r],e[r]):i[r]=e[r];return function(o){for(r in n)i[r]=n[r](o);return i}}var Ni=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Oi=new RegExp(Ni.source,"g");function Hf(t){return function(){return t}}function Yf(t){return function(e){return t(e)+""}}function Ko(t,e){var n=Ni.lastIndex=Oi.lastIndex=0,i,r,o,s=-1,a=[],c=[];for(t=t+"",e=e+"";(i=Ni.exec(t))&&(r=Oi.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,c.push({i:s,x:st(i,r)})),n=Oi.lastIndex;return n<e.length&&(o=e.slice(n),a[s]?a[s]+=o:a[++s]=o),a.length<2?c[0]?Yf(c[0].x):Hf(e):(e=c.length,function(u){for(var f=0,l;f<e;++f)a[(l=c[f]).i]=l.x(u);return a.join("")})}function ee(t,e){var n=typeof e,i;return e==null||n==="boolean"?Ei(e):(n==="number"?st:n==="string"?(i=Nt(e))?(e=i,wn):Ko:e instanceof Nt?wn:e instanceof Date?Pf:zf(e)?If:Array.isArray(e)?Bf:typeof e.valueOf!="function"&&typeof e.toString!="function"||isNaN(e)?Uf:st)(t,e)}function Di(t,e){return t=+t,e=+e,function(n){return Math.round(t*(1-n)+e*n)}}var ts=180/Math.PI,Ri={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function es(t,e,n,i,r,o){var s,a,c;return(s=Math.sqrt(t*t+e*e))&&(t/=s,e/=s),(c=t*n+e*i)&&(n-=t*c,i-=e*c),(a=Math.sqrt(n*n+i*i))&&(n/=a,i/=a,c/=a),t*i<e*n&&(t=-t,e=-e,c=-c,s=-s),{translateX:r,translateY:o,rotate:Math.atan2(e,t)*ts,skewX:Math.atan(c)*ts,scaleX:s,scaleY:a}}var bn;function Wf(t){const e=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(t+"");return e.isIdentity?Ri:es(e.a,e.b,e.c,e.d,e.e,e.f)}function Vf(t){return t==null||(bn||(bn=document.createElementNS("http://www.w3.org/2000/svg","g")),bn.setAttribute("transform",t),!(t=bn.transform.baseVal.consolidate()))?Ri:(t=t.matrix,es(t.a,t.b,t.c,t.d,t.e,t.f))}function ns(t,e,n,i){function r(u){return u.length?u.pop()+" ":""}function o(u,f,l,h,d,p){if(u!==l||f!==h){var g=d.push("translate(",null,e,null,n);p.push({i:g-4,x:st(u,l)},{i:g-2,x:st(f,h)})}else(l||h)&&d.push("translate("+l+e+h+n)}function s(u,f,l,h){u!==f?(u-f>180?f+=360:f-u>180&&(u+=360),h.push({i:l.push(r(l)+"rotate(",null,i)-2,x:st(u,f)})):f&&l.push(r(l)+"rotate("+f+i)}function a(u,f,l,h){u!==f?h.push({i:l.push(r(l)+"skewX(",null,i)-2,x:st(u,f)}):f&&l.push(r(l)+"skewX("+f+i)}function c(u,f,l,h,d,p){if(u!==l||f!==h){var g=d.push(r(d)+"scale(",null,",",null,")");p.push({i:g-4,x:st(u,l)},{i:g-2,x:st(f,h)})}else(l!==1||h!==1)&&d.push(r(d)+"scale("+l+","+h+")")}return function(u,f){var l=[],h=[];return u=t(u),f=t(f),o(u.translateX,u.translateY,f.translateX,f.translateY,l,h),s(u.rotate,f.rotate,l,h),a(u.skewX,f.skewX,l,h),c(u.scaleX,u.scaleY,f.scaleX,f.scaleY,l,h),u=f=null,function(d){for(var p=-1,g=h.length,_;++p<g;)l[(_=h[p]).i]=_.x(d);return l.join("")}}}var Xf=ns(Wf,"px, ","px)","deg)"),qf=ns(Vf,", ",")",")");function Gf(t,e){e===void 0&&(e=t,t=ee);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 Zf(t,e){var n,i;return function(){var r=gt(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 jf(t,e,n){var i,r;if(typeof n!="function")throw new Error;return function(){var o=gt(this,t),s=o.tween;if(s!==i){r=(i=s).slice();for(var a={name:e,value:n},c=0,u=r.length;c<u;++c)if(r[c].name===e){r[c]=a;break}c===u&&r.push(a)}o.tween=r}}function Qf(t,e){var n=this._id;if(t+="",arguments.length<2){for(var i=ot(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?Zf:jf)(n,t,e))}function Fi(t,e,n){var i=t._id;return t.each(function(){var r=gt(this,i);(r.value||(r.value={}))[e]=n.apply(this,arguments)}),function(r){return ot(r,i).value[e]}}function is(t,e){var n;return(typeof e=="number"?st:e instanceof Nt?wn:(n=Nt(e))?(e=n,wn):Ko)(t,e)}function Jf(t){return function(){this.removeAttribute(t)}}function Kf(t){return function(){this.removeAttributeNS(t.space,t.local)}}function th(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 eh(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 nh(t,e,n){var i,r,o;return function(){var s,a=n(this),c;return a==null?void this.removeAttribute(t):(s=this.getAttribute(t),c=a+"",s===c?null:s===i&&c===r?o:(r=c,o=e(i=s,a)))}}function ih(t,e,n){var i,r,o;return function(){var s,a=n(this),c;return a==null?void this.removeAttributeNS(t.space,t.local):(s=this.getAttributeNS(t.space,t.local),c=a+"",s===c?null:s===i&&c===r?o:(r=c,o=e(i=s,a)))}}function rh(t,e){var n=He(t),i=n==="transform"?qf:is;return this.attrTween(t,typeof e=="function"?(n.local?ih:nh)(n,i,Fi(this,"attr."+t,e)):e==null?(n.local?Kf:Jf)(n):(n.local?eh:th)(n,i,e))}function oh(t,e){return function(n){this.setAttribute(t,e.call(this,n))}}function sh(t,e){return function(n){this.setAttributeNS(t.space,t.local,e.call(this,n))}}function ah(t,e){var n,i;function r(){var o=e.apply(this,arguments);return o!==i&&(n=(i=o)&&sh(t,o)),n}return r._value=e,r}function ch(t,e){var n,i;function r(){var o=e.apply(this,arguments);return o!==i&&(n=(i=o)&&oh(t,o)),n}return r._value=e,r}function uh(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=He(t);return this.tween(n,(i.local?ah:ch)(i,e))}function lh(t,e){return function(){Ai(this,t).delay=+e.apply(this,arguments)}}function fh(t,e){return e=+e,function(){Ai(this,t).delay=e}}function hh(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?lh:fh)(e,t)):ot(this.node(),e).delay}function dh(t,e){return function(){gt(this,t).duration=+e.apply(this,arguments)}}function gh(t,e){return e=+e,function(){gt(this,t).duration=e}}function ph(t){var e=this._id;return arguments.length?this.each((typeof t=="function"?dh:gh)(e,t)):ot(this.node(),e).duration}function _h(t,e){if(typeof e!="function")throw new Error;return function(){gt(this,t).ease=e}}function mh(t){var e=this._id;return arguments.length?this.each(_h(e,t)):ot(this.node(),e).ease}function vh(t,e){return function(){var n=e.apply(this,arguments);if(typeof n!="function")throw new Error;gt(this,t).ease=n}}function yh(t){if(typeof t!="function")throw new Error;return this.each(vh(this._id,t))}function xh(t){typeof t!="function"&&(t=Sr(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]=[],c,u=0;u<s;++u)(c=o[u])&&t.call(c,c.__data__,u,o)&&a.push(c);return new _t(i,this._parents,this._name,this._id)}function wh(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 c=e[a],u=n[a],f=c.length,l=s[a]=new Array(f),h,d=0;d<f;++d)(h=c[d]||u[d])&&(l[d]=h);for(;a<i;++a)s[a]=e[a];return new _t(s,this._parents,this._name,this._id)}function bh(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 kh(t,e,n){var i,r,o=bh(e)?Ai:gt;return function(){var s=o(this,t),a=s.on;a!==i&&(r=(i=a).copy()).on(e,n),s.on=r}}function Th(t,e){var n=this._id;return arguments.length<2?ot(this.node(),n).on.on(t):this.each(kh(n,t,e))}function Sh(t){return function(){var e=this.parentNode;for(var n in this.__transition)if(+n!==t)return;e&&e.removeChild(this)}}function Mh(){return this.on("end.remove",Sh(this._id))}function Ch(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Gn(t));for(var i=this._groups,r=i.length,o=new Array(r),s=0;s<r;++s)for(var a=i[s],c=a.length,u=o[s]=new Array(c),f,l,h=0;h<c;++h)(f=a[h])&&(l=t.call(f,f.__data__,h,a))&&("__data__"in f&&(l.__data__=f.__data__),u[h]=l,xn(u[h],e,n,h,u,ot(f,n)));return new _t(o,this._parents,e,n)}function Ah(t){var e=this._name,n=this._id;typeof t!="function"&&(t=Tr(t));for(var i=this._groups,r=i.length,o=[],s=[],a=0;a<r;++a)for(var c=i[a],u=c.length,f,l=0;l<u;++l)if(f=c[l]){for(var h=t.call(f,f.__data__,l,c),d,p=ot(f,n),g=0,_=h.length;g<_;++g)(d=h[g])&&xn(d,e,n,g,h,p);o.push(h),s.push(f)}return new _t(o,s,e,n)}var $h=fe.prototype.constructor;function Eh(){return new $h(this._groups,this._parents)}function Nh(t,e){var n,i,r;return function(){var o=Vt(this,t),s=(this.style.removeProperty(t),Vt(this,t));return o===s?null:o===n&&s===i?r:r=e(n=o,i=s)}}function rs(t){return function(){this.style.removeProperty(t)}}function Oh(t,e,n){var i,r=n+"",o;return function(){var s=Vt(this,t);return s===r?null:s===i?o:o=e(i=s,n)}}function Dh(t,e,n){var i,r,o;return function(){var s=Vt(this,t),a=n(this),c=a+"";return a==null&&(c=a=(this.style.removeProperty(t),Vt(this,t))),s===c?null:s===i&&c===r?o:(r=c,o=e(i=s,a))}}function Rh(t,e){var n,i,r,o="style."+e,s="end."+o,a;return function(){var c=gt(this,t),u=c.on,f=c.value[o]==null?a||(a=rs(e)):void 0;(u!==n||r!==f)&&(i=(n=u).copy()).on(s,r=f),c.on=i}}function Fh(t,e,n){var i=(t+="")=="transform"?Xf:is;return e==null?this.styleTween(t,Nh(t,i)).on("end.style."+t,rs(t)):typeof e=="function"?this.styleTween(t,Dh(t,i,Fi(this,"style."+t,e))).each(Rh(this._id,t)):this.styleTween(t,Oh(t,i,e),n).on("end.style."+t,null)}function Lh(t,e,n){return function(i){this.style.setProperty(t,e.call(this,i),n)}}function Ih(t,e,n){var i,r;function o(){var s=e.apply(this,arguments);return s!==r&&(i=(r=s)&&Lh(t,s,n)),i}return o._value=e,o}function zh(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,Ih(t,e,n??""))}function Bh(t){return function(){this.textContent=t}}function Ph(t){return function(){var e=t(this);this.textContent=e??""}}function Uh(t){return this.tween("text",typeof t=="function"?Ph(Fi(this,"text",t)):Bh(t==null?"":t+""))}function Hh(t){return function(e){this.textContent=t.call(this,e)}}function Yh(t){var e,n;function i(){var r=t.apply(this,arguments);return r!==n&&(e=(n=r)&&Hh(r)),e}return i._value=t,i}function Wh(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,Yh(t))}function Vh(){for(var t=this._name,e=this._id,n=os(),i=this._groups,r=i.length,o=0;o<r;++o)for(var s=i[o],a=s.length,c,u=0;u<a;++u)if(c=s[u]){var f=ot(c,e);xn(c,t,n,u,s,{time:f.time+f.delay+f.duration,delay:0,duration:f.duration,ease:f.ease})}return new _t(i,this._parents,t,n)}function Xh(){var t,e,n=this,i=n._id,r=n.size();return new Promise(function(o,s){var a={value:s},c={value:function(){--r===0&&o()}};n.each(function(){var u=gt(this,i),f=u.on;f!==t&&(e=(t=f).copy(),e._.cancel.push(a),e._.interrupt.push(a),e._.end.push(c)),u.on=e}),r===0&&o()})}var qh=0;function _t(t,e,n,i){this._groups=t,this._parents=e,this._name=n,this._id=i}function os(){return++qh}var mt=fe.prototype;_t.prototype={constructor:_t,select:Ch,selectAll:Ah,selectChild:mt.selectChild,selectChildren:mt.selectChildren,filter:xh,merge:wh,selection:Eh,transition:Vh,call:mt.call,nodes:mt.nodes,node:mt.node,size:mt.size,empty:mt.empty,each:mt.each,on:Th,attr:rh,attrTween:uh,style:Fh,styleTween:zh,text:Uh,textTween:Wh,remove:Mh,tween:Qf,delay:hh,duration:ph,ease:mh,easeVarying:yh,end:Xh,[Symbol.iterator]:mt[Symbol.iterator]};function Gh(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}var Zh={time:null,delay:0,duration:250,ease:Gh};function jh(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 Qh(t){var e,n;t instanceof _t?(e=t._id,t=t._name):(e=os(),(n=Zh).time=Ti(),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,c,u=0;u<a;++u)(c=s[u])&&xn(c,t,e,u,s,n||jh(c,e));return new _t(i,this._parents,t,e)}fe.prototype.interrupt=Df,fe.prototype.transition=Qh;function Ft(t,e,n){return t.nodes().forEach(i=>$i(i)),e?t.transition().duration(e):t}class Li{constructor(e){this.data=e}get data(){return this._data}set data(e){this._data=e}}var R;(function(t){t.X="x",t.Y="y"})(R||(R={}));function at(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function ss(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 as=Symbol("implicit");function Ii(){var t=new Lr,e=[],n=[],i=as;function r(o){let s=t.get(o);if(s===void 0){if(i!==as)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 Lr;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 Ii(e,n).unknown(i)},at.apply(r,arguments),r}function zi(){var t=Ii().unknown(void 0),e=t.domain,n=t.range,i=0,r=1,o,s,a=!1,c=0,u=0,f=.5;delete t.unknown;function l(){var h=e().length,d=r<i,p=d?r:i,g=d?i:r;o=(g-p)/Math.max(1,h-c+u*2),a&&(o=Math.floor(o)),p+=(g-p-o*(h-c))*f,s=o*(1-c),a&&(p=Math.round(p),s=Math.round(s));var _=Bu(h).map(function(v){return p+o*v});return n(d?_.reverse():_)}return t.domain=function(h){return arguments.length?(e(h),l()):e()},t.range=function(h){return arguments.length?([i,r]=h,i=+i,r=+r,l()):[i,r]},t.rangeRound=function(h){return[i,r]=h,i=+i,r=+r,a=!0,l()},t.bandwidth=function(){return s},t.step=function(){return o},t.round=function(h){return arguments.length?(a=!!h,l()):a},t.padding=function(h){return arguments.length?(c=Math.min(1,u=+h),l()):c},t.paddingInner=function(h){return arguments.length?(c=Math.min(1,h),l()):c},t.paddingOuter=function(h){return arguments.length?(u=+h,l()):u},t.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),l()):f},t.copy=function(){return zi(e(),[i,r]).round(a).paddingInner(c).paddingOuter(u).align(f)},at.apply(l(),arguments)}function cs(t){var e=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return cs(e())},t}function Jh(){return cs(zi.apply(null,arguments).paddingInner(1))}function Kh(t){return function(){return t}}function Bi(t){return+t}var us=[0,1];function j(t){return t}function Pi(t,e){return(e-=t=+t)?function(n){return(n-t)/e}:Kh(isNaN(e)?NaN:.5)}function td(t,e){var n;return t>e&&(n=t,t=e,e=n),function(i){return Math.max(t,Math.min(e,i))}}function ed(t,e,n){var i=t[0],r=t[1],o=e[0],s=e[1];return r<i?(i=Pi(r,i),o=n(s,o)):(i=Pi(i,r),o=n(o,s)),function(a){return o(i(a))}}function nd(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]=Pi(t[s],t[s+1]),o[s]=n(e[s],e[s+1]);return function(a){var c=We(t,a,1,i)-1;return o[c](r[c](a))}}function De(t,e){return e.domain(t.domain()).range(t.range()).interpolate(t.interpolate()).clamp(t.clamp()).unknown(t.unknown())}function kn(){var t=us,e=us,n=ee,i,r,o,s=j,a,c,u;function f(){var h=Math.min(t.length,e.length);return s!==j&&(s=td(t[0],t[h-1])),a=h>2?nd:ed,c=u=null,l}function l(h){return h==null||isNaN(h=+h)?o:(c||(c=a(t.map(i),e,n)))(i(s(h)))}return l.invert=function(h){return s(r((u||(u=a(e,t.map(i),st)))(h)))},l.domain=function(h){return arguments.length?(t=Array.from(h,Bi),f()):t.slice()},l.range=function(h){return arguments.length?(e=Array.from(h),f()):e.slice()},l.rangeRound=function(h){return e=Array.from(h),n=Di,f()},l.clamp=function(h){return arguments.length?(s=h?!0:j,f()):s!==j},l.interpolate=function(h){return arguments.length?(n=h,f()):n},l.unknown=function(h){return arguments.length?(o=h,l):o},function(h,d){return i=h,r=d,f()}}function ls(){return kn()(j,j)}function id(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function Tn(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 ne(t){return t=Tn(Math.abs(t)),t?t[1]:NaN}function rd(t,e){return function(n,i){for(var r=n.length,o=[],s=0,a=t[0],c=0;r>0&&a>0&&(c+a+1>i&&(a=Math.max(1,i-c)),o.push(n.substring(r-=a,r+a)),!((c+=a+1)>i));)a=t[s=(s+1)%t.length];return o.reverse().join(e)}}function od(t){return function(e){return e.replace(/[0-9]/g,function(n){return t[+n]})}}var sd=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Re(t){if(!(e=sd.exec(t)))throw new Error("invalid format: "+t);var e;return new Ui({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]})}Re.prototype=Ui.prototype;function Ui(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+""}Ui.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 ad(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 fs;function cd(t,e){var n=Tn(t,e);if(!n)return t+"";var i=n[0],r=n[1],o=r-(fs=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")+Tn(t,Math.max(0,e+o-1))[0]}function hs(t,e){var n=Tn(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 ds={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:id,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)=>hs(t*100,e),r:hs,s:cd,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function gs(t){return t}var ps=Array.prototype.map,_s=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ud(t){var e=t.grouping===void 0||t.thousands===void 0?gs:rd(ps.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?gs:od(ps.call(t.numerals,String)),s=t.percent===void 0?"%":t.percent+"",a=t.minus===void 0?"−":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function u(l){l=Re(l);var h=l.fill,d=l.align,p=l.sign,g=l.symbol,_=l.zero,v=l.width,y=l.comma,m=l.precision,S=l.trim,b=l.type;b==="n"?(y=!0,b="g"):ds[b]||(m===void 0&&(m=12),S=!0,b="g"),(_||h==="0"&&d==="=")&&(_=!0,h="0",d="=");var w=g==="$"?n:g==="#"&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",k=g==="$"?i:/[%p]/.test(b)?s:"",I=ds[b],F=/[defgprs%]/.test(b);m=m===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m));function tt(C){var P=w,Y=k,Ct,Xn,ce;if(b==="c")Y=I(C)+Y,C="";else{C=+C;var ue=C<0||1/C<0;if(C=isNaN(C)?c:I(Math.abs(C),m),S&&(C=ad(C)),ue&&+C==0&&p!=="+"&&(ue=!1),P=(ue?p==="("?p:a:p==="-"||p==="("?"":p)+P,Y=(b==="s"?_s[8+fs/3]:"")+Y+(ue&&p==="("?")":""),F){for(Ct=-1,Xn=C.length;++Ct<Xn;)if(ce=C.charCodeAt(Ct),48>ce||ce>57){Y=(ce===46?r+C.slice(Ct+1):C.slice(Ct))+Y,C=C.slice(0,Ct);break}}}y&&!_&&(C=e(C,1/0));var le=P.length+C.length+Y.length,ut=le<v?new Array(v-le+1).join(h):"";switch(y&&_&&(C=e(ut+C,ut.length?v-Y.length:1/0),ut=""),d){case"<":C=P+C+Y+ut;break;case"=":C=P+ut+C+Y;break;case"^":C=ut.slice(0,le=ut.length>>1)+P+C+Y+ut.slice(le);break;default:C=ut+P+C+Y;break}return o(C)}return tt.toString=function(){return l+""},tt}function f(l,h){var d=u((l=Re(l),l.type="f",l)),p=Math.max(-8,Math.min(8,Math.floor(ne(h)/3)))*3,g=Math.pow(10,-p),_=_s[8+p/3];return function(v){return d(g*v)+_}}return{format:u,formatPrefix:f}}var Sn,Hi,ms;ld({thousands:",",grouping:[3],currency:["$",""]});function ld(t){return Sn=ud(t),Hi=Sn.format,ms=Sn.formatPrefix,Sn}function fd(t){return Math.max(0,-ne(Math.abs(t)))}function hd(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ne(e)/3)))*3-ne(Math.abs(t)))}function dd(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,ne(e)-ne(t))+1}function gd(t,e,n,i){var r=Kn(t,e,n),o;switch(i=Re(i??",f"),i.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));return i.precision==null&&!isNaN(o=hd(r,s))&&(i.precision=o),ms(i,s)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(o=dd(r,Math.max(Math.abs(t),Math.abs(e))))&&(i.precision=o-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(o=fd(r))&&(i.precision=o-(i.type==="%")*2);break}}return Hi(i)}function Lt(t){var e=t.domain;return t.ticks=function(n){var i=e();return Qn(i[0],i[i.length-1],n??10)},t.tickFormat=function(n,i){var r=e();return gd(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],c,u,f=10;for(a<s&&(u=s,s=a,a=u,u=r,r=o,o=u);f-- >0;){if(u=Jn(s,a,n),u===c)return i[r]=s,i[o]=a,e(i);if(u>0)s=Math.floor(s/u)*u,a=Math.ceil(a/u)*u;else if(u<0)s=Math.ceil(s*u)/u,a=Math.floor(a*u)/u;else break;c=u}return t},t}function vs(){var t=ls();return t.copy=function(){return De(t,vs())},at.apply(t,arguments),Lt(t)}function ys(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,Bi),n):t.slice()},n.unknown=function(i){return arguments.length?(e=i,n):e},n.copy=function(){return ys(t).unknown(e)},t=arguments.length?Array.from(t,Bi):[0,1],Lt(n)}function xs(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 ws(t){return Math.log(t)}function bs(t){return Math.exp(t)}function pd(t){return-Math.log(-t)}function _d(t){return-Math.exp(-t)}function md(t){return isFinite(t)?+("1e"+t):t<0?0:t}function vd(t){return t===10?md:t===Math.E?Math.exp:e=>Math.pow(t,e)}function yd(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 ks(t){return(e,n)=>-t(-e,n)}function xd(t){const e=t(ws,bs),n=e.domain;let i=10,r,o;function s(){return r=yd(i),o=vd(i),n()[0]<0?(r=ks(r),o=ks(o),t(pd,_d)):t(ws,bs),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 c=n();let u=c[0],f=c[c.length-1];const l=f<u;l&&([u,f]=[f,u]);let h=r(u),d=r(f),p,g;const _=a==null?10:+a;let v=[];if(!(i%1)&&d-h<_){if(h=Math.floor(h),d=Math.ceil(d),u>0){for(;h<=d;++h)for(p=1;p<i;++p)if(g=h<0?p/o(-h):p*o(h),!(g<u)){if(g>f)break;v.push(g)}}else for(;h<=d;++h)for(p=i-1;p>=1;--p)if(g=h>0?p/o(-h):p*o(h),!(g<u)){if(g>f)break;v.push(g)}v.length*2<_&&(v=Qn(u,f,_))}else v=Qn(h,d,Math.min(d-h,_)).map(o);return l?v.reverse():v},e.tickFormat=(a,c)=>{if(a==null&&(a=10),c==null&&(c=i===10?"s":","),typeof c!="function"&&(!(i%1)&&(c=Re(c)).precision==null&&(c.trim=!0),c=Hi(c)),a===1/0)return c;const u=Math.max(1,i*a/e.ticks().length);return f=>{let l=f/o(Math.round(r(f)));return l*i<i-.5&&(l*=i),l<=u?c(f):""}},e.nice=()=>n(xs(n(),{floor:a=>o(Math.floor(r(a))),ceil:a=>o(Math.ceil(r(a)))})),e}function Ts(){const t=xd(kn()).domain([1,10]);return t.copy=()=>De(t,Ts()).base(t.base()),at.apply(t,arguments),t}function Ss(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Ms(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function wd(t){var e=1,n=t(Ss(e),Ms(e));return n.constant=function(i){return arguments.length?t(Ss(e=+i),Ms(e)):e},Lt(n)}function Cs(){var t=wd(kn());return t.copy=function(){return De(t,Cs()).constant(t.constant())},at.apply(t,arguments)}function As(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function bd(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function kd(t){return t<0?-t*t:t*t}function Td(t){var e=t(j,j),n=1;function i(){return n===1?t(j,j):n===.5?t(bd,kd):t(As(n),As(1/n))}return e.exponent=function(r){return arguments.length?(n=+r,i()):n},Lt(e)}function Yi(){var t=Td(kn());return t.copy=function(){return De(t,Yi()).exponent(t.exponent())},at.apply(t,arguments),t}function Sd(){return Yi.apply(null,arguments).exponent(.5)}function $s(){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]=Lu(t,s/a);return o}function o(s){return s==null||isNaN(s=+s)?i:e[We(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(de),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 $s().domain(t).range(e).unknown(i)},at.apply(o,arguments)}function Es(){var t=0,e=1,n=1,i=[.5],r=[0,1],o;function s(c){return c!=null&&c<=c?r[We(i,c,0,n)]:o}function a(){var c=-1;for(i=new Array(n);++c<n;)i[c]=((c+1)*e-(c-n)*t)/(n+1);return s}return s.domain=function(c){return arguments.length?([t,e]=c,t=+t,e=+e,a()):[t,e]},s.range=function(c){return arguments.length?(n=(r=Array.from(c)).length-1,a()):r.slice()},s.invertExtent=function(c){var u=r.indexOf(c);return u<0?[NaN,NaN]:u<1?[t,i[0]]:u>=n?[i[n-1],e]:[i[u-1],i[u]]},s.unknown=function(c){return arguments.length&&(o=c),s},s.thresholds=function(){return i.slice()},s.copy=function(){return Es().domain([t,e]).range(r).unknown(o)},at.apply(Lt(s),arguments)}function Ns(){var t=[.5],e=[0,1],n,i=1;function r(o){return o!=null&&o<=o?e[We(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 Ns().domain(t).range(e).unknown(n)},at.apply(r,arguments)}const Wi=new Date,Vi=new Date;function H(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 c=[];if(o=r.ceil(o),a=a==null?1:Math.floor(a),!(o<s)||!(a>0))return c;let u;do c.push(u=new Date(+o)),e(o,a),t(o);while(u<o&&o<s);return c},r.filter=o=>H(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)=>(Wi.setTime(+o),Vi.setTime(+s),t(Wi),t(Vi),Math.floor(n(Wi,Vi))),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 Mn=H(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Mn.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?H(e=>{e.setTime(Math.floor(e/t)*t)},(e,n)=>{e.setTime(+e+n*t)},(e,n)=>(n-e)/t):Mn),Mn.range;const vt=1e3,it=vt*60,yt=it*60,xt=yt*24,Xi=xt*7,Os=xt*30,qi=xt*365,It=H(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*vt)},(t,e)=>(e-t)/vt,t=>t.getUTCSeconds());It.range;const Gi=H(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*vt)},(t,e)=>{t.setTime(+t+e*it)},(t,e)=>(e-t)/it,t=>t.getMinutes());Gi.range;const Zi=H(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*it)},(t,e)=>(e-t)/it,t=>t.getUTCMinutes());Zi.range;const ji=H(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*vt-t.getMinutes()*it)},(t,e)=>{t.setTime(+t+e*yt)},(t,e)=>(e-t)/yt,t=>t.getHours());ji.range;const Qi=H(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*yt)},(t,e)=>(e-t)/yt,t=>t.getUTCHours());Qi.range;const Fe=H(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*it)/xt,t=>t.getDate()-1);Fe.range;const Cn=H(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/xt,t=>t.getUTCDate()-1);Cn.range;const Ds=H(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/xt,t=>Math.floor(t/xt));Ds.range;function zt(t){return H(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())*it)/Xi)}const An=zt(0),$n=zt(1),Md=zt(2),Cd=zt(3),ie=zt(4),Ad=zt(5),$d=zt(6);An.range,$n.range,Md.range,Cd.range,ie.range,Ad.range,$d.range;function Bt(t){return H(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)/Xi)}const En=Bt(0),Nn=Bt(1),Ed=Bt(2),Nd=Bt(3),re=Bt(4),Od=Bt(5),Dd=Bt(6);En.range,Nn.range,Ed.range,Nd.range,re.range,Od.range,Dd.range;const Ji=H(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());Ji.range;const Ki=H(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());Ki.range;const wt=H(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());wt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:H(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)}),wt.range;const bt=H(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());bt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:H(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)}),bt.range;function Rs(t,e,n,i,r,o){const s=[[It,1,vt],[It,5,5*vt],[It,15,15*vt],[It,30,30*vt],[o,1,it],[o,5,5*it],[o,15,15*it],[o,30,30*it],[r,1,yt],[r,3,3*yt],[r,6,6*yt],[r,12,12*yt],[i,1,xt],[i,2,2*xt],[n,1,Xi],[e,1,Os],[e,3,3*Os],[t,1,qi]];function a(u,f,l){const h=f<u;h&&([u,f]=[f,u]);const d=l&&typeof l.range=="function"?l:c(u,f,l),p=d?d.range(u,+f+1):[];return h?p.reverse():p}function c(u,f,l){const h=Math.abs(f-u)/l,d=jn(([,,_])=>_).right(s,h);if(d===s.length)return t.every(Kn(u/qi,f/qi,l));if(d===0)return Mn.every(Math.max(Kn(u,f,l),1));const[p,g]=s[h/s[d-1][2]<s[d][2]/h?d-1:d];return p.every(g)}return[a,c]}const[Rd,Fd]=Rs(bt,Ki,En,Ds,Qi,Zi),[Ld,Id]=Rs(wt,Ji,An,Fe,ji,Gi);function tr(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 er(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 Le(t,e,n){return{y:t,m:e,d:n,H:0,M:0,S:0,L:0}}function zd(t){var e=t.dateTime,n=t.date,i=t.time,r=t.periods,o=t.days,s=t.shortDays,a=t.months,c=t.shortMonths,u=Ie(r),f=ze(r),l=Ie(o),h=ze(o),d=Ie(s),p=ze(s),g=Ie(a),_=ze(a),v=Ie(c),y=ze(c),m={a:ue,A:le,b:ut,B:xp,c:null,d:Ps,e:Ps,f:a0,g:m0,G:y0,H:r0,I:o0,j:s0,L:Us,m:c0,M:u0,p:wp,q:bp,Q:qs,s:Gs,S:l0,u:f0,U:h0,V:d0,w:g0,W:p0,x:null,X:null,y:_0,Y:v0,Z:x0,"%":Xs},S={a:kp,A:Tp,b:Sp,B:Mp,c:null,d:Ys,e:Ys,f:T0,g:R0,G:L0,H:w0,I:b0,j:k0,L:Ws,m:S0,M:M0,p:Cp,q:Ap,Q:qs,s:Gs,S:C0,u:A0,U:$0,V:E0,w:N0,W:O0,x:null,X:null,y:D0,Y:F0,Z:I0,"%":Xs},b={a:tt,A:C,b:P,B:Y,c:Ct,d:zs,e:zs,f:t0,g:Is,G:Ls,H:Bs,I:Bs,j:jd,L:Kd,m:Zd,M:Qd,p:F,q:Gd,Q:n0,s:i0,S:Jd,u:Yd,U:Wd,V:Vd,w:Hd,W:Xd,x:Xn,X:ce,y:Is,Y:Ls,Z:qd,"%":e0};m.x=w(n,m),m.X=w(i,m),m.c=w(e,m),S.x=w(n,S),S.X=w(i,S),S.c=w(e,S);function w(M,A){return function(N){var x=[],Q=-1,L=0,et=M.length,nt,Wt,Ga;for(N instanceof Date||(N=new Date(+N));++Q<et;)M.charCodeAt(Q)===37&&(x.push(M.slice(L,Q)),(Wt=Fs[nt=M.charAt(++Q)])!=null?nt=M.charAt(++Q):Wt=nt==="e"?" ":"0",(Ga=A[nt])&&(nt=Ga(N,Wt)),x.push(nt),L=Q+1);return x.push(M.slice(L,Q)),x.join("")}}function k(M,A){return function(N){var x=Le(1900,void 0,1),Q=I(x,M,N+="",0),L,et;if(Q!=N.length)return null;if("Q"in x)return new Date(x.Q);if("s"in x)return new Date(x.s*1e3+("L"in x?x.L:0));if(A&&!("Z"in x)&&(x.Z=0),"p"in x&&(x.H=x.H%12+x.p*12),x.m===void 0&&(x.m="q"in x?x.q:0),"V"in x){if(x.V<1||x.V>53)return null;"w"in x||(x.w=1),"Z"in x?(L=er(Le(x.y,0,1)),et=L.getUTCDay(),L=et>4||et===0?Nn.ceil(L):Nn(L),L=Cn.offset(L,(x.V-1)*7),x.y=L.getUTCFullYear(),x.m=L.getUTCMonth(),x.d=L.getUTCDate()+(x.w+6)%7):(L=tr(Le(x.y,0,1)),et=L.getDay(),L=et>4||et===0?$n.ceil(L):$n(L),L=Fe.offset(L,(x.V-1)*7),x.y=L.getFullYear(),x.m=L.getMonth(),x.d=L.getDate()+(x.w+6)%7)}else("W"in x||"U"in x)&&("w"in x||(x.w="u"in x?x.u%7:"W"in x?1:0),et="Z"in x?er(Le(x.y,0,1)).getUTCDay():tr(Le(x.y,0,1)).getDay(),x.m=0,x.d="W"in x?(x.w+6)%7+x.W*7-(et+5)%7:x.w+x.U*7-(et+6)%7);return"Z"in x?(x.H+=x.Z/100|0,x.M+=x.Z%100,er(x)):tr(x)}}function I(M,A,N,x){for(var Q=0,L=A.length,et=N.length,nt,Wt;Q<L;){if(x>=et)return-1;if(nt=A.charCodeAt(Q++),nt===37){if(nt=A.charAt(Q++),Wt=b[nt in Fs?A.charAt(Q++):nt],!Wt||(x=Wt(M,N,x))<0)return-1}else if(nt!=N.charCodeAt(x++))return-1}return x}function F(M,A,N){var x=u.exec(A.slice(N));return x?(M.p=f.get(x[0].toLowerCase()),N+x[0].length):-1}function tt(M,A,N){var x=d.exec(A.slice(N));return x?(M.w=p.get(x[0].toLowerCase()),N+x[0].length):-1}function C(M,A,N){var x=l.exec(A.slice(N));return x?(M.w=h.get(x[0].toLowerCase()),N+x[0].length):-1}function P(M,A,N){var x=v.exec(A.slice(N));return x?(M.m=y.get(x[0].toLowerCase()),N+x[0].length):-1}function Y(M,A,N){var x=g.exec(A.slice(N));return x?(M.m=_.get(x[0].toLowerCase()),N+x[0].length):-1}function Ct(M,A,N){return I(M,e,A,N)}function Xn(M,A,N){return I(M,n,A,N)}function ce(M,A,N){return I(M,i,A,N)}function ue(M){return s[M.getDay()]}function le(M){return o[M.getDay()]}function ut(M){return c[M.getMonth()]}function xp(M){return a[M.getMonth()]}function wp(M){return r[+(M.getHours()>=12)]}function bp(M){return 1+~~(M.getMonth()/3)}function kp(M){return s[M.getUTCDay()]}function Tp(M){return o[M.getUTCDay()]}function Sp(M){return c[M.getUTCMonth()]}function Mp(M){return a[M.getUTCMonth()]}function Cp(M){return r[+(M.getUTCHours()>=12)]}function Ap(M){return 1+~~(M.getUTCMonth()/3)}return{format:function(M){var A=w(M+="",m);return A.toString=function(){return M},A},parse:function(M){var A=k(M+="",!1);return A.toString=function(){return M},A},utcFormat:function(M){var A=w(M+="",S);return A.toString=function(){return M},A},utcParse:function(M){var A=k(M+="",!0);return A.toString=function(){return M},A}}}var Fs={"-":"",_:" ",0:"0"},W=/^\s*\d+/,Bd=/^%/,Pd=/[\\^$*+?|[\]().{}]/g;function $(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 Ud(t){return t.replace(Pd,"\\$&")}function Ie(t){return new RegExp("^(?:"+t.map(Ud).join("|")+")","i")}function ze(t){return new Map(t.map((e,n)=>[e.toLowerCase(),n]))}function Hd(t,e,n){var i=W.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function Yd(t,e,n){var i=W.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function Wd(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function Vd(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function Xd(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function Ls(t,e,n){var i=W.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function Is(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function qd(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 Gd(t,e,n){var i=W.exec(e.slice(n,n+1));return i?(t.q=i[0]*3-3,n+i[0].length):-1}function Zd(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function zs(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function jd(t,e,n){var i=W.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function Bs(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function Qd(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function Jd(t,e,n){var i=W.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function Kd(t,e,n){var i=W.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function t0(t,e,n){var i=W.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function e0(t,e,n){var i=Bd.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function n0(t,e,n){var i=W.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function i0(t,e,n){var i=W.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function Ps(t,e){return $(t.getDate(),e,2)}function r0(t,e){return $(t.getHours(),e,2)}function o0(t,e){return $(t.getHours()%12||12,e,2)}function s0(t,e){return $(1+Fe.count(wt(t),t),e,3)}function Us(t,e){return $(t.getMilliseconds(),e,3)}function a0(t,e){return Us(t,e)+"000"}function c0(t,e){return $(t.getMonth()+1,e,2)}function u0(t,e){return $(t.getMinutes(),e,2)}function l0(t,e){return $(t.getSeconds(),e,2)}function f0(t){var e=t.getDay();return e===0?7:e}function h0(t,e){return $(An.count(wt(t)-1,t),e,2)}function Hs(t){var e=t.getDay();return e>=4||e===0?ie(t):ie.ceil(t)}function d0(t,e){return t=Hs(t),$(ie.count(wt(t),t)+(wt(t).getDay()===4),e,2)}function g0(t){return t.getDay()}function p0(t,e){return $($n.count(wt(t)-1,t),e,2)}function _0(t,e){return $(t.getFullYear()%100,e,2)}function m0(t,e){return t=Hs(t),$(t.getFullYear()%100,e,2)}function v0(t,e){return $(t.getFullYear()%1e4,e,4)}function y0(t,e){var n=t.getDay();return t=n>=4||n===0?ie(t):ie.ceil(t),$(t.getFullYear()%1e4,e,4)}function x0(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+$(e/60|0,"0",2)+$(e%60,"0",2)}function Ys(t,e){return $(t.getUTCDate(),e,2)}function w0(t,e){return $(t.getUTCHours(),e,2)}function b0(t,e){return $(t.getUTCHours()%12||12,e,2)}function k0(t,e){return $(1+Cn.count(bt(t),t),e,3)}function Ws(t,e){return $(t.getUTCMilliseconds(),e,3)}function T0(t,e){return Ws(t,e)+"000"}function S0(t,e){return $(t.getUTCMonth()+1,e,2)}function M0(t,e){return $(t.getUTCMinutes(),e,2)}function C0(t,e){return $(t.getUTCSeconds(),e,2)}function A0(t){var e=t.getUTCDay();return e===0?7:e}function $0(t,e){return $(En.count(bt(t)-1,t),e,2)}function Vs(t){var e=t.getUTCDay();return e>=4||e===0?re(t):re.ceil(t)}function E0(t,e){return t=Vs(t),$(re.count(bt(t),t)+(bt(t).getUTCDay()===4),e,2)}function N0(t){return t.getUTCDay()}function O0(t,e){return $(Nn.count(bt(t)-1,t),e,2)}function D0(t,e){return $(t.getUTCFullYear()%100,e,2)}function R0(t,e){return t=Vs(t),$(t.getUTCFullYear()%100,e,2)}function F0(t,e){return $(t.getUTCFullYear()%1e4,e,4)}function L0(t,e){var n=t.getUTCDay();return t=n>=4||n===0?re(t):re.ceil(t),$(t.getUTCFullYear()%1e4,e,4)}function I0(){return"+0000"}function Xs(){return"%"}function qs(t){return+t}function Gs(t){return Math.floor(+t/1e3)}var oe,Zs,js;z0({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 z0(t){return oe=zd(t),Zs=oe.format,oe.parse,js=oe.utcFormat,oe.utcParse,oe}function B0(t){return new Date(t)}function P0(t){return t instanceof Date?+t:+new Date(+t)}function nr(t,e,n,i,r,o,s,a,c,u){var f=ls(),l=f.invert,h=f.domain,d=u(".%L"),p=u(":%S"),g=u("%I:%M"),_=u("%I %p"),v=u("%a %d"),y=u("%b %d"),m=u("%B"),S=u("%Y");function b(w){return(c(w)<w?d:a(w)<w?p:s(w)<w?g:o(w)<w?_:i(w)<w?r(w)<w?v:y:n(w)<w?m:S)(w)}return f.invert=function(w){return new Date(l(w))},f.domain=function(w){return arguments.length?h(Array.from(w,P0)):h().map(B0)},f.ticks=function(w){var k=h();return t(k[0],k[k.length-1],w??10)},f.tickFormat=function(w,k){return k==null?b:u(k)},f.nice=function(w){var k=h();return(!w||typeof w.range!="function")&&(w=e(k[0],k[k.length-1],w??10)),w?h(xs(k,w)):f},f.copy=function(){return De(f,nr(t,e,n,i,r,o,s,a,c,u))},f}function U0(){return at.apply(nr(Ld,Id,wt,Ji,An,Fe,ji,Gi,It,Zs).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function H0(){return at.apply(nr(Rd,Fd,bt,Ki,En,Cn,Qi,Zi,It,js).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Y0(){var t=0,e=1,n,i,r,o,s=j,a=!1,c;function u(l){return l==null||isNaN(l=+l)?c:s(r===0?.5:(l=(o(l)-n)*r,a?Math.max(0,Math.min(1,l)):l))}u.domain=function(l){return arguments.length?([t,e]=l,n=o(t=+t),i=o(e=+e),r=n===i?0:1/(i-n),u):[t,e]},u.clamp=function(l){return arguments.length?(a=!!l,u):a},u.interpolator=function(l){return arguments.length?(s=l,u):s};function f(l){return function(h){var d,p;return arguments.length?([d,p]=h,s=l(d,p),u):[s(0),s(1)]}}return u.range=f(ee),u.rangeRound=f(Di),u.unknown=function(l){return arguments.length?(c=l,u):c},function(l){return o=l,n=l(t),i=l(e),r=n===i?0:1/(i-n),u}}function Qs(t,e){return e.domain(t.domain()).interpolator(t.interpolator()).clamp(t.clamp()).unknown(t.unknown())}function Js(){var t=Lt(Y0()(j));return t.copy=function(){return Qs(t,Js())},ss.apply(t,arguments)}function W0(){var t=0,e=.5,n=1,i=1,r,o,s,a,c,u=j,f,l=!1,h;function d(g){return isNaN(g=+g)?h:(g=.5+((g=+f(g))-o)*(i*g<i*o?a:c),u(l?Math.max(0,Math.min(1,g)):g))}d.domain=function(g){return arguments.length?([t,e,n]=g,r=f(t=+t),o=f(e=+e),s=f(n=+n),a=r===o?0:.5/(o-r),c=o===s?0:.5/(s-o),i=o<r?-1:1,d):[t,e,n]},d.clamp=function(g){return arguments.length?(l=!!g,d):l},d.interpolator=function(g){return arguments.length?(u=g,d):u};function p(g){return function(_){var v,y,m;return arguments.length?([v,y,m]=_,u=Gf(g,[v,y,m]),d):[u(0),u(.5),u(1)]}}return d.range=p(ee),d.rangeRound=p(Di),d.unknown=function(g){return arguments.length?(h=g,d):h},function(g){return f=g,r=g(t),o=g(e),s=g(n),a=r===o?0:.5/(o-r),c=o===s?0:.5/(s-o),i=o<r?-1:1,d}}function Ks(){var t=Lt(W0()(j));return t.copy=function(){return Qs(t,Ks())},ss.apply(t,arguments)}const ta={scaleLinear:vs,scalePow:Yi,scaleSqrt:Sd,scaleLog:Ts,scaleSymlog:Cs,scaleIdentity:ys,scaleTime:U0,scaleUtc:H0,scaleSequential:Js,scaleDiverging:Ks,scaleQuantize:Es,scaleQuantile:$s,scaleThreshold:Ns,scaleOrdinal:Ii,scaleBand:zi,scalePoint:Jh};var B;(function(t){t.X="x",t.Y="y"})(B||(B={}));var Pt;(function(t){t.West="west",t.East="east",t.North="north",t.South="south"})(Pt||(Pt={}));const V0=Object.assign(Object.assign({},oo),{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:Pt.North,preventEmptyDomain:null,scaleByDomain:!1});class X0 extends xe{constructor(e,n,i){var r,o;super(e),this._defaultConfig=V0,this.datamodel=new Li,this.config=this._defaultConfig,this._clipPathId=Co(),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",q`
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(c=>c.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 Gt(this.containerWidth-e.left-e.right,0,Number.POSITIVE_INFINITY)}get height(){const e=this._getMargin();return Gt(this.containerHeight-e.top-e.bottom,0,Number.POSITIVE_INFINITY)}setData(e,n){var i,r,o,s;const{components:a,config:c}=this;e&&(this.datamodel.data=e,a.forEach(u=>{u.setData(e)}),(i=c.crosshair)===null||i===void 0||i.setData(e),(r=c.xAxis)===null||r===void 0||r.setData(e),(o=c.yAxis)===null||o===void 0||o.setData(e),(s=c.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=R.X,this.element.appendChild(e.xAxis.element)),e.yAxis&&(this.config.yAxis.config.type=R.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=me([...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 c=this._getMargin();for(const l of this.components)l.g.attr("transform",`translate(${c.left},${c.top})`).style("clip-path",l.clippable?`url(#${this._clipPathId})`:null).style("-webkit-clip-path",l.clippable?`url(#${this._clipPathId})`:null),l.render(e);this._renderAxes(this._firstRender?0:e);const u=2;this._clipPath.select("rect").attr("x",-2).attr("y",-2).attr("width",this.width+2*u).attr("height",this.height+2*u),(n=a.tooltip)===null||n===void 0||n.update();const f=a.crosshair;if(f){const l=this.components.filter(g=>!g.stacked).map(g=>g.config.y),h=this.components.filter(g=>g.stacked).map(g=>g.config.y),d=(i=this.components.find(g=>g.config.baseline))===null||i===void 0?void 0:i.config,p=d==null?void 0:d.baseline;f.accessors={x:(r=this.components[0])===null||r===void 0?void 0:r.config.x,y:ei(l),yStacked:ei(h),baseline:p},f.g.attr("transform",`translate(${c.left},${c.top})`).style("clip-path",`url(#${this._clipPathId})`).style("-webkit-clip-path",`url(#${this._clipPathId})`),f.hide()}(o=a.annotations)===null||o===void 0||o.g.attr("transform",`translate(${c.left},${c.top})`),(s=a.annotations)===null||s===void 0||s.render(),this._firstRender=!1}_updateScales(...e){const n=me(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(B.X,n.xScale)),n.yScale&&e.forEach(i=>i.setScale(B.Y,n.yScale)))}_updateScalesDomain(...e){const{config:n}=this;if(!e)return;const i=e.filter(r=>!r.config.excludeFromDomainCalculation);Object.values(B).forEach(r=>{var o,s,a,c,u,f,l,h;const[d,p]=$u(zu(i.map(b=>b.getDataExtent(r,n.scaleByDomain)))),g=r===B.Y?n.yDomain:n.xDomain,_=r===B.Y?n.yDomainMinConstraint:n.xDomainMinConstraint,v=r===B.Y?n.yDomainMaxConstraint:n.xDomainMaxConstraint,y=(s=(o=g==null?void 0:g[0])!==null&&o!==void 0?o:d)!==null&&s!==void 0?s:0,m=(c=(a=g==null?void 0:g[1])!==null&&a!==void 0?a:p)!==null&&c!==void 0?c:1,S=[Gt(y,(u=_==null?void 0:_[0])!==null&&u!==void 0?u:Number.NEGATIVE_INFINITY,(f=_==null?void 0:_[1])!==null&&f!==void 0?f:Number.POSITIVE_INFINITY),Gt(m,(l=v==null?void 0:v[0])!==null&&l!==void 0?l:Number.NEGATIVE_INFINITY,(h=v==null?void 0:v[1])!==null&&h!==void 0?h:Number.POSITIVE_INFINITY)];if(S[0]===S[1]){const b=i.some(w=>{var k;return((k=w.datamodel.data)===null||k===void 0?void 0:k.length)>0});(n.preventEmptyDomain||n.preventEmptyDomain===null&&(!b||r===B.Y))&&(S[1]=S[0]+1)}e.forEach(b=>b.setScaleDomain(r,S))})}_updateScalesRange(...e){var n,i,r,o,s,a;const{config:c}=this;if(!e)return;const u=c.yDirection===Pt.South,f=[(n=c.padding.left)!==null&&n!==void 0?n:0,this.width-((i=c.padding.right)!==null&&i!==void 0?i:0)],l=[this.height-((r=c.padding.bottom)!==null&&r!==void 0?r:0),(o=c.padding.top)!==null&&o!==void 0?o:0];u&&l.reverse();for(const d of e)d.setSize(this.width,this.height,this.containerWidth,this.containerHeight),d.setScaleRange(B.X,(s=c.xRange)!==null&&s!==void 0?s:f),d.setScaleRange(B.Y,(a=c.yRange)!==null&&a!==void 0?a:l);const h=e.map(d=>d.bleed).reduce((d,p)=>{for(const g of Object.keys(d)){const _=g;d[_]<p[_]&&(d[_]=p[_])}return d},{top:0,bottom:0,left:0,right:0});for(const d of e)d.setScaleRange(B.X,[f[0]+h.left,f[1]-h.right]),d.setScaleRange(B.Y,u?[l[0]+h.top,l[1]-h.bottom]:[l[0]-h.bottom,l[1]+h.top])}_renderAxes(e){const{config:{xAxis:n,yAxis:i}}=this,r=this._getMargin();me([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=me([...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),me([e,n]).forEach(c=>{c.preRender();const u=c.getRequiredMargin();s.top<u.top&&(s.top=u.top),s.bottom<u.bottom&&(s.bottom=u.bottom),s.left<u.left&&(s.left=u.left),s.right<u.right&&(s.right=u.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 ea={duration:600,events:{},attributes:{}};class q0{constructor(e=he.SVG){var n,i;this.type=he.SVG,this.datamodel=new Li,this.sizing=Xt.Fit,this.events={},this._defaultConfig=ea,this._width=400,this._height=200,this._containerWidth=void 0,this._containerHeight=void 0,this._setUpComponentEventsThrottled=Hr(this._setUpComponentEvents,500),this._setCustomAttributesThrottled=Hr(this._setCustomAttributes,500),e===he.SVG?this.element=document.createElementNS("http://www.w3.org/2000/svg","g"):this.element=document.createElement("div"),this.uid=Co(),this.g=At(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=pe(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 c=o.nodes(),u=c.indexOf(s.currentTarget),f=e[i][r];return f==null?void 0:f(a,s,u,c)})})})}destroy(){var e;(e=this.g)===null||e===void 0||e.remove(),this.element=void 0}isDestroyed(){return!this.element}}class G0 extends Li{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 ir=Object.assign(Object.assign({},ea),{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 na extends q0{constructor(){super(...arguments),this.datamodel=new G0,this.clippable=!0,this.stacked=!1,this._defaultConfig=ir,this._xScale=ta.scaleLinear(),this._yScale=ta.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===B.X&&((i=this._xScale)===null||i===void 0||i.domain(n)),e===B.Y&&((r=this._yScale)===null||r===void 0||r.domain(n))}setScaleRange(e,n){var i,r;e===B.X&&((i=this._xScale)===null||i===void 0||i.range(n)),e===B.Y&&((r=this._yScale)===null||r===void 0||r.range(n))}setScale(e,n){n&&e===B.X&&(this._xScale=n),n&&e===B.Y&&(this._yScale=n)}getDataExtent(e,n){const{config:i,datamodel:r}=this;switch(e){case B.X:return this.getXDataExtent();case B.Y:return this.getYDataExtent(n);default:return ii(r.data,i[e])}}getXDataExtent(){const{config:e,datamodel:n}=this;return ii(n.data,e.x)}getYDataExtent(e){const{config:n,datamodel:i}=this,r=e?Vu(i.data,this.xScale.domain(),n.x):i.data,o=ti(n.y)?n.y:[n.y];return ii(r,...o)}}var E;(function(t){t.Top="top",t.Bottom="bottom",t.Left="left",t.Right="right",t.Center="center",t.Auto="auto"})(E||(E={}));var ia;(function(t){t.Absolute="absolute",t.Fixed="fixed"})(ia||(ia={}));var ra;(function(t){t.Inside="inside",t.Outside="outside"})(ra||(ra={}));var oa;(function(t){t.Horizontal="horizontal",t.Vertical="vertical"})(oa||(oa={}));function se(t){return function(){return t}}const sa=1e-12,rr=Math.PI,or=2*rr,Ut=1e-6,Z0=or-Ut;function aa(t){this._+=t[0];for(let e=1,n=t.length;e<n;++e)this._+=arguments[e]+t[e]}function j0(t){let e=Math.floor(t);if(!(e>=0))throw new Error(`invalid digits: ${t}`);if(e>15)return aa;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 Q0{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?aa:j0(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,c=i-e,u=r-n,f=s-e,l=a-n,h=f*f+l*l;if(this._x1===null)this._append`M${this._x1=e},${this._y1=n}`;else if(h>Ut)if(!(Math.abs(l*c-u*f)>Ut)||!o)this._append`L${this._x1=e},${this._y1=n}`;else{let d=i-s,p=r-a,g=c*c+u*u,_=d*d+p*p,v=Math.sqrt(g),y=Math.sqrt(h),m=o*Math.tan((rr-Math.acos((g+h-_)/(2*v*y)))/2),S=m/y,b=m/v;Math.abs(S-1)>Ut&&this._append`L${e+S*f},${n+S*l}`,this._append`A${o},${o},0,0,${+(l*d>f*p)},${this._x1=e+b*c},${this._y1=n+b*u}`}}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),c=i*Math.sin(r),u=e+a,f=n+c,l=1^s,h=s?r-o:o-r;this._x1===null?this._append`M${u},${f}`:(Math.abs(this._x1-u)>Ut||Math.abs(this._y1-f)>Ut)&&this._append`L${u},${f}`,i&&(h<0&&(h=h%or+or),h>Z0?this._append`A${i},${i},0,1,${l},${e-a},${n-c}A${i},${i},0,1,${l},${this._x1=u},${this._y1=f}`:h>Ut&&this._append`A${i},${i},0,${+(h>=rr)},${l},${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 J0(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 Q0(e)}function K0(t){return typeof t=="object"&&"length"in t?t:Array.from(t)}function ca(t){this._context=t}ca.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 ua(t){return new ca(t)}function tg(t){return t[0]}function eg(t){return t[1]}function ng(t,e){var n=se(!0),i=null,r=ua,o=null,s=J0(a);t=typeof t=="function"?t:t===void 0?tg:se(t),e=typeof e=="function"?e:e===void 0?eg:se(e);function a(c){var u,f=(c=K0(c)).length,l,h=!1,d;for(i==null&&(o=r(d=s())),u=0;u<=f;++u)!(u<f&&n(l=c[u],u,c))===h&&((h=!h)?o.lineStart():o.lineEnd()),h&&o.point(+t(l,u,c),+e(l,u,c));if(d)return o=null,d+""||null}return a.x=function(c){return arguments.length?(t=typeof c=="function"?c:se(+c),a):t},a.y=function(c){return arguments.length?(e=typeof c=="function"?c:se(+c),a):e},a.defined=function(c){return arguments.length?(n=typeof c=="function"?c:se(!!c),a):n},a.curve=function(c){return arguments.length?(r=c,i!=null&&(o=r(i)),a):r},a.context=function(c){return arguments.length?(c==null?i=o=null:o=r(i=c),a):i},a}function Mt(){}function On(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 Dn(t){this._context=t}Dn.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:On(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:On(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function ig(t){return new Dn(t)}function la(t){this._context=t}la.prototype={areaStart:Mt,areaEnd:Mt,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:On(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function rg(t){return new la(t)}function fa(t){this._context=t}fa.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:On(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e}};function og(t){return new fa(t)}function ha(t,e){this._basis=new Dn(t),this._beta=e}ha.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,c;++a<=n;)c=a/n,this._basis.point(this._beta*t[a]+(1-this._beta)*(i+c*o),this._beta*e[a]+(1-this._beta)*(r+c*s));this._x=this._y=null,this._basis.lineEnd()},point:function(t,e){this._x.push(+t),this._y.push(+e)}};const sg=function t(e){function n(i){return e===1?new Dn(i):new ha(i,e)}return n.beta=function(i){return t(+i)},n}(.85);function Rn(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 sr(t,e){this._context=t,this._k=(1-e)/6}sr.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:Rn(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:Rn(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 ag=function t(e){function n(i){return new sr(i,e)}return n.tension=function(i){return t(+i)},n}(0);function ar(t,e){this._context=t,this._k=(1-e)/6}ar.prototype={areaStart:Mt,areaEnd:Mt,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:Rn(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 cg=function t(e){function n(i){return new ar(i,e)}return n.tension=function(i){return t(+i)},n}(0);function cr(t,e){this._context=t,this._k=(1-e)/6}cr.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:Rn(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 ug=function t(e){function n(i){return new cr(i,e)}return n.tension=function(i){return t(+i)},n}(0);function ur(t,e,n){var i=t._x1,r=t._y1,o=t._x2,s=t._y2;if(t._l01_a>sa){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,r=(r*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>sa){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,f=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*u+t._x1*t._l23_2a-e*t._l12_2a)/f,s=(s*u+t._y1*t._l23_2a-n*t._l12_2a)/f}t._context.bezierCurveTo(i,r,o,s,t._x2,t._y2)}function da(t,e){this._context=t,this._alpha=e}da.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:ur(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 lg=function t(e){function n(i){return e?new da(i,e):new sr(i,0)}return n.alpha=function(i){return t(+i)},n}(.5);function ga(t,e){this._context=t,this._alpha=e}ga.prototype={areaStart:Mt,areaEnd:Mt,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:ur(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 fg=function t(e){function n(i){return e?new ga(i,e):new ar(i,0)}return n.alpha=function(i){return t(+i)},n}(.5);function pa(t,e){this._context=t,this._alpha=e}pa.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:ur(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 hg=function t(e){function n(i){return e?new pa(i,e):new cr(i,0)}return n.alpha=function(i){return t(+i)},n}(.5);function _a(t){this._context=t}_a.prototype={areaStart:Mt,areaEnd:Mt,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 dg(t){return new _a(t)}function ma(t){return t<0?-1:1}function va(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(ma(o)+ma(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function ya(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function lr(t,e,n){var i=t._x0,r=t._y0,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 Fn(t){this._context=t}Fn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:lr(this,this._t0,ya(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,e){var n=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,lr(this,ya(this,n=va(this,t,e)),n);break;default:lr(this,this._t0,n=va(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=n}}};function xa(t){this._context=new wa(t)}(xa.prototype=Object.create(Fn.prototype)).point=function(t,e){Fn.prototype.point.call(this,e,t)};function wa(t){this._context=t}wa.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 gg(t){return new Fn(t)}function pg(t){return new xa(t)}function ba(t){this._context=t}ba.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=ka(t),r=ka(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 ka(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 _g(t){return new ba(t)}function Ln(t,e){this._context=t,this._t=e}Ln.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 mg(t){return new Ln(t,.5)}function vg(t){return new Ln(t,0)}function yg(t){return new Ln(t,1)}function Ta(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 xg(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?Ta(Object(n),!0).forEach(function(i){wg(t,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):Ta(Object(n)).forEach(function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(n,i))})}return t}function Be(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Be=function(e){return typeof e}:Be=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Be(t)}function wg(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function In(){return In=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},In.apply(this,arguments)}function bg(t,e){if(t){if(typeof t=="string")return Sa(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 Sa(t,e)}}function Sa(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 Ma(t,e){var n=typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=bg(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(c){throw c},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
55
+ 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 c=n.next();return o=c.done,c},e:function(c){s=!0,a=c},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(s)throw a}}}}function kg(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),c=0;c<a.length;c++)c===0&&n.push(o[0]),c===a.length-1&&i.push(o[c+1]),a[c]=[(1-s)*o[c][0]+s*o[c+1][0],(1-s)*o[c][1]+s*o[c+1][1]];r(a,s)}}return t.length&&r(t,e),{left:n,right:i.reverse()}}function Tg(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 Sg(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=kg(i,s);n.push(a.left),i=a.right}return n.push(i),n}function Mg(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]),Sg(i,n).map(Tg)}var Cg=/[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g,ae={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(ae).forEach(function(t){ae[t.toLowerCase()]=ae[t]});function fr(t,e){for(var n=Array(t),i=0;i<t;i++)n[i]=e;return n}function Ag(t){return"".concat(t.type).concat(ae[t.type].map(function(e){return t[e]}).join(","))}function $g(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 Eg(t,e,n){var i=[];if(e.type==="L"||e.type==="Q"||e.type==="C")i=i.concat(Mg(t,e,n));else{var r=In({},t);r.type==="M"&&(r.type="L"),i=i.concat(fr(n-1).map(function(){return r})),i.push(e)}return i}function Ca(t,e,n){var i=t.length-1,r=e.length-1,o=i/r,s=fr(r).reduce(function(c,u,f){var l=Math.floor(o*f);if(n&&l<t.length-1&&n(t[l],t[l+1])){var h=o*f%1<.5;c[l]&&(h?l>0?l-=1:l<t.length-1&&(l+=1):l<t.length-1?l+=1:l>0&&(l-=1))}return c[l]=(c[l]||0)+1,c},[]),a=s.reduce(function(c,u,f){if(f===t.length-1){var l=fr(u,In({},t[t.length-1]));return l[0].type==="M"&&l.forEach(function(h){h.type="L"}),c.concat(l)}return c.concat(Eg(t[f],t[f+1],u))},[]);return a.unshift(t[0]),a}function Aa(t){for(var e=(t||"").match(Cg)||[],n=[],i,r,o=0;o<e.length;++o)if(i=ae[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 Ng(t,e,n){var i=t==null?[]:t.slice(),r=e==null?[]:e.slice(),o=Be(n)==="object"?n:{excludeSegment:n,snapEndsToInput:!0},s=o.excludeSegment,a=o.snapEndsToInput;if(!i.length&&!r.length)return function(){return[]};var c=(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 u=Math.abs(r.length-i.length);u!==0&&(r.length>i.length?i=Ca(i,r,s):r.length<i.length&&(r=Ca(r,i,s))),i=i.map(function(l,h){return $g(l,r[h])});var f=i.map(function(l){return xg({},l)});return c&&(f.push({type:"Z"}),i.push({type:"Z"})),function(h){if(h===1&&a)return e??[];if(h===0)return i;for(var d=0;d<f.length;++d){var p=i[d],g=r[d],_=f[d],v=Ma(ae[_.type]),y;try{for(v.s();!(y=v.n()).done;){var m=y.value;_[m]=(1-h)*p[m]+h*g[m],(m==="largeArcFlag"||m==="sweepFlag")&&(_[m]=Math.round(_[m]))}}catch(S){v.e(S)}finally{v.f()}}return f}}function Og(t,e,n){var i=Aa(t),r=Aa(e),o=Be(n)==="object"?n:{excludeSegment:n,snapEndsToInput:!0},s=o.excludeSegment,a=o.snapEndsToInput;if(!i.length&&!r.length)return function(){return""};var c=Ng(i,r,{excludeSegment:s,snapEndsToInput:a});return function(f){if(f===1&&a)return e??"";var l=c(f),h="",d=Ma(l),p;try{for(d.s();!(p=d.n()).done;){var g=p.value;h+=Ag(g)}}catch(_){d.e(_)}finally{d.f()}return h}}function hr(t,e,n,i){return Array.isArray(e)&&isFinite(n)?e[n%e.length]:Yr(t,e,n)||(qt(n)?`var(${Tt(n)})`:null)}var z;(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"})(z||(z={}));const $a={[z.Basis]:ig,[z.BasisClosed]:rg,[z.BasisOpen]:og,[z.Bundle]:sg,[z.Cardinal]:ag,[z.CardinalClosed]:cg,[z.CardinalOpen]:ug,[z.CatmullRom]:lg,[z.CatmullRomClosed]:fg,[z.CatmullRomOpen]:hg,[z.Linear]:ua,[z.LinearClosed]:dg,[z.MonotoneX]:gg,[z.MonotoneY]:pg,[z.Natural]:_g,[z.Step]:mg,[z.StepAfter]:yg,[z.StepBefore]:vg},Dg=Object.assign(Object.assign({},ir),{curveType:z.MonotoneX,lineWidth:2,lineDashArray:void 0,fallbackValue:void 0,highlightOnHover:!1,cursor:null,interpolateMissingData:!1}),Rg=pi`
56
+ :root {
57
+ --vis-line-cursor: default;
58
+ --vis-line-stroke-dasharray: none;
59
+ --vis-line-stroke-dashoffset: 0;
60
+
61
+ --vis-line-gapfill-stroke-dasharray: 2 3;
62
+ --vis-line-gapfill-stroke-opacity: 0.8;
63
+ --vis-line-gapfill-stroke-dashoffset: 0;
64
+ }
65
+ `,Fg=q`
66
+ label: line-component;
67
+ `,Pe=q`
68
+ label: line;
69
+ transition: opacity 200ms;
70
+ cursor: var(--vis-line-cursor);
71
+ `,dr=q`
72
+ label: linePath;
73
+ fill: none;
74
+ stroke-dasharray: var(--vis-line-stroke-dasharray);
75
+ stroke-dashoffset: var(--vis-line-stroke-dashoffset);
76
+ `,gr=q`
77
+ label: lineSelectionHelper;
78
+ fill: none;
79
+ stroke: rgba(0, 0, 0, 0);
80
+ stroke-width: 8px;
81
+ `,pr=q`
82
+ opacity: 0.2;
83
+ `,_r=q`
84
+ label: interpolated-path;
85
+ fill: none;
86
+ stroke-dasharray: var(--vis-line-gapfill-stroke-dasharray);
87
+ stroke-dashoffset: var(--vis-line-gapfill-stroke-dashoffset);
88
+ stroke-opacity: var(--vis-line-gapfill-stroke-opacity);
89
+ `,Lg=Object.freeze(Object.defineProperty({__proto__:null,dim:pr,globalStyles:Rg,interpolatedPath:_r,line:Pe,linePath:dr,lineSelectionHelper:gr,root:Fg},Symbol.toStringTag,{value:"Module"}));class zn extends na{constructor(e){super(),this._defaultConfig=Dg,this.config=this._defaultConfig,this.curve=$a[z.MonotoneX],this.events={[zn.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]?Pt.North:Pt.South)===Pt.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=qt(e)?e:n.duration;this.curve=$a[n.curveType],this.lineGen=ng().x(l=>l.x).y(l=>l.y).defined(l=>l.defined).curve(this.curve);const o=ti(n.y)?n.y:[n.y],s=i.map((l,h)=>this.xScale(_e(l,n.x,h))),a=o.map(l=>{const h=i.map((v,y)=>{const m=_e(v,l,y),S=(qt(m)||m===null)&&isFinite(m)?m:n.fallbackValue,b=n.interpolateMissingData?(qt(m)||m===null)&&isFinite(m):isFinite(S);return{x:s[y],y:this.yScale(S??0),defined:b,value:S}}),d=h.reduce((v,y)=>y.defined||v,!1);let p=!1;const g=h.reduce((v,y,m)=>{!y.defined&&isFinite(n.fallbackValue)&&v.push(Object.assign(Object.assign({},y),{defined:!0})),!y.defined&&!p&&(p=!0);const S=m>0&&!h[m-1].defined||m<h.length-1&&!h[m+1].defined;return y.defined&&S&&(p||v.push(Object.assign(Object.assign({},y),{defined:!1})),v.push(y),p=!1),v},[]),_=d&&h.some(v=>v.value!==null);return{values:h,defined:d,gaps:g,visible:_}}),c=this.g.selectAll(`.${Pe}`).data(a),u=c.enter().append("g").attr("class",Pe);u.append("path").attr("class",dr).attr("stroke",(l,h)=>hr(i,n.color,h)).attr("stroke-opacity",0).attr("stroke-width",n.lineWidth),u.append("path").attr("class",gr).attr("d",this._emptyPath()),u.append("path").attr("class",_r).attr("d",this._emptyPath()).style("opacity",0);const f=u.merge(c);f.style("cursor",(l,h)=>Yr(i,n.cursor,h)),f.each((l,h,d)=>{var p;const g=At(d[h]),_=g.select(`.${dr}`),v=g.select(`.${gr}`),y=g.select(`.${_r}`),m=l.visible,S=ni(i,n.lineDashArray,h),b=Ft(_,r).attr("stroke",hr(i,n.color,h)).attr("stroke-width",n.lineWidth).attr("stroke-opacity",m?1:0).style("stroke-dasharray",(p=S==null?void 0:S.join(" "))!==null&&p!==void 0?p:null),w=l.values.some(I=>!I.defined),k=this.lineGen(l.values);if(r&&!w){const I=_.attr("d")||this._emptyPath(),F=k||this._emptyPath();b.attrTween("d",()=>Og(I,F))}else l.visible&&b.attr("d",k);v.attr("d",k).attr("visibility",m?null:"hidden"),w&&n.interpolateMissingData?Ft(y,r).attr("d",this.lineGen(l.gaps)).attr("stroke",hr(i,n.color,h)).attr("stroke-width",n.lineWidth-1).style("opacity",1):y.transition().duration(r).style("opacity",0)}),Ft(c.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(`.${Pe}`).classed(pr,i=>i!==e)}_resetHighlight(){const{config:e}=this;e.highlightOnHover&&this.g.selectAll(`.${Pe}`).classed(pr,!1)}}zn.selectors=Lg;function Ig(t){return t}var Bn=1,Pn=2,mr=3,Ue=4,Ea=1e-6;function zg(t){return"translate("+t+",0)"}function Bg(t){return"translate(0,"+t+")"}function Pg(t){return e=>+t(e)}function Ug(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),n=>+t(n)+e}function Hg(){return!this.__axis}function Un(t,e){var n=[],i=null,r=null,o=6,s=6,a=3,c=typeof window<"u"&&window.devicePixelRatio>1?0:.5,u=t===Bn||t===Ue?-1:1,f=t===Ue||t===Pn?"x":"y",l=t===Bn||t===mr?zg:Bg;function h(d){var p=i??(e.ticks?e.ticks.apply(e,n):e.domain()),g=r??(e.tickFormat?e.tickFormat.apply(e,n):Ig),_=Math.max(o,0)+a,v=e.range(),y=+v[0]+c,m=+v[v.length-1]+c,S=(e.bandwidth?Ug:Pg)(e.copy(),c),b=d.selection?d.selection():d,w=b.selectAll(".domain").data([null]),k=b.selectAll(".tick").data(p,e).order(),I=k.exit(),F=k.enter().append("g").attr("class","tick"),tt=k.select("line"),C=k.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),k=k.merge(F),tt=tt.merge(F.append("line").attr("stroke","currentColor").attr(f+"2",u*o)),C=C.merge(F.append("text").attr("fill","currentColor").attr(f,u*_).attr("dy",t===Bn?"0em":t===mr?"0.71em":"0.32em")),d!==b&&(w=w.transition(d),k=k.transition(d),tt=tt.transition(d),C=C.transition(d),I=I.transition(d).attr("opacity",Ea).attr("transform",function(P){return isFinite(P=S(P))?l(P+c):this.getAttribute("transform")}),F.attr("opacity",Ea).attr("transform",function(P){var Y=this.parentNode.__axis;return l((Y&&isFinite(Y=Y(P))?Y:S(P))+c)})),I.remove(),w.attr("d",t===Ue||t===Pn?s?"M"+u*s+","+y+"H"+c+"V"+m+"H"+u*s:"M"+c+","+y+"V"+m:s?"M"+y+","+u*s+"V"+c+"H"+m+"V"+u*s:"M"+y+","+c+"H"+m),k.attr("opacity",1).attr("transform",function(P){return l(S(P)+c)}),tt.attr(f+"2",u*o),C.attr(f,u*_).text(g),b.filter(Hg).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===Pn?"start":t===Ue?"end":"middle"),b.each(function(){this.__axis=S})}return h.scale=function(d){return arguments.length?(e=d,h):e},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(d){return arguments.length?(n=d==null?[]:Array.from(d),h):n.slice()},h.tickValues=function(d){return arguments.length?(i=d==null?null:Array.from(d),h):i&&i.slice()},h.tickFormat=function(d){return arguments.length?(r=d,h):r},h.tickSize=function(d){return arguments.length?(o=s=+d,h):o},h.tickSizeInner=function(d){return arguments.length?(o=+d,h):o},h.tickSizeOuter=function(d){return arguments.length?(s=+d,h):s},h.tickPadding=function(d){return arguments.length?(a=+d,h):a},h.offset=function(d){return arguments.length?(c=+d,h):c},h}function Na(t){return Un(Bn,t)}function Oa(t){return Un(Pn,t)}function Da(t){return Un(mr,t)}function Ra(t){return Un(Ue,t)}var Ht;(function(t){t.Start="start",t.Middle="middle",t.End="end"})(Ht||(Ht={}));var Yt;(function(t){t.Top="top",t.Middle="middle",t.Bottom="bottom"})(Yt||(Yt={}));var Hn;(function(t){t.Wrap="wrap",t.Trim="trim"})(Hn||(Hn={}));var ct;(function(t){t.Left="left",t.Center="center",t.Right="right"})(ct||(ct={}));var Yn={exports:{}},Yg=Yn.exports,Fa;function Wg(){return Fa||(Fa=1,function(t){(function(e){if(typeof n!="function"){var n=function(p){return p};n.nonNative=!0}const i=n("plaintext"),r=n("html"),o=n("comment"),s=/<(\w*)>/g,a=/<\/?([^\s\/>]+)/;function c(p,g,_){p=p||"",g=g||[],_=_||"";let v=f(g,_);return l(p,v)}function u(p,g){p=p||[],g=g||"";let _=f(p,g);return function(y){return l(y||"",_)}}c.init_streaming_mode=u;function f(p,g){return p=h(p),{allowable_tags:p,tag_replacement:g,state:i,tag_buffer:"",depth:0,in_quote_char:""}}function l(p,g){if(typeof p!="string")throw new TypeError("'html' parameter must be a string");let _=g.allowable_tags,v=g.tag_replacement,y=g.state,m=g.tag_buffer,S=g.depth,b=g.in_quote_char,w="";for(let k=0,I=p.length;k<I;k++){let F=p[k];if(y===i)switch(F){case"<":y=r,m+=F;break;default:w+=F;break}else if(y===r)switch(F){case"<":if(b)break;S++;break;case">":if(b)break;if(S){S--;break}b="",y=i,m+=">",_.has(d(m))?w+=m:w+=v,m="";break;case'"':case"'":F===b?b="":b=b||F,m+=F;break;case"-":m==="<!-"&&(y=o),m+=F;break;case" ":case`
90
+ `:if(m==="<"){y=i,w+="< ",m="";break}m+=F;break;default:m+=F;break}else if(y===o)switch(F){case">":m.slice(-2)=="--"&&(y=i),m="";break;default:m+=F;break}}return g.state=y,g.tag_buffer=m,g.depth=S,g.in_quote_char=b,w}function h(p){let g=new Set;if(typeof p=="string"){let _;for(;_=s.exec(p);)g.add(_[1])}else!n.nonNative&&typeof p[n.iterator]=="function"?g=new Set(p):typeof p.forEach=="function"&&p.forEach(g.add,g);return g}function d(p){let g=a.exec(p);return g?g[1].toLowerCase():null}t.exports?t.exports=c:e.striptags=c})(Yg)}(Yn)),Yn.exports}var Vg=Wg();const Xg=Kl(Vg);function qg(t){switch(t){case ct.Center:return"middle";case ct.Right:return"end";case ct.Left:default:return"start"}}function Gg(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 Zg(t){return t.replace(/['"]/g,"&#39;").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 jg(t,e=15){return t?t.length>e?`…${t.substr(t.length-e,e)}`:t:""}function Qg(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 Jg(t,e=15){return t?t.length>e?`${t.substr(0,e)}…`:t:""}function Kg(t,e=15,n=Ht.Middle){if(!t)return"";let i=Jg(t,e);return n===Ht.Start?i=jg(t,e):n===Ht.Middle&&(i=Qg(t,e)),i}function tp(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),c=a.map((u,f)=>`${u}${f===a.length-1?"":r}`);n[s]=c}),n=ei(n)}return n}function ep(t,e,n,i,r,o){var s;e===void 0&&(e=50),n===void 0&&(n=Ht.Middle),r===void 0&&(r=+((s=window.getComputedStyle(t.node()))===null||s===void 0?void 0:s.fontSize)||0);const a=t.text(),c=a.length,u=r*c*o,l=Math.ceil(c*e/(1.1*u));return l<c?(t.text(Kg(a,l,n)),!0):!1}function Wn(t,e,n=bf()){return t.length*e*n||0}function Vn(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 np(t,e=void 0,n=!0,i=Bo,r=!1){const o=`${t.text}`;if(!o)return[];const s=Array.isArray(i)?i:[i];return o.split(`
91
+ `).map(c=>{const u=[];if(!e)return[c];const f=tp(c,s);let l="";for(let h=0;h<f.length;h+=1){(n?Wn(l+f[h],t.fontSize,t.fontWidthToHeightRatio):Vn(l+f[h],t.fontFamily,t.fontSize))<e||h===0?l+=f[h]:(u.push(l.trim()),l=f[h]);const p=2;if(r)for(;l.trim().length>p&&(n?Wn(l,t.fontSize,t.fontWidthToHeightRatio):Vn(l,t.fontFamily,t.fontSize))>e;){let _=l.trim().length-p;for(;_>0;){const v=`${l.substring(0,_)}${Po}`;if((n?Wn(v,t.fontSize,t.fontWidthToHeightRatio):Vn(v,t.fontFamily,t.fontSize))<=e||_===1){u.push(v.trim()),l=l.substring(_);break}_--}}}return l&&u.push(l.trim()),u}).flat()}function ip(t,e=void 0,n=void 0,i=!0,r=Bo,o=!1){const s=Array.isArray(t)?t.map(l=>pe(Uo,l)):[pe(Uo,t)],a=s.map(l=>np(l,e,i,r,o)),c=s[0];let u=-c.fontSize*(c.lineHeight-1);const f=[];return s.forEach((l,h)=>{var d;let p=a[h];const g=h>0?f[h-1]:void 0,_=g?g.marginBottom:0,v=l.marginTop,y=Math.max(_,v);u+=y;const m=l.fontSize*l.lineHeight;let S=0;for(let b=0;b<p.length;b+=1){let w=p[b];u+=m;const k=`${w} …`,I=i?Wn(k,l.fontSize,l.fontWidthToHeightRatio):Vn(k,l.fontFamily,l.fontSize);if(S=Math.max(I,S),n&&u+m>n&&b!==p.length-1){w.charAt(w.length-1)===Po&&(w=w.substr(0,p[b].length-1)),I<e?p[b]=k:p[b]=`${p[b].substr(0,p[b].length-2)}…`,p=p.slice(0,b+1);break}}f.push(Object.assign(Object.assign({},l),{_lines:p,_estimatedHeight:u-((g==null?void 0:g._estimatedHeight)||0),_maxWidth:Math.max(S,(d=g==null?void 0:g._maxWidth)!==null&&d!==void 0?d:0)}))}),f}function rp(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,c=Math.max(s,a),u={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(u).filter(([l,h])=>h).map(([l,h])=>`${Gg(l)}="${Zg(h.toString())}"`).join(" ")}>${i._lines.map((l,h)=>{let d;return r===0&&h===0?d=.8+c:h===0?d=c+i.lineHeight:d=i.lineHeight,`<tspan x="${e}" dy="${d}em">${l.length?l:" "}</tspan>`}).join("")}</tspan>`})}function op(t){return Pu(t,e=>e._estimatedHeight)}const sp=["text","tspan","textPath","altGlyph","altGlyphDef","altGlyphItem","glyphRef","textRef","textArea"];function ap(t,e,n,i){var r,o;const s=ip(e,n.width,void 0,n.fastMode,n.separator,n.wordBreak),a=(r=n.x)!==null&&r!==void 0?r:+t.getAttribute("x"),c=(o=n.y)!==null&&o!==void 0?o:+t.getAttribute("y"),u=a??0;let f=c??0;if(n.textAlign&&t.setAttribute("text-anchor",qg(n.textAlign)),n.verticalAlign&&n.verticalAlign!==Yt.Top){const l=op(s),h=n.verticalAlign===Yt.Middle?-l/2:n.verticalAlign===Yt.Bottom?-l:0;f+=h}n.textRotationAngle?t.setAttribute("transform",`rotate(${n.textRotationAngle===0||n.textRotationAngle?n.textRotationAngle:0} ${u} ${f})`):t.removeAttribute("transform");{const l=new DOMParser;t.textContent="",s.forEach(h=>{const d=rp([h],u,f).join(""),p=Xg(d,sp),g=l.parseFromString(p,"image/svg+xml").firstChild;t.appendChild(g)})}}const cp=Object.assign(Object.assign({},ir),{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:Ht.Middle,tickTextFitMode:Hn.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}),La=q`
92
+ label: axis-component;
93
+ `,up=pi`
94
+ :root {
95
+ // Undefined by default to allow proper fallback to var(--vis-font-family)
96
+ /* --vis-axis-font-family: */
97
+ --vis-axis-tick-color: #e8e9ef;
98
+ /* --vis-axis-domain-color: // Undefined by default to allow fallback to var(--vis-axis-tick-color) */
99
+ --vis-axis-grid-color: #e8e9ef;
100
+ --vis-axis-label-color: #6c778c;
101
+ --vis-axis-tick-label-color: #6c778c;
102
+ --vis-axis-tick-label-font-size: 12px;
103
+ --vis-axis-tick-label-cursor: default;
104
+ --vis-axis-tick-label-text-decoration: none;
105
+ --vis-axis-label-font-size: 14px;
106
+ --vis-axis-tick-line-width: 1px;
107
+ --vis-axis-tick-label-hide-transition: opacity 400ms ease-in-out;
108
+ --vis-axis-grid-line-width: 1px;
109
+ /* --vis-axis-domain-line-width: // Undefined by default to allow fallback to var(--vis-axis-grid-line-width) */
110
+
111
+ --vis-dark-axis-tick-color: #6c778c;
112
+ /* --vis-dark-axis-domain-color: // Undefined by default to allow fallback to var(--vis-dark-axis-tick-color) */
113
+ --vis-dark-axis-tick-label-color: #e8e9ef;
114
+ --vis-dark-axis-grid-color: #6c778c;
115
+ --vis-dark-axis-label-color: #fefefe;
116
+ }
117
+
118
+ body.theme-dark ${`.${La}`} {
119
+ --vis-axis-tick-color: var(--vis-dark-axis-tick-color);
120
+ --vis-axis-domain-color: var(--vis-dark-axis-domain-color);
121
+ --vis-axis-tick-label-color: var(--vis-dark-axis-tick-label-color);
122
+ --vis-axis-grid-color: var(--vis-dark-axis-grid-color);
123
+ --vis-axis-label-color: var(--vis-dark-axis-label-color);
124
+ }
125
+ `,vr=q`
126
+ label: hide-tick-line;
127
+ `,yr=q`
128
+ label: hide-domain;
129
+ `,Ia=q`
130
+ label: axis;
131
+
132
+ user-select: none;
133
+
134
+ .domain {
135
+ stroke: var(--vis-axis-domain-color, var(--vis-axis-tick-color));
136
+ stroke-width: var(--vis-axis-domain-line-width, var(--vis-axis-grid-line-width));
137
+ }
138
+
139
+ &${`.${vr}`} {
140
+ .tick > line {
141
+ opacity: 0;
142
+ }
143
+ }
144
+
145
+ &${`.${yr}`} {
146
+ .domain {
147
+ opacity: 0;
148
+ }
149
+ }
150
+ `,za=q`
151
+ label: grid;
152
+
153
+ .domain {
154
+ opacity: 0;
155
+ }
156
+
157
+ line {
158
+ stroke: var(--vis-axis-grid-color);
159
+ stroke-width: var(--vis-axis-grid-line-width);
160
+ }
161
+ `,Ba=q`
162
+ label: tick;
163
+
164
+ stroke: none;
165
+ font-size: var(--vis-axis-tick-label-font-size);
166
+
167
+ line {
168
+ stroke: var(--vis-axis-tick-color);
169
+ stroke-width: var(--vis-axis-tick-line-width);
170
+ }
171
+
172
+ text {
173
+ fill: var(--vis-axis-tick-label-color);
174
+ cursor: var(--vis-axis-tick-label-cursor);
175
+ font-family: var(--vis-axis-font-family, var(--vis-font-family));
176
+ text-decoration: var(--vis-axis-tick-label-text-decoration);
177
+ stroke: none;
178
+ }
179
+ `,xr=q`
180
+ label: label;
181
+ fill: var(--vis-axis-label-color);
182
+ font-size: var(--vis-axis-label-font-size);
183
+ font-family: var(--vis-axis-font-family, var(--vis-font-family));
184
+ text-anchor: middle;
185
+ `,Pa=q`
186
+ label: tick-label;
187
+ `,Ua=q`
188
+ label: tick-label-hideable;
189
+ opacity: 0;
190
+ transition: var(--vis-axis-tick-label-hide-transition);
191
+ `,lp=Object.freeze(Object.defineProperty({__proto__:null,axis:Ia,globalStyles:up,grid:za,hideDomain:yr,hideTickLine:vr,label:xr,root:La,tick:Ba,tickLabel:Pa,tickLabelHideable:Ua},Symbol.toStringTag,{value:"Module"}));class Ha extends na{constructor(e){super(),this._defaultConfig=cp,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",za)}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===R.X?E.Bottom:E.Left)}_getAxisSize(e){return e.node().getBBox()}_getRequiredMargin(e=this._axisSizeBBox){const{config:{type:n,position:i}}=this;switch(n){case R.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 E.Top:return{top:e.height,left:s,right:a};case E.Bottom:default:return{bottom:e.height,left:s,right:a}}}case R.Y:{const r=e.height>this._height?(e.height-this._height)/2:0,o=r,s=r;switch(i){case E.Right:return{right:e.width,top:o,bottom:s};case E.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 R.X:switch(i){case E.Top:return{top:e.top,left:e.left};case E.Bottom:default:return{top:e.top+this._height,left:e.left}}case R.Y:switch(i){case E.Right:return{top:e.top,left:e.left+this._width};case E.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(),Ft(this.gridGroup,e).call(r).style("opacity",1)}else Ft(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 R.X:switch(n){case E.Top:return Na(this.xScale).ticks(r).tickPadding(i);case E.Bottom:default:return Da(this.xScale).ticks(r).tickPadding(i)}case R.Y:switch(n){case E.Right:return Oa(this.yScale).ticks(r).tickPadding(i);case E.Left:default:return Ra(this.yScale).ticks(r).tickPadding(i)}}}_buildGrid(){const{config:{type:e,position:n}}=this,i=this._getNumTicks();switch(e){case R.X:switch(n){case E.Top:return Na(this.xScale).ticks(i*2).tickSize(-this._height).tickSizeOuter(0);case E.Bottom:default:return Da(this.xScale).ticks(i*2).tickSize(-this._height).tickSizeOuter(0)}case R.Y:switch(n){case E.Right:return Oa(this.yScale).ticks(i*2).tickSize(-this._width).tickSizeOuter(0);case E.Left:default:return Ra(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(),Ft(e,n).call(r);const s=e.selectAll("g.tick");s.classed(Ba,!0).style("font-size",i.tickTextFontSize);const a=e.selectAll("g.tick > text").filter(c=>o.some(u=>ge(c,u))).classed(Pa,!0).classed(Ua,!!i.tickTextHideOverlapping).style("fill",i.tickTextColor);if(a.nodes().forEach(c=>$i(c)),a.each((c,u,f)=>{var l,h;let d=(h=(l=i.tickFormat)===null||l===void 0?void 0:l.call(i,c,u,o))!==null&&h!==void 0?h:`${c}`;const p=f[u],g=i.tickTextWidth||(i.type===R.X?this._containerWidth/(s.size()+1):this._containerWidth/5),_=getComputedStyle(p),v=Number.parseFloat(_.fontSize),y=_.fontFamily,m={verticalAlign:i.type===R.X?Yt.Top:Yt.Middle,width:g,textRotationAngle:i.tickTextAngle,separator:i.tickTextSeparator,wordBreak:i.tickTextForceWordBreak};if(i.tickTextFitMode===Hn.Trim){const b=At(p).text(d);ep(b,g,i.tickTextTrimType,!0,v,.58),d=At(p).text()}ap(p,{text:d,fontFamily:y,fontSize:v},m)}),e.classed(Ia,!0).classed(vr,!i.tickLine).classed(yr,!i.domainLine),i.fullSize){const c=this._getFullDomainPath(0);Ft(e.select(".domain"),n).attr("d",c)}}_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 u=a.getBoundingClientRect();for(let f=o+1;f<s.length;f+=1){if(o===f)continue;const l=s[f];if(l._visible){const d=l.getBoundingClientRect();if(rf(u,d,-5)){l._visible=!1;break}}}});e.each((i,r,o)=>{const s=o[r];At(s).style("opacity",s._visible?1:0)})}_getNumTicks(){const{config:{type:e,numTicks:n}}=this;if(n)return n;if(e===R.X){const i=this.xScale.range(),r=i[1]-i[0];return Math.floor(r/175)}if(e===R.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===R.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===R.X&&this._width<e.minMaxTicksOnlyWhenWidthIsLess?i:null}_getFullDomainPath(e=0){const{config:{type:n}}=this;switch(n){case R.X:return`M0.5, ${e} V0.5 H${this._width+.5} V${e}`;case R.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(`.${xr}`).remove();const a=this.getPosition(),{width:c,height:u}=(n=this._axisRawBBox)!==null&&n!==void 0?n:e.node().getBBox(),f=i===R.X?this._width/2:Math.pow(-1,+(a===E.Left))*c,l=i===R.X?Math.pow(-1,+(a===E.Top))*u:this._height/2,h=i===R.X?0:Math.pow(-1,+(a===E.Left))*o,d=i===R.X?Math.pow(-1,+(a===E.Top))*o:0,p=i===R.Y?-90:0;e.append("text").attr("class",xr).text(r).attr("dy",`${this._getLabelDY()}em`).attr("transform",`translate(${f+h},${l+d}) rotate(${p})`).style("font-size",s).style("fill",this.config.labelColor)}_getLabelDY(){const{type:e,position:n}=this.config;switch(e){case R.X:switch(n){case E.Top:return 0;case E.Bottom:default:return .75}case R.Y:switch(n){case E.Right:return .75;case E.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===R.X?0:this._getYTickTextTranslate(n,r),c=i?`translate(${a},0) rotate(${i})`:`translate(${a},0)`;o.attr("transform",c).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=E.Left){const r=this._axisRawBBox.width-9;switch(e){case ct.Left:return n===E.Left?r*-1:0;case ct.Right:return n===E.Left?0:r;case ct.Center:return n===E.Left?r*-.5:r*.5;default:return 0}}}Ha.selectors=lp;const Ya=Symbol("componentAccessorKey"),fp=Symbol("tooltipAccessorKey"),hp=Symbol("crosshairAccessorKey"),Wa=Symbol("axisAccessorKey"),dp=Symbol("annotationsAccessorKey");function Va(t,e){return ge(t,e)}function wr(t){const e=T.getCurrentInstance(),n=e.attrs;return T.computed(()=>{const i={},r=(e==null?void 0:e.vnode.props)??{};return Object.keys(r).forEach(o=>{i[T.camelize(o)]=t[T.camelize(o)]}),{...i,...n}})}const gp=T.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}=T.toRefs(n),r=wr(n),o=T.ref(),s=T.reactive({components:[],annotations:void 0,crosshair:void 0,tooltip:void 0,xAxis:void 0,yAxis:void 0}),a=T.ref();return T.watch(i,()=>{o.value&&o.value.setData(i.value,!0)}),T.watchEffect(()=>{var c;s.components.map(u=>u.config),(c=o.value)==null||c.updateContainer({...T.toRaw(r.value),...T.toRaw(s)})}),T.onMounted(()=>{a.value&&(o.value=new X0(a.value,{...T.toRaw(s)},i.value))}),T.onUnmounted(()=>{var c;return(c=o.value)==null?void 0:c.destroy()}),T.provide(Ya,{data:i,update:c=>s.components=[...s.components,c],destroy:()=>{var c;return s.components=(c=s.components)==null?void 0:c.filter(u=>!u.isDestroyed())}}),T.provide(Wa,{data:i,update:c=>s[`${c.config.type}Axis`]=c,destroy:c=>{s[`${c}Axis`]=void 0}}),T.provide(hp,{data:i,update:c=>s.crosshair=c,destroy:()=>{s.crosshair=void 0}}),T.provide(fp,{data:i,update:c=>s.tooltip=c,destroy:()=>{s.tooltip=void 0}}),T.provide(dp,{data:i,update:c=>s.annotations=c,destroy:()=>{s.annotations=void 0}}),e({component:o}),(c,u)=>(T.openBlock(),T.createElementBlock("div",{"data-vis-xy-container":"",ref_key:"elRef",ref:a,class:"unovis-xy-container"},[T.renderSlot(c.$slots,"default")],512))}}),pp={"data-vis-axis":""},Xa=T.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=T.inject(Wa),i=t,r=T.computed(()=>n.data.value??i.data),o=wr(i),s=T.ref();return T.onMounted(()=>{T.nextTick(()=>{var a;s.value=new Ha(o.value),(a=s.value)==null||a.setData(r.value),n.update(s.value)})}),T.onUnmounted(()=>{var a;(a=s.value)==null||a.destroy(),n.destroy(i.type)}),T.watch(o,(a,c)=>{var u;Va(a,c)||(u=s.value)==null||u.setConfig(o.value)}),T.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,c)=>(T.openBlock(),T.createElementBlock("div",pp))}}),_p={"data-vis-component":""},mp=T.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=T.inject(Ya),i=t,r=T.computed(()=>n.data.value??i.data),o=wr(i),s=T.ref();return T.onMounted(()=>{T.nextTick(()=>{var a;s.value=new zn(o.value),(a=s.value)==null||a.setData(r.value),n.update(s.value)})}),T.onUnmounted(()=>{var a;(a=s.value)==null||a.destroy(),n.destroy()}),T.watch(o,(a,c)=>{var u;Va(a,c)||(u=s.value)==null||u.setConfig(o.value)}),T.watch(r,()=>{var a;(a=s.value)==null||a.setData(r.value)}),e({component:s}),(a,c)=>(T.openBlock(),T.createElementBlock("div",_p))}});(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 vp=T.defineComponent({__name:"Area",props:{data:{},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}},setup(t){return(e,n)=>(T.openBlock(),T.createBlock(T.unref(gp),{height:600},{default:T.withCtx(()=>[T.createVNode(T.unref(mp),{data:e.data,x:i=>i.x,y:i=>i.y},null,8,["data","x","y"]),T.createVNode(T.unref(Xa),{type:"x"}),T.createVNode(T.unref(Xa),{type:"y"})]),_:1}))}});var qa=(t=>(t.Top="top",t.Bottom="bottom",t))(qa||{});const yp=((t,e)=>{const n=t.__vccOpts||t;for(const[i,r]of e)n[i]=r;return n})(T.defineComponent({__name:"Button",props:{variant:{},size:{}},setup(t){return(e,n)=>(T.openBlock(),T.createElementBlock("button",{class:T.normalizeClass(["button",`button--${e.variant||"primary"}`,`button--${e.size||"medium"}`])},[T.renderSlot(e.$slots,"default",{},void 0,!0)],2))}}),[["__scopeId","data-v-52b6ec0c"]]);pt.Area=vp,pt.Button=yp,pt.PaginationPosition=qa,Object.defineProperty(pt,Symbol.toStringTag,{value:"Module"})});