@jmfederico/pi-web 1.202610.0 → 1.202610.1
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/README.md +1 -1
- package/dist/cli.js +19 -4
- package/dist/cli.js.map +1 -1
- package/dist/client/assets/{index-_1GwJfSs.js → index-CBjDnBIN.js} +277 -275
- package/dist/client/index.html +1 -1
- package/dist/pi-packages/captains-log/dist/browser/index.js +25 -23
- package/dist/pi-packages/captains-log/package.json +2 -2
- package/dist/pi-web-plugins/files/browser/pi-web-plugin.js +37 -35
- package/dist/pi-web-plugins/mermaid/browser/mermaid-engine.js +2 -2
- package/dist/pi-web-plugins/updates/pi-web-plugin.js +1 -1
- package/dist/pi-web-plugins/updates/updatesLogic.js +6 -5
- package/dist/piWebUpdate.js +405 -0
- package/dist/piWebUpdate.js.map +1 -0
- package/dist/piWebVersionReport.js +43 -1
- package/dist/piWebVersionReport.js.map +1 -1
- package/dist/server/piWebStatus.js +19 -25
- package/dist/server/piWebStatus.js.map +1 -1
- package/dist/server/sessions/askUserTool.js +2 -0
- package/dist/server/sessions/askUserTool.js.map +1 -1
- package/dist/server/sessions/builtinExtensionFactories.js +13 -0
- package/dist/server/sessions/builtinExtensionFactories.js.map +1 -0
- package/dist/server/sessions/globalProviderPolicy.js +24 -3
- package/dist/server/sessions/globalProviderPolicy.js.map +1 -1
- package/dist/server/sessions/piSessionService.js +24 -5
- package/dist/server/sessions/piSessionService.js.map +1 -1
- package/dist/server/sessions/spawnSubsessionTool.js +2 -0
- package/dist/server/sessions/spawnSubsessionTool.js.map +1 -1
- package/dist/server/sessions/transcriptMarkdown.js +48 -0
- package/dist/server/sessions/transcriptMarkdown.js.map +1 -0
- package/dist/server/sessions/transcriptMessages.js +3 -0
- package/dist/server/sessions/transcriptMessages.js.map +1 -1
- package/docs/config.md +2 -0
- package/docs/plugins.md +6 -0
- package/examples/session-bridge-plugin/README.md +1 -1
- package/examples/session-bridge-plugin/package.json +2 -2
- package/package.json +7 -7
|
@@ -380,7 +380,7 @@ l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
380
380
|
|
|
381
381
|
${t}
|
|
382
382
|
`},`getStyles`),Ine=p((e,t)=>{t!==void 0&&(Gs[e]=t)},`addStylesForDiagram`),Lne=Fne,Ks={},m(Ks,{clear:()=>Zs,getAccDescription:()=>tc,getAccTitle:()=>$s,getDiagramTitle:()=>rc,setAccDescription:()=>ec,setAccTitle:()=>Qs,setDiagramTitle:()=>nc}),qs=``,Js=``,Ys=``,Xs=p(e=>Ms(e,hs()),`sanitizeText`),Zs=p(()=>{qs=``,Ys=``,Js=``},`clear`),Qs=p(e=>{qs=Xs(e).replace(/^\s+/g,``)},`setAccTitle`),$s=p(()=>qs,`getAccTitle`),ec=p(e=>{Ys=Xs(e).replace(/\n\s+/g,`
|
|
383
|
-
`)},`setAccDescription`),tc=p(()=>Ys,`getAccDescription`),nc=p(e=>{Js=Xs(e)},`setDiagramTitle`),rc=p(()=>Js,`getDiagramTitle`),ic=y,Rne=b,Z=hs,ac=ms,oc=os,sc=p(e=>Ms(e,Z()),`sanitizeText`),cc=Ws,zne=p(()=>Ks,`getCommonDb`),lc={},uc=p((e,t,n)=>{lc[e]&&ic.warn(`Diagram with id ${e} already registered. Overwriting.`),lc[e]=t,n&&Os(e,n),Ine(e,t.styles),t.injectUtils?.(ic,Rne,Z,sc,cc,zne(),()=>{})},`registerDiagram`),dc=p(e=>{if(e in lc)return lc[e];throw new Bne(e)},`getDiagram`),Bne=class extends Error{static{p(this,`DiagramNotFoundError`)}constructor(e){super(`Diagram ${e} not found.`)}}}));function pc(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}var mc=o((()=>{}));function Vne(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}var Hne=o((()=>{}));function hc(e){let t,n,r;e.length===2?(t=e===pc||e===Vne?e:Une,n=e,r=e):(t=pc,n=(t,n)=>pc(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<0?i=t+1:a=t}while(i<a)}return i}function a(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<=0?i=t+1:a=t}while(i<a)}return i}function o(e,t,n=0,a=e.length){let o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function Une(){return 0}var Wne=o((()=>{mc(),Hne()}));function Gne(e){return e===null?NaN:+e}var Kne=o((()=>{})),gc,qne,Jne=o((()=>{mc(),Wne(),Kne(),gc=hc(pc),qne=gc.right,gc.left,hc(Gne).center}));function Yne({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function Xne({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Zne({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Qne(e){return typeof e==`object`&&e?e.valueOf():e}var _c,$ne=o((()=>{_c=class extends Map{constructor(e,t=Qne){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(Yne(this,e))}has(e){return super.has(Yne(this,e))}set(e,t){return super.set(Xne(this,e),t)}delete(e){return super.delete(Zne(this,e))}}}));function vc(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=tre?10:a>=nre?5:a>=rre?2:1,s,l,u;return i<0?(u=10**-i/o,s=Math.round(e*u),l=Math.round(t*u),s/u<e&&++s,l/u>t&&--l,u=-u):(u=10**i*o,s=Math.round(e/u),l=Math.round(t/u),s*u<e&&++s,l*u>t&&--l),l<s&&.5<=n&&n<2?vc(e,t,n*2):[s,l,u]}function ere(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?vc(t,e,n):vc(e,t,n);if(!(a>=i))return[];let s=a-i+1,l=Array(s);if(r){if(o<0)for(let e=0;e<s;++e)l[e]=(a-e)/-o;else for(let e=0;e<s;++e)l[e]=(a-e)*o}else if(o<0)for(let e=0;e<s;++e)l[e]=(i+e)/-o;else for(let e=0;e<s;++e)l[e]=(i+e)*o;return l}function yc(e,t,n){return t=+t,e=+e,n=+n,vc(e,t,n)[2]}function bc(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?yc(t,e,n):yc(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}var tre,nre,rre,ire=o((()=>{tre=Math.sqrt(50),nre=Math.sqrt(10),rre=Math.sqrt(2)}));function are(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}var ore=o((()=>{}));function sre(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}var cre=o((()=>{}));function lre(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=Array(i);++r<i;)a[r]=e+r*n;return a}var ure=o((()=>{})),xc=o((()=>{Jne(),mc(),Wne(),Hne(),$ne(),ire(),ore(),cre(),Kne(),ure()}));function dre(e){return e}var fre=o((()=>{}));function pre(e){return`translate(`+e+`,0)`}function mre(e){return`translate(0,`+e+`)`}function hre(e){return t=>+e(t)}function gre(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function _re(){return!this.__axis}function Sc(e,t){var n=[],r=null,i=null,a=6,o=6,s=3,l=typeof window<`u`&&window.devicePixelRatio>1?0:.5,u=e===Cc||e===Ec?-1:1,d=e===Ec||e===wc?`x`:`y`,f=e===Cc||e===Tc?pre:mre;function p(p){var m=r??(t.ticks?t.ticks.apply(t,n):t.domain()),h=i??(t.tickFormat?t.tickFormat.apply(t,n):dre),g=Math.max(a,0)+s,_=t.range(),v=+_[0]+l,y=+_[_.length-1]+l,b=(t.bandwidth?gre:hre)(t.copy(),l),x=p.selection?p.selection():p,S=x.selectAll(`.domain`).data([null]),C=x.selectAll(`.tick`).data(m,t).order(),w=C.exit(),T=C.enter().append(`g`).attr(`class`,`tick`),E=C.select(`line`),D=C.select(`text`);S=S.merge(S.enter().insert(`path`,`.tick`).attr(`class`,`domain`).attr(`stroke`,`currentColor`)),C=C.merge(T),E=E.merge(T.append(`line`).attr(`stroke`,`currentColor`).attr(d+`2`,u*a)),D=D.merge(T.append(`text`).attr(`fill`,`currentColor`).attr(d,u*g).attr(`dy`,e===Cc?`0em`:e===Tc?`0.71em`:`0.32em`)),p!==x&&(S=S.transition(p),C=C.transition(p),E=E.transition(p),D=D.transition(p),w=w.transition(p).attr(`opacity`,Dc).attr(`transform`,function(e){return isFinite(e=b(e))?f(e+l):this.getAttribute(`transform`)}),T.attr(`opacity`,Dc).attr(`transform`,function(e){var t=this.parentNode.__axis;return f((t&&isFinite(t=t(e))?t:b(e))+l)})),w.remove(),S.attr(`d`,e===Ec||e===wc?o?`M`+u*o+`,`+v+`H`+l+`V`+y+`H`+u*o:`M`+l+`,`+v+`V`+y:o?`M`+v+`,`+u*o+`V`+l+`H`+y+`V`+u*o:`M`+v+`,`+l+`H`+y),C.attr(`opacity`,1).attr(`transform`,function(e){return f(b(e)+l)}),E.attr(d+`2`,u*a),D.attr(d,u*g).text(h),x.filter(_re).attr(`fill`,`none`).attr(`font-size`,10).attr(`font-family`,`sans-serif`).attr(`text-anchor`,e===wc?`start`:e===Ec?`end`:`middle`),x.each(function(){this.__axis=b})}return p.scale=function(e){return arguments.length?(t=e,p):t},p.ticks=function(){return n=Array.from(arguments),p},p.tickArguments=function(e){return arguments.length?(n=e==null?[]:Array.from(e),p):n.slice()},p.tickValues=function(e){return arguments.length?(r=e==null?null:Array.from(e),p):r&&r.slice()},p.tickFormat=function(e){return arguments.length?(i=e,p):i},p.tickSize=function(e){return arguments.length?(a=o=+e,p):a},p.tickSizeInner=function(e){return arguments.length?(a=+e,p):a},p.tickSizeOuter=function(e){return arguments.length?(o=+e,p):o},p.tickPadding=function(e){return arguments.length?(s=+e,p):s},p.offset=function(e){return arguments.length?(l=+e,p):l},p}function vre(e){return Sc(Cc,e)}function yre(e){return Sc(Tc,e)}var Cc,wc,Tc,Ec,Dc,bre=o((()=>{fre(),Cc=1,wc=2,Tc=3,Ec=4,Dc=1e-6})),xre=o((()=>{bre()}));function Oc(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new kc(n)}function kc(e){this._=e}function Sre(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}function Cre(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function Ac(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=jc,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var jc,wre=o((()=>{jc={value:()=>{}},kc.prototype=Oc.prototype={constructor:kc,on:function(e,t){var n=this._,r=Sre(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=Cre(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=Ac(n[i],e.name,t);else if(t==null)for(i in n)n[i]=Ac(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new kc(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}}})),Mc=o((()=>{wre()})),Nc,Pc,Fc=o((()=>{Nc=`http://www.w3.org/1999/xhtml`,Pc={svg:`http://www.w3.org/2000/svg`,xhtml:Nc,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`}}));function Ic(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),Pc.hasOwnProperty(t)?{space:Pc[t],local:e}:e}var Lc=o((()=>{Fc()}));function Tre(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function Ere(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Rc(e){var t=Ic(e);return(t.local?Ere:Tre)(t)}var zc=o((()=>{Lc(),Fc()}));function Dre(){}function Bc(e){return e==null?Dre:function(){return this.querySelector(e)}}var Vc=o((()=>{}));function Ore(e){typeof e!=`function`&&(e=Bc(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),l,u,d=0;d<o;++d)(l=a[d])&&(u=e.call(l,l.__data__,d,a))&&(`__data__`in l&&(u.__data__=l.__data__),s[d]=u);return new Xc(r,this._parents)}var kre=o((()=>{$c(),Vc()}));function Are(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}var Hc=o((()=>{}));function jre(){return[]}function Uc(e){return e==null?jre:function(){return this.querySelectorAll(e)}}var Wc=o((()=>{}));function Mre(e){return function(){return Are(e.apply(this,arguments))}}function Nre(e){e=typeof e==`function`?Mre(e):Uc(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,l,u=0;u<s;++u)(l=o[u])&&(r.push(e.call(l,l.__data__,u,o)),i.push(l));return new Xc(r,i)}var Pre=o((()=>{$c(),Hc(),Wc()}));function Fre(e){return function(){return this.matches(e)}}function Ire(e){return function(t){return t.matches(e)}}var Gc=o((()=>{}));function Lre(e){return function(){return Bre.call(this.children,e)}}function Rre(){return this.firstElementChild}function zre(e){return this.select(e==null?Rre:Lre(typeof e==`function`?e:Ire(e)))}var Bre,Vre=o((()=>{Gc(),Bre=Array.prototype.find}));function Hre(){return Array.from(this.children)}function Ure(e){return function(){return Gre.call(this.children,e)}}function Wre(e){return this.selectAll(e==null?Hre:Ure(typeof e==`function`?e:Ire(e)))}var Gre,Kre=o((()=>{Gc(),Gre=Array.prototype.filter}));function qre(e){typeof e!=`function`&&(e=Fre(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],l,u=0;u<o;++u)(l=a[u])&&e.call(l,l.__data__,u,a)&&s.push(l);return new Xc(r,this._parents)}var Jre=o((()=>{$c(),Gc()}));function Yre(e){return Array(e.length)}var Xre=o((()=>{}));function Zre(){return new Xc(this._enter||this._groups.map(Yre),this._parents)}function Kc(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}var Qre=o((()=>{Xre(),$c(),Kc.prototype={constructor:Kc,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 $re(e){return function(){return e}}var eie=o((()=>{}));function tie(e,t,n,r,i,a){for(var o=0,s,l=t.length,u=a.length;o<u;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new Kc(e,a[o]);for(;o<l;++o)(s=t[o])&&(i[o]=s)}function nie(e,t,n,r,i,a,o){var s,l,u=new Map,d=t.length,f=a.length,p=Array(d),m;for(s=0;s<d;++s)(l=t[s])&&(p[s]=m=o.call(l,l.__data__,s,t)+``,u.has(m)?i[s]=l:u.set(m,l));for(s=0;s<f;++s)m=o.call(e,a[s],s,a)+``,(l=u.get(m))?(r[s]=l,l.__data__=a[s],u.delete(m)):n[s]=new Kc(e,a[s]);for(s=0;s<d;++s)(l=t[s])&&u.get(p[s])===l&&(i[s]=l)}function rie(e){return e.__data__}function iie(e,t){if(!arguments.length)return Array.from(this,rie);var n=t?nie:tie,r=this._parents,i=this._groups;typeof e!=`function`&&(e=$re(e));for(var a=i.length,o=Array(a),s=Array(a),l=Array(a),u=0;u<a;++u){var d=r[u],f=i[u],p=f.length,m=aie(e.call(d,d&&d.__data__,u,r)),h=m.length,g=s[u]=Array(h),_=o[u]=Array(h);n(d,f,g,_,l[u]=Array(p),m,t);for(var v=0,y=0,b,x;v<h;++v)if(b=g[v]){for(v>=y&&(y=v+1);!(x=_[y])&&++y<h;);b._next=x||null}}return o=new Xc(o,r),o._enter=s,o._exit=l,o}function aie(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}var oie=o((()=>{$c(),Qre(),eie()}));function sie(){return new Xc(this._exit||this._groups.map(Yre),this._parents)}var cie=o((()=>{Xre(),$c()}));function lie(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}var uie=o((()=>{}));function die(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),l=0;l<o;++l)for(var u=n[l],d=r[l],f=u.length,p=s[l]=Array(f),m,h=0;h<f;++h)(m=u[h]||d[h])&&(p[h]=m);for(;l<i;++l)s[l]=n[l];return new Xc(s,this._parents)}var fie=o((()=>{$c()}));function pie(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}var mie=o((()=>{}));function hie(e){e||=gie;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,l=i[a]=Array(s),u,d=0;d<s;++d)(u=o[d])&&(l[d]=u);l.sort(t)}return new Xc(i,this._parents).order()}function gie(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}var _ie=o((()=>{$c()}));function vie(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}var yie=o((()=>{}));function bie(){return Array.from(this)}var xie=o((()=>{}));function Sie(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}var Cie=o((()=>{}));function wie(){let e=0;for(let t of this)++e;return e}var Tie=o((()=>{}));function Eie(){return!this.node()}var Die=o((()=>{}));function Oie(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}var kie=o((()=>{}));function Aie(e){return function(){this.removeAttribute(e)}}function jie(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Mie(e,t){return function(){this.setAttribute(e,t)}}function Nie(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Pie(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Fie(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 Iie(e,t){var n=Ic(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?jie:Aie:typeof t==`function`?n.local?Fie:Pie:n.local?Nie:Mie)(n,t))}var Lie=o((()=>{Lc()}));function Rie(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}var qc=o((()=>{}));function zie(e){return function(){this.style.removeProperty(e)}}function Bie(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Vie(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Hie(e,t,n){return arguments.length>1?this.each((t==null?zie:typeof t==`function`?Vie:Bie)(e,t,n??``)):Jc(this.node(),e)}function Jc(e,t){return e.style.getPropertyValue(t)||Rie(e).getComputedStyle(e,null).getPropertyValue(t)}var Uie=o((()=>{qc()}));function Wie(e){return function(){delete this[e]}}function Gie(e,t){return function(){this[e]=t}}function Kie(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function qie(e,t){return arguments.length>1?this.each((t==null?Wie:typeof t==`function`?Kie:Gie)(e,t)):this.node()[e]}var Jie=o((()=>{}));function Yie(e){return e.trim().split(/^|\s+/)}function Yc(e){return e.classList||new Xie(e)}function Xie(e){this._node=e,this._names=Yie(e.getAttribute(`class`)||``)}function Zie(e,t){for(var n=Yc(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Qie(e,t){for(var n=Yc(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function $ie(e){return function(){Zie(this,e)}}function eae(e){return function(){Qie(this,e)}}function tae(e,t){return function(){(t.apply(this,arguments)?Zie:Qie)(this,e)}}function nae(e,t){var n=Yie(e+``);if(arguments.length<2){for(var r=Yc(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?tae:t?$ie:eae)(n,t))}var rae=o((()=>{Xie.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}}}));function iae(){this.textContent=``}function aae(e){return function(){this.textContent=e}}function oae(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function sae(e){return arguments.length?this.each(e==null?iae:(typeof e==`function`?oae:aae)(e)):this.node().textContent}var cae=o((()=>{}));function lae(){this.innerHTML=``}function uae(e){return function(){this.innerHTML=e}}function dae(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function fae(e){return arguments.length?this.each(e==null?lae:(typeof e==`function`?dae:uae)(e)):this.node().innerHTML}var pae=o((()=>{}));function mae(){this.nextSibling&&this.parentNode.appendChild(this)}function hae(){return this.each(mae)}var gae=o((()=>{}));function _ae(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function vae(){return this.each(_ae)}var yae=o((()=>{}));function bae(e){var t=typeof e==`function`?e:Rc(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}var xae=o((()=>{zc()}));function Sae(){return null}function Cae(e,t){var n=typeof e==`function`?e:Rc(e),r=t==null?Sae:typeof t==`function`?t:Bc(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}var wae=o((()=>{zc(),Vc()}));function Tae(){var e=this.parentNode;e&&e.removeChild(this)}function Eae(){return this.each(Tae)}var Dae=o((()=>{}));function Oae(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function kae(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Aae(e){return this.select(e?kae:Oae)}var jae=o((()=>{}));function Mae(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}var Nae=o((()=>{}));function Pae(e){return function(t){e.call(this,t,this.__data__)}}function Fae(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function Iae(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function Lae(e,t,n){return function(){var r=this.__on,i,a=Pae(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function Rae(e,t,n){var r=Fae(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var l=0,u=s.length,d;l<u;++l)for(i=0,d=s[l];i<a;++i)if((o=r[i]).type===d.type&&o.name===d.name)return d.value}return}for(s=t?Lae:Iae,i=0;i<a;++i)this.each(s(r[i],t,n));return this}var zae=o((()=>{}));function Bae(e,t,n){var r=Rie(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 Vae(e,t){return function(){return Bae(this,e,t)}}function Hae(e,t){return function(){return Bae(this,e,t.apply(this,arguments))}}function Uae(e,t){return this.each((typeof t==`function`?Hae:Vae)(e,t))}var Wae=o((()=>{qc()}));function*Gae(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var Kae=o((()=>{}));function Xc(e,t){this._groups=e,this._parents=t}function Zc(){return new Xc([[document.documentElement]],Qc)}function qae(){return this}var Qc,$c=o((()=>{kre(),Pre(),Vre(),Kre(),Jre(),oie(),Qre(),cie(),uie(),fie(),mie(),_ie(),yie(),xie(),Cie(),Tie(),Die(),kie(),Lie(),Uie(),Jie(),rae(),cae(),pae(),gae(),yae(),xae(),wae(),Dae(),jae(),Nae(),zae(),Wae(),Kae(),Qc=[null],Xc.prototype=Zc.prototype={constructor:Xc,select:Ore,selectAll:Nre,selectChild:zre,selectChildren:Wre,filter:qre,data:iie,enter:Zre,exit:sie,join:lie,merge:die,selection:qae,order:pie,sort:hie,call:vie,nodes:bie,node:Sie,size:wie,empty:Eie,each:Oie,attr:Iie,style:Hie,property:qie,classed:nae,text:sae,html:fae,raise:hae,lower:vae,append:bae,insert:Cae,remove:Eae,clone:Aae,datum:Mae,on:Rae,dispatch:Uae,[Symbol.iterator]:Gae}}));function el(e){return typeof e==`string`?new Xc([[document.querySelector(e)]],[document.documentElement]):new Xc([[e]],Qc)}var Jae=o((()=>{$c()})),tl=o((()=>{zc(),Jae(),Gc(),Lc(),Fc(),Hc(),$c(),Vc(),Wc(),Uie(),qc()})),Yae=o((()=>{Mc(),tl()}));function nl(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function rl(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}var il=o((()=>{}));function al(){}function Xae(){return this.rgb().formatHex()}function Zae(){return this.rgb().formatHex8()}function Qae(){return ooe(this).formatHsl()}function $ae(){return this.rgb().formatRgb()}function ol(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=loe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?eoe(t):n===3?new ll(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?sl(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?sl(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=uoe.exec(e))?new ll(t[1],t[2],t[3],1):(t=doe.exec(e))?new ll(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=foe.exec(e))?sl(t[1],t[2],t[3],t[4]):(t=poe.exec(e))?sl(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=moe.exec(e))?aoe(t[1],t[2]/100,t[3]/100,1):(t=hoe.exec(e))?aoe(t[1],t[2]/100,t[3]/100,t[4]):xl.hasOwnProperty(e)?eoe(xl[e]):e===`transparent`?new ll(NaN,NaN,NaN,0):null}function eoe(e){return new ll(e>>16&255,e>>8&255,e&255,1)}function sl(e,t,n,r){return r<=0&&(e=t=n=NaN),new ll(e,t,n,r)}function toe(e){return e instanceof al||(e=ol(e)),e?(e=e.rgb(),new ll(e.r,e.g,e.b,e.opacity)):new ll}function cl(e,t,n,r){return arguments.length===1?toe(e):new ll(e,t,n,r??1)}function ll(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function noe(){return`#${fl(this.r)}${fl(this.g)}${fl(this.b)}`}function roe(){return`#${fl(this.r)}${fl(this.g)}${fl(this.b)}${fl((isNaN(this.opacity)?1:this.opacity)*255)}`}function ioe(){let e=ul(this.opacity);return`${e===1?`rgb(`:`rgba(`}${dl(this.r)}, ${dl(this.g)}, ${dl(this.b)}${e===1?`)`:`, ${e})`}`}function ul(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function dl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function fl(e){return e=dl(e),(e<16?`0`:``)+e.toString(16)}function aoe(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new pl(e,t,n,r)}function ooe(e){if(e instanceof pl)return new pl(e.h,e.s,e.l,e.opacity);if(e instanceof al||(e=ol(e)),!e)return new pl;if(e instanceof pl)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new pl(o,s,l,e.opacity)}function soe(e,t,n,r){return arguments.length===1?ooe(e):new pl(e,t,n,r??1)}function pl(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function coe(e){return e=(e||0)%360,e<0?e+360:e}function ml(e){return Math.max(0,Math.min(1,e||0))}function hl(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var gl,_l,vl,yl,bl,loe,uoe,doe,foe,poe,moe,hoe,xl,goe=o((()=>{il(),gl=.7,_l=1/gl,vl=`\\s*([+-]?\\d+)\\s*`,yl=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,bl=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,loe=/^#([0-9a-f]{3,8})$/,uoe=RegExp(`^rgb\\(${vl},${vl},${vl}\\)$`),doe=RegExp(`^rgb\\(${bl},${bl},${bl}\\)$`),foe=RegExp(`^rgba\\(${vl},${vl},${vl},${yl}\\)$`),poe=RegExp(`^rgba\\(${bl},${bl},${bl},${yl}\\)$`),moe=RegExp(`^hsl\\(${yl},${bl},${bl}\\)$`),hoe=RegExp(`^hsla\\(${yl},${bl},${bl},${yl}\\)$`),xl={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},nl(al,ol,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Xae,formatHex:Xae,formatHex8:Zae,formatHsl:Qae,formatRgb:$ae,toString:$ae}),nl(ll,cl,rl(al,{brighter(e){return e=e==null?_l:_l**+e,new ll(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?gl:gl**+e,new ll(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ll(dl(this.r),dl(this.g),dl(this.b),ul(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:noe,formatHex:noe,formatHex8:roe,formatRgb:ioe,toString:ioe})),nl(pl,soe,rl(al,{brighter(e){return e=e==null?_l:_l**+e,new pl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?gl:gl**+e,new pl(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 ll(hl(e>=240?e-240:e+120,i,r),hl(e,i,r),hl(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new pl(coe(this.h),ml(this.s),ml(this.l),ul(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=ul(this.opacity);return`${e===1?`hsl(`:`hsla(`}${coe(this.h)}, ${ml(this.s)*100}%, ${ml(this.l)*100}%${e===1?`)`:`, ${e})`}`}}))})),_oe,voe,yoe=o((()=>{_oe=Math.PI/180,voe=180/Math.PI}));function boe(e){if(e instanceof Sl)return new Sl(e.l,e.a,e.b,e.opacity);if(e instanceof Ol)return Coe(e);e instanceof ll||(e=toe(e));var t=El(e.r),n=El(e.g),r=El(e.b),i=Cl((.2225045*t+.7168786*n+.0606169*r)/jl),a,o;return t===n&&n===r?a=o=i:(a=Cl((.4360747*t+.3850649*n+.1430804*r)/Al),o=Cl((.0139322*t+.0971045*n+.7141733*r)/Ml)),new Sl(116*i-16,500*(a-i),200*(i-o),e.opacity)}function xoe(e,t,n,r){return arguments.length===1?boe(e):new Sl(e,t,n,r??1)}function Sl(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Cl(e){return e>woe?e**(1/3):e/Fl+Nl}function wl(e){return e>Pl?e*e*e:Fl*(e-Nl)}function Tl(e){return 255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055)}function El(e){return(e/=255)<=.04045?e/12.92:((e+.055)/1.055)**2.4}function Soe(e){if(e instanceof Ol)return new Ol(e.h,e.c,e.l,e.opacity);if(e instanceof Sl||(e=boe(e)),e.a===0&&e.b===0)return new Ol(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*voe;return new Ol(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Dl(e,t,n,r){return arguments.length===1?Soe(e):new Ol(e,t,n,r??1)}function Ol(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Coe(e){if(isNaN(e.h))return new Sl(e.l,0,0,e.opacity);var t=e.h*_oe;return new Sl(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}var kl,Al,jl,Ml,Nl,Pl,Fl,woe,Toe=o((()=>{il(),goe(),yoe(),kl=18,Al=.96422,jl=1,Ml=.82521,Nl=4/29,Pl=6/29,Fl=3*Pl*Pl,woe=Pl*Pl*Pl,nl(Sl,xoe,rl(al,{brighter(e){return new Sl(this.l+kl*(e??1),this.a,this.b,this.opacity)},darker(e){return new Sl(this.l-kl*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=Al*wl(t),e=jl*wl(e),n=Ml*wl(n),new ll(Tl(3.1338561*t-1.6168667*e-.4906146*n),Tl(-.9787684*t+1.9161415*e+.033454*n),Tl(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),nl(Ol,Dl,rl(al,{brighter(e){return new Ol(this.h,this.c,this.l+kl*(e??1),this.opacity)},darker(e){return new Ol(this.h,this.c,this.l-kl*(e??1),this.opacity)},rgb(){return Coe(this).rgb()}}))})),Il=o((()=>{goe(),Toe(),il(),yoe()})),Ll=o((()=>{})),Eoe=o((()=>{Ll()})),Rl,Doe=o((()=>{Rl=e=>()=>e}));function Ooe(e,t){return function(n){return e+n*t}}function koe(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function Aoe(e,t){var n=t-e;return n?Ooe(e,n>180||n<-180?n-360*Math.round(n/360):n):Rl(isNaN(e)?t:e)}function joe(e){return(e=+e)==1?zl:function(t,n){return n-t?koe(t,n,e):Rl(isNaN(t)?n:t)}}function zl(e,t){var n=t-e;return n?Ooe(e,n):Rl(isNaN(e)?t:e)}var Bl=o((()=>{Doe()})),Vl,Moe=o((()=>{Il(),Ll(),Eoe(),Bl(),Vl=(function e(t){var n=joe(t);function r(e,t){var r=n((e=cl(e)).r,(t=cl(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=zl(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1)}));function Noe(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function Poe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}var Foe=o((()=>{}));function Ioe(e,t){for(var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o=0;o<r;++o)i[o]=Kl(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}var Loe=o((()=>{ql()}));function Roe(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}var zoe=o((()=>{}));function Hl(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Ul=o((()=>{}));function Boe(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=Kl(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var Voe=o((()=>{ql()}));function Hoe(e){return function(){return e}}function Uoe(e){return function(t){return e(t)+``}}function Woe(e,t){var n=Wl.lastIndex=Gl.lastIndex=0,r,i,a,o=-1,s=[],l=[];for(e+=``,t+=``;(r=Wl.exec(e))&&(i=Gl.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:Hl(r,i)})),n=Gl.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?Uoe(l[0].x):Hoe(t):(t=l.length,function(e){for(var n=0,r;n<t;++n)s[(r=l[n]).i]=r.x(e);return s.join(``)})}var Wl,Gl,Goe=o((()=>{Ul(),Wl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Gl=new RegExp(Wl.source,`g`)}));function Kl(e,t){var n=typeof t,r;return t==null||n===`boolean`?Rl(t):(n===`number`?Hl:n===`string`?(r=ol(t))?(t=r,Vl):Woe:t instanceof ol?Vl:t instanceof Date?Roe:Poe(t)?Noe:Array.isArray(t)?Ioe:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?Boe:Hl)(e,t)}var ql=o((()=>{Il(),Moe(),Loe(),zoe(),Ul(),Voe(),Goe(),Doe(),Foe()}));function Koe(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var qoe=o((()=>{}));function Joe(e,t,n,r,i,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r<t*n&&(e=-e,t=-t,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*Jl,skewX:Math.atan(l)*Jl,scaleX:o,scaleY:s}}var Jl,Yl,Yoe=o((()=>{Jl=180/Math.PI,Yl={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}}));function Xoe(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?Yl:Joe(t.a,t.b,t.c,t.d,t.e,t.f)}function Zoe(e){return e==null||(Xl||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),Xl.setAttribute(`transform`,e),!(e=Xl.transform.baseVal.consolidate()))?Yl:(e=e.matrix,Joe(e.a,e.b,e.c,e.d,e.e,e.f))}var Xl,Qoe=o((()=>{Yoe()}));function $oe(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var l=o.push(`translate(`,null,t,null,n);s.push({i:l-4,x:Hl(e,i)},{i:l-2,x:Hl(r,a)})}else(i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:Hl(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:Hl(e,t)})}function l(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:Hl(e,n)},{i:s-2,x:Hl(t,r)})}else(n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),l(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var ese,tse,nse=o((()=>{Ul(),Qoe(),ese=$oe(Xoe,`px, `,`px)`,`deg)`),tse=$oe(Zoe,`, `,`)`,`)`)}));function rse(e){return function(t,n){var r=e((t=Dl(t)).h,(n=Dl(n)).h),i=zl(t.c,n.c),a=zl(t.l,n.l),o=zl(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=a(e),t.opacity=o(e),t+``}}}var ise,ase=o((()=>{Il(),Bl(),ise=rse(Aoe)})),Zl=o((()=>{ql(),Loe(),Ll(),Eoe(),zoe(),Bl(),Ul(),Foe(),Voe(),qoe(),Goe(),nse(),Moe(),Il(),ase()}));function Ql(){return cu||=(du(ose),uu.now()+lu)}function ose(){cu=0}function $l(){this._call=this._time=this._next=null}function sse(e,t,n){var r=new $l;return r.restart(e,t,n),r}function cse(){Ql(),++tu;for(var e=au,t;e;)(t=cu-e._time)>=0&&e._call.call(void 0,t),e=e._next;--tu}function lse(){cu=(su=uu.now())+lu,tu=nu=0;try{cse()}finally{tu=0,dse(),cu=0}}function use(){var e=uu.now(),t=e-su;t>iu&&(lu-=t,su=e)}function dse(){for(var e,t=au,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:au=n);ou=e,eu(r)}function eu(e){tu||(nu&&=clearTimeout(nu),e-cu>24?(e<1/0&&(nu=setTimeout(lse,e-uu.now()-lu)),ru&&=clearInterval(ru)):(ru||=(su=uu.now(),setInterval(use,iu)),tu=1,du(lse)))}var tu,nu,ru,iu,au,ou,su,cu,lu,uu,du,fse=o((()=>{tu=0,nu=0,ru=0,iu=1e3,su=0,cu=0,lu=0,uu=typeof performance==`object`&&performance.now?performance:Date,du=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)},$l.prototype=sse.prototype={constructor:$l,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?Ql():+n)+(t==null?0:+t),!this._next&&ou!==this&&(ou?ou._next=this:au=this,ou=this),this._call=e,this._time=n,eu()},stop:function(){this._call&&(this._call=null,this._time=1/0,eu())}}}));function pse(e,t,n){var r=new $l;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var mse=o((()=>{fse()})),fu=o((()=>{fse(),mse()}));function pu(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;hse(e,n,{name:t,index:r,group:i,on:gse,tween:_se,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function mu(e,t){var n=gu(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function hu(e,t){var n=gu(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function gu(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function hse(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=sse(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var u,d,f,p;if(n.state!==1)return l();for(u in r)if(p=r[u],p.name===n.name){if(p.state===3)return pse(o);p.state===4?(p.state=6,p.timer.stop(),p.on.call(`interrupt`,e,e.__data__,p.index,p.group),delete r[u]):+u<t&&(p.state=6,p.timer.stop(),p.on.call(`cancel`,e,e.__data__,p.index,p.group),delete r[u])}if(pse(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(f=n.tween.length),u=0,d=-1;u<f;++u)(p=n.tween[u].value.call(e,e.__data__,n.index,n.group))&&(i[++d]=p);i.length=d+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(l),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),l())}function l(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}var gse,_se,_u=o((()=>{Mc(),fu(),gse=Oc(`start`,`end`,`cancel`,`interrupt`),_se=[]}));function vse(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}var yse=o((()=>{_u()}));function bse(e){return this.each(function(){vse(this,e)})}var xse=o((()=>{yse()}));function Sse(e,t){var n,r;return function(){var i=hu(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function Cse(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=hu(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},l=0,u=i.length;l<u;++l)if(i[l].name===t){i[l]=s;break}l===u&&i.push(s)}a.tween=i}}function wse(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=gu(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?Sse:Cse)(n,e,t))}function vu(e,t,n){var r=e._id;return e.each(function(){var e=hu(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return gu(e,r).value[t]}}var yu=o((()=>{_u()}));function Tse(e,t){var n;return(typeof t==`number`?Hl:t instanceof ol?Vl:(n=ol(t))?(t=n,Vl):Woe)(e,t)}var Ese=o((()=>{Il(),Zl()}));function Dse(e){return function(){this.removeAttribute(e)}}function Ose(e){return function(){this.removeAttributeNS(e.space,e.local)}}function kse(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function Ase(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function jse(e,t,n){var r,i,a;return function(){var o,s=n(this),l;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),l=s+``,o===l?null:o===r&&l===i?a:(i=l,a=t(r=o,s)))}}function Mse(e,t,n){var r,i,a;return function(){var o,s=n(this),l;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),l=s+``,o===l?null:o===r&&l===i?a:(i=l,a=t(r=o,s)))}}function Nse(e,t){var n=Ic(e),r=n===`transform`?tse:Tse;return this.attrTween(e,typeof t==`function`?(n.local?Mse:jse)(n,r,vu(this,`attr.`+e,t)):t==null?(n.local?Ose:Dse)(n):(n.local?Ase:kse)(n,r,t))}var Pse=o((()=>{Zl(),tl(),yu(),Ese()}));function Fse(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Ise(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Lse(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Ise(e,i)),n}return i._value=t,i}function Rse(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Fse(e,i)),n}return i._value=t,i}function zse(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=Ic(e);return this.tween(n,(r.local?Lse:Rse)(r,t))}var Bse=o((()=>{tl()}));function Vse(e,t){return function(){mu(this,e).delay=+t.apply(this,arguments)}}function Hse(e,t){return t=+t,function(){mu(this,e).delay=t}}function Use(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Vse:Hse)(t,e)):gu(this.node(),t).delay}var Wse=o((()=>{_u()}));function Gse(e,t){return function(){hu(this,e).duration=+t.apply(this,arguments)}}function Kse(e,t){return t=+t,function(){hu(this,e).duration=t}}function qse(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Gse:Kse)(t,e)):gu(this.node(),t).duration}var Jse=o((()=>{_u()}));function Yse(e,t){if(typeof t!=`function`)throw Error();return function(){hu(this,e).ease=t}}function Xse(e){var t=this._id;return arguments.length?this.each(Yse(t,e)):gu(this.node(),t).ease}var Zse=o((()=>{_u()}));function Qse(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();hu(this,e).ease=n}}function $se(e){if(typeof e!=`function`)throw Error();return this.each(Qse(this._id,e))}var ece=o((()=>{_u()}));function tce(e){typeof e!=`function`&&(e=Fre(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],l,u=0;u<o;++u)(l=a[u])&&e.call(l,l.__data__,u,a)&&s.push(l);return new bu(r,this._parents,this._name,this._id)}var nce=o((()=>{tl(),Su()}));function rce(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var l=t[s],u=n[s],d=l.length,f=o[s]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;s<r;++s)o[s]=t[s];return new bu(o,this._parents,this._name,this._id)}var ice=o((()=>{Su()}));function ace(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function oce(e,t,n){var r,i,a=ace(t)?mu:hu;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function sce(e,t){var n=this._id;return arguments.length<2?gu(this.node(),n).on.on(e):this.each(oce(n,e,t))}var cce=o((()=>{_u()}));function lce(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function uce(){return this.on(`end.remove`,lce(this._id))}var dce=o((()=>{}));function fce(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=Bc(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],l=s.length,u=a[o]=Array(l),d,f,p=0;p<l;++p)(d=s[p])&&(f=e.call(d,d.__data__,p,s))&&(`__data__`in d&&(f.__data__=d.__data__),u[p]=f,pu(u[p],t,n,p,u,gu(d,n)));return new bu(a,this._parents,t,n)}var pce=o((()=>{tl(),Su(),_u()}));function mce(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=Uc(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var l=r[s],u=l.length,d,f=0;f<u;++f)if(d=l[f]){for(var p=e.call(d,d.__data__,f,l),m,h=gu(d,n),g=0,_=p.length;g<_;++g)(m=p[g])&&pu(m,t,n,g,p,h);a.push(p),o.push(d)}return new bu(a,o,t,n)}var hce=o((()=>{tl(),Su(),_u()}));function gce(){return new _ce(this._groups,this._parents)}var _ce,vce=o((()=>{tl(),_ce=Zc.prototype.constructor}));function yce(e,t){var n,r,i;return function(){var a=Jc(this,e),o=(this.style.removeProperty(e),Jc(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function bce(e){return function(){this.style.removeProperty(e)}}function xce(e,t,n){var r,i=n+``,a;return function(){var o=Jc(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function Sce(e,t,n){var r,i,a;return function(){var o=Jc(this,e),s=n(this),l=s+``;return s??(l=s=(this.style.removeProperty(e),Jc(this,e))),o===l?null:o===r&&l===i?a:(i=l,a=t(r=o,s))}}function Cce(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var l=hu(this,e),u=l.on,d=l.value[a]==null?s||=bce(t):void 0;(u!==n||i!==d)&&(r=(n=u).copy()).on(o,i=d),l.on=r}}function wce(e,t,n){var r=(e+=``)==`transform`?ese:Tse;return t==null?this.styleTween(e,yce(e,r)).on(`end.style.`+e,bce(e)):typeof t==`function`?this.styleTween(e,Sce(e,r,vu(this,`style.`+e,t))).each(Cce(this._id,e)):this.styleTween(e,xce(e,r,t),n).on(`end.style.`+e,null)}var Tce=o((()=>{Zl(),tl(),_u(),yu(),Ese()}));function Ece(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Dce(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&Ece(e,a,n)),r}return a._value=t,a}function Oce(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,Dce(e,t,n??``))}var kce=o((()=>{}));function Ace(e){return function(){this.textContent=e}}function jce(e){return function(){var t=e(this);this.textContent=t??``}}function Mce(e){return this.tween(`text`,typeof e==`function`?jce(vu(this,`text`,e)):Ace(e==null?``:e+``))}var Nce=o((()=>{yu()}));function Pce(e){return function(t){this.textContent=e.call(this,t)}}function Fce(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Pce(r)),t}return r._value=e,r}function Ice(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,Fce(e))}var Lce=o((()=>{}));function Rce(){for(var e=this._name,t=this._id,n=Hce(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,l,u=0;u<s;++u)if(l=o[u]){var d=gu(l,t);pu(l,e,n,u,o,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new bu(r,this._parents,e,n)}var zce=o((()=>{Su(),_u()}));function Bce(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},l={value:function(){--i===0&&a()}};n.each(function(){var n=hu(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),n.on=t}),i===0&&a()})}var Vce=o((()=>{_u()}));function bu(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Hce(){return++Uce}var Uce,xu,Su=o((()=>{tl(),Pse(),Bse(),Wse(),Jse(),Zse(),ece(),nce(),ice(),cce(),dce(),pce(),hce(),vce(),Tce(),kce(),Nce(),Lce(),zce(),yu(),Vce(),Uce=0,xu=Zc.prototype,bu.prototype={constructor:bu,select:fce,selectAll:mce,selectChild:xu.selectChild,selectChildren:xu.selectChildren,filter:tce,merge:rce,selection:gce,transition:Rce,call:xu.call,nodes:xu.nodes,node:xu.node,size:xu.size,empty:xu.empty,each:xu.each,on:sce,attr:Nse,attrTween:zse,style:wce,styleTween:Oce,text:Mce,textTween:Ice,remove:uce,tween:wse,delay:Use,duration:qse,ease:Xse,easeVarying:$se,end:Bce,[Symbol.iterator]:xu[Symbol.iterator]}}));function Wce(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Gce=o((()=>{})),Kce=o((()=>{Gce()}));function qce(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function Jce(e){var t,n;e instanceof bu?(t=e._id,e=e._name):(t=Hce(),(n=Yce).time=Ql(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,l,u=0;u<s;++u)(l=o[u])&&pu(l,e,t,u,o,n||qce(l,t));return new bu(r,this._parents,e,t)}var Yce,Xce=o((()=>{Su(),_u(),Kce(),fu(),Yce={time:null,delay:0,duration:250,ease:Wce}})),Zce=o((()=>{tl(),xse(),Xce(),Zc.prototype.interrupt=bse,Zc.prototype.transition=Jce})),Cu=o((()=>{Zce(),Su(),_u(),yse()}));function wu(e){return{type:e}}var Qce,$ce,ele,tle=o((()=>{Cu(),{abs:Qce,max:$ce,min:ele}=Math,[`w`,`e`].map(wu),[`n`,`s`].map(wu),[`n`,`w`,`e`,`s`,`nw`,`ne`,`sw`,`se`].map(wu)})),nle=o((()=>{tle()}));function rle(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function ile(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return rle;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var Tu,Eu,Du,ale,Ou,ole=o((()=>{Tu=Math.PI,Eu=2*Tu,Du=1e-6,ale=Eu-Du,Ou=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?rle:ile(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,l=r-t,u=a-e,d=o-t,f=u*u+d*d;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(f>Du){if(!(Math.abs(d*s-l*u)>Du)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let p=n-a,m=r-o,h=s*s+l*l,g=p*p+m*m,_=Math.sqrt(h),v=Math.sqrt(f),y=i*Math.tan((Tu-Math.acos((h+f-g)/(2*_*v)))/2),b=y/v,x=y/_;Math.abs(b-1)>Du&&this._append`L${e+b*u},${t+b*d}`,this._append`A${i},${i},0,0,${+(d*p>u*m)},${this._x1=e+x*s},${this._y1=t+x*l}`}}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),l=e+o,u=t+s,d=1^a,f=a?r-i:i-r;this._x1===null?this._append`M${l},${u}`:(Math.abs(this._x1-l)>Du||Math.abs(this._y1-u)>Du)&&this._append`L${l},${u}`,n&&(f<0&&(f=f%Eu+Eu),f>ale?this._append`A${n},${n},0,1,${d},${e-o},${t-s}A${n},${n},0,1,${d},${this._x1=l},${this._y1=u}`:f>Du&&this._append`A${n},${n},0,${+(f>=Tu)},${d},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}},Ou.prototype})),ku=o((()=>{ole()})),sle=o((()=>{ku()})),cle=o((()=>{xc()})),lle=o((()=>{})),ule=o((()=>{})),dle=o((()=>{ule()})),fle=o((()=>{})),ple=o((()=>{fle(),Mc(),fu()}));function mle(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function Au(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}var ju=o((()=>{}));function Mu(e){return e=Au(Math.abs(e)),e?e[1]:NaN}var Nu=o((()=>{ju()}));function hle(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}var gle=o((()=>{}));function _le(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var vle=o((()=>{}));function Pu(e){if(!(t=yle.exec(e)))throw Error(`invalid format: `+e);var t;return new Fu({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function Fu(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}var yle,ble=o((()=>{yle=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i,Pu.prototype=Fu.prototype,Fu.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type}}));function xle(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0)}return r>0?e.slice(0,r)+e.slice(i+1):e}var Sle=o((()=>{}));function Cle(e,t){var n=Au(e,t);if(!n)return Iu=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(Iu=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+Au(e,Math.max(0,t+a-1))[0]}var Iu,wle=o((()=>{ju()}));function Tle(e,t){var n=Au(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var Ele=o((()=>{ju()})),Lu,Dle=o((()=>{ju(),wle(),Ele(),Lu={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:mle,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Tle(e*100,t),r:Tle,s:Cle,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}}));function Ole(e){return e}var kle=o((()=>{}));function Ale(e){var t=e.grouping===void 0||e.thousands===void 0?Ole:hle(Ru.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?Ole:_le(Ru.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,l=e.nan===void 0?`NaN`:e.nan+``;function u(e,u){e=Pu(e);var d=e.fill,f=e.align,p=e.sign,m=e.symbol,h=e.zero,g=e.width,_=e.comma,v=e.precision,y=e.trim,b=e.type;b===`n`?(_=!0,b=`g`):Lu[b]||(v===void 0&&(v=12),y=!0,b=`g`),(h||d===`0`&&f===`=`)&&(h=!0,d=`0`,f=`=`);var x=(u&&u.prefix!==void 0?u.prefix:``)+(m===`$`?n:m===`#`&&/[boxX]/.test(b)?`0`+b.toLowerCase():``),S=(m===`$`?r:/[%p]/.test(b)?o:``)+(u&&u.suffix!==void 0?u.suffix:``),C=Lu[b],w=/[defgprs%]/.test(b);v=v===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v));function T(e){var n=x,r=S,o,u,m;if(b===`c`)r=C(e)+r,e=``;else{e=+e;var T=e<0||1/e<0;if(e=isNaN(e)?l:C(Math.abs(e),v),y&&(e=xle(e)),T&&+e==0&&p!==`+`&&(T=!1),n=(T?p===`(`?p:s:p===`-`||p===`(`?``:p)+n,r=(b===`s`&&!isNaN(e)&&Iu!==void 0?zu[8+Iu/3]:``)+r+(T&&p===`(`?`)`:``),w){for(o=-1,u=e.length;++o<u;)if(m=e.charCodeAt(o),48>m||m>57){r=(m===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}_&&!h&&(e=t(e,1/0));var E=n.length+e.length+r.length,D=E<g?Array(g-E+1).join(d):``;switch(_&&h&&(e=t(D+e,D.length?g-r.length:1/0),D=``),f){case`<`:e=n+e+r+D;break;case`=`:e=n+D+e+r;break;case`^`:e=D.slice(0,E=D.length>>1)+n+e+r+D.slice(E);break;default:e=D+n+e+r}return a(e)}return T.toString=function(){return e+``},T}function d(e,t){var n=Math.max(-8,Math.min(8,Math.floor(Mu(t)/3)))*3,r=10**-n,i=u((e=Pu(e),e.type=`f`,e),{suffix:zu[8+n/3]});return function(e){return i(r*e)}}return{format:u,formatPrefix:d}}var Ru,zu,jle=o((()=>{Nu(),gle(),vle(),ble(),Sle(),Dle(),wle(),kle(),Ru=Array.prototype.map,zu=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`]}));function Mle(e){return Bu=Ale(e),Vu=Bu.format,Nle=Bu.formatPrefix,Bu}var Bu,Vu,Nle,Ple=o((()=>{jle(),Mle({thousands:`,`,grouping:[3],currency:[`$`,``]})}));function Fle(e){return Math.max(0,-Mu(Math.abs(e)))}var Ile=o((()=>{Nu()}));function Lle(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Mu(t)/3)))*3-Mu(Math.abs(e)))}var Rle=o((()=>{Nu()}));function zle(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Mu(t)-Mu(e))+1}var Ble=o((()=>{Nu()})),Hu=o((()=>{Ple(),jle(),ble(),Ile(),Rle(),Ble()})),Vle=o((()=>{xc()}));function Hle(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function Ule(){return this.eachAfter(Hle)}var Wle=o((()=>{}));function Gle(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this}var Kle=o((()=>{}));function qle(e,t){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(e.call(t,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}var Jle=o((()=>{}));function Yle(e,t){for(var n=this,r=[n],i=[],a,o,s,l=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o<s;++o)r.push(a[o]);for(;n=i.pop();)e.call(t,n,++l,this);return this}var Xle=o((()=>{}));function Zle(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r}var Qle=o((()=>{}));function $le(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}var eue=o((()=>{}));function tue(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}var nue=o((()=>{}));function rue(e){for(var t=this,n=iue(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function iue(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}var aue=o((()=>{}));function oue(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}var sue=o((()=>{}));function cue(){return Array.from(this)}var lue=o((()=>{}));function uue(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}var due=o((()=>{}));function fue(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}var pue=o((()=>{}));function*mue(){var e=this,t,n=[e],r,i,a;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,a=r.length;i<a;++i)n.push(r[i]);while(n.length)}var hue=o((()=>{}));function Uu(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=vue)):t===void 0&&(t=_ue);for(var n=new Wu(e),r,i=[n],a,o,s,l;r=i.pop();)if((o=t(r.data))&&(l=(o=Array.from(o)).length))for(r.children=o,s=l-1;s>=0;--s)i.push(a=o[s]=new Wu(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(bue)}function gue(){return Uu(this).eachBefore(yue)}function _ue(e){return e.children}function vue(e){return Array.isArray(e)?e[1]:null}function yue(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function bue(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Wu(e){this.data=e,this.depth=this.height=0,this.parent=null}var xue=o((()=>{Wle(),Kle(),Jle(),Xle(),Qle(),eue(),nue(),aue(),sue(),lue(),due(),pue(),hue(),Wu.prototype=Uu.prototype={constructor:Wu,count:Ule,each:Gle,eachAfter:Yle,eachBefore:qle,find:Zle,sum:$le,sort:tue,path:rue,ancestors:oue,descendants:cue,leaves:uue,links:fue,copy:gue,[Symbol.iterator]:mue}}));function Sue(e){if(typeof e!=`function`)throw Error();return e}var Cue=o((()=>{}));function Gu(){return 0}function Ku(e){return function(){return e}}var wue=o((()=>{}));function Tue(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}var Eue=o((()=>{}));function Due(e,t,n,r,i){for(var a=e.children,o,s=-1,l=a.length,u=e.value&&(r-t)/e.value;++s<l;)o=a[s],o.y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*u}var Oue=o((()=>{}));function kue(e,t,n,r,i){for(var a=e.children,o,s=-1,l=a.length,u=e.value&&(i-n)/e.value;++s<l;)o=a[s],o.x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*u}var Aue=o((()=>{}));function jue(e,t,n,r,i,a){for(var o=[],s=t.children,l,u,d=0,f=0,p=s.length,m,h,g=t.value,_,v,y,b,x,S,C;d<p;){m=i-n,h=a-r;do _=s[f++].value;while(!_&&f<p);for(v=y=_,S=Math.max(h/m,m/h)/(g*e),C=_*_*S,x=Math.max(y/C,C/v);f<p;++f){if(_+=u=s[f].value,u<v&&(v=u),u>y&&(y=u),C=_*_*S,b=Math.max(y/C,C/v),b>x){_-=u;break}x=b}o.push(l={value:_,dice:m<h,children:s.slice(d,f)}),l.dice?Due(l,n,r,i,g?r+=h*_/g:a):kue(l,n,r,g?n+=m*_/g:i,a),g-=_,d=f}return o}var Mue,Nue,Pue=o((()=>{Oue(),Aue(),Mue=(1+Math.sqrt(5))/2,Nue=(function e(t){function n(e,n,r,i,a){jue(t,e,n,r,i,a)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n})(Mue)}));function Fue(){var e=Nue,t=!1,n=1,r=1,i=[0],a=Gu,o=Gu,s=Gu,l=Gu,u=Gu;function d(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(f),i=[0],t&&e.eachBefore(Tue),e}function f(t){var n=i[t.depth],r=t.x0+n,d=t.y0+n,f=t.x1-n,p=t.y1-n;f<r&&(r=f=(r+f)/2),p<d&&(d=p=(d+p)/2),t.x0=r,t.y0=d,t.x1=f,t.y1=p,t.children&&(n=i[t.depth+1]=a(t)/2,r+=u(t)-n,d+=o(t)-n,f-=s(t)-n,p-=l(t)-n,f<r&&(r=f=(r+f)/2),p<d&&(d=p=(d+p)/2),e(t,r,d,f,p))}return d.round=function(e){return arguments.length?(t=!!e,d):t},d.size=function(e){return arguments.length?(n=+e[0],r=+e[1],d):[n,r]},d.tile=function(t){return arguments.length?(e=Sue(t),d):e},d.padding=function(e){return arguments.length?d.paddingInner(e).paddingOuter(e):d.paddingInner()},d.paddingInner=function(e){return arguments.length?(a=typeof e==`function`?e:Ku(+e),d):a},d.paddingOuter=function(e){return arguments.length?d.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):d.paddingTop()},d.paddingTop=function(e){return arguments.length?(o=typeof e==`function`?e:Ku(+e),d):o},d.paddingRight=function(e){return arguments.length?(s=typeof e==`function`?e:Ku(+e),d):s},d.paddingBottom=function(e){return arguments.length?(l=typeof e==`function`?e:Ku(+e),d):l},d.paddingLeft=function(e){return arguments.length?(u=typeof e==`function`?e:Ku(+e),d):u},d}var Iue=o((()=>{Eue(),Pue(),Cue(),wue()})),Lue=o((()=>{xue(),wue(),Eue(),Oue(),Iue(),Aue(),Pue()})),Rue=o((()=>{})),zue=o((()=>{}));function qu(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var Ju=o((()=>{}));function Yu(){var e=new _c,t=[],n=[],r=Xu;function i(i){let a=e.get(i);if(a===void 0){if(r!==Xu)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new _c;for(let r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return Yu(t,n).unknown(r)},qu.apply(i,arguments),i}var Xu,Bue=o((()=>{xc(),Ju(),Xu=Symbol(`implicit`)}));function Zu(){var e=Yu().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,l=0,u=0,d=.5;delete e.unknown;function f(){var e=t().length,f=i<r,p=f?i:r,m=f?r:i;a=(m-p)/Math.max(1,e-l+u*2),s&&(a=Math.floor(a)),p+=(m-p-a*(e-l))*d,o=a*(1-l),s&&(p=Math.round(p),o=Math.round(o));var h=lre(e).map(function(e){return p+a*e});return n(f?h.reverse():h)}return e.domain=function(e){return arguments.length?(t(e),f()):t()},e.range=function(e){return arguments.length?([r,i]=e,r=+r,i=+i,f()):[r,i]},e.rangeRound=function(e){return[r,i]=e,r=+r,i=+i,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(e){return arguments.length?(s=!!e,f()):s},e.padding=function(e){return arguments.length?(l=Math.min(1,u=+e),f()):l},e.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),f()):l},e.paddingOuter=function(e){return arguments.length?(u=+e,f()):u},e.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),f()):d},e.copy=function(){return Zu(t(),[r,i]).round(s).paddingInner(l).paddingOuter(u).align(d)},qu.apply(f(),arguments)}var Vue=o((()=>{xc(),Ju(),Bue()}));function Hue(e){return function(){return e}}var Uue=o((()=>{}));function Wue(e){return+e}var Gue=o((()=>{}));function Qu(e){return e}function $u(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Hue(isNaN(t)?NaN:.5)}function Kue(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function que(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=$u(i,r),a=n(o,a)):(r=$u(r,i),a=n(a,o)),function(e){return a(r(e))}}function Jue(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=$u(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=qne(e,t,1,r)-1;return a[n](i[n](t))}}function Yue(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Xue(){var e=ed,t=ed,n=Kl,r,i,a,o=Qu,s,l,u;function d(){var n=Math.min(e.length,t.length);return o!==Qu&&(o=Kue(e[0],e[n-1])),s=n>2?Jue:que,l=u=null,f}function f(i){return i==null||isNaN(i=+i)?a:(l||=s(e.map(r),t,n))(r(o(i)))}return f.invert=function(n){return o(i((u||=s(t,e.map(r),Hl))(n)))},f.domain=function(t){return arguments.length?(e=Array.from(t,Wue),d()):e.slice()},f.range=function(e){return arguments.length?(t=Array.from(e),d()):t.slice()},f.rangeRound=function(e){return t=Array.from(e),n=Koe,d()},f.clamp=function(e){return arguments.length?(o=e?!0:Qu,d()):o!==Qu},f.interpolate=function(e){return arguments.length?(n=e,d()):n},f.unknown=function(e){return arguments.length?(a=e,f):a},function(e,t){return r=e,i=t,d()}}function Zue(){return Xue()(Qu,Qu)}var ed,td=o((()=>{xc(),Zl(),Uue(),Gue(),ed=[0,1]}));function Que(e,t,n,r){var i=bc(e,t,n),a;switch(r=Pu(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=Lle(i,o))&&(r.precision=a),Nle(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=zle(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=Fle(i))&&(r.precision=a-(r.type===`%`)*2)}return Vu(r)}var $ue=o((()=>{xc(),Hu()}));function ede(e){var t=e.domain;return e.ticks=function(e){var n=t();return ere(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return Que(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],l,u,d=10;for(s<o&&(u=o,o=s,s=u,u=i,i=a,a=u);d-->0;){if(u=yc(o,s,n),u===l)return r[i]=o,r[a]=s,t(r);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function nd(){var e=Zue();return e.copy=function(){return Yue(e,nd())},qu.apply(e,arguments),ede(e)}var tde=o((()=>{xc(),td(),Ju(),$ue()}));function nde(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}var rde=o((()=>{}));function rd(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=n=>rd(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e){if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}}),n&&(i.count=(t,r)=>(id.setTime(+t),ad.setTime(+r),e(id),e(ad),Math.floor(n(id,ad))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var id,ad,od=o((()=>{id=new Date,ad=new Date})),sd,ide=o((()=>{od(),sd=rd(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e),sd.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?rd(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):sd),sd.range})),cd,ld,ud,dd,fd,pd,md,hd=o((()=>{cd=1e3,ld=cd*60,ud=ld*60,dd=ud*24,fd=dd*7,pd=dd*30,md=dd*365})),gd,ade=o((()=>{od(),hd(),gd=rd(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*cd)},(e,t)=>(t-e)/cd,e=>e.getUTCSeconds()),gd.range})),_d,vd,ode=o((()=>{od(),hd(),_d=rd(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*cd)},(e,t)=>{e.setTime(+e+t*ld)},(e,t)=>(t-e)/ld,e=>e.getMinutes()),_d.range,vd=rd(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ld)},(e,t)=>(t-e)/ld,e=>e.getUTCMinutes()),vd.range})),yd,bd,sde=o((()=>{od(),hd(),yd=rd(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*cd-e.getMinutes()*ld)},(e,t)=>{e.setTime(+e+t*ud)},(e,t)=>(t-e)/ud,e=>e.getHours()),yd.range,bd=rd(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ud)},(e,t)=>(t-e)/ud,e=>e.getUTCHours()),bd.range})),xd,Sd,Cd,cde=o((()=>{od(),hd(),xd=rd(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ld)/dd,e=>e.getDate()-1),xd.range,Sd=rd(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/dd,e=>e.getUTCDate()-1),Sd.range,Cd=rd(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/dd,e=>Math.floor(e/dd)),Cd.range}));function wd(e){return rd(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ld)/fd)}function Td(e){return rd(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/fd)}var Ed,Dd,Od,kd,Ad,jd,Md,Nd,Pd,lde,ude,Fd,dde,fde,pde=o((()=>{od(),hd(),Ed=wd(0),Dd=wd(1),Od=wd(2),kd=wd(3),Ad=wd(4),jd=wd(5),Md=wd(6),Ed.range,Dd.range,Od.range,kd.range,Ad.range,jd.range,Md.range,Nd=Td(0),Pd=Td(1),lde=Td(2),ude=Td(3),Fd=Td(4),dde=Td(5),fde=Td(6),Nd.range,Pd.range,lde.range,ude.range,Fd.range,dde.range,fde.range})),Id,Ld,mde=o((()=>{od(),Id=rd(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth()),Id.range,Ld=rd(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()),Ld.range})),Rd,zd,hde=o((()=>{od(),Rd=rd(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear()),Rd.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:rd(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),Rd.range,zd=rd(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear()),zd.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:rd(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),zd.range}));function gde(e,t,n,r,i,a){let o=[[gd,1,cd],[gd,5,5*cd],[gd,15,15*cd],[gd,30,30*cd],[a,1,ld],[a,5,5*ld],[a,15,15*ld],[a,30,30*ld],[i,1,ud],[i,3,3*ud],[i,6,6*ud],[i,12,12*ud],[r,1,dd],[r,2,2*dd],[n,1,fd],[t,1,pd],[t,3,3*pd],[e,1,md]];function s(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&typeof n.range==`function`?n:l(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a}function l(t,n,r){let i=Math.abs(n-t)/r,a=hc(([,,e])=>e).right(o,i);if(a===o.length)return e.every(bc(t/md,n/md,r));if(a===0)return sd.every(Math.max(bc(t,n,r),1));let[s,l]=o[i/o[a-1][2]<o[a][2]/i?a-1:a];return s.every(l)}return[s,l]}var _de,vde,yde,bde,xde=o((()=>{xc(),hd(),ide(),ade(),ode(),sde(),cde(),pde(),mde(),hde(),[_de,vde]=gde(zd,Ld,Nd,Cd,bd,vd),[yde,bde]=gde(Rd,Id,Ed,xd,yd,_d)})),Bd=o((()=>{od(),ide(),ade(),ode(),sde(),cde(),pde(),mde(),hde(),xde()}));function Vd(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Hd(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Ud(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Sde(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,u=Gd(i),d=Kd(i),f=Gd(a),p=Kd(a),m=Gd(o),h=Kd(o),g=Gd(s),_=Kd(s),v=Gd(l),y=Kd(l),b={a:P,A:F,b:I,B:L,c:null,d:Wde,e:Wde,f:Yde,g:ofe,G:cfe,H:Gde,I:Kde,j:qde,L:Jde,m:Xde,M:Zde,p:R,q:ee,Q:jfe,s:Mfe,S:Qde,u:$de,U:efe,V:nfe,w:rfe,W:ife,x:null,X:null,y:afe,Y:sfe,Z:lfe,"%":Afe},x={a:z,A:B,b:te,B:ne,c:null,d:ufe,e:ufe,f:hfe,g:Efe,G:Ofe,H:dfe,I:ffe,j:pfe,L:mfe,m:gfe,M:_fe,p:re,q:ie,Q:jfe,s:Mfe,S:vfe,u:yfe,U:bfe,V:Sfe,w:Cfe,W:wfe,x:null,X:null,y:Tfe,Y:Dfe,Z:kfe,"%":Afe},S={a:D,A:O,b:k,B:A,c:j,d:Pde,e:Pde,f:Bde,g:Ade,G:kde,H:Ide,I:Ide,j:Fde,L:zde,m:Nde,M:Lde,p:E,q:Mde,Q:Hde,s:Ude,S:Rde,u:Tde,U:Ede,V:Dde,w:wde,W:Ode,x:M,X:N,y:Ade,Y:kde,Z:jde,"%":Vde};b.x=C(n,b),b.X=C(r,b),b.c=C(t,b),x.x=C(n,x),x.X=C(r,x),x.c=C(t,x);function C(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,l,u;for(n instanceof Date||(n=new Date(+n));++i<o;)e.charCodeAt(i)===37&&(r.push(e.slice(a,i)),(l=qd[s=e.charAt(++i)])==null?l=s===`e`?` `:`0`:s=e.charAt(++i),(u=t[s])&&(s=u(n,l)),r.push(s),a=i+1);return r.push(e.slice(a,i)),r.join(``)}}function w(e,t){return function(n){var r=Ud(1900,void 0,1),i=T(r,e,n+=``,0),a,o;if(i!=n.length)return null;if(`Q`in r)return new Date(r.Q);if(`s`in r)return new Date(r.s*1e3+(`L`in r?r.L:0));if(t&&!(`Z`in r)&&(r.Z=0),`p`in r&&(r.H=r.H%12+r.p*12),r.m===void 0&&(r.m=`q`in r?r.q:0),`V`in r){if(r.V<1||r.V>53)return null;`w`in r||(r.w=1),`Z`in r?(a=Hd(Ud(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?Pd.ceil(a):Pd(a),a=Sd.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=Vd(Ud(r.y,0,1)),o=a.getDay(),a=o>4||o===0?Dd.ceil(a):Dd(a),a=xd.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else(`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),o=`Z`in r?Hd(Ud(r.y,0,1)).getUTCDay():Vd(Ud(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,Hd(r)):Vd(r)}}function T(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,l;i<a;){if(r>=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),l=S[s in qd?t.charAt(i++):s],!l||(r=l(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function E(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=d.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=m.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1}function k(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1}function A(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=_.get(r[0].toLowerCase()),n+r[0].length):-1}function j(e,n,r){return T(e,t,n,r)}function M(e,t,r){return T(e,n,t,r)}function N(e,t,n){return T(e,r,t,n)}function P(e){return o[e.getDay()]}function F(e){return a[e.getDay()]}function I(e){return l[e.getMonth()]}function L(e){return s[e.getMonth()]}function R(e){return i[+(e.getHours()>=12)]}function ee(e){return 1+~~(e.getMonth()/3)}function z(e){return o[e.getUTCDay()]}function B(e){return a[e.getUTCDay()]}function te(e){return l[e.getUTCMonth()]}function ne(e){return s[e.getUTCMonth()]}function re(e){return i[+(e.getUTCHours()>=12)]}function ie(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=C(e+=``,b);return t.toString=function(){return e},t},parse:function(e){var t=w(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=C(e+=``,x);return t.toString=function(){return e},t},utcParse:function(e){var t=w(e+=``,!0);return t.toString=function(){return e},t}}}function Wd(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function Cde(e){return e.replace(Pfe,`\\$&`)}function Gd(e){return RegExp(`^(?:`+e.map(Cde).join(`|`)+`)`,`i`)}function Kd(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function wde(e,t,n){var r=Jd.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Tde(e,t,n){var r=Jd.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Ede(e,t,n){var r=Jd.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Dde(e,t,n){var r=Jd.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Ode(e,t,n){var r=Jd.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function kde(e,t,n){var r=Jd.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Ade(e,t,n){var r=Jd.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function jde(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function Mde(e,t,n){var r=Jd.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Nde(e,t,n){var r=Jd.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Pde(e,t,n){var r=Jd.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Fde(e,t,n){var r=Jd.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Ide(e,t,n){var r=Jd.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Lde(e,t,n){var r=Jd.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Rde(e,t,n){var r=Jd.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function zde(e,t,n){var r=Jd.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Bde(e,t,n){var r=Jd.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Vde(e,t,n){var r=Nfe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Hde(e,t,n){var r=Jd.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Ude(e,t,n){var r=Jd.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Wde(e,t){return Wd(e.getDate(),t,2)}function Gde(e,t){return Wd(e.getHours(),t,2)}function Kde(e,t){return Wd(e.getHours()%12||12,t,2)}function qde(e,t){return Wd(1+xd.count(Rd(e),e),t,3)}function Jde(e,t){return Wd(e.getMilliseconds(),t,3)}function Yde(e,t){return Jde(e,t)+`000`}function Xde(e,t){return Wd(e.getMonth()+1,t,2)}function Zde(e,t){return Wd(e.getMinutes(),t,2)}function Qde(e,t){return Wd(e.getSeconds(),t,2)}function $de(e){var t=e.getDay();return t===0?7:t}function efe(e,t){return Wd(Ed.count(Rd(e)-1,e),t,2)}function tfe(e){var t=e.getDay();return t>=4||t===0?Ad(e):Ad.ceil(e)}function nfe(e,t){return e=tfe(e),Wd(Ad.count(Rd(e),e)+(Rd(e).getDay()===4),t,2)}function rfe(e){return e.getDay()}function ife(e,t){return Wd(Dd.count(Rd(e)-1,e),t,2)}function afe(e,t){return Wd(e.getFullYear()%100,t,2)}function ofe(e,t){return e=tfe(e),Wd(e.getFullYear()%100,t,2)}function sfe(e,t){return Wd(e.getFullYear()%1e4,t,4)}function cfe(e,t){var n=e.getDay();return e=n>=4||n===0?Ad(e):Ad.ceil(e),Wd(e.getFullYear()%1e4,t,4)}function lfe(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+Wd(t/60|0,`0`,2)+Wd(t%60,`0`,2)}function ufe(e,t){return Wd(e.getUTCDate(),t,2)}function dfe(e,t){return Wd(e.getUTCHours(),t,2)}function ffe(e,t){return Wd(e.getUTCHours()%12||12,t,2)}function pfe(e,t){return Wd(1+Sd.count(zd(e),e),t,3)}function mfe(e,t){return Wd(e.getUTCMilliseconds(),t,3)}function hfe(e,t){return mfe(e,t)+`000`}function gfe(e,t){return Wd(e.getUTCMonth()+1,t,2)}function _fe(e,t){return Wd(e.getUTCMinutes(),t,2)}function vfe(e,t){return Wd(e.getUTCSeconds(),t,2)}function yfe(e){var t=e.getUTCDay();return t===0?7:t}function bfe(e,t){return Wd(Nd.count(zd(e)-1,e),t,2)}function xfe(e){var t=e.getUTCDay();return t>=4||t===0?Fd(e):Fd.ceil(e)}function Sfe(e,t){return e=xfe(e),Wd(Fd.count(zd(e),e)+(zd(e).getUTCDay()===4),t,2)}function Cfe(e){return e.getUTCDay()}function wfe(e,t){return Wd(Pd.count(zd(e)-1,e),t,2)}function Tfe(e,t){return Wd(e.getUTCFullYear()%100,t,2)}function Efe(e,t){return e=xfe(e),Wd(e.getUTCFullYear()%100,t,2)}function Dfe(e,t){return Wd(e.getUTCFullYear()%1e4,t,4)}function Ofe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Fd(e):Fd.ceil(e),Wd(e.getUTCFullYear()%1e4,t,4)}function kfe(){return`+0000`}function Afe(){return`%`}function jfe(e){return+e}function Mfe(e){return Math.floor(e/1e3)}var qd,Jd,Nfe,Pfe,Ffe=o((()=>{Bd(),qd={"-":``,_:` `,0:`0`},Jd=/^\s*\d+/,Nfe=/^%/,Pfe=/[\\^$*+?|[\]().{}]/g}));function Ife(e){return Yd=Sde(e),Xd=Yd.format,Lfe=Yd.parse,Rfe=Yd.utcFormat,zfe=Yd.utcParse,Yd}var Yd,Xd,Lfe,Rfe,zfe,Bfe=o((()=>{Ffe(),Ife({dateTime:`%x, %X`,date:`%-m/%-d/%Y`,time:`%-I:%M:%S %p`,periods:[`AM`,`PM`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]})})),Zd=o((()=>{Bfe(),Ffe()}));function Vfe(e){return new Date(e)}function Hfe(e){return e instanceof Date?+e:+new Date(+e)}function Ufe(e,t,n,r,i,a,o,s,l,u){var d=Zue(),f=d.invert,p=d.domain,m=u(`.%L`),h=u(`:%S`),g=u(`%I:%M`),_=u(`%I %p`),v=u(`%a %d`),y=u(`%b %d`),b=u(`%B`),x=u(`%Y`);function S(e){return(l(e)<e?m:s(e)<e?h:o(e)<e?g:a(e)<e?_:r(e)<e?i(e)<e?v:y:n(e)<e?b:x)(e)}return d.invert=function(e){return new Date(f(e))},d.domain=function(e){return arguments.length?p(Array.from(e,Hfe)):p().map(Vfe)},d.ticks=function(t){var n=p();return e(n[0],n[n.length-1],t??10)},d.tickFormat=function(e,t){return t==null?S:u(t)},d.nice=function(e){var n=p();return(!e||typeof e.range!=`function`)&&(e=t(n[0],n[n.length-1],e??10)),e?p(nde(n,e)):d},d.copy=function(){return Yue(d,Ufe(e,t,n,r,i,a,o,s,l,u))},d}function Wfe(){return qu.apply(Ufe(yde,bde,Rd,Id,Ed,xd,yd,_d,gd,Xd).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var Gfe=o((()=>{Bd(),Zd(),td(),Ju(),rde()})),Kfe=o((()=>{Vue(),tde(),Gue(),xc(),Hu(),rde(),td(),Bue(),Gfe(),Bd(),Zd(),Zl(),$ue()}));function qfe(e){for(var t=e.length/6|0,n=Array(t),r=0;r<t;)n[r]=`#`+e.slice(r*6,++r*6);return n}var Jfe=o((()=>{})),Yfe,Xfe=o((()=>{Jfe(),Yfe=qfe(`4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab`)})),Zfe=o((()=>{Jfe(),Xfe(),Zl(),Il()}));function Qd(e){return function(){return e}}var $d=o((()=>{}));function Qfe(e){return e>1?0:e<-1?sf:Math.acos(e)}function $fe(e){return e>=1?cf:e<=-1?-cf:Math.asin(e)}var ef,tf,nf,epe,rf,af,of,sf,cf,lf,uf=o((()=>{ef=Math.abs,tf=Math.atan2,nf=Math.cos,epe=Math.max,rf=Math.min,af=Math.sin,of=Math.sqrt,sf=Math.PI,cf=sf/2,lf=2*sf}));function df(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new Ou(t)}var ff=o((()=>{ku()}));function tpe(e){return e.innerRadius}function npe(e){return e.outerRadius}function rpe(e){return e.startAngle}function ipe(e){return e.endAngle}function ape(e){return e&&e.padAngle}function ope(e,t,n,r,i,a,o,s){var l=n-e,u=r-t,d=o-i,f=s-a,p=f*l-d*u;if(!(p*p<1e-12))return p=(d*(t-a)-f*(e-i))/p,[e+p*l,t+p*u]}function pf(e,t,n,r,i,a,o){var s=e-n,l=t-r,u=(o?a:-a)/of(s*s+l*l),d=u*l,f=-u*s,p=e+d,m=t+f,h=n+d,g=r+f,_=(p+h)/2,v=(m+g)/2,y=h-p,b=g-m,x=y*y+b*b,S=i-a,C=p*g-h*m,w=(b<0?-1:1)*of(epe(0,S*S*x-C*C)),T=(C*b-y*w)/x,E=(-C*y-b*w)/x,D=(C*b+y*w)/x,O=(-C*y+b*w)/x,k=T-_,A=E-v,j=D-_,M=O-v;return k*k+A*A>j*j+M*M&&(T=D,E=O),{cx:T,cy:E,x01:-d,y01:-f,x11:T*(i/S-1),y11:E*(i/S-1)}}function mf(){var e=tpe,t=npe,n=Qd(0),r=null,i=rpe,a=ipe,o=ape,s=null,l=df(u);function u(){var u,d,f=+e.apply(this,arguments),p=+t.apply(this,arguments),m=i.apply(this,arguments)-cf,h=a.apply(this,arguments)-cf,g=ef(h-m),_=h>m;if(s||=u=l(),p<f&&(d=p,p=f,f=d),!(p>1e-12))s.moveTo(0,0);else if(g>lf-1e-12)s.moveTo(p*nf(m),p*af(m)),s.arc(0,0,p,m,h,!_),f>1e-12&&(s.moveTo(f*nf(h),f*af(h)),s.arc(0,0,f,h,m,_));else{var v=m,y=h,b=m,x=h,S=g,C=g,w=o.apply(this,arguments)/2,T=w>1e-12&&(r?+r.apply(this,arguments):of(f*f+p*p)),E=rf(ef(p-f)/2,+n.apply(this,arguments)),D=E,O=E,k,A;if(T>1e-12){var j=$fe(T/f*af(w)),M=$fe(T/p*af(w));(S-=j*2)>1e-12?(j*=_?1:-1,b+=j,x-=j):(S=0,b=x=(m+h)/2),(C-=M*2)>1e-12?(M*=_?1:-1,v+=M,y-=M):(C=0,v=y=(m+h)/2)}var N=p*nf(v),P=p*af(v),F=f*nf(x),I=f*af(x);if(E>1e-12){var L=p*nf(y),R=p*af(y),ee=f*nf(b),z=f*af(b),B;if(g<sf){if(B=ope(N,P,ee,z,L,R,F,I)){var te=N-B[0],ne=P-B[1],re=L-B[0],ie=R-B[1],ae=1/af(Qfe((te*re+ne*ie)/(of(te*te+ne*ne)*of(re*re+ie*ie)))/2),oe=of(B[0]*B[0]+B[1]*B[1]);D=rf(E,(f-oe)/(ae-1)),O=rf(E,(p-oe)/(ae+1))}else D=O=0}}C>1e-12?O>1e-12?(k=pf(ee,z,N,P,p,O,_),A=pf(L,R,F,I,p,O,_),s.moveTo(k.cx+k.x01,k.cy+k.y01),O<E?s.arc(k.cx,k.cy,O,tf(k.y01,k.x01),tf(A.y01,A.x01),!_):(s.arc(k.cx,k.cy,O,tf(k.y01,k.x01),tf(k.y11,k.x11),!_),s.arc(0,0,p,tf(k.cy+k.y11,k.cx+k.x11),tf(A.cy+A.y11,A.cx+A.x11),!_),s.arc(A.cx,A.cy,O,tf(A.y11,A.x11),tf(A.y01,A.x01),!_))):(s.moveTo(N,P),s.arc(0,0,p,v,y,!_)):s.moveTo(N,P),!(f>1e-12)||!(S>1e-12)?s.lineTo(F,I):D>1e-12?(k=pf(F,I,L,R,f,-D,_),A=pf(N,P,ee,z,f,-D,_),s.lineTo(k.cx+k.x01,k.cy+k.y01),D<E?s.arc(k.cx,k.cy,D,tf(k.y01,k.x01),tf(A.y01,A.x01),!_):(s.arc(k.cx,k.cy,D,tf(k.y01,k.x01),tf(k.y11,k.x11),!_),s.arc(0,0,f,tf(k.cy+k.y11,k.cx+k.x11),tf(A.cy+A.y11,A.cx+A.x11),_),s.arc(A.cx,A.cy,D,tf(A.y11,A.x11),tf(A.y01,A.x01),!_))):s.arc(0,0,f,x,b,_)}if(s.closePath(),u)return s=null,u+``||null}return u.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-sf/2;return[nf(r)*n,af(r)*n]},u.innerRadius=function(t){return arguments.length?(e=typeof t==`function`?t:Qd(+t),u):e},u.outerRadius=function(e){return arguments.length?(t=typeof e==`function`?e:Qd(+e),u):t},u.cornerRadius=function(e){return arguments.length?(n=typeof e==`function`?e:Qd(+e),u):n},u.padRadius=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:Qd(+e),u):r},u.startAngle=function(e){return arguments.length?(i=typeof e==`function`?e:Qd(+e),u):i},u.endAngle=function(e){return arguments.length?(a=typeof e==`function`?e:Qd(+e),u):a},u.padAngle=function(e){return arguments.length?(o=typeof e==`function`?e:Qd(+e),u):o},u.context=function(e){return arguments.length?(s=e??null,u):s},u}var spe=o((()=>{$d(),uf(),ff()}));function hf(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}var gf=o((()=>{Array.prototype.slice}));function _f(e){this._context=e}function vf(e){return new _f(e)}var yf=o((()=>{_f.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}}}));function cpe(e){return e[0]}function lpe(e){return e[1]}var upe=o((()=>{}));function bf(e,t){var n=Qd(!0),r=null,i=vf,a=null,o=df(s);e=typeof e==`function`?e:e===void 0?cpe:Qd(e),t=typeof t==`function`?t:t===void 0?lpe:Qd(t);function s(s){var l,u=(s=hf(s)).length,d,f=!1,p;for(r??(a=i(p=o())),l=0;l<=u;++l)!(l<u&&n(d=s[l],l,s))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+e(d,l,s),+t(d,l,s));if(p)return a=null,p+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:Qd(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:Qd(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:Qd(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}var dpe=o((()=>{gf(),$d(),yf(),ff(),upe()}));function fpe(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}var ppe=o((()=>{}));function mpe(e){return e}var hpe=o((()=>{}));function gpe(){var e=mpe,t=fpe,n=null,r=Qd(0),i=Qd(lf),a=Qd(0);function o(o){var s,l=(o=hf(o)).length,u,d,f=0,p=Array(l),m=Array(l),h=+r.apply(this,arguments),g=Math.min(lf,Math.max(-lf,i.apply(this,arguments)-h)),_,v=Math.min(Math.abs(g)/l,a.apply(this,arguments)),y=v*(g<0?-1:1),b;for(s=0;s<l;++s)(b=m[p[s]=s]=+e(o[s],s,o))>0&&(f+=b);for(t==null?n!=null&&p.sort(function(e,t){return n(o[e],o[t])}):p.sort(function(e,n){return t(m[e],m[n])}),s=0,d=f?(g-l*y)/f:0;s<l;++s,h=_)u=p[s],b=m[u],_=h+(b>0?b*d:0)+y,m[u]={data:o[u],index:s,value:b,startAngle:h,endAngle:_,padAngle:v};return m}return o.value=function(t){return arguments.length?(e=typeof t==`function`?t:Qd(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:Qd(+e),o):r},o.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:Qd(+e),o):i},o.padAngle=function(e){return arguments.length?(a=typeof e==`function`?e:Qd(+e),o):a},o}var _pe=o((()=>{gf(),$d(),ppe(),hpe(),uf()}));function xf(e){return new Cf(e,!0)}function Sf(e){return new Cf(e,!1)}var Cf,vpe=o((()=>{Cf=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}}));function wf(){}var Tf=o((()=>{}));function Ef(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Df(e){this._context=e}function Of(e){return new Df(e)}var kf=o((()=>{Df.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ef(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ef(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}}));function Af(e){this._context=e}function ype(e){return new Af(e)}var bpe=o((()=>{Tf(),kf(),Af.prototype={areaStart:wf,areaEnd:wf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ef(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}}));function jf(e){this._context=e}function xpe(e){return new jf(e)}var Spe=o((()=>{kf(),jf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Ef(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}}));function Mf(e,t){this._basis=new Df(e),this._beta=t}var Nf,Cpe=o((()=>{kf(),Mf.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,l;++s<=n;)l=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+l*a),this._beta*t[s]+(1-this._beta)*(i+l*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}},Nf=(function e(t){function n(e){return t===1?new Df(e):new Mf(e,t)}return n.beta=function(t){return e(+t)},n})(.85)}));function Pf(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Ff(e,t){this._context=e,this._k=(1-t)/6}var If,Lf=o((()=>{Ff.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Pf(this,this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Pf(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},If=(function e(t){function n(e){return new Ff(e,t)}return n.tension=function(t){return e(+t)},n})(0)}));function Rf(e,t){this._context=e,this._k=(1-t)/6}var zf,Bf=o((()=>{Tf(),Lf(),Rf.prototype={areaStart:wf,areaEnd:wf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Pf(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},zf=(function e(t){function n(e){return new Rf(e,t)}return n.tension=function(t){return e(+t)},n})(0)}));function Vf(e,t){this._context=e,this._k=(1-t)/6}var Hf,Uf=o((()=>{Lf(),Vf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Pf(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},Hf=(function e(t){function n(e){return new Vf(e,t)}return n.tension=function(t){return e(+t)},n})(0)}));function Wf(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>1e-12){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,d=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*u+e._x1*e._l23_2a-t*e._l12_2a)/d,o=(o*u+e._y1*e._l23_2a-n*e._l12_2a)/d}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function Gf(e,t){this._context=e,this._alpha=t}var Kf,qf=o((()=>{uf(),Lf(),Gf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Wf(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},Kf=(function e(t){function n(e){return t?new Gf(e,t):new Ff(e,0)}return n.alpha=function(t){return e(+t)},n})(.5)}));function Jf(e,t){this._context=e,this._alpha=t}var Yf,wpe=o((()=>{Bf(),Tf(),qf(),Jf.prototype={areaStart:wf,areaEnd:wf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Wf(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},Yf=(function e(t){function n(e){return t?new Jf(e,t):new Rf(e,0)}return n.alpha=function(t){return e(+t)},n})(.5)}));function Xf(e,t){this._context=e,this._alpha=t}var Zf,Tpe=o((()=>{Uf(),qf(),Xf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Wf(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},Zf=(function e(t){function n(e){return t?new Xf(e,t):new Vf(e,0)}return n.alpha=function(t){return e(+t)},n})(.5)}));function Qf(e){this._context=e}function Epe(e){return new Qf(e)}var Dpe=o((()=>{Tf(),Qf.prototype={areaStart:wf,areaEnd:wf,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}}}));function $f(e){return e<0?-1:1}function ep(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return($f(a)+$f(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function tp(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function np(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function rp(e){this._context=e}function ip(e){this._context=new ap(e)}function ap(e){this._context=e}function op(e){return new rp(e)}function sp(e){return new ip(e)}var Ope=o((()=>{rp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:np(this,this._t0,tp(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,np(this,tp(this,n=ep(this,e,t)),n);break;default:np(this,this._t0,n=ep(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(ip.prototype=Object.create(rp.prototype)).point=function(e,t){rp.prototype.point.call(this,t,e)},ap.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}}}));function cp(e){this._context=e}function lp(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function up(e){return new cp(e)}var kpe=o((()=>{cp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n){if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=lp(e),i=lp(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o])}(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}}}));function dp(e,t){this._context=e,this._t=t}function fp(e){return new dp(e,.5)}function pp(e){return new dp(e,0)}function mp(e){return new dp(e,1)}var Ape=o((()=>{dp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}}})),jpe=o((()=>{spe(),gf(),$d(),yf(),dpe(),ff(),_pe(),vpe(),uf(),bpe(),Spe(),kf(),Cpe(),Bf(),Uf(),Lf(),wpe(),Tpe(),qf(),Dpe(),Ope(),kpe(),Ape()}));function hp(e,t,n){this.k=e,this.x=t,this.y=n}var gp=o((()=>{hp.prototype={constructor:hp,scale:function(e){return e===1?this:new hp(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new hp(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}},new hp(1,0,0),hp.prototype})),Mpe=o((()=>{Cu(),gp()})),Npe=o((()=>{Mpe(),gp()})),_p=o((()=>{xc(),xre(),nle(),sle(),Il(),cle(),lle(),Mc(),Yae(),ule(),Kce(),dle(),ple(),Hu(),Vle(),Lue(),Zl(),ku(),Rue(),fle(),zue(),Kfe(),Zfe(),tl(),jpe(),Bd(),Zd(),fu(),Cu(),Npe()})),vp,yp=o((()=>{fc(),h(),_p(),vp=p(e=>{let{securityLevel:t}=Z(),n=el(`body`);return t===`sandbox`&&(n=el((el(`#i${e}`).node()?.contentDocument??document).body)),n.select(`#${e}`)},`selectSvgElement`)})),bp,xp,Sp,Cp,wp,Tp,Ep,Dp,Op=o((()=>{fc(),h(),bp=p(e=>{let{handDrawnSeed:t}=Z();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},`solidStateFill`),xp=p(e=>Array.isArray(e)?e:e?e.split(`;`).map(e=>e.trim()).filter(Boolean):[],`normalizeStyleList`),Sp=p(e=>{let t=Cp([...e.cssCompiledStyles||[],...e.cssStyles||[],...xp(e.labelStyle)]);return{stylesMap:t,stylesArray:[...t]}},`compileStyles`),Cp=p(e=>{let t=new Map;return e.forEach(e=>{let[n,r]=e.split(`:`);t.set(n.trim(),r?.trim())}),t},`styles2Map`),wp=p(e=>e===`color`||e===`font-size`||e===`font-family`||e===`font-weight`||e===`font-style`||e===`text-decoration`||e===`text-align`||e===`text-transform`||e===`line-height`||e===`letter-spacing`||e===`word-spacing`||e===`text-shadow`||e===`text-overflow`||e===`white-space`||e===`word-wrap`||e===`word-break`||e===`overflow-wrap`||e===`hyphens`,`isLabelStyle`),Tp=p(e=>{let{stylesArray:t}=Sp(e),n=[],r=[],i=[],a=[];return t.forEach(e=>{let t=e[0];wp(t)?n.push(e.join(`:`)+` !important`):(r.push(e.join(`:`)+` !important`),t.includes(`stroke`)&&i.push(e.join(`:`)+` !important`),t===`fill`&&a.push(e.join(`:`)+` !important`))}),{labelStyles:n.join(`;`),nodeStyles:r.join(`;`),stylesArray:t,borderStyles:i,backgroundStyles:a}},`styles2String`),Ep=p((e,t)=>{let{themeVariables:n,handDrawnSeed:r}=Z(),{nodeBorder:i,mainBkg:a}=n,{stylesMap:o}=Sp(e);return Object.assign({roughness:.7,fill:o.get(`fill`)||a,fillStyle:`hachure`,fillWeight:4,hachureGap:5.2,stroke:o.get(`stroke`)||i,seed:r,strokeWidth:o.get(`stroke-width`)?.replace(`px`,``)||1.3,fillLineDash:[0,0],strokeLineDash:Dp(o.get(`stroke-dasharray`))},t)},`userNodeOverrides`),Dp=p(e=>{if(!e)return[0,0];let t=e.trim().split(/\s+/).map(Number);if(t.length===1){let e=isNaN(t[0])?0:t[0];return[e,e]}return[isNaN(t[0])?0:t[0],isNaN(t[1])?0:t[1]]},`getStrokeDashArray`)})),kp,Ap,jp,Mp,Np=o((()=>{kp=Object.freeze({left:0,top:0,width:16,height:16}),Ap=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),jp=Object.freeze({...kp,...Ap}),Mp=Object.freeze({...jp,body:``,hidden:!1})})),Pp,Fp,Ppe=o((()=>{Np(),Pp=Object.freeze({width:null,height:null}),Fp=Object.freeze({...Pp,...Ap})})),Ip,Lp,Fpe=o((()=>{Ip=(e,t,n,r=``)=>{let i=e.split(`:`);if(e.slice(0,1)===`@`){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!Lp(a)?null:a}let a=i[0],o=a.split(`-`);if(o.length>1){let e={provider:r,prefix:o.shift(),name:o.join(`-`)};return t&&!Lp(e)?null:e}if(n&&r===``){let e={provider:r,prefix:``,name:a};return t&&!Lp(e,n)?null:e}return null},Lp=(e,t)=>e?!!((t&&e.prefix===``||e.prefix)&&e.name):!1}));function Ipe(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}var Lpe=o((()=>{}));function Rpe(e,t){let n=Ipe(e,t);for(let r in Mp)r in Ap?r in e&&!(r in n)&&(n[r]=Ap[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}var zpe=o((()=>{Np(),Lpe()}));function Bpe(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;let t=r[e]&&r[e].parent,n=t&&a(t);n&&(i[e]=[t].concat(n))}return i[e]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(a),i}var Vpe=o((()=>{}));function Hpe(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=Rpe(r[e]||i[e],a)}return o(t),n.forEach(o),Rpe(e,a)}function Upe(e,t){if(e.icons[t])return Hpe(e,t,[]);let n=Bpe(e,[t])[t];return n?Hpe(e,t,n):null}var Wpe=o((()=>{zpe(),Vpe()}));function Gpe(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(Kpe);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=qpe.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}var Kpe,qpe,Jpe=o((()=>{Kpe=/(-?[0-9.]*[0-9]+[0-9.]*)/g,qpe=/^-?[0-9.]*[0-9]+[0-9.]*$/g}));function Ype(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(`</`+t);if(i===-1||a===-1)break;let o=e.indexOf(`>`,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function Xpe(e,t){return e?`<defs>`+e+`</defs>`+t:t}function Zpe(e,t,n){let r=Ype(e);return Xpe(r.defs,t+r.content+n)}var Qpe=o((()=>{}));function $pe(e,t){let n={...jp,...e},r={...Fp,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,o=e.rotate;n?r?o+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(o<0&&(o-=Math.floor(o/4)*4),o%=4,o){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`)}o%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(a=Zpe(a,`<g transform="`+t.join(` `)+`">`,`</g>`))});let o=r.width,s=r.height,l=i.width,u=i.height,d,f;o===null?(f=s===null?`1em`:s===`auto`?u:s,d=Gpe(f,l/u)):(d=o===`auto`?l:o,f=s===null?Gpe(d,u/l):s===`auto`?u:s);let p={},m=(e,t)=>{eme(t)||(p[e]=t.toString())};m(`width`,d),m(`height`,f);let h=[i.left,i.top,l,u];return p.viewBox=h.join(` `),{attributes:p,viewBox:h,body:a}}var eme,tme=o((()=>{Np(),Ppe(),Jpe(),Qpe(),eme=e=>e===`unset`||e===`undefined`||e===`none`}));function nme(e){e=e.replace(/[0-9]+$/,``)||`a`;let t=Rp.get(e)||0;return Rp.set(e,t+1),t?`${e}${t}`:e}function rme(e){let t=[],n;for(;n=ime.exec(e);)t.push(n[1]);if(!t.length)return e;let r=`suffix`+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(t=>{let n=nme(t),i=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);e=e.replace(RegExp(`([#;"])(`+i+`)([")]|\\.[a-z])`,`g`),`$1`+n+r+`$3`)}),e=e.replace(new RegExp(r,`g`),``),e}var ime,Rp,ame=o((()=>{ime=/\sid="(\S+)"/g,Rp=new Map}));function ome(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return`<svg xmlns="http://www.w3.org/2000/svg"`+n+`>`+e+`</svg>`}var sme=o((()=>{})),cme=o((()=>{Fpe(),Wpe(),tme(),ame(),sme()})),zp,Bp,Vp,Hp,Up,lme,Wp,Gp=o((()=>{fc(),S(),h(),cme(),zp={body:`<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>`,height:80,width:80},Bp=new Map,Vp=new Map,Hp=p(e=>{for(let t of e){if(!t.name)throw Error(`Invalid icon loader. Must have a "name" property with non-empty string value.`);if(y.debug(`Registering icon pack:`,t.name),`loader`in t)Vp.set(t.name,t.loader);else if(`icons`in t)Bp.set(t.name,t.icons);else throw y.error(`Invalid icon loader:`,t),Error(`Invalid icon loader. Must have either "icons" or "loader" property.`)}},`registerIconPacks`),Up=p(async(e,t)=>{let n=Ip(e,!0,t!==void 0);if(!n)throw Error(`Invalid icon name: ${e}`);let r=n.prefix||t;if(!r)throw Error(`Icon name must contain a prefix: ${e}`);let i=Bp.get(r);if(!i){let e=Vp.get(r);if(!e)throw Error(`Icon set not found: ${n.prefix}`);try{i={...await e(),prefix:r},Bp.set(r,i)}catch(e){throw y.error(e),Error(`Failed to load icon set: ${n.prefix}`)}}let a=Upe(i,n.name);if(!a)throw Error(`Icon not found: ${e}`);return a},`getRegisteredIconData`),lme=p(async e=>{try{return await Up(e),!0}catch{return!1}},`isIconAvailable`),Wp=p(async(e,t,n)=>{let r;try{r=await Up(e,t?.fallbackPrefix)}catch(e){y.error(e),r=zp}let i=$pe(r,t),a=ome(rme(i.body),{...i.attributes,...n});return Ms(a,hs())},`getIconSVG`)})),ume=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0,e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,e.htmlCtrlEntityRegex=/&(newline|tab);/gi,e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,e.urlSchemeRegex=/^.+(:|:)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[`.`,`/`],e.BLANK_URL=`about:blank`})),Kp=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sanitizeUrl=o;var t=ume();function n(e){return t.relativeFirstCharacters.indexOf(e[0])>-1}function r(e){return e.replace(t.ctrlCharactersRegex,``).replace(t.htmlEntitiesRegex,function(e,t){return String.fromCharCode(t)})}function i(e){return URL.canParse(e)}function a(e){try{return decodeURIComponent(e)}catch{return e}}function o(e){if(!e)return t.BLANK_URL;var o,s=a(e.trim());do s=r(s).replace(t.htmlCtrlEntityRegex,``).replace(t.ctrlCharactersRegex,``).replace(t.whitespaceEscapeCharsRegex,``).trim(),s=a(s),o=s.match(t.ctrlCharactersRegex)||s.match(t.htmlEntitiesRegex)||s.match(t.htmlCtrlEntityRegex)||s.match(t.whitespaceEscapeCharsRegex);while(o&&o.length>0);var l=s;if(!l)return t.BLANK_URL;if(n(l))return l;var u=l.trimStart(),d=u.match(t.urlSchemeRegex);if(!d)return l;var f=d[0].toLowerCase().trim();if(t.invalidProtocolRegex.test(f))return t.BLANK_URL;var p=u.replace(/\\/g,`/`);if(f===`mailto:`||f.includes(`://`))return p;if(f===`http:`||f===`https:`){if(!i(p))return t.BLANK_URL;var m=new URL(p);return m.protocol=m.protocol.toLowerCase(),m.hostname=m.hostname.toLowerCase(),m.toString()}return p}}));function dme(e){return Array.isArray(e)}var fme=o((()=>{}));function qp(e){if(typeof e!=`object`||!e)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!==`[object Object]`){let t=e[Symbol.toStringTag];return t==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${t}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var pme=o((()=>{}));function mme(){}var hme=o((()=>{}));function gme(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}var _me=o((()=>{}));function Jp(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var Yp=o((()=>{})),Xp,Zp,Qp,$p,em,tm,nm,rm,im,am,om,sm,cm,lm,um,dm,fm,pm,mm,hm,gm,_m,vm=o((()=>{Xp=`[object RegExp]`,Zp=`[object String]`,Qp=`[object Number]`,$p=`[object Boolean]`,em=`[object Arguments]`,tm=`[object Symbol]`,nm=`[object Date]`,rm=`[object Map]`,im=`[object Set]`,am=`[object Array]`,om=`[object ArrayBuffer]`,sm=`[object Object]`,cm=`[object DataView]`,lm=`[object Uint8Array]`,um=`[object Uint8ClampedArray]`,dm=`[object Uint16Array]`,fm=`[object Uint32Array]`,pm=`[object Int8Array]`,mm=`[object Int16Array]`,hm=`[object Int32Array]`,gm=`[object Float32Array]`,_m=`[object Float64Array]`})),ym,vme=o((()=>{ym=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})()}));function bm(e){return ym.Buffer!==void 0&&ym.Buffer.isBuffer(e)}var xm=o((()=>{vme()}));function yme(e){return Number.isSafeInteger(e)&&e>=0}var bme=o((()=>{}));function xme(e){return e!=null&&typeof e!=`function`&&yme(e.length)}var Sme=o((()=>{bme()}));function Cme(e){return e===`__proto__`}var wme=o((()=>{}));function Sm(e){return e==null||typeof e!=`object`&&typeof e!=`function`}var Cm=o((()=>{}));function wm(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}var Tm=o((()=>{}));function Tme(e,t){return Em(e,void 0,e,new Map,t)}function Em(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(Sm(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=Em(e[a],a,n,r,i);return Object.hasOwn(e,`index`)&&(t.index=e.index),Object.hasOwn(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;r.set(e,t);for(let[a,o]of e)t.set(a,Em(o,a,n,r,i));return t}if(e instanceof Set){let t=new Set;r.set(e,t);for(let a of e)t.add(Em(a,void 0,n,r,i));return t}if(bm(e))return e.subarray();if(wm(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=Em(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),Dm(t,e,n,r,i),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),Dm(t,e,n,r,i),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),Dm(t,e,n,r,i),t}if(e instanceof Error){let t=structuredClone(e);return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,Dm(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),Dm(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),Dm(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),Dm(t,e,n,r,i),t}if(typeof e==`object`&&Eme(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),Dm(t,e,n,r,i),t}return e}function Dm(e,t,n=e,r,i){let a=[...Object.keys(t),...gme(t)];for(let o=0;o<a.length;o++){let s=a[o],l=Object.getOwnPropertyDescriptor(e,s);(l==null||l.writable)&&(e[s]=Em(t[s],s,n,r,i))}}function Eme(e){switch(Jp(e)){case em:case am:case om:case cm:case $p:case nm:case gm:case _m:case pm:case mm:case hm:case rm:case Qp:case sm:case Xp:case im:case Zp:case tm:case lm:case um:case dm:case fm:return!0;default:return!1}}var Dme=o((()=>{Cm(),Tm(),_me(),Yp(),vm(),xm()}));function Ome(e,t){return Tme(e,(n,r,i,a)=>{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(Jp(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),Dm(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case Qp:case Zp:case $p:{let t=new e.constructor(e?.valueOf());return Dm(t,e),t}case em:{let t={};return Dm(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}var kme=o((()=>{Yp(),vm(),Dme()}));function Ame(e){return Ome(e)}var jme=o((()=>{kme()}));function Om(e){return typeof e==`object`&&!!e&&Jp(e)===`[object Arguments]`}var Mme=o((()=>{Yp()}));function km(e){return typeof e==`object`&&!!e}var Nme=o((()=>{}));function Pme(e){return km(e)&&xme(e)}var Fme=o((()=>{Sme(),Nme()}));function Am(e){return wm(e)}var jm=o((()=>{Tm()}));function Ime(e){let t=e?.constructor;return e===(typeof t==`function`?t.prototype:Object.prototype)}var Lme=o((()=>{}));function Mm(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(`Expected a function`);let n=function(...r){let i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);let o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Mm.Cache||Map),n}var Rme=o((()=>{Mm.Cache=Map}));function zme(e){if(Sm(e))return e;let t=Jp(e);if(!Bme(e))return{};if(dme(e)){let t=Array.from(e);return e.length>0&&typeof e[0]==`string`&&Object.hasOwn(e,`index`)&&(t.index=e.index,t.input=e.input),t}if(Am(e)){let t=e,n=t.constructor;return new n(t.buffer,t.byteOffset,t.length)}if(t===`[object ArrayBuffer]`)return new ArrayBuffer(e.byteLength);if(t===`[object DataView]`){let t=e,n=t.buffer,r=t.byteOffset,i=t.byteLength,a=new ArrayBuffer(i),o=new Uint8Array(n,r,i);return new Uint8Array(a).set(o),new DataView(a)}if(t===`[object Boolean]`||t===`[object Number]`||t===`[object String]`){let n=e.constructor,r=new n(e.valueOf());return t===`[object String]`?Hme(r,e):Nm(r,e),r}if(t===`[object Date]`)return new Date(Number(e));if(t===`[object RegExp]`){let t=e,n=new RegExp(t.source,t.flags);return n.lastIndex=t.lastIndex,n}if(t===`[object Symbol]`)return Object(Symbol.prototype.valueOf.call(e));if(t===`[object Map]`){let t=e,n=new Map;return t.forEach((e,t)=>{n.set(t,e)}),n}if(t===`[object Set]`){let t=e,n=new Set;return t.forEach(e=>{n.add(e)}),n}if(t===`[object Arguments]`){let t=e,n={};return Nm(n,t),n.length=t.length,n[Symbol.iterator]=t[Symbol.iterator],n}let n={};return Ume(n,e),Nm(n,e),Vme(n,e),n}function Bme(e){switch(Jp(e)){case em:case am:case om:case cm:case $p:case nm:case gm:case _m:case pm:case mm:case hm:case rm:case Qp:case sm:case Xp:case im:case Zp:case tm:case lm:case um:case dm:case fm:return!0;default:return!1}}function Nm(e,t){for(let n in t)Object.hasOwn(t,n)&&(e[n]=t[n])}function Vme(e,t){let n=Object.getOwnPropertySymbols(t);for(let r=0;r<n.length;r++){let i=n[r];Object.prototype.propertyIsEnumerable.call(t,i)&&(e[i]=t[i])}}function Hme(e,t){let n=t.valueOf().length;for(let r in t)Object.hasOwn(t,r)&&(Number.isNaN(Number(r))||Number(r)>=n)&&(e[r]=t[r])}function Ume(e,t){let n=Object.getPrototypeOf(t);n!==null&&typeof t.constructor==`function`&&Object.setPrototypeOf(e,n)}var Wme=o((()=>{Cm(),Yp(),vm(),fme(),jm()}));function Gme(e){if(Sm(e))return e;if(Array.isArray(e)||wm(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);let n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){let t=new n(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let t;return t=e instanceof AggregateError?new n(e.errors,e.message,{cause:e.cause}):new n(e.message,{cause:e.cause}),t.stack=e.stack,Object.assign(t,e),t}return typeof File<`u`&&e instanceof File?new n([e],e.name,{type:e.type,lastModified:e.lastModified}):typeof e==`object`?Object.assign(Object.create(t),e):e}var Kme=o((()=>{Cm(),Tm()}));function qme(e,...t){let n=t.slice(0,-1),r=t[t.length-1],i=e;for(let e=0;e<n.length;e++){let t=n[e];i=Pm(i,t,r,new Map)}return i}function Pm(e,t,n,r){if(Sm(e)&&(e=Object(e)),typeof t!=`object`||!t)return e;if(r.has(t))return Gme(r.get(t));if(r.set(t,e),Array.isArray(t)){t=t.slice();for(let e=0;e<t.length;e++)e in t||(t[e]=void 0)}let i=[...Object.keys(t),...gme(t)];for(let a=0;a<i.length;a++){let o=i[a];if(Cme(o))continue;let s=t[o],l=e[o];if(Om(s)&&(s={...s}),Om(l)&&(l={...l}),bm(s)&&(s=Ame(s)),Array.isArray(s)){if(Array.isArray(l)){let e=[],t=Reflect.ownKeys(l);for(let n=0;n<t.length;n++){let r=t[n];e[r]=l[r]}l=e}else if(Pme(l)){let e=[];for(let t=0;t<l.length;t++)e[t]=l[t];l=e}else l=[]}let u=n(l,s,o,e,t,r);u===void 0?Array.isArray(s)||km(l)&&km(s)&&(qp(l)||qp(s)||Am(l)||Am(s))?e[o]=Pm(l,s,n,r):l==null&&qp(s)?e[o]=Pm({},s,n,r):l==null&&Am(s)?e[o]=Ame(s):(l===void 0||s!==void 0)&&(e[o]=s):e[o]=u}return e}var Jme=o((()=>{Cm(),Kme(),_me(),xm(),wme(),pme(),jme(),Mme(),Nme(),Fme(),jm()}));function Yme(e,...t){return qme(e,...t,mme)}var Xme=o((()=>{hme(),Jme()}));function Zme(e){if(e==null)return!0;if(xme(e))return typeof e.splice!=`function`&&typeof e!=`string`&&!bm(e)&&!Am(e)&&!Om(e)?!1:e.length===0;if(typeof e==`object`||typeof e==`function`){if(e instanceof Map||e instanceof Set)return e.size===0;let t=Object.keys(e);return Ime(e)?t.filter(e=>e!==`constructor`).length===0:t.length===0}return!0}var Qme=o((()=>{xm(),Sme(),Mme(),Lme(),jm()})),Fm=o((()=>{Rme(),Wme(),Xme(),Qme()}));function Im(e,t){return e?ohe[`curve${e.charAt(0).toUpperCase()+e.slice(1)}`]??t:t}function $me(e,t){let n=e.trim();if(n)return t.securityLevel===`loose`?n:(0,ahe.sanitizeUrl)(n)}function Lm(e,t){return!e||!t?0:Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)}function ehe(e){let t,n=0;return e.forEach(e=>{n+=Lm(e,t),t=e}),Km(e,n/2)}function the(e){return e.length===1?e[0]:ehe(e)}function nhe(e,t,n){let r=structuredClone(n);y.info(`our points`,r),t!==`start_left`&&t!==`start_right`&&r.reverse();let i=Km(r,25+e),a=10+e*.5,o=Math.atan2(r[0].y-i.y,r[0].x-i.x),s={x:0,y:0};return t===`start_left`?(s.x=Math.sin(o+Math.PI)*a+(r[0].x+i.x)/2,s.y=-Math.cos(o+Math.PI)*a+(r[0].y+i.y)/2):t===`end_right`?(s.x=Math.sin(o-Math.PI)*a+(r[0].x+i.x)/2-5,s.y=-Math.cos(o-Math.PI)*a+(r[0].y+i.y)/2-5):t===`end_left`?(s.x=Math.sin(o)*a+(r[0].x+i.x)/2-5,s.y=-Math.cos(o)*a+(r[0].y+i.y)/2-5):(s.x=Math.sin(o)*a+(r[0].x+i.x)/2,s.y=-Math.cos(o)*a+(r[0].y+i.y)/2),s}function Rm(e){let t=``,n=``;for(let r of e)r!==void 0&&(r.startsWith(`color:`)||r.startsWith(`text-align:`)?n=n+r+`;`:t=t+r+`;`);return{style:t,labelStyle:n}}function rhe(e){let t=``;for(let n=0;n<e;n++)t+=`0123456789abcdef`.charAt(Math.floor(Math.random()*16));return t}function zm(e,t){return Zm(e,t).height}function Bm(e,t){return Zm(e,t).width}function Vm(e){return`str`in e}function Hm(e,t){return Yme({},e,t)}function Um(e){return e??null}function ihe(e,t){let n=Math.round(e.x),r=Math.round(e.y),i=t.replace(/(\d+\.\d+)/g,e=>Math.round(parseFloat(e)).toString());return i.includes(n.toString())||i.includes(r.toString())}var ahe,ohe,she,che,Wm,lhe,uhe,dhe,Gm,Km,fhe,qm,Jm,Ym,phe,mhe,Xm,hhe,Zm,ghe,Qm,_he,vhe,$m,eh,yhe,th,nh,rh=o((()=>{fc(),S(),h(),ahe=Kp(),_p(),Fm(),ohe={curveBasis:Of,curveBasisClosed:ype,curveBasisOpen:xpe,curveBumpX:xf,curveBumpY:Sf,curveBundle:Nf,curveCardinalClosed:zf,curveCardinalOpen:Hf,curveCardinal:If,curveCatmullRomClosed:Yf,curveCatmullRomOpen:Zf,curveCatmullRom:Kf,curveLinear:vf,curveLinearClosed:Epe,curveMonotoneX:op,curveMonotoneY:sp,curveNatural:up,curveStep:fp,curveStepAfter:mp,curveStepBefore:pp},she=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,che=p(function(e,t){let n=Wm(e,/(?:init\b)|(?:initialize\b)/),r={};if(Array.isArray(n)){let e=n.map(e=>e.args);is(e),r=Jo(r,[...e])}else r=n.args;if(!r)return;let i=Es(e,t),a=`config`;return r[a]!==void 0&&(i===`flowchart-v2`&&(i=`flowchart`),r[i]=r[a],delete r[a]),r},`detectInit`),Wm=p(function(e,t=null){try{let n=RegExp(`[%]{2}(?![{]${she.source})(?=[}][%]{2}).*
|
|
383
|
+
`)},`setAccDescription`),tc=p(()=>Ys,`getAccDescription`),nc=p(e=>{Js=Xs(e)},`setDiagramTitle`),rc=p(()=>Js,`getDiagramTitle`),ic=y,Rne=b,Z=hs,ac=ms,oc=os,sc=p(e=>Ms(e,Z()),`sanitizeText`),cc=Ws,zne=p(()=>Ks,`getCommonDb`),lc={},uc=p((e,t,n)=>{lc[e]&&ic.warn(`Diagram with id ${e} already registered. Overwriting.`),lc[e]=t,n&&Os(e,n),Ine(e,t.styles),t.injectUtils?.(ic,Rne,Z,sc,cc,zne(),()=>{})},`registerDiagram`),dc=p(e=>{if(e in lc)return lc[e];throw new Bne(e)},`getDiagram`),Bne=class extends Error{static{p(this,`DiagramNotFoundError`)}constructor(e){super(`Diagram ${e} not found.`)}}}));function pc(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}var mc=o((()=>{}));function Vne(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}var Hne=o((()=>{}));function hc(e){let t,n,r;e.length===2?(t=e===pc||e===Vne?e:Une,n=e,r=e):(t=pc,n=(t,n)=>pc(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<0?i=t+1:a=t}while(i<a)}return i}function a(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<=0?i=t+1:a=t}while(i<a)}return i}function o(e,t,n=0,a=e.length){let o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function Une(){return 0}var Wne=o((()=>{mc(),Hne()}));function Gne(e){return e===null?NaN:+e}var Kne=o((()=>{})),gc,qne,Jne=o((()=>{mc(),Wne(),Kne(),gc=hc(pc),qne=gc.right,gc.left,hc(Gne).center}));function Yne({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function Xne({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Zne({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(n),e.delete(r)),n}function Qne(e){return typeof e==`object`&&e?e.valueOf():e}var _c,$ne=o((()=>{_c=class extends Map{constructor(e,t=Qne){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(Yne(this,e))}has(e){return super.has(Yne(this,e))}set(e,t){return super.set(Xne(this,e),t)}delete(e){return super.delete(Zne(this,e))}}}));function vc(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=tre?10:a>=nre?5:a>=rre?2:1,s,l,u;return i<0?(u=10**-i/o,s=Math.round(e*u),l=Math.round(t*u),s/u<e&&++s,l/u>t&&--l,u=-u):(u=10**i*o,s=Math.round(e/u),l=Math.round(t/u),s*u<e&&++s,l*u>t&&--l),l<s&&.5<=n&&n<2?vc(e,t,n*2):[s,l,u]}function ere(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?vc(t,e,n):vc(e,t,n);if(!(a>=i))return[];let s=a-i+1,l=Array(s);if(r){if(o<0)for(let e=0;e<s;++e)l[e]=(a-e)/-o;else for(let e=0;e<s;++e)l[e]=(a-e)*o}else if(o<0)for(let e=0;e<s;++e)l[e]=(i+e)/-o;else for(let e=0;e<s;++e)l[e]=(i+e)*o;return l}function yc(e,t,n){return t=+t,e=+e,n=+n,vc(e,t,n)[2]}function bc(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?yc(t,e,n):yc(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}var tre,nre,rre,ire=o((()=>{tre=Math.sqrt(50),nre=Math.sqrt(10),rre=Math.sqrt(2)}));function are(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}var ore=o((()=>{}));function sre(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}var cre=o((()=>{}));function lre(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=Array(i);++r<i;)a[r]=e+r*n;return a}var ure=o((()=>{})),xc=o((()=>{Jne(),mc(),Wne(),Hne(),$ne(),ire(),ore(),cre(),Kne(),ure()}));function dre(e){return e}var fre=o((()=>{}));function pre(e){return`translate(`+e+`,0)`}function mre(e){return`translate(0,`+e+`)`}function hre(e){return t=>+e(t)}function gre(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function _re(){return!this.__axis}function Sc(e,t){var n=[],r=null,i=null,a=6,o=6,s=3,l=typeof window<`u`&&window.devicePixelRatio>1?0:.5,u=e===Cc||e===Ec?-1:1,d=e===Ec||e===wc?`x`:`y`,f=e===Cc||e===Tc?pre:mre;function p(p){var m=r??(t.ticks?t.ticks.apply(t,n):t.domain()),h=i??(t.tickFormat?t.tickFormat.apply(t,n):dre),g=Math.max(a,0)+s,_=t.range(),v=+_[0]+l,y=+_[_.length-1]+l,b=(t.bandwidth?gre:hre)(t.copy(),l),x=p.selection?p.selection():p,S=x.selectAll(`.domain`).data([null]),C=x.selectAll(`.tick`).data(m,t).order(),w=C.exit(),T=C.enter().append(`g`).attr(`class`,`tick`),E=C.select(`line`),D=C.select(`text`);S=S.merge(S.enter().insert(`path`,`.tick`).attr(`class`,`domain`).attr(`stroke`,`currentColor`)),C=C.merge(T),E=E.merge(T.append(`line`).attr(`stroke`,`currentColor`).attr(d+`2`,u*a)),D=D.merge(T.append(`text`).attr(`fill`,`currentColor`).attr(d,u*g).attr(`dy`,e===Cc?`0em`:e===Tc?`0.71em`:`0.32em`)),p!==x&&(S=S.transition(p),C=C.transition(p),E=E.transition(p),D=D.transition(p),w=w.transition(p).attr(`opacity`,Dc).attr(`transform`,function(e){return isFinite(e=b(e))?f(e+l):this.getAttribute(`transform`)}),T.attr(`opacity`,Dc).attr(`transform`,function(e){var t=this.parentNode.__axis;return f((t&&isFinite(t=t(e))?t:b(e))+l)})),w.remove(),S.attr(`d`,e===Ec||e===wc?o?`M`+u*o+`,`+v+`H`+l+`V`+y+`H`+u*o:`M`+l+`,`+v+`V`+y:o?`M`+v+`,`+u*o+`V`+l+`H`+y+`V`+u*o:`M`+v+`,`+l+`H`+y),C.attr(`opacity`,1).attr(`transform`,function(e){return f(b(e)+l)}),E.attr(d+`2`,u*a),D.attr(d,u*g).text(h),x.filter(_re).attr(`fill`,`none`).attr(`font-size`,10).attr(`font-family`,`sans-serif`).attr(`text-anchor`,e===wc?`start`:e===Ec?`end`:`middle`),x.each(function(){this.__axis=b})}return p.scale=function(e){return arguments.length?(t=e,p):t},p.ticks=function(){return n=Array.from(arguments),p},p.tickArguments=function(e){return arguments.length?(n=e==null?[]:Array.from(e),p):n.slice()},p.tickValues=function(e){return arguments.length?(r=e==null?null:Array.from(e),p):r&&r.slice()},p.tickFormat=function(e){return arguments.length?(i=e,p):i},p.tickSize=function(e){return arguments.length?(a=o=+e,p):a},p.tickSizeInner=function(e){return arguments.length?(a=+e,p):a},p.tickSizeOuter=function(e){return arguments.length?(o=+e,p):o},p.tickPadding=function(e){return arguments.length?(s=+e,p):s},p.offset=function(e){return arguments.length?(l=+e,p):l},p}function vre(e){return Sc(Cc,e)}function yre(e){return Sc(Tc,e)}var Cc,wc,Tc,Ec,Dc,bre=o((()=>{fre(),Cc=1,wc=2,Tc=3,Ec=4,Dc=1e-6})),xre=o((()=>{bre()}));function Oc(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new kc(n)}function kc(e){this._=e}function Sre(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}function Cre(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function Ac(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=jc,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var jc,wre=o((()=>{jc={value:()=>{}},kc.prototype=Oc.prototype={constructor:kc,on:function(e,t){var n=this._,r=Sre(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=Cre(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=Ac(n[i],e.name,t);else if(t==null)for(i in n)n[i]=Ac(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new kc(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}}})),Mc=o((()=>{wre()})),Nc,Pc,Fc=o((()=>{Nc=`http://www.w3.org/1999/xhtml`,Pc={svg:`http://www.w3.org/2000/svg`,xhtml:Nc,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`}}));function Ic(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),Pc.hasOwnProperty(t)?{space:Pc[t],local:e}:e}var Lc=o((()=>{Fc()}));function Tre(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function Ere(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Rc(e){var t=Ic(e);return(t.local?Ere:Tre)(t)}var zc=o((()=>{Lc(),Fc()}));function Dre(){}function Bc(e){return e==null?Dre:function(){return this.querySelector(e)}}var Vc=o((()=>{}));function Ore(e){typeof e!=`function`&&(e=Bc(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),l,u,d=0;d<o;++d)(l=a[d])&&(u=e.call(l,l.__data__,d,a))&&(`__data__`in l&&(u.__data__=l.__data__),s[d]=u);return new Xc(r,this._parents)}var kre=o((()=>{$c(),Vc()}));function Are(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}var Hc=o((()=>{}));function jre(){return[]}function Uc(e){return e==null?jre:function(){return this.querySelectorAll(e)}}var Wc=o((()=>{}));function Mre(e){return function(){return Are(e.apply(this,arguments))}}function Nre(e){e=typeof e==`function`?Mre(e):Uc(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,l,u=0;u<s;++u)(l=o[u])&&(r.push(e.call(l,l.__data__,u,o)),i.push(l));return new Xc(r,i)}var Pre=o((()=>{$c(),Hc(),Wc()}));function Fre(e){return function(){return this.matches(e)}}function Ire(e){return function(t){return t.matches(e)}}var Gc=o((()=>{}));function Lre(e){return function(){return Bre.call(this.children,e)}}function Rre(){return this.firstElementChild}function zre(e){return this.select(e==null?Rre:Lre(typeof e==`function`?e:Ire(e)))}var Bre,Vre=o((()=>{Gc(),Bre=Array.prototype.find}));function Hre(){return Array.from(this.children)}function Ure(e){return function(){return Gre.call(this.children,e)}}function Wre(e){return this.selectAll(e==null?Hre:Ure(typeof e==`function`?e:Ire(e)))}var Gre,Kre=o((()=>{Gc(),Gre=Array.prototype.filter}));function qre(e){typeof e!=`function`&&(e=Fre(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],l,u=0;u<o;++u)(l=a[u])&&e.call(l,l.__data__,u,a)&&s.push(l);return new Xc(r,this._parents)}var Jre=o((()=>{$c(),Gc()}));function Yre(e){return Array(e.length)}var Xre=o((()=>{}));function Zre(){return new Xc(this._enter||this._groups.map(Yre),this._parents)}function Kc(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}var Qre=o((()=>{Xre(),$c(),Kc.prototype={constructor:Kc,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 $re(e){return function(){return e}}var eie=o((()=>{}));function tie(e,t,n,r,i,a){for(var o=0,s,l=t.length,u=a.length;o<u;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new Kc(e,a[o]);for(;o<l;++o)(s=t[o])&&(i[o]=s)}function nie(e,t,n,r,i,a,o){var s,l,u=new Map,d=t.length,f=a.length,p=Array(d),m;for(s=0;s<d;++s)(l=t[s])&&(p[s]=m=o.call(l,l.__data__,s,t)+``,u.has(m)?i[s]=l:u.set(m,l));for(s=0;s<f;++s)m=o.call(e,a[s],s,a)+``,(l=u.get(m))?(r[s]=l,l.__data__=a[s],u.delete(m)):n[s]=new Kc(e,a[s]);for(s=0;s<d;++s)(l=t[s])&&u.get(p[s])===l&&(i[s]=l)}function rie(e){return e.__data__}function iie(e,t){if(!arguments.length)return Array.from(this,rie);var n=t?nie:tie,r=this._parents,i=this._groups;typeof e!=`function`&&(e=$re(e));for(var a=i.length,o=Array(a),s=Array(a),l=Array(a),u=0;u<a;++u){var d=r[u],f=i[u],p=f.length,m=aie(e.call(d,d&&d.__data__,u,r)),h=m.length,g=s[u]=Array(h),_=o[u]=Array(h);n(d,f,g,_,l[u]=Array(p),m,t);for(var v=0,y=0,b,x;v<h;++v)if(b=g[v]){for(v>=y&&(y=v+1);!(x=_[y])&&++y<h;);b._next=x||null}}return o=new Xc(o,r),o._enter=s,o._exit=l,o}function aie(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}var oie=o((()=>{$c(),Qre(),eie()}));function sie(){return new Xc(this._exit||this._groups.map(Yre),this._parents)}var cie=o((()=>{Xre(),$c()}));function lie(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}var uie=o((()=>{}));function die(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),l=0;l<o;++l)for(var u=n[l],d=r[l],f=u.length,p=s[l]=Array(f),m,h=0;h<f;++h)(m=u[h]||d[h])&&(p[h]=m);for(;l<i;++l)s[l]=n[l];return new Xc(s,this._parents)}var fie=o((()=>{$c()}));function pie(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}var mie=o((()=>{}));function hie(e){e||=gie;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,l=i[a]=Array(s),u,d=0;d<s;++d)(u=o[d])&&(l[d]=u);l.sort(t)}return new Xc(i,this._parents).order()}function gie(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}var _ie=o((()=>{$c()}));function vie(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}var yie=o((()=>{}));function bie(){return Array.from(this)}var xie=o((()=>{}));function Sie(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}var Cie=o((()=>{}));function wie(){let e=0;for(let t of this)++e;return e}var Tie=o((()=>{}));function Eie(){return!this.node()}var Die=o((()=>{}));function Oie(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}var kie=o((()=>{}));function Aie(e){return function(){this.removeAttribute(e)}}function jie(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Mie(e,t){return function(){this.setAttribute(e,t)}}function Nie(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Pie(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function Fie(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 Iie(e,t){var n=Ic(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?jie:Aie:typeof t==`function`?n.local?Fie:Pie:n.local?Nie:Mie)(n,t))}var Lie=o((()=>{Lc()}));function Rie(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}var qc=o((()=>{}));function zie(e){return function(){this.style.removeProperty(e)}}function Bie(e,t,n){return function(){this.style.setProperty(e,t,n)}}function Vie(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function Hie(e,t,n){return arguments.length>1?this.each((t==null?zie:typeof t==`function`?Vie:Bie)(e,t,n??``)):Jc(this.node(),e)}function Jc(e,t){return e.style.getPropertyValue(t)||Rie(e).getComputedStyle(e,null).getPropertyValue(t)}var Uie=o((()=>{qc()}));function Wie(e){return function(){delete this[e]}}function Gie(e,t){return function(){this[e]=t}}function Kie(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function qie(e,t){return arguments.length>1?this.each((t==null?Wie:typeof t==`function`?Kie:Gie)(e,t)):this.node()[e]}var Jie=o((()=>{}));function Yie(e){return e.trim().split(/^|\s+/)}function Yc(e){return e.classList||new Xie(e)}function Xie(e){this._node=e,this._names=Yie(e.getAttribute(`class`)||``)}function Zie(e,t){for(var n=Yc(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Qie(e,t){for(var n=Yc(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function $ie(e){return function(){Zie(this,e)}}function eae(e){return function(){Qie(this,e)}}function tae(e,t){return function(){(t.apply(this,arguments)?Zie:Qie)(this,e)}}function nae(e,t){var n=Yie(e+``);if(arguments.length<2){for(var r=Yc(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?tae:t?$ie:eae)(n,t))}var rae=o((()=>{Xie.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}}}));function iae(){this.textContent=``}function aae(e){return function(){this.textContent=e}}function oae(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function sae(e){return arguments.length?this.each(e==null?iae:(typeof e==`function`?oae:aae)(e)):this.node().textContent}var cae=o((()=>{}));function lae(){this.innerHTML=``}function uae(e){return function(){this.innerHTML=e}}function dae(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function fae(e){return arguments.length?this.each(e==null?lae:(typeof e==`function`?dae:uae)(e)):this.node().innerHTML}var pae=o((()=>{}));function mae(){this.nextSibling&&this.parentNode.appendChild(this)}function hae(){return this.each(mae)}var gae=o((()=>{}));function _ae(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function vae(){return this.each(_ae)}var yae=o((()=>{}));function bae(e){var t=typeof e==`function`?e:Rc(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}var xae=o((()=>{zc()}));function Sae(){return null}function Cae(e,t){var n=typeof e==`function`?e:Rc(e),r=t==null?Sae:typeof t==`function`?t:Bc(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}var wae=o((()=>{zc(),Vc()}));function Tae(){var e=this.parentNode;e&&e.removeChild(this)}function Eae(){return this.each(Tae)}var Dae=o((()=>{}));function Oae(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function kae(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function Aae(e){return this.select(e?kae:Oae)}var jae=o((()=>{}));function Mae(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}var Nae=o((()=>{}));function Pae(e){return function(t){e.call(this,t,this.__data__)}}function Fae(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function Iae(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function Lae(e,t,n){return function(){var r=this.__on,i,a=Pae(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function Rae(e,t,n){var r=Fae(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var l=0,u=s.length,d;l<u;++l)for(i=0,d=s[l];i<a;++i)if((o=r[i]).type===d.type&&o.name===d.name)return d.value}return}for(s=t?Lae:Iae,i=0;i<a;++i)this.each(s(r[i],t,n));return this}var zae=o((()=>{}));function Bae(e,t,n){var r=Rie(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 Vae(e,t){return function(){return Bae(this,e,t)}}function Hae(e,t){return function(){return Bae(this,e,t.apply(this,arguments))}}function Uae(e,t){return this.each((typeof t==`function`?Hae:Vae)(e,t))}var Wae=o((()=>{qc()}));function*Gae(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var Kae=o((()=>{}));function Xc(e,t){this._groups=e,this._parents=t}function Zc(){return new Xc([[document.documentElement]],Qc)}function qae(){return this}var Qc,$c=o((()=>{kre(),Pre(),Vre(),Kre(),Jre(),oie(),Qre(),cie(),uie(),fie(),mie(),_ie(),yie(),xie(),Cie(),Tie(),Die(),kie(),Lie(),Uie(),Jie(),rae(),cae(),pae(),gae(),yae(),xae(),wae(),Dae(),jae(),Nae(),zae(),Wae(),Kae(),Qc=[null],Xc.prototype=Zc.prototype={constructor:Xc,select:Ore,selectAll:Nre,selectChild:zre,selectChildren:Wre,filter:qre,data:iie,enter:Zre,exit:sie,join:lie,merge:die,selection:qae,order:pie,sort:hie,call:vie,nodes:bie,node:Sie,size:wie,empty:Eie,each:Oie,attr:Iie,style:Hie,property:qie,classed:nae,text:sae,html:fae,raise:hae,lower:vae,append:bae,insert:Cae,remove:Eae,clone:Aae,datum:Mae,on:Rae,dispatch:Uae,[Symbol.iterator]:Gae}}));function el(e){return typeof e==`string`?new Xc([[document.querySelector(e)]],[document.documentElement]):new Xc([[e]],Qc)}var Jae=o((()=>{$c()})),tl=o((()=>{zc(),Jae(),Gc(),Lc(),Fc(),Hc(),$c(),Vc(),Wc(),Uie(),qc()})),Yae=o((()=>{Mc(),tl()}));function nl(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function rl(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}var il=o((()=>{}));function al(){}function Xae(){return this.rgb().formatHex()}function Zae(){return this.rgb().formatHex8()}function Qae(){return ooe(this).formatHsl()}function $ae(){return this.rgb().formatRgb()}function ol(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=loe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?eoe(t):n===3?new ll(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?sl(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?sl(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=uoe.exec(e))?new ll(t[1],t[2],t[3],1):(t=doe.exec(e))?new ll(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=foe.exec(e))?sl(t[1],t[2],t[3],t[4]):(t=poe.exec(e))?sl(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=moe.exec(e))?aoe(t[1],t[2]/100,t[3]/100,1):(t=hoe.exec(e))?aoe(t[1],t[2]/100,t[3]/100,t[4]):xl.hasOwnProperty(e)?eoe(xl[e]):e===`transparent`?new ll(NaN,NaN,NaN,0):null}function eoe(e){return new ll(e>>16&255,e>>8&255,e&255,1)}function sl(e,t,n,r){return r<=0&&(e=t=n=NaN),new ll(e,t,n,r)}function toe(e){return e instanceof al||(e=ol(e)),e?(e=e.rgb(),new ll(e.r,e.g,e.b,e.opacity)):new ll}function cl(e,t,n,r){return arguments.length===1?toe(e):new ll(e,t,n,r??1)}function ll(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function noe(){return`#${fl(this.r)}${fl(this.g)}${fl(this.b)}`}function roe(){return`#${fl(this.r)}${fl(this.g)}${fl(this.b)}${fl((isNaN(this.opacity)?1:this.opacity)*255)}`}function ioe(){let e=ul(this.opacity);return`${e===1?`rgb(`:`rgba(`}${dl(this.r)}, ${dl(this.g)}, ${dl(this.b)}${e===1?`)`:`, ${e})`}`}function ul(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function dl(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function fl(e){return e=dl(e),(e<16?`0`:``)+e.toString(16)}function aoe(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new pl(e,t,n,r)}function ooe(e){if(e instanceof pl)return new pl(e.h,e.s,e.l,e.opacity);if(e instanceof al||(e=ol(e)),!e)return new pl;if(e instanceof pl)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,l=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=l<.5?a+i:2-a-i,o*=60):s=l>0&&l<1?0:o,new pl(o,s,l,e.opacity)}function soe(e,t,n,r){return arguments.length===1?ooe(e):new pl(e,t,n,r??1)}function pl(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function coe(e){return e=(e||0)%360,e<0?e+360:e}function ml(e){return Math.max(0,Math.min(1,e||0))}function hl(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var gl,_l,vl,yl,bl,loe,uoe,doe,foe,poe,moe,hoe,xl,goe=o((()=>{il(),gl=.7,_l=1/gl,vl=`\\s*([+-]?\\d+)\\s*`,yl=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,bl=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,loe=/^#([0-9a-f]{3,8})$/,uoe=RegExp(`^rgb\\(${vl},${vl},${vl}\\)$`),doe=RegExp(`^rgb\\(${bl},${bl},${bl}\\)$`),foe=RegExp(`^rgba\\(${vl},${vl},${vl},${yl}\\)$`),poe=RegExp(`^rgba\\(${bl},${bl},${bl},${yl}\\)$`),moe=RegExp(`^hsl\\(${yl},${bl},${bl}\\)$`),hoe=RegExp(`^hsla\\(${yl},${bl},${bl},${yl}\\)$`),xl={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},nl(al,ol,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Xae,formatHex:Xae,formatHex8:Zae,formatHsl:Qae,formatRgb:$ae,toString:$ae}),nl(ll,cl,rl(al,{brighter(e){return e=e==null?_l:_l**+e,new ll(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?gl:gl**+e,new ll(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ll(dl(this.r),dl(this.g),dl(this.b),ul(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:noe,formatHex:noe,formatHex8:roe,formatRgb:ioe,toString:ioe})),nl(pl,soe,rl(al,{brighter(e){return e=e==null?_l:_l**+e,new pl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?gl:gl**+e,new pl(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 ll(hl(e>=240?e-240:e+120,i,r),hl(e,i,r),hl(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new pl(coe(this.h),ml(this.s),ml(this.l),ul(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=ul(this.opacity);return`${e===1?`hsl(`:`hsla(`}${coe(this.h)}, ${ml(this.s)*100}%, ${ml(this.l)*100}%${e===1?`)`:`, ${e})`}`}}))})),_oe,voe,yoe=o((()=>{_oe=Math.PI/180,voe=180/Math.PI}));function boe(e){if(e instanceof Sl)return new Sl(e.l,e.a,e.b,e.opacity);if(e instanceof Ol)return Coe(e);e instanceof ll||(e=toe(e));var t=El(e.r),n=El(e.g),r=El(e.b),i=Cl((.2225045*t+.7168786*n+.0606169*r)/jl),a,o;return t===n&&n===r?a=o=i:(a=Cl((.4360747*t+.3850649*n+.1430804*r)/Al),o=Cl((.0139322*t+.0971045*n+.7141733*r)/Ml)),new Sl(116*i-16,500*(a-i),200*(i-o),e.opacity)}function xoe(e,t,n,r){return arguments.length===1?boe(e):new Sl(e,t,n,r??1)}function Sl(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Cl(e){return e>woe?e**(1/3):e/Fl+Nl}function wl(e){return e>Pl?e*e*e:Fl*(e-Nl)}function Tl(e){return 255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055)}function El(e){return(e/=255)<=.04045?e/12.92:((e+.055)/1.055)**2.4}function Soe(e){if(e instanceof Ol)return new Ol(e.h,e.c,e.l,e.opacity);if(e instanceof Sl||(e=boe(e)),e.a===0&&e.b===0)return new Ol(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*voe;return new Ol(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function Dl(e,t,n,r){return arguments.length===1?Soe(e):new Ol(e,t,n,r??1)}function Ol(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Coe(e){if(isNaN(e.h))return new Sl(e.l,0,0,e.opacity);var t=e.h*_oe;return new Sl(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}var kl,Al,jl,Ml,Nl,Pl,Fl,woe,Toe=o((()=>{il(),goe(),yoe(),kl=18,Al=.96422,jl=1,Ml=.82521,Nl=4/29,Pl=6/29,Fl=3*Pl*Pl,woe=Pl*Pl*Pl,nl(Sl,xoe,rl(al,{brighter(e){return new Sl(this.l+kl*(e??1),this.a,this.b,this.opacity)},darker(e){return new Sl(this.l-kl*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=Al*wl(t),e=jl*wl(e),n=Ml*wl(n),new ll(Tl(3.1338561*t-1.6168667*e-.4906146*n),Tl(-.9787684*t+1.9161415*e+.033454*n),Tl(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),nl(Ol,Dl,rl(al,{brighter(e){return new Ol(this.h,this.c,this.l+kl*(e??1),this.opacity)},darker(e){return new Ol(this.h,this.c,this.l-kl*(e??1),this.opacity)},rgb(){return Coe(this).rgb()}}))})),Il=o((()=>{goe(),Toe(),il(),yoe()})),Ll=o((()=>{})),Eoe=o((()=>{Ll()})),Rl,Doe=o((()=>{Rl=e=>()=>e}));function Ooe(e,t){return function(n){return e+n*t}}function koe(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function Aoe(e,t){var n=t-e;return n?Ooe(e,n>180||n<-180?n-360*Math.round(n/360):n):Rl(isNaN(e)?t:e)}function joe(e){return(e=+e)==1?zl:function(t,n){return n-t?koe(t,n,e):Rl(isNaN(t)?n:t)}}function zl(e,t){var n=t-e;return n?Ooe(e,n):Rl(isNaN(e)?t:e)}var Bl=o((()=>{Doe()})),Vl,Moe=o((()=>{Il(),Ll(),Eoe(),Bl(),Vl=(function e(t){var n=joe(t);function r(e,t){var r=n((e=cl(e)).r,(t=cl(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=zl(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1)}));function Noe(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function Poe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}var Foe=o((()=>{}));function Ioe(e,t){for(var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o=0;o<r;++o)i[o]=Kl(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}var Loe=o((()=>{ql()}));function Roe(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}var zoe=o((()=>{}));function Hl(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Ul=o((()=>{}));function Boe(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=Kl(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var Voe=o((()=>{ql()}));function Hoe(e){return function(){return e}}function Uoe(e){return function(t){return e(t)+``}}function Woe(e,t){var n=Wl.lastIndex=Gl.lastIndex=0,r,i,a,o=-1,s=[],l=[];for(e+=``,t+=``;(r=Wl.exec(e))&&(i=Gl.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,l.push({i:o,x:Hl(r,i)})),n=Gl.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?l[0]?Uoe(l[0].x):Hoe(t):(t=l.length,function(e){for(var n=0,r;n<t;++n)s[(r=l[n]).i]=r.x(e);return s.join(``)})}var Wl,Gl,Goe=o((()=>{Ul(),Wl=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Gl=new RegExp(Wl.source,`g`)}));function Kl(e,t){var n=typeof t,r;return t==null||n===`boolean`?Rl(t):(n===`number`?Hl:n===`string`?(r=ol(t))?(t=r,Vl):Woe:t instanceof ol?Vl:t instanceof Date?Roe:Poe(t)?Noe:Array.isArray(t)?Ioe:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?Boe:Hl)(e,t)}var ql=o((()=>{Il(),Moe(),Loe(),zoe(),Ul(),Voe(),Goe(),Doe(),Foe()}));function Koe(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var qoe=o((()=>{}));function Joe(e,t,n,r,i,a){var o,s,l;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,l/=s),e*r<t*n&&(e=-e,t=-t,l=-l,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*Jl,skewX:Math.atan(l)*Jl,scaleX:o,scaleY:s}}var Jl,Yl,Yoe=o((()=>{Jl=180/Math.PI,Yl={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1}}));function Xoe(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?Yl:Joe(t.a,t.b,t.c,t.d,t.e,t.f)}function Zoe(e){return e==null||(Xl||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),Xl.setAttribute(`transform`,e),!(e=Xl.transform.baseVal.consolidate()))?Yl:(e=e.matrix,Joe(e.a,e.b,e.c,e.d,e.e,e.f))}var Xl,Qoe=o((()=>{Yoe()}));function $oe(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var l=o.push(`translate(`,null,t,null,n);s.push({i:l-4,x:Hl(e,i)},{i:l-2,x:Hl(r,a)})}else(i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:Hl(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:Hl(e,t)})}function l(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:Hl(e,n)},{i:s-2,x:Hl(t,r)})}else(n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),l(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var ese,tse,nse=o((()=>{Ul(),Qoe(),ese=$oe(Xoe,`px, `,`px)`,`deg)`),tse=$oe(Zoe,`, `,`)`,`)`)}));function rse(e){return function(t,n){var r=e((t=Dl(t)).h,(n=Dl(n)).h),i=zl(t.c,n.c),a=zl(t.l,n.l),o=zl(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=a(e),t.opacity=o(e),t+``}}}var ise,ase=o((()=>{Il(),Bl(),ise=rse(Aoe)})),Zl=o((()=>{ql(),Loe(),Ll(),Eoe(),zoe(),Bl(),Ul(),Foe(),Voe(),qoe(),Goe(),nse(),Moe(),Il(),ase()}));function Ql(){return cu||=(du(ose),uu.now()+lu)}function ose(){cu=0}function $l(){this._call=this._time=this._next=null}function sse(e,t,n){var r=new $l;return r.restart(e,t,n),r}function cse(){Ql(),++tu;for(var e=au,t;e;)(t=cu-e._time)>=0&&e._call.call(void 0,t),e=e._next;--tu}function lse(){cu=(su=uu.now())+lu,tu=nu=0;try{cse()}finally{tu=0,dse(),cu=0}}function use(){var e=uu.now(),t=e-su;t>iu&&(lu-=t,su=e)}function dse(){for(var e,t=au,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:au=n);ou=e,eu(r)}function eu(e){tu||(nu&&=clearTimeout(nu),e-cu>24?(e<1/0&&(nu=setTimeout(lse,e-uu.now()-lu)),ru&&=clearInterval(ru)):(ru||=(su=uu.now(),setInterval(use,iu)),tu=1,du(lse)))}var tu,nu,ru,iu,au,ou,su,cu,lu,uu,du,fse=o((()=>{tu=0,nu=0,ru=0,iu=1e3,su=0,cu=0,lu=0,uu=typeof performance==`object`&&performance.now?performance:Date,du=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)},$l.prototype=sse.prototype={constructor:$l,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?Ql():+n)+(t==null?0:+t),!this._next&&ou!==this&&(ou?ou._next=this:au=this,ou=this),this._call=e,this._time=n,eu()},stop:function(){this._call&&(this._call=null,this._time=1/0,eu())}}}));function pse(e,t,n){var r=new $l;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var mse=o((()=>{fse()})),fu=o((()=>{fse(),mse()}));function pu(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;hse(e,n,{name:t,index:r,group:i,on:gse,tween:_se,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function mu(e,t){var n=gu(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function hu(e,t){var n=gu(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function gu(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function hse(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=sse(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var u,d,f,p;if(n.state!==1)return l();for(u in r)if(p=r[u],p.name===n.name){if(p.state===3)return pse(o);p.state===4?(p.state=6,p.timer.stop(),p.on.call(`interrupt`,e,e.__data__,p.index,p.group),delete r[u]):+u<t&&(p.state=6,p.timer.stop(),p.on.call(`cancel`,e,e.__data__,p.index,p.group),delete r[u])}if(pse(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(f=n.tween.length),u=0,d=-1;u<f;++u)(p=n.tween[u].value.call(e,e.__data__,n.index,n.group))&&(i[++d]=p);i.length=d+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(l),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),l())}function l(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}var gse,_se,_u=o((()=>{Mc(),fu(),gse=Oc(`start`,`end`,`cancel`,`interrupt`),_se=[]}));function vse(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}var yse=o((()=>{_u()}));function bse(e){return this.each(function(){vse(this,e)})}var xse=o((()=>{yse()}));function Sse(e,t){var n,r;return function(){var i=hu(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function Cse(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=hu(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},l=0,u=i.length;l<u;++l)if(i[l].name===t){i[l]=s;break}l===u&&i.push(s)}a.tween=i}}function wse(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=gu(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?Sse:Cse)(n,e,t))}function vu(e,t,n){var r=e._id;return e.each(function(){var e=hu(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return gu(e,r).value[t]}}var yu=o((()=>{_u()}));function Tse(e,t){var n;return(typeof t==`number`?Hl:t instanceof ol?Vl:(n=ol(t))?(t=n,Vl):Woe)(e,t)}var Ese=o((()=>{Il(),Zl()}));function Dse(e){return function(){this.removeAttribute(e)}}function Ose(e){return function(){this.removeAttributeNS(e.space,e.local)}}function kse(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function Ase(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function jse(e,t,n){var r,i,a;return function(){var o,s=n(this),l;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),l=s+``,o===l?null:o===r&&l===i?a:(i=l,a=t(r=o,s)))}}function Mse(e,t,n){var r,i,a;return function(){var o,s=n(this),l;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),l=s+``,o===l?null:o===r&&l===i?a:(i=l,a=t(r=o,s)))}}function Nse(e,t){var n=Ic(e),r=n===`transform`?tse:Tse;return this.attrTween(e,typeof t==`function`?(n.local?Mse:jse)(n,r,vu(this,`attr.`+e,t)):t==null?(n.local?Ose:Dse)(n):(n.local?Ase:kse)(n,r,t))}var Pse=o((()=>{Zl(),tl(),yu(),Ese()}));function Fse(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function Ise(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function Lse(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Ise(e,i)),n}return i._value=t,i}function Rse(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&Fse(e,i)),n}return i._value=t,i}function zse(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=Ic(e);return this.tween(n,(r.local?Lse:Rse)(r,t))}var Bse=o((()=>{tl()}));function Vse(e,t){return function(){mu(this,e).delay=+t.apply(this,arguments)}}function Hse(e,t){return t=+t,function(){mu(this,e).delay=t}}function Use(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Vse:Hse)(t,e)):gu(this.node(),t).delay}var Wse=o((()=>{_u()}));function Gse(e,t){return function(){hu(this,e).duration=+t.apply(this,arguments)}}function Kse(e,t){return t=+t,function(){hu(this,e).duration=t}}function qse(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?Gse:Kse)(t,e)):gu(this.node(),t).duration}var Jse=o((()=>{_u()}));function Yse(e,t){if(typeof t!=`function`)throw Error();return function(){hu(this,e).ease=t}}function Xse(e){var t=this._id;return arguments.length?this.each(Yse(t,e)):gu(this.node(),t).ease}var Zse=o((()=>{_u()}));function Qse(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();hu(this,e).ease=n}}function $se(e){if(typeof e!=`function`)throw Error();return this.each(Qse(this._id,e))}var ece=o((()=>{_u()}));function tce(e){typeof e!=`function`&&(e=Fre(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],l,u=0;u<o;++u)(l=a[u])&&e.call(l,l.__data__,u,a)&&s.push(l);return new bu(r,this._parents,this._name,this._id)}var nce=o((()=>{tl(),Su()}));function rce(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var l=t[s],u=n[s],d=l.length,f=o[s]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;s<r;++s)o[s]=t[s];return new bu(o,this._parents,this._name,this._id)}var ice=o((()=>{Su()}));function ace(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function oce(e,t,n){var r,i,a=ace(t)?mu:hu;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function sce(e,t){var n=this._id;return arguments.length<2?gu(this.node(),n).on.on(e):this.each(oce(n,e,t))}var cce=o((()=>{_u()}));function lce(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function uce(){return this.on(`end.remove`,lce(this._id))}var dce=o((()=>{}));function fce(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=Bc(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],l=s.length,u=a[o]=Array(l),d,f,p=0;p<l;++p)(d=s[p])&&(f=e.call(d,d.__data__,p,s))&&(`__data__`in d&&(f.__data__=d.__data__),u[p]=f,pu(u[p],t,n,p,u,gu(d,n)));return new bu(a,this._parents,t,n)}var pce=o((()=>{tl(),Su(),_u()}));function mce(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=Uc(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var l=r[s],u=l.length,d,f=0;f<u;++f)if(d=l[f]){for(var p=e.call(d,d.__data__,f,l),m,h=gu(d,n),g=0,_=p.length;g<_;++g)(m=p[g])&&pu(m,t,n,g,p,h);a.push(p),o.push(d)}return new bu(a,o,t,n)}var hce=o((()=>{tl(),Su(),_u()}));function gce(){return new _ce(this._groups,this._parents)}var _ce,vce=o((()=>{tl(),_ce=Zc.prototype.constructor}));function yce(e,t){var n,r,i;return function(){var a=Jc(this,e),o=(this.style.removeProperty(e),Jc(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function bce(e){return function(){this.style.removeProperty(e)}}function xce(e,t,n){var r,i=n+``,a;return function(){var o=Jc(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function Sce(e,t,n){var r,i,a;return function(){var o=Jc(this,e),s=n(this),l=s+``;return s??(l=s=(this.style.removeProperty(e),Jc(this,e))),o===l?null:o===r&&l===i?a:(i=l,a=t(r=o,s))}}function Cce(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var l=hu(this,e),u=l.on,d=l.value[a]==null?s||=bce(t):void 0;(u!==n||i!==d)&&(r=(n=u).copy()).on(o,i=d),l.on=r}}function wce(e,t,n){var r=(e+=``)==`transform`?ese:Tse;return t==null?this.styleTween(e,yce(e,r)).on(`end.style.`+e,bce(e)):typeof t==`function`?this.styleTween(e,Sce(e,r,vu(this,`style.`+e,t))).each(Cce(this._id,e)):this.styleTween(e,xce(e,r,t),n).on(`end.style.`+e,null)}var Tce=o((()=>{Zl(),tl(),_u(),yu(),Ese()}));function Ece(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function Dce(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&Ece(e,a,n)),r}return a._value=t,a}function Oce(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,Dce(e,t,n??``))}var kce=o((()=>{}));function Ace(e){return function(){this.textContent=e}}function jce(e){return function(){var t=e(this);this.textContent=t??``}}function Mce(e){return this.tween(`text`,typeof e==`function`?jce(vu(this,`text`,e)):Ace(e==null?``:e+``))}var Nce=o((()=>{yu()}));function Pce(e){return function(t){this.textContent=e.call(this,t)}}function Fce(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&Pce(r)),t}return r._value=e,r}function Ice(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,Fce(e))}var Lce=o((()=>{}));function Rce(){for(var e=this._name,t=this._id,n=Hce(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,l,u=0;u<s;++u)if(l=o[u]){var d=gu(l,t);pu(l,e,n,u,o,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new bu(r,this._parents,e,n)}var zce=o((()=>{Su(),_u()}));function Bce(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},l={value:function(){--i===0&&a()}};n.each(function(){var n=hu(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(l)),n.on=t}),i===0&&a()})}var Vce=o((()=>{_u()}));function bu(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function Hce(){return++Uce}var Uce,xu,Su=o((()=>{tl(),Pse(),Bse(),Wse(),Jse(),Zse(),ece(),nce(),ice(),cce(),dce(),pce(),hce(),vce(),Tce(),kce(),Nce(),Lce(),zce(),yu(),Vce(),Uce=0,xu=Zc.prototype,bu.prototype={constructor:bu,select:fce,selectAll:mce,selectChild:xu.selectChild,selectChildren:xu.selectChildren,filter:tce,merge:rce,selection:gce,transition:Rce,call:xu.call,nodes:xu.nodes,node:xu.node,size:xu.size,empty:xu.empty,each:xu.each,on:sce,attr:Nse,attrTween:zse,style:wce,styleTween:Oce,text:Mce,textTween:Ice,remove:uce,tween:wse,delay:Use,duration:qse,ease:Xse,easeVarying:$se,end:Bce,[Symbol.iterator]:xu[Symbol.iterator]}}));function Wce(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var Gce=o((()=>{})),Kce=o((()=>{Gce()}));function qce(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function Jce(e){var t,n;e instanceof bu?(t=e._id,e=e._name):(t=Hce(),(n=Yce).time=Ql(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,l,u=0;u<s;++u)(l=o[u])&&pu(l,e,t,u,o,n||qce(l,t));return new bu(r,this._parents,e,t)}var Yce,Xce=o((()=>{Su(),_u(),Kce(),fu(),Yce={time:null,delay:0,duration:250,ease:Wce}})),Zce=o((()=>{tl(),xse(),Xce(),Zc.prototype.interrupt=bse,Zc.prototype.transition=Jce})),Cu=o((()=>{Zce(),Su(),_u(),yse()}));function wu(e){return{type:e}}var Qce,$ce,ele,tle=o((()=>{Cu(),{abs:Qce,max:$ce,min:ele}=Math,[`w`,`e`].map(wu),[`n`,`s`].map(wu),[`n`,`w`,`e`,`s`,`nw`,`ne`,`sw`,`se`].map(wu)})),nle=o((()=>{tle()}));function rle(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function ile(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return rle;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}var Tu,Eu,Du,ale,Ou,ole=o((()=>{Tu=Math.PI,Eu=2*Tu,Du=1e-6,ale=Eu-Du,Ou=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?rle:ile(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,l=r-t,u=a-e,d=o-t,f=u*u+d*d;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(f>Du){if(!(Math.abs(d*s-l*u)>Du)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let p=n-a,m=r-o,h=s*s+l*l,g=p*p+m*m,_=Math.sqrt(h),v=Math.sqrt(f),y=i*Math.tan((Tu-Math.acos((h+f-g)/(2*_*v)))/2),b=y/v,x=y/_;Math.abs(b-1)>Du&&this._append`L${e+b*u},${t+b*d}`,this._append`A${i},${i},0,0,${+(d*p>u*m)},${this._x1=e+x*s},${this._y1=t+x*l}`}}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),l=e+o,u=t+s,d=1^a,f=a?r-i:i-r;this._x1===null?this._append`M${l},${u}`:(Math.abs(this._x1-l)>Du||Math.abs(this._y1-u)>Du)&&this._append`L${l},${u}`,n&&(f<0&&(f=f%Eu+Eu),f>ale?this._append`A${n},${n},0,1,${d},${e-o},${t-s}A${n},${n},0,1,${d},${this._x1=l},${this._y1=u}`:f>Du&&this._append`A${n},${n},0,${+(f>=Tu)},${d},${this._x1=e+n*Math.cos(i)},${this._y1=t+n*Math.sin(i)}`)}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}},Ou.prototype})),ku=o((()=>{ole()})),sle=o((()=>{ku()})),cle=o((()=>{xc()})),lle=o((()=>{})),ule=o((()=>{})),dle=o((()=>{ule()})),fle=o((()=>{})),ple=o((()=>{fle(),Mc(),fu()}));function mle(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function Au(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}var ju=o((()=>{}));function Mu(e){return e=Au(Math.abs(e)),e?e[1]:NaN}var Nu=o((()=>{ju()}));function hle(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],l=0;i>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),a.push(n.substring(i-=s,i+s)),!((l+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}var gle=o((()=>{}));function _le(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var vle=o((()=>{}));function Pu(e){if(!(t=yle.exec(e)))throw Error(`invalid format: `+e);var t;return new Fu({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function Fu(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}var yle,ble=o((()=>{yle=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i,Pu.prototype=Fu.prototype,Fu.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type}}));function xle(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0)}return r>0?e.slice(0,r)+e.slice(i+1):e}var Sle=o((()=>{}));function Cle(e,t){var n=Au(e,t);if(!n)return Iu=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(Iu=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+Au(e,Math.max(0,t+a-1))[0]}var Iu,wle=o((()=>{ju()}));function Tle(e,t){var n=Au(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var Ele=o((()=>{ju()})),Lu,Dle=o((()=>{ju(),wle(),Ele(),Lu={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:mle,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>Tle(e*100,t),r:Tle,s:Cle,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)}}));function Ole(e){return e}var kle=o((()=>{}));function Ale(e){var t=e.grouping===void 0||e.thousands===void 0?Ole:hle(Ru.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?Ole:_le(Ru.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,l=e.nan===void 0?`NaN`:e.nan+``;function u(e,u){e=Pu(e);var d=e.fill,f=e.align,p=e.sign,m=e.symbol,h=e.zero,g=e.width,_=e.comma,v=e.precision,y=e.trim,b=e.type;b===`n`?(_=!0,b=`g`):Lu[b]||(v===void 0&&(v=12),y=!0,b=`g`),(h||d===`0`&&f===`=`)&&(h=!0,d=`0`,f=`=`);var x=(u&&u.prefix!==void 0?u.prefix:``)+(m===`$`?n:m===`#`&&/[boxX]/.test(b)?`0`+b.toLowerCase():``),S=(m===`$`?r:/[%p]/.test(b)?o:``)+(u&&u.suffix!==void 0?u.suffix:``),C=Lu[b],w=/[defgprs%]/.test(b);v=v===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v));function T(e){var n=x,r=S,o,u,m;if(b===`c`)r=C(e)+r,e=``;else{e=+e;var T=e<0||1/e<0;if(e=isNaN(e)?l:C(Math.abs(e),v),y&&(e=xle(e)),T&&+e==0&&p!==`+`&&(T=!1),n=(T?p===`(`?p:s:p===`-`||p===`(`?``:p)+n,r=(b===`s`&&!isNaN(e)&&Iu!==void 0?zu[8+Iu/3]:``)+r+(T&&p===`(`?`)`:``),w){for(o=-1,u=e.length;++o<u;)if(m=e.charCodeAt(o),48>m||m>57){r=(m===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}_&&!h&&(e=t(e,1/0));var E=n.length+e.length+r.length,D=E<g?Array(g-E+1).join(d):``;switch(_&&h&&(e=t(D+e,D.length?g-r.length:1/0),D=``),f){case`<`:e=n+e+r+D;break;case`=`:e=n+D+e+r;break;case`^`:e=D.slice(0,E=D.length>>1)+n+e+r+D.slice(E);break;default:e=D+n+e+r}return a(e)}return T.toString=function(){return e+``},T}function d(e,t){var n=Math.max(-8,Math.min(8,Math.floor(Mu(t)/3)))*3,r=10**-n,i=u((e=Pu(e),e.type=`f`,e),{suffix:zu[8+n/3]});return function(e){return i(r*e)}}return{format:u,formatPrefix:d}}var Ru,zu,jle=o((()=>{Nu(),gle(),vle(),ble(),Sle(),Dle(),wle(),kle(),Ru=Array.prototype.map,zu=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`]}));function Mle(e){return Bu=Ale(e),Vu=Bu.format,Nle=Bu.formatPrefix,Bu}var Bu,Vu,Nle,Ple=o((()=>{jle(),Mle({thousands:`,`,grouping:[3],currency:[`$`,``]})}));function Fle(e){return Math.max(0,-Mu(Math.abs(e)))}var Ile=o((()=>{Nu()}));function Lle(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Mu(t)/3)))*3-Mu(Math.abs(e)))}var Rle=o((()=>{Nu()}));function zle(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Mu(t)-Mu(e))+1}var Ble=o((()=>{Nu()})),Hu=o((()=>{Ple(),jle(),ble(),Ile(),Rle(),Ble()})),Vle=o((()=>{xc()}));function Hle(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function Ule(){return this.eachAfter(Hle)}var Wle=o((()=>{}));function Gle(e,t){let n=-1;for(let r of this)e.call(t,r,++n,this);return this}var Kle=o((()=>{}));function qle(e,t){for(var n=this,r=[n],i,a,o=-1;n=r.pop();)if(e.call(t,n,++o,this),i=n.children)for(a=i.length-1;a>=0;--a)r.push(i[a]);return this}var Jle=o((()=>{}));function Yle(e,t){for(var n=this,r=[n],i=[],a,o,s,l=-1;n=r.pop();)if(i.push(n),a=n.children)for(o=0,s=a.length;o<s;++o)r.push(a[o]);for(;n=i.pop();)e.call(t,n,++l,this);return this}var Xle=o((()=>{}));function Zle(e,t){let n=-1;for(let r of this)if(e.call(t,r,++n,this))return r}var Qle=o((()=>{}));function $le(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})}var eue=o((()=>{}));function tue(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}var nue=o((()=>{}));function rue(e){for(var t=this,n=iue(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function iue(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}var aue=o((()=>{}));function oue(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}var sue=o((()=>{}));function cue(){return Array.from(this)}var lue=o((()=>{}));function uue(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}var due=o((()=>{}));function fue(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}var pue=o((()=>{}));function*mue(){var e=this,t,n=[e],r,i,a;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,a=r.length;i<a;++i)n.push(r[i]);while(n.length)}var hue=o((()=>{}));function Uu(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=vue)):t===void 0&&(t=_ue);for(var n=new Wu(e),r,i=[n],a,o,s,l;r=i.pop();)if((o=t(r.data))&&(l=(o=Array.from(o)).length))for(r.children=o,s=l-1;s>=0;--s)i.push(a=o[s]=new Wu(o[s])),a.parent=r,a.depth=r.depth+1;return n.eachBefore(bue)}function gue(){return Uu(this).eachBefore(yue)}function _ue(e){return e.children}function vue(e){return Array.isArray(e)?e[1]:null}function yue(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function bue(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function Wu(e){this.data=e,this.depth=this.height=0,this.parent=null}var xue=o((()=>{Wle(),Kle(),Jle(),Xle(),Qle(),eue(),nue(),aue(),sue(),lue(),due(),pue(),hue(),Wu.prototype=Uu.prototype={constructor:Wu,count:Ule,each:Gle,eachAfter:Yle,eachBefore:qle,find:Zle,sum:$le,sort:tue,path:rue,ancestors:oue,descendants:cue,leaves:uue,links:fue,copy:gue,[Symbol.iterator]:mue}}));function Sue(e){if(typeof e!=`function`)throw Error();return e}var Cue=o((()=>{}));function Gu(){return 0}function Ku(e){return function(){return e}}var wue=o((()=>{}));function Tue(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}var Eue=o((()=>{}));function Due(e,t,n,r,i){for(var a=e.children,o,s=-1,l=a.length,u=e.value&&(r-t)/e.value;++s<l;)o=a[s],o.y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*u}var Oue=o((()=>{}));function kue(e,t,n,r,i){for(var a=e.children,o,s=-1,l=a.length,u=e.value&&(i-n)/e.value;++s<l;)o=a[s],o.x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*u}var Aue=o((()=>{}));function jue(e,t,n,r,i,a){for(var o=[],s=t.children,l,u,d=0,f=0,p=s.length,m,h,g=t.value,_,v,y,b,x,S,C;d<p;){m=i-n,h=a-r;do _=s[f++].value;while(!_&&f<p);for(v=y=_,S=Math.max(h/m,m/h)/(g*e),C=_*_*S,x=Math.max(y/C,C/v);f<p;++f){if(_+=u=s[f].value,u<v&&(v=u),u>y&&(y=u),C=_*_*S,b=Math.max(y/C,C/v),b>x){_-=u;break}x=b}o.push(l={value:_,dice:m<h,children:s.slice(d,f)}),l.dice?Due(l,n,r,i,g?r+=h*_/g:a):kue(l,n,r,g?n+=m*_/g:i,a),g-=_,d=f}return o}var Mue,Nue,Pue=o((()=>{Oue(),Aue(),Mue=(1+Math.sqrt(5))/2,Nue=(function e(t){function n(e,n,r,i,a){jue(t,e,n,r,i,a)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n})(Mue)}));function Fue(){var e=Nue,t=!1,n=1,r=1,i=[0],a=Gu,o=Gu,s=Gu,l=Gu,u=Gu;function d(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(f),i=[0],t&&e.eachBefore(Tue),e}function f(t){var n=i[t.depth],r=t.x0+n,d=t.y0+n,f=t.x1-n,p=t.y1-n;f<r&&(r=f=(r+f)/2),p<d&&(d=p=(d+p)/2),t.x0=r,t.y0=d,t.x1=f,t.y1=p,t.children&&(n=i[t.depth+1]=a(t)/2,r+=u(t)-n,d+=o(t)-n,f-=s(t)-n,p-=l(t)-n,f<r&&(r=f=(r+f)/2),p<d&&(d=p=(d+p)/2),e(t,r,d,f,p))}return d.round=function(e){return arguments.length?(t=!!e,d):t},d.size=function(e){return arguments.length?(n=+e[0],r=+e[1],d):[n,r]},d.tile=function(t){return arguments.length?(e=Sue(t),d):e},d.padding=function(e){return arguments.length?d.paddingInner(e).paddingOuter(e):d.paddingInner()},d.paddingInner=function(e){return arguments.length?(a=typeof e==`function`?e:Ku(+e),d):a},d.paddingOuter=function(e){return arguments.length?d.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):d.paddingTop()},d.paddingTop=function(e){return arguments.length?(o=typeof e==`function`?e:Ku(+e),d):o},d.paddingRight=function(e){return arguments.length?(s=typeof e==`function`?e:Ku(+e),d):s},d.paddingBottom=function(e){return arguments.length?(l=typeof e==`function`?e:Ku(+e),d):l},d.paddingLeft=function(e){return arguments.length?(u=typeof e==`function`?e:Ku(+e),d):u},d}var Iue=o((()=>{Eue(),Pue(),Cue(),wue()})),Lue=o((()=>{xue(),wue(),Eue(),Oue(),Iue(),Aue(),Pue()})),Rue=o((()=>{})),zue=o((()=>{}));function qu(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var Ju=o((()=>{}));function Yu(){var e=new _c,t=[],n=[],r=Xu;function i(i){let a=e.get(i);if(a===void 0){if(r!==Xu)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new _c;for(let r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return Yu(t,n).unknown(r)},qu.apply(i,arguments),i}var Xu,Bue=o((()=>{xc(),Ju(),Xu=Symbol(`implicit`)}));function Zu(){var e=Yu().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,l=0,u=0,d=.5;delete e.unknown;function f(){var e=t().length,f=i<r,p=f?i:r,m=f?r:i;a=(m-p)/Math.max(1,e-l+u*2),s&&(a=Math.floor(a)),p+=(m-p-a*(e-l))*d,o=a*(1-l),s&&(p=Math.round(p),o=Math.round(o));var h=lre(e).map(function(e){return p+a*e});return n(f?h.reverse():h)}return e.domain=function(e){return arguments.length?(t(e),f()):t()},e.range=function(e){return arguments.length?([r,i]=e,r=+r,i=+i,f()):[r,i]},e.rangeRound=function(e){return[r,i]=e,r=+r,i=+i,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(e){return arguments.length?(s=!!e,f()):s},e.padding=function(e){return arguments.length?(l=Math.min(1,u=+e),f()):l},e.paddingInner=function(e){return arguments.length?(l=Math.min(1,e),f()):l},e.paddingOuter=function(e){return arguments.length?(u=+e,f()):u},e.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),f()):d},e.copy=function(){return Zu(t(),[r,i]).round(s).paddingInner(l).paddingOuter(u).align(d)},qu.apply(f(),arguments)}var Vue=o((()=>{xc(),Ju(),Bue()}));function Hue(e){return function(){return e}}var Uue=o((()=>{}));function Wue(e){return+e}var Gue=o((()=>{}));function Qu(e){return e}function $u(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Hue(isNaN(t)?NaN:.5)}function Kue(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function que(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=$u(i,r),a=n(o,a)):(r=$u(r,i),a=n(a,o)),function(e){return a(r(e))}}function Jue(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=$u(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=qne(e,t,1,r)-1;return a[n](i[n](t))}}function Yue(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Xue(){var e=ed,t=ed,n=Kl,r,i,a,o=Qu,s,l,u;function d(){var n=Math.min(e.length,t.length);return o!==Qu&&(o=Kue(e[0],e[n-1])),s=n>2?Jue:que,l=u=null,f}function f(i){return i==null||isNaN(i=+i)?a:(l||=s(e.map(r),t,n))(r(o(i)))}return f.invert=function(n){return o(i((u||=s(t,e.map(r),Hl))(n)))},f.domain=function(t){return arguments.length?(e=Array.from(t,Wue),d()):e.slice()},f.range=function(e){return arguments.length?(t=Array.from(e),d()):t.slice()},f.rangeRound=function(e){return t=Array.from(e),n=Koe,d()},f.clamp=function(e){return arguments.length?(o=e?!0:Qu,d()):o!==Qu},f.interpolate=function(e){return arguments.length?(n=e,d()):n},f.unknown=function(e){return arguments.length?(a=e,f):a},function(e,t){return r=e,i=t,d()}}function Zue(){return Xue()(Qu,Qu)}var ed,td=o((()=>{xc(),Zl(),Uue(),Gue(),ed=[0,1]}));function Que(e,t,n,r){var i=bc(e,t,n),a;switch(r=Pu(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=Lle(i,o))&&(r.precision=a),Nle(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=zle(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=Fle(i))&&(r.precision=a-(r.type===`%`)*2)}return Vu(r)}var $ue=o((()=>{xc(),Hu()}));function ede(e){var t=e.domain;return e.ticks=function(e){var n=t();return ere(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return Que(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],l,u,d=10;for(s<o&&(u=o,o=s,s=u,u=i,i=a,a=u);d-->0;){if(u=yc(o,s,n),u===l)return r[i]=o,r[a]=s,t(r);if(u>0)o=Math.floor(o/u)*u,s=Math.ceil(s/u)*u;else if(u<0)o=Math.ceil(o*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function nd(){var e=Zue();return e.copy=function(){return Yue(e,nd())},qu.apply(e,arguments),ede(e)}var tde=o((()=>{xc(),td(),Ju(),$ue()}));function nde(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}var rde=o((()=>{}));function rd(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=n=>rd(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e){if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}}),n&&(i.count=(t,r)=>(id.setTime(+t),ad.setTime(+r),e(id),e(ad),Math.floor(n(id,ad))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var id,ad,od=o((()=>{id=new Date,ad=new Date})),sd,ide=o((()=>{od(),sd=rd(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e),sd.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?rd(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):sd),sd.range})),cd,ld,ud,dd,fd,pd,md,hd=o((()=>{cd=1e3,ld=cd*60,ud=ld*60,dd=ud*24,fd=dd*7,pd=dd*30,md=dd*365})),gd,ade=o((()=>{od(),hd(),gd=rd(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*cd)},(e,t)=>(t-e)/cd,e=>e.getUTCSeconds()),gd.range})),_d,vd,ode=o((()=>{od(),hd(),_d=rd(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*cd)},(e,t)=>{e.setTime(+e+t*ld)},(e,t)=>(t-e)/ld,e=>e.getMinutes()),_d.range,vd=rd(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ld)},(e,t)=>(t-e)/ld,e=>e.getUTCMinutes()),vd.range})),yd,bd,sde=o((()=>{od(),hd(),yd=rd(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*cd-e.getMinutes()*ld)},(e,t)=>{e.setTime(+e+t*ud)},(e,t)=>(t-e)/ud,e=>e.getHours()),yd.range,bd=rd(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ud)},(e,t)=>(t-e)/ud,e=>e.getUTCHours()),bd.range})),xd,Sd,Cd,cde=o((()=>{od(),hd(),xd=rd(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ld)/dd,e=>e.getDate()-1),xd.range,Sd=rd(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/dd,e=>e.getUTCDate()-1),Sd.range,Cd=rd(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/dd,e=>Math.floor(e/dd)),Cd.range}));function wd(e){return rd(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ld)/fd)}function Td(e){return rd(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/fd)}var Ed,Dd,Od,kd,Ad,jd,Md,Nd,Pd,lde,ude,Fd,dde,fde,pde=o((()=>{od(),hd(),Ed=wd(0),Dd=wd(1),Od=wd(2),kd=wd(3),Ad=wd(4),jd=wd(5),Md=wd(6),Ed.range,Dd.range,Od.range,kd.range,Ad.range,jd.range,Md.range,Nd=Td(0),Pd=Td(1),lde=Td(2),ude=Td(3),Fd=Td(4),dde=Td(5),fde=Td(6),Nd.range,Pd.range,lde.range,ude.range,Fd.range,dde.range,fde.range})),Id,Ld,mde=o((()=>{od(),Id=rd(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth()),Id.range,Ld=rd(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth()),Ld.range})),Rd,zd,hde=o((()=>{od(),Rd=rd(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear()),Rd.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:rd(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),Rd.range,zd=rd(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear()),zd.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:rd(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),zd.range}));function gde(e,t,n,r,i,a){let o=[[gd,1,cd],[gd,5,5*cd],[gd,15,15*cd],[gd,30,30*cd],[a,1,ld],[a,5,5*ld],[a,15,15*ld],[a,30,30*ld],[i,1,ud],[i,3,3*ud],[i,6,6*ud],[i,12,12*ud],[r,1,dd],[r,2,2*dd],[n,1,fd],[t,1,pd],[t,3,3*pd],[e,1,md]];function s(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&typeof n.range==`function`?n:l(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a}function l(t,n,r){let i=Math.abs(n-t)/r,a=hc(([,,e])=>e).right(o,i);if(a===o.length)return e.every(bc(t/md,n/md,r));if(a===0)return sd.every(Math.max(bc(t,n,r),1));let[s,l]=o[i/o[a-1][2]<o[a][2]/i?a-1:a];return s.every(l)}return[s,l]}var _de,vde,yde,bde,xde=o((()=>{xc(),hd(),ide(),ade(),ode(),sde(),cde(),pde(),mde(),hde(),[_de,vde]=gde(zd,Ld,Nd,Cd,bd,vd),[yde,bde]=gde(Rd,Id,Ed,xd,yd,_d)})),Bd=o((()=>{od(),ide(),ade(),ode(),sde(),cde(),pde(),mde(),hde(),xde()}));function Vd(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Hd(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Ud(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Sde(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,l=e.shortMonths,u=Gd(i),d=Kd(i),f=Gd(a),p=Kd(a),m=Gd(o),h=Kd(o),g=Gd(s),_=Kd(s),v=Gd(l),y=Kd(l),b={a:P,A:F,b:I,B:L,c:null,d:Wde,e:Wde,f:Yde,g:ofe,G:cfe,H:Gde,I:Kde,j:qde,L:Jde,m:Xde,M:Zde,p:R,q:ee,Q:jfe,s:Mfe,S:Qde,u:$de,U:efe,V:nfe,w:rfe,W:ife,x:null,X:null,y:afe,Y:sfe,Z:lfe,"%":Afe},x={a:z,A:B,b:te,B:ne,c:null,d:ufe,e:ufe,f:hfe,g:Efe,G:Ofe,H:dfe,I:ffe,j:pfe,L:mfe,m:gfe,M:_fe,p:re,q:ie,Q:jfe,s:Mfe,S:vfe,u:yfe,U:bfe,V:Sfe,w:Cfe,W:wfe,x:null,X:null,y:Tfe,Y:Dfe,Z:kfe,"%":Afe},S={a:D,A:O,b:k,B:A,c:j,d:Pde,e:Pde,f:Bde,g:Ade,G:kde,H:Ide,I:Ide,j:Fde,L:zde,m:Nde,M:Lde,p:E,q:Mde,Q:Hde,s:Ude,S:Rde,u:Tde,U:Ede,V:Dde,w:wde,W:Ode,x:M,X:N,y:Ade,Y:kde,Z:jde,"%":Vde};b.x=C(n,b),b.X=C(r,b),b.c=C(t,b),x.x=C(n,x),x.X=C(r,x),x.c=C(t,x);function C(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,l,u;for(n instanceof Date||(n=new Date(+n));++i<o;)e.charCodeAt(i)===37&&(r.push(e.slice(a,i)),(l=qd[s=e.charAt(++i)])==null?l=s===`e`?` `:`0`:s=e.charAt(++i),(u=t[s])&&(s=u(n,l)),r.push(s),a=i+1);return r.push(e.slice(a,i)),r.join(``)}}function w(e,t){return function(n){var r=Ud(1900,void 0,1),i=T(r,e,n+=``,0),a,o;if(i!=n.length)return null;if(`Q`in r)return new Date(r.Q);if(`s`in r)return new Date(r.s*1e3+(`L`in r?r.L:0));if(t&&!(`Z`in r)&&(r.Z=0),`p`in r&&(r.H=r.H%12+r.p*12),r.m===void 0&&(r.m=`q`in r?r.q:0),`V`in r){if(r.V<1||r.V>53)return null;`w`in r||(r.w=1),`Z`in r?(a=Hd(Ud(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?Pd.ceil(a):Pd(a),a=Sd.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=Vd(Ud(r.y,0,1)),o=a.getDay(),a=o>4||o===0?Dd.ceil(a):Dd(a),a=xd.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else(`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),o=`Z`in r?Hd(Ud(r.y,0,1)).getUTCDay():Vd(Ud(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,Hd(r)):Vd(r)}}function T(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,l;i<a;){if(r>=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),l=S[s in qd?t.charAt(i++):s],!l||(r=l(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function E(e,t,n){var r=u.exec(t.slice(n));return r?(e.p=d.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=m.exec(t.slice(n));return r?(e.w=h.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=p.get(r[0].toLowerCase()),n+r[0].length):-1}function k(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=y.get(r[0].toLowerCase()),n+r[0].length):-1}function A(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=_.get(r[0].toLowerCase()),n+r[0].length):-1}function j(e,n,r){return T(e,t,n,r)}function M(e,t,r){return T(e,n,t,r)}function N(e,t,n){return T(e,r,t,n)}function P(e){return o[e.getDay()]}function F(e){return a[e.getDay()]}function I(e){return l[e.getMonth()]}function L(e){return s[e.getMonth()]}function R(e){return i[+(e.getHours()>=12)]}function ee(e){return 1+~~(e.getMonth()/3)}function z(e){return o[e.getUTCDay()]}function B(e){return a[e.getUTCDay()]}function te(e){return l[e.getUTCMonth()]}function ne(e){return s[e.getUTCMonth()]}function re(e){return i[+(e.getUTCHours()>=12)]}function ie(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=C(e+=``,b);return t.toString=function(){return e},t},parse:function(e){var t=w(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=C(e+=``,x);return t.toString=function(){return e},t},utcParse:function(e){var t=w(e+=``,!0);return t.toString=function(){return e},t}}}function Wd(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function Cde(e){return e.replace(Pfe,`\\$&`)}function Gd(e){return RegExp(`^(?:`+e.map(Cde).join(`|`)+`)`,`i`)}function Kd(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function wde(e,t,n){var r=Jd.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Tde(e,t,n){var r=Jd.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Ede(e,t,n){var r=Jd.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Dde(e,t,n){var r=Jd.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Ode(e,t,n){var r=Jd.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function kde(e,t,n){var r=Jd.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Ade(e,t,n){var r=Jd.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function jde(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function Mde(e,t,n){var r=Jd.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Nde(e,t,n){var r=Jd.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Pde(e,t,n){var r=Jd.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Fde(e,t,n){var r=Jd.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Ide(e,t,n){var r=Jd.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Lde(e,t,n){var r=Jd.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Rde(e,t,n){var r=Jd.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function zde(e,t,n){var r=Jd.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Bde(e,t,n){var r=Jd.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Vde(e,t,n){var r=Nfe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Hde(e,t,n){var r=Jd.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Ude(e,t,n){var r=Jd.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Wde(e,t){return Wd(e.getDate(),t,2)}function Gde(e,t){return Wd(e.getHours(),t,2)}function Kde(e,t){return Wd(e.getHours()%12||12,t,2)}function qde(e,t){return Wd(1+xd.count(Rd(e),e),t,3)}function Jde(e,t){return Wd(e.getMilliseconds(),t,3)}function Yde(e,t){return Jde(e,t)+`000`}function Xde(e,t){return Wd(e.getMonth()+1,t,2)}function Zde(e,t){return Wd(e.getMinutes(),t,2)}function Qde(e,t){return Wd(e.getSeconds(),t,2)}function $de(e){var t=e.getDay();return t===0?7:t}function efe(e,t){return Wd(Ed.count(Rd(e)-1,e),t,2)}function tfe(e){var t=e.getDay();return t>=4||t===0?Ad(e):Ad.ceil(e)}function nfe(e,t){return e=tfe(e),Wd(Ad.count(Rd(e),e)+(Rd(e).getDay()===4),t,2)}function rfe(e){return e.getDay()}function ife(e,t){return Wd(Dd.count(Rd(e)-1,e),t,2)}function afe(e,t){return Wd(e.getFullYear()%100,t,2)}function ofe(e,t){return e=tfe(e),Wd(e.getFullYear()%100,t,2)}function sfe(e,t){return Wd(e.getFullYear()%1e4,t,4)}function cfe(e,t){var n=e.getDay();return e=n>=4||n===0?Ad(e):Ad.ceil(e),Wd(e.getFullYear()%1e4,t,4)}function lfe(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+Wd(t/60|0,`0`,2)+Wd(t%60,`0`,2)}function ufe(e,t){return Wd(e.getUTCDate(),t,2)}function dfe(e,t){return Wd(e.getUTCHours(),t,2)}function ffe(e,t){return Wd(e.getUTCHours()%12||12,t,2)}function pfe(e,t){return Wd(1+Sd.count(zd(e),e),t,3)}function mfe(e,t){return Wd(e.getUTCMilliseconds(),t,3)}function hfe(e,t){return mfe(e,t)+`000`}function gfe(e,t){return Wd(e.getUTCMonth()+1,t,2)}function _fe(e,t){return Wd(e.getUTCMinutes(),t,2)}function vfe(e,t){return Wd(e.getUTCSeconds(),t,2)}function yfe(e){var t=e.getUTCDay();return t===0?7:t}function bfe(e,t){return Wd(Nd.count(zd(e)-1,e),t,2)}function xfe(e){var t=e.getUTCDay();return t>=4||t===0?Fd(e):Fd.ceil(e)}function Sfe(e,t){return e=xfe(e),Wd(Fd.count(zd(e),e)+(zd(e).getUTCDay()===4),t,2)}function Cfe(e){return e.getUTCDay()}function wfe(e,t){return Wd(Pd.count(zd(e)-1,e),t,2)}function Tfe(e,t){return Wd(e.getUTCFullYear()%100,t,2)}function Efe(e,t){return e=xfe(e),Wd(e.getUTCFullYear()%100,t,2)}function Dfe(e,t){return Wd(e.getUTCFullYear()%1e4,t,4)}function Ofe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Fd(e):Fd.ceil(e),Wd(e.getUTCFullYear()%1e4,t,4)}function kfe(){return`+0000`}function Afe(){return`%`}function jfe(e){return+e}function Mfe(e){return Math.floor(e/1e3)}var qd,Jd,Nfe,Pfe,Ffe=o((()=>{Bd(),qd={"-":``,_:` `,0:`0`},Jd=/^\s*\d+/,Nfe=/^%/,Pfe=/[\\^$*+?|[\]().{}]/g}));function Ife(e){return Yd=Sde(e),Xd=Yd.format,Lfe=Yd.parse,Rfe=Yd.utcFormat,zfe=Yd.utcParse,Yd}var Yd,Xd,Lfe,Rfe,zfe,Bfe=o((()=>{Ffe(),Ife({dateTime:`%x, %X`,date:`%-m/%-d/%Y`,time:`%-I:%M:%S %p`,periods:[`AM`,`PM`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]})})),Zd=o((()=>{Bfe(),Ffe()}));function Vfe(e){return new Date(e)}function Hfe(e){return e instanceof Date?+e:+new Date(+e)}function Ufe(e,t,n,r,i,a,o,s,l,u){var d=Zue(),f=d.invert,p=d.domain,m=u(`.%L`),h=u(`:%S`),g=u(`%I:%M`),_=u(`%I %p`),v=u(`%a %d`),y=u(`%b %d`),b=u(`%B`),x=u(`%Y`);function S(e){return(l(e)<e?m:s(e)<e?h:o(e)<e?g:a(e)<e?_:r(e)<e?i(e)<e?v:y:n(e)<e?b:x)(e)}return d.invert=function(e){return new Date(f(e))},d.domain=function(e){return arguments.length?p(Array.from(e,Hfe)):p().map(Vfe)},d.ticks=function(t){var n=p();return e(n[0],n[n.length-1],t??10)},d.tickFormat=function(e,t){return t==null?S:u(t)},d.nice=function(e){var n=p();return(!e||typeof e.range!=`function`)&&(e=t(n[0],n[n.length-1],e??10)),e?p(nde(n,e)):d},d.copy=function(){return Yue(d,Ufe(e,t,n,r,i,a,o,s,l,u))},d}function Wfe(){return qu.apply(Ufe(yde,bde,Rd,Id,Ed,xd,yd,_d,gd,Xd).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var Gfe=o((()=>{Bd(),Zd(),td(),Ju(),rde()})),Kfe=o((()=>{Vue(),tde(),Gue(),xc(),Hu(),rde(),td(),Bue(),Gfe(),Bd(),Zd(),Zl(),$ue()}));function qfe(e){for(var t=e.length/6|0,n=Array(t),r=0;r<t;)n[r]=`#`+e.slice(r*6,++r*6);return n}var Jfe=o((()=>{})),Yfe,Xfe=o((()=>{Jfe(),Yfe=qfe(`4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab`)})),Zfe=o((()=>{Jfe(),Xfe(),Zl(),Il()}));function Qd(e){return function(){return e}}var $d=o((()=>{}));function Qfe(e){return e>1?0:e<-1?sf:Math.acos(e)}function $fe(e){return e>=1?cf:e<=-1?-cf:Math.asin(e)}var ef,tf,nf,epe,rf,af,of,sf,cf,lf,uf=o((()=>{ef=Math.abs,tf=Math.atan2,nf=Math.cos,epe=Math.max,rf=Math.min,af=Math.sin,of=Math.sqrt,sf=Math.PI,cf=sf/2,lf=2*sf}));function df(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new Ou(t)}var ff=o((()=>{ku()}));function tpe(e){return e.innerRadius}function npe(e){return e.outerRadius}function rpe(e){return e.startAngle}function ipe(e){return e.endAngle}function ape(e){return e&&e.padAngle}function ope(e,t,n,r,i,a,o,s){var l=n-e,u=r-t,d=o-i,f=s-a,p=f*l-d*u;if(!(p*p<1e-12))return p=(d*(t-a)-f*(e-i))/p,[e+p*l,t+p*u]}function pf(e,t,n,r,i,a,o){var s=e-n,l=t-r,u=(o?a:-a)/of(s*s+l*l),d=u*l,f=-u*s,p=e+d,m=t+f,h=n+d,g=r+f,_=(p+h)/2,v=(m+g)/2,y=h-p,b=g-m,x=y*y+b*b,S=i-a,C=p*g-h*m,w=(b<0?-1:1)*of(epe(0,S*S*x-C*C)),T=(C*b-y*w)/x,E=(-C*y-b*w)/x,D=(C*b+y*w)/x,O=(-C*y+b*w)/x,k=T-_,A=E-v,j=D-_,M=O-v;return k*k+A*A>j*j+M*M&&(T=D,E=O),{cx:T,cy:E,x01:-d,y01:-f,x11:T*(i/S-1),y11:E*(i/S-1)}}function mf(){var e=tpe,t=npe,n=Qd(0),r=null,i=rpe,a=ipe,o=ape,s=null,l=df(u);function u(){var u,d,f=+e.apply(this,arguments),p=+t.apply(this,arguments),m=i.apply(this,arguments)-cf,h=a.apply(this,arguments)-cf,g=ef(h-m),_=h>m;if(s||=u=l(),p<f&&(d=p,p=f,f=d),!(p>1e-12))s.moveTo(0,0);else if(g>lf-1e-12)s.moveTo(p*nf(m),p*af(m)),s.arc(0,0,p,m,h,!_),f>1e-12&&(s.moveTo(f*nf(h),f*af(h)),s.arc(0,0,f,h,m,_));else{var v=m,y=h,b=m,x=h,S=g,C=g,w=o.apply(this,arguments)/2,T=w>1e-12&&(r?+r.apply(this,arguments):of(f*f+p*p)),E=rf(ef(p-f)/2,+n.apply(this,arguments)),D=E,O=E,k,A;if(T>1e-12){var j=$fe(T/f*af(w)),M=$fe(T/p*af(w));(S-=j*2)>1e-12?(j*=_?1:-1,b+=j,x-=j):(S=0,b=x=(m+h)/2),(C-=M*2)>1e-12?(M*=_?1:-1,v+=M,y-=M):(C=0,v=y=(m+h)/2)}var N=p*nf(v),P=p*af(v),F=f*nf(x),I=f*af(x);if(E>1e-12){var L=p*nf(y),R=p*af(y),ee=f*nf(b),z=f*af(b),B;if(g<sf){if(B=ope(N,P,ee,z,L,R,F,I)){var te=N-B[0],ne=P-B[1],re=L-B[0],ie=R-B[1],ae=1/af(Qfe((te*re+ne*ie)/(of(te*te+ne*ne)*of(re*re+ie*ie)))/2),oe=of(B[0]*B[0]+B[1]*B[1]);D=rf(E,(f-oe)/(ae-1)),O=rf(E,(p-oe)/(ae+1))}else D=O=0}}C>1e-12?O>1e-12?(k=pf(ee,z,N,P,p,O,_),A=pf(L,R,F,I,p,O,_),s.moveTo(k.cx+k.x01,k.cy+k.y01),O<E?s.arc(k.cx,k.cy,O,tf(k.y01,k.x01),tf(A.y01,A.x01),!_):(s.arc(k.cx,k.cy,O,tf(k.y01,k.x01),tf(k.y11,k.x11),!_),s.arc(0,0,p,tf(k.cy+k.y11,k.cx+k.x11),tf(A.cy+A.y11,A.cx+A.x11),!_),s.arc(A.cx,A.cy,O,tf(A.y11,A.x11),tf(A.y01,A.x01),!_))):(s.moveTo(N,P),s.arc(0,0,p,v,y,!_)):s.moveTo(N,P),!(f>1e-12)||!(S>1e-12)?s.lineTo(F,I):D>1e-12?(k=pf(F,I,L,R,f,-D,_),A=pf(N,P,ee,z,f,-D,_),s.lineTo(k.cx+k.x01,k.cy+k.y01),D<E?s.arc(k.cx,k.cy,D,tf(k.y01,k.x01),tf(A.y01,A.x01),!_):(s.arc(k.cx,k.cy,D,tf(k.y01,k.x01),tf(k.y11,k.x11),!_),s.arc(0,0,f,tf(k.cy+k.y11,k.cx+k.x11),tf(A.cy+A.y11,A.cx+A.x11),_),s.arc(A.cx,A.cy,D,tf(A.y11,A.x11),tf(A.y01,A.x01),!_))):s.arc(0,0,f,x,b,_)}if(s.closePath(),u)return s=null,u+``||null}return u.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-sf/2;return[nf(r)*n,af(r)*n]},u.innerRadius=function(t){return arguments.length?(e=typeof t==`function`?t:Qd(+t),u):e},u.outerRadius=function(e){return arguments.length?(t=typeof e==`function`?e:Qd(+e),u):t},u.cornerRadius=function(e){return arguments.length?(n=typeof e==`function`?e:Qd(+e),u):n},u.padRadius=function(e){return arguments.length?(r=e==null?null:typeof e==`function`?e:Qd(+e),u):r},u.startAngle=function(e){return arguments.length?(i=typeof e==`function`?e:Qd(+e),u):i},u.endAngle=function(e){return arguments.length?(a=typeof e==`function`?e:Qd(+e),u):a},u.padAngle=function(e){return arguments.length?(o=typeof e==`function`?e:Qd(+e),u):o},u.context=function(e){return arguments.length?(s=e??null,u):s},u}var spe=o((()=>{$d(),uf(),ff()}));function hf(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}var gf=o((()=>{Array.prototype.slice}));function _f(e){this._context=e}function vf(e){return new _f(e)}var yf=o((()=>{_f.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}}}));function cpe(e){return e[0]}function lpe(e){return e[1]}var upe=o((()=>{}));function bf(e,t){var n=Qd(!0),r=null,i=vf,a=null,o=df(s);e=typeof e==`function`?e:e===void 0?cpe:Qd(e),t=typeof t==`function`?t:t===void 0?lpe:Qd(t);function s(s){var l,u=(s=hf(s)).length,d,f=!1,p;for(r??(a=i(p=o())),l=0;l<=u;++l)!(l<u&&n(d=s[l],l,s))===f&&((f=!f)?a.lineStart():a.lineEnd()),f&&a.point(+e(d,l,s),+t(d,l,s));if(p)return a=null,p+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:Qd(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:Qd(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:Qd(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}var dpe=o((()=>{gf(),$d(),yf(),ff(),upe()}));function fpe(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}var ppe=o((()=>{}));function mpe(e){return e}var hpe=o((()=>{}));function gpe(){var e=mpe,t=fpe,n=null,r=Qd(0),i=Qd(lf),a=Qd(0);function o(o){var s,l=(o=hf(o)).length,u,d,f=0,p=Array(l),m=Array(l),h=+r.apply(this,arguments),g=Math.min(lf,Math.max(-lf,i.apply(this,arguments)-h)),_,v=Math.min(Math.abs(g)/l,a.apply(this,arguments)),y=v*(g<0?-1:1),b;for(s=0;s<l;++s)(b=m[p[s]=s]=+e(o[s],s,o))>0&&(f+=b);for(t==null?n!=null&&p.sort(function(e,t){return n(o[e],o[t])}):p.sort(function(e,n){return t(m[e],m[n])}),s=0,d=f?(g-l*y)/f:0;s<l;++s,h=_)u=p[s],b=m[u],_=h+(b>0?b*d:0)+y,m[u]={data:o[u],index:s,value:b,startAngle:h,endAngle:_,padAngle:v};return m}return o.value=function(t){return arguments.length?(e=typeof t==`function`?t:Qd(+t),o):e},o.sortValues=function(e){return arguments.length?(t=e,n=null,o):t},o.sort=function(e){return arguments.length?(n=e,t=null,o):n},o.startAngle=function(e){return arguments.length?(r=typeof e==`function`?e:Qd(+e),o):r},o.endAngle=function(e){return arguments.length?(i=typeof e==`function`?e:Qd(+e),o):i},o.padAngle=function(e){return arguments.length?(a=typeof e==`function`?e:Qd(+e),o):a},o}var _pe=o((()=>{gf(),$d(),ppe(),hpe(),uf()}));function xf(e){return new Cf(e,!0)}function Sf(e){return new Cf(e,!1)}var Cf,vpe=o((()=>{Cf=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t)}this._x0=e,this._y0=t}}}));function wf(){}var Tf=o((()=>{}));function Ef(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function Df(e){this._context=e}function Of(e){return new Df(e)}var kf=o((()=>{Df.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Ef(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Ef(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}}));function Af(e){this._context=e}function ype(e){return new Af(e)}var bpe=o((()=>{Tf(),kf(),Af.prototype={areaStart:wf,areaEnd:wf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Ef(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}}));function jf(e){this._context=e}function xpe(e){return new jf(e)}var Spe=o((()=>{kf(),jf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Ef(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}}}));function Mf(e,t){this._basis=new Df(e),this._beta=t}var Nf,Cpe=o((()=>{kf(),Mf.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,l;++s<=n;)l=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+l*a),this._beta*t[s]+(1-this._beta)*(i+l*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}},Nf=(function e(t){function n(e){return t===1?new Df(e):new Mf(e,t)}return n.beta=function(t){return e(+t)},n})(.85)}));function Pf(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function Ff(e,t){this._context=e,this._k=(1-t)/6}var If,Lf=o((()=>{Ff.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Pf(this,this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:Pf(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},If=(function e(t){function n(e){return new Ff(e,t)}return n.tension=function(t){return e(+t)},n})(0)}));function Rf(e,t){this._context=e,this._k=(1-t)/6}var zf,Bf=o((()=>{Tf(),Lf(),Rf.prototype={areaStart:wf,areaEnd:wf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Pf(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},zf=(function e(t){function n(e){return new Rf(e,t)}return n.tension=function(t){return e(+t)},n})(0)}));function Vf(e,t){this._context=e,this._k=(1-t)/6}var Hf,Uf=o((()=>{Lf(),Vf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Pf(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},Hf=(function e(t){function n(e){return new Vf(e,t)}return n.tension=function(t){return e(+t)},n})(0)}));function Wf(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>1e-12){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,l=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>1e-12){var u=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,d=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*u+e._x1*e._l23_2a-t*e._l12_2a)/d,o=(o*u+e._y1*e._l23_2a-n*e._l12_2a)/d}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function Gf(e,t){this._context=e,this._alpha=t}var Kf,qf=o((()=>{uf(),Lf(),Gf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:Wf(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},Kf=(function e(t){function n(e){return t?new Gf(e,t):new Ff(e,0)}return n.alpha=function(t){return e(+t)},n})(.5)}));function Jf(e,t){this._context=e,this._alpha=t}var Yf,wpe=o((()=>{Bf(),Tf(),qf(),Jf.prototype={areaStart:wf,areaEnd:wf,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:Wf(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},Yf=(function e(t){function n(e){return t?new Jf(e,t):new Rf(e,0)}return n.alpha=function(t){return e(+t)},n})(.5)}));function Xf(e,t){this._context=e,this._alpha=t}var Zf,Tpe=o((()=>{Uf(),qf(),Xf.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Wf(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},Zf=(function e(t){function n(e){return t?new Xf(e,t):new Vf(e,0)}return n.alpha=function(t){return e(+t)},n})(.5)}));function Qf(e){this._context=e}function Epe(e){return new Qf(e)}var Dpe=o((()=>{Tf(),Qf.prototype={areaStart:wf,areaEnd:wf,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}}}));function $f(e){return e<0?-1:1}function ep(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return($f(a)+$f(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function tp(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function np(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function rp(e){this._context=e}function ip(e){this._context=new ap(e)}function ap(e){this._context=e}function op(e){return new rp(e)}function sp(e){return new ip(e)}var Ope=o((()=>{rp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:np(this,this._t0,tp(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,np(this,tp(this,n=ep(this,e,t)),n);break;default:np(this,this._t0,n=ep(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(ip.prototype=Object.create(rp.prototype)).point=function(e,t){rp.prototype.point.call(this,t,e)},ap.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}}}));function cp(e){this._context=e}function lp(e){var t,n=e.length-1,r,i=Array(n),a=Array(n),o=Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function up(e){return new cp(e)}var kpe=o((()=>{cp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n){if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=lp(e),i=lp(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o])}(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}}}));function dp(e,t){this._context=e,this._t=t}function fp(e){return new dp(e,.5)}function pp(e){return new dp(e,0)}function mp(e){return new dp(e,1)}var Ape=o((()=>{dp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}}})),jpe=o((()=>{spe(),gf(),$d(),yf(),dpe(),ff(),_pe(),vpe(),uf(),bpe(),Spe(),kf(),Cpe(),Bf(),Uf(),Lf(),wpe(),Tpe(),qf(),Dpe(),Ope(),kpe(),Ape()}));function hp(e,t,n){this.k=e,this.x=t,this.y=n}var gp=o((()=>{hp.prototype={constructor:hp,scale:function(e){return e===1?this:new hp(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new hp(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}},new hp(1,0,0),hp.prototype})),Mpe=o((()=>{Cu(),gp()})),Npe=o((()=>{Mpe(),gp()})),_p=o((()=>{xc(),xre(),nle(),sle(),Il(),cle(),lle(),Mc(),Yae(),ule(),Kce(),dle(),ple(),Hu(),Vle(),Lue(),Zl(),ku(),Rue(),fle(),zue(),Kfe(),Zfe(),tl(),jpe(),Bd(),Zd(),fu(),Cu(),Npe()})),vp,yp=o((()=>{fc(),h(),_p(),vp=p(e=>{let{securityLevel:t}=Z(),n=el(`body`);return t===`sandbox`&&(n=el((el(`#i${e}`).node()?.contentDocument??document).body)),n.select(`#${e}`)},`selectSvgElement`)})),bp,xp,Sp,Cp,wp,Tp,Ep,Dp,Op=o((()=>{fc(),h(),bp=p(e=>{let{handDrawnSeed:t}=Z();return{fill:e,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:e,seed:t}},`solidStateFill`),xp=p(e=>Array.isArray(e)?e:e?e.split(`;`).map(e=>e.trim()).filter(Boolean):[],`normalizeStyleList`),Sp=p(e=>{let t=Cp([...e.cssCompiledStyles||[],...e.cssStyles||[],...xp(e.labelStyle)]);return{stylesMap:t,stylesArray:[...t]}},`compileStyles`),Cp=p(e=>{let t=new Map;return e.forEach(e=>{let[n,r]=e.split(`:`);t.set(n.trim(),r?.trim())}),t},`styles2Map`),wp=p(e=>e===`color`||e===`font-size`||e===`font-family`||e===`font-weight`||e===`font-style`||e===`text-decoration`||e===`text-align`||e===`text-transform`||e===`line-height`||e===`letter-spacing`||e===`word-spacing`||e===`text-shadow`||e===`text-overflow`||e===`white-space`||e===`word-wrap`||e===`word-break`||e===`overflow-wrap`||e===`hyphens`,`isLabelStyle`),Tp=p(e=>{let{stylesArray:t}=Sp(e),n=[],r=[],i=[],a=[];return t.forEach(e=>{let t=e[0];wp(t)?n.push(e.join(`:`)+` !important`):(r.push(e.join(`:`)+` !important`),t.includes(`stroke`)&&i.push(e.join(`:`)+` !important`),t===`fill`&&a.push(e.join(`:`)+` !important`))}),{labelStyles:n.join(`;`),nodeStyles:r.join(`;`),stylesArray:t,borderStyles:i,backgroundStyles:a}},`styles2String`),Ep=p((e,t)=>{let{themeVariables:n,handDrawnSeed:r}=Z(),{nodeBorder:i,mainBkg:a}=n,{stylesMap:o}=Sp(e);return Object.assign({roughness:.7,fill:o.get(`fill`)||a,fillStyle:`hachure`,fillWeight:4,hachureGap:5.2,stroke:o.get(`stroke`)||i,seed:r,strokeWidth:o.get(`stroke-width`)?.replace(`px`,``)||1.3,fillLineDash:[0,0],strokeLineDash:Dp(o.get(`stroke-dasharray`))},t)},`userNodeOverrides`),Dp=p(e=>{if(!e)return[0,0];let t=e.trim().split(/\s+/).map(Number);if(t.length===1){let e=isNaN(t[0])?0:t[0];return[e,e]}return[isNaN(t[0])?0:t[0],isNaN(t[1])?0:t[1]]},`getStrokeDashArray`)})),kp,Ap,jp,Mp,Np=o((()=>{kp=Object.freeze({left:0,top:0,width:16,height:16}),Ap=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),jp=Object.freeze({...kp,...Ap}),Mp=Object.freeze({...jp,body:``,hidden:!1})})),Pp,Fp,Ppe=o((()=>{Np(),Pp=Object.freeze({width:null,height:null}),Fp=Object.freeze({...Pp,...Ap})})),Ip,Lp,Fpe=o((()=>{Ip=(e,t,n,r=``)=>{let i=e.split(`:`);if(e.slice(0,1)===`@`){if(i.length<2||i.length>3)return null;r=i.shift().slice(1)}if(i.length>3||!i.length)return null;if(i.length>1){let e=i.pop(),n=i.pop(),a={provider:i.length>0?i[0]:r,prefix:n,name:e};return t&&!Lp(a)?null:a}let a=i[0],o=a.split(`-`);if(o.length>1){let e={provider:r,prefix:o.shift(),name:o.join(`-`)};return t&&!Lp(e)?null:e}if(n&&r===``){let e={provider:r,prefix:``,name:a};return t&&!Lp(e,n)?null:e}return null},Lp=(e,t)=>e?!!((t&&e.prefix===``||e.prefix)&&e.name):!1}));function Ipe(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}var Lpe=o((()=>{}));function Rpe(e,t){let n=Ipe(e,t);for(let r in Mp)r in Ap?r in e&&!(r in n)&&(n[r]=Ap[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}var zpe=o((()=>{Np(),Lpe()}));function Bpe(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;let t=r[e]&&r[e].parent,n=t&&a(t);n&&(i[e]=[t].concat(n))}return i[e]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(a),i}var Vpe=o((()=>{}));function Hpe(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=Rpe(r[e]||i[e],a)}return o(t),n.forEach(o),Rpe(e,a)}function Upe(e,t){if(e.icons[t])return Hpe(e,t,[]);let n=Bpe(e,[t])[t];return n?Hpe(e,t,n):null}var Wpe=o((()=>{zpe(),Vpe()}));function Gpe(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(Kpe);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=qpe.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}var Kpe,qpe,Jpe=o((()=>{Kpe=/(-?[0-9.]*[0-9]+[0-9.]*)/g,qpe=/^-?[0-9.]*[0-9]+[0-9.]*$/g}));function Ype(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(`</`+t);if(i===-1||a===-1)break;let o=e.indexOf(`>`,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function Xpe(e,t){return e?`<defs>`+e+`</defs>`+t:t}function Zpe(e,t,n){let r=Ype(e);return Xpe(r.defs,t+r.content+n)}var Qpe=o((()=>{}));function $pe(e,t){let n={...jp,...e},r={...Fp,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,o=e.rotate;n?r?o+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(o<0&&(o-=Math.floor(o/4)*4),o%=4,o){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`)}o%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(a=Zpe(a,`<g transform="`+t.join(` `)+`">`,`</g>`))});let o=r.width,s=r.height,l=i.width,u=i.height,d,f;o===null?(f=s===null?`1em`:s===`auto`?u:s,d=Gpe(f,l/u)):(d=o===`auto`?l:o,f=s===null?Gpe(d,u/l):s===`auto`?u:s);let p={},m=(e,t)=>{eme(t)||(p[e]=t.toString())};m(`width`,d),m(`height`,f);let h=[i.left,i.top,l,u];return p.viewBox=h.join(` `),{attributes:p,viewBox:h,body:a}}var eme,tme=o((()=>{Np(),Ppe(),Jpe(),Qpe(),eme=e=>e===`unset`||e===`undefined`||e===`none`}));function nme(e){e=e.replace(/[0-9]+$/,``)||`a`;let t=Rp.get(e)||0;return Rp.set(e,t+1),t?`${e}${t}`:e}function rme(e){let t=[],n;for(;n=ime.exec(e);)t.push(n[1]);if(!t.length)return e;let r=`suffix`+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(t=>{let n=nme(t),i=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);e=e.replace(RegExp(`([#;"])(`+i+`)([")]|\\.[a-z])`,`g`),`$1`+n+r+`$3`)}),e=e.replace(new RegExp(r,`g`),``),e}var ime,Rp,ame=o((()=>{ime=/\sid="(\S+)"/g,Rp=new Map}));function ome(e,t){let n=e.indexOf(`xlink:`)===-1?``:` xmlns:xlink="http://www.w3.org/1999/xlink"`;for(let e in t)n+=` `+e+`="`+t[e]+`"`;return`<svg xmlns="http://www.w3.org/2000/svg"`+n+`>`+e+`</svg>`}var sme=o((()=>{})),cme=o((()=>{Fpe(),Wpe(),tme(),ame(),sme()})),zp,Bp,Vp,Hp,Up,lme,Wp,Gp=o((()=>{fc(),S(),h(),cme(),zp={body:`<g><rect width="80" height="80" style="fill: #087ebf; stroke-width: 0px;"/><text transform="translate(21.16 64.67)" style="fill: #fff; font-family: ArialMT, Arial; font-size: 67.75px;"><tspan x="0" y="0">?</tspan></text></g>`,height:80,width:80},Bp=new Map,Vp=new Map,Hp=p(e=>{for(let t of e){if(!t.name)throw Error(`Invalid icon loader. Must have a "name" property with non-empty string value.`);if(y.debug(`Registering icon pack:`,t.name),`loader`in t)Vp.set(t.name,t.loader);else if(`icons`in t)Bp.set(t.name,t.icons);else throw y.error(`Invalid icon loader:`,t),Error(`Invalid icon loader. Must have either "icons" or "loader" property.`)}},`registerIconPacks`),Up=p(async(e,t)=>{let n=Ip(e,!0,t!==void 0);if(!n)throw Error(`Invalid icon name: ${e}`);let r=n.prefix||t;if(!r)throw Error(`Icon name must contain a prefix: ${e}`);let i=Bp.get(r);if(!i){let e=Vp.get(r);if(!e)throw Error(`Icon set not found: ${n.prefix}`);try{i={...await e(),prefix:r},Bp.set(r,i)}catch(e){throw y.error(e),Error(`Failed to load icon set: ${n.prefix}`)}}let a=Upe(i,n.name);if(!a)throw Error(`Icon not found: ${e}`);return a},`getRegisteredIconData`),lme=p(async e=>{try{return await Up(e),!0}catch{return!1}},`isIconAvailable`),Wp=p(async(e,t,n)=>{let r;try{r=await Up(e,t?.fallbackPrefix)}catch(e){y.error(e),r=zp}let i=$pe(r,t),a=ome(rme(i.body),{...i.attributes,...n});return Ms(a,hs())},`getIconSVG`)})),ume=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BLANK_URL=e.relativeFirstCharacters=e.whitespaceEscapeCharsRegex=e.urlSchemeRegex=e.ctrlCharactersRegex=e.htmlCtrlEntityRegex=e.htmlEntitiesRegex=e.invalidProtocolRegex=void 0,e.invalidProtocolRegex=/^([^\w]*)(javascript|data|vbscript)/im,e.htmlEntitiesRegex=/&#(\w+)(^\w|;)?/g,e.htmlCtrlEntityRegex=/&(newline|tab);/gi,e.ctrlCharactersRegex=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,e.urlSchemeRegex=/^.+(:|:)/gim,e.whitespaceEscapeCharsRegex=/(\\|%5[cC])((%(6[eE]|72|74))|[nrt])/g,e.relativeFirstCharacters=[`.`,`/`],e.BLANK_URL=`about:blank`})),Kp=s((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.sanitizeUrl=o;var t=ume();function n(e){return t.relativeFirstCharacters.indexOf(e[0])>-1}function r(e){return e.replace(t.ctrlCharactersRegex,``).replace(t.htmlEntitiesRegex,function(e,t){return String.fromCharCode(t)})}function i(e){return URL.canParse(e)}function a(e){try{return decodeURIComponent(e)}catch{return e}}function o(e){if(!e)return t.BLANK_URL;var o,s=a(e.trim());do s=r(s).replace(t.htmlCtrlEntityRegex,``).replace(t.ctrlCharactersRegex,``).replace(t.whitespaceEscapeCharsRegex,``).trim(),s=a(s),o=s.match(t.ctrlCharactersRegex)||s.match(t.htmlEntitiesRegex)||s.match(t.htmlCtrlEntityRegex)||s.match(t.whitespaceEscapeCharsRegex);while(o&&o.length>0);var l=s;if(!l)return t.BLANK_URL;if(n(l))return l;var u=l.trimStart(),d=u.match(t.urlSchemeRegex);if(!d)return l;var f=d[0].toLowerCase().trim();if(t.invalidProtocolRegex.test(f))return t.BLANK_URL;var p=u.replace(/\\/g,`/`);if(f===`mailto:`||f.includes(`://`))return p;if(f===`http:`||f===`https:`){if(!i(p))return t.BLANK_URL;var m=new URL(p);return m.protocol=m.protocol.toLowerCase(),m.hostname=m.hostname.toLowerCase(),m.toString()}return p}}));function dme(e){return Array.isArray(e)}var fme=o((()=>{}));function qp(e){if(typeof e!=`object`||!e)return!1;if(Object.getPrototypeOf(e)===null)return!0;if(Object.prototype.toString.call(e)!==`[object Object]`){let t=e[Symbol.toStringTag];return t==null||!Object.getOwnPropertyDescriptor(e,Symbol.toStringTag)?.writable?!1:e.toString()===`[object ${t}]`}let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}var pme=o((()=>{}));function mme(){}var hme=o((()=>{}));function gme(e){return Object.getOwnPropertySymbols(e).filter(t=>Object.prototype.propertyIsEnumerable.call(e,t))}var _me=o((()=>{}));function Jp(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e)}var Yp=o((()=>{})),Xp,Zp,Qp,$p,em,tm,nm,rm,im,am,om,sm,cm,lm,um,dm,fm,pm,mm,hm,gm,_m,vm=o((()=>{Xp=`[object RegExp]`,Zp=`[object String]`,Qp=`[object Number]`,$p=`[object Boolean]`,em=`[object Arguments]`,tm=`[object Symbol]`,nm=`[object Date]`,rm=`[object Map]`,im=`[object Set]`,am=`[object Array]`,om=`[object ArrayBuffer]`,sm=`[object Object]`,cm=`[object DataView]`,lm=`[object Uint8Array]`,um=`[object Uint8ClampedArray]`,dm=`[object Uint16Array]`,fm=`[object Uint32Array]`,pm=`[object Int8Array]`,mm=`[object Int16Array]`,hm=`[object Int32Array]`,gm=`[object Float32Array]`,_m=`[object Float64Array]`})),ym,vme=o((()=>{ym=typeof globalThis==`object`&&globalThis||typeof window==`object`&&window||typeof self==`object`&&self||typeof global==`object`&&global||(function(){return this})()}));function bm(e){return ym.Buffer!==void 0&&ym.Buffer.isBuffer(e)}var xm=o((()=>{vme()}));function yme(e){return Number.isSafeInteger(e)&&e>=0}var bme=o((()=>{}));function xme(e){return e!=null&&typeof e!=`function`&&yme(e.length)}var Sme=o((()=>{bme()}));function Cme(e){return e===`__proto__`}var wme=o((()=>{}));function Sm(e){return e==null||typeof e!=`object`&&typeof e!=`function`}var Cm=o((()=>{}));function wm(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}var Tm=o((()=>{}));function Tme(e,t){return Em(e,void 0,e,new Map,t)}function Em(e,t,n,r=new Map,i=void 0){let a=i?.(e,t,n,r);if(a!==void 0)return a;if(Sm(e))return e;if(r.has(e))return r.get(e);if(Array.isArray(e)){let t=Array(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=Em(e[a],a,n,r,i);return Object.hasOwn(e,`index`)&&(t.index=e.index),Object.hasOwn(e,`input`)&&(t.input=e.input),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp){let t=new RegExp(e.source,e.flags);return t.lastIndex=e.lastIndex,t}if(e instanceof Map){let t=new Map;r.set(e,t);for(let[a,o]of e)t.set(a,Em(o,a,n,r,i));return t}if(e instanceof Set){let t=new Set;r.set(e,t);for(let a of e)t.add(Em(a,void 0,n,r,i));return t}if(bm(e))return e.subarray();if(wm(e)){let t=new(Object.getPrototypeOf(e)).constructor(e.length);r.set(e,t);for(let a=0;a<e.length;a++)t[a]=Em(e[a],a,n,r,i);return t}if(e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);if(e instanceof DataView){let t=new DataView(e.buffer.slice(0),e.byteOffset,e.byteLength);return r.set(e,t),Dm(t,e,n,r,i),t}if(typeof File<`u`&&e instanceof File){let t=new File([e],e.name,{type:e.type});return r.set(e,t),Dm(t,e,n,r,i),t}if(typeof Blob<`u`&&e instanceof Blob){let t=new Blob([e],{type:e.type});return r.set(e,t),Dm(t,e,n,r,i),t}if(e instanceof Error){let t=structuredClone(e);return r.set(e,t),t.message=e.message,t.name=e.name,t.stack=e.stack,t.cause=e.cause,t.constructor=e.constructor,Dm(t,e,n,r,i),t}if(e instanceof Boolean){let t=new Boolean(e.valueOf());return r.set(e,t),Dm(t,e,n,r,i),t}if(e instanceof Number){let t=new Number(e.valueOf());return r.set(e,t),Dm(t,e,n,r,i),t}if(e instanceof String){let t=new String(e.valueOf());return r.set(e,t),Dm(t,e,n,r,i),t}if(typeof e==`object`&&Eme(e)){let t=Object.create(Object.getPrototypeOf(e));return r.set(e,t),Dm(t,e,n,r,i),t}return e}function Dm(e,t,n=e,r,i){let a=[...Object.keys(t),...gme(t)];for(let o=0;o<a.length;o++){let s=a[o],l=Object.getOwnPropertyDescriptor(e,s);(l==null||l.writable)&&(e[s]=Em(t[s],s,n,r,i))}}function Eme(e){switch(Jp(e)){case em:case am:case om:case cm:case $p:case nm:case gm:case _m:case pm:case mm:case hm:case rm:case Qp:case sm:case Xp:case im:case Zp:case tm:case lm:case um:case dm:case fm:return!0;default:return!1}}var Dme=o((()=>{Cm(),Tm(),_me(),Yp(),vm(),xm()}));function Ome(e,t){return Tme(e,(n,r,i,a)=>{let o=t?.(n,r,i,a);if(o!==void 0)return o;if(typeof e==`object`){if(Jp(e)===`[object Object]`&&typeof e.constructor!=`function`){let t={};return a.set(e,t),Dm(t,e,i,a),t}switch(Object.prototype.toString.call(e)){case Qp:case Zp:case $p:{let t=new e.constructor(e?.valueOf());return Dm(t,e),t}case em:{let t={};return Dm(t,e),t.length=e.length,t[Symbol.iterator]=e[Symbol.iterator],t}default:return}}})}var kme=o((()=>{Yp(),vm(),Dme()}));function Ame(e){return Ome(e)}var jme=o((()=>{kme()}));function Om(e){return typeof e==`object`&&!!e&&Jp(e)===`[object Arguments]`}var Mme=o((()=>{Yp()}));function km(e){return typeof e==`object`&&!!e}var Nme=o((()=>{}));function Pme(e){return km(e)&&xme(e)}var Fme=o((()=>{Sme(),Nme()}));function Am(e){return wm(e)}var jm=o((()=>{Tm()}));function Ime(e){let t=e?.constructor;return e===(typeof t==`function`?t.prototype:Object.prototype)}var Lme=o((()=>{}));function Mm(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(`Expected a function`);let n=function(...r){let i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);let o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Mm.Cache||Map),n}var Rme=o((()=>{Mm.Cache=Map}));function zme(e){if(Sm(e))return e;let t=Jp(e);if(!Bme(e))return{};if(dme(e)){let t=Array.from(e);return e.length>0&&typeof e[0]==`string`&&Object.hasOwn(e,`index`)&&(t.index=e.index,t.input=e.input),t}if(Am(e)){let t=e,n=t.constructor;return new n(t.buffer,t.byteOffset,t.length)}if(t===`[object ArrayBuffer]`)return new ArrayBuffer(e.byteLength);if(t===`[object DataView]`){let t=e,n=t.buffer,r=t.byteOffset,i=t.byteLength,a=new ArrayBuffer(i),o=new Uint8Array(n,r,i);return new Uint8Array(a).set(o),new DataView(a)}if(t===`[object Boolean]`||t===`[object Number]`||t===`[object String]`){let n=e.constructor,r=new n(e.valueOf());return t===`[object String]`?Hme(r,e):Nm(r,e),r}if(t===`[object Date]`)return new Date(Number(e));if(t===`[object RegExp]`){let t=e,n=new RegExp(t.source,t.flags);return n.lastIndex=t.lastIndex,n}if(t===`[object Symbol]`)return Object(Symbol.prototype.valueOf.call(e));if(t===`[object Map]`){let t=e,n=new Map;return t.forEach((e,t)=>{n.set(t,e)}),n}if(t===`[object Set]`){let t=e,n=new Set;return t.forEach(e=>{n.add(e)}),n}if(t===`[object Arguments]`){let t=e,n={};return Nm(n,t),n.length=t.length,n[Symbol.iterator]=t[Symbol.iterator],n}let n={};return Ume(n,e),Nm(n,e),Vme(n,e),n}function Bme(e){switch(Jp(e)){case em:case am:case om:case cm:case $p:case nm:case gm:case _m:case pm:case mm:case hm:case rm:case Qp:case sm:case Xp:case im:case Zp:case tm:case lm:case um:case dm:case fm:return!0;default:return!1}}function Nm(e,t){for(let n in t)Object.hasOwn(t,n)&&(e[n]=t[n])}function Vme(e,t){let n=Object.getOwnPropertySymbols(t);for(let r=0;r<n.length;r++){let i=n[r];Object.prototype.propertyIsEnumerable.call(t,i)&&(e[i]=t[i])}}function Hme(e,t){let n=t.valueOf().length;for(let r in t)Object.hasOwn(t,r)&&(Number.isNaN(Number(r))||Number(r)>=n)&&(e[r]=t[r])}function Ume(e,t){let n=Object.getPrototypeOf(t);n!==null&&typeof t.constructor==`function`&&Object.setPrototypeOf(e,n)}var Wme=o((()=>{Cm(),Yp(),vm(),fme(),jm()}));function Gme(e){if(Sm(e))return e;if(Array.isArray(e)||wm(e)||e instanceof ArrayBuffer||typeof SharedArrayBuffer<`u`&&e instanceof SharedArrayBuffer)return e.slice(0);let t=Object.getPrototypeOf(e);if(t==null)return Object.assign(Object.create(t),e);let n=t.constructor;if(e instanceof Date||e instanceof Map||e instanceof Set)return new n(e);if(e instanceof RegExp){let t=new n(e);return t.lastIndex=e.lastIndex,t}if(e instanceof DataView)return new n(e.buffer.slice(0));if(e instanceof Error){let t;return t=e instanceof AggregateError?new n(e.errors,e.message,{cause:e.cause}):new n(e.message,{cause:e.cause}),t.stack=e.stack,Object.assign(t,e),t}return typeof File<`u`&&e instanceof File?new n([e],e.name,{type:e.type,lastModified:e.lastModified}):typeof e==`object`?Object.assign(Object.create(t),e):e}var Kme=o((()=>{Cm(),Tm()}));function qme(e,...t){let n=t.slice(0,-1),r=t[t.length-1],i=e;for(let e=0;e<n.length;e++){let t=n[e];i=Pm(i,t,r,new Map)}return i}function Pm(e,t,n,r){if(Sm(e)&&(e=Object(e)),typeof t!=`object`||!t)return e;if(r.has(t))return Gme(r.get(t));if(r.set(t,e),Array.isArray(t)){t=t.slice();for(let e=0;e<t.length;e++)e in t||(t[e]=void 0)}let i=[...Object.keys(t),...gme(t)];for(let a=0;a<i.length;a++){let o=i[a];if(Cme(o))continue;let s=t[o],l=e[o];if(Om(s)&&(s={...s}),Om(l)&&(l={...l}),bm(s)&&(s=Ame(s)),Array.isArray(s)){if(Array.isArray(l)){let e=[],t=Reflect.ownKeys(l);for(let n=0;n<t.length;n++){let r=t[n];e[r]=l[r]}l=e}else if(Pme(l)){let e=[];for(let t=0;t<l.length;t++)e[t]=l[t];l=e}else l=[]}let u=n(l,s,o,e,t,r);u===void 0?Array.isArray(s)||km(l)&&km(s)&&(qp(l)||qp(s)||Am(l)||Am(s))?e[o]=Pm(l,s,n,r):l==null&&qp(s)?e[o]=Pm({},s,n,r):l==null&&Am(s)?e[o]=Ame(s):(l===void 0||s!==void 0)&&(e[o]=s):e[o]=u}return e}var Jme=o((()=>{Cm(),Kme(),_me(),xm(),wme(),pme(),jme(),Mme(),Nme(),Fme(),jm()}));function Yme(e,...t){return qme(e,...t,mme)}var Xme=o((()=>{hme(),Jme()}));function Zme(e){if(e==null)return!0;if(xme(e))return typeof e.splice!=`function`&&typeof e!=`string`&&!bm(e)&&!Am(e)&&!Om(e)?!1:e.length===0;if(typeof e==`object`||typeof e==`function`){if(e instanceof Map||e instanceof Set)return e.size===0;let t=Object.keys(e);return Ime(e)?t.filter(e=>e!==`constructor`).length===0:t.length===0}return!0}var Qme=o((()=>{xm(),Sme(),Mme(),Lme(),jm()})),Fm=o((()=>{Rme(),Wme(),Xme(),Qme()}));function Im(e,t){return e?ohe[`curve${e.charAt(0).toUpperCase()+e.slice(1)}`]??t:t}function $me(e,t){let n=e.trim();if(n)return t.securityLevel===`loose`?n:(0,ahe.sanitizeUrl)(n)}function Lm(e,t){return!e||!t?0:Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2)}function ehe(e){let t,n=0;return e.forEach(e=>{n+=Lm(e,t),t=e}),Km(e,n/2)}function the(e){return e.length===1?e[0]:ehe(e)}function nhe(e,t,n){let r=structuredClone(n);y.info(`our points`,r),t!==`start_left`&&t!==`start_right`&&r.reverse();let i=Km(r,25+e),a=10+e*.5,o=Math.atan2(r[0].y-i.y,r[0].x-i.x),s={x:0,y:0};return t===`start_left`?(s.x=Math.sin(o+Math.PI)*a+(r[0].x+i.x)/2,s.y=-Math.cos(o+Math.PI)*a+(r[0].y+i.y)/2):t===`end_right`?(s.x=Math.sin(o-Math.PI)*a+(r[0].x+i.x)/2-5,s.y=-Math.cos(o-Math.PI)*a+(r[0].y+i.y)/2-5):t===`end_left`?(s.x=Math.sin(o)*a+(r[0].x+i.x)/2-5,s.y=-Math.cos(o)*a+(r[0].y+i.y)/2-5):(s.x=Math.sin(o)*a+(r[0].x+i.x)/2,s.y=-Math.cos(o)*a+(r[0].y+i.y)/2),s}function Rm(e){let t=``,n=``;for(let r of e)r!==void 0&&(r.startsWith(`color:`)||r.startsWith(`text-align:`)?n=n+r+`;`:t=t+r+`;`);return{style:t,labelStyle:n}}function rhe(e){let t=``;for(let n=0;n<e;n++)t+=`0123456789abcdef`.charAt(Math.floor(Math.random()*16));return t}function zm(e,t){return Zm(e,t).height}function Bm(e,t){return Zm(e,t).width}function Vm(e){return`str`in e}function Hm(e,t){return Yme({},e,t)}function Um(e){return e??null}function ihe(e,t){let n=Math.round(e.x),r=Math.round(e.y),i=t.replace(/(\d+\.\d+)/g,e=>Math.round(parseFloat(e)).toString());return i.includes(n.toString())||i.includes(r.toString())}var ahe,ohe,she,che,Wm,lhe,uhe,dhe,Gm,Km,fhe,qm,Jm,Ym,phe,mhe,Xm,hhe,Zm,ghe,Qm,_he,vhe,$m,eh,yhe,th,nh,rh=o((()=>{fc(),S(),h(),ahe=Kp(),_p(),Fm(),ohe={curveBasis:Of,curveBasisClosed:ype,curveBasisOpen:xpe,curveBumpX:xf,curveBumpY:Sf,curveBundle:Nf,curveCardinalClosed:zf,curveCardinalOpen:Hf,curveCardinal:If,curveCatmullRomClosed:Yf,curveCatmullRomOpen:Zf,curveCatmullRom:Kf,curveLinear:vf,curveLinearClosed:Epe,curveMonotoneX:op,curveMonotoneY:sp,curveNatural:up,curveStep:fp,curveStepAfter:mp,curveStepBefore:pp},she=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,che=p(function(e,t){let n=Wm(e,/(?:init\b)|(?:initialize\b)/),r={};if(Array.isArray(n)){let e=n.map(e=>e.args);is(e),r=Jo(r,[...e])}else r=n.args;if(!r)return;let i=Es(e,t),a=`config`;return r[a]!==void 0&&(i===`flowchart-v2`&&(i=`flowchart`),r[i]=r[a],delete r[a]),r},`detectInit`),Wm=p(function(e,t=null){try{let n=RegExp(`[%]{2}(?![{]${she.source})(?=[}][%]{2}).*
|
|
384
384
|
`,`ig`);e=e.trim().replace(n,``).replace(/'/gm,`"`),y.debug(`Detecting diagram directive${t===null?``:` type:`+t} based on the text:${e}`);let r,i=[];for(;(r=Cs.exec(e))!==null;)if(r.index===Cs.lastIndex&&Cs.lastIndex++,r&&!t||t&&r[1]?.match(t)||t&&r[2]?.match(t)){let e=r[1]?r[1]:r[2],t=r[3]?r[3].trim():r[4]?JSON.parse(r[4].trim()):null;i.push({type:e,args:t})}return i.length===0?{type:e,args:null}:i.length===1?i[0]:i}catch(n){return y.error(`ERROR: ${n.message} - Unable to parse directive type: '${t}' based on the text: '${e}'`),{type:void 0,args:null}}},`detectDirective`),lhe=p(function(e){return e.replace(Cs,``)},`removeDirectives`),uhe=p(function(e,t){for(let[n,r]of t.entries())if(r.match(e))return n;return-1},`isSubstringInArray`),p(Im,`interpolateToCurve`),p($me,`formatUrl`),dhe=p((e,...t)=>{let n=e.split(`.`),r=n.length-1,i=n[r],a=window;for(let t=0;t<r;t++)if(a=a[n[t]],!a){y.error(`Function name: ${e} not found in window`);return}a[i](...t)},`runFunc`),p(Lm,`distance`),p(ehe,`traverseEdge`),p(the,`calcLabelPosition`),Gm=p((e,t=2)=>{let n=10**t;return Math.round(e*n)/n},`roundNumber`),Km=p((e,t)=>{let n,r=t;for(let t of e){if(n){let e=Lm(t,n);if(e===0)return n;if(e<r)r-=e;else{let i=r/e;if(i<=0)return n;if(i>=1)return{x:t.x,y:t.y};if(i>0&&i<1)return{x:Gm((1-i)*n.x+i*t.x,5),y:Gm((1-i)*n.y+i*t.y,5)}}}n=t}throw Error(`Could not find a suitable point for the given distance`)},`calculatePoint`),fhe=p((e,t,n)=>{y.info(`our points ${JSON.stringify(t)}`),t[0]!==n&&(t=t.reverse());let r=Km(t,25),i=e?10:5,a=Math.atan2(t[0].y-r.y,t[0].x-r.x),o={x:0,y:0};return o.x=Math.sin(a)*i+(t[0].x+r.x)/2,o.y=-Math.cos(a)*i+(t[0].y+r.y)/2,o},`calcCardinalityPosition`),p(nhe,`calcTerminalLabelPosition`),p(Rm,`getStylesFromArray`),qm=0,Jm=p(()=>(qm++,`id-`+Math.random().toString(36).substr(2,12)+`-`+qm),`generateId`),p(rhe,`makeRandomHex`),Ym=p(e=>rhe(e.length),`random`),phe=p(function(){return{x:0,y:0,fill:void 0,anchor:`start`,style:`#666`,width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:``}},`getTextObj`),mhe=p(function(e,t){let n=t.text.replace(Hs.lineBreakRegex,` `),[,r]=$m(t.fontSize),i=e.append(`text`);i.attr(`x`,t.x),i.attr(`y`,t.y),i.style(`text-anchor`,t.anchor),i.style(`font-family`,t.fontFamily),i.style(`font-size`,r),i.style(`font-weight`,t.fontWeight),i.attr(`fill`,t.fill),t.class!==void 0&&i.attr(`class`,t.class);let a=i.append(`tspan`);return a.attr(`x`,t.x+t.textMargin*2),a.attr(`fill`,t.fill),a.text(n),i},`drawSimpleText`),Xm=Mm((e,t,n)=>{if(!e||(n=Object.assign({fontSize:12,fontWeight:400,fontFamily:`Arial`,joinWith:`<br/>`},n),Hs.lineBreakRegex.test(e)))return e;let r=e.split(` `).filter(Boolean),i=[],a=``;return r.forEach((e,o)=>{let s=Bm(`${e} `,n),l=Bm(a,n);if(s>t){let{hyphenatedStrings:r,remainingWord:o}=hhe(e,t,`-`,n);i.push(a,...r),a=o}else l+s>=t?(i.push(a),a=e):a=[a,e].filter(Boolean).join(` `);o+1===r.length&&i.push(a)}),i.filter(e=>e!==``).join(n.joinWith)},(e,t,n)=>`${e}${t}${n.fontSize}${n.fontWeight}${n.fontFamily}${n.joinWith}`),hhe=Mm((e,t,n=`-`,r)=>{r=Object.assign({fontSize:12,fontWeight:400,fontFamily:`Arial`,margin:0},r);let i=[...e],a=[],o=``;return i.forEach((e,s)=>{let l=`${o}${e}`;if(Bm(l,r)>=t){let e=s+1,t=i.length===e,r=`${l}${n}`;a.push(t?l:r),o=``}else o=l}),{hyphenatedStrings:a,remainingWord:o}},(e,t,n=`-`,r)=>`${e}${t}${n}${r.fontSize}${r.fontWeight}${r.fontFamily}`),p(zm,`calculateTextHeight`),p(Bm,`calculateTextWidth`),Zm=Mm((e,t)=>{let{fontSize:n=12,fontFamily:r=`Arial`,fontWeight:i=400}=t;if(!e)return{width:0,height:0};let[,a]=$m(n),o=[`sans-serif`,r],s=e.split(Hs.lineBreakRegex),l=[],u=el(`body`);if(!u.remove)return{width:0,height:0,lineHeight:0};let d=u.append(`svg`);for(let e of o){let t=0,n={width:0,height:0,lineHeight:0};for(let r of s){let o=phe();o.text=r||``;let s=mhe(d,o).style(`font-size`,a).style(`font-weight`,i).style(`font-family`,e),l=(s._groups||s)[0][0].getBBox();if(l.width===0&&l.height===0)throw Error(`svg element not in render tree`);n.width=Math.round(Math.max(n.width,l.width)),t=Math.round(l.height),n.height+=t,n.lineHeight=Math.round(Math.max(n.lineHeight,t))}l.push(n)}return d.remove(),l[isNaN(l[1].height)||isNaN(l[1].width)||isNaN(l[1].lineHeight)||l[0].height>l[1].height&&l[0].width>l[1].width&&l[0].lineHeight>l[1].lineHeight?0:1]},(e,t)=>`${e}${t.fontSize}${t.fontWeight}${t.fontFamily}`),ghe=class{constructor(e=!1,t){this.count=0,this.count=t?t.length:0,this.next=e?()=>this.count++:()=>Date.now()}static{p(this,`InitIDGenerator`)}},_he=p(function(e){return Qm||=document.createElement(`div`),e=escape(e).replace(/%26/g,`&`).replace(/%23/g,`#`).replace(/%3B/g,`;`),Qm.innerHTML=e,unescape(Qm.textContent)},`entityDecode`),p(Vm,`isDetailedError`),vhe=p((e,t,n,r)=>{if(!r)return;let i=e.node()?.getBBox();i&&e.append(`text`).text(r).attr(`text-anchor`,`middle`).attr(`x`,i.x+i.width/2).attr(`y`,-n).attr(`class`,t)},`insertTitle`),$m=p(e=>{if(typeof e==`number`)return[e,e+`px`];let t=parseInt(e??``,10);return Number.isNaN(t)?[void 0,void 0]:e===String(t)?[t,e+`px`]:[t,e]},`parseFontSize`),p(Hm,`cleanAndMerge`),eh={assignWithDepth:Jo,wrapLabel:Xm,calculateTextHeight:zm,calculateTextWidth:Bm,calculateTextDimensions:Zm,cleanAndMerge:Hm,detectInit:che,detectDirective:Wm,isSubstringInArray:uhe,interpolateToCurve:Im,calcLabelPosition:the,calcCardinalityPosition:fhe,calcTerminalLabelPosition:nhe,formatUrl:$me,getStylesFromArray:Rm,generateId:Jm,random:Ym,runFunc:dhe,entityDecode:_he,insertTitle:vhe,isLabelCoordinateInPath:ihe,parseFontSize:$m,InitIDGenerator:ghe},yhe=p(function(e){let t=e;return t=t.replace(/style.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)}),t=t.replace(/classDef.*:\S*#.*;/g,function(e){return e.substring(0,e.length-1)}),t=t.replace(/#\w+;/g,function(e){let t=e.substring(1,e.length-1);return/^\+?\d+$/.test(t)?`fl°°`+t+`¶ß`:`fl°`+t+`¶ß`}),t},`encodeEntities`),th=p(function(e){return e.replace(/fl°°/g,`&#`).replace(/fl°/g,`&`).replace(/¶ß/g,`;`)},`decodeEntities`),nh=p((e,t,{counter:n=0,prefix:r,suffix:i},a)=>a||`${r?`${r}_`:``}${e}_${t}_${n}${i?`_${i}`:``}`,`getEdgeId`),p(Um,`handleUndefinedAttr`),p(ihe,`isLabelCoordinateInPath`)})),bhe=s(((e,t)=>{(function(e){"use strict";var n=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.msRequestAnimationFrame||function(e){return setTimeout(e,16)};function r(){var t=this;t.reads=[],t.writes=[],t.raf=n.bind(e)}r.prototype={constructor:r,runTasks:function(e){for(var t;t=e.shift();)t()},measure:function(e,t){var n=t?e.bind(t):e;return this.reads.push(n),i(this),n},mutate:function(e,t){var n=t?e.bind(t):e;return this.writes.push(n),i(this),n},clear:function(e){return o(this.reads,e)||o(this.writes,e)},extend:function(e){if(typeof e!=`object`)throw Error(`expected object`);var t=Object.create(this);return s(t,e),t.fastdom=this,t.initialize&&t.initialize(),t},catch:null};function i(e){e.scheduled||(e.scheduled=!0,e.raf(a.bind(null,e)))}function a(e){var t=e.writes,n=e.reads,r;try{n.length,e.runTasks(n),t.length,e.runTasks(t)}catch(e){r=e}if(e.scheduled=!1,(n.length||t.length)&&i(e),r){if(r.message,e.catch)e.catch(r);else throw r}}function o(e,t){var n=e.indexOf(t);return!!~n&&!!e.splice(n,1)}function s(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])}var l=e.fastdom=e.fastdom||new r;typeof define==`function`?define(function(){return l}):typeof t==`object`&&(t.exports=l)})(typeof window<`u`?window:e===void 0?globalThis:e)})),xhe=s(((e,t)=>{(function(){var e={initialize:function(){this._tasks=new Map},mutate:function(e,t){return n(this,`mutate`,e,t)},measure:function(e,t){return n(this,`measure`,e,t)},clear:function(e){var t=this._tasks,n=t.get(e);this.fastdom.clear(n),t.delete(e)}};function n(e,t,n,r){var i=e._tasks,a=e.fastdom,o,s=new Promise(function(e,l){o=a[t](function(){i.delete(s);try{e(r?n.call(r):n())}catch(e){l(e)}},r)});return i.set(s,o),s}(typeof define)[0]==`f`?define(function(){return e}):(typeof t)[0]==`o`?t.exports=e:window.fastdomPromised=e})()}));function ih(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}function She(e){lh=e}function ah(e,t=``){let n=typeof e==`string`?e:e.source,r={replace:(e,t)=>{let i=typeof t==`string`?t:t.source;return i=i.replace(dh.caret,`$1`),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}function oh(e,t){if(t){if(dh.escapeTest.test(e))return e.replace(dh.escapeReplace,Rh)}else if(dh.escapeTestNoEncode.test(e))return e.replace(dh.escapeReplaceNoEncode,Rh);return e}function Che(e){try{e=encodeURI(e).replace(dh.percentDecode,`%`)}catch{return null}return e}function whe(e,t){let n=e.replace(dh.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&n[i]===`\\`;)r=!r;return r?`|`:` |`}).split(dh.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t){if(n.length>t)n.splice(t);else for(;n.length<t;)n.push(``)}for(;r<n.length;r++)n[r]=n[r].trim().replace(dh.slashPipe,`|`);return n}function sh(e,t,n){let r=e.length;if(r===0)return``;let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a===t&&!n)i++;else if(a!==t&&n)i++;else break}return e.slice(0,r-i)}function The(e,t){if(e.indexOf(t[1])===-1)return-1;let n=0;for(let r=0;r<e.length;r++)if(e[r]===`\\`)r++;else if(e[r]===t[0])n++;else if(e[r]===t[1]&&(n--,n<0))return r;return n>0?-2:-1}function Ehe(e,t,n,r,i){let a=t.href,o=t.title||null,s=e[1].replace(i.other.outputLinkReplace,`$1`);r.state.inLink=!0;let l={type:e[0].charAt(0)===`!`?`image`:`link`,raw:n,href:a,title:o,text:s,tokens:r.inlineTokens(s)};return r.state.inLink=!1,l}function Dhe(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(r===null)return t;let i=r[1];return t.split(`
|
|
385
385
|
`).map(e=>{let t=e.match(n.other.beginningSpace);if(t===null)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(`
|
|
386
386
|
`)}function ch(e,t){return Gh.parse(e,t)}var lh,uh,Ohe,dh,khe,Ahe,jhe,fh,Mhe,ph,mh,hh,Nhe,gh,Phe,_h,Fhe,Ihe,vh,yh,Lhe,bh,xh,Sh,Rhe,zhe,Bhe,Vhe,Ch,Hhe,wh,Th,Eh,Uhe,Dh,Whe,Ghe,Khe,Oh,qhe,Jhe,kh,Yhe,Xhe,Zhe,Qhe,$he,ege,tge,Ah,nge,jh,Mh,rge,Nh,Ph,ige,Fh,age,Ih,Lh,oge,Rh,zh,Bh,Vh,Hh,Uh,Wh,sge,Gh,cge=o((()=>{lh=ih(),uh={exec:()=>null},Ohe=(()=>{try{return!0}catch{return!1}})(),dh={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,`i`)},khe=/^(?:[ \t]*(?:\n|$))+/,Ahe=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,jhe=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,fh=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Mhe=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,ph=/(?:[*+-]|\d{1,9}[.)])/,mh=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,hh=ah(mh).replace(/bull/g,ph).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,``).getRegex(),Nhe=ah(mh).replace(/bull/g,ph).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),gh=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,Phe=/^[^\n]+/,_h=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Fhe=ah(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace(`label`,_h).replace(`title`,/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Ihe=ah(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,ph).getRegex(),vh=`address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul`,yh=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Lhe=ah(`^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))`,`i`).replace(`comment`,yh).replace(`tag`,vh).replace(`attribute`,/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),bh=ah(gh).replace(`hr`,fh).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`|table`,``).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,vh).getRegex(),xh={blockquote:ah(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace(`paragraph`,bh).getRegex(),code:Ahe,def:Fhe,fences:jhe,heading:Mhe,hr:fh,html:Lhe,lheading:hh,list:Ihe,newline:khe,paragraph:bh,table:uh,text:Phe},Sh=ah(`^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)`).replace(`hr`,fh).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`blockquote`,` {0,3}>`).replace(`code`,`(?: {4}| {0,3} )[^\\n]`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,vh).getRegex(),Rhe={...xh,lheading:Nhe,table:Sh,paragraph:ah(gh).replace(`hr`,fh).replace(`heading`,` {0,3}#{1,6}(?:\\s|$)`).replace(`|lheading`,``).replace(`table`,Sh).replace(`blockquote`,` {0,3}>`).replace(`fences`," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace(`list`,` {0,3}(?:[*+-]|1[.)]) `).replace(`html`,`</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)`).replace(`tag`,vh).getRegex()},zhe={...xh,html:ah(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace(`comment`,yh).replace(/tag/g,`(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b`).getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:uh,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ah(gh).replace(`hr`,fh).replace(`heading`,` *#{1,6} *[^
|
|
@@ -2932,7 +2932,7 @@ Expecting `+M.join(`, `)+`, got '`+(this.terminals_[C]||C)+`'`:`Parse error on l
|
|
|
2932
2932
|
text-align: center;
|
|
2933
2933
|
}
|
|
2934
2934
|
${WL()}
|
|
2935
|
-
`,`getStyles`)}}));function Flt(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}var Ilt=o((()=>{}));function Llt(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}var Rlt=o((()=>{}));function H8(e,t){let n=0;if(t===void 0)for(let t of e)(t=+t)&&(n+=t);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}var zlt=o((()=>{})),Blt=o((()=>{Ilt(),Rlt(),zlt()}));function Vlt(e){return e.target.depth}function Hlt(e){return e.depth}function Ult(e,t){return t-1-e.height}function Wlt(e,t){return e.sourceLinks.length?e.depth:t-1}function Glt(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?Llt(e.sourceLinks,Vlt)-1:0}var Klt=o((()=>{Blt()}));function U8(e){return function(){return e}}var qlt=o((()=>{}));function Jlt(e,t){return W8(e.source,t.source)||e.index-t.index}function Ylt(e,t){return W8(e.target,t.target)||e.index-t.index}function W8(e,t){return e.y0-t.y0}function G8(e){return e.value}function Xlt(e){return e.index}function Zlt(e){return e.nodes}function Qlt(e){return e.links}function $lt(e,t){let n=e.get(t);if(!n)throw Error(`missing: `+t);return n}function eut({nodes:e}){for(let t of e){let e=t.y0,n=e;for(let n of t.sourceLinks)n.y0=e+n.width/2,e+=n.width;for(let e of t.targetLinks)e.y1=n+e.width/2,n+=e.width}}function tut(){let e=0,t=0,n=1,r=1,i=24,a=8,o,s=Xlt,l=Wlt,u,d,f=Zlt,p=Qlt,m=6;function h(){let e={nodes:f.apply(null,arguments),links:p.apply(null,arguments)};return g(e),_(e),v(e),y(e),S(e),eut(e),e}h.update=function(e){return eut(e),e},h.nodeId=function(e){return arguments.length?(s=typeof e==`function`?e:U8(e),h):s},h.nodeAlign=function(e){return arguments.length?(l=typeof e==`function`?e:U8(e),h):l},h.nodeSort=function(e){return arguments.length?(u=e,h):u},h.nodeWidth=function(e){return arguments.length?(i=+e,h):i},h.nodePadding=function(e){return arguments.length?(a=o=+e,h):a},h.nodes=function(e){return arguments.length?(f=typeof e==`function`?e:U8(e),h):f},h.links=function(e){return arguments.length?(p=typeof e==`function`?e:U8(e),h):p},h.linkSort=function(e){return arguments.length?(d=e,h):d},h.size=function(i){return arguments.length?(e=t=0,n=+i[0],r=+i[1],h):[n-e,r-t]},h.extent=function(i){return arguments.length?(e=+i[0][0],n=+i[1][0],t=+i[0][1],r=+i[1][1],h):[[e,t],[n,r]]},h.iterations=function(e){return arguments.length?(m=+e,h):m};function g({nodes:e,links:t}){for(let[t,n]of e.entries())n.index=t,n.sourceLinks=[],n.targetLinks=[];let n=new Map(e.map((t,n)=>[s(t,n,e),t]));for(let[e,r]of t.entries()){r.index=e;let{source:t,target:i}=r;typeof t!=`object`&&(t=r.source=$lt(n,t)),typeof i!=`object`&&(i=r.target=$lt(n,i)),t.sourceLinks.push(r),i.targetLinks.push(r)}if(d!=null)for(let{sourceLinks:t,targetLinks:n}of e)t.sort(d),n.sort(d)}function _({nodes:e}){for(let t of e)t.value=t.fixedValue===void 0?Math.max(H8(t.sourceLinks,G8),H8(t.targetLinks,G8)):t.fixedValue}function v({nodes:e}){let t=e.length,n=new Set(e),r=new Set,i=0;for(;n.size;){for(let e of n){e.depth=i;for(let{target:t}of e.sourceLinks)r.add(t)}if(++i>t)throw Error(`circular link`);n=r,r=new Set}}function y({nodes:e}){let t=e.length,n=new Set(e),r=new Set,i=0;for(;n.size;){for(let e of n){e.height=i;for(let{source:t}of e.targetLinks)r.add(t)}if(++i>t)throw Error(`circular link`);n=r,r=new Set}}function b({nodes:t}){let r=Flt(t,e=>e.depth)+1,a=(n-e-i)/(r-1),o=Array(r);for(let n of t){let t=Math.max(0,Math.min(r-1,Math.floor(l.call(null,n,r))));n.layer=t,n.x0=e+t*a,n.x1=n.x0+i,o[t]?o[t].push(n):o[t]=[n]}if(u)for(let e of o)e.sort(u);return o}function x(e){let n=Llt(e,e=>(r-t-(e.length-1)*o)/H8(e,G8));for(let i of e){let e=t;for(let t of i){t.y0=e,t.y1=e+t.value*n,e=t.y1+o;for(let e of t.sourceLinks)e.width=e.value*n}e=(r-e+o)/(i.length+1);for(let t=0;t<i.length;++t){let n=i[t];n.y0+=e*(t+1),n.y1+=e*(t+1)}k(i)}}function S(e){let n=b(e);o=Math.min(a,(r-t)/(Flt(n,e=>e.length)-1)),x(n);for(let e=0;e<m;++e){let t=.99**e,r=Math.max(1-t,(e+1)/m);w(n,t,r),C(n,t,r)}}function C(e,t,n){for(let r=1,i=e.length;r<i;++r){let i=e[r];for(let e of i){let n=0,r=0;for(let{source:t,value:i}of e.targetLinks){let a=i*(e.layer-t.layer);n+=A(t,e)*a,r+=a}if(!(r>0))continue;let i=(n/r-e.y0)*t;e.y0+=i,e.y1+=i,O(e)}u===void 0&&i.sort(W8),T(i,n)}}function w(e,t,n){for(let r=e.length-2;r>=0;--r){let i=e[r];for(let e of i){let n=0,r=0;for(let{target:t,value:i}of e.sourceLinks){let a=i*(t.layer-e.layer);n+=j(e,t)*a,r+=a}if(!(r>0))continue;let i=(n/r-e.y0)*t;e.y0+=i,e.y1+=i,O(e)}u===void 0&&i.sort(W8),T(i,n)}}function T(e,n){let i=e.length>>1,a=e[i];D(e,a.y0-o,i-1,n),E(e,a.y1+o,i+1,n),D(e,r,e.length-1,n),E(e,t,0,n)}function E(e,t,n,r){for(;n<e.length;++n){let i=e[n],a=(t-i.y0)*r;a>1e-6&&(i.y0+=a,i.y1+=a),t=i.y1+o}}function D(e,t,n,r){for(;n>=0;--n){let i=e[n],a=(i.y1-t)*r;a>1e-6&&(i.y0-=a,i.y1-=a),t=i.y0-o}}function O({sourceLinks:e,targetLinks:t}){if(d===void 0){for(let{source:{sourceLinks:e}}of t)e.sort(Ylt);for(let{target:{targetLinks:t}}of e)t.sort(Jlt)}}function k(e){if(d===void 0)for(let{sourceLinks:t,targetLinks:n}of e)t.sort(Ylt),n.sort(Jlt)}function A(e,t){let n=e.y0-(e.sourceLinks.length-1)*o/2;for(let{target:r,width:i}of e.sourceLinks){if(r===t)break;n+=i+o}for(let{source:r,width:i}of t.targetLinks){if(r===e)break;n-=i}return n}function j(e,t){let n=t.y0-(t.targetLinks.length-1)*o/2;for(let{source:r,width:i}of t.targetLinks){if(r===e)break;n+=i+o}for(let{target:r,width:i}of e.sourceLinks){if(r===t)break;n-=i}return n}return h}var nut=o((()=>{Blt(),Klt(),qlt()}));function K8(){this._x0=this._y0=this._x1=this._y1=null,this._=``}function rut(){return new K8}var q8,J8,Y8,iut,aut=o((()=>{q8=Math.PI,J8=2*q8,Y8=1e-6,iut=J8-Y8,K8.prototype=rut.prototype={constructor:K8,moveTo:function(e,t){this._+=`M`+(this._x0=this._x1=+e)+`,`+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+=`Z`)},lineTo:function(e,t){this._+=`L`+(this._x1=+e)+`,`+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+=`Q`+ +e+`,`+ +t+`,`+(this._x1=+n)+`,`+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,a){this._+=`C`+ +e+`,`+ +t+`,`+ +n+`,`+ +r+`,`+(this._x1=+i)+`,`+(this._y1=+a)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var a=this._x1,o=this._y1,s=n-e,l=r-t,u=a-e,d=o-t,f=u*u+d*d;if(i<0)throw Error(`negative radius: `+i);if(this._x1===null)this._+=`M`+(this._x1=e)+`,`+(this._y1=t);else if(f>Y8){if(!(Math.abs(d*s-l*u)>Y8)||!i)this._+=`L`+(this._x1=e)+`,`+(this._y1=t);else{var p=n-a,m=r-o,h=s*s+l*l,g=p*p+m*m,_=Math.sqrt(h),v=Math.sqrt(f),y=i*Math.tan((q8-Math.acos((h+f-g)/(2*_*v)))/2),b=y/v,x=y/_;Math.abs(b-1)>Y8&&(this._+=`L`+(e+b*u)+`,`+(t+b*d)),this._+=`A`+i+`,`+i+`,0,0,`+ +(d*p>u*m)+`,`+(this._x1=e+x*s)+`,`+(this._y1=t+x*l)}}},arc:function(e,t,n,r,i,a){e=+e,t=+t,n=+n,a=!!a;var o=n*Math.cos(r),s=n*Math.sin(r),l=e+o,u=t+s,d=1^a,f=a?r-i:i-r;if(n<0)throw Error(`negative radius: `+n);this._x1===null?this._+=`M`+l+`,`+u:(Math.abs(this._x1-l)>Y8||Math.abs(this._y1-u)>Y8)&&(this._+=`L`+l+`,`+u),n&&(f<0&&(f=f%J8+J8),f>iut?this._+=`A`+n+`,`+n+`,0,1,`+d+`,`+(e-o)+`,`+(t-s)+`A`+n+`,`+n+`,0,1,`+d+`,`+(this._x1=l)+`,`+(this._y1=u):f>Y8&&(this._+=`A`+n+`,`+n+`,0,`+ +(f>=q8)+`,`+d+`,`+(this._x1=e+n*Math.cos(i))+`,`+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+=`M`+(this._x0=this._x1=+e)+`,`+(this._y0=this._y1=+t)+`h`+ +n+`v`+ +r+`h`+-n+`Z`},toString:function(){return this._}}})),out=o((()=>{aut()}));function sut(e){return function(){return e}}var cut=o((()=>{}));function lut(e){return e[0]}function uut(e){return e[1]}var dut=o((()=>{})),fut,put=o((()=>{fut=Array.prototype.slice}));function mut(e){return e.source}function hut(e){return e.target}function gut(e){var t=mut,n=hut,r=lut,i=uut,a=null;function o(){var o,s=fut.call(arguments),l=t.apply(this,s),u=n.apply(this,s);if(a||=o=rut(),e(a,+r.apply(this,(s[0]=l,s)),+i.apply(this,s),+r.apply(this,(s[0]=u,s)),+i.apply(this,s)),o)return a=null,o+``||null}return o.source=function(e){return arguments.length?(t=e,o):t},o.target=function(e){return arguments.length?(n=e,o):n},o.x=function(e){return arguments.length?(r=typeof e==`function`?e:sut(+e),o):r},o.y=function(e){return arguments.length?(i=typeof e==`function`?e:sut(+e),o):i},o.context=function(e){return arguments.length?(a=e??null,o):a},o}function _ut(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function vut(){return gut(_ut)}var yut=o((()=>{out(),put(),cut(),dut()})),but=o((()=>{out(),cut(),yut(),put()}));function xut(e){return[e.source.x1,e.y0]}function Sut(e){return[e.target.x0,e.y1]}function Cut(){return vut().source(xut).target(Sut)}var wut=o((()=>{but()})),Tut=o((()=>{nut(),Klt(),wut()})),Eut=l({diagram:()=>Rut}),X8,Z8,Q8,$8,e5,Dut,Out,kut,Aut,jut,t5,Mut,Nut,Put,Fut,Iut,Lut,Rut,zut=o((()=>{fc(),S(),h(),_p(),Tut(),X8=(function(){var e=p(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,9],n=[1,10],r=[1,5,10,12],i={trace:p(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:`error`,4:`SANKEY`,5:`NEWLINE`,10:`EOF`,11:`field[source]`,12:`COMMA`,13:`field[target]`,14:`field[value]`,18:`DQUOTE`,19:`ESCAPED_TEXT`,20:`NON_ESCAPED_TEXT`},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:p(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 7:let e=r.findOrCreateNode(a[s-4].trim().replaceAll(`""`,`"`)),t=r.findOrCreateNode(a[s-2].trim().replaceAll(`""`,`"`)),n=parseFloat(a[s].trim());r.addLink(e,t,n);break;case 8:case 9:case 11:this.$=a[s];break;case 10:this.$=a[s-1]}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:t,20:n},{1:[2,6],7:11,10:[1,12]},e(n,[2,4],{9:13,5:[1,14]}),{12:[1,15]},e(r,[2,8]),e(r,[2,9]),{19:[1,16]},e(r,[2,11]),{1:[2,1]},{1:[2,5]},e(n,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:t,20:n},{15:18,16:7,17:8,18:t,20:n},{18:[1,19]},e(n,[2,3]),{12:[1,20]},e(r,[2,10]),{15:21,16:7,17:8,18:t,20:n},e([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:p(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:p(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,m=1,h=a.slice.call(arguments,1),g=Object.create(this.lexer),_={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(_.yy[v]=this.yy[v]);g.setInput(e,_.yy),_.yy.lexer=g,_.yy.parser=this,g.yylloc===void 0&&(g.yylloc={});var y=g.yylloc;a.push(y);var b=g.options&&g.options.ranges;this.parseError=typeof _.yy.parseError==`function`?_.yy.parseError:Object.getPrototypeOf(this).parseError;function x(e){n.length-=2*e,i.length-=e,a.length-=e}p(x,`popStack`);function S(){var e=r.pop()||g.lex()||m;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}p(S,`lex`);for(var C,w,T,E,D,O={},k,A,j,M;;){if(T=n[n.length-1],this.defaultActions[T]?E=this.defaultActions[T]:(C??=S(),E=o[T]&&o[T][C]),E===void 0||!E.length||!E[0]){var N=``;for(k in M=[],o[T])this.terminals_[k]&&k>f&&M.push(`'`+this.terminals_[k]+`'`);N=g.showPosition?`Parse error on line `+(l+1)+`:
|
|
2935
|
+
`,`getStyles`)}}));function Flt(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}var Ilt=o((()=>{}));function Llt(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}var Rlt=o((()=>{}));function H8(e,t){let n=0;if(t===void 0)for(let t of e)(t=+t)&&(n+=t);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}var zlt=o((()=>{})),Blt=o((()=>{$ne(),Ilt(),Rlt(),zlt()}));function Vlt(e){return e.target.depth}function Hlt(e){return e.depth}function Ult(e,t){return t-1-e.height}function Wlt(e,t){return e.sourceLinks.length?e.depth:t-1}function Glt(e){return e.targetLinks.length?e.depth:e.sourceLinks.length?Llt(e.sourceLinks,Vlt)-1:0}var Klt=o((()=>{Blt()}));function U8(e){return function(){return e}}var qlt=o((()=>{}));function Jlt(e,t){return W8(e.source,t.source)||e.index-t.index}function Ylt(e,t){return W8(e.target,t.target)||e.index-t.index}function W8(e,t){return e.y0-t.y0}function G8(e){return e.value}function Xlt(e){return e.index}function Zlt(e){return e.nodes}function Qlt(e){return e.links}function $lt(e,t){let n=e.get(t);if(!n)throw Error(`missing: `+t);return n}function eut({nodes:e}){for(let t of e){let e=t.y0,n=e;for(let n of t.sourceLinks)n.y0=e+n.width/2,e+=n.width;for(let e of t.targetLinks)e.y1=n+e.width/2,n+=e.width}}function tut(){let e=0,t=0,n=1,r=1,i=24,a=8,o,s=Xlt,l=Wlt,u,d,f=Zlt,p=Qlt,m=6;function h(){let e={nodes:f.apply(null,arguments),links:p.apply(null,arguments)};return g(e),_(e),v(e),y(e),S(e),eut(e),e}h.update=function(e){return eut(e),e},h.nodeId=function(e){return arguments.length?(s=typeof e==`function`?e:U8(e),h):s},h.nodeAlign=function(e){return arguments.length?(l=typeof e==`function`?e:U8(e),h):l},h.nodeSort=function(e){return arguments.length?(u=e,h):u},h.nodeWidth=function(e){return arguments.length?(i=+e,h):i},h.nodePadding=function(e){return arguments.length?(a=o=+e,h):a},h.nodes=function(e){return arguments.length?(f=typeof e==`function`?e:U8(e),h):f},h.links=function(e){return arguments.length?(p=typeof e==`function`?e:U8(e),h):p},h.linkSort=function(e){return arguments.length?(d=e,h):d},h.size=function(i){return arguments.length?(e=t=0,n=+i[0],r=+i[1],h):[n-e,r-t]},h.extent=function(i){return arguments.length?(e=+i[0][0],n=+i[1][0],t=+i[0][1],r=+i[1][1],h):[[e,t],[n,r]]},h.iterations=function(e){return arguments.length?(m=+e,h):m};function g({nodes:e,links:t}){for(let[t,n]of e.entries())n.index=t,n.sourceLinks=[],n.targetLinks=[];let n=new Map(e.map((t,n)=>[s(t,n,e),t]));for(let[e,r]of t.entries()){r.index=e;let{source:t,target:i}=r;typeof t!=`object`&&(t=r.source=$lt(n,t)),typeof i!=`object`&&(i=r.target=$lt(n,i)),t.sourceLinks.push(r),i.targetLinks.push(r)}if(d!=null)for(let{sourceLinks:t,targetLinks:n}of e)t.sort(d),n.sort(d)}function _({nodes:e}){for(let t of e)t.value=t.fixedValue===void 0?Math.max(H8(t.sourceLinks,G8),H8(t.targetLinks,G8)):t.fixedValue}function v({nodes:e}){let t=e.length,n=new Set(e),r=new Set,i=0;for(;n.size;){for(let e of n){e.depth=i;for(let{target:t}of e.sourceLinks)r.add(t)}if(++i>t)throw Error(`circular link`);n=r,r=new Set}}function y({nodes:e}){let t=e.length,n=new Set(e),r=new Set,i=0;for(;n.size;){for(let e of n){e.height=i;for(let{source:t}of e.targetLinks)r.add(t)}if(++i>t)throw Error(`circular link`);n=r,r=new Set}}function b({nodes:t}){let r=Flt(t,e=>e.depth)+1,a=(n-e-i)/(r-1),o=Array(r);for(let n of t){let t=Math.max(0,Math.min(r-1,Math.floor(l.call(null,n,r))));n.layer=t,n.x0=e+t*a,n.x1=n.x0+i,o[t]?o[t].push(n):o[t]=[n]}if(u)for(let e of o)e.sort(u);return o}function x(e){let n=Llt(e,e=>(r-t-(e.length-1)*o)/H8(e,G8));for(let i of e){let e=t;for(let t of i){t.y0=e,t.y1=e+t.value*n,e=t.y1+o;for(let e of t.sourceLinks)e.width=e.value*n}e=(r-e+o)/(i.length+1);for(let t=0;t<i.length;++t){let n=i[t];n.y0+=e*(t+1),n.y1+=e*(t+1)}k(i)}}function S(e){let n=b(e);o=Math.min(a,(r-t)/(Flt(n,e=>e.length)-1)),x(n);for(let e=0;e<m;++e){let t=.99**e,r=Math.max(1-t,(e+1)/m);w(n,t,r),C(n,t,r)}}function C(e,t,n){for(let r=1,i=e.length;r<i;++r){let i=e[r];for(let e of i){let n=0,r=0;for(let{source:t,value:i}of e.targetLinks){let a=i*(e.layer-t.layer);n+=A(t,e)*a,r+=a}if(!(r>0))continue;let i=(n/r-e.y0)*t;e.y0+=i,e.y1+=i,O(e)}u===void 0&&i.sort(W8),T(i,n)}}function w(e,t,n){for(let r=e.length-2;r>=0;--r){let i=e[r];for(let e of i){let n=0,r=0;for(let{target:t,value:i}of e.sourceLinks){let a=i*(t.layer-e.layer);n+=j(e,t)*a,r+=a}if(!(r>0))continue;let i=(n/r-e.y0)*t;e.y0+=i,e.y1+=i,O(e)}u===void 0&&i.sort(W8),T(i,n)}}function T(e,n){let i=e.length>>1,a=e[i];D(e,a.y0-o,i-1,n),E(e,a.y1+o,i+1,n),D(e,r,e.length-1,n),E(e,t,0,n)}function E(e,t,n,r){for(;n<e.length;++n){let i=e[n],a=(t-i.y0)*r;a>1e-6&&(i.y0+=a,i.y1+=a),t=i.y1+o}}function D(e,t,n,r){for(;n>=0;--n){let i=e[n],a=(i.y1-t)*r;a>1e-6&&(i.y0-=a,i.y1-=a),t=i.y0-o}}function O({sourceLinks:e,targetLinks:t}){if(d===void 0){for(let{source:{sourceLinks:e}}of t)e.sort(Ylt);for(let{target:{targetLinks:t}}of e)t.sort(Jlt)}}function k(e){if(d===void 0)for(let{sourceLinks:t,targetLinks:n}of e)t.sort(Ylt),n.sort(Jlt)}function A(e,t){let n=e.y0-(e.sourceLinks.length-1)*o/2;for(let{target:r,width:i}of e.sourceLinks){if(r===t)break;n+=i+o}for(let{source:r,width:i}of t.targetLinks){if(r===e)break;n-=i}return n}function j(e,t){let n=t.y0-(t.targetLinks.length-1)*o/2;for(let{source:r,width:i}of t.targetLinks){if(r===e)break;n+=i+o}for(let{target:r,width:i}of e.sourceLinks){if(r===t)break;n-=i}return n}return h}var nut=o((()=>{Blt(),Klt(),qlt()}));function K8(){this._x0=this._y0=this._x1=this._y1=null,this._=``}function rut(){return new K8}var q8,J8,Y8,iut,aut=o((()=>{q8=Math.PI,J8=2*q8,Y8=1e-6,iut=J8-Y8,K8.prototype=rut.prototype={constructor:K8,moveTo:function(e,t){this._+=`M`+(this._x0=this._x1=+e)+`,`+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+=`Z`)},lineTo:function(e,t){this._+=`L`+(this._x1=+e)+`,`+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+=`Q`+ +e+`,`+ +t+`,`+(this._x1=+n)+`,`+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,a){this._+=`C`+ +e+`,`+ +t+`,`+ +n+`,`+ +r+`,`+(this._x1=+i)+`,`+(this._y1=+a)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var a=this._x1,o=this._y1,s=n-e,l=r-t,u=a-e,d=o-t,f=u*u+d*d;if(i<0)throw Error(`negative radius: `+i);if(this._x1===null)this._+=`M`+(this._x1=e)+`,`+(this._y1=t);else if(f>Y8){if(!(Math.abs(d*s-l*u)>Y8)||!i)this._+=`L`+(this._x1=e)+`,`+(this._y1=t);else{var p=n-a,m=r-o,h=s*s+l*l,g=p*p+m*m,_=Math.sqrt(h),v=Math.sqrt(f),y=i*Math.tan((q8-Math.acos((h+f-g)/(2*_*v)))/2),b=y/v,x=y/_;Math.abs(b-1)>Y8&&(this._+=`L`+(e+b*u)+`,`+(t+b*d)),this._+=`A`+i+`,`+i+`,0,0,`+ +(d*p>u*m)+`,`+(this._x1=e+x*s)+`,`+(this._y1=t+x*l)}}},arc:function(e,t,n,r,i,a){e=+e,t=+t,n=+n,a=!!a;var o=n*Math.cos(r),s=n*Math.sin(r),l=e+o,u=t+s,d=1^a,f=a?r-i:i-r;if(n<0)throw Error(`negative radius: `+n);this._x1===null?this._+=`M`+l+`,`+u:(Math.abs(this._x1-l)>Y8||Math.abs(this._y1-u)>Y8)&&(this._+=`L`+l+`,`+u),n&&(f<0&&(f=f%J8+J8),f>iut?this._+=`A`+n+`,`+n+`,0,1,`+d+`,`+(e-o)+`,`+(t-s)+`A`+n+`,`+n+`,0,1,`+d+`,`+(this._x1=l)+`,`+(this._y1=u):f>Y8&&(this._+=`A`+n+`,`+n+`,0,`+ +(f>=q8)+`,`+d+`,`+(this._x1=e+n*Math.cos(i))+`,`+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+=`M`+(this._x0=this._x1=+e)+`,`+(this._y0=this._y1=+t)+`h`+ +n+`v`+ +r+`h`+-n+`Z`},toString:function(){return this._}}})),out=o((()=>{aut()}));function sut(e){return function(){return e}}var cut=o((()=>{}));function lut(e){return e[0]}function uut(e){return e[1]}var dut=o((()=>{})),fut,put=o((()=>{fut=Array.prototype.slice}));function mut(e){return e.source}function hut(e){return e.target}function gut(e){var t=mut,n=hut,r=lut,i=uut,a=null;function o(){var o,s=fut.call(arguments),l=t.apply(this,s),u=n.apply(this,s);if(a||=o=rut(),e(a,+r.apply(this,(s[0]=l,s)),+i.apply(this,s),+r.apply(this,(s[0]=u,s)),+i.apply(this,s)),o)return a=null,o+``||null}return o.source=function(e){return arguments.length?(t=e,o):t},o.target=function(e){return arguments.length?(n=e,o):n},o.x=function(e){return arguments.length?(r=typeof e==`function`?e:sut(+e),o):r},o.y=function(e){return arguments.length?(i=typeof e==`function`?e:sut(+e),o):i},o.context=function(e){return arguments.length?(a=e??null,o):a},o}function _ut(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function vut(){return gut(_ut)}var yut=o((()=>{out(),put(),cut(),dut()})),but=o((()=>{out(),cut(),yut(),put()}));function xut(e){return[e.source.x1,e.y0]}function Sut(e){return[e.target.x0,e.y1]}function Cut(){return vut().source(xut).target(Sut)}var wut=o((()=>{but()})),Tut=o((()=>{nut(),Klt(),wut()})),Eut=l({diagram:()=>Rut}),X8,Z8,Q8,$8,e5,Dut,Out,kut,Aut,jut,t5,Mut,Nut,Put,Fut,Iut,Lut,Rut,zut=o((()=>{fc(),S(),h(),_p(),Tut(),X8=(function(){var e=p(function(e,t,n,r){for(n||={},r=e.length;r--;n[e[r]]=t);return n},`o`),t=[1,9],n=[1,10],r=[1,5,10,12],i={trace:p(function(){},`trace`),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:`error`,4:`SANKEY`,5:`NEWLINE`,10:`EOF`,11:`field[source]`,12:`COMMA`,13:`field[target]`,14:`field[value]`,18:`DQUOTE`,19:`ESCAPED_TEXT`,20:`NON_ESCAPED_TEXT`},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:p(function(e,t,n,r,i,a,o){var s=a.length-1;switch(i){case 7:let e=r.findOrCreateNode(a[s-4].trim().replaceAll(`""`,`"`)),t=r.findOrCreateNode(a[s-2].trim().replaceAll(`""`,`"`)),n=parseFloat(a[s].trim());r.addLink(e,t,n);break;case 8:case 9:case 11:this.$=a[s];break;case 10:this.$=a[s-1]}},`anonymous`),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:t,20:n},{1:[2,6],7:11,10:[1,12]},e(n,[2,4],{9:13,5:[1,14]}),{12:[1,15]},e(r,[2,8]),e(r,[2,9]),{19:[1,16]},e(r,[2,11]),{1:[2,1]},{1:[2,5]},e(n,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:t,20:n},{15:18,16:7,17:8,18:t,20:n},{18:[1,19]},e(n,[2,3]),{12:[1,20]},e(r,[2,10]),{15:21,16:7,17:8,18:t,20:n},e([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:p(function(e,t){if(t.recoverable)this.trace(e);else{var n=Error(e);throw n.hash=t,n}},`parseError`),parse:p(function(e){var t=this,n=[0],r=[],i=[null],a=[],o=this.table,s=``,l=0,u=0,d=0,f=2,m=1,h=a.slice.call(arguments,1),g=Object.create(this.lexer),_={yy:{}};for(var v in this.yy)Object.prototype.hasOwnProperty.call(this.yy,v)&&(_.yy[v]=this.yy[v]);g.setInput(e,_.yy),_.yy.lexer=g,_.yy.parser=this,g.yylloc===void 0&&(g.yylloc={});var y=g.yylloc;a.push(y);var b=g.options&&g.options.ranges;this.parseError=typeof _.yy.parseError==`function`?_.yy.parseError:Object.getPrototypeOf(this).parseError;function x(e){n.length-=2*e,i.length-=e,a.length-=e}p(x,`popStack`);function S(){var e=r.pop()||g.lex()||m;return typeof e!=`number`&&(e instanceof Array&&(r=e,e=r.pop()),e=t.symbols_[e]||e),e}p(S,`lex`);for(var C,w,T,E,D,O={},k,A,j,M;;){if(T=n[n.length-1],this.defaultActions[T]?E=this.defaultActions[T]:(C??=S(),E=o[T]&&o[T][C]),E===void 0||!E.length||!E[0]){var N=``;for(k in M=[],o[T])this.terminals_[k]&&k>f&&M.push(`'`+this.terminals_[k]+`'`);N=g.showPosition?`Parse error on line `+(l+1)+`:
|
|
2936
2936
|
`+g.showPosition()+`
|
|
2937
2937
|
Expecting `+M.join(`, `)+`, got '`+(this.terminals_[C]||C)+`'`:`Parse error on line `+(l+1)+`: Unexpected `+(C==m?`end of input`:`'`+(this.terminals_[C]||C)+`'`),this.parseError(N,{text:g.match,token:this.terminals_[C]||C,line:g.yylineno,loc:y,expected:M})}if(E[0]instanceof Array&&E.length>1)throw Error(`Parse Error: multiple actions possible at state: `+T+`, token: `+C);switch(E[0]){case 1:n.push(C),i.push(g.yytext),a.push(g.yylloc),n.push(E[1]),C=null,w?(C=w,w=null):(u=g.yyleng,s=g.yytext,l=g.yylineno,y=g.yylloc,d>0&&d--);break;case 2:if(A=this.productions_[E[1]][1],O.$=i[i.length-A],O._$={first_line:a[a.length-(A||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(A||1)].first_column,last_column:a[a.length-1].last_column},b&&(O._$.range=[a[a.length-(A||1)].range[0],a[a.length-1].range[1]]),D=this.performAction.apply(O,[s,u,l,_.yy,E[1],i,a].concat(h)),D!==void 0)return D;A&&(n=n.slice(0,-1*A*2),i=i.slice(0,-1*A),a=a.slice(0,-1*A)),n.push(this.productions_[E[1]][0]),i.push(O.$),a.push(O._$),j=o[n[n.length-2]][n[n.length-1]],n.push(j);break;case 3:return!0}}return!0},`parse`)};i.lexer=(function(){return{EOF:1,parseError:p(function(e,t){if(this.yy.parser)this.yy.parser.parseError(e,t);else throw Error(e)},`parseError`),setInput:p(function(e,t){return this.yy=t||this.yy||{},this._input=e,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match=``,this.conditionStack=[`INITIAL`],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},`setInput`),input:p(function(){var e=this._input[0];return this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e,e.match(/(?:\r\n?|\n).*/g)?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},`input`),unput:p(function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this.yyleng=this.yytext.length,this},`unput`),more:p(function(){return this._more=!0,this},`more`),reject:p(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError(`Lexical error on line `+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
2938
2938
|
`+this.showPosition(),{text:``,token:null,line:this.yylineno});return this},`reject`),less:p(function(e){this.unput(this.match.slice(e))},`less`),pastInput:p(function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?`...`:``)+e.substr(-20).replace(/\n/g,``)},`pastInput`),upcomingInput:p(function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?`...`:``)).replace(/\n/g,``)},`upcomingInput`),showPosition:p(function(){var e=this.pastInput(),t=Array(e.length+1).join(`-`);return e+this.upcomingInput()+`
|