vue-chrts 0.0.77 → 0.0.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +9 -9
- package/dist/index.d.ts +4 -2
- package/dist/index.js +6 -9
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("vue");var qe="http://www.w3.org/1999/xhtml";const at={svg:"http://www.w3.org/2000/svg",xhtml:qe,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ft(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),at.hasOwnProperty(t)?{space:at[t],local:e}:e}function bn(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===qe&&t.documentElement.namespaceURI===qe?t.createElement(e):t.createElementNS(n,e)}}function _n(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Pt(e){var t=Ft(e);return(t.local?_n:bn)(t)}function wn(){}function Ht(e){return e==null?wn:function(){return this.querySelector(e)}}function An(e){typeof e!="function"&&(e=Ht(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var s=t[i],a=s.length,c=r[i]=new Array(a),o,f,l=0;l<a;++l)(o=s[l])&&(f=e.call(o,o.__data__,l,s))&&("__data__"in o&&(f.__data__=o.__data__),c[l]=f);return new I(r,this._parents)}function Sn(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Cn(){return[]}function $n(e){return e==null?Cn:function(){return this.querySelectorAll(e)}}function En(e){return function(){return Sn(e.apply(this,arguments))}}function Rn(e){typeof e=="function"?e=En(e):e=$n(e);for(var t=this._groups,n=t.length,r=[],i=[],s=0;s<n;++s)for(var a=t[s],c=a.length,o,f=0;f<c;++f)(o=a[f])&&(r.push(e.call(o,o.__data__,f,a)),i.push(o));return new I(r,i)}function On(e){return function(){return this.matches(e)}}function Lt(e){return function(t){return t.matches(e)}}var Nn=Array.prototype.find;function Tn(e){return function(){return Nn.call(this.children,e)}}function kn(){return this.firstElementChild}function Dn(e){return this.select(e==null?kn:Tn(typeof e=="function"?e:Lt(e)))}var In=Array.prototype.filter;function Mn(){return Array.from(this.children)}function zn(e){return function(){return In.call(this.children,e)}}function Bn(e){return this.selectAll(e==null?Mn:zn(typeof e=="function"?e:Lt(e)))}function Fn(e){typeof e!="function"&&(e=On(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var s=t[i],a=s.length,c=r[i]=[],o,f=0;f<a;++f)(o=s[f])&&e.call(o,o.__data__,f,s)&&c.push(o);return new I(r,this._parents)}function Vt(e){return new Array(e.length)}function Pn(){return new I(this._enter||this._groups.map(Vt),this._parents)}function Se(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Se.prototype={constructor:Se,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Hn(e){return function(){return e}}function Ln(e,t,n,r,i,s){for(var a=0,c,o=t.length,f=s.length;a<f;++a)(c=t[a])?(c.__data__=s[a],r[a]=c):n[a]=new Se(e,s[a]);for(;a<o;++a)(c=t[a])&&(i[a]=c)}function Vn(e,t,n,r,i,s,a){var c,o,f=new Map,l=t.length,u=s.length,p=new Array(l),d;for(c=0;c<l;++c)(o=t[c])&&(p[c]=d=a.call(o,o.__data__,c,t)+"",f.has(d)?i[c]=o:f.set(d,o));for(c=0;c<u;++c)d=a.call(e,s[c],c,s)+"",(o=f.get(d))?(r[c]=o,o.__data__=s[c],f.delete(d)):n[c]=new Se(e,s[c]);for(c=0;c<l;++c)(o=t[c])&&f.get(p[c])===o&&(i[c]=o)}function Wn(e){return e.__data__}function qn(e,t){if(!arguments.length)return Array.from(this,Wn);var n=t?Vn:Ln,r=this._parents,i=this._groups;typeof e!="function"&&(e=Hn(e));for(var s=i.length,a=new Array(s),c=new Array(s),o=new Array(s),f=0;f<s;++f){var l=r[f],u=i[f],p=u.length,d=Un(e.call(l,l&&l.__data__,f,r)),g=d.length,h=c[f]=new Array(g),m=a[f]=new Array(g),x=o[f]=new Array(p);n(l,u,h,m,x,d,t);for(var w=0,A=0,E,C;w<g;++w)if(E=h[w]){for(w>=A&&(A=w+1);!(C=m[A])&&++A<g;);E._next=C||null}}return a=new I(a,r),a._enter=c,a._exit=o,a}function Un(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Yn(){return new I(this._exit||this._groups.map(Vt),this._parents)}function Gn(e,t,n){var r=this.enter(),i=this,s=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?s.remove():n(s),r&&i?r.merge(i).order():i}function Xn(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,s=r.length,a=Math.min(i,s),c=new Array(i),o=0;o<a;++o)for(var f=n[o],l=r[o],u=f.length,p=c[o]=new Array(u),d,g=0;g<u;++g)(d=f[g]||l[g])&&(p[g]=d);for(;o<i;++o)c[o]=n[o];return new I(c,this._parents)}function Zn(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,s=r[i],a;--i>=0;)(a=r[i])&&(s&&a.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(a,s),s=a);return this}function Kn(e){e||(e=Jn);function t(u,p){return u&&p?e(u.__data__,p.__data__):!u-!p}for(var n=this._groups,r=n.length,i=new Array(r),s=0;s<r;++s){for(var a=n[s],c=a.length,o=i[s]=new Array(c),f,l=0;l<c;++l)(f=a[l])&&(o[l]=f);o.sort(t)}return new I(i,this._parents).order()}function Jn(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Qn(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function jn(){return Array.from(this)}function er(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,s=r.length;i<s;++i){var a=r[i];if(a)return a}return null}function tr(){let e=0;for(const t of this)++e;return e}function nr(){return!this.node()}function rr(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],s=0,a=i.length,c;s<a;++s)(c=i[s])&&e.call(c,c.__data__,s,i);return this}function ir(e){return function(){this.removeAttribute(e)}}function sr(e){return function(){this.removeAttributeNS(e.space,e.local)}}function ar(e,t){return function(){this.setAttribute(e,t)}}function or(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function cr(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function fr(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function lr(e,t){var n=Ft(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?sr:ir:typeof t=="function"?n.local?fr:cr:n.local?or:ar)(n,t))}function Wt(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function ur(e){return function(){this.style.removeProperty(e)}}function hr(e,t,n){return function(){this.style.setProperty(e,t,n)}}function dr(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function pr(e,t,n){return arguments.length>1?this.each((t==null?ur:typeof t=="function"?dr:hr)(e,t,n??"")):vr(this.node(),e)}function vr(e,t){return e.style.getPropertyValue(t)||Wt(e).getComputedStyle(e,null).getPropertyValue(t)}function gr(e){return function(){delete this[e]}}function mr(e,t){return function(){this[e]=t}}function xr(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function yr(e,t){return arguments.length>1?this.each((t==null?gr:typeof t=="function"?xr:mr)(e,t)):this.node()[e]}function qt(e){return e.trim().split(/^|\s+/)}function Je(e){return e.classList||new Ut(e)}function Ut(e){this._node=e,this._names=qt(e.getAttribute("class")||"")}Ut.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Yt(e,t){for(var n=Je(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Gt(e,t){for(var n=Je(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function br(e){return function(){Yt(this,e)}}function _r(e){return function(){Gt(this,e)}}function wr(e,t){return function(){(t.apply(this,arguments)?Yt:Gt)(this,e)}}function Ar(e,t){var n=qt(e+"");if(arguments.length<2){for(var r=Je(this.node()),i=-1,s=n.length;++i<s;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?wr:t?br:_r)(n,t))}function Sr(){this.textContent=""}function Cr(e){return function(){this.textContent=e}}function $r(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Er(e){return arguments.length?this.each(e==null?Sr:(typeof e=="function"?$r:Cr)(e)):this.node().textContent}function Rr(){this.innerHTML=""}function Or(e){return function(){this.innerHTML=e}}function Nr(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Tr(e){return arguments.length?this.each(e==null?Rr:(typeof e=="function"?Nr:Or)(e)):this.node().innerHTML}function kr(){this.nextSibling&&this.parentNode.appendChild(this)}function Dr(){return this.each(kr)}function Ir(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Mr(){return this.each(Ir)}function zr(e){var t=typeof e=="function"?e:Pt(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function Br(){return null}function Fr(e,t){var n=typeof e=="function"?e:Pt(e),r=t==null?Br:typeof t=="function"?t:Ht(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function Pr(){var e=this.parentNode;e&&e.removeChild(this)}function Hr(){return this.each(Pr)}function Lr(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Vr(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Wr(e){return this.select(e?Vr:Lr)}function qr(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Ur(e){return function(t){e.call(this,t,this.__data__)}}function Yr(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function Gr(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,s;n<i;++n)s=t[n],(!e.type||s.type===e.type)&&s.name===e.name?this.removeEventListener(s.type,s.listener,s.options):t[++r]=s;++r?t.length=r:delete this.__on}}}function Xr(e,t,n){return function(){var r=this.__on,i,s=Ur(t);if(r){for(var a=0,c=r.length;a<c;++a)if((i=r[a]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=s,i.options=n),i.value=t;return}}this.addEventListener(e.type,s,n),i={type:e.type,name:e.name,value:t,listener:s,options:n},r?r.push(i):this.__on=[i]}}function Zr(e,t,n){var r=Yr(e+""),i,s=r.length,a;if(arguments.length<2){var c=this.node().__on;if(c){for(var o=0,f=c.length,l;o<f;++o)for(i=0,l=c[o];i<s;++i)if((a=r[i]).type===l.type&&a.name===l.name)return l.value}return}for(c=t?Xr:Gr,i=0;i<s;++i)this.each(c(r[i],t,n));return this}function Xt(e,t,n){var r=Wt(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Kr(e,t){return function(){return Xt(this,e,t)}}function Jr(e,t){return function(){return Xt(this,e,t.apply(this,arguments))}}function Qr(e,t){return this.each((typeof t=="function"?Jr:Kr)(e,t))}function*jr(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,s=r.length,a;i<s;++i)(a=r[i])&&(yield a)}var ei=[null];function I(e,t){this._groups=e,this._parents=t}function ti(){return this}I.prototype={constructor:I,select:An,selectAll:Rn,selectChild:Dn,selectChildren:Bn,filter:Fn,data:qn,enter:Pn,exit:Yn,join:Gn,merge:Xn,selection:ti,order:Zn,sort:Kn,call:Qn,nodes:jn,node:er,size:tr,empty:nr,each:rr,attr:lr,style:pr,property:yr,classed:Ar,text:Er,html:Tr,raise:Dr,lower:Mr,append:zr,insert:Fr,remove:Hr,clone:Wr,datum:qr,on:Zr,dispatch:Qr,[Symbol.iterator]:jr};function ot(e){return typeof e=="string"?new I([[document.querySelector(e)]],[document.documentElement]):new I([[e]],ei)}var ct;(function(e){e[e.SVG=0]="SVG",e[e.HTML=1]="HTML"})(ct||(ct={}));var re;(function(e){e.Fit="fit",e.Extend="extend",e.FitWidth="fit_width"})(re||(re={}));function ni(e,t){let n,r;for(const i of e)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));return[n,r]}function*ri(e){for(const t of e)yield*t}function ii(e){return Array.from(ri(e))}const Zt=e=>typeof e=="number",si=e=>typeof e=="function",ai=e=>Array.isArray(e),oi=e=>e instanceof Object,Ce=e=>e.constructor.name!=="Function"&&e.constructor.name!=="Object",ft=e=>oi(e)&&!ai(e)&&!si(e)&&!Ce(e),Ue=(e,t,n=[],r=new Set)=>{if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;if(r.has(e))return!0;r.add(e);for(let i=0;i<e.length;i++)if(!Ue(e[i],t[i],n,r))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(typeof e=="object"&&e!==null&&t!==null){if(typeof t!="object")return!1;if(e===t)return!0;const i=Object.keys(e).filter(a=>!n.includes(a)),s=Object.keys(t).filter(a=>!n.includes(a));if(i.length!==s.length)return!1;if(r.has(e))return!0;r.add(e);for(const a of i)if(!Ue(e[a],t[a],n,r))return!1;return!0}return e===t},lt=e=>e.flat(),$e=(e,t=new Map)=>{if(typeof e!="object"||e===null)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof Array){const n=[];t.set(e,n);for(const r of e)n.push(t.has(r)?t.get(r):$e(r,t));return n}if(Ce(e))return e;if(e instanceof Object){const n={};t.set(e,n);const r=e;return Object.keys(e).reduce((i,s)=>(i[s]=t.has(r[s])?t.get(r[s]):$e(r[s],t),i),n),n}return e},Kt=(e,t,n=new Map)=>{if(!e||!t||e===t)return e;const r=Ce(e)?e:$e(e);return n.has(t)?n.get(t):(n.set(t,r),Object.keys(t).forEach(i=>{i==="__proto__"||i==="constructor"||(ft(e[i])&&ft(t[i])?r[i]=Kt(e[i],t[i],n):Ce(t)?r[i]=t:r[i]=$e(t[i]))}),r)};function j(e){return e.filter(t=>t&&!Zt(t))}function G(e,t,n){return Math.min(Math.max(e,t),n)}var q=[],ci=function(){return q.some(function(e){return e.activeTargets.length>0})},fi=function(){return q.some(function(e){return e.skippedTargets.length>0})},ut="ResizeObserver loop completed with undelivered notifications.",li=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:ut}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=ut),window.dispatchEvent(e)},ie;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(ie||(ie={}));var U=function(e){return Object.freeze(e)},ui=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,U(this)}return e}(),Jt=function(){function e(t,n,r,i){return this.x=t,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,U(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,i=t.top,s=t.right,a=t.bottom,c=t.left,o=t.width,f=t.height;return{x:n,y:r,top:i,right:s,bottom:a,left:c,width:o,height:f}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Qe=function(e){return e instanceof SVGElement&&"getBBox"in e},Qt=function(e){if(Qe(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,s=i.offsetWidth,a=i.offsetHeight;return!(s||a||e.getClientRects().length)},ht=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},hi=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},ne=typeof window<"u"?window:{},pe=new WeakMap,dt=/auto|scroll/,di=/^tb|vertical/,pi=/msie|trident/i.test(ne.navigator&&ne.navigator.userAgent),z=function(e){return parseFloat(e||"0")},X=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new ui((n?t:e)||0,(n?e:t)||0)},pt=U({devicePixelContentBoxSize:X(),borderBoxSize:X(),contentBoxSize:X(),contentRect:new Jt(0,0,0,0)}),jt=function(e,t){if(t===void 0&&(t=!1),pe.has(e)&&!t)return pe.get(e);if(Qt(e))return pe.set(e,pt),pt;var n=getComputedStyle(e),r=Qe(e)&&e.ownerSVGElement&&e.getBBox(),i=!pi&&n.boxSizing==="border-box",s=di.test(n.writingMode||""),a=!r&&dt.test(n.overflowY||""),c=!r&&dt.test(n.overflowX||""),o=r?0:z(n.paddingTop),f=r?0:z(n.paddingRight),l=r?0:z(n.paddingBottom),u=r?0:z(n.paddingLeft),p=r?0:z(n.borderTopWidth),d=r?0:z(n.borderRightWidth),g=r?0:z(n.borderBottomWidth),h=r?0:z(n.borderLeftWidth),m=u+f,x=o+l,w=h+d,A=p+g,E=c?e.offsetHeight-A-e.clientHeight:0,C=a?e.offsetWidth-w-e.clientWidth:0,O=i?m+w:0,y=i?x+A:0,he=r?r.width:z(n.width)-O-C,de=r?r.height:z(n.height)-y-E,xn=he+m+C+w,yn=de+x+E+A,st=U({devicePixelContentBoxSize:X(Math.round(he*devicePixelRatio),Math.round(de*devicePixelRatio),s),borderBoxSize:X(xn,yn,s),contentBoxSize:X(he,de,s),contentRect:new Jt(u,o,he,de)});return pe.set(e,st),st},en=function(e,t,n){var r=jt(e,n),i=r.borderBoxSize,s=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case ie.DEVICE_PIXEL_CONTENT_BOX:return a;case ie.BORDER_BOX:return i;default:return s}},vi=function(){function e(t){var n=jt(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=U([n.borderBoxSize]),this.contentBoxSize=U([n.contentBoxSize]),this.devicePixelContentBoxSize=U([n.devicePixelContentBoxSize])}return e}(),tn=function(e){if(Qt(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},gi=function(){var e=1/0,t=[];q.forEach(function(a){if(a.activeTargets.length!==0){var c=[];a.activeTargets.forEach(function(f){var l=new vi(f.target),u=tn(f.target);c.push(l),f.lastReportedSize=en(f.target,f.observedBox),u<e&&(e=u)}),t.push(function(){a.callback.call(a.observer,c,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e},vt=function(e){q.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(tn(i.target)>e?n.activeTargets.push(i):n.skippedTargets.push(i))})})},mi=function(){var e=0;for(vt(e);ci();)e=gi(),vt(e);return fi()&&li(),e>0},Be,nn=[],xi=function(){return nn.splice(0).forEach(function(e){return e()})},yi=function(e){if(!Be){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return xi()}).observe(n,r),Be=function(){n.textContent="".concat(t?t--:t++)}}nn.push(e),Be()},bi=function(e){yi(function(){requestAnimationFrame(e)})},be=0,_i=function(){return!!be},wi=250,Ai={attributes:!0,characterData:!0,childList:!0,subtree:!0},gt=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],mt=function(e){return e===void 0&&(e=0),Date.now()+e},Fe=!1,Si=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=wi),!Fe){Fe=!0;var r=mt(t);bi(function(){var i=!1;try{i=mi()}finally{if(Fe=!1,t=r-mt(),!_i())return;i?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,Ai)};document.body?n():ne.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),gt.forEach(function(n){return ne.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),gt.forEach(function(n){return ne.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Ye=new Si,xt=function(e){!be&&e>0&&Ye.start(),be+=e,!be&&Ye.stop()},Ci=function(e){return!Qe(e)&&!hi(e)&&getComputedStyle(e).display==="inline"},$i=function(){function e(t,n){this.target=t,this.observedBox=n||ie.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=en(this.target,this.observedBox,!0);return Ci(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Ei=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),ve=new WeakMap,yt=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},ge=function(){function e(){}return e.connect=function(t,n){var r=new Ei(t,n);ve.set(t,r)},e.observe=function(t,n,r){var i=ve.get(t),s=i.observationTargets.length===0;yt(i.observationTargets,n)<0&&(s&&q.push(i),i.observationTargets.push(new $i(n,r&&r.box)),xt(1),Ye.schedule())},e.unobserve=function(t,n){var r=ve.get(t),i=yt(r.observationTargets,n),s=r.observationTargets.length===1;i>=0&&(s&&q.splice(q.indexOf(r),1),r.observationTargets.splice(i,1),xt(-1))},e.disconnect=function(t){var n=this,r=ve.get(t);r.observationTargets.slice().forEach(function(i){return n.unobserve(t,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),Ri=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");ge.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ht(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ge.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ht(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ge.unobserve(this,t)},e.prototype.disconnect=function(){ge.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const Oi=globalThis.ResizeObserver||Ri,rn={duration:void 0,margin:{top:0,bottom:0,left:0,right:0},padding:{top:0,bottom:0,left:0,right:0},sizing:re.Fit,width:void 0,height:void 0,svgDefs:void 0,ariaLabel:void 0};class se{constructor(t){this._defaultConfig=rn,this._isFirstRender=!0,this._renderAnimationFrameId=null,this._container=t;const n=ot(this._container);n.attr("role","figure"),this.svg=n.append("svg").style("display","block").attr("xmlns","http://www.w3.org/2000/svg").attr("height",se.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(t){var n;this.prevConfig=this.config,this.config=Kt(this._defaultConfig,t),(t==null?void 0:t.svgDefs)!==((n=this.prevConfig)===null||n===void 0?void 0:n.svgDefs)&&(this._svgDefsExternal.selectAll("*").remove(),this._svgDefsExternal.html(t.svgDefs))}_preRender(){}_render(t){const{config:n}=this;ot(this._container).attr("aria-label",n.ariaLabel),this._isFirstRender=!1}render(t=this.config.duration){const n=this.config.width||this.containerWidth,r=this.config.height||this.containerHeight;this.svg.attr("width",n).attr("height",r),this._resizeObserver||this._setUpResizeObserver(),cancelAnimationFrame(this._renderAnimationFrameId),this._renderAnimationFrameId=requestAnimationFrame(()=>{this._preRender(),this._render(t)})}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||se.DEFAULT_CONTAINER_HEIGHT}get width(){return G(this.containerWidth-this.config.margin.left-this.config.margin.right,0,Number.POSITIVE_INFINITY)}get height(){return G(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:t}=this;(t.sizing===re.Fit||t.sizing===re.FitWidth)&&this.render(0)}_setUpResizeObserver(){if(this._resizeObserver)return;const t=this._container.getBoundingClientRect();this._containerSize={width:t.width,height:t.height},this._resizeObserver=new Oi((n,r)=>{cancelAnimationFrame(this._resizeObserverAnimationFrameId),this._resizeObserverAnimationFrameId=requestAnimationFrame(()=>{const i=this._container.getBoundingClientRect(),s={width:i.width,height:i.height};!Ue(this._containerSize,s)&&s.width&&s.height&&(this._containerSize=s,this._onResize())})}),this._resizeObserver.observe(this._container)}destroy(){var t;cancelAnimationFrame(this._renderAnimationFrameId),cancelAnimationFrame(this._resizeObserverAnimationFrameId),(t=this._resizeObserver)===null||t===void 0||t.disconnect(),this.svg.remove()}}se.DEFAULT_CONTAINER_HEIGHT=300;function Ni(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Ti(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var ki=function(){function e(n){var r=this;this._insertTag=function(i){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,s),r.tags.push(i)},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 t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Ti(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Ni(i);try{s.insertRule(r,s.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e}(),R="-ms-",Ee="-moz-",b="-webkit-",sn="comm",je="rule",et="decl",Di="@import",an="@keyframes",Ii="@layer",Mi=Math.abs,Ie=String.fromCharCode,zi=Object.assign;function Bi(e,t){return $(e,0)^45?(((t<<2^$(e,0))<<2^$(e,1))<<2^$(e,2))<<2^$(e,3):0}function on(e){return e.trim()}function Fi(e,t){return(e=t.exec(e))?e[0]:e}function _(e,t,n){return e.replace(t,n)}function Ge(e,t){return e.indexOf(t)}function $(e,t){return e.charCodeAt(t)|0}function ae(e,t,n){return e.slice(t,n)}function B(e){return e.length}function tt(e){return e.length}function me(e,t){return t.push(e),e}function Pi(e,t){return e.map(t).join("")}var Me=1,J=1,cn=0,T=0,S=0,Q="";function ze(e,t,n,r,i,s,a){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:Me,column:J,length:a,return:""}}function ee(e,t){return zi(ze("",null,null,"",null,null,0),e,{length:-e.length},t)}function Hi(){return S}function Li(){return S=T>0?$(Q,--T):0,J--,S===10&&(J=1,Me--),S}function D(){return S=T<cn?$(Q,T++):0,J++,S===10&&(J=1,Me++),S}function F(){return $(Q,T)}function _e(){return T}function le(e,t){return ae(Q,e,t)}function oe(e){switch(e){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 fn(e){return Me=J=1,cn=B(Q=e),T=0,[]}function ln(e){return Q="",e}function we(e){return on(le(T-1,Xe(e===91?e+2:e===40?e+1:e)))}function Vi(e){for(;(S=F())&&S<33;)D();return oe(e)>2||oe(S)>3?"":" "}function Wi(e,t){for(;--t&&D()&&!(S<48||S>102||S>57&&S<65||S>70&&S<97););return le(e,_e()+(t<6&&F()==32&&D()==32))}function Xe(e){for(;D();)switch(S){case e:return T;case 34:case 39:e!==34&&e!==39&&Xe(S);break;case 40:e===41&&Xe(e);break;case 92:D();break}return T}function qi(e,t){for(;D()&&e+S!==57;)if(e+S===84&&F()===47)break;return"/*"+le(t,T-1)+"*"+Ie(e===47?e:D())}function Ui(e){for(;!oe(F());)D();return le(e,T)}function Yi(e){return ln(Ae("",null,null,null,[""],e=fn(e),0,[0],e))}function Ae(e,t,n,r,i,s,a,c,o){for(var f=0,l=0,u=a,p=0,d=0,g=0,h=1,m=1,x=1,w=0,A="",E=i,C=s,O=r,y=A;m;)switch(g=w,w=D()){case 40:if(g!=108&&$(y,u-1)==58){Ge(y+=_(we(w),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:y+=we(w);break;case 9:case 10:case 13:case 32:y+=Vi(g);break;case 92:y+=Wi(_e()-1,7);continue;case 47:switch(F()){case 42:case 47:me(Gi(qi(D(),_e()),t,n),o);break;default:y+="/"}break;case 123*h:c[f++]=B(y)*x;case 125*h:case 59:case 0:switch(w){case 0:case 125:m=0;case 59+l:x==-1&&(y=_(y,/\f/g,"")),d>0&&B(y)-u&&me(d>32?_t(y+";",r,n,u-1):_t(_(y," ","")+";",r,n,u-2),o);break;case 59:y+=";";default:if(me(O=bt(y,t,n,f,l,i,c,A,E=[],C=[],u),s),w===123)if(l===0)Ae(y,t,O,O,E,s,u,c,C);else switch(p===99&&$(y,3)===110?100:p){case 100:case 108:case 109:case 115:Ae(e,O,O,r&&me(bt(e,O,O,0,0,i,c,A,i,E=[],u),C),i,C,u,c,r?E:C);break;default:Ae(y,O,O,O,[""],C,0,c,C)}}f=l=d=0,h=x=1,A=y="",u=a;break;case 58:u=1+B(y),d=g;default:if(h<1){if(w==123)--h;else if(w==125&&h++==0&&Li()==125)continue}switch(y+=Ie(w),w*h){case 38:x=l>0?1:(y+="\f",-1);break;case 44:c[f++]=(B(y)-1)*x,x=1;break;case 64:F()===45&&(y+=we(D())),p=F(),l=u=B(A=y+=Ui(_e())),w++;break;case 45:g===45&&B(y)==2&&(h=0)}}return s}function bt(e,t,n,r,i,s,a,c,o,f,l){for(var u=i-1,p=i===0?s:[""],d=tt(p),g=0,h=0,m=0;g<r;++g)for(var x=0,w=ae(e,u+1,u=Mi(h=a[g])),A=e;x<d;++x)(A=on(h>0?p[x]+" "+w:_(w,/&\f/g,p[x])))&&(o[m++]=A);return ze(e,t,n,i===0?je:c,o,f,l)}function Gi(e,t,n){return ze(e,t,n,sn,Ie(Hi()),ae(e,2,-2),0)}function _t(e,t,n,r){return ze(e,t,n,et,ae(e,0,r),ae(e,r+1,-1),r)}function Z(e,t){for(var n="",r=tt(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Xi(e,t,n,r){switch(e.type){case Ii:if(e.children.length)break;case Di:case et:return e.return=e.return||e.value;case sn:return"";case an:return e.return=e.value+"{"+Z(e.children,r)+"}";case je:e.value=e.props.join(",")}return B(n=Z(e.children,r))?e.return=e.value+"{"+n+"}":""}function Zi(e){var t=tt(e);return function(n,r,i,s){for(var a="",c=0;c<t;c++)a+=e[c](n,r,i,s)||"";return a}}function Ki(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ji(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Qi=function(t,n,r){for(var i=0,s=0;i=s,s=F(),i===38&&s===12&&(n[r]=1),!oe(s);)D();return le(t,T)},ji=function(t,n){var r=-1,i=44;do switch(oe(i)){case 0:i===38&&F()===12&&(n[r]=1),t[r]+=Qi(T-1,n,r);break;case 2:t[r]+=we(i);break;case 4:if(i===44){t[++r]=F()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Ie(i)}while(i=D());return t},es=function(t,n){return ln(ji(fn(t),n))},wt=new WeakMap,ts=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!wt.get(r))&&!i){wt.set(t,!0);for(var s=[],a=es(n,s),c=r.props,o=0,f=0;o<a.length;o++)for(var l=0;l<c.length;l++,f++)t.props[f]=s[o]?a[o].replace(/&\f/g,c[l]):c[l]+" "+a[o]}}},ns=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function un(e,t){switch(Bi(e,t)){case 5103:return b+"print-"+e+e;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 b+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return b+e+Ee+e+R+e+e;case 6828:case 4268:return b+e+R+e+e;case 6165:return b+e+R+"flex-"+e+e;case 5187:return b+e+_(e,/(\w+).+(:[^]+)/,b+"box-$1$2"+R+"flex-$1$2")+e;case 5443:return b+e+R+"flex-item-"+_(e,/flex-|-self/,"")+e;case 4675:return b+e+R+"flex-line-pack"+_(e,/align-content|flex-|-self/,"")+e;case 5548:return b+e+R+_(e,"shrink","negative")+e;case 5292:return b+e+R+_(e,"basis","preferred-size")+e;case 6060:return b+"box-"+_(e,"-grow","")+b+e+R+_(e,"grow","positive")+e;case 4554:return b+_(e,/([^-])(transform)/g,"$1"+b+"$2")+e;case 6187:return _(_(_(e,/(zoom-|grab)/,b+"$1"),/(image-set)/,b+"$1"),e,"")+e;case 5495:case 3959:return _(e,/(image-set\([^]*)/,b+"$1$`$1");case 4968:return _(_(e,/(.+:)(flex-)?(.*)/,b+"box-pack:$3"+R+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+b+e+e;case 4095:case 3583:case 4068:case 2532:return _(e,/(.+)-inline(.+)/,b+"$1$2")+e;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(B(e)-1-t>6)switch($(e,t+1)){case 109:if($(e,t+4)!==45)break;case 102:return _(e,/(.+:)(.+)-([^]+)/,"$1"+b+"$2-$3$1"+Ee+($(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ge(e,"stretch")?un(_(e,"stretch","fill-available"),t)+e:e}break;case 4949:if($(e,t+1)!==115)break;case 6444:switch($(e,B(e)-3-(~Ge(e,"!important")&&10))){case 107:return _(e,":",":"+b)+e;case 101:return _(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+b+($(e,14)===45?"inline-":"")+"box$3$1"+b+"$2$3$1"+R+"$2box$3")+e}break;case 5936:switch($(e,t+11)){case 114:return b+e+R+_(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return b+e+R+_(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return b+e+R+_(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return b+e+R+e+e}return e}var rs=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case et:t.return=un(t.value,t.length);break;case an:return Z([ee(t,{value:_(t.value,"@","@"+b)})],i);case je:if(t.length)return Pi(t.props,function(s){switch(Fi(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Z([ee(t,{props:[_(s,/:(read-\w+)/,":"+Ee+"$1")]})],i);case"::placeholder":return Z([ee(t,{props:[_(s,/:(plac\w+)/,":"+b+"input-$1")]}),ee(t,{props:[_(s,/:(plac\w+)/,":"+Ee+"$1")]}),ee(t,{props:[_(s,/:(plac\w+)/,R+"input-$1")]})],i)}return""})}},is=[rs],ss=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(h){var m=h.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var i=t.stylisPlugins||is,s={},a,c=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(h){for(var m=h.getAttribute("data-emotion").split(" "),x=1;x<m.length;x++)s[m[x]]=!0;c.push(h)});var o,f=[ts,ns];{var l,u=[Xi,Ki(function(h){l.insert(h)})],p=Zi(f.concat(i,u)),d=function(m){return Z(Yi(m),p)};o=function(m,x,w,A){l=w,d(m?m+"{"+x.styles+"}":x.styles),A&&(g.inserted[x.name]=!0)}}var g={key:n,sheet:new ki({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:o};return g.sheet.hydrate(c),g};function as(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var os={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},cs=/[A-Z]|^ms/g,fs=/_EMO_([^_]+?)_([^]*?)_EMO_/g,hn=function(t){return t.charCodeAt(1)===45},At=function(t){return t!=null&&typeof t!="boolean"},Pe=Ji(function(e){return hn(e)?e:e.replace(cs,"-$&").toLowerCase()}),St=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(fs,function(r,i,s){return L={name:i,styles:s,next:L},i})}return os[t]!==1&&!hn(t)&&typeof n=="number"&&n!==0?n+"px":n};function Re(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return L={name:i.name,styles:i.styles,next:L},i.name;var s=n;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)L={name:a.name,styles:a.styles,next:L},a=a.next;var c=s.styles+";";return c}return ls(e,t,n)}}var o=n;if(t==null)return o;var f=t[o];return f!==void 0?f:o}function ls(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Re(e,t,n[i])+";";else for(var s in n){var a=n[s];if(typeof a!="object"){var c=a;t!=null&&t[c]!==void 0?r+=s+"{"+t[c]+"}":At(c)&&(r+=Pe(s)+":"+St(s,c)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var o=0;o<a.length;o++)At(a[o])&&(r+=Pe(s)+":"+St(s,a[o])+";");else{var f=Re(e,t,a);switch(s){case"animation":case"animationName":{r+=Pe(s)+":"+f+";";break}default:r+=s+"{"+f+"}"}}}return r}var Ct=/label:\s*([^\s;{]+)\s*(;|$)/g,L;function He(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";L=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,i+=Re(n,t,s);else{var a=s;i+=a[0]}for(var c=1;c<e.length;c++)if(i+=Re(n,t,e[c]),r){var o=s;i+=o[c]}Ct.lastIndex=0;for(var f="",l;(l=Ct.exec(i))!==null;)f+="-"+l[1];var u=as(i)+f;return{name:u,styles:i,next:L}}function dn(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var us=function(t,n,r){var i=t.key+"-"+n.name;t.registered[i]===void 0&&(t.registered[i]=n.styles)},hs=function(t,n,r){us(t,n);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+i:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function $t(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Et(e,t,n){var r=[],i=dn(e,r,n);return r.length<2?n:i+t(r)}var ds=function(t){var n=ss(t);n.sheet.speedy=function(c){this.isSpeedy=c},n.compat=!0;var r=function(){for(var o=arguments.length,f=new Array(o),l=0;l<o;l++)f[l]=arguments[l];var u=He(f,n.registered,void 0);return hs(n,u),n.key+"-"+u.name},i=function(){for(var o=arguments.length,f=new Array(o),l=0;l<o;l++)f[l]=arguments[l];var u=He(f,n.registered),p="animation-"+u.name;return $t(n,{name:u.name,styles:"@keyframes "+p+"{"+u.styles+"}"}),p},s=function(){for(var o=arguments.length,f=new Array(o),l=0;l<o;l++)f[l]=arguments[l];var u=He(f,n.registered);$t(n,u)},a=function(){for(var o=arguments.length,f=new Array(o),l=0;l<o;l++)f[l]=arguments[l];return Et(n.registered,r,ps(f))};return{css:r,cx:a,injectGlobal:s,keyframes:i,hydrate:function(o){o.forEach(function(f){n.inserted[f]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:dn.bind(null,n.registered),merge:Et.bind(null,n.registered,r)}},ps=function e(t){for(var n="",r=0;r<t.length;r++){var i=t[r];if(i!=null){var s=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))s=e(i);else{s="";for(var a in i)i[a]&&a&&(s&&(s+=" "),s+=a)}break}default:s=i}s&&(n&&(n+=" "),n+=s)}}return n},pn=ds({key:"css"}),vs=pn.injectGlobal,gs=pn.css,Le,Rt;function ms(){return Rt||(Rt=1,Le=function(t,n){n||(n=[0,""]),t=String(t);var r=parseFloat(t,10);return n[0]=r,n[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||"",n}),Le}var Ve,Ot;function xs(){if(Ot)return Ve;Ot=1;var e=ms();Ve=i;var t=r("in",document.body);function n(s,a){var c=e(getComputedStyle(s).getPropertyValue(a));return c[0]*i(c[1],s)}function r(s,a){var c=document.createElement("div");c.style.height="128"+s,a.appendChild(c);var o=n(c,"height")/128;return a.removeChild(c),o}function i(s,a){if(!s)return null;switch(a=a||document.body,s=(s+""||"px").trim().toLowerCase(),(a===window||a===document)&&(a=document.body),s){case"%":return a.clientHeight/100;case"ch":case"ex":return r(s,a);case"em":return n(a,"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 t;case"cm":return t/2.54;case"mm":return t/25.4;case"pt":return t/72;case"pc":return t/6;case"px":return 1}var c=e(s);if(!isNaN(c[0])&&c[1]){var o=i(c[1],a);return typeof o=="number"?c[0]*o:null}return null}return Ve}xs();function ys(){const e=()=>Math.floor((1+crypto.getRandomValues(new Uint32Array(1))[0])*65536).toString(16).substring(1);return`${e()+e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}function nt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function vn(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ue(){}var ce=.7,Oe=1/ce,K="\\s*([+-]?\\d+)\\s*",fe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",P="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",bs=/^#([0-9a-f]{3,8})$/,_s=new RegExp(`^rgb\\(${K},${K},${K}\\)$`),ws=new RegExp(`^rgb\\(${P},${P},${P}\\)$`),As=new RegExp(`^rgba\\(${K},${K},${K},${fe}\\)$`),Ss=new RegExp(`^rgba\\(${P},${P},${P},${fe}\\)$`),Cs=new RegExp(`^hsl\\(${fe},${P},${P}\\)$`),$s=new RegExp(`^hsla\\(${fe},${P},${P},${fe}\\)$`),Nt={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};nt(ue,rt,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Tt,formatHex:Tt,formatHex8:Es,formatHsl:Rs,formatRgb:kt,toString:kt});function Tt(){return this.rgb().formatHex()}function Es(){return this.rgb().formatHex8()}function Rs(){return gn(this).formatHsl()}function kt(){return this.rgb().formatRgb()}function rt(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=bs.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Dt(t):n===3?new N(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?xe(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?xe(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=_s.exec(e))?new N(t[1],t[2],t[3],1):(t=ws.exec(e))?new N(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=As.exec(e))?xe(t[1],t[2],t[3],t[4]):(t=Ss.exec(e))?xe(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Cs.exec(e))?zt(t[1],t[2]/100,t[3]/100,1):(t=$s.exec(e))?zt(t[1],t[2]/100,t[3]/100,t[4]):Nt.hasOwnProperty(e)?Dt(Nt[e]):e==="transparent"?new N(NaN,NaN,NaN,0):null}function Dt(e){return new N(e>>16&255,e>>8&255,e&255,1)}function xe(e,t,n,r){return r<=0&&(e=t=n=NaN),new N(e,t,n,r)}function Os(e){return e instanceof ue||(e=rt(e)),e?(e=e.rgb(),new N(e.r,e.g,e.b,e.opacity)):new N}function Ns(e,t,n,r){return arguments.length===1?Os(e):new N(e,t,n,r??1)}function N(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}nt(N,Ns,vn(ue,{brighter(e){return e=e==null?Oe:Math.pow(Oe,e),new N(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ce:Math.pow(ce,e),new N(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new N(Y(this.r),Y(this.g),Y(this.b),Ne(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:It,formatHex:It,formatHex8:Ts,formatRgb:Mt,toString:Mt}));function It(){return`#${W(this.r)}${W(this.g)}${W(this.b)}`}function Ts(){return`#${W(this.r)}${W(this.g)}${W(this.b)}${W((isNaN(this.opacity)?1:this.opacity)*255)}`}function Mt(){const e=Ne(this.opacity);return`${e===1?"rgb(":"rgba("}${Y(this.r)}, ${Y(this.g)}, ${Y(this.b)}${e===1?")":`, ${e})`}`}function Ne(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Y(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function W(e){return e=Y(e),(e<16?"0":"")+e.toString(16)}function zt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new M(e,t,n,r)}function gn(e){if(e instanceof M)return new M(e.h,e.s,e.l,e.opacity);if(e instanceof ue||(e=rt(e)),!e)return new M;if(e instanceof M)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),s=Math.max(t,n,r),a=NaN,c=s-i,o=(s+i)/2;return c?(t===s?a=(n-r)/c+(n<r)*6:n===s?a=(r-t)/c+2:a=(t-n)/c+4,c/=o<.5?s+i:2-s-i,a*=60):c=o>0&&o<1?0:a,new M(a,c,o,e.opacity)}function it(e,t,n,r){return arguments.length===1?gn(e):new M(e,t,n,r??1)}function M(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}nt(M,it,vn(ue,{brighter(e){return e=e==null?Oe:Math.pow(Oe,e),new M(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ce:Math.pow(ce,e),new M(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new N(We(e>=240?e-240:e+120,i,r),We(e,i,r),We(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new M(Bt(this.h),ye(this.s),ye(this.l),Ne(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 e=Ne(this.opacity);return`${e===1?"hsl(":"hsla("}${Bt(this.h)}, ${ye(this.s)*100}%, ${ye(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Bt(e){return e=(e||0)%360,e<0?e+360:e}function ye(e){return Math.max(0,Math.min(1,e||0))}function We(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const te=(globalThis==null?void 0:globalThis.UNOVIS_COLORS)||["#4D8CFD","#FF6B7E","#F4B83E","#A6CC74","#00C19A","#6859BE"],ks=(globalThis==null?void 0:globalThis.UNOVIS_COLORS_DARK)||["#4D8CFD","#FF6B7E","#FFC16D","#A6CC74","#00C19A","#7887E0"],V=e=>`--vis-${Zt(e)?`color${e%te.length}`:e}`;function Ds(e,t=.4){const n=it(e);return n.l=n.l*(1+t),n.formatHex()}function Is(e,t=.4,n=.6){const r=it(e);return r.s=r.s*(1-n),r.l=r.l*(1-t),r.formatHex()}const Te=10,Ze=[{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"/>'}],Ke=[{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 H(e){return`vis-${`pattern-${e.svg?"fill":"marker"}`}-${e.id}`}const Ms=e=>`<mask id="${H(e)}">
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const v=require("vue");var qe="http://www.w3.org/1999/xhtml";const at={svg:"http://www.w3.org/2000/svg",xhtml:qe,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Ft(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),at.hasOwnProperty(t)?{space:at[t],local:e}:e}function yn(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===qe&&t.documentElement.namespaceURI===qe?t.createElement(e):t.createElementNS(n,e)}}function bn(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Pt(e){var t=Ft(e);return(t.local?bn:yn)(t)}function _n(){}function Ht(e){return e==null?_n:function(){return this.querySelector(e)}}function wn(e){typeof e!="function"&&(e=Ht(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var s=t[i],a=s.length,c=r[i]=new Array(a),o,f,l=0;l<a;++l)(o=s[l])&&(f=e.call(o,o.__data__,l,s))&&("__data__"in o&&(f.__data__=o.__data__),c[l]=f);return new I(r,this._parents)}function An(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Sn(){return[]}function Cn(e){return e==null?Sn:function(){return this.querySelectorAll(e)}}function $n(e){return function(){return An(e.apply(this,arguments))}}function En(e){typeof e=="function"?e=$n(e):e=Cn(e);for(var t=this._groups,n=t.length,r=[],i=[],s=0;s<n;++s)for(var a=t[s],c=a.length,o,f=0;f<c;++f)(o=a[f])&&(r.push(e.call(o,o.__data__,f,a)),i.push(o));return new I(r,i)}function Rn(e){return function(){return this.matches(e)}}function Lt(e){return function(t){return t.matches(e)}}var On=Array.prototype.find;function Nn(e){return function(){return On.call(this.children,e)}}function Tn(){return this.firstElementChild}function kn(e){return this.select(e==null?Tn:Nn(typeof e=="function"?e:Lt(e)))}var Dn=Array.prototype.filter;function In(){return Array.from(this.children)}function Mn(e){return function(){return Dn.call(this.children,e)}}function zn(e){return this.selectAll(e==null?In:Mn(typeof e=="function"?e:Lt(e)))}function Bn(e){typeof e!="function"&&(e=Rn(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var s=t[i],a=s.length,c=r[i]=[],o,f=0;f<a;++f)(o=s[f])&&e.call(o,o.__data__,f,s)&&c.push(o);return new I(r,this._parents)}function Vt(e){return new Array(e.length)}function Fn(){return new I(this._enter||this._groups.map(Vt),this._parents)}function Se(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Se.prototype={constructor:Se,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Pn(e){return function(){return e}}function Hn(e,t,n,r,i,s){for(var a=0,c,o=t.length,f=s.length;a<f;++a)(c=t[a])?(c.__data__=s[a],r[a]=c):n[a]=new Se(e,s[a]);for(;a<o;++a)(c=t[a])&&(i[a]=c)}function Ln(e,t,n,r,i,s,a){var c,o,f=new Map,l=t.length,u=s.length,p=new Array(l),d;for(c=0;c<l;++c)(o=t[c])&&(p[c]=d=a.call(o,o.__data__,c,t)+"",f.has(d)?i[c]=o:f.set(d,o));for(c=0;c<u;++c)d=a.call(e,s[c],c,s)+"",(o=f.get(d))?(r[c]=o,o.__data__=s[c],f.delete(d)):n[c]=new Se(e,s[c]);for(c=0;c<l;++c)(o=t[c])&&f.get(p[c])===o&&(i[c]=o)}function Vn(e){return e.__data__}function Wn(e,t){if(!arguments.length)return Array.from(this,Vn);var n=t?Ln:Hn,r=this._parents,i=this._groups;typeof e!="function"&&(e=Pn(e));for(var s=i.length,a=new Array(s),c=new Array(s),o=new Array(s),f=0;f<s;++f){var l=r[f],u=i[f],p=u.length,d=qn(e.call(l,l&&l.__data__,f,r)),g=d.length,h=c[f]=new Array(g),m=a[f]=new Array(g),x=o[f]=new Array(p);n(l,u,h,m,x,d,t);for(var w=0,A=0,E,C;w<g;++w)if(E=h[w]){for(w>=A&&(A=w+1);!(C=m[A])&&++A<g;);E._next=C||null}}return a=new I(a,r),a._enter=c,a._exit=o,a}function qn(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Un(){return new I(this._exit||this._groups.map(Vt),this._parents)}function Yn(e,t,n){var r=this.enter(),i=this,s=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?s.remove():n(s),r&&i?r.merge(i).order():i}function Gn(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,s=r.length,a=Math.min(i,s),c=new Array(i),o=0;o<a;++o)for(var f=n[o],l=r[o],u=f.length,p=c[o]=new Array(u),d,g=0;g<u;++g)(d=f[g]||l[g])&&(p[g]=d);for(;o<i;++o)c[o]=n[o];return new I(c,this._parents)}function Xn(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,s=r[i],a;--i>=0;)(a=r[i])&&(s&&a.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(a,s),s=a);return this}function Zn(e){e||(e=Kn);function t(u,p){return u&&p?e(u.__data__,p.__data__):!u-!p}for(var n=this._groups,r=n.length,i=new Array(r),s=0;s<r;++s){for(var a=n[s],c=a.length,o=i[s]=new Array(c),f,l=0;l<c;++l)(f=a[l])&&(o[l]=f);o.sort(t)}return new I(i,this._parents).order()}function Kn(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Jn(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Qn(){return Array.from(this)}function jn(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,s=r.length;i<s;++i){var a=r[i];if(a)return a}return null}function er(){let e=0;for(const t of this)++e;return e}function tr(){return!this.node()}function nr(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],s=0,a=i.length,c;s<a;++s)(c=i[s])&&e.call(c,c.__data__,s,i);return this}function rr(e){return function(){this.removeAttribute(e)}}function ir(e){return function(){this.removeAttributeNS(e.space,e.local)}}function sr(e,t){return function(){this.setAttribute(e,t)}}function ar(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function or(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function cr(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function fr(e,t){var n=Ft(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?ir:rr:typeof t=="function"?n.local?cr:or:n.local?ar:sr)(n,t))}function Wt(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function lr(e){return function(){this.style.removeProperty(e)}}function ur(e,t,n){return function(){this.style.setProperty(e,t,n)}}function hr(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function dr(e,t,n){return arguments.length>1?this.each((t==null?lr:typeof t=="function"?hr:ur)(e,t,n??"")):pr(this.node(),e)}function pr(e,t){return e.style.getPropertyValue(t)||Wt(e).getComputedStyle(e,null).getPropertyValue(t)}function vr(e){return function(){delete this[e]}}function gr(e,t){return function(){this[e]=t}}function mr(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function xr(e,t){return arguments.length>1?this.each((t==null?vr:typeof t=="function"?mr:gr)(e,t)):this.node()[e]}function qt(e){return e.trim().split(/^|\s+/)}function Je(e){return e.classList||new Ut(e)}function Ut(e){this._node=e,this._names=qt(e.getAttribute("class")||"")}Ut.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Yt(e,t){for(var n=Je(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Gt(e,t){for(var n=Je(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function yr(e){return function(){Yt(this,e)}}function br(e){return function(){Gt(this,e)}}function _r(e,t){return function(){(t.apply(this,arguments)?Yt:Gt)(this,e)}}function wr(e,t){var n=qt(e+"");if(arguments.length<2){for(var r=Je(this.node()),i=-1,s=n.length;++i<s;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?_r:t?yr:br)(n,t))}function Ar(){this.textContent=""}function Sr(e){return function(){this.textContent=e}}function Cr(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function $r(e){return arguments.length?this.each(e==null?Ar:(typeof e=="function"?Cr:Sr)(e)):this.node().textContent}function Er(){this.innerHTML=""}function Rr(e){return function(){this.innerHTML=e}}function Or(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function Nr(e){return arguments.length?this.each(e==null?Er:(typeof e=="function"?Or:Rr)(e)):this.node().innerHTML}function Tr(){this.nextSibling&&this.parentNode.appendChild(this)}function kr(){return this.each(Tr)}function Dr(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ir(){return this.each(Dr)}function Mr(e){var t=typeof e=="function"?e:Pt(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function zr(){return null}function Br(e,t){var n=typeof e=="function"?e:Pt(e),r=t==null?zr:typeof t=="function"?t:Ht(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function Fr(){var e=this.parentNode;e&&e.removeChild(this)}function Pr(){return this.each(Fr)}function Hr(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Lr(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Vr(e){return this.select(e?Lr:Hr)}function Wr(e){return arguments.length?this.property("__data__",e):this.node().__data__}function qr(e){return function(t){e.call(this,t,this.__data__)}}function Ur(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function Yr(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,s;n<i;++n)s=t[n],(!e.type||s.type===e.type)&&s.name===e.name?this.removeEventListener(s.type,s.listener,s.options):t[++r]=s;++r?t.length=r:delete this.__on}}}function Gr(e,t,n){return function(){var r=this.__on,i,s=qr(t);if(r){for(var a=0,c=r.length;a<c;++a)if((i=r[a]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=s,i.options=n),i.value=t;return}}this.addEventListener(e.type,s,n),i={type:e.type,name:e.name,value:t,listener:s,options:n},r?r.push(i):this.__on=[i]}}function Xr(e,t,n){var r=Ur(e+""),i,s=r.length,a;if(arguments.length<2){var c=this.node().__on;if(c){for(var o=0,f=c.length,l;o<f;++o)for(i=0,l=c[o];i<s;++i)if((a=r[i]).type===l.type&&a.name===l.name)return l.value}return}for(c=t?Gr:Yr,i=0;i<s;++i)this.each(c(r[i],t,n));return this}function Xt(e,t,n){var r=Wt(e),i=r.CustomEvent;typeof i=="function"?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function Zr(e,t){return function(){return Xt(this,e,t)}}function Kr(e,t){return function(){return Xt(this,e,t.apply(this,arguments))}}function Jr(e,t){return this.each((typeof t=="function"?Kr:Zr)(e,t))}function*Qr(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,s=r.length,a;i<s;++i)(a=r[i])&&(yield a)}var jr=[null];function I(e,t){this._groups=e,this._parents=t}function ei(){return this}I.prototype={constructor:I,select:wn,selectAll:En,selectChild:kn,selectChildren:zn,filter:Bn,data:Wn,enter:Fn,exit:Un,join:Yn,merge:Gn,selection:ei,order:Xn,sort:Zn,call:Jn,nodes:Qn,node:jn,size:er,empty:tr,each:nr,attr:fr,style:dr,property:xr,classed:wr,text:$r,html:Nr,raise:kr,lower:Ir,append:Mr,insert:Br,remove:Pr,clone:Vr,datum:Wr,on:Xr,dispatch:Jr,[Symbol.iterator]:Qr};function ot(e){return typeof e=="string"?new I([[document.querySelector(e)]],[document.documentElement]):new I([[e]],jr)}var ct;(function(e){e[e.SVG=0]="SVG",e[e.HTML=1]="HTML"})(ct||(ct={}));var re;(function(e){e.Fit="fit",e.Extend="extend",e.FitWidth="fit_width"})(re||(re={}));function ti(e,t){let n,r;for(const i of e)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));return[n,r]}function*ni(e){for(const t of e)yield*t}function ri(e){return Array.from(ni(e))}const Zt=e=>typeof e=="number",ii=e=>typeof e=="function",si=e=>Array.isArray(e),ai=e=>e instanceof Object,Ce=e=>e.constructor.name!=="Function"&&e.constructor.name!=="Object",ft=e=>ai(e)&&!si(e)&&!ii(e)&&!Ce(e),Ue=(e,t,n=[],r=new Set)=>{if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;if(r.has(e))return!0;r.add(e);for(let i=0;i<e.length;i++)if(!Ue(e[i],t[i],n,r))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(typeof e=="object"&&e!==null&&t!==null){if(typeof t!="object")return!1;if(e===t)return!0;const i=Object.keys(e).filter(a=>!n.includes(a)),s=Object.keys(t).filter(a=>!n.includes(a));if(i.length!==s.length)return!1;if(r.has(e))return!0;r.add(e);for(const a of i)if(!Ue(e[a],t[a],n,r))return!1;return!0}return e===t},lt=e=>e.flat(),$e=(e,t=new Map)=>{if(typeof e!="object"||e===null)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof Array){const n=[];t.set(e,n);for(const r of e)n.push(t.has(r)?t.get(r):$e(r,t));return n}if(Ce(e))return e;if(e instanceof Object){const n={};t.set(e,n);const r=e;return Object.keys(e).reduce((i,s)=>(i[s]=t.has(r[s])?t.get(r[s]):$e(r[s],t),i),n),n}return e},Kt=(e,t,n=new Map)=>{if(!e||!t||e===t)return e;const r=Ce(e)?e:$e(e);return n.has(t)?n.get(t):(n.set(t,r),Object.keys(t).forEach(i=>{i==="__proto__"||i==="constructor"||(ft(e[i])&&ft(t[i])?r[i]=Kt(e[i],t[i],n):Ce(t)?r[i]=t:r[i]=$e(t[i]))}),r)};function j(e){return e.filter(t=>t&&!Zt(t))}function G(e,t,n){return Math.min(Math.max(e,t),n)}var q=[],oi=function(){return q.some(function(e){return e.activeTargets.length>0})},ci=function(){return q.some(function(e){return e.skippedTargets.length>0})},ut="ResizeObserver loop completed with undelivered notifications.",fi=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:ut}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=ut),window.dispatchEvent(e)},ie;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(ie||(ie={}));var U=function(e){return Object.freeze(e)},li=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,U(this)}return e}(),Jt=function(){function e(t,n,r,i){return this.x=t,this.y=n,this.width=r,this.height=i,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,U(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,i=t.top,s=t.right,a=t.bottom,c=t.left,o=t.width,f=t.height;return{x:n,y:r,top:i,right:s,bottom:a,left:c,width:o,height:f}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Qe=function(e){return e instanceof SVGElement&&"getBBox"in e},Qt=function(e){if(Qe(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,s=i.offsetWidth,a=i.offsetHeight;return!(s||a||e.getClientRects().length)},ht=function(e){var t;if(e instanceof Element)return!0;var n=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},ui=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},ne=typeof window<"u"?window:{},pe=new WeakMap,dt=/auto|scroll/,hi=/^tb|vertical/,di=/msie|trident/i.test(ne.navigator&&ne.navigator.userAgent),z=function(e){return parseFloat(e||"0")},X=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new li((n?t:e)||0,(n?e:t)||0)},pt=U({devicePixelContentBoxSize:X(),borderBoxSize:X(),contentBoxSize:X(),contentRect:new Jt(0,0,0,0)}),jt=function(e,t){if(t===void 0&&(t=!1),pe.has(e)&&!t)return pe.get(e);if(Qt(e))return pe.set(e,pt),pt;var n=getComputedStyle(e),r=Qe(e)&&e.ownerSVGElement&&e.getBBox(),i=!di&&n.boxSizing==="border-box",s=hi.test(n.writingMode||""),a=!r&&dt.test(n.overflowY||""),c=!r&&dt.test(n.overflowX||""),o=r?0:z(n.paddingTop),f=r?0:z(n.paddingRight),l=r?0:z(n.paddingBottom),u=r?0:z(n.paddingLeft),p=r?0:z(n.borderTopWidth),d=r?0:z(n.borderRightWidth),g=r?0:z(n.borderBottomWidth),h=r?0:z(n.borderLeftWidth),m=u+f,x=o+l,w=h+d,A=p+g,E=c?e.offsetHeight-A-e.clientHeight:0,C=a?e.offsetWidth-w-e.clientWidth:0,O=i?m+w:0,y=i?x+A:0,he=r?r.width:z(n.width)-O-C,de=r?r.height:z(n.height)-y-E,mn=he+m+C+w,xn=de+x+E+A,st=U({devicePixelContentBoxSize:X(Math.round(he*devicePixelRatio),Math.round(de*devicePixelRatio),s),borderBoxSize:X(mn,xn,s),contentBoxSize:X(he,de,s),contentRect:new Jt(u,o,he,de)});return pe.set(e,st),st},en=function(e,t,n){var r=jt(e,n),i=r.borderBoxSize,s=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case ie.DEVICE_PIXEL_CONTENT_BOX:return a;case ie.BORDER_BOX:return i;default:return s}},pi=function(){function e(t){var n=jt(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=U([n.borderBoxSize]),this.contentBoxSize=U([n.contentBoxSize]),this.devicePixelContentBoxSize=U([n.devicePixelContentBoxSize])}return e}(),tn=function(e){if(Qt(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},vi=function(){var e=1/0,t=[];q.forEach(function(a){if(a.activeTargets.length!==0){var c=[];a.activeTargets.forEach(function(f){var l=new pi(f.target),u=tn(f.target);c.push(l),f.lastReportedSize=en(f.target,f.observedBox),u<e&&(e=u)}),t.push(function(){a.callback.call(a.observer,c,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var i=r[n];i()}return e},vt=function(e){q.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(i){i.isActive()&&(tn(i.target)>e?n.activeTargets.push(i):n.skippedTargets.push(i))})})},gi=function(){var e=0;for(vt(e);oi();)e=vi(),vt(e);return ci()&&fi(),e>0},Be,nn=[],mi=function(){return nn.splice(0).forEach(function(e){return e()})},xi=function(e){if(!Be){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return mi()}).observe(n,r),Be=function(){n.textContent="".concat(t?t--:t++)}}nn.push(e),Be()},yi=function(e){xi(function(){requestAnimationFrame(e)})},be=0,bi=function(){return!!be},_i=250,wi={attributes:!0,characterData:!0,childList:!0,subtree:!0},gt=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],mt=function(e){return e===void 0&&(e=0),Date.now()+e},Fe=!1,Ai=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=_i),!Fe){Fe=!0;var r=mt(t);yi(function(){var i=!1;try{i=gi()}finally{if(Fe=!1,t=r-mt(),!bi())return;i?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,wi)};document.body?n():ne.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),gt.forEach(function(n){return ne.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),gt.forEach(function(n){return ne.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Ye=new Ai,xt=function(e){!be&&e>0&&Ye.start(),be+=e,!be&&Ye.stop()},Si=function(e){return!Qe(e)&&!ui(e)&&getComputedStyle(e).display==="inline"},Ci=function(){function e(t,n){this.target=t,this.observedBox=n||ie.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=en(this.target,this.observedBox,!0);return Si(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),$i=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),ve=new WeakMap,yt=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},ge=function(){function e(){}return e.connect=function(t,n){var r=new $i(t,n);ve.set(t,r)},e.observe=function(t,n,r){var i=ve.get(t),s=i.observationTargets.length===0;yt(i.observationTargets,n)<0&&(s&&q.push(i),i.observationTargets.push(new Ci(n,r&&r.box)),xt(1),Ye.schedule())},e.unobserve=function(t,n){var r=ve.get(t),i=yt(r.observationTargets,n),s=r.observationTargets.length===1;i>=0&&(s&&q.splice(q.indexOf(r),1),r.observationTargets.splice(i,1),xt(-1))},e.disconnect=function(t){var n=this,r=ve.get(t);r.observationTargets.slice().forEach(function(i){return n.unobserve(t,i.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),Ei=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");ge.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ht(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");ge.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!ht(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");ge.unobserve(this,t)},e.prototype.disconnect=function(){ge.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();const Ri=globalThis.ResizeObserver||Ei,rn={duration:void 0,margin:{top:0,bottom:0,left:0,right:0},padding:{top:0,bottom:0,left:0,right:0},sizing:re.Fit,width:void 0,height:void 0,svgDefs:void 0,ariaLabel:void 0};class se{constructor(t){this._defaultConfig=rn,this._isFirstRender=!0,this._renderAnimationFrameId=null,this._container=t;const n=ot(this._container);n.attr("role","figure"),this.svg=n.append("svg").style("display","block").attr("xmlns","http://www.w3.org/2000/svg").attr("height",se.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(t){var n;this.prevConfig=this.config,this.config=Kt(this._defaultConfig,t),(t==null?void 0:t.svgDefs)!==((n=this.prevConfig)===null||n===void 0?void 0:n.svgDefs)&&(this._svgDefsExternal.selectAll("*").remove(),this._svgDefsExternal.html(t.svgDefs))}_preRender(){}_render(t){const{config:n}=this;ot(this._container).attr("aria-label",n.ariaLabel),this._isFirstRender=!1}render(t=this.config.duration){const n=this.config.width||this.containerWidth,r=this.config.height||this.containerHeight;this.svg.attr("width",n).attr("height",r),this._resizeObserver||this._setUpResizeObserver(),cancelAnimationFrame(this._renderAnimationFrameId),this._renderAnimationFrameId=requestAnimationFrame(()=>{this._preRender(),this._render(t)})}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||se.DEFAULT_CONTAINER_HEIGHT}get width(){return G(this.containerWidth-this.config.margin.left-this.config.margin.right,0,Number.POSITIVE_INFINITY)}get height(){return G(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:t}=this;(t.sizing===re.Fit||t.sizing===re.FitWidth)&&this.render(0)}_setUpResizeObserver(){if(this._resizeObserver)return;const t=this._container.getBoundingClientRect();this._containerSize={width:t.width,height:t.height},this._resizeObserver=new Ri((n,r)=>{cancelAnimationFrame(this._resizeObserverAnimationFrameId),this._resizeObserverAnimationFrameId=requestAnimationFrame(()=>{const i=this._container.getBoundingClientRect(),s={width:i.width,height:i.height};!Ue(this._containerSize,s)&&s.width&&s.height&&(this._containerSize=s,this._onResize())})}),this._resizeObserver.observe(this._container)}destroy(){var t;cancelAnimationFrame(this._renderAnimationFrameId),cancelAnimationFrame(this._resizeObserverAnimationFrameId),(t=this._resizeObserver)===null||t===void 0||t.disconnect(),this.svg.remove()}}se.DEFAULT_CONTAINER_HEIGHT=300;function Oi(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Ni(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Ti=function(){function e(n){var r=this;this._insertTag=function(i){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,s),r.tags.push(i)},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 t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Ni(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var s=Oi(i);try{s.insertRule(r,s.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e}(),R="-ms-",Ee="-moz-",b="-webkit-",sn="comm",je="rule",et="decl",ki="@import",an="@keyframes",Di="@layer",Ii=Math.abs,Ie=String.fromCharCode,Mi=Object.assign;function zi(e,t){return $(e,0)^45?(((t<<2^$(e,0))<<2^$(e,1))<<2^$(e,2))<<2^$(e,3):0}function on(e){return e.trim()}function Bi(e,t){return(e=t.exec(e))?e[0]:e}function _(e,t,n){return e.replace(t,n)}function Ge(e,t){return e.indexOf(t)}function $(e,t){return e.charCodeAt(t)|0}function ae(e,t,n){return e.slice(t,n)}function B(e){return e.length}function tt(e){return e.length}function me(e,t){return t.push(e),e}function Fi(e,t){return e.map(t).join("")}var Me=1,J=1,cn=0,T=0,S=0,Q="";function ze(e,t,n,r,i,s,a){return{value:e,root:t,parent:n,type:r,props:i,children:s,line:Me,column:J,length:a,return:""}}function ee(e,t){return Mi(ze("",null,null,"",null,null,0),e,{length:-e.length},t)}function Pi(){return S}function Hi(){return S=T>0?$(Q,--T):0,J--,S===10&&(J=1,Me--),S}function D(){return S=T<cn?$(Q,T++):0,J++,S===10&&(J=1,Me++),S}function F(){return $(Q,T)}function _e(){return T}function le(e,t){return ae(Q,e,t)}function oe(e){switch(e){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 fn(e){return Me=J=1,cn=B(Q=e),T=0,[]}function ln(e){return Q="",e}function we(e){return on(le(T-1,Xe(e===91?e+2:e===40?e+1:e)))}function Li(e){for(;(S=F())&&S<33;)D();return oe(e)>2||oe(S)>3?"":" "}function Vi(e,t){for(;--t&&D()&&!(S<48||S>102||S>57&&S<65||S>70&&S<97););return le(e,_e()+(t<6&&F()==32&&D()==32))}function Xe(e){for(;D();)switch(S){case e:return T;case 34:case 39:e!==34&&e!==39&&Xe(S);break;case 40:e===41&&Xe(e);break;case 92:D();break}return T}function Wi(e,t){for(;D()&&e+S!==57;)if(e+S===84&&F()===47)break;return"/*"+le(t,T-1)+"*"+Ie(e===47?e:D())}function qi(e){for(;!oe(F());)D();return le(e,T)}function Ui(e){return ln(Ae("",null,null,null,[""],e=fn(e),0,[0],e))}function Ae(e,t,n,r,i,s,a,c,o){for(var f=0,l=0,u=a,p=0,d=0,g=0,h=1,m=1,x=1,w=0,A="",E=i,C=s,O=r,y=A;m;)switch(g=w,w=D()){case 40:if(g!=108&&$(y,u-1)==58){Ge(y+=_(we(w),"&","&\f"),"&\f")!=-1&&(x=-1);break}case 34:case 39:case 91:y+=we(w);break;case 9:case 10:case 13:case 32:y+=Li(g);break;case 92:y+=Vi(_e()-1,7);continue;case 47:switch(F()){case 42:case 47:me(Yi(Wi(D(),_e()),t,n),o);break;default:y+="/"}break;case 123*h:c[f++]=B(y)*x;case 125*h:case 59:case 0:switch(w){case 0:case 125:m=0;case 59+l:x==-1&&(y=_(y,/\f/g,"")),d>0&&B(y)-u&&me(d>32?_t(y+";",r,n,u-1):_t(_(y," ","")+";",r,n,u-2),o);break;case 59:y+=";";default:if(me(O=bt(y,t,n,f,l,i,c,A,E=[],C=[],u),s),w===123)if(l===0)Ae(y,t,O,O,E,s,u,c,C);else switch(p===99&&$(y,3)===110?100:p){case 100:case 108:case 109:case 115:Ae(e,O,O,r&&me(bt(e,O,O,0,0,i,c,A,i,E=[],u),C),i,C,u,c,r?E:C);break;default:Ae(y,O,O,O,[""],C,0,c,C)}}f=l=d=0,h=x=1,A=y="",u=a;break;case 58:u=1+B(y),d=g;default:if(h<1){if(w==123)--h;else if(w==125&&h++==0&&Hi()==125)continue}switch(y+=Ie(w),w*h){case 38:x=l>0?1:(y+="\f",-1);break;case 44:c[f++]=(B(y)-1)*x,x=1;break;case 64:F()===45&&(y+=we(D())),p=F(),l=u=B(A=y+=qi(_e())),w++;break;case 45:g===45&&B(y)==2&&(h=0)}}return s}function bt(e,t,n,r,i,s,a,c,o,f,l){for(var u=i-1,p=i===0?s:[""],d=tt(p),g=0,h=0,m=0;g<r;++g)for(var x=0,w=ae(e,u+1,u=Ii(h=a[g])),A=e;x<d;++x)(A=on(h>0?p[x]+" "+w:_(w,/&\f/g,p[x])))&&(o[m++]=A);return ze(e,t,n,i===0?je:c,o,f,l)}function Yi(e,t,n){return ze(e,t,n,sn,Ie(Pi()),ae(e,2,-2),0)}function _t(e,t,n,r){return ze(e,t,n,et,ae(e,0,r),ae(e,r+1,-1),r)}function Z(e,t){for(var n="",r=tt(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function Gi(e,t,n,r){switch(e.type){case Di:if(e.children.length)break;case ki:case et:return e.return=e.return||e.value;case sn:return"";case an:return e.return=e.value+"{"+Z(e.children,r)+"}";case je:e.value=e.props.join(",")}return B(n=Z(e.children,r))?e.return=e.value+"{"+n+"}":""}function Xi(e){var t=tt(e);return function(n,r,i,s){for(var a="",c=0;c<t;c++)a+=e[c](n,r,i,s)||"";return a}}function Zi(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ki(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Ji=function(t,n,r){for(var i=0,s=0;i=s,s=F(),i===38&&s===12&&(n[r]=1),!oe(s);)D();return le(t,T)},Qi=function(t,n){var r=-1,i=44;do switch(oe(i)){case 0:i===38&&F()===12&&(n[r]=1),t[r]+=Ji(T-1,n,r);break;case 2:t[r]+=we(i);break;case 4:if(i===44){t[++r]=F()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Ie(i)}while(i=D());return t},ji=function(t,n){return ln(Qi(fn(t),n))},wt=new WeakMap,es=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!wt.get(r))&&!i){wt.set(t,!0);for(var s=[],a=ji(n,s),c=r.props,o=0,f=0;o<a.length;o++)for(var l=0;l<c.length;l++,f++)t.props[f]=s[o]?a[o].replace(/&\f/g,c[l]):c[l]+" "+a[o]}}},ts=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function un(e,t){switch(zi(e,t)){case 5103:return b+"print-"+e+e;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 b+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return b+e+Ee+e+R+e+e;case 6828:case 4268:return b+e+R+e+e;case 6165:return b+e+R+"flex-"+e+e;case 5187:return b+e+_(e,/(\w+).+(:[^]+)/,b+"box-$1$2"+R+"flex-$1$2")+e;case 5443:return b+e+R+"flex-item-"+_(e,/flex-|-self/,"")+e;case 4675:return b+e+R+"flex-line-pack"+_(e,/align-content|flex-|-self/,"")+e;case 5548:return b+e+R+_(e,"shrink","negative")+e;case 5292:return b+e+R+_(e,"basis","preferred-size")+e;case 6060:return b+"box-"+_(e,"-grow","")+b+e+R+_(e,"grow","positive")+e;case 4554:return b+_(e,/([^-])(transform)/g,"$1"+b+"$2")+e;case 6187:return _(_(_(e,/(zoom-|grab)/,b+"$1"),/(image-set)/,b+"$1"),e,"")+e;case 5495:case 3959:return _(e,/(image-set\([^]*)/,b+"$1$`$1");case 4968:return _(_(e,/(.+:)(flex-)?(.*)/,b+"box-pack:$3"+R+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+b+e+e;case 4095:case 3583:case 4068:case 2532:return _(e,/(.+)-inline(.+)/,b+"$1$2")+e;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(B(e)-1-t>6)switch($(e,t+1)){case 109:if($(e,t+4)!==45)break;case 102:return _(e,/(.+:)(.+)-([^]+)/,"$1"+b+"$2-$3$1"+Ee+($(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ge(e,"stretch")?un(_(e,"stretch","fill-available"),t)+e:e}break;case 4949:if($(e,t+1)!==115)break;case 6444:switch($(e,B(e)-3-(~Ge(e,"!important")&&10))){case 107:return _(e,":",":"+b)+e;case 101:return _(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+b+($(e,14)===45?"inline-":"")+"box$3$1"+b+"$2$3$1"+R+"$2box$3")+e}break;case 5936:switch($(e,t+11)){case 114:return b+e+R+_(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return b+e+R+_(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return b+e+R+_(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return b+e+R+e+e}return e}var ns=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case et:t.return=un(t.value,t.length);break;case an:return Z([ee(t,{value:_(t.value,"@","@"+b)})],i);case je:if(t.length)return Fi(t.props,function(s){switch(Bi(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Z([ee(t,{props:[_(s,/:(read-\w+)/,":"+Ee+"$1")]})],i);case"::placeholder":return Z([ee(t,{props:[_(s,/:(plac\w+)/,":"+b+"input-$1")]}),ee(t,{props:[_(s,/:(plac\w+)/,":"+Ee+"$1")]}),ee(t,{props:[_(s,/:(plac\w+)/,R+"input-$1")]})],i)}return""})}},rs=[ns],is=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(h){var m=h.getAttribute("data-emotion");m.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var i=t.stylisPlugins||rs,s={},a,c=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(h){for(var m=h.getAttribute("data-emotion").split(" "),x=1;x<m.length;x++)s[m[x]]=!0;c.push(h)});var o,f=[es,ts];{var l,u=[Gi,Zi(function(h){l.insert(h)})],p=Xi(f.concat(i,u)),d=function(m){return Z(Ui(m),p)};o=function(m,x,w,A){l=w,d(m?m+"{"+x.styles+"}":x.styles),A&&(g.inserted[x.name]=!0)}}var g={key:n,sheet:new Ti({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:o};return g.sheet.hydrate(c),g};function ss(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var as={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},os=/[A-Z]|^ms/g,cs=/_EMO_([^_]+?)_([^]*?)_EMO_/g,hn=function(t){return t.charCodeAt(1)===45},At=function(t){return t!=null&&typeof t!="boolean"},Pe=Ki(function(e){return hn(e)?e:e.replace(os,"-$&").toLowerCase()}),St=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(cs,function(r,i,s){return L={name:i,styles:s,next:L},i})}return as[t]!==1&&!hn(t)&&typeof n=="number"&&n!==0?n+"px":n};function Re(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return L={name:i.name,styles:i.styles,next:L},i.name;var s=n;if(s.styles!==void 0){var a=s.next;if(a!==void 0)for(;a!==void 0;)L={name:a.name,styles:a.styles,next:L},a=a.next;var c=s.styles+";";return c}return fs(e,t,n)}}var o=n;if(t==null)return o;var f=t[o];return f!==void 0?f:o}function fs(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Re(e,t,n[i])+";";else for(var s in n){var a=n[s];if(typeof a!="object"){var c=a;t!=null&&t[c]!==void 0?r+=s+"{"+t[c]+"}":At(c)&&(r+=Pe(s)+":"+St(s,c)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var o=0;o<a.length;o++)At(a[o])&&(r+=Pe(s)+":"+St(s,a[o])+";");else{var f=Re(e,t,a);switch(s){case"animation":case"animationName":{r+=Pe(s)+":"+f+";";break}default:r+=s+"{"+f+"}"}}}return r}var Ct=/label:\s*([^\s;{]+)\s*(;|$)/g,L;function He(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";L=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,i+=Re(n,t,s);else{var a=s;i+=a[0]}for(var c=1;c<e.length;c++)if(i+=Re(n,t,e[c]),r){var o=s;i+=o[c]}Ct.lastIndex=0;for(var f="",l;(l=Ct.exec(i))!==null;)f+="-"+l[1];var u=ss(i)+f;return{name:u,styles:i,next:L}}function dn(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var ls=function(t,n,r){var i=t.key+"-"+n.name;t.registered[i]===void 0&&(t.registered[i]=n.styles)},us=function(t,n,r){ls(t,n);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+i:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function $t(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Et(e,t,n){var r=[],i=dn(e,r,n);return r.length<2?n:i+t(r)}var hs=function(t){var n=is(t);n.sheet.speedy=function(c){this.isSpeedy=c},n.compat=!0;var r=function(){for(var o=arguments.length,f=new Array(o),l=0;l<o;l++)f[l]=arguments[l];var u=He(f,n.registered,void 0);return us(n,u),n.key+"-"+u.name},i=function(){for(var o=arguments.length,f=new Array(o),l=0;l<o;l++)f[l]=arguments[l];var u=He(f,n.registered),p="animation-"+u.name;return $t(n,{name:u.name,styles:"@keyframes "+p+"{"+u.styles+"}"}),p},s=function(){for(var o=arguments.length,f=new Array(o),l=0;l<o;l++)f[l]=arguments[l];var u=He(f,n.registered);$t(n,u)},a=function(){for(var o=arguments.length,f=new Array(o),l=0;l<o;l++)f[l]=arguments[l];return Et(n.registered,r,ds(f))};return{css:r,cx:a,injectGlobal:s,keyframes:i,hydrate:function(o){o.forEach(function(f){n.inserted[f]=!0})},flush:function(){n.registered={},n.inserted={},n.sheet.flush()},sheet:n.sheet,cache:n,getRegisteredStyles:dn.bind(null,n.registered),merge:Et.bind(null,n.registered,r)}},ds=function e(t){for(var n="",r=0;r<t.length;r++){var i=t[r];if(i!=null){var s=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))s=e(i);else{s="";for(var a in i)i[a]&&a&&(s&&(s+=" "),s+=a)}break}default:s=i}s&&(n&&(n+=" "),n+=s)}}return n},pn=hs({key:"css"}),ps=pn.injectGlobal,vs=pn.css,Le,Rt;function gs(){return Rt||(Rt=1,Le=function(t,n){n||(n=[0,""]),t=String(t);var r=parseFloat(t,10);return n[0]=r,n[1]=t.match(/[\d.\-\+]*\s*(.*)/)[1]||"",n}),Le}var Ve,Ot;function ms(){if(Ot)return Ve;Ot=1;var e=gs();Ve=i;var t=r("in",document.body);function n(s,a){var c=e(getComputedStyle(s).getPropertyValue(a));return c[0]*i(c[1],s)}function r(s,a){var c=document.createElement("div");c.style.height="128"+s,a.appendChild(c);var o=n(c,"height")/128;return a.removeChild(c),o}function i(s,a){if(!s)return null;switch(a=a||document.body,s=(s+""||"px").trim().toLowerCase(),(a===window||a===document)&&(a=document.body),s){case"%":return a.clientHeight/100;case"ch":case"ex":return r(s,a);case"em":return n(a,"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 t;case"cm":return t/2.54;case"mm":return t/25.4;case"pt":return t/72;case"pc":return t/6;case"px":return 1}var c=e(s);if(!isNaN(c[0])&&c[1]){var o=i(c[1],a);return typeof o=="number"?c[0]*o:null}return null}return Ve}ms();function xs(){const e=()=>Math.floor((1+crypto.getRandomValues(new Uint32Array(1))[0])*65536).toString(16).substring(1);return`${e()+e()}-${e()}-${e()}-${e()}-${e()}${e()}${e()}`}function nt(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function vn(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ue(){}var ce=.7,Oe=1/ce,K="\\s*([+-]?\\d+)\\s*",fe="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",P="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ys=/^#([0-9a-f]{3,8})$/,bs=new RegExp(`^rgb\\(${K},${K},${K}\\)$`),_s=new RegExp(`^rgb\\(${P},${P},${P}\\)$`),ws=new RegExp(`^rgba\\(${K},${K},${K},${fe}\\)$`),As=new RegExp(`^rgba\\(${P},${P},${P},${fe}\\)$`),Ss=new RegExp(`^hsl\\(${fe},${P},${P}\\)$`),Cs=new RegExp(`^hsla\\(${fe},${P},${P},${fe}\\)$`),Nt={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};nt(ue,rt,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Tt,formatHex:Tt,formatHex8:$s,formatHsl:Es,formatRgb:kt,toString:kt});function Tt(){return this.rgb().formatHex()}function $s(){return this.rgb().formatHex8()}function Es(){return gn(this).formatHsl()}function kt(){return this.rgb().formatRgb()}function rt(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ys.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Dt(t):n===3?new N(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?xe(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?xe(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=bs.exec(e))?new N(t[1],t[2],t[3],1):(t=_s.exec(e))?new N(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=ws.exec(e))?xe(t[1],t[2],t[3],t[4]):(t=As.exec(e))?xe(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Ss.exec(e))?zt(t[1],t[2]/100,t[3]/100,1):(t=Cs.exec(e))?zt(t[1],t[2]/100,t[3]/100,t[4]):Nt.hasOwnProperty(e)?Dt(Nt[e]):e==="transparent"?new N(NaN,NaN,NaN,0):null}function Dt(e){return new N(e>>16&255,e>>8&255,e&255,1)}function xe(e,t,n,r){return r<=0&&(e=t=n=NaN),new N(e,t,n,r)}function Rs(e){return e instanceof ue||(e=rt(e)),e?(e=e.rgb(),new N(e.r,e.g,e.b,e.opacity)):new N}function Os(e,t,n,r){return arguments.length===1?Rs(e):new N(e,t,n,r??1)}function N(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}nt(N,Os,vn(ue,{brighter(e){return e=e==null?Oe:Math.pow(Oe,e),new N(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ce:Math.pow(ce,e),new N(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new N(Y(this.r),Y(this.g),Y(this.b),Ne(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:It,formatHex:It,formatHex8:Ns,formatRgb:Mt,toString:Mt}));function It(){return`#${W(this.r)}${W(this.g)}${W(this.b)}`}function Ns(){return`#${W(this.r)}${W(this.g)}${W(this.b)}${W((isNaN(this.opacity)?1:this.opacity)*255)}`}function Mt(){const e=Ne(this.opacity);return`${e===1?"rgb(":"rgba("}${Y(this.r)}, ${Y(this.g)}, ${Y(this.b)}${e===1?")":`, ${e})`}`}function Ne(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Y(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function W(e){return e=Y(e),(e<16?"0":"")+e.toString(16)}function zt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new M(e,t,n,r)}function gn(e){if(e instanceof M)return new M(e.h,e.s,e.l,e.opacity);if(e instanceof ue||(e=rt(e)),!e)return new M;if(e instanceof M)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),s=Math.max(t,n,r),a=NaN,c=s-i,o=(s+i)/2;return c?(t===s?a=(n-r)/c+(n<r)*6:n===s?a=(r-t)/c+2:a=(t-n)/c+4,c/=o<.5?s+i:2-s-i,a*=60):c=o>0&&o<1?0:a,new M(a,c,o,e.opacity)}function it(e,t,n,r){return arguments.length===1?gn(e):new M(e,t,n,r??1)}function M(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}nt(M,it,vn(ue,{brighter(e){return e=e==null?Oe:Math.pow(Oe,e),new M(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ce:Math.pow(ce,e),new M(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new N(We(e>=240?e-240:e+120,i,r),We(e,i,r),We(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new M(Bt(this.h),ye(this.s),ye(this.l),Ne(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 e=Ne(this.opacity);return`${e===1?"hsl(":"hsla("}${Bt(this.h)}, ${ye(this.s)*100}%, ${ye(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Bt(e){return e=(e||0)%360,e<0?e+360:e}function ye(e){return Math.max(0,Math.min(1,e||0))}function We(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const te=(globalThis==null?void 0:globalThis.UNOVIS_COLORS)||["#4D8CFD","#FF6B7E","#F4B83E","#A6CC74","#00C19A","#6859BE"],Ts=(globalThis==null?void 0:globalThis.UNOVIS_COLORS_DARK)||["#4D8CFD","#FF6B7E","#FFC16D","#A6CC74","#00C19A","#7887E0"],V=e=>`--vis-${Zt(e)?`color${e%te.length}`:e}`;function ks(e,t=.4){const n=it(e);return n.l=n.l*(1+t),n.formatHex()}function Ds(e,t=.4,n=.6){const r=it(e);return r.s=r.s*(1-n),r.l=r.l*(1-t),r.formatHex()}const Te=10,Ze=[{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"/>'}],Ke=[{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 H(e){return`vis-${`pattern-${e.svg?"fill":"marker"}`}-${e.id}`}const Is=e=>`<mask id="${H(e)}">
|
|
2
2
|
<pattern id="${e.id}" viewBox="0 0 10 10" width="${Te}" height="${Te}" patternUnits="userSpaceOnUse">
|
|
3
3
|
<rect width="100%" height="100%" fill="#fff"/>
|
|
4
4
|
${e.svg}
|
|
5
5
|
</pattern>
|
|
6
6
|
<rect x="-50%" y="-50%" width="200%" height="200%" fill="url(#${e.id})"/>
|
|
7
|
-
</mask>`,
|
|
7
|
+
</mask>`,Ms=(e,t)=>`<marker id="${H(e)}"
|
|
8
8
|
fill="var(${V(t)})"
|
|
9
9
|
markerUnits="userSpaceOnUse"
|
|
10
10
|
refX="5"
|
|
@@ -12,17 +12,17 @@
|
|
|
12
12
|
markerWidth="${Te}"
|
|
13
13
|
markerHeight="${Te}">
|
|
14
14
|
${e.marker}
|
|
15
|
-
</marker>`;function
|
|
15
|
+
</marker>`;function zs(){const e=Ze.map(Is).concat(Ke.map(Ms)).join(""),t=document.createElementNS("http://www.w3.org/2000/svg","svg");t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.style.position="fixed",t.style.zIndex="-99999999",t.innerHTML=`<defs>${e}</defs>`,document.body.appendChild(t)}typeof window<"u"&&zs();const Bs=(globalThis==null?void 0:globalThis.UNOVIS_FONT_W2H_RATIO_DEFAULT)||.5;ps`
|
|
16
16
|
:root {
|
|
17
17
|
label: vis-root-styles;
|
|
18
18
|
--vis-font-family: Inter, Arial, "Helvetica Neue", Helvetica, sans-serif;
|
|
19
|
-
--vis-font-wh-ratio: ${
|
|
19
|
+
--vis-font-wh-ratio: ${Bs};
|
|
20
20
|
--vis-color-main: var(${V(0)});
|
|
21
|
-
--vis-color-main-light: ${
|
|
22
|
-
--vis-color-main-dark: ${
|
|
21
|
+
--vis-color-main-light: ${ks(te[0])};
|
|
22
|
+
--vis-color-main-dark: ${Ds(te[0])};
|
|
23
23
|
--vis-color-grey: #2a2a2a;
|
|
24
24
|
${te.map((e,t)=>`${V(t)}: ${e};`)}
|
|
25
|
-
${
|
|
25
|
+
${Ts.map((e,t)=>`--vis-dark-color${t}: ${e};`)}
|
|
26
26
|
${Ze.map((e,t)=>`
|
|
27
27
|
--${H(e)}: url(#${H(e)});
|
|
28
28
|
--vis-pattern-fill${t}: var(--${H(e)});
|
|
@@ -49,6 +49,6 @@
|
|
|
49
49
|
}
|
|
50
50
|
`)}
|
|
51
51
|
}
|
|
52
|
-
`;class
|
|
52
|
+
`;class Fs{constructor(t){this.data=t}get data(){return this._data}set data(t){this._data=t}}var ke;(function(e){e.X="x",e.Y="y"})(ke||(ke={}));var k;(function(e){e.X="x",e.Y="y"})(k||(k={}));var De;(function(e){e.West="west",e.East="east",e.North="north",e.South="south"})(De||(De={}));const Ps=Object.assign(Object.assign({},rn),{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:De.North,preventEmptyDomain:null,scaleByDomain:!1});class Hs extends se{constructor(t,n,r){var i,s;super(t),this._defaultConfig=Ps,this.datamodel=new Fs,this.config=this._defaultConfig,this._clipPathId=xs(),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 a="saturate",c=window.location.href.replace(window.location.hash,"");this.svg.attr("class",vs`
|
|
53
53
|
--highlight-filter-id: url(${c}#${a}); // defining a css variable
|
|
54
|
-
`),this._svgDefs.append("filter").attr("id",a).attr("filterUnits","objectBoundingBox").html('<feColorMatrix type="saturate" in="SourceGraphic" values="1.35"/>'),n&&this.updateContainer(n,!0),r&&this.setData(r,!0),(this.config.xAxis||this.config.yAxis||!((i=this.components)===null||i===void 0)&&i.some(o=>o.datamodel.data))&&this.render(),(s=document.fonts)===null||s===void 0||s.ready.then(()=>{this._firstRender||this._renderAxes(0)})}get components(){return this.config.components}get width(){const t=this._getMargin();return G(this.containerWidth-t.left-t.right,0,Number.POSITIVE_INFINITY)}get height(){const t=this._getMargin();return G(this.containerHeight-t.top-t.bottom,0,Number.POSITIVE_INFINITY)}setData(t,n){var r,i,s,a;const{components:c,config:o}=this;t&&(this.datamodel.data=t,c.forEach(f=>{f.setData(t)}),(r=o.crosshair)===null||r===void 0||r.setData(t),(i=o.xAxis)===null||i===void 0||i.setData(t),(s=o.yAxis)===null||s===void 0||s.setData(t),(a=o.tooltip)===null||a===void 0||a.hide(),n||this.render())}updateContainer(t,n){super.updateContainer(t),this._removeAllChildren(),this.setData(this.datamodel.data,!0),t.xAxis&&(this.config.xAxis.config.type=ke.X,this.element.appendChild(t.xAxis.element)),t.yAxis&&(this.config.yAxis.config.type=ke.Y,this.element.appendChild(t.yAxis.element));for(const a of this.components)this.element.appendChild(a.element);const r=t.tooltip;r&&(r.hasContainer()||r.setContainer(this._container),r.setComponents(this.components));const i=t.crosshair;i&&(i.setContainer(this.svg),i.tooltip=r,this.element.appendChild(i.element));const s=t.annotations;s&&this.element.appendChild(s.element),this.element.appendChild(this._clipPath.node()),this.element.appendChild(this._svgDefs.node()),this.element.appendChild(this._svgDefsExternal.node()),n||this.render()}updateComponents(t,n){const{config:r}=this;this.components.forEach((i,s)=>{t[s]&&i.setConfig(t[s])}),this._updateScales(...this.components,r.xAxis,r.yAxis,r.crosshair),n||this.render()}update(t,n,r){r&&(this.datamodel.data=r),t&&this.updateContainer(t,!0),n&&this.updateComponents(n,!0),this.render()}_preRender(){const{config:t}=this;super._preRender(),t.autoMargin&&this._setAutoMargin();const n=j([...this.components,t.xAxis,t.yAxis,t.crosshair,t.annotations]);for(const r of n)r.setSize(this.width,this.height,this.containerWidth,this.containerHeight);this._updateScales(...this.components,t.xAxis,t.yAxis,t.crosshair)}_render(t){var n,r,i,s,a;const{config:c}=this;super._render();const o=this._getMargin();for(const u of this.components)u.g.attr("transform",`translate(${o.left},${o.top})`).style("clip-path",u.clippable?`url(#${this._clipPathId})`:null).style("-webkit-clip-path",u.clippable?`url(#${this._clipPathId})`:null),u.render(t);this._renderAxes(this._firstRender?0:t);const f=2;this._clipPath.select("rect").attr("x",-2).attr("y",-2).attr("width",this.width+2*f).attr("height",this.height+2*f),(n=c.tooltip)===null||n===void 0||n.update();const l=c.crosshair;if(l){const u=this.components.filter(h=>!h.stacked).map(h=>h.config.y),p=this.components.filter(h=>h.stacked).map(h=>h.config.y),d=(r=this.components.find(h=>h.config.baseline))===null||r===void 0?void 0:r.config,g=d==null?void 0:d.baseline;l.accessors={x:(i=this.components[0])===null||i===void 0?void 0:i.config.x,y:lt(u),yStacked:lt(p),baseline:g},l.g.attr("transform",`translate(${o.left},${o.top})`).style("clip-path",`url(#${this._clipPathId})`).style("-webkit-clip-path",`url(#${this._clipPathId})`),l.hide()}(s=c.annotations)===null||s===void 0||s.g.attr("transform",`translate(${o.left},${o.top})`),(a=c.annotations)===null||a===void 0||a.render(),this._firstRender=!1}_updateScales(...t){const n=j(t||this.components);this._setScales(...n),this._updateScalesDomain(...n),this._updateScalesRange(...n)}_setScales(...t){const{config:n}=this;t&&(n.xScale&&t.forEach(r=>r.setScale(k.X,n.xScale)),n.yScale&&t.forEach(r=>r.setScale(k.Y,n.yScale)))}_updateScalesDomain(...t){const{config:n}=this;if(!t)return;const r=t.filter(i=>!i.config.excludeFromDomainCalculation);Object.values(k).forEach(i=>{var s,a,c,o,f,l,u,p;const[d,g]=ni(ii(r.map(C=>C.getDataExtent(i,n.scaleByDomain)))),h=i===k.Y?n.yDomain:n.xDomain,m=i===k.Y?n.yDomainMinConstraint:n.xDomainMinConstraint,x=i===k.Y?n.yDomainMaxConstraint:n.xDomainMaxConstraint,w=(a=(s=h==null?void 0:h[0])!==null&&s!==void 0?s:d)!==null&&a!==void 0?a:0,A=(o=(c=h==null?void 0:h[1])!==null&&c!==void 0?c:g)!==null&&o!==void 0?o:1,E=[G(w,(f=m==null?void 0:m[0])!==null&&f!==void 0?f:Number.NEGATIVE_INFINITY,(l=m==null?void 0:m[1])!==null&&l!==void 0?l:Number.POSITIVE_INFINITY),G(A,(u=x==null?void 0:x[0])!==null&&u!==void 0?u:Number.NEGATIVE_INFINITY,(p=x==null?void 0:x[1])!==null&&p!==void 0?p:Number.POSITIVE_INFINITY)];if(E[0]===E[1]){const C=r.some(O=>{var y;return((y=O.datamodel.data)===null||y===void 0?void 0:y.length)>0});(n.preventEmptyDomain||n.preventEmptyDomain===null&&(!C||i===k.Y))&&(E[1]=E[0]+1)}t.forEach(C=>C.setScaleDomain(i,E))})}_updateScalesRange(...t){var n,r,i,s,a,c;const{config:o}=this;if(!t)return;const f=o.yDirection===De.South,l=[(n=o.padding.left)!==null&&n!==void 0?n:0,this.width-((r=o.padding.right)!==null&&r!==void 0?r:0)],u=[this.height-((i=o.padding.bottom)!==null&&i!==void 0?i:0),(s=o.padding.top)!==null&&s!==void 0?s:0];f&&u.reverse();for(const d of t)d.setSize(this.width,this.height,this.containerWidth,this.containerHeight),d.setScaleRange(k.X,(a=o.xRange)!==null&&a!==void 0?a:l),d.setScaleRange(k.Y,(c=o.yRange)!==null&&c!==void 0?c:u);const p=t.map(d=>d.bleed).reduce((d,g)=>{for(const h of Object.keys(d)){const m=h;d[m]<g[m]&&(d[m]=g[m])}return d},{top:0,bottom:0,left:0,right:0});for(const d of t)d.setScaleRange(k.X,[l[0]+p.left,l[1]-p.right]),d.setScaleRange(k.Y,f?[u[0]+p.top,u[1]-p.bottom]:[u[0]-p.bottom,u[1]+p.top])}_renderAxes(t){const{config:{xAxis:n,yAxis:r}}=this,i=this._getMargin();j([n,r]).forEach(a=>{const c=a.getOffset(i);a.g.attr("transform",`translate(${c.left},${c.top})`),a.render(t)})}_setAutoMargin(){const{config:{xAxis:t,yAxis:n}}=this,r=j([...this.components,t,n]);this._setScales(...r),this._updateScalesDomain(...r);const i=this._firstRender?2:1;for(let s=0;s<i;s+=1){const a={top:0,bottom:0,left:0,right:0};this._updateScalesRange(...r),j([t,n]).forEach(o=>{o.preRender();const f=o.getRequiredMargin();a.top<f.top&&(a.top=f.top),a.bottom<f.bottom&&(a.bottom=f.bottom),a.left<f.left&&(a.left=f.left),a.right<f.right&&(a.right=f.right)}),this._axisMargin=a}}_getMargin(){const{config:{margin:t}}=this;return{top:t.top+this._axisMargin.top,bottom:t.bottom+this._axisMargin.bottom,left:t.left+this._axisMargin.left,right:t.right+this._axisMargin.right}}destroy(){const{components:t,config:{tooltip:n,crosshair:r,annotations:i,xAxis:s,yAxis:a}}=this;super.destroy();for(const c of t)c==null||c.destroy();n==null||n.destroy(),r==null||r.destroy(),i==null||i.destroy(),s==null||s.destroy(),a==null||a.destroy()}}const Vs=Symbol("componentAccessorKey"),Ws=Symbol("tooltipAccessorKey"),qs=Symbol("crosshairAccessorKey"),Us=Symbol("axisAccessorKey"),Ys=Symbol("annotationsAccessorKey");function Gs(e){const t=v.getCurrentInstance(),n=t.attrs;return v.computed(()=>{const r={},i=(t==null?void 0:t.vnode.props)??{};return Object.keys(i).forEach(s=>{r[v.camelize(s)]=e[v.camelize(s)]}),{...r,...n}})}const Xs=v.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(e,{expose:t}){const n=e,{data:r}=v.toRefs(n),i=Gs(n),s=v.ref(),a=v.reactive({components:[],annotations:void 0,crosshair:void 0,tooltip:void 0,xAxis:void 0,yAxis:void 0}),c=v.ref();return v.watch(r,()=>{s.value&&s.value.setData(r.value,!0)}),v.watchEffect(()=>{var o;a.components.map(f=>f.config),(o=s.value)==null||o.updateContainer({...v.toRaw(i.value),...v.toRaw(a)})}),v.onMounted(()=>{c.value&&(s.value=new Ls(c.value,{...v.toRaw(a)},r.value))}),v.onUnmounted(()=>{var o;return(o=s.value)==null?void 0:o.destroy()}),v.provide(Vs,{data:r,update:o=>a.components=[...a.components,o],destroy:()=>{var o;return a.components=(o=a.components)==null?void 0:o.filter(f=>!f.isDestroyed())}}),v.provide(Us,{data:r,update:o=>a[`${o.config.type}Axis`]=o,destroy:o=>{a[`${o}Axis`]=void 0}}),v.provide(qs,{data:r,update:o=>a.crosshair=o,destroy:()=>{a.crosshair=void 0}}),v.provide(Ws,{data:r,update:o=>a.tooltip=o,destroy:()=>{a.tooltip=void 0}}),v.provide(Ys,{data:r,update:o=>a.annotations=o,destroy:()=>{a.annotations=void 0}}),t({component:s}),(o,f)=>(v.openBlock(),v.createElementBlock("div",{"data-vis-xy-container":"",ref_key:"elRef",ref:c,class:"unovis-xy-container"},[v.renderSlot(o.$slots,"default")],512))}});(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.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(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();const Zs=v.defineComponent({__name:"Area",props:{data:{},xNumTicks:{default:e=>e.data.length>24?24/4:e.data.length-1},yNumTicks:{default:e=>e.data.length>24?24/4:e.data.length-1}},setup(e){return(t,n)=>{const r=v.resolveComponent("ClientOnly");return v.openBlock(),v.createBlock(r,null,{default:v.withCtx(()=>[v.createVNode(v.unref(Xs),{height:600},{default:v.withCtx(()=>n[0]||(n[0]=[v.createTextVNode(" 123123123 ")])),_:1})]),_:1})}}});var mn=(e=>(e.Top="top",e.Bottom="bottom",e))(mn||{});const Ks=v.defineComponent({__name:"Button",props:{variant:{},size:{}},setup(e){return(t,n)=>(v.openBlock(),v.createElementBlock("button",{class:v.normalizeClass(["button",`button--${t.variant||"primary"}`,`button--${t.size||"medium"}`])},[v.renderSlot(t.$slots,"default",{},void 0,!0)],2))}}),Js=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},Qs=Js(Ks,[["__scopeId","data-v-52b6ec0c"]]);exports.Area=Zs;exports.Button=Qs;exports.PaginationPosition=mn;
|
|
54
|
+
`),this._svgDefs.append("filter").attr("id",a).attr("filterUnits","objectBoundingBox").html('<feColorMatrix type="saturate" in="SourceGraphic" values="1.35"/>'),n&&this.updateContainer(n,!0),r&&this.setData(r,!0),(this.config.xAxis||this.config.yAxis||!((i=this.components)===null||i===void 0)&&i.some(o=>o.datamodel.data))&&this.render(),(s=document.fonts)===null||s===void 0||s.ready.then(()=>{this._firstRender||this._renderAxes(0)})}get components(){return this.config.components}get width(){const t=this._getMargin();return G(this.containerWidth-t.left-t.right,0,Number.POSITIVE_INFINITY)}get height(){const t=this._getMargin();return G(this.containerHeight-t.top-t.bottom,0,Number.POSITIVE_INFINITY)}setData(t,n){var r,i,s,a;const{components:c,config:o}=this;t&&(this.datamodel.data=t,c.forEach(f=>{f.setData(t)}),(r=o.crosshair)===null||r===void 0||r.setData(t),(i=o.xAxis)===null||i===void 0||i.setData(t),(s=o.yAxis)===null||s===void 0||s.setData(t),(a=o.tooltip)===null||a===void 0||a.hide(),n||this.render())}updateContainer(t,n){super.updateContainer(t),this._removeAllChildren(),this.setData(this.datamodel.data,!0),t.xAxis&&(this.config.xAxis.config.type=ke.X,this.element.appendChild(t.xAxis.element)),t.yAxis&&(this.config.yAxis.config.type=ke.Y,this.element.appendChild(t.yAxis.element));for(const a of this.components)this.element.appendChild(a.element);const r=t.tooltip;r&&(r.hasContainer()||r.setContainer(this._container),r.setComponents(this.components));const i=t.crosshair;i&&(i.setContainer(this.svg),i.tooltip=r,this.element.appendChild(i.element));const s=t.annotations;s&&this.element.appendChild(s.element),this.element.appendChild(this._clipPath.node()),this.element.appendChild(this._svgDefs.node()),this.element.appendChild(this._svgDefsExternal.node()),n||this.render()}updateComponents(t,n){const{config:r}=this;this.components.forEach((i,s)=>{t[s]&&i.setConfig(t[s])}),this._updateScales(...this.components,r.xAxis,r.yAxis,r.crosshair),n||this.render()}update(t,n,r){r&&(this.datamodel.data=r),t&&this.updateContainer(t,!0),n&&this.updateComponents(n,!0),this.render()}_preRender(){const{config:t}=this;super._preRender(),t.autoMargin&&this._setAutoMargin();const n=j([...this.components,t.xAxis,t.yAxis,t.crosshair,t.annotations]);for(const r of n)r.setSize(this.width,this.height,this.containerWidth,this.containerHeight);this._updateScales(...this.components,t.xAxis,t.yAxis,t.crosshair)}_render(t){var n,r,i,s,a;const{config:c}=this;super._render();const o=this._getMargin();for(const u of this.components)u.g.attr("transform",`translate(${o.left},${o.top})`).style("clip-path",u.clippable?`url(#${this._clipPathId})`:null).style("-webkit-clip-path",u.clippable?`url(#${this._clipPathId})`:null),u.render(t);this._renderAxes(this._firstRender?0:t);const f=2;this._clipPath.select("rect").attr("x",-2).attr("y",-2).attr("width",this.width+2*f).attr("height",this.height+2*f),(n=c.tooltip)===null||n===void 0||n.update();const l=c.crosshair;if(l){const u=this.components.filter(h=>!h.stacked).map(h=>h.config.y),p=this.components.filter(h=>h.stacked).map(h=>h.config.y),d=(r=this.components.find(h=>h.config.baseline))===null||r===void 0?void 0:r.config,g=d==null?void 0:d.baseline;l.accessors={x:(i=this.components[0])===null||i===void 0?void 0:i.config.x,y:lt(u),yStacked:lt(p),baseline:g},l.g.attr("transform",`translate(${o.left},${o.top})`).style("clip-path",`url(#${this._clipPathId})`).style("-webkit-clip-path",`url(#${this._clipPathId})`),l.hide()}(s=c.annotations)===null||s===void 0||s.g.attr("transform",`translate(${o.left},${o.top})`),(a=c.annotations)===null||a===void 0||a.render(),this._firstRender=!1}_updateScales(...t){const n=j(t||this.components);this._setScales(...n),this._updateScalesDomain(...n),this._updateScalesRange(...n)}_setScales(...t){const{config:n}=this;t&&(n.xScale&&t.forEach(r=>r.setScale(k.X,n.xScale)),n.yScale&&t.forEach(r=>r.setScale(k.Y,n.yScale)))}_updateScalesDomain(...t){const{config:n}=this;if(!t)return;const r=t.filter(i=>!i.config.excludeFromDomainCalculation);Object.values(k).forEach(i=>{var s,a,c,o,f,l,u,p;const[d,g]=ti(ri(r.map(C=>C.getDataExtent(i,n.scaleByDomain)))),h=i===k.Y?n.yDomain:n.xDomain,m=i===k.Y?n.yDomainMinConstraint:n.xDomainMinConstraint,x=i===k.Y?n.yDomainMaxConstraint:n.xDomainMaxConstraint,w=(a=(s=h==null?void 0:h[0])!==null&&s!==void 0?s:d)!==null&&a!==void 0?a:0,A=(o=(c=h==null?void 0:h[1])!==null&&c!==void 0?c:g)!==null&&o!==void 0?o:1,E=[G(w,(f=m==null?void 0:m[0])!==null&&f!==void 0?f:Number.NEGATIVE_INFINITY,(l=m==null?void 0:m[1])!==null&&l!==void 0?l:Number.POSITIVE_INFINITY),G(A,(u=x==null?void 0:x[0])!==null&&u!==void 0?u:Number.NEGATIVE_INFINITY,(p=x==null?void 0:x[1])!==null&&p!==void 0?p:Number.POSITIVE_INFINITY)];if(E[0]===E[1]){const C=r.some(O=>{var y;return((y=O.datamodel.data)===null||y===void 0?void 0:y.length)>0});(n.preventEmptyDomain||n.preventEmptyDomain===null&&(!C||i===k.Y))&&(E[1]=E[0]+1)}t.forEach(C=>C.setScaleDomain(i,E))})}_updateScalesRange(...t){var n,r,i,s,a,c;const{config:o}=this;if(!t)return;const f=o.yDirection===De.South,l=[(n=o.padding.left)!==null&&n!==void 0?n:0,this.width-((r=o.padding.right)!==null&&r!==void 0?r:0)],u=[this.height-((i=o.padding.bottom)!==null&&i!==void 0?i:0),(s=o.padding.top)!==null&&s!==void 0?s:0];f&&u.reverse();for(const d of t)d.setSize(this.width,this.height,this.containerWidth,this.containerHeight),d.setScaleRange(k.X,(a=o.xRange)!==null&&a!==void 0?a:l),d.setScaleRange(k.Y,(c=o.yRange)!==null&&c!==void 0?c:u);const p=t.map(d=>d.bleed).reduce((d,g)=>{for(const h of Object.keys(d)){const m=h;d[m]<g[m]&&(d[m]=g[m])}return d},{top:0,bottom:0,left:0,right:0});for(const d of t)d.setScaleRange(k.X,[l[0]+p.left,l[1]-p.right]),d.setScaleRange(k.Y,f?[u[0]+p.top,u[1]-p.bottom]:[u[0]-p.bottom,u[1]+p.top])}_renderAxes(t){const{config:{xAxis:n,yAxis:r}}=this,i=this._getMargin();j([n,r]).forEach(a=>{const c=a.getOffset(i);a.g.attr("transform",`translate(${c.left},${c.top})`),a.render(t)})}_setAutoMargin(){const{config:{xAxis:t,yAxis:n}}=this,r=j([...this.components,t,n]);this._setScales(...r),this._updateScalesDomain(...r);const i=this._firstRender?2:1;for(let s=0;s<i;s+=1){const a={top:0,bottom:0,left:0,right:0};this._updateScalesRange(...r),j([t,n]).forEach(o=>{o.preRender();const f=o.getRequiredMargin();a.top<f.top&&(a.top=f.top),a.bottom<f.bottom&&(a.bottom=f.bottom),a.left<f.left&&(a.left=f.left),a.right<f.right&&(a.right=f.right)}),this._axisMargin=a}}_getMargin(){const{config:{margin:t}}=this;return{top:t.top+this._axisMargin.top,bottom:t.bottom+this._axisMargin.bottom,left:t.left+this._axisMargin.left,right:t.right+this._axisMargin.right}}destroy(){const{components:t,config:{tooltip:n,crosshair:r,annotations:i,xAxis:s,yAxis:a}}=this;super.destroy();for(const c of t)c==null||c.destroy();n==null||n.destroy(),r==null||r.destroy(),i==null||i.destroy(),s==null||s.destroy(),a==null||a.destroy()}}const Ls=Symbol("componentAccessorKey"),Vs=Symbol("tooltipAccessorKey"),Ws=Symbol("crosshairAccessorKey"),qs=Symbol("axisAccessorKey"),Us=Symbol("annotationsAccessorKey");function Ys(e){const t=v.getCurrentInstance(),n=t.attrs;return v.computed(()=>{const r={},i=(t==null?void 0:t.vnode.props)??{};return Object.keys(i).forEach(s=>{r[v.camelize(s)]=e[v.camelize(s)]}),{...r,...n}})}const Gs=v.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(e,{expose:t}){const n=e,{data:r}=v.toRefs(n),i=Ys(n),s=v.ref(),a=v.reactive({components:[],annotations:void 0,crosshair:void 0,tooltip:void 0,xAxis:void 0,yAxis:void 0}),c=v.ref();return v.watch(r,()=>{s.value&&s.value.setData(r.value,!0)}),v.watchEffect(()=>{var o;a.components.map(f=>f.config),(o=s.value)==null||o.updateContainer({...v.toRaw(i.value),...v.toRaw(a)})}),v.onMounted(()=>{c.value&&(s.value=new Hs(c.value,{...v.toRaw(a)},r.value))}),v.onUnmounted(()=>{var o;return(o=s.value)==null?void 0:o.destroy()}),v.provide(Ls,{data:r,update:o=>a.components=[...a.components,o],destroy:()=>{var o;return a.components=(o=a.components)==null?void 0:o.filter(f=>!f.isDestroyed())}}),v.provide(qs,{data:r,update:o=>a[`${o.config.type}Axis`]=o,destroy:o=>{a[`${o}Axis`]=void 0}}),v.provide(Ws,{data:r,update:o=>a.crosshair=o,destroy:()=>{a.crosshair=void 0}}),v.provide(Vs,{data:r,update:o=>a.tooltip=o,destroy:()=>{a.tooltip=void 0}}),v.provide(Us,{data:r,update:o=>a.annotations=o,destroy:()=>{a.annotations=void 0}}),t({component:s}),(o,f)=>(v.openBlock(),v.createElementBlock("div",{"data-vis-xy-container":"",ref_key:"elRef",ref:c,class:"unovis-xy-container"},[v.renderSlot(o.$slots,"default")],512))}});(function(){try{if(typeof document<"u"){var e=document.createElement("style");e.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(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();const Xs=v.defineComponent({__name:"Area",props:{data:{},xNumTicks:{default:e=>e.data.length>24?24/4:e.data.length-1},yNumTicks:{default:e=>e.data.length>24?24/4:e.data.length-1}},setup(e){return(t,n)=>{const r=v.resolveComponent("ClientOnly");return v.openBlock(),v.createBlock(r,null,{default:v.withCtx(()=>[v.createVNode(v.unref(Gs),{height:600},{default:v.withCtx(()=>n[0]||(n[0]=[v.createTextVNode(" 123123123 ")])),_:1})]),_:1})}}}),Zs=v.defineComponent({__name:"Button",props:{variant:{},size:{}},setup(e){return(t,n)=>(v.openBlock(),v.createElementBlock("button",{class:v.normalizeClass(["button",`button--${t.variant||"primary"}`,`button--${t.size||"medium"}`])},[v.renderSlot(t.$slots,"default",{},void 0,!0)],2))}}),Ks=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},Js=Ks(Zs,[["__scopeId","data-v-52b6ec0c"]]);exports.Area=Xs;exports.Button=Js;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -2705,7 +2705,7 @@ const va = /* @__PURE__ */ Qe({
|
|
|
2705
2705
|
console.error("vite-plugin-css-injected-by-js", t);
|
|
2706
2706
|
}
|
|
2707
2707
|
})();
|
|
2708
|
-
const
|
|
2708
|
+
const ya = /* @__PURE__ */ Qe({
|
|
2709
2709
|
__name: "Area",
|
|
2710
2710
|
props: {
|
|
2711
2711
|
data: {},
|
|
@@ -2728,9 +2728,7 @@ const ba = /* @__PURE__ */ Qe({
|
|
|
2728
2728
|
});
|
|
2729
2729
|
};
|
|
2730
2730
|
}
|
|
2731
|
-
})
|
|
2732
|
-
var ga = /* @__PURE__ */ ((e) => (e.Top = "top", e.Bottom = "bottom", e))(ga || {});
|
|
2733
|
-
const ma = /* @__PURE__ */ Qe({
|
|
2731
|
+
}), ga = /* @__PURE__ */ Qe({
|
|
2734
2732
|
__name: "Button",
|
|
2735
2733
|
props: {
|
|
2736
2734
|
variant: {},
|
|
@@ -2747,14 +2745,13 @@ const ma = /* @__PURE__ */ Qe({
|
|
|
2747
2745
|
Ut(t.$slots, "default", {}, void 0, !0)
|
|
2748
2746
|
], 2));
|
|
2749
2747
|
}
|
|
2750
|
-
}),
|
|
2748
|
+
}), ma = (e, t) => {
|
|
2751
2749
|
const n = e.__vccOpts || e;
|
|
2752
2750
|
for (const [r, i] of t)
|
|
2753
2751
|
n[r] = i;
|
|
2754
2752
|
return n;
|
|
2755
|
-
},
|
|
2753
|
+
}, ba = /* @__PURE__ */ ma(ga, [["__scopeId", "data-v-52b6ec0c"]]);
|
|
2756
2754
|
export {
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
ga as PaginationPosition
|
|
2755
|
+
ya as Area,
|
|
2756
|
+
ba as Button
|
|
2760
2757
|
};
|