@carbon/charts-vue 1.12.0 → 1.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
- (function(nt,xe){typeof exports=="object"&&typeof module<"u"?xe(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],xe):(nt=typeof globalThis<"u"?globalThis:nt||self,xe(nt.ChartsVue={},nt.Vue))})(this,function(nt,xe){"use strict";var Nc=(e=>(e.RENDER_FINISHED="render-finished",e.RESIZE="chart-resize",e.MOUSEOVER="chart-mouseover",e.MOUSEOUT="chart-mouseout",e))(Nc||{}),Pc=(e=>(e.SHOW="show-modal",e.HIDE="hide-modal",e))(Pc||{}),Uc=(e=>(e.UPDATE="model-update",e))(Uc||{}),Bc=(e=>(e.SHOW_OVERFLOW_MENU="show-toolbar-overflow-menu",e.HIDE_OVERFLOW_MENU="hide-toolbar-overflow-menu",e.BUTTON_CLICK="toolbar-button-click",e))(Bc||{}),Vc=(e=>(e.UPDATE="zoom-bar-update",e.SELECTION_START="zoom-bar-selection-start",e.SELECTION_IN_PROGRESS="zoom-bar-selection-in-progress",e.SELECTION_END="zoom-bar-selection-end",e))(Vc||{}),Hc=(e=>(e.CHANGE="zoom-domain-change",e))(Hc||{}),Gc=(e=>(e.CANVAS_ZOOM_IN="canvas-zoom-in",e.CANVAS_ZOOM_OUT="canvas-zoom-out",e))(Gc||{}),Fc=(e=>(e.LABEL_MOUSEOVER="axis-label-mouseover",e.LABEL_MOUSEMOVE="axis-label-mousemove",e.LABEL_CLICK="axis-label-click",e.LABEL_MOUSEOUT="axis-label-mouseout",e.LABEL_FOCUS="axis-label-focus",e.LABEL_BLUR="axis-label-blur",e.RENDER_COMPLETE="axis-render-complete",e))(Fc||{}),zc=(e=>(e.POINT_MOUSEOVER="scatter-mouseover",e.POINT_MOUSEMOVE="scatter-mousemove",e.POINT_CLICK="scatter-click",e.POINT_MOUSEOUT="scatter-mouseout",e))(zc||{}),jc=(e=>(e.WORD_MOUSEOVER="wordcloud-word-mouseover",e.WORD_MOUSEMOVE="wordcloud-word-mousemove",e.WORD_CLICK="wordcloud-word-click",e.WORD_MOUSEOUT="wordcloud-word-mouseout",e))(jc||{}),Wc=(e=>(e.SLICE_MOUSEOVER="pie-slice-mouseover",e.SLICE_MOUSEMOVE="pie-slice-mousemove",e.SLICE_CLICK="pie-slice-click",e.SLICE_MOUSEOUT="pie-slice-mouseout",e))(Wc||{}),qc=(e=>(e.ARC_MOUSEOVER="gauge-arc-mouseover",e.ARC_MOUSEMOVE="gauge-arc-mousemove",e.ARC_CLICK="gauge-arc-click",e.ARC_MOUSEOUT="gauge-arc-mouseout",e))(qc||{}),Yc=(e=>(e.BAR_MOUSEOVER="bar-mouseover",e.BAR_MOUSEMOVE="bar-mousemove",e.BAR_CLICK="bar-click",e.BAR_MOUSEOUT="bar-mouseout",e))(Yc||{}),Xc=(e=>(e.BOX_MOUSEOVER="box-mouseover",e.BOX_MOUSEMOVE="box-mousemove",e.BOX_CLICK="box-click",e.BOX_MOUSEOUT="box-mouseout",e.OUTLIER_MOUSEOVER="outlier-mouseover",e.OUTLIER_MOUSEMOVE="outlier-mousemove",e.OUTLIER_CLICK="outlier-click",e.OUTLIER_MOUSEOUT="outlier-mouseout",e))(Xc||{}),Zc=(e=>(e.SCATTER_MOUSEOVER="scatter-mouseover",e.SCATTER_MOUSEMOVE="scatter-mousemove",e.SCATTER_CLICK="scatter-click",e.SCATTER_MOUSEOUT="scatter-mouseout",e))(Zc||{}),Kc=(e=>(e.POINT_MOUSEOVER="scatter-mouseover",e.POINT_MOUSEMOVE="scatter-mousemove",e.POINT_CLICK="scatter-click",e.POINT_MOUSEOUT="scatter-mouseout",e))(Kc||{}),Qc=(e=>(e.X_AXIS_MOUSEOVER="radar-x-axis-mouseover",e.X_AXIS_MOUSEMOVE="radar-x-axis-mousemove",e.X_AXIS_CLICK="radar-x-axis-click",e.X_AXIS_MOUSEOUT="radar-x-axis-mouseout",e))(Qc||{}),Jc=(e=>(e.NODE_MOUSEOVER="tree-node-mouseover",e.NODE_CLICK="tree-node-click",e.NODE_MOUSEOUT="tree-node-mouseout",e))(Jc||{}),tu=(e=>(e.LEAF_MOUSEOVER="leaf-mouseover",e.LEAF_MOUSEMOVE="leaf-mousemove",e.LEAF_CLICK="leaf-click",e.LEAF_MOUSEOUT="leaf-mouseout",e))(tu||{}),Dr=(e=>(e.SHOW="show-tooltip",e.MOVE="move-tooltip",e.HIDE="hide-tooltip",e))(Dr||{}),eu=(e=>(e.SHOW="show-threshold",e.HIDE="hide-threshold",e))(eu||{}),nu=(e=>(e.ITEM_HOVER="legend-item-onhover",e.ITEM_CLICK="legend-item-onclick",e.ITEM_MOUSEOUT="legend-item-onmouseout",e.ITEMS_UPDATE="legend-items-update",e))(nu||{}),ru=(e=>(e.CIRCLE_MOUSEOVER="circle-leaf-mouseover",e.CIRCLE_CLICK="circle-leaf-click",e.CIRCLE_MOUSEOUT="circle-leaf-mouseout",e.CIRCLE_MOUSEMOVE="circle-leaf-mousemove",e))(ru||{}),iu=(e=>(e.NODE_MOUSEOVER="alluvial-node-mouseover",e.NODE_CLICK="alluvial-node-click",e.NODE_MOUSEOUT="alluvial-node-mouseout",e.NODE_MOUSEMOVE="alluvial-node-mousemove",e.LINE_MOUSEOVER="alluvial-line-mouseover",e.LINE_CLICK="alluvial-line-click",e.LINE_MOUSEOUT="alluvial-line-mouseout",e.LINE_MOUSEMOVE="alluvial-line-mousemove",e))(iu||{}),su=(e=>(e.METER_MOUSEOVER="meter-mouseover",e.METER_CLICK="meter-click",e.METER_MOUSEOUT="meter-mouseout",e.METER_MOUSEMOVE="meter-mousemove",e))(su||{}),au=(e=>(e.HEATMAP_MOUSEOVER="heatmap-mouseover",e.HEATMAP_CLICK="heatmap-click",e.HEATMAP_MOUSEOUT="heatmap-mouseout",e.HEATMAP_MOUSEMOVE="hetmap-mousemove",e))(au||{}),qn=(e=>(e.CHOROPLETH_MOUSEOVER="choropleth-mouseover",e.CHOROPLETH_CLICK="choropleth-click",e.CHOROPLETH_MOUSEOUT="choropleth-mouseout",e.CHOROPLETH_MOUSEMOVE="choropleth-mousemove",e))(qn||{});const bv=Object.freeze(Object.defineProperty({__proto__:null,Alluvial:iu,Area:zc,Axis:Fc,Bar:Yc,Boxplot:Xc,CanvasZoom:Gc,Chart:Nc,Choropleth:qn,CirclePack:ru,Gauge:qc,Heatmap:au,Legend:nu,Line:Kc,Meter:su,Modal:Pc,Model:Uc,Pie:Wc,Radar:Qc,Scatter:Zc,Threshold:eu,Toolbar:Bc,Tooltip:Dr,Tree:Jc,Treemap:tu,WordCloud:jc,ZoomBar:Vc,ZoomDomain:Hc},Symbol.toStringTag,{value:"Module"})),O=bv;var q=(e=>(e.HTML="html",e.SVG="svg",e))(q||{}),ou=(e=>(e.WHITE="white",e.G100="g100",e.G90="g90",e.G10="g10",e))(ou||{}),X=(e=>(e.BACKGROUND="background",e.FILL="fill",e.STROKE="stroke",e.TOOLTIP="tooltip",e))(X||{}),V=(e=>(e.LEFT="left",e.RIGHT="right",e.TOP="top",e.BOTTOM="bottom",e))(V||{}),De=(e=>(e.GRAPH_VIEW="graph_view",e.SLIDER_VIEW="slider_view",e))(De||{}),be=(e=>(e.END_LINE="end_line",e.MID_LINE="mid_line",e.FRONT_LINE="front_line",e.NONE="none",e))(be||{}),Bt=(e=>(e.VERTICAL="vertical",e.HORIZONTAL="horizontal",e))(Bt||{}),W=(e=>(e.TIME="time",e.LINEAR="linear",e.LOG="log",e.LABELS="labels",e.LABELS_RATIO="labels-ratio",e))(W||{}),kr=(e=>(e.RIGHT="right",e.LEFT="left",e.TOP="top",e.BOTTOM="bottom",e))(kr||{}),Rt=(e=>(e.LEFT="left",e.CENTER="center",e.RIGHT="right",e))(Rt||{}),Rr=(e=>(e.HORIZONTAL="horizontal",e.VERTICAL="vertical",e))(Rr||{}),Ba=(e=>(e.TREE="tree",e.DENDROGRAM="dendrogram",e))(Ba||{}),bt=(e=>(e.ROW="row",e.COLUMN="column",e.ROW_REVERSE="row-reverse",e.COLUMN_REVERSE="column-reverse",e))(bt||{}),tt=(e=>(e.FIXED="fixed",e.PREFERRED="preferred",e.STRETCH="stretch",e))(tt||{}),Yn=(e=>(e.CENTER="center",e))(Yn||{}),Bi=(e=>(e.LEFT="left",e.RIGHT="right",e))(Bi||{}),It=(e=>(e.GRID="grid",e.VERT_OR_HORIZ="vertOrHoriz",e.PIE="pie",e.DONUT="donut",e))(It||{}),He=(e=>(e.START="start",e.MIDDLE="middle",e.END="end",e))(He||{}),Ge=(e=>(e.BASELINE="baseline",e.MIDDLE="middle",e.HANGING="hanging",e))(Ge||{}),Xn=(e=>(e.SEMI="semi",e.FULL="full",e))(Xn||{}),Va=(e=>(e.UP="up",e.DOWN="down",e))(Va||{}),Vi=(e=>(e.SUCCESS="success",e.WARNING="warning",e.DANGER="danger",e))(Vi||{}),Hi=(e=>(e.ALWAYS="always",e.AUTO="auto",e.NEVER="never",e))(Hi||{}),fe=(e=>(e.SCATTER="scatter",e.LINE="line",e.SIMPLE_BAR="simple-bar",e.STACKED_BAR="stacked-bar",e.GROUPED_BAR="grouped-bar",e.AREA="area",e.STACKED_AREA="stacked-area",e))(fe||{}),Mt=(e=>(e.EXPORT_CSV="Export as CSV",e.EXPORT_PNG="Export as PNG",e.EXPORT_JPG="Export as JPG",e.ZOOM_IN="Zoom in",e.ZOOM_OUT="Zoom out",e.RESET_ZOOM="Reset zoom",e.MAKE_FULLSCREEN="Make fullscreen",e.SHOW_AS_DATATABLE="Show as data-table",e.CUSTOM="Custom",e))(Mt||{}),Ha=(e=>(e.LEFT="left",e.RIGHT="right",e))(Ha||{}),Nt=(e=>(e.CHECKBOX="checkbox",e.RADIUS="radius",e.AREA="area",e.SIZE="size",e.LINE="line",e.QUARTILE="quartile",e.ZOOM="zoom",e))(Nt||{}),Gi=(e=>(e.LINEAR="linear",e.QUANTIZE="quantize",e))(Gi||{}),Ir=(e=>(e.ON="on",e.AUTO="auto",e.OFF="off",e))(Ir||{}),Fi=(e=>(e.DEFAULT="default",e.HOVERABLE="hoverable",e))(Fi||{}),Fe=(e=>(e.geoEqualEarth="geoEqualEarth",e.geoAlbers="geoAlbers",e.geoConicEqualArea="geoConicEqualArea",e.geoConicEquidistant="geoConicEquidistant",e.geoEquirectangular="geoEquirectangular",e.geoMercator="geoMercator",e.geoNaturalEarth1="geoNaturalEarth1",e))(Fe||{});function wn(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function wv(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ga(e){let t,n,r;e.length!==2?(t=wn,n=(o,l)=>wn(e(o),l),r=(o,l)=>e(o)-l):(t=e===wn||e===wv?e:_v,n=e,r=e);function i(o,l,c=0,u=o.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(o[d],l)<0?c=d+1:u=d}while(c<u)}return c}function s(o,l,c=0,u=o.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(o[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function a(o,l,c=0,u=o.length){const d=i(o,l,c,u-1);return d>c&&r(o[d-1],l)>-r(o[d],l)?d-1:d}return{left:i,center:a,right:s}}function _v(){return 0}function Ev(e){return e===null?NaN:+e}function*Sv(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const Ov=Ga(wn).right;Ga(Ev).center;const Fa=Ov;function Tv(e,t){let n=0;if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&++n;else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(i=+i)>=i&&++n}return n}function we(e,t){let n,r;if(t===void 0)for(const i of e)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));else{let i=-1;for(let s of e)(s=t(s,++i,e))!=null&&(n===void 0?s>=s&&(n=r=s):(n>s&&(n=s),r<s&&(r=s)))}return[n,r]}class _n{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let r=0;for(let i=0;i<this._n&&i<32;i++){const s=n[i],a=t+s,o=Math.abs(t)<Math.abs(s)?t-(a-s):s-(a-t);o&&(n[r++]=o),t=a}return n[r]=t,this._n=r+1,this}valueOf(){const t=this._partials;let n=this._n,r,i,s,a=0;if(n>0){for(a=t[--n];n>0&&(r=a,i=t[--n],a=r+i,s=i-(a-r),!s););n>0&&(s<0&&t[n-1]<0||s>0&&t[n-1]>0)&&(i=s*2,r=a+i,i==r-a&&(a=r))}return a}}class lu extends Map{constructor(t,n=$v){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(cu(this,t))}has(t){return super.has(cu(this,t))}set(t,n){return super.set(Mv(this,t),n)}delete(t){return super.delete(Cv(this,t))}}function cu({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Mv({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Cv({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function $v(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Av(e){return e}function Lv(e=wn){if(e===wn)return uu;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function uu(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}var Dv=Array.prototype,kv=Dv.slice;function za(e){return()=>e}const Rv=Math.sqrt(50),Iv=Math.sqrt(10),Nv=Math.sqrt(2);function zi(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),s=r/Math.pow(10,i),a=s>=Rv?10:s>=Iv?5:s>=Nv?2:1;let o,l,c;return i<0?(c=Math.pow(10,-i)/a,o=Math.round(e*c),l=Math.round(t*c),o/c<e&&++o,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*a,o=Math.round(e/c),l=Math.round(t/c),o*c<e&&++o,l*c>t&&--l),l<o&&.5<=n&&n<2?zi(e,t,n*2):[o,l,c]}function ji(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,s,a]=r?zi(t,e,n):zi(e,t,n);if(!(s>=i))return[];const o=s-i+1,l=new Array(o);if(r)if(a<0)for(let c=0;c<o;++c)l[c]=(s-c)/-a;else for(let c=0;c<o;++c)l[c]=(s-c)*a;else if(a<0)for(let c=0;c<o;++c)l[c]=(i+c)/-a;else for(let c=0;c<o;++c)l[c]=(i+c)*a;return l}function Zn(e,t,n){return t=+t,e=+e,n=+n,zi(e,t,n)[2]}function ja(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?Zn(t,e,n):Zn(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function Pv(e,t,n){let r;for(;;){const i=Zn(e,t,n);if(i===r||i===0||!isFinite(i))return[e,t];i>0?(e=Math.floor(e/i)*i,t=Math.ceil(t/i)*i):i<0&&(e=Math.ceil(e*i)/i,t=Math.floor(t*i)/i),r=i}}function Uv(e){return Math.max(1,Math.ceil(Math.log(Tv(e))/Math.LN2)+1)}function Bv(){var e=Av,t=we,n=Uv;function r(i){Array.isArray(i)||(i=Array.from(i));var s,a=i.length,o,l,c=new Array(a);for(s=0;s<a;++s)c[s]=e(i[s],s,i);var u=t(c),d=u[0],h=u[1],f=n(c,d,h);if(!Array.isArray(f)){const x=h,S=+f;if(t===we&&([d,h]=Pv(d,h,S)),f=ji(d,h,S),f[0]<=d&&(l=Zn(d,h,S)),f[f.length-1]>=h)if(x>=h&&t===we){const _=Zn(d,h,S);isFinite(_)&&(_>0?h=(Math.floor(h/_)+1)*_:_<0&&(h=(Math.ceil(h*-_)+1)/-_))}else f.pop()}for(var p=f.length,m=0,g=p;f[m]<=d;)++m;for(;f[g-1]>h;)--g;(m||g<p)&&(f=f.slice(m,g),p=g-m);var v=new Array(p+1),y;for(s=0;s<=p;++s)y=v[s]=[],y.x0=s>0?f[s-1]:d,y.x1=s<p?f[s]:h;if(isFinite(l)){if(l>0)for(s=0;s<a;++s)(o=c[s])!=null&&d<=o&&o<=h&&v[Math.min(p,Math.floor((o-d)/l))].push(i[s]);else if(l<0){for(s=0;s<a;++s)if((o=c[s])!=null&&d<=o&&o<=h){const x=Math.floor((d-o)*l);v[Math.min(p,x+(f[x]<=o))].push(i[s])}}}else for(s=0;s<a;++s)(o=c[s])!=null&&d<=o&&o<=h&&v[Fa(f,o,0,p)].push(i[s]);return v}return r.value=function(i){return arguments.length?(e=typeof i=="function"?i:za(i),r):e},r.domain=function(i){return arguments.length?(t=typeof i=="function"?i:za([i[0],i[1]]),r):t},r.thresholds=function(i){return arguments.length?(n=typeof i=="function"?i:za(Array.isArray(i)?kv.call(i):i),r):n},r}function En(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);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}function un(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);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}function hu(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?uu:Lv(i);r>n;){if(r-n>600){const l=r-n+1,c=t-n+1,u=Math.log(l),d=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*d*(l-d)/l)*(c-l/2<0?-1:1),f=Math.max(n,Math.floor(t-c*d/l+h)),p=Math.min(r,Math.floor(t+(l-c)*d/l+h));hu(e,t,f,p,i)}const s=e[t];let a=n,o=r;for(Nr(e,n,t),i(e[r],s)>0&&Nr(e,n,r);a<o;){for(Nr(e,a,o),++a,--o;i(e[a],s)<0;)++a;for(;i(e[o],s)>0;)--o}i(e[n],s)===0?Nr(e,n,o):(++o,Nr(e,o,r)),o<=t&&(n=o+1),t<=o&&(r=o-1)}return e}function Nr(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Wa(e,t,n){if(e=Float64Array.from(Sv(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return un(e);if(t>=1)return En(e);var r,i=(r-1)*t,s=Math.floor(i),a=En(hu(e,s).subarray(0,s+1)),o=un(e.subarray(s+1));return a+(o-a)*(i-s)}}function*Vv(e){for(const t of e)yield*t}function du(e){return Array.from(Vv(e))}function Hv(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,s=new Array(i);++r<i;)s[r]=e+r*n;return s}function Gv(e){return e}var Wi=1,qi=2,qa=3,Pr=4,fu=1e-6;function Fv(e){return"translate("+e+",0)"}function zv(e){return"translate(0,"+e+")"}function jv(e){return t=>+e(t)}function Wv(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function qv(){return!this.__axis}function Yi(e,t){var n=[],r=null,i=null,s=6,a=6,o=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,c=e===Wi||e===Pr?-1:1,u=e===Pr||e===qi?"x":"y",d=e===Wi||e===qa?Fv:zv;function h(f){var p=r??(t.ticks?t.ticks.apply(t,n):t.domain()),m=i??(t.tickFormat?t.tickFormat.apply(t,n):Gv),g=Math.max(s,0)+o,v=t.range(),y=+v[0]+l,x=+v[v.length-1]+l,S=(t.bandwidth?Wv:jv)(t.copy(),l),_=f.selection?f.selection():f,E=_.selectAll(".domain").data([null]),T=_.selectAll(".tick").data(p,t).order(),k=T.exit(),I=T.enter().append("g").attr("class","tick"),A=T.select("line"),C=T.select("text");E=E.merge(E.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),T=T.merge(I),A=A.merge(I.append("line").attr("stroke","currentColor").attr(u+"2",c*s)),C=C.merge(I.append("text").attr("fill","currentColor").attr(u,c*g).attr("dy",e===Wi?"0em":e===qa?"0.71em":"0.32em")),f!==_&&(E=E.transition(f),T=T.transition(f),A=A.transition(f),C=C.transition(f),k=k.transition(f).attr("opacity",fu).attr("transform",function(B){return isFinite(B=S(B))?d(B+l):this.getAttribute("transform")}),I.attr("opacity",fu).attr("transform",function(B){var M=this.parentNode.__axis;return d((M&&isFinite(M=M(B))?M:S(B))+l)})),k.remove(),E.attr("d",e===Pr||e===qi?a?"M"+c*a+","+y+"H"+l+"V"+x+"H"+c*a:"M"+l+","+y+"V"+x:a?"M"+y+","+c*a+"V"+l+"H"+x+"V"+c*a:"M"+y+","+l+"H"+x),T.attr("opacity",1).attr("transform",function(B){return d(S(B)+l)}),A.attr(u+"2",c*s),C.attr(u,c*g).text(m),_.filter(qv).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===qi?"start":e===Pr?"end":"middle"),_.each(function(){this.__axis=S})}return h.scale=function(f){return arguments.length?(t=f,h):t},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(f){return arguments.length?(n=f==null?[]:Array.from(f),h):n.slice()},h.tickValues=function(f){return arguments.length?(r=f==null?null:Array.from(f),h):r&&r.slice()},h.tickFormat=function(f){return arguments.length?(i=f,h):i},h.tickSize=function(f){return arguments.length?(s=a=+f,h):s},h.tickSizeInner=function(f){return arguments.length?(s=+f,h):s},h.tickSizeOuter=function(f){return arguments.length?(a=+f,h):a},h.tickPadding=function(f){return arguments.length?(o=+f,h):o},h.offset=function(f){return arguments.length?(l=+f,h):l},h}function Yv(e){return Yi(Wi,e)}function Xv(e){return Yi(qi,e)}function Ya(e){return Yi(qa,e)}function pu(e){return Yi(Pr,e)}var Zv={value:()=>{}};function Xa(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Xi(n)}function Xi(e){this._=e}function Kv(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Xi.prototype=Xa.prototype={constructor:Xi,on:function(e,t){var n=this._,r=Kv(e+"",n),i,s=-1,a=r.length;if(arguments.length<2){for(;++s<a;)if((i=(e=r[s]).type)&&(i=Qv(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++s<a;)if(i=(e=r[s]).type)n[i]=gu(n[i],e.name,t);else if(t==null)for(i in n)n[i]=gu(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 Xi(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,s;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(s=this._[e],r=0,i=s.length;r<i;++r)s[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,s=r.length;i<s;++i)r[i].value.apply(t,n)}};function Qv(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function gu(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Zv,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var Za="http://www.w3.org/1999/xhtml";const mu={svg:"http://www.w3.org/2000/svg",xhtml:Za,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Zi(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),mu.hasOwnProperty(t)?{space:mu[t],local:e}:e}function Jv(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Za&&t.documentElement.namespaceURI===Za?t.createElement(e):t.createElementNS(n,e)}}function t0(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function vu(e){var t=Zi(e);return(t.local?t0:Jv)(t)}function e0(){}function Ka(e){return e==null?e0:function(){return this.querySelector(e)}}function n0(e){typeof e!="function"&&(e=Ka(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var s=t[i],a=s.length,o=r[i]=new Array(a),l,c,u=0;u<a;++u)(l=s[u])&&(c=e.call(l,l.__data__,u,s))&&("__data__"in l&&(c.__data__=l.__data__),o[u]=c);return new ae(r,this._parents)}function r0(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function i0(){return[]}function yu(e){return e==null?i0:function(){return this.querySelectorAll(e)}}function s0(e){return function(){return r0(e.apply(this,arguments))}}function a0(e){typeof e=="function"?e=s0(e):e=yu(e);for(var t=this._groups,n=t.length,r=[],i=[],s=0;s<n;++s)for(var a=t[s],o=a.length,l,c=0;c<o;++c)(l=a[c])&&(r.push(e.call(l,l.__data__,c,a)),i.push(l));return new ae(r,i)}function xu(e){return function(){return this.matches(e)}}function bu(e){return function(t){return t.matches(e)}}var o0=Array.prototype.find;function l0(e){return function(){return o0.call(this.children,e)}}function c0(){return this.firstElementChild}function u0(e){return this.select(e==null?c0:l0(typeof e=="function"?e:bu(e)))}var h0=Array.prototype.filter;function d0(){return Array.from(this.children)}function f0(e){return function(){return h0.call(this.children,e)}}function p0(e){return this.selectAll(e==null?d0:f0(typeof e=="function"?e:bu(e)))}function g0(e){typeof e!="function"&&(e=xu(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var s=t[i],a=s.length,o=r[i]=[],l,c=0;c<a;++c)(l=s[c])&&e.call(l,l.__data__,c,s)&&o.push(l);return new ae(r,this._parents)}function wu(e){return new Array(e.length)}function m0(){return new ae(this._enter||this._groups.map(wu),this._parents)}function Ki(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Ki.prototype={constructor:Ki,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 v0(e){return function(){return e}}function y0(e,t,n,r,i,s){for(var a=0,o,l=t.length,c=s.length;a<c;++a)(o=t[a])?(o.__data__=s[a],r[a]=o):n[a]=new Ki(e,s[a]);for(;a<l;++a)(o=t[a])&&(i[a]=o)}function x0(e,t,n,r,i,s,a){var o,l,c=new Map,u=t.length,d=s.length,h=new Array(u),f;for(o=0;o<u;++o)(l=t[o])&&(h[o]=f=a.call(l,l.__data__,o,t)+"",c.has(f)?i[o]=l:c.set(f,l));for(o=0;o<d;++o)f=a.call(e,s[o],o,s)+"",(l=c.get(f))?(r[o]=l,l.__data__=s[o],c.delete(f)):n[o]=new Ki(e,s[o]);for(o=0;o<u;++o)(l=t[o])&&c.get(h[o])===l&&(i[o]=l)}function b0(e){return e.__data__}function w0(e,t){if(!arguments.length)return Array.from(this,b0);var n=t?x0:y0,r=this._parents,i=this._groups;typeof e!="function"&&(e=v0(e));for(var s=i.length,a=new Array(s),o=new Array(s),l=new Array(s),c=0;c<s;++c){var u=r[c],d=i[c],h=d.length,f=_0(e.call(u,u&&u.__data__,c,r)),p=f.length,m=o[c]=new Array(p),g=a[c]=new Array(p),v=l[c]=new Array(h);n(u,d,m,g,v,f,t);for(var y=0,x=0,S,_;y<p;++y)if(S=m[y]){for(y>=x&&(x=y+1);!(_=g[x])&&++x<p;);S._next=_||null}}return a=new ae(a,r),a._enter=o,a._exit=l,a}function _0(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function E0(){return new ae(this._exit||this._groups.map(wu),this._parents)}function S0(e,t,n){var r=this.enter(),i=this,s=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?s.remove():n(s),r&&i?r.merge(i).order():i}function O0(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,s=r.length,a=Math.min(i,s),o=new Array(i),l=0;l<a;++l)for(var c=n[l],u=r[l],d=c.length,h=o[l]=new Array(d),f,p=0;p<d;++p)(f=c[p]||u[p])&&(h[p]=f);for(;l<i;++l)o[l]=n[l];return new ae(o,this._parents)}function T0(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,s=r[i],a;--i>=0;)(a=r[i])&&(s&&a.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(a,s),s=a);return this}function M0(e){e||(e=C0);function t(d,h){return d&&h?e(d.__data__,h.__data__):!d-!h}for(var n=this._groups,r=n.length,i=new Array(r),s=0;s<r;++s){for(var a=n[s],o=a.length,l=i[s]=new Array(o),c,u=0;u<o;++u)(c=a[u])&&(l[u]=c);l.sort(t)}return new ae(i,this._parents).order()}function C0(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function $0(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function A0(){return Array.from(this)}function L0(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,s=r.length;i<s;++i){var a=r[i];if(a)return a}return null}function D0(){let e=0;for(const t of this)++e;return e}function k0(){return!this.node()}function R0(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],s=0,a=i.length,o;s<a;++s)(o=i[s])&&e.call(o,o.__data__,s,i);return this}function I0(e){return function(){this.removeAttribute(e)}}function N0(e){return function(){this.removeAttributeNS(e.space,e.local)}}function P0(e,t){return function(){this.setAttribute(e,t)}}function U0(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function B0(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function V0(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 H0(e,t){var n=Zi(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?N0:I0:typeof t=="function"?n.local?V0:B0:n.local?U0:P0)(n,t))}function _u(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function G0(e){return function(){this.style.removeProperty(e)}}function F0(e,t,n){return function(){this.style.setProperty(e,t,n)}}function z0(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function j0(e,t,n){return arguments.length>1?this.each((t==null?G0:typeof t=="function"?z0:F0)(e,t,n??"")):Kn(this.node(),e)}function Kn(e,t){return e.style.getPropertyValue(t)||_u(e).getComputedStyle(e,null).getPropertyValue(t)}function W0(e){return function(){delete this[e]}}function q0(e,t){return function(){this[e]=t}}function Y0(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function X0(e,t){return arguments.length>1?this.each((t==null?W0:typeof t=="function"?Y0:q0)(e,t)):this.node()[e]}function Eu(e){return e.trim().split(/^|\s+/)}function Qa(e){return e.classList||new Su(e)}function Su(e){this._node=e,this._names=Eu(e.getAttribute("class")||"")}Su.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Ou(e,t){for(var n=Qa(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Tu(e,t){for(var n=Qa(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function Z0(e){return function(){Ou(this,e)}}function K0(e){return function(){Tu(this,e)}}function Q0(e,t){return function(){(t.apply(this,arguments)?Ou:Tu)(this,e)}}function J0(e,t){var n=Eu(e+"");if(arguments.length<2){for(var r=Qa(this.node()),i=-1,s=n.length;++i<s;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?Q0:t?Z0:K0)(n,t))}function ty(){this.textContent=""}function ey(e){return function(){this.textContent=e}}function ny(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function ry(e){return arguments.length?this.each(e==null?ty:(typeof e=="function"?ny:ey)(e)):this.node().textContent}function iy(){this.innerHTML=""}function sy(e){return function(){this.innerHTML=e}}function ay(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function oy(e){return arguments.length?this.each(e==null?iy:(typeof e=="function"?ay:sy)(e)):this.node().innerHTML}function ly(){this.nextSibling&&this.parentNode.appendChild(this)}function cy(){return this.each(ly)}function uy(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function hy(){return this.each(uy)}function dy(e){var t=typeof e=="function"?e:vu(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function fy(){return null}function py(e,t){var n=typeof e=="function"?e:vu(e),r=t==null?fy:typeof t=="function"?t:Ka(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function gy(){var e=this.parentNode;e&&e.removeChild(this)}function my(){return this.each(gy)}function vy(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function yy(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function xy(e){return this.select(e?yy:vy)}function by(e){return arguments.length?this.property("__data__",e):this.node().__data__}function wy(e){return function(t){e.call(this,t,this.__data__)}}function _y(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function Ey(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,s;n<i;++n)s=t[n],(!e.type||s.type===e.type)&&s.name===e.name?this.removeEventListener(s.type,s.listener,s.options):t[++r]=s;++r?t.length=r:delete this.__on}}}function Sy(e,t,n){return function(){var r=this.__on,i,s=wy(t);if(r){for(var a=0,o=r.length;a<o;++a)if((i=r[a]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=s,i.options=n),i.value=t;return}}this.addEventListener(e.type,s,n),i={type:e.type,name:e.name,value:t,listener:s,options:n},r?r.push(i):this.__on=[i]}}function Oy(e,t,n){var r=_y(e+""),i,s=r.length,a;if(arguments.length<2){var o=this.node().__on;if(o){for(var l=0,c=o.length,u;l<c;++l)for(i=0,u=o[l];i<s;++i)if((a=r[i]).type===u.type&&a.name===u.name)return u.value}return}for(o=t?Sy:Ey,i=0;i<s;++i)this.each(o(r[i],t,n));return this}function Mu(e,t,n){var r=_u(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 Ty(e,t){return function(){return Mu(this,e,t)}}function My(e,t){return function(){return Mu(this,e,t.apply(this,arguments))}}function Cy(e,t){return this.each((typeof t=="function"?My:Ty)(e,t))}function*$y(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,s=r.length,a;i<s;++i)(a=r[i])&&(yield a)}var Cu=[null];function ae(e,t){this._groups=e,this._parents=t}function Ur(){return new ae([[document.documentElement]],Cu)}function Ay(){return this}ae.prototype=Ur.prototype={constructor:ae,select:n0,selectAll:a0,selectChild:u0,selectChildren:p0,filter:g0,data:w0,enter:m0,exit:E0,join:S0,merge:O0,selection:Ay,order:T0,sort:M0,call:$0,nodes:A0,node:L0,size:D0,empty:k0,each:R0,attr:H0,style:j0,property:X0,classed:J0,text:ry,html:oy,raise:cy,lower:hy,append:dy,insert:py,remove:my,clone:xy,datum:by,on:Oy,dispatch:Cy,[Symbol.iterator]:$y};function D(e){return typeof e=="string"?new ae([[document.querySelector(e)]],[document.documentElement]):new ae([[e]],Cu)}function Ly(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Sn(e,t){if(e=Ly(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}const Ja={capture:!0,passive:!1};function to(e){e.preventDefault(),e.stopImmediatePropagation()}function Dy(e){var t=e.document.documentElement,n=D(e).on("dragstart.drag",to,Ja);"onselectstart"in t?n.on("selectstart.drag",to,Ja):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function ky(e,t){var n=e.document.documentElement,r=D(e).on("dragstart.drag",null);t&&(r.on("click.drag",to,Ja),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function eo(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function $u(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Br(){}var Vr=.7,Qi=1/Vr,Qn="\\s*([+-]?\\d+)\\s*",Hr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ke="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ry=/^#([0-9a-f]{3,8})$/,Iy=new RegExp(`^rgb\\(${Qn},${Qn},${Qn}\\)$`),Ny=new RegExp(`^rgb\\(${ke},${ke},${ke}\\)$`),Py=new RegExp(`^rgba\\(${Qn},${Qn},${Qn},${Hr}\\)$`),Uy=new RegExp(`^rgba\\(${ke},${ke},${ke},${Hr}\\)$`),By=new RegExp(`^hsl\\(${Hr},${ke},${ke}\\)$`),Vy=new RegExp(`^hsla\\(${Hr},${ke},${ke},${Hr}\\)$`),Au={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};eo(Br,ze,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Lu,formatHex:Lu,formatHex8:Hy,formatHsl:Gy,formatRgb:Du,toString:Du});function Lu(){return this.rgb().formatHex()}function Hy(){return this.rgb().formatHex8()}function Gy(){return Pu(this).formatHsl()}function Du(){return this.rgb().formatRgb()}function ze(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ry.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?ku(t):n===3?new te(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Ji(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Ji(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=Iy.exec(e))?new te(t[1],t[2],t[3],1):(t=Ny.exec(e))?new te(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Py.exec(e))?Ji(t[1],t[2],t[3],t[4]):(t=Uy.exec(e))?Ji(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=By.exec(e))?Nu(t[1],t[2]/100,t[3]/100,1):(t=Vy.exec(e))?Nu(t[1],t[2]/100,t[3]/100,t[4]):Au.hasOwnProperty(e)?ku(Au[e]):e==="transparent"?new te(NaN,NaN,NaN,0):null}function ku(e){return new te(e>>16&255,e>>8&255,e&255,1)}function Ji(e,t,n,r){return r<=0&&(e=t=n=NaN),new te(e,t,n,r)}function Fy(e){return e instanceof Br||(e=ze(e)),e?(e=e.rgb(),new te(e.r,e.g,e.b,e.opacity)):new te}function no(e,t,n,r){return arguments.length===1?Fy(e):new te(e,t,n,r??1)}function te(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}eo(te,no,$u(Br,{brighter(e){return e=e==null?Qi:Math.pow(Qi,e),new te(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Vr:Math.pow(Vr,e),new te(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new te(On(this.r),On(this.g),On(this.b),ts(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:Ru,formatHex:Ru,formatHex8:zy,formatRgb:Iu,toString:Iu}));function Ru(){return`#${Tn(this.r)}${Tn(this.g)}${Tn(this.b)}`}function zy(){return`#${Tn(this.r)}${Tn(this.g)}${Tn(this.b)}${Tn((isNaN(this.opacity)?1:this.opacity)*255)}`}function Iu(){const e=ts(this.opacity);return`${e===1?"rgb(":"rgba("}${On(this.r)}, ${On(this.g)}, ${On(this.b)}${e===1?")":`, ${e})`}`}function ts(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function On(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Tn(e){return e=On(e),(e<16?"0":"")+e.toString(16)}function Nu(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new _e(e,t,n,r)}function Pu(e){if(e instanceof _e)return new _e(e.h,e.s,e.l,e.opacity);if(e instanceof Br||(e=ze(e)),!e)return new _e;if(e instanceof _e)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),s=Math.max(t,n,r),a=NaN,o=s-i,l=(s+i)/2;return o?(t===s?a=(n-r)/o+(n<r)*6:n===s?a=(r-t)/o+2:a=(t-n)/o+4,o/=l<.5?s+i:2-s-i,a*=60):o=l>0&&l<1?0:a,new _e(a,o,l,e.opacity)}function ro(e,t,n,r){return arguments.length===1?Pu(e):new _e(e,t,n,r??1)}function _e(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}eo(_e,ro,$u(Br,{brighter(e){return e=e==null?Qi:Math.pow(Qi,e),new _e(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Vr:Math.pow(Vr,e),new _e(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 te(io(e>=240?e-240:e+120,i,r),io(e,i,r),io(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new _e(Uu(this.h),es(this.s),es(this.l),ts(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ts(this.opacity);return`${e===1?"hsl(":"hsla("}${Uu(this.h)}, ${es(this.s)*100}%, ${es(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Uu(e){return e=(e||0)%360,e<0?e+360:e}function es(e){return Math.max(0,Math.min(1,e||0))}function io(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const so=e=>()=>e;function jy(e,t){return function(n){return e+n*t}}function Wy(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function qy(e){return(e=+e)==1?Bu:function(t,n){return n-t?Wy(t,n,e):so(isNaN(t)?n:t)}}function Bu(e,t){var n=t-e;return n?jy(e,n):so(isNaN(e)?t:e)}const ns=function e(t){var n=qy(t);function r(i,s){var a=n((i=no(i)).r,(s=no(s)).r),o=n(i.g,s.g),l=n(i.b,s.b),c=Bu(i.opacity,s.opacity);return function(u){return i.r=a(u),i.g=o(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=e,r}(1);function Yy(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(s){for(i=0;i<n;++i)r[i]=e[i]*(1-s)+t[i]*s;return r}}function Xy(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Zy(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),s=new Array(n),a;for(a=0;a<r;++a)i[a]=Gr(e[a],t[a]);for(;a<n;++a)s[a]=t[a];return function(o){for(a=0;a<r;++a)s[a]=i[a](o);return s}}function Ky(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function oe(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Qy(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Gr(e[i],t[i]):r[i]=t[i];return function(s){for(i in n)r[i]=n[i](s);return r}}var ao=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,oo=new RegExp(ao.source,"g");function Jy(e){return function(){return e}}function t1(e){return function(t){return e(t)+""}}function Vu(e,t){var n=ao.lastIndex=oo.lastIndex=0,r,i,s,a=-1,o=[],l=[];for(e=e+"",t=t+"";(r=ao.exec(e))&&(i=oo.exec(t));)(s=i.index)>n&&(s=t.slice(n,s),o[a]?o[a]+=s:o[++a]=s),(r=r[0])===(i=i[0])?o[a]?o[a]+=i:o[++a]=i:(o[++a]=null,l.push({i:a,x:oe(r,i)})),n=oo.lastIndex;return n<t.length&&(s=t.slice(n),o[a]?o[a]+=s:o[++a]=s),o.length<2?l[0]?t1(l[0].x):Jy(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)o[(d=l[u]).i]=d.x(c);return o.join("")})}function Gr(e,t){var n=typeof t,r;return t==null||n==="boolean"?so(t):(n==="number"?oe:n==="string"?(r=ze(t))?(t=r,ns):Vu:t instanceof ze?ns:t instanceof Date?Ky:Xy(t)?Yy:Array.isArray(t)?Zy:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Qy:oe)(e,t)}function Hu(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var Gu=180/Math.PI,lo={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Fu(e,t,n,r,i,s){var a,o,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(o=Math.sqrt(n*n+r*r))&&(n/=o,r/=o,l/=o),e*r<t*n&&(e=-e,t=-t,l=-l,a=-a),{translateX:i,translateY:s,rotate:Math.atan2(t,e)*Gu,skewX:Math.atan(l)*Gu,scaleX:a,scaleY:o}}var rs;function e1(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?lo:Fu(t.a,t.b,t.c,t.d,t.e,t.f)}function n1(e){return e==null||(rs||(rs=document.createElementNS("http://www.w3.org/2000/svg","g")),rs.setAttribute("transform",e),!(e=rs.transform.baseVal.consolidate()))?lo:(e=e.matrix,Fu(e.a,e.b,e.c,e.d,e.e,e.f))}function zu(e,t,n,r){function i(c){return c.length?c.pop()+" ":""}function s(c,u,d,h,f,p){if(c!==d||u!==h){var m=f.push("translate(",null,t,null,n);p.push({i:m-4,x:oe(c,d)},{i:m-2,x:oe(u,h)})}else(d||h)&&f.push("translate("+d+t+h+n)}function a(c,u,d,h){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),h.push({i:d.push(i(d)+"rotate(",null,r)-2,x:oe(c,u)})):u&&d.push(i(d)+"rotate("+u+r)}function o(c,u,d,h){c!==u?h.push({i:d.push(i(d)+"skewX(",null,r)-2,x:oe(c,u)}):u&&d.push(i(d)+"skewX("+u+r)}function l(c,u,d,h,f,p){if(c!==d||u!==h){var m=f.push(i(f)+"scale(",null,",",null,")");p.push({i:m-4,x:oe(c,d)},{i:m-2,x:oe(u,h)})}else(d!==1||h!==1)&&f.push(i(f)+"scale("+d+","+h+")")}return function(c,u){var d=[],h=[];return c=e(c),u=e(u),s(c.translateX,c.translateY,u.translateX,u.translateY,d,h),a(c.rotate,u.rotate,d,h),o(c.skewX,u.skewX,d,h),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,d,h),c=u=null,function(f){for(var p=-1,m=h.length,g;++p<m;)d[(g=h[p]).i]=g.x(f);return d.join("")}}}var r1=zu(e1,"px, ","px)","deg)"),i1=zu(n1,", ",")",")");function s1(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n}var Jn=0,Fr=0,zr=0,ju=1e3,is,jr,ss=0,Mn=0,as=0,Wr=typeof performance=="object"&&performance.now?performance:Date,Wu=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function co(){return Mn||(Wu(a1),Mn=Wr.now()+as)}function a1(){Mn=0}function os(){this._call=this._time=this._next=null}os.prototype=qu.prototype={constructor:os,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?co():+n)+(t==null?0:+t),!this._next&&jr!==this&&(jr?jr._next=this:is=this,jr=this),this._call=e,this._time=n,uo()},stop:function(){this._call&&(this._call=null,this._time=1/0,uo())}};function qu(e,t,n){var r=new os;return r.restart(e,t,n),r}function o1(){co(),++Jn;for(var e=is,t;e;)(t=Mn-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Jn}function Yu(){Mn=(ss=Wr.now())+as,Jn=Fr=0;try{o1()}finally{Jn=0,c1(),Mn=0}}function l1(){var e=Wr.now(),t=e-ss;t>ju&&(as-=t,ss=e)}function c1(){for(var e,t=is,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:is=n);jr=e,uo(r)}function uo(e){if(!Jn){Fr&&(Fr=clearTimeout(Fr));var t=e-Mn;t>24?(e<1/0&&(Fr=setTimeout(Yu,e-Wr.now()-as)),zr&&(zr=clearInterval(zr))):(zr||(ss=Wr.now(),zr=setInterval(l1,ju)),Jn=1,Wu(Yu))}}function Xu(e,t,n){var r=new os;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var u1=Xa("start","end","cancel","interrupt"),h1=[],Zu=0,Ku=1,ho=2,ls=3,Qu=4,fo=5,cs=6;function us(e,t,n,r,i,s){var a=e.__transition;if(!a)e.__transition={};else if(n in a)return;d1(e,n,{name:t,index:r,group:i,on:u1,tween:h1,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:Zu})}function po(e,t){var n=Ee(e,t);if(n.state>Zu)throw new Error("too late; already scheduled");return n}function Re(e,t){var n=Ee(e,t);if(n.state>ls)throw new Error("too late; already running");return n}function Ee(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function d1(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=qu(s,0,n.time);function s(c){n.state=Ku,n.timer.restart(a,n.delay,n.time),n.delay<=c&&a(c-n.delay)}function a(c){var u,d,h,f;if(n.state!==Ku)return l();for(u in r)if(f=r[u],f.name===n.name){if(f.state===ls)return Xu(a);f.state===Qu?(f.state=cs,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete r[u]):+u<t&&(f.state=cs,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete r[u])}if(Xu(function(){n.state===ls&&(n.state=Qu,n.timer.restart(o,n.delay,n.time),o(c))}),n.state=ho,n.on.call("start",e,e.__data__,n.index,n.group),n.state===ho){for(n.state=ls,i=new Array(h=n.tween.length),u=0,d=-1;u<h;++u)(f=n.tween[u].value.call(e,e.__data__,n.index,n.group))&&(i[++d]=f);i.length=d+1}}function o(c){for(var u=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(l),n.state=fo,1),d=-1,h=i.length;++d<h;)i[d].call(e,u);n.state===fo&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){n.state=cs,n.timer.stop(),delete r[t];for(var c in r)return;delete e.__transition}}function go(e,t){var n=e.__transition,r,i,s=!0,a;if(n){t=t==null?null:t+"";for(a in n){if((r=n[a]).name!==t){s=!1;continue}i=r.state>ho&&r.state<fo,r.state=cs,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[a]}s&&delete e.__transition}}function f1(e){return this.each(function(){go(this,e)})}function p1(e,t){var n,r;return function(){var i=Re(this,e),s=i.tween;if(s!==n){r=n=s;for(var a=0,o=r.length;a<o;++a)if(r[a].name===t){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function g1(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var s=Re(this,e),a=s.tween;if(a!==r){i=(r=a).slice();for(var o={name:t,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===t){i[l]=o;break}l===c&&i.push(o)}s.tween=i}}function m1(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=Ee(this.node(),n).tween,i=0,s=r.length,a;i<s;++i)if((a=r[i]).name===e)return a.value;return null}return this.each((t==null?p1:g1)(n,e,t))}function mo(e,t,n){var r=e._id;return e.each(function(){var i=Re(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return Ee(i,r).value[t]}}function Ju(e,t){var n;return(typeof t=="number"?oe:t instanceof ze?ns:(n=ze(t))?(t=n,ns):Vu)(e,t)}function v1(e){return function(){this.removeAttribute(e)}}function y1(e){return function(){this.removeAttributeNS(e.space,e.local)}}function x1(e,t,n){var r,i=n+"",s;return function(){var a=this.getAttribute(e);return a===i?null:a===r?s:s=t(r=a,n)}}function b1(e,t,n){var r,i=n+"",s;return function(){var a=this.getAttributeNS(e.space,e.local);return a===i?null:a===r?s:s=t(r=a,n)}}function w1(e,t,n){var r,i,s;return function(){var a,o=n(this),l;return o==null?void this.removeAttribute(e):(a=this.getAttribute(e),l=o+"",a===l?null:a===r&&l===i?s:(i=l,s=t(r=a,o)))}}function _1(e,t,n){var r,i,s;return function(){var a,o=n(this),l;return o==null?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local),l=o+"",a===l?null:a===r&&l===i?s:(i=l,s=t(r=a,o)))}}function E1(e,t){var n=Zi(e),r=n==="transform"?i1:Ju;return this.attrTween(e,typeof t=="function"?(n.local?_1:w1)(n,r,mo(this,"attr."+e,t)):t==null?(n.local?y1:v1)(n):(n.local?b1:x1)(n,r,t))}function S1(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function O1(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function T1(e,t){var n,r;function i(){var s=t.apply(this,arguments);return s!==r&&(n=(r=s)&&O1(e,s)),n}return i._value=t,i}function M1(e,t){var n,r;function i(){var s=t.apply(this,arguments);return s!==r&&(n=(r=s)&&S1(e,s)),n}return i._value=t,i}function C1(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 new Error;var r=Zi(e);return this.tween(n,(r.local?T1:M1)(r,t))}function $1(e,t){return function(){po(this,e).delay=+t.apply(this,arguments)}}function A1(e,t){return t=+t,function(){po(this,e).delay=t}}function L1(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?$1:A1)(t,e)):Ee(this.node(),t).delay}function D1(e,t){return function(){Re(this,e).duration=+t.apply(this,arguments)}}function k1(e,t){return t=+t,function(){Re(this,e).duration=t}}function R1(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?D1:k1)(t,e)):Ee(this.node(),t).duration}function I1(e,t){if(typeof t!="function")throw new Error;return function(){Re(this,e).ease=t}}function N1(e){var t=this._id;return arguments.length?this.each(I1(t,e)):Ee(this.node(),t).ease}function P1(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Re(this,e).ease=n}}function U1(e){if(typeof e!="function")throw new Error;return this.each(P1(this._id,e))}function B1(e){typeof e!="function"&&(e=xu(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var s=t[i],a=s.length,o=r[i]=[],l,c=0;c<a;++c)(l=s[c])&&e.call(l,l.__data__,c,s)&&o.push(l);return new je(r,this._parents,this._name,this._id)}function V1(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,s=Math.min(r,i),a=new Array(r),o=0;o<s;++o)for(var l=t[o],c=n[o],u=l.length,d=a[o]=new Array(u),h,f=0;f<u;++f)(h=l[f]||c[f])&&(d[f]=h);for(;o<r;++o)a[o]=t[o];return new je(a,this._parents,this._name,this._id)}function H1(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function G1(e,t,n){var r,i,s=H1(t)?po:Re;return function(){var a=s(this,e),o=a.on;o!==r&&(i=(r=o).copy()).on(t,n),a.on=i}}function F1(e,t){var n=this._id;return arguments.length<2?Ee(this.node(),n).on.on(e):this.each(G1(n,e,t))}function z1(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function j1(){return this.on("end.remove",z1(this._id))}function W1(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Ka(e));for(var r=this._groups,i=r.length,s=new Array(i),a=0;a<i;++a)for(var o=r[a],l=o.length,c=s[a]=new Array(l),u,d,h=0;h<l;++h)(u=o[h])&&(d=e.call(u,u.__data__,h,o))&&("__data__"in u&&(d.__data__=u.__data__),c[h]=d,us(c[h],t,n,h,c,Ee(u,n)));return new je(s,this._parents,t,n)}function q1(e){var t=this._name,n=this._id;typeof e!="function"&&(e=yu(e));for(var r=this._groups,i=r.length,s=[],a=[],o=0;o<i;++o)for(var l=r[o],c=l.length,u,d=0;d<c;++d)if(u=l[d]){for(var h=e.call(u,u.__data__,d,l),f,p=Ee(u,n),m=0,g=h.length;m<g;++m)(f=h[m])&&us(f,t,n,m,h,p);s.push(h),a.push(u)}return new je(s,a,t,n)}var Y1=Ur.prototype.constructor;function X1(){return new Y1(this._groups,this._parents)}function Z1(e,t){var n,r,i;return function(){var s=Kn(this,e),a=(this.style.removeProperty(e),Kn(this,e));return s===a?null:s===n&&a===r?i:i=t(n=s,r=a)}}function th(e){return function(){this.style.removeProperty(e)}}function K1(e,t,n){var r,i=n+"",s;return function(){var a=Kn(this,e);return a===i?null:a===r?s:s=t(r=a,n)}}function Q1(e,t,n){var r,i,s;return function(){var a=Kn(this,e),o=n(this),l=o+"";return o==null&&(l=o=(this.style.removeProperty(e),Kn(this,e))),a===l?null:a===r&&l===i?s:(i=l,s=t(r=a,o))}}function J1(e,t){var n,r,i,s="style."+t,a="end."+s,o;return function(){var l=Re(this,e),c=l.on,u=l.value[s]==null?o||(o=th(t)):void 0;(c!==n||i!==u)&&(r=(n=c).copy()).on(a,i=u),l.on=r}}function tx(e,t,n){var r=(e+="")=="transform"?r1:Ju;return t==null?this.styleTween(e,Z1(e,r)).on("end.style."+e,th(e)):typeof t=="function"?this.styleTween(e,Q1(e,r,mo(this,"style."+e,t))).each(J1(this._id,e)):this.styleTween(e,K1(e,r,t),n).on("end.style."+e,null)}function ex(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function nx(e,t,n){var r,i;function s(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&ex(e,a,n)),r}return s._value=t,s}function rx(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 new Error;return this.tween(r,nx(e,t,n??""))}function ix(e){return function(){this.textContent=e}}function sx(e){return function(){var t=e(this);this.textContent=t??""}}function ax(e){return this.tween("text",typeof e=="function"?sx(mo(this,"text",e)):ix(e==null?"":e+""))}function ox(e){return function(t){this.textContent=e.call(this,t)}}function lx(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&ox(i)),t}return r._value=e,r}function cx(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 new Error;return this.tween(t,lx(e))}function ux(){for(var e=this._name,t=this._id,n=eh(),r=this._groups,i=r.length,s=0;s<i;++s)for(var a=r[s],o=a.length,l,c=0;c<o;++c)if(l=a[c]){var u=Ee(l,t);us(l,e,n,c,a,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new je(r,this._parents,e,n)}function hx(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(s,a){var o={value:a},l={value:function(){--i===0&&s()}};n.each(function(){var c=Re(this,r),u=c.on;u!==e&&(t=(e=u).copy(),t._.cancel.push(o),t._.interrupt.push(o),t._.end.push(l)),c.on=t}),i===0&&s()})}var dx=0;function je(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function eh(){return++dx}var We=Ur.prototype;je.prototype={constructor:je,select:W1,selectAll:q1,selectChild:We.selectChild,selectChildren:We.selectChildren,filter:B1,merge:V1,selection:X1,transition:ux,call:We.call,nodes:We.nodes,node:We.node,size:We.size,empty:We.empty,each:We.each,on:F1,attr:E1,attrTween:C1,style:tx,styleTween:rx,text:ax,textTween:cx,remove:j1,tween:m1,delay:L1,duration:R1,ease:N1,easeVarying:U1,end:hx,[Symbol.iterator]:We[Symbol.iterator]};const fx=e=>+e;function nh(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var px={time:null,delay:0,duration:250,ease:nh};function gx(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function mx(e){var t,n;e instanceof je?(t=e._id,e=e._name):(t=eh(),(n=px).time=co(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,s=0;s<i;++s)for(var a=r[s],o=a.length,l,c=0;c<o;++c)(l=a[c])&&us(l,e,t,c,a,n||gx(l,t));return new je(r,this._parents,e,t)}Ur.prototype.interrupt=f1,Ur.prototype.transition=mx;const vo=e=>()=>e;function vx(e,{sourceEvent:t,target:n,selection:r,mode:i,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:s}})}function yx(e){e.stopImmediatePropagation()}function yo(e){e.preventDefault(),e.stopImmediatePropagation()}var rh={name:"drag"},xo={name:"space"},tr={name:"handle"},er={name:"center"};const{abs:ih,max:zt,min:jt}=Math;function sh(e){return[+e[0],+e[1]]}function ah(e){return[sh(e[0]),sh(e[1])]}var hs={name:"x",handles:["w","e"].map(ds),input:function(e,t){return e==null?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},bo={name:"y",handles:["n","s"].map(ds),input:function(e,t){return e==null?null:[[t[0][0],+e[0]],[t[1][0],+e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},qe={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},oh={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},lh={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},xx={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},bx={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function ds(e){return{type:e}}function wx(e){return!e.ctrlKey&&!e.button}function _x(){var e=this.ownerSVGElement||this;return e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function Ex(){return navigator.maxTouchPoints||"ontouchstart"in this}function wo(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function Sx(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function ch(){return Ox(hs)}function Ox(e){var t=_x,n=wx,r=Ex,i=!0,s=Xa("start","brush","end"),a=6,o;function l(g){var v=g.property("__brush",m).selectAll(".overlay").data([ds("overlay")]);v.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",qe.overlay).merge(v).each(function(){var x=wo(this).extent;D(this).attr("x",x[0][0]).attr("y",x[0][1]).attr("width",x[1][0]-x[0][0]).attr("height",x[1][1]-x[0][1])}),g.selectAll(".selection").data([ds("selection")]).enter().append("rect").attr("class","selection").attr("cursor",qe.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var y=g.selectAll(".handle").data(e.handles,function(x){return x.type});y.exit().remove(),y.enter().append("rect").attr("class",function(x){return"handle handle--"+x.type}).attr("cursor",function(x){return qe[x.type]}),g.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(r).on("touchstart.brush",h).on("touchmove.brush",f).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}l.move=function(g,v,y){g.tween?g.on("start.brush",function(x){u(this,arguments).beforestart().start(x)}).on("interrupt.brush end.brush",function(x){u(this,arguments).end(x)}).tween("brush",function(){var x=this,S=x.__brush,_=u(x,arguments),E=S.selection,T=e.input(typeof v=="function"?v.apply(this,arguments):v,S.extent),k=Gr(E,T);function I(A){S.selection=A===1&&T===null?null:k(A),c.call(x),_.brush()}return E!==null&&T!==null?I:I(1)}):g.each(function(){var x=this,S=arguments,_=x.__brush,E=e.input(typeof v=="function"?v.apply(x,S):v,_.extent),T=u(x,S).beforestart();go(x),_.selection=E===null?null:E,c.call(x),T.start(y).brush(y).end(y)})},l.clear=function(g,v){l.move(g,null,v)};function c(){var g=D(this),v=wo(this).selection;v?(g.selectAll(".selection").style("display",null).attr("x",v[0][0]).attr("y",v[0][1]).attr("width",v[1][0]-v[0][0]).attr("height",v[1][1]-v[0][1]),g.selectAll(".handle").style("display",null).attr("x",function(y){return y.type[y.type.length-1]==="e"?v[1][0]-a/2:v[0][0]-a/2}).attr("y",function(y){return y.type[0]==="s"?v[1][1]-a/2:v[0][1]-a/2}).attr("width",function(y){return y.type==="n"||y.type==="s"?v[1][0]-v[0][0]+a:a}).attr("height",function(y){return y.type==="e"||y.type==="w"?v[1][1]-v[0][1]+a:a})):g.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function u(g,v,y){var x=g.__brush.emitter;return x&&(!y||!x.clean)?x:new d(g,v,y)}function d(g,v,y){this.that=g,this.args=v,this.state=g.__brush,this.active=0,this.clean=y}d.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(g,v){return this.starting?(this.starting=!1,this.emit("start",g,v)):this.emit("brush",g),this},brush:function(g,v){return this.emit("brush",g,v),this},end:function(g,v){return--this.active===0&&(delete this.state.emitter,this.emit("end",g,v)),this},emit:function(g,v,y){var x=D(this.that).datum();s.call(g,this.that,new vx(g,{sourceEvent:v,target:l,selection:e.output(this.state.selection),mode:y,dispatch:s}),x)}};function h(g){if(o&&!g.touches||!n.apply(this,arguments))return;var v=this,y=g.target.__data__.type,x=(i&&g.metaKey?y="overlay":y)==="selection"?rh:i&&g.altKey?er:tr,S=e===bo?null:xx[y],_=e===hs?null:bx[y],E=wo(v),T=E.extent,k=E.selection,I=T[0][0],A,C,B=T[0][1],M,$,w=T[1][0],N,P,R=T[1][1],U,F,j=0,K=0,ut,G=S&&_&&i&&g.shiftKey,Y,ct,et=Array.from(g.touches||[g],J=>{const kt=J.identifier;return J=Sn(J,v),J.point0=J.slice(),J.identifier=kt,J});go(v);var Lt=u(v,arguments,!0).beforestart();if(y==="overlay"){k&&(ut=!0);const J=[et[0],et[1]||et[0]];E.selection=k=[[A=e===bo?I:jt(J[0][0],J[1][0]),M=e===hs?B:jt(J[0][1],J[1][1])],[N=e===bo?w:zt(J[0][0],J[1][0]),U=e===hs?R:zt(J[0][1],J[1][1])]],et.length>1&&Dt(g)}else A=k[0][0],M=k[0][1],N=k[1][0],U=k[1][1];C=A,$=M,P=N,F=U;var z=D(v).attr("pointer-events","none"),Q=z.selectAll(".overlay").attr("cursor",qe[y]);if(g.touches)Lt.moved=H,Lt.ended=vt;else{var at=D(g.view).on("mousemove.brush",H,!0).on("mouseup.brush",vt,!0);i&&at.on("keydown.brush",Qt,!0).on("keyup.brush",Jt,!0),Dy(g.view)}c.call(v),Lt.start(g,x.name);function H(J){for(const kt of J.changedTouches||[J])for(const Ui of et)Ui.identifier===kt.identifier&&(Ui.cur=Sn(kt,v));if(G&&!Y&&!ct&&et.length===1){const kt=et[0];ih(kt.cur[0]-kt[0])>ih(kt.cur[1]-kt[1])?ct=!0:Y=!0}for(const kt of et)kt.cur&&(kt[0]=kt.cur[0],kt[1]=kt.cur[1]);ut=!0,yo(J),Dt(J)}function Dt(J){const kt=et[0],Ui=kt.point0;var bn;switch(j=kt[0]-Ui[0],K=kt[1]-Ui[1],x){case xo:case rh:{S&&(j=zt(I-A,jt(w-N,j)),C=A+j,P=N+j),_&&(K=zt(B-M,jt(R-U,K)),$=M+K,F=U+K);break}case tr:{et[1]?(S&&(C=zt(I,jt(w,et[0][0])),P=zt(I,jt(w,et[1][0])),S=1),_&&($=zt(B,jt(R,et[0][1])),F=zt(B,jt(R,et[1][1])),_=1)):(S<0?(j=zt(I-A,jt(w-A,j)),C=A+j,P=N):S>0&&(j=zt(I-N,jt(w-N,j)),C=A,P=N+j),_<0?(K=zt(B-M,jt(R-M,K)),$=M+K,F=U):_>0&&(K=zt(B-U,jt(R-U,K)),$=M,F=U+K));break}case er:{S&&(C=zt(I,jt(w,A-j*S)),P=zt(I,jt(w,N+j*S))),_&&($=zt(B,jt(R,M-K*_)),F=zt(B,jt(R,U+K*_)));break}}P<C&&(S*=-1,bn=A,A=N,N=bn,bn=C,C=P,P=bn,y in oh&&Q.attr("cursor",qe[y=oh[y]])),F<$&&(_*=-1,bn=M,M=U,U=bn,bn=$,$=F,F=bn,y in lh&&Q.attr("cursor",qe[y=lh[y]])),E.selection&&(k=E.selection),Y&&(C=k[0][0],P=k[1][0]),ct&&($=k[0][1],F=k[1][1]),(k[0][0]!==C||k[0][1]!==$||k[1][0]!==P||k[1][1]!==F)&&(E.selection=[[C,$],[P,F]],c.call(v),Lt.brush(J,x.name))}function vt(J){if(yx(J),J.touches){if(J.touches.length)return;o&&clearTimeout(o),o=setTimeout(function(){o=null},500)}else ky(J.view,ut),at.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);z.attr("pointer-events","all"),Q.attr("cursor",qe.overlay),E.selection&&(k=E.selection),Sx(k)&&(E.selection=null,c.call(v)),Lt.end(J,x.name)}function Qt(J){switch(J.keyCode){case 16:{G=S&&_;break}case 18:{x===tr&&(S&&(N=P-j*S,A=C+j*S),_&&(U=F-K*_,M=$+K*_),x=er,Dt(J));break}case 32:{(x===tr||x===er)&&(S<0?N=P-j:S>0&&(A=C-j),_<0?U=F-K:_>0&&(M=$-K),x=xo,Q.attr("cursor",qe.selection),Dt(J));break}default:return}yo(J)}function Jt(J){switch(J.keyCode){case 16:{G&&(Y=ct=G=!1,Dt(J));break}case 18:{x===er&&(S<0?N=P:S>0&&(A=C),_<0?U=F:_>0&&(M=$),x=tr,Dt(J));break}case 32:{x===xo&&(J.altKey?(S&&(N=P-j*S,A=C+j*S),_&&(U=F-K*_,M=$+K*_),x=er):(S<0?N=P:S>0&&(A=C),_<0?U=F:_>0&&(M=$),x=tr),Q.attr("cursor",qe[y]),Dt(J));break}default:return}yo(J)}}function f(g){u(this,arguments).moved(g)}function p(g){u(this,arguments).ended(g)}function m(){var g=this.__brush||{selection:null};return g.extent=ah(t.apply(this,arguments)),g.dim=e,g}return l.extent=function(g){return arguments.length?(t=typeof g=="function"?g:vo(ah(g)),l):t},l.filter=function(g){return arguments.length?(n=typeof g=="function"?g:vo(!!g),l):n},l.touchable=function(g){return arguments.length?(r=typeof g=="function"?g:vo(!!g),l):r},l.handleSize=function(g){return arguments.length?(a=+g,l):a},l.keyModifiers=function(g){return arguments.length?(i=!!g,l):i},l.on=function(){var g=s.on.apply(s,arguments);return g===s?l:g},l}const _o=Math.PI,Eo=2*_o,Cn=1e-6,Tx=Eo-Cn;function uh(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Mx(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return uh;const n=10**t;return function(r){this._+=r[0];for(let i=1,s=r.length;i<s;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}let Cx=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?uh:Mx(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,s,a){this._append`C${+t},${+n},${+r},${+i},${this._x1=+s},${this._y1=+a}`}arcTo(t,n,r,i,s){if(t=+t,n=+n,r=+r,i=+i,s=+s,s<0)throw new Error(`negative radius: ${s}`);let a=this._x1,o=this._y1,l=r-t,c=i-n,u=a-t,d=o-n,h=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(h>Cn)if(!(Math.abs(d*l-c*u)>Cn)||!s)this._append`L${this._x1=t},${this._y1=n}`;else{let f=r-a,p=i-o,m=l*l+c*c,g=f*f+p*p,v=Math.sqrt(m),y=Math.sqrt(h),x=s*Math.tan((_o-Math.acos((m+h-g)/(2*v*y)))/2),S=x/y,_=x/v;Math.abs(S-1)>Cn&&this._append`L${t+S*u},${n+S*d}`,this._append`A${s},${s},0,0,${+(d*f>u*p)},${this._x1=t+_*l},${this._y1=n+_*c}`}}arc(t,n,r,i,s,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let o=r*Math.cos(i),l=r*Math.sin(i),c=t+o,u=n+l,d=1^a,h=a?i-s:s-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Cn||Math.abs(this._y1-u)>Cn)&&this._append`L${c},${u}`,r&&(h<0&&(h=h%Eo+Eo),h>Tx?this._append`A${r},${r},0,1,${d},${t-o},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=u}`:h>Cn&&this._append`A${r},${r},0,${+(h>=_o)},${d},${this._x1=t+r*Math.cos(s)},${this._y1=n+r*Math.sin(s)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function $x(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function fs(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function nr(e){return e=fs(Math.abs(e)),e?e[1]:NaN}function Ax(e,t){return function(n,r){for(var i=n.length,s=[],a=0,o=e[0],l=0;i>0&&o>0&&(l+o+1>r&&(o=Math.max(1,r-l)),s.push(n.substring(i-=o,i+o)),!((l+=o+1)>r));)o=e[a=(a+1)%e.length];return s.reverse().join(t)}}function Lx(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Dx=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function qr(e){if(!(t=Dx.exec(e)))throw new Error("invalid format: "+e);var t;return new So({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]})}qr.prototype=So.prototype;function So(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+""}So.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 kx(e){t: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 t;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var hh;function Rx(e,t){var n=fs(e,t);if(!n)return e+"";var r=n[0],i=n[1],s=i-(hh=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return s===a?r:s>a?r+new Array(s-a+1).join("0"):s>0?r.slice(0,s)+"."+r.slice(s):"0."+new Array(1-s).join("0")+fs(e,Math.max(0,t+s-1))[0]}function dh(e,t){var n=fs(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const fh={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:$x,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)=>dh(e*100,t),r:dh,s:Rx,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function ph(e){return e}var gh=Array.prototype.map,mh=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ix(e){var t=e.grouping===void 0||e.thousands===void 0?ph:Ax(gh.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+"",s=e.numerals===void 0?ph:Lx(gh.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",o=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=qr(d);var h=d.fill,f=d.align,p=d.sign,m=d.symbol,g=d.zero,v=d.width,y=d.comma,x=d.precision,S=d.trim,_=d.type;_==="n"?(y=!0,_="g"):fh[_]||(x===void 0&&(x=12),S=!0,_="g"),(g||h==="0"&&f==="=")&&(g=!0,h="0",f="=");var E=m==="$"?n:m==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",T=m==="$"?r:/[%p]/.test(_)?a:"",k=fh[_],I=/[defgprs%]/.test(_);x=x===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function A(C){var B=E,M=T,$,w,N;if(_==="c")M=k(C)+M,C="";else{C=+C;var P=C<0||1/C<0;if(C=isNaN(C)?l:k(Math.abs(C),x),S&&(C=kx(C)),P&&+C==0&&p!=="+"&&(P=!1),B=(P?p==="("?p:o:p==="-"||p==="("?"":p)+B,M=(_==="s"?mh[8+hh/3]:"")+M+(P&&p==="("?")":""),I){for($=-1,w=C.length;++$<w;)if(N=C.charCodeAt($),48>N||N>57){M=(N===46?i+C.slice($+1):C.slice($))+M,C=C.slice(0,$);break}}}y&&!g&&(C=t(C,1/0));var R=B.length+C.length+M.length,U=R<v?new Array(v-R+1).join(h):"";switch(y&&g&&(C=t(U+C,U.length?v-M.length:1/0),U=""),f){case"<":C=B+C+M+U;break;case"=":C=B+U+C+M;break;case"^":C=U.slice(0,R=U.length>>1)+B+C+M+U.slice(R);break;default:C=U+B+C+M;break}return s(C)}return A.toString=function(){return d+""},A}function u(d,h){var f=c((d=qr(d),d.type="f",d)),p=Math.max(-8,Math.min(8,Math.floor(nr(h)/3)))*3,m=Math.pow(10,-p),g=mh[8+p/3];return function(v){return f(m*v)+g}}return{format:c,formatPrefix:u}}var ps,Oo,vh;Nx({thousands:",",grouping:[3],currency:["$",""]});function Nx(e){return ps=Ix(e),Oo=ps.format,vh=ps.formatPrefix,ps}function Px(e){return Math.max(0,-nr(Math.abs(e)))}function Ux(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(nr(t)/3)))*3-nr(Math.abs(e)))}function Bx(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,nr(t)-nr(e))+1}var pt=1e-6,yh=1e-12,ot=Math.PI,ee=ot/2,xh=ot/4,le=ot*2,Xt=180/ot,$t=ot/180,gt=Math.abs,bh=Math.atan,$n=Math.atan2,yt=Math.cos,Vx=Math.exp,Hx=Math.log,ft=Math.sin,hn=Math.sign||function(e){return e>0?1:e<0?-1:0},Se=Math.sqrt,Gx=Math.tan;function Fx(e){return e>1?0:e<-1?ot:Math.acos(e)}function Ye(e){return e>1?ee:e<-1?-ee:Math.asin(e)}function pe(){}function gs(e,t){e&&_h.hasOwnProperty(e.type)&&_h[e.type](e,t)}var wh={Feature:function(e,t){gs(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)gs(n[r].geometry,t)}},_h={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){To(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)To(n[r],t,0)},Polygon:function(e,t){Eh(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)Eh(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)gs(n[r],t)}};function To(e,t,n){var r=-1,i=e.length-n,s;for(t.lineStart();++r<i;)s=e[r],t.point(s[0],s[1],s[2]);t.lineEnd()}function Eh(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)To(e[n],t,1);t.polygonEnd()}function rr(e,t){e&&wh.hasOwnProperty(e.type)?wh[e.type](e,t):gs(e,t)}function Mo(e){return[$n(e[1],e[0]),Ye(e[2])]}function ir(e){var t=e[0],n=e[1],r=yt(n);return[r*yt(t),r*ft(t),ft(n)]}function ms(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function vs(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Co(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function ys(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function $o(e){var t=Se(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function Ao(e,t){function n(r,i){return r=e(r,i),t(r[0],r[1])}return e.invert&&t.invert&&(n.invert=function(r,i){return r=t.invert(r,i),r&&e.invert(r[0],r[1])}),n}function Lo(e,t){return gt(e)>ot&&(e-=Math.round(e/le)*le),[e,t]}Lo.invert=Lo;function Sh(e,t,n){return(e%=le)?t||n?Ao(Th(e),Mh(t,n)):Th(e):t||n?Mh(t,n):Lo}function Oh(e){return function(t,n){return t+=e,gt(t)>ot&&(t-=Math.round(t/le)*le),[t,n]}}function Th(e){var t=Oh(e);return t.invert=Oh(-e),t}function Mh(e,t){var n=yt(e),r=ft(e),i=yt(t),s=ft(t);function a(o,l){var c=yt(l),u=yt(o)*c,d=ft(o)*c,h=ft(l),f=h*n+u*r;return[$n(d*i-f*s,u*n-h*r),Ye(f*i+d*s)]}return a.invert=function(o,l){var c=yt(l),u=yt(o)*c,d=ft(o)*c,h=ft(l),f=h*i-d*s;return[$n(d*i+h*s,u*n+f*r),Ye(f*n-u*r)]},a}function zx(e){e=Sh(e[0]*$t,e[1]*$t,e.length>2?e[2]*$t:0);function t(n){return n=e(n[0]*$t,n[1]*$t),n[0]*=Xt,n[1]*=Xt,n}return t.invert=function(n){return n=e.invert(n[0]*$t,n[1]*$t),n[0]*=Xt,n[1]*=Xt,n},t}function jx(e,t,n,r,i,s){if(n){var a=yt(t),o=ft(t),l=r*n;i==null?(i=t+r*le,s=t-l/2):(i=Ch(a,i),s=Ch(a,s),(r>0?i<s:i>s)&&(i+=r*le));for(var c,u=i;r>0?u>s:u<s;u-=l)c=Mo([a,-o*yt(u),-o*ft(u)]),e.point(c[0],c[1])}}function Ch(e,t){t=ir(t),t[0]-=e,$o(t);var n=Fx(-t[1]);return((-t[2]<0?-n:n)+le-pt)%le}function $h(){var e=[],t;return{point:function(n,r,i){t.push([n,r,i])},lineStart:function(){e.push(t=[])},lineEnd:pe,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function xs(e,t){return gt(e[0]-t[0])<pt&&gt(e[1]-t[1])<pt}function bs(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function Ah(e,t,n,r,i){var s=[],a=[],o,l;if(e.forEach(function(p){if(!((m=p.length-1)<=0)){var m,g=p[0],v=p[m],y;if(xs(g,v)){if(!g[2]&&!v[2]){for(i.lineStart(),o=0;o<m;++o)i.point((g=p[o])[0],g[1]);i.lineEnd();return}v[0]+=2*pt}s.push(y=new bs(g,p,null,!0)),a.push(y.o=new bs(g,null,y,!1)),s.push(y=new bs(v,p,null,!1)),a.push(y.o=new bs(v,null,y,!0))}}),!!s.length){for(a.sort(t),Lh(s),Lh(a),o=0,l=a.length;o<l;++o)a[o].e=n=!n;for(var c=s[0],u,d;;){for(var h=c,f=!0;h.v;)if((h=h.n)===c)return;u=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(f)for(o=0,l=u.length;o<l;++o)i.point((d=u[o])[0],d[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(f)for(u=h.p.z,o=u.length-1;o>=0;--o)i.point((d=u[o])[0],d[1]);else r(h.x,h.p.x,-1,i);h=h.p}h=h.o,u=h.z,f=!f}while(!h.v);i.lineEnd()}}}function Lh(e){if(t=e.length){for(var t,n=0,r=e[0],i;++n<t;)r.n=i=e[n],i.p=r,r=i;r.n=i=e[0],i.p=r}}function Do(e){return gt(e[0])<=ot?e[0]:hn(e[0])*((gt(e[0])+ot)%le-ot)}function Wx(e,t){var n=Do(t),r=t[1],i=ft(r),s=[ft(n),-yt(n),0],a=0,o=0,l=new _n;i===1?r=ee+pt:i===-1&&(r=-ee-pt);for(var c=0,u=e.length;c<u;++c)if(h=(d=e[c]).length)for(var d,h,f=d[h-1],p=Do(f),m=f[1]/2+xh,g=ft(m),v=yt(m),y=0;y<h;++y,p=S,g=E,v=T,f=x){var x=d[y],S=Do(x),_=x[1]/2+xh,E=ft(_),T=yt(_),k=S-p,I=k>=0?1:-1,A=I*k,C=A>ot,B=g*E;if(l.add($n(B*I*ft(A),v*T+B*yt(A))),a+=C?k+I*le:k,C^p>=n^S>=n){var M=vs(ir(f),ir(x));$o(M);var $=vs(s,M);$o($);var w=(C^k>=0?-1:1)*Ye($[2]);(r>w||r===w&&(M[0]||M[1]))&&(o+=C^k>=0?1:-1)}}return(a<-pt||a<pt&&l<-yh)^o&1}function Dh(e,t,n,r){return function(i){var s=t(i),a=$h(),o=t(a),l=!1,c,u,d,h={point:f,lineStart:m,lineEnd:g,polygonStart:function(){h.point=v,h.lineStart=y,h.lineEnd=x,u=[],c=[]},polygonEnd:function(){h.point=f,h.lineStart=m,h.lineEnd=g,u=du(u);var S=Wx(c,r);u.length?(l||(i.polygonStart(),l=!0),Ah(u,Yx,S,n,i)):S&&(l||(i.polygonStart(),l=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),l&&(i.polygonEnd(),l=!1),u=c=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function f(S,_){e(S,_)&&i.point(S,_)}function p(S,_){s.point(S,_)}function m(){h.point=p,s.lineStart()}function g(){h.point=f,s.lineEnd()}function v(S,_){d.push([S,_]),o.point(S,_)}function y(){o.lineStart(),d=[]}function x(){v(d[0][0],d[0][1]),o.lineEnd();var S=o.clean(),_=a.result(),E,T=_.length,k,I,A;if(d.pop(),c.push(d),d=null,!!T){if(S&1){if(I=_[0],(k=I.length-1)>0){for(l||(i.polygonStart(),l=!0),i.lineStart(),E=0;E<k;++E)i.point((A=I[E])[0],A[1]);i.lineEnd()}return}T>1&&S&2&&_.push(_.pop().concat(_.shift())),u.push(_.filter(qx))}}return h}}function qx(e){return e.length>1}function Yx(e,t){return((e=e.x)[0]<0?e[1]-ee-pt:ee-e[1])-((t=t.x)[0]<0?t[1]-ee-pt:ee-t[1])}const kh=Dh(function(){return!0},Xx,Kx,[-ot,-ee]);function Xx(e){var t=NaN,n=NaN,r=NaN,i;return{lineStart:function(){e.lineStart(),i=1},point:function(s,a){var o=s>0?ot:-ot,l=gt(s-t);gt(l-ot)<pt?(e.point(t,n=(n+a)/2>0?ee:-ee),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(o,n),e.point(s,n),i=0):r!==o&&l>=ot&&(gt(t-r)<pt&&(t-=r*pt),gt(s-o)<pt&&(s-=o*pt),n=Zx(t,n,s,a),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(o,n),i=0),e.point(t=s,n=a),r=o},lineEnd:function(){e.lineEnd(),t=n=NaN},clean:function(){return 2-i}}}function Zx(e,t,n,r){var i,s,a=ft(e-n);return gt(a)>pt?bh((ft(t)*(s=yt(r))*ft(n)-ft(r)*(i=yt(t))*ft(e))/(i*s*a)):(t+r)/2}function Kx(e,t,n,r){var i;if(e==null)i=n*ee,r.point(-ot,i),r.point(0,i),r.point(ot,i),r.point(ot,0),r.point(ot,-i),r.point(0,-i),r.point(-ot,-i),r.point(-ot,0),r.point(-ot,i);else if(gt(e[0]-t[0])>pt){var s=e[0]<t[0]?ot:-ot;i=n*s/2,r.point(-s,i),r.point(0,i),r.point(s,i)}else r.point(t[0],t[1])}function Qx(e){var t=yt(e),n=6*$t,r=t>0,i=gt(t)>pt;function s(u,d,h,f){jx(f,e,n,h,u,d)}function a(u,d){return yt(u)*yt(d)>t}function o(u){var d,h,f,p,m;return{lineStart:function(){p=f=!1,m=1},point:function(g,v){var y=[g,v],x,S=a(g,v),_=r?S?0:c(g,v):S?c(g+(g<0?ot:-ot),v):0;if(!d&&(p=f=S)&&u.lineStart(),S!==f&&(x=l(d,y),(!x||xs(d,x)||xs(y,x))&&(y[2]=1)),S!==f)m=0,S?(u.lineStart(),x=l(y,d),u.point(x[0],x[1])):(x=l(d,y),u.point(x[0],x[1],2),u.lineEnd()),d=x;else if(i&&d&&r^S){var E;!(_&h)&&(E=l(y,d,!0))&&(m=0,r?(u.lineStart(),u.point(E[0][0],E[0][1]),u.point(E[1][0],E[1][1]),u.lineEnd()):(u.point(E[1][0],E[1][1]),u.lineEnd(),u.lineStart(),u.point(E[0][0],E[0][1],3)))}S&&(!d||!xs(d,y))&&u.point(y[0],y[1]),d=y,f=S,h=_},lineEnd:function(){f&&u.lineEnd(),d=null},clean:function(){return m|(p&&f)<<1}}}function l(u,d,h){var f=ir(u),p=ir(d),m=[1,0,0],g=vs(f,p),v=ms(g,g),y=g[0],x=v-y*y;if(!x)return!h&&u;var S=t*v/x,_=-t*y/x,E=vs(m,g),T=ys(m,S),k=ys(g,_);Co(T,k);var I=E,A=ms(T,I),C=ms(I,I),B=A*A-C*(ms(T,T)-1);if(!(B<0)){var M=Se(B),$=ys(I,(-A-M)/C);if(Co($,T),$=Mo($),!h)return $;var w=u[0],N=d[0],P=u[1],R=d[1],U;N<w&&(U=w,w=N,N=U);var F=N-w,j=gt(F-ot)<pt,K=j||F<pt;if(!j&&R<P&&(U=P,P=R,R=U),K?j?P+R>0^$[1]<(gt($[0]-w)<pt?P:R):P<=$[1]&&$[1]<=R:F>ot^(w<=$[0]&&$[0]<=N)){var ut=ys(I,(-A+M)/C);return Co(ut,T),[$,Mo(ut)]}}}function c(u,d){var h=r?e:ot-e,f=0;return u<-h?f|=1:u>h&&(f|=2),d<-h?f|=4:d>h&&(f|=8),f}return Dh(a,o,s,r?[0,-e]:[-ot,e-ot])}function Jx(e,t,n,r,i,s){var a=e[0],o=e[1],l=t[0],c=t[1],u=0,d=1,h=l-a,f=c-o,p;if(p=n-a,!(!h&&p>0)){if(p/=h,h<0){if(p<u)return;p<d&&(d=p)}else if(h>0){if(p>d)return;p>u&&(u=p)}if(p=i-a,!(!h&&p<0)){if(p/=h,h<0){if(p>d)return;p>u&&(u=p)}else if(h>0){if(p<u)return;p<d&&(d=p)}if(p=r-o,!(!f&&p>0)){if(p/=f,f<0){if(p<u)return;p<d&&(d=p)}else if(f>0){if(p>d)return;p>u&&(u=p)}if(p=s-o,!(!f&&p<0)){if(p/=f,f<0){if(p>d)return;p>u&&(u=p)}else if(f>0){if(p<u)return;p<d&&(d=p)}return u>0&&(e[0]=a+u*h,e[1]=o+u*f),d<1&&(t[0]=a+d*h,t[1]=o+d*f),!0}}}}}var Yr=1e9,ws=-Yr;function tb(e,t,n,r){function i(c,u){return e<=c&&c<=n&&t<=u&&u<=r}function s(c,u,d,h){var f=0,p=0;if(c==null||(f=a(c,d))!==(p=a(u,d))||l(c,u)<0^d>0)do h.point(f===0||f===3?e:n,f>1?r:t);while((f=(f+d+4)%4)!==p);else h.point(u[0],u[1])}function a(c,u){return gt(c[0]-e)<pt?u>0?0:3:gt(c[0]-n)<pt?u>0?2:1:gt(c[1]-t)<pt?u>0?1:0:u>0?3:2}function o(c,u){return l(c.x,u.x)}function l(c,u){var d=a(c,1),h=a(u,1);return d!==h?d-h:d===0?u[1]-c[1]:d===1?c[0]-u[0]:d===2?c[1]-u[1]:u[0]-c[0]}return function(c){var u=c,d=$h(),h,f,p,m,g,v,y,x,S,_,E,T={point:k,lineStart:B,lineEnd:M,polygonStart:A,polygonEnd:C};function k(w,N){i(w,N)&&u.point(w,N)}function I(){for(var w=0,N=0,P=f.length;N<P;++N)for(var R=f[N],U=1,F=R.length,j=R[0],K,ut,G=j[0],Y=j[1];U<F;++U)K=G,ut=Y,j=R[U],G=j[0],Y=j[1],ut<=r?Y>r&&(G-K)*(r-ut)>(Y-ut)*(e-K)&&++w:Y<=r&&(G-K)*(r-ut)<(Y-ut)*(e-K)&&--w;return w}function A(){u=d,h=[],f=[],E=!0}function C(){var w=I(),N=E&&w,P=(h=du(h)).length;(N||P)&&(c.polygonStart(),N&&(c.lineStart(),s(null,null,1,c),c.lineEnd()),P&&Ah(h,o,w,s,c),c.polygonEnd()),u=c,h=f=p=null}function B(){T.point=$,f&&f.push(p=[]),_=!0,S=!1,y=x=NaN}function M(){h&&($(m,g),v&&S&&d.rejoin(),h.push(d.result())),T.point=k,S&&u.lineEnd()}function $(w,N){var P=i(w,N);if(f&&p.push([w,N]),_)m=w,g=N,v=P,_=!1,P&&(u.lineStart(),u.point(w,N));else if(P&&S)u.point(w,N);else{var R=[y=Math.max(ws,Math.min(Yr,y)),x=Math.max(ws,Math.min(Yr,x))],U=[w=Math.max(ws,Math.min(Yr,w)),N=Math.max(ws,Math.min(Yr,N))];Jx(R,U,e,t,n,r)?(S||(u.lineStart(),u.point(R[0],R[1])),u.point(U[0],U[1]),P||u.lineEnd(),E=!1):P&&(u.lineStart(),u.point(w,N),E=!1)}y=w,x=N,S=P}return T}}const ko=e=>e;var Ro=new _n,Io=new _n,Rh,Ih,No,Po,dn={point:pe,lineStart:pe,lineEnd:pe,polygonStart:function(){dn.lineStart=eb,dn.lineEnd=rb},polygonEnd:function(){dn.lineStart=dn.lineEnd=dn.point=pe,Ro.add(gt(Io)),Io=new _n},result:function(){var e=Ro/2;return Ro=new _n,e}};function eb(){dn.point=nb}function nb(e,t){dn.point=Nh,Rh=No=e,Ih=Po=t}function Nh(e,t){Io.add(Po*e-No*t),No=e,Po=t}function rb(){Nh(Rh,Ih)}const Ph=dn;var sr=1/0,_s=sr,Xr=-sr,Es=Xr,ib={point:sb,lineStart:pe,lineEnd:pe,polygonStart:pe,polygonEnd:pe,result:function(){var e=[[sr,_s],[Xr,Es]];return Xr=Es=-(_s=sr=1/0),e}};function sb(e,t){e<sr&&(sr=e),e>Xr&&(Xr=e),t<_s&&(_s=t),t>Es&&(Es=t)}const Ss=ib;var Uo=0,Bo=0,Zr=0,Os=0,Ts=0,ar=0,Vo=0,Ho=0,Kr=0,Uh,Bh,Ie,Ne,Oe={point:An,lineStart:Vh,lineEnd:Hh,polygonStart:function(){Oe.lineStart=lb,Oe.lineEnd=cb},polygonEnd:function(){Oe.point=An,Oe.lineStart=Vh,Oe.lineEnd=Hh},result:function(){var e=Kr?[Vo/Kr,Ho/Kr]:ar?[Os/ar,Ts/ar]:Zr?[Uo/Zr,Bo/Zr]:[NaN,NaN];return Uo=Bo=Zr=Os=Ts=ar=Vo=Ho=Kr=0,e}};function An(e,t){Uo+=e,Bo+=t,++Zr}function Vh(){Oe.point=ab}function ab(e,t){Oe.point=ob,An(Ie=e,Ne=t)}function ob(e,t){var n=e-Ie,r=t-Ne,i=Se(n*n+r*r);Os+=i*(Ie+e)/2,Ts+=i*(Ne+t)/2,ar+=i,An(Ie=e,Ne=t)}function Hh(){Oe.point=An}function lb(){Oe.point=ub}function cb(){Gh(Uh,Bh)}function ub(e,t){Oe.point=Gh,An(Uh=Ie=e,Bh=Ne=t)}function Gh(e,t){var n=e-Ie,r=t-Ne,i=Se(n*n+r*r);Os+=i*(Ie+e)/2,Ts+=i*(Ne+t)/2,ar+=i,i=Ne*e-Ie*t,Vo+=i*(Ie+e),Ho+=i*(Ne+t),Kr+=i*3,An(Ie=e,Ne=t)}const Fh=Oe;function zh(e){this._context=e}zh.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:{this._context.moveTo(e,t),this._point=1;break}case 1:{this._context.lineTo(e,t);break}default:{this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,le);break}}},result:pe};var Go=new _n,Fo,jh,Wh,Qr,Jr,Ms={point:pe,lineStart:function(){Ms.point=hb},lineEnd:function(){Fo&&qh(jh,Wh),Ms.point=pe},polygonStart:function(){Fo=!0},polygonEnd:function(){Fo=null},result:function(){var e=+Go;return Go=new _n,e}};function hb(e,t){Ms.point=qh,jh=Qr=e,Wh=Jr=t}function qh(e,t){Qr-=e,Jr-=t,Go.add(Se(Qr*Qr+Jr*Jr)),Qr=e,Jr=t}const Yh=Ms;let Xh,Cs,Zh,Kh;class Qh{constructor(t){this._append=t==null?Jh:db(t),this._radius=4.5,this._=""}pointRadius(t){return this._radius=+t,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){this._line===0&&(this._+="Z"),this._point=NaN}point(t,n){switch(this._point){case 0:{this._append`M${t},${n}`,this._point=1;break}case 1:{this._append`L${t},${n}`;break}default:{if(this._append`M${t},${n}`,this._radius!==Zh||this._append!==Cs){const r=this._radius,i=this._;this._="",this._append`m0,${r}a${r},${r} 0 1,1 0,${-2*r}a${r},${r} 0 1,1 0,${2*r}z`,Zh=r,Cs=this._append,Kh=this._,this._=i}this._+=Kh;break}}}result(){const t=this._;return this._="",t.length?t:null}}function Jh(e){let t=1;this._+=e[0];for(const n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function db(e){const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);if(t>15)return Jh;if(t!==Xh){const n=10**t;Xh=t,Cs=function(i){let s=1;this._+=i[0];for(const a=i.length;s<a;++s)this._+=Math.round(arguments[s]*n)/n+i[s]}}return Cs}function fb(e,t){let n=3,r=4.5,i,s;function a(o){return o&&(typeof r=="function"&&s.pointRadius(+r.apply(this,arguments)),rr(o,i(s))),s.result()}return a.area=function(o){return rr(o,i(Ph)),Ph.result()},a.measure=function(o){return rr(o,i(Yh)),Yh.result()},a.bounds=function(o){return rr(o,i(Ss)),Ss.result()},a.centroid=function(o){return rr(o,i(Fh)),Fh.result()},a.projection=function(o){return arguments.length?(i=o==null?(e=null,ko):(e=o).stream,a):e},a.context=function(o){return arguments.length?(s=o==null?(t=null,new Qh(n)):new zh(t=o),typeof r!="function"&&s.pointRadius(r),a):t},a.pointRadius=function(o){return arguments.length?(r=typeof o=="function"?o:(s.pointRadius(+o),+o),a):r},a.digits=function(o){if(!arguments.length)return n;if(o==null)n=null;else{const l=Math.floor(o);if(!(l>=0))throw new RangeError(`invalid digits: ${o}`);n=l}return t===null&&(s=new Qh(n)),a},a.projection(e).digits(n).context(t)}function zo(e){return function(t){var n=new jo;for(var r in e)n[r]=e[r];return n.stream=t,n}}function jo(){}jo.prototype={constructor:jo,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function Wo(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),r!=null&&e.clipExtent(null),rr(n,e.stream(Ss)),t(Ss.result()),r!=null&&e.clipExtent(r),e}function td(e,t,n){return Wo(e,function(r){var i=t[1][0]-t[0][0],s=t[1][1]-t[0][1],a=Math.min(i/(r[1][0]-r[0][0]),s/(r[1][1]-r[0][1])),o=+t[0][0]+(i-a*(r[1][0]+r[0][0]))/2,l=+t[0][1]+(s-a*(r[1][1]+r[0][1]))/2;e.scale(150*a).translate([o,l])},n)}function pb(e,t,n){return td(e,[[0,0],t],n)}function gb(e,t,n){return Wo(e,function(r){var i=+t,s=i/(r[1][0]-r[0][0]),a=(i-s*(r[1][0]+r[0][0]))/2,o=-s*r[0][1];e.scale(150*s).translate([a,o])},n)}function mb(e,t,n){return Wo(e,function(r){var i=+t,s=i/(r[1][1]-r[0][1]),a=-s*r[0][0],o=(i-s*(r[1][1]+r[0][1]))/2;e.scale(150*s).translate([a,o])},n)}var ed=16,vb=yt(30*$t);function nd(e,t){return+t?xb(e,t):yb(e)}function yb(e){return zo({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}function xb(e,t){function n(r,i,s,a,o,l,c,u,d,h,f,p,m,g){var v=c-r,y=u-i,x=v*v+y*y;if(x>4*t&&m--){var S=a+h,_=o+f,E=l+p,T=Se(S*S+_*_+E*E),k=Ye(E/=T),I=gt(gt(E)-1)<pt||gt(s-d)<pt?(s+d)/2:$n(_,S),A=e(I,k),C=A[0],B=A[1],M=C-r,$=B-i,w=y*M-v*$;(w*w/x>t||gt((v*M+y*$)/x-.5)>.3||a*h+o*f+l*p<vb)&&(n(r,i,s,a,o,l,C,B,I,S/=T,_/=T,E,m,g),g.point(C,B),n(C,B,I,S,_,E,c,u,d,h,f,p,m,g))}}return function(r){var i,s,a,o,l,c,u,d,h,f,p,m,g={point:v,lineStart:y,lineEnd:S,polygonStart:function(){r.polygonStart(),g.lineStart=_},polygonEnd:function(){r.polygonEnd(),g.lineStart=y}};function v(k,I){k=e(k,I),r.point(k[0],k[1])}function y(){d=NaN,g.point=x,r.lineStart()}function x(k,I){var A=ir([k,I]),C=e(k,I);n(d,h,u,f,p,m,d=C[0],h=C[1],u=k,f=A[0],p=A[1],m=A[2],ed,r),r.point(d,h)}function S(){g.point=v,r.lineEnd()}function _(){y(),g.point=E,g.lineEnd=T}function E(k,I){x(i=k,I),s=d,a=h,o=f,l=p,c=m,g.point=x}function T(){n(d,h,u,f,p,m,s,a,i,o,l,c,ed,r),g.lineEnd=S,S()}return g}}var bb=zo({point:function(e,t){this.stream.point(e*$t,t*$t)}});function wb(e){return zo({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}function _b(e,t,n,r,i){function s(a,o){return a*=r,o*=i,[t+e*a,n-e*o]}return s.invert=function(a,o){return[(a-t)/e*r,(n-o)/e*i]},s}function rd(e,t,n,r,i,s){if(!s)return _b(e,t,n,r,i);var a=yt(s),o=ft(s),l=a*e,c=o*e,u=a/e,d=o/e,h=(o*n-a*t)/e,f=(o*t+a*n)/e;function p(m,g){return m*=r,g*=i,[l*m-c*g+t,n-c*m-l*g]}return p.invert=function(m,g){return[r*(u*m-d*g+h),i*(f-d*m-u*g)]},p}function $s(e){return id(function(){return e})()}function id(e){var t,n=150,r=480,i=250,s=0,a=0,o=0,l=0,c=0,u,d=0,h=1,f=1,p=null,m=kh,g=null,v,y,x,S=ko,_=.5,E,T,k,I,A;function C(w){return k(w[0]*$t,w[1]*$t)}function B(w){return w=k.invert(w[0],w[1]),w&&[w[0]*Xt,w[1]*Xt]}C.stream=function(w){return I&&A===w?I:I=bb(wb(u)(m(E(S(A=w)))))},C.preclip=function(w){return arguments.length?(m=w,p=void 0,$()):m},C.postclip=function(w){return arguments.length?(S=w,g=v=y=x=null,$()):S},C.clipAngle=function(w){return arguments.length?(m=+w?Qx(p=w*$t):(p=null,kh),$()):p*Xt},C.clipExtent=function(w){return arguments.length?(S=w==null?(g=v=y=x=null,ko):tb(g=+w[0][0],v=+w[0][1],y=+w[1][0],x=+w[1][1]),$()):g==null?null:[[g,v],[y,x]]},C.scale=function(w){return arguments.length?(n=+w,M()):n},C.translate=function(w){return arguments.length?(r=+w[0],i=+w[1],M()):[r,i]},C.center=function(w){return arguments.length?(s=w[0]%360*$t,a=w[1]%360*$t,M()):[s*Xt,a*Xt]},C.rotate=function(w){return arguments.length?(o=w[0]%360*$t,l=w[1]%360*$t,c=w.length>2?w[2]%360*$t:0,M()):[o*Xt,l*Xt,c*Xt]},C.angle=function(w){return arguments.length?(d=w%360*$t,M()):d*Xt},C.reflectX=function(w){return arguments.length?(h=w?-1:1,M()):h<0},C.reflectY=function(w){return arguments.length?(f=w?-1:1,M()):f<0},C.precision=function(w){return arguments.length?(E=nd(T,_=w*w),$()):Se(_)},C.fitExtent=function(w,N){return td(C,w,N)},C.fitSize=function(w,N){return pb(C,w,N)},C.fitWidth=function(w,N){return gb(C,w,N)},C.fitHeight=function(w,N){return mb(C,w,N)};function M(){var w=rd(n,0,0,h,f,d).apply(null,t(s,a)),N=rd(n,r-w[0],i-w[1],h,f,d);return u=Sh(o,l,c),T=Ao(t,N),k=Ao(u,T),E=nd(T,_),$()}function $(){return I=A=null,C}return function(){return t=e.apply(this,arguments),C.invert=t.invert&&B,M()}}function sd(e){var t=0,n=ot/3,r=id(e),i=r(t,n);return i.parallels=function(s){return arguments.length?r(t=s[0]*$t,n=s[1]*$t):[t*Xt,n*Xt]},i}function Eb(e){var t=yt(e);function n(r,i){return[r*t,ft(i)/t]}return n.invert=function(r,i){return[r/t,Ye(i*t)]},n}function Sb(e,t){var n=ft(e),r=(n+ft(t))/2;if(gt(r)<pt)return Eb(e);var i=1+n*(2*r-n),s=Se(i)/r;function a(o,l){var c=Se(i-2*r*ft(l))/r;return[c*ft(o*=r),s-c*yt(o)]}return a.invert=function(o,l){var c=s-l,u=$n(o,gt(c))*hn(c);return c*r<0&&(u-=ot*hn(o)*hn(c)),[u/r,Ye((i-(o*o+c*c)*r*r)/(2*r))]},a}function ad(){return sd(Sb).scale(155.424).center([0,33.6442])}function Ob(){return ad().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function qo(e,t){return[e,Hx(Gx((ee+t)/2))]}qo.invert=function(e,t){return[e,2*bh(Vx(t))-ee]};function Tb(){return Mb(qo).scale(961/le)}function Mb(e){var t=$s(e),n=t.center,r=t.scale,i=t.translate,s=t.clipExtent,a=null,o,l,c;t.scale=function(d){return arguments.length?(r(d),u()):r()},t.translate=function(d){return arguments.length?(i(d),u()):i()},t.center=function(d){return arguments.length?(n(d),u()):n()},t.clipExtent=function(d){return arguments.length?(d==null?a=o=l=c=null:(a=+d[0][0],o=+d[0][1],l=+d[1][0],c=+d[1][1]),u()):a==null?null:[[a,o],[l,c]]};function u(){var d=ot*r(),h=t(zx(t.rotate()).invert([0,0]));return s(a==null?[[h[0]-d,h[1]-d],[h[0]+d,h[1]+d]]:e===qo?[[Math.max(h[0]-d,a),o],[Math.min(h[0]+d,l),c]]:[[a,Math.max(h[1]-d,o)],[l,Math.min(h[1]+d,c)]])}return u()}function As(e,t){return[e,t]}As.invert=As;function Cb(){return $s(As).scale(152.63)}function $b(e,t){var n=yt(e),r=e===t?ft(e):(n-yt(t))/(t-e),i=n/r+e;if(gt(r)<pt)return As;function s(a,o){var l=i-o,c=r*a;return[l*ft(c),i-l*yt(c)]}return s.invert=function(a,o){var l=i-o,c=$n(a,gt(l))*hn(l);return l*r<0&&(c-=ot*hn(a)*hn(l)),[c/r,i-hn(r)*Se(a*a+l*l)]},s}function Ab(){return sd($b).scale(131.154).center([0,13.9389])}var ti=1.340264,ei=-.081106,ni=893e-6,ri=.003796,Ls=Se(3)/2,Lb=12;function od(e,t){var n=Ye(Ls*ft(t)),r=n*n,i=r*r*r;return[e*yt(n)/(Ls*(ti+3*ei*r+i*(7*ni+9*ri*r))),n*(ti+ei*r+i*(ni+ri*r))]}od.invert=function(e,t){for(var n=t,r=n*n,i=r*r*r,s=0,a,o,l;s<Lb&&(o=n*(ti+ei*r+i*(ni+ri*r))-t,l=ti+3*ei*r+i*(7*ni+9*ri*r),n-=a=o/l,r=n*n,i=r*r*r,!(gt(a)<yh));++s);return[Ls*e*(ti+3*ei*r+i*(7*ni+9*ri*r))/yt(n),Ye(ft(n)/Ls)]};function Db(){return $s(od).scale(177.158)}function ld(e,t){var n=t*t,r=n*n;return[e*(.8707-.131979*n+r*(-.013791+r*(.003971*n-.001529*r))),t*(1.007226+n*(.015085+r*(-.044475+.028874*n-.005916*r)))]}ld.invert=function(e,t){var n=t,r=25,i;do{var s=n*n,a=s*s;n-=i=(n*(1.007226+s*(.015085+a*(-.044475+.028874*s-.005916*a)))-t)/(1.007226+s*(.015085*3+a*(-.044475*7+.028874*9*s-.005916*11*a)))}while(gt(i)>pt&&--r>0);return[e/(.8707+(s=n*n)*(-.131979+s*(-.013791+s*s*s*(.003971-.001529*s)))),n]};function kb(){return $s(ld).scale(175.295)}function Rb(e,t){return e.parent===t.parent?1:2}function Ib(e){return e.reduce(Nb,0)/e.length}function Nb(e,t){return e+t.x}function Pb(e){return 1+e.reduce(Ub,0)}function Ub(e,t){return Math.max(e,t.y)}function Bb(e){for(var t;t=e.children;)e=t[0];return e}function Vb(e){for(var t;t=e.children;)e=t[t.length-1];return e}function Hb(){var e=Rb,t=1,n=1,r=!1;function i(s){var a,o=0;s.eachAfter(function(h){var f=h.children;f?(h.x=Ib(f),h.y=Pb(f)):(h.x=a?o+=e(h,a):0,h.y=0,a=h)});var l=Bb(s),c=Vb(s),u=l.x-e(l,c)/2,d=c.x+e(c,l)/2;return s.eachAfter(r?function(h){h.x=(h.x-s.x)*t,h.y=(s.y-h.y)*n}:function(h){h.x=(h.x-u)/(d-u)*t,h.y=(1-(s.y?h.y/s.y:1))*n})}return i.separation=function(s){return arguments.length?(e=s,i):e},i.size=function(s){return arguments.length?(r=!1,t=+s[0],n=+s[1],i):r?null:[t,n]},i.nodeSize=function(s){return arguments.length?(r=!0,t=+s[0],n=+s[1],i):r?[t,n]:null},i}function Gb(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 Fb(){return this.eachAfter(Gb)}function zb(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this}function jb(e,t){for(var n=this,r=[n],i,s,a=-1;n=r.pop();)if(e.call(t,n,++a,this),i=n.children)for(s=i.length-1;s>=0;--s)r.push(i[s]);return this}function Wb(e,t){for(var n=this,r=[n],i=[],s,a,o,l=-1;n=r.pop();)if(i.push(n),s=n.children)for(a=0,o=s.length;a<o;++a)r.push(s[a]);for(;n=i.pop();)e.call(t,n,++l,this);return this}function qb(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r}function Yb(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})}function Xb(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function Zb(e){for(var t=this,n=Kb(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 Kb(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}function Qb(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function Jb(){return Array.from(this)}function tw(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function ew(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*nw(){var e=this,t,n=[e],r,i,s;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,s=r.length;i<s;++i)n.push(r[i]);while(n.length)}function ii(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=sw)):t===void 0&&(t=iw);for(var n=new si(e),r,i=[n],s,a,o,l;r=i.pop();)if((a=t(r.data))&&(l=(a=Array.from(a)).length))for(r.children=a,o=l-1;o>=0;--o)i.push(s=a[o]=new si(a[o])),s.parent=r,s.depth=r.depth+1;return n.eachBefore(ow)}function rw(){return ii(this).eachBefore(aw)}function iw(e){return e.children}function sw(e){return Array.isArray(e)?e[1]:null}function aw(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function ow(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function si(e){this.data=e,this.depth=this.height=0,this.parent=null}si.prototype=ii.prototype={constructor:si,count:Fb,each:zb,eachAfter:Wb,eachBefore:jb,find:qb,sum:Yb,sort:Xb,path:Zb,ancestors:Qb,descendants:Jb,leaves:tw,links:ew,copy:rw,[Symbol.iterator]:nw};function lw(e){return e==null?null:cd(e)}function cd(e){if(typeof e!="function")throw new Error;return e}function Ln(){return 0}function or(e){return function(){return e}}const cw=1664525,uw=1013904223,ud=4294967296;function hw(){let e=1;return()=>(e=(cw*e+uw)%ud)/ud}function dw(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function fw(e,t){let n=e.length,r,i;for(;n;)i=t()*n--|0,r=e[n],e[n]=e[i],e[i]=r;return e}function pw(e,t){for(var n=0,r=(e=fw(Array.from(e),t)).length,i=[],s,a;n<r;)s=e[n],a&&hd(a,s)?++n:(a=mw(i=gw(i,s)),n=0);return a}function gw(e,t){var n,r;if(Yo(t,e))return[t];for(n=0;n<e.length;++n)if(Ds(t,e[n])&&Yo(ai(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(r=n+1;r<e.length;++r)if(Ds(ai(e[n],e[r]),t)&&Ds(ai(e[n],t),e[r])&&Ds(ai(e[r],t),e[n])&&Yo(dd(e[n],e[r],t),e))return[e[n],e[r],t];throw new Error}function Ds(e,t){var n=e.r-t.r,r=t.x-e.x,i=t.y-e.y;return n<0||n*n<r*r+i*i}function hd(e,t){var n=e.r-t.r+Math.max(e.r,t.r,1)*1e-9,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function Yo(e,t){for(var n=0;n<t.length;++n)if(!hd(e,t[n]))return!1;return!0}function mw(e){switch(e.length){case 1:return vw(e[0]);case 2:return ai(e[0],e[1]);case 3:return dd(e[0],e[1],e[2])}}function vw(e){return{x:e.x,y:e.y,r:e.r}}function ai(e,t){var n=e.x,r=e.y,i=e.r,s=t.x,a=t.y,o=t.r,l=s-n,c=a-r,u=o-i,d=Math.sqrt(l*l+c*c);return{x:(n+s+l/d*u)/2,y:(r+a+c/d*u)/2,r:(d+i+o)/2}}function dd(e,t,n){var r=e.x,i=e.y,s=e.r,a=t.x,o=t.y,l=t.r,c=n.x,u=n.y,d=n.r,h=r-a,f=r-c,p=i-o,m=i-u,g=l-s,v=d-s,y=r*r+i*i-s*s,x=y-a*a-o*o+l*l,S=y-c*c-u*u+d*d,_=f*p-h*m,E=(p*S-m*x)/(_*2)-r,T=(m*g-p*v)/_,k=(f*x-h*S)/(_*2)-i,I=(h*v-f*g)/_,A=T*T+I*I-1,C=2*(s+E*T+k*I),B=E*E+k*k-s*s,M=-(Math.abs(A)>1e-6?(C+Math.sqrt(C*C-4*A*B))/(2*A):B/C);return{x:r+E+T*M,y:i+k+I*M,r:M}}function fd(e,t,n){var r=e.x-t.x,i,s,a=e.y-t.y,o,l,c=r*r+a*a;c?(s=t.r+n.r,s*=s,l=e.r+n.r,l*=l,s>l?(i=(c+l-s)/(2*c),o=Math.sqrt(Math.max(0,l/c-i*i)),n.x=e.x-i*r-o*a,n.y=e.y-i*a+o*r):(i=(c+s-l)/(2*c),o=Math.sqrt(Math.max(0,s/c-i*i)),n.x=t.x+i*r-o*a,n.y=t.y+i*a+o*r)):(n.x=t.x+n.r,n.y=t.y)}function pd(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function gd(e){var t=e._,n=e.next._,r=t.r+n.r,i=(t.x*n.r+n.x*t.r)/r,s=(t.y*n.r+n.y*t.r)/r;return i*i+s*s}function ks(e){this._=e,this.next=null,this.previous=null}function yw(e,t){if(!(s=(e=dw(e)).length))return 0;var n,r,i,s,a,o,l,c,u,d,h;if(n=e[0],n.x=0,n.y=0,!(s>1))return n.r;if(r=e[1],n.x=-r.r,r.x=n.r,r.y=0,!(s>2))return n.r+r.r;fd(r,n,i=e[2]),n=new ks(n),r=new ks(r),i=new ks(i),n.next=i.previous=r,r.next=n.previous=i,i.next=r.previous=n;t:for(l=3;l<s;++l){fd(n._,r._,i=e[l]),i=new ks(i),c=r.next,u=n.previous,d=r._.r,h=n._.r;do if(d<=h){if(pd(c._,i._)){r=c,n.next=r,r.previous=n,--l;continue t}d+=c._.r,c=c.next}else{if(pd(u._,i._)){n=u,n.next=r,r.previous=n,--l;continue t}h+=u._.r,u=u.previous}while(c!==u.next);for(i.previous=n,i.next=r,n.next=r.previous=r=i,a=gd(n);(i=i.next)!==r;)(o=gd(i))<a&&(n=i,a=o);r=n.next}for(n=[r._],i=r;(i=i.next)!==r;)n.push(i._);for(i=pw(n,t),l=0;l<s;++l)n=e[l],n.x-=i.x,n.y-=i.y;return i.r}function xw(e){return Math.sqrt(e.value)}function bw(){var e=null,t=1,n=1,r=Ln;function i(s){const a=hw();return s.x=t/2,s.y=n/2,e?s.eachBefore(md(e)).eachAfter(Xo(r,.5,a)).eachBefore(vd(1)):s.eachBefore(md(xw)).eachAfter(Xo(Ln,1,a)).eachAfter(Xo(r,s.r/Math.min(t,n),a)).eachBefore(vd(Math.min(t,n)/(2*s.r))),s}return i.radius=function(s){return arguments.length?(e=lw(s),i):e},i.size=function(s){return arguments.length?(t=+s[0],n=+s[1],i):[t,n]},i.padding=function(s){return arguments.length?(r=typeof s=="function"?s:or(+s),i):r},i}function md(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function Xo(e,t,n){return function(r){if(i=r.children){var i,s,a=i.length,o=e(r)*t||0,l;if(o)for(s=0;s<a;++s)i[s].r+=o;if(l=yw(i,n),o)for(s=0;s<a;++s)i[s].r-=o;r.r=l+o}}}function vd(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}function ww(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)}function _w(e,t,n,r,i){for(var s=e.children,a,o=-1,l=s.length,c=e.value&&(r-t)/e.value;++o<l;)a=s[o],a.y0=n,a.y1=i,a.x0=t,a.x1=t+=a.value*c}function Ew(e,t){return e.parent===t.parent?1:2}function Zo(e){var t=e.children;return t?t[0]:e.t}function Ko(e){var t=e.children;return t?t[t.length-1]:e.t}function Sw(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function Ow(e){for(var t=0,n=0,r=e.children,i=r.length,s;--i>=0;)s=r[i],s.z+=t,s.m+=t,t+=s.s+(n+=s.c)}function Tw(e,t,n){return e.a.parent===t.parent?e.a:n}function Rs(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}Rs.prototype=Object.create(si.prototype);function Mw(e){for(var t=new Rs(e,0),n,r=[t],i,s,a,o;n=r.pop();)if(s=n._.children)for(n.children=new Array(o=s.length),a=o-1;a>=0;--a)r.push(i=n.children[a]=new Rs(s[a],a)),i.parent=n;return(t.parent=new Rs(null,0)).children=[t],t}function Cw(){var e=Ew,t=1,n=1,r=null;function i(c){var u=Mw(c);if(u.eachAfter(s),u.parent.m=-u.z,u.eachBefore(a),r)c.eachBefore(l);else{var d=c,h=c,f=c;c.eachBefore(function(y){y.x<d.x&&(d=y),y.x>h.x&&(h=y),y.depth>f.depth&&(f=y)});var p=d===h?1:e(d,h)/2,m=p-d.x,g=t/(h.x+p+m),v=n/(f.depth||1);c.eachBefore(function(y){y.x=(y.x+m)*g,y.y=y.depth*v})}return c}function s(c){var u=c.children,d=c.parent.children,h=c.i?d[c.i-1]:null;if(u){Ow(c);var f=(u[0].z+u[u.length-1].z)/2;h?(c.z=h.z+e(c._,h._),c.m=c.z-f):c.z=f}else h&&(c.z=h.z+e(c._,h._));c.parent.A=o(c,h,c.parent.A||d[0])}function a(c){c._.x=c.z+c.parent.m,c.m+=c.parent.m}function o(c,u,d){if(u){for(var h=c,f=c,p=u,m=h.parent.children[0],g=h.m,v=f.m,y=p.m,x=m.m,S;p=Ko(p),h=Zo(h),p&&h;)m=Zo(m),f=Ko(f),f.a=c,S=p.z+y-h.z-g+e(p._,h._),S>0&&(Sw(Tw(p,c,d),c,S),g+=S,v+=S),y+=p.m,g+=h.m,x+=m.m,v+=f.m;p&&!Ko(f)&&(f.t=p,f.m+=y-v),h&&!Zo(m)&&(m.t=h,m.m+=g-x,d=c)}return d}function l(c){c.x*=t,c.y=c.depth*n}return i.separation=function(c){return arguments.length?(e=c,i):e},i.size=function(c){return arguments.length?(r=!1,t=+c[0],n=+c[1],i):r?null:[t,n]},i.nodeSize=function(c){return arguments.length?(r=!0,t=+c[0],n=+c[1],i):r?[t,n]:null},i}function $w(e,t,n,r,i){for(var s=e.children,a,o=-1,l=s.length,c=e.value&&(i-n)/e.value;++o<l;)a=s[o],a.x0=t,a.x1=r,a.y0=n,a.y1=n+=a.value*c}var Aw=(1+Math.sqrt(5))/2;function Lw(e,t,n,r,i,s){for(var a=[],o=t.children,l,c,u=0,d=0,h=o.length,f,p,m=t.value,g,v,y,x,S,_,E;u<h;){f=i-n,p=s-r;do g=o[d++].value;while(!g&&d<h);for(v=y=g,_=Math.max(p/f,f/p)/(m*e),E=g*g*_,S=Math.max(y/E,E/v);d<h;++d){if(g+=c=o[d].value,c<v&&(v=c),c>y&&(y=c),E=g*g*_,x=Math.max(y/E,E/v),x>S){g-=c;break}S=x}a.push(l={value:g,dice:f<p,children:o.slice(u,d)}),l.dice?_w(l,n,r,i,m?r+=p*g/m:s):$w(l,n,r,m?n+=f*g/m:i,s),m-=g,u=d}return a}const Dw=function e(t){function n(r,i,s,a,o){Lw(t,r,i,s,a,o)}return n.ratio=function(r){return e((r=+r)>1?r:1)},n}(Aw);function kw(){var e=Dw,t=!1,n=1,r=1,i=[0],s=Ln,a=Ln,o=Ln,l=Ln,c=Ln;function u(h){return h.x0=h.y0=0,h.x1=n,h.y1=r,h.eachBefore(d),i=[0],t&&h.eachBefore(ww),h}function d(h){var f=i[h.depth],p=h.x0+f,m=h.y0+f,g=h.x1-f,v=h.y1-f;g<p&&(p=g=(p+g)/2),v<m&&(m=v=(m+v)/2),h.x0=p,h.y0=m,h.x1=g,h.y1=v,h.children&&(f=i[h.depth+1]=s(h)/2,p+=c(h)-f,m+=a(h)-f,g-=o(h)-f,v-=l(h)-f,g<p&&(p=g=(p+g)/2),v<m&&(m=v=(m+v)/2),e(h,p,m,g,v))}return u.round=function(h){return arguments.length?(t=!!h,u):t},u.size=function(h){return arguments.length?(n=+h[0],r=+h[1],u):[n,r]},u.tile=function(h){return arguments.length?(e=cd(h),u):e},u.padding=function(h){return arguments.length?u.paddingInner(h).paddingOuter(h):u.paddingInner()},u.paddingInner=function(h){return arguments.length?(s=typeof h=="function"?h:or(+h),u):s},u.paddingOuter=function(h){return arguments.length?u.paddingTop(h).paddingRight(h).paddingBottom(h).paddingLeft(h):u.paddingTop()},u.paddingTop=function(h){return arguments.length?(a=typeof h=="function"?h:or(+h),u):a},u.paddingRight=function(h){return arguments.length?(o=typeof h=="function"?h:or(+h),u):o},u.paddingBottom=function(h){return arguments.length?(l=typeof h=="function"?h:or(+h),u):l},u.paddingLeft=function(h){return arguments.length?(c=typeof h=="function"?h:or(+h),u):c},u}function lr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const yd=Symbol("implicit");function Is(){var e=new lu,t=[],n=[],r=yd;function i(s){let a=e.get(s);if(a===void 0){if(r!==yd)return r;e.set(s,a=t.push(s)-1)}return n[a%n.length]}return i.domain=function(s){if(!arguments.length)return t.slice();t=[],e=new lu;for(const a of s)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(s){return arguments.length?(n=Array.from(s),i):n.slice()},i.unknown=function(s){return arguments.length?(r=s,i):r},i.copy=function(){return Is(t,n).unknown(r)},lr.apply(i,arguments),i}function oi(){var e=Is().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,s,a,o=!1,l=0,c=0,u=.5;delete e.unknown;function d(){var h=t().length,f=i<r,p=f?i:r,m=f?r:i;s=(m-p)/Math.max(1,h-l+c*2),o&&(s=Math.floor(s)),p+=(m-p-s*(h-l))*u,a=s*(1-l),o&&(p=Math.round(p),a=Math.round(a));var g=Hv(h).map(function(v){return p+s*v});return n(f?g.reverse():g)}return e.domain=function(h){return arguments.length?(t(h),d()):t()},e.range=function(h){return arguments.length?([r,i]=h,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(h){return[r,i]=h,r=+r,i=+i,o=!0,d()},e.bandwidth=function(){return a},e.step=function(){return s},e.round=function(h){return arguments.length?(o=!!h,d()):o},e.padding=function(h){return arguments.length?(l=Math.min(1,c=+h),d()):l},e.paddingInner=function(h){return arguments.length?(l=Math.min(1,h),d()):l},e.paddingOuter=function(h){return arguments.length?(c=+h,d()):c},e.align=function(h){return arguments.length?(u=Math.max(0,Math.min(1,h)),d()):u},e.copy=function(){return oi(t(),[r,i]).round(o).paddingInner(l).paddingOuter(c).align(u)},lr.apply(d(),arguments)}function Rw(e){return function(){return e}}function Iw(e){return+e}var xd=[0,1];function cr(e){return e}function Qo(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Rw(isNaN(t)?NaN:.5)}function Nw(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Pw(e,t,n){var r=e[0],i=e[1],s=t[0],a=t[1];return i<r?(r=Qo(i,r),s=n(a,s)):(r=Qo(r,i),s=n(s,a)),function(o){return s(r(o))}}function Uw(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),s=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=Qo(e[a],e[a+1]),s[a]=n(t[a],t[a+1]);return function(o){var l=Fa(e,o,1,r)-1;return s[l](i[l](o))}}function Jo(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function bd(){var e=xd,t=xd,n=Gr,r,i,s,a=cr,o,l,c;function u(){var h=Math.min(e.length,t.length);return a!==cr&&(a=Nw(e[0],e[h-1])),o=h>2?Uw:Pw,l=c=null,d}function d(h){return h==null||isNaN(h=+h)?s:(l||(l=o(e.map(r),t,n)))(r(a(h)))}return d.invert=function(h){return a(i((c||(c=o(t,e.map(r),oe)))(h)))},d.domain=function(h){return arguments.length?(e=Array.from(h,Iw),u()):e.slice()},d.range=function(h){return arguments.length?(t=Array.from(h),u()):t.slice()},d.rangeRound=function(h){return t=Array.from(h),n=Hu,u()},d.clamp=function(h){return arguments.length?(a=h?!0:cr,u()):a!==cr},d.interpolate=function(h){return arguments.length?(n=h,u()):n},d.unknown=function(h){return arguments.length?(s=h,d):s},function(h,f){return r=h,i=f,u()}}function wd(){return bd()(cr,cr)}function Bw(e,t,n,r){var i=ja(e,t,n),s;switch(r=qr(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(s=Ux(i,a))&&(r.precision=s),vh(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(s=Bx(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=s-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(s=Px(i))&&(r.precision=s-(r.type==="%")*2);break}}return Oo(r)}function _d(e){var t=e.domain;return e.ticks=function(n){var r=t();return ji(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return Bw(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,s=r.length-1,a=r[i],o=r[s],l,c,u=10;for(o<a&&(c=a,a=o,o=c,c=i,i=s,s=c);u-- >0;){if(c=Zn(a,o,n),c===l)return r[i]=a,r[s]=o,t(r);if(c>0)a=Math.floor(a/c)*c,o=Math.ceil(o/c)*c;else if(c<0)a=Math.ceil(a*c)/c,o=Math.floor(o*c)/c;else break;l=c}return e},e}function Te(){var e=wd();return e.copy=function(){return Jo(e,Te())},lr.apply(e,arguments),_d(e)}function Ed(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],s=e[r],a;return s<i&&(a=n,n=r,r=a,a=i,i=s,s=a),e[n]=t.floor(i),e[r]=t.ceil(s),e}function Sd(e){return Math.log(e)}function Od(e){return Math.exp(e)}function Vw(e){return-Math.log(-e)}function Hw(e){return-Math.exp(-e)}function Gw(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Fw(e){return e===10?Gw:e===Math.E?Math.exp:t=>Math.pow(e,t)}function zw(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Td(e){return(t,n)=>-e(-t,n)}function jw(e){const t=e(Sd,Od),n=t.domain;let r=10,i,s;function a(){return i=zw(r),s=Fw(r),n()[0]<0?(i=Td(i),s=Td(s),e(Vw,Hw)):e(Sd,Od),t}return t.base=function(o){return arguments.length?(r=+o,a()):r},t.domain=function(o){return arguments.length?(n(o),a()):n()},t.ticks=o=>{const l=n();let c=l[0],u=l[l.length-1];const d=u<c;d&&([c,u]=[u,c]);let h=i(c),f=i(u),p,m;const g=o==null?10:+o;let v=[];if(!(r%1)&&f-h<g){if(h=Math.floor(h),f=Math.ceil(f),c>0){for(;h<=f;++h)for(p=1;p<r;++p)if(m=h<0?p/s(-h):p*s(h),!(m<c)){if(m>u)break;v.push(m)}}else for(;h<=f;++h)for(p=r-1;p>=1;--p)if(m=h>0?p/s(-h):p*s(h),!(m<c)){if(m>u)break;v.push(m)}v.length*2<g&&(v=ji(c,u,g))}else v=ji(h,f,Math.min(f-h,g)).map(s);return d?v.reverse():v},t.tickFormat=(o,l)=>{if(o==null&&(o=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=qr(l)).precision==null&&(l.trim=!0),l=Oo(l)),o===1/0)return l;const c=Math.max(1,r*o/t.ticks().length);return u=>{let d=u/s(Math.round(i(u)));return d*r<r-.5&&(d*=r),d<=c?l(u):""}},t.nice=()=>n(Ed(n(),{floor:o=>s(Math.floor(i(o))),ceil:o=>s(Math.ceil(i(o)))})),t}function Md(){const e=jw(bd()).domain([1,10]);return e.copy=()=>Jo(e,Md()).base(e.base()),lr.apply(e,arguments),e}function tl(){var e=0,t=1,n=1,r=[.5],i=[0,1],s;function a(l){return l!=null&&l<=l?i[Fa(r,l,0,n)]:s}function o(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return a}return a.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,o()):[e,t]},a.range=function(l){return arguments.length?(n=(i=Array.from(l)).length-1,o()):i.slice()},a.invertExtent=function(l){var c=i.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,r[0]]:c>=n?[r[n-1],t]:[r[c-1],r[c]]},a.unknown=function(l){return arguments.length&&(s=l),a},a.thresholds=function(){return r.slice()},a.copy=function(){return tl().domain([e,t]).range(i).unknown(s)},lr.apply(_d(a),arguments)}const el=new Date,nl=new Date;function Pt(e,t,n,r){function i(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}return i.floor=s=>(e(s=new Date(+s)),s),i.ceil=s=>(e(s=new Date(s-1)),t(s,1),e(s),s),i.round=s=>{const a=i(s),o=i.ceil(s);return s-a<o-s?a:o},i.offset=(s,a)=>(t(s=new Date(+s),a==null?1:Math.floor(a)),s),i.range=(s,a,o)=>{const l=[];if(s=i.ceil(s),o=o==null?1:Math.floor(o),!(s<a)||!(o>0))return l;let c;do l.push(c=new Date(+s)),t(s,o),e(s);while(c<s&&s<a);return l},i.filter=s=>Pt(a=>{if(a>=a)for(;e(a),!s(a);)a.setTime(a-1)},(a,o)=>{if(a>=a)if(o<0)for(;++o<=0;)for(;t(a,-1),!s(a););else for(;--o>=0;)for(;t(a,1),!s(a););}),n&&(i.count=(s,a)=>(el.setTime(+s),nl.setTime(+a),e(el),e(nl),Math.floor(n(el,nl))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?a=>r(a)%s===0:a=>i.count(0,a)%s===0):i)),i}const Ns=Pt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ns.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Pt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Ns),Ns.range;const Xe=1e3,ge=Xe*60,Ze=ge*60,Ke=Ze*24,rl=Ke*7,Cd=Ke*30,il=Ke*365,ur=Pt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Xe)},(e,t)=>(t-e)/Xe,e=>e.getUTCSeconds());ur.range;const sl=Pt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Xe)},(e,t)=>{e.setTime(+e+t*ge)},(e,t)=>(t-e)/ge,e=>e.getMinutes());sl.range,Pt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ge)},(e,t)=>(t-e)/ge,e=>e.getUTCMinutes()).range;const al=Pt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Xe-e.getMinutes()*ge)},(e,t)=>{e.setTime(+e+t*Ze)},(e,t)=>(t-e)/Ze,e=>e.getHours());al.range,Pt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ze)},(e,t)=>(t-e)/Ze,e=>e.getUTCHours()).range;const li=Pt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ge)/Ke,e=>e.getDate()-1);li.range;const ol=Pt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ke,e=>e.getUTCDate()-1);ol.range,Pt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ke,e=>Math.floor(e/Ke)).range;function Dn(e){return Pt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*ge)/rl)}const Ps=Dn(0),Us=Dn(1),Ww=Dn(2),qw=Dn(3),hr=Dn(4),Yw=Dn(5),Xw=Dn(6);Ps.range,Us.range,Ww.range,qw.range,hr.range,Yw.range,Xw.range;function kn(e){return Pt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/rl)}const $d=kn(0),Bs=kn(1),Zw=kn(2),Kw=kn(3),dr=kn(4),Qw=kn(5),Jw=kn(6);$d.range,Bs.range,Zw.range,Kw.range,dr.range,Qw.range,Jw.range;const ll=Pt(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());ll.range,Pt(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()).range;const Qe=Pt(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());Qe.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Pt(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)}),Qe.range;const Rn=Pt(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());Rn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Pt(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)}),Rn.range;function t_(e,t,n,r,i,s){const a=[[ur,1,Xe],[ur,5,5*Xe],[ur,15,15*Xe],[ur,30,30*Xe],[s,1,ge],[s,5,5*ge],[s,15,15*ge],[s,30,30*ge],[i,1,Ze],[i,3,3*Ze],[i,6,6*Ze],[i,12,12*Ze],[r,1,Ke],[r,2,2*Ke],[n,1,rl],[t,1,Cd],[t,3,3*Cd],[e,1,il]];function o(c,u,d){const h=u<c;h&&([c,u]=[u,c]);const f=d&&typeof d.range=="function"?d:l(c,u,d),p=f?f.range(c,+u+1):[];return h?p.reverse():p}function l(c,u,d){const h=Math.abs(u-c)/d,f=Ga(([,,g])=>g).right(a,h);if(f===a.length)return e.every(ja(c/il,u/il,d));if(f===0)return Ns.every(Math.max(ja(c,u,d),1));const[p,m]=a[h/a[f-1][2]<a[f][2]/h?f-1:f];return p.every(m)}return[o,l]}const[e_,n_]=t_(Qe,ll,Ps,li,al,sl);function cl(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 ul(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 ci(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function r_(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,s=e.days,a=e.shortDays,o=e.months,l=e.shortMonths,c=ui(i),u=hi(i),d=ui(s),h=hi(s),f=ui(a),p=hi(a),m=ui(o),g=hi(o),v=ui(l),y=hi(l),x={a:P,A:R,b:U,B:F,c:null,d:Id,e:Id,f:T_,g:N_,G:U_,H:E_,I:S_,j:O_,L:Nd,m:M_,M:C_,p:j,q:K,Q:Gd,s:Fd,S:$_,u:A_,U:L_,V:D_,w:k_,W:R_,x:null,X:null,y:I_,Y:P_,Z:B_,"%":Hd},S={a:ut,A:G,b:Y,B:ct,c:null,d:Ud,e:Ud,f:F_,g:J_,G:eE,H:V_,I:H_,j:G_,L:Bd,m:z_,M:j_,p:et,q:Lt,Q:Gd,s:Fd,S:W_,u:q_,U:Y_,V:X_,w:Z_,W:K_,x:null,X:null,y:Q_,Y:tE,Z:nE,"%":Hd},_={a:A,A:C,b:B,B:M,c:$,d:kd,e:kd,f:x_,g:Dd,G:Ld,H:Rd,I:Rd,j:g_,L:y_,m:p_,M:m_,p:I,q:f_,Q:w_,s:__,S:v_,u:l_,U:c_,V:u_,w:o_,W:h_,x:w,X:N,y:Dd,Y:Ld,Z:d_,"%":b_};x.x=E(n,x),x.X=E(r,x),x.c=E(t,x),S.x=E(n,S),S.X=E(r,S),S.c=E(t,S);function E(z,Q){return function(at){var H=[],Dt=-1,vt=0,Qt=z.length,Jt,J,kt;for(at instanceof Date||(at=new Date(+at));++Dt<Qt;)z.charCodeAt(Dt)===37&&(H.push(z.slice(vt,Dt)),(J=Ad[Jt=z.charAt(++Dt)])!=null?Jt=z.charAt(++Dt):J=Jt==="e"?" ":"0",(kt=Q[Jt])&&(Jt=kt(at,J)),H.push(Jt),vt=Dt+1);return H.push(z.slice(vt,Dt)),H.join("")}}function T(z,Q){return function(at){var H=ci(1900,void 0,1),Dt=k(H,z,at+="",0),vt,Qt;if(Dt!=at.length)return null;if("Q"in H)return new Date(H.Q);if("s"in H)return new Date(H.s*1e3+("L"in H?H.L:0));if(Q&&!("Z"in H)&&(H.Z=0),"p"in H&&(H.H=H.H%12+H.p*12),H.m===void 0&&(H.m="q"in H?H.q:0),"V"in H){if(H.V<1||H.V>53)return null;"w"in H||(H.w=1),"Z"in H?(vt=ul(ci(H.y,0,1)),Qt=vt.getUTCDay(),vt=Qt>4||Qt===0?Bs.ceil(vt):Bs(vt),vt=ol.offset(vt,(H.V-1)*7),H.y=vt.getUTCFullYear(),H.m=vt.getUTCMonth(),H.d=vt.getUTCDate()+(H.w+6)%7):(vt=cl(ci(H.y,0,1)),Qt=vt.getDay(),vt=Qt>4||Qt===0?Us.ceil(vt):Us(vt),vt=li.offset(vt,(H.V-1)*7),H.y=vt.getFullYear(),H.m=vt.getMonth(),H.d=vt.getDate()+(H.w+6)%7)}else("W"in H||"U"in H)&&("w"in H||(H.w="u"in H?H.u%7:"W"in H?1:0),Qt="Z"in H?ul(ci(H.y,0,1)).getUTCDay():cl(ci(H.y,0,1)).getDay(),H.m=0,H.d="W"in H?(H.w+6)%7+H.W*7-(Qt+5)%7:H.w+H.U*7-(Qt+6)%7);return"Z"in H?(H.H+=H.Z/100|0,H.M+=H.Z%100,ul(H)):cl(H)}}function k(z,Q,at,H){for(var Dt=0,vt=Q.length,Qt=at.length,Jt,J;Dt<vt;){if(H>=Qt)return-1;if(Jt=Q.charCodeAt(Dt++),Jt===37){if(Jt=Q.charAt(Dt++),J=_[Jt in Ad?Q.charAt(Dt++):Jt],!J||(H=J(z,at,H))<0)return-1}else if(Jt!=at.charCodeAt(H++))return-1}return H}function I(z,Q,at){var H=c.exec(Q.slice(at));return H?(z.p=u.get(H[0].toLowerCase()),at+H[0].length):-1}function A(z,Q,at){var H=f.exec(Q.slice(at));return H?(z.w=p.get(H[0].toLowerCase()),at+H[0].length):-1}function C(z,Q,at){var H=d.exec(Q.slice(at));return H?(z.w=h.get(H[0].toLowerCase()),at+H[0].length):-1}function B(z,Q,at){var H=v.exec(Q.slice(at));return H?(z.m=y.get(H[0].toLowerCase()),at+H[0].length):-1}function M(z,Q,at){var H=m.exec(Q.slice(at));return H?(z.m=g.get(H[0].toLowerCase()),at+H[0].length):-1}function $(z,Q,at){return k(z,t,Q,at)}function w(z,Q,at){return k(z,n,Q,at)}function N(z,Q,at){return k(z,r,Q,at)}function P(z){return a[z.getDay()]}function R(z){return s[z.getDay()]}function U(z){return l[z.getMonth()]}function F(z){return o[z.getMonth()]}function j(z){return i[+(z.getHours()>=12)]}function K(z){return 1+~~(z.getMonth()/3)}function ut(z){return a[z.getUTCDay()]}function G(z){return s[z.getUTCDay()]}function Y(z){return l[z.getUTCMonth()]}function ct(z){return o[z.getUTCMonth()]}function et(z){return i[+(z.getUTCHours()>=12)]}function Lt(z){return 1+~~(z.getUTCMonth()/3)}return{format:function(z){var Q=E(z+="",x);return Q.toString=function(){return z},Q},parse:function(z){var Q=T(z+="",!1);return Q.toString=function(){return z},Q},utcFormat:function(z){var Q=E(z+="",S);return Q.toString=function(){return z},Q},utcParse:function(z){var Q=T(z+="",!0);return Q.toString=function(){return z},Q}}}var Ad={"-":"",_:" ",0:"0"},Vt=/^\s*\d+/,i_=/^%/,s_=/[\\^$*+?|[\]().{}]/g;function ht(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",s=i.length;return r+(s<n?new Array(n-s+1).join(t)+i:i)}function a_(e){return e.replace(s_,"\\$&")}function ui(e){return new RegExp("^(?:"+e.map(a_).join("|")+")","i")}function hi(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function o_(e,t,n){var r=Vt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function l_(e,t,n){var r=Vt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function c_(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function u_(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function h_(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Ld(e,t,n){var r=Vt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Dd(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function d_(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 f_(e,t,n){var r=Vt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function p_(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function kd(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function g_(e,t,n){var r=Vt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Rd(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function m_(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function v_(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function y_(e,t,n){var r=Vt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function x_(e,t,n){var r=Vt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function b_(e,t,n){var r=i_.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function w_(e,t,n){var r=Vt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function __(e,t,n){var r=Vt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Id(e,t){return ht(e.getDate(),t,2)}function E_(e,t){return ht(e.getHours(),t,2)}function S_(e,t){return ht(e.getHours()%12||12,t,2)}function O_(e,t){return ht(1+li.count(Qe(e),e),t,3)}function Nd(e,t){return ht(e.getMilliseconds(),t,3)}function T_(e,t){return Nd(e,t)+"000"}function M_(e,t){return ht(e.getMonth()+1,t,2)}function C_(e,t){return ht(e.getMinutes(),t,2)}function $_(e,t){return ht(e.getSeconds(),t,2)}function A_(e){var t=e.getDay();return t===0?7:t}function L_(e,t){return ht(Ps.count(Qe(e)-1,e),t,2)}function Pd(e){var t=e.getDay();return t>=4||t===0?hr(e):hr.ceil(e)}function D_(e,t){return e=Pd(e),ht(hr.count(Qe(e),e)+(Qe(e).getDay()===4),t,2)}function k_(e){return e.getDay()}function R_(e,t){return ht(Us.count(Qe(e)-1,e),t,2)}function I_(e,t){return ht(e.getFullYear()%100,t,2)}function N_(e,t){return e=Pd(e),ht(e.getFullYear()%100,t,2)}function P_(e,t){return ht(e.getFullYear()%1e4,t,4)}function U_(e,t){var n=e.getDay();return e=n>=4||n===0?hr(e):hr.ceil(e),ht(e.getFullYear()%1e4,t,4)}function B_(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ht(t/60|0,"0",2)+ht(t%60,"0",2)}function Ud(e,t){return ht(e.getUTCDate(),t,2)}function V_(e,t){return ht(e.getUTCHours(),t,2)}function H_(e,t){return ht(e.getUTCHours()%12||12,t,2)}function G_(e,t){return ht(1+ol.count(Rn(e),e),t,3)}function Bd(e,t){return ht(e.getUTCMilliseconds(),t,3)}function F_(e,t){return Bd(e,t)+"000"}function z_(e,t){return ht(e.getUTCMonth()+1,t,2)}function j_(e,t){return ht(e.getUTCMinutes(),t,2)}function W_(e,t){return ht(e.getUTCSeconds(),t,2)}function q_(e){var t=e.getUTCDay();return t===0?7:t}function Y_(e,t){return ht($d.count(Rn(e)-1,e),t,2)}function Vd(e){var t=e.getUTCDay();return t>=4||t===0?dr(e):dr.ceil(e)}function X_(e,t){return e=Vd(e),ht(dr.count(Rn(e),e)+(Rn(e).getUTCDay()===4),t,2)}function Z_(e){return e.getUTCDay()}function K_(e,t){return ht(Bs.count(Rn(e)-1,e),t,2)}function Q_(e,t){return ht(e.getUTCFullYear()%100,t,2)}function J_(e,t){return e=Vd(e),ht(e.getUTCFullYear()%100,t,2)}function tE(e,t){return ht(e.getUTCFullYear()%1e4,t,4)}function eE(e,t){var n=e.getUTCDay();return e=n>=4||n===0?dr(e):dr.ceil(e),ht(e.getUTCFullYear()%1e4,t,4)}function nE(){return"+0000"}function Hd(){return"%"}function Gd(e){return+e}function Fd(e){return Math.floor(+e/1e3)}var fr,zd;rE({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function rE(e){return fr=r_(e),zd=fr.format,fr.parse,fr.utcFormat,fr.utcParse,fr}function iE(e){return new Date(e)}function sE(e){return e instanceof Date?+e:+new Date(+e)}function jd(e,t,n,r,i,s,a,o,l,c){var u=wd(),d=u.invert,h=u.domain,f=c(".%L"),p=c(":%S"),m=c("%I:%M"),g=c("%I %p"),v=c("%a %d"),y=c("%b %d"),x=c("%B"),S=c("%Y");function _(E){return(l(E)<E?f:o(E)<E?p:a(E)<E?m:s(E)<E?g:r(E)<E?i(E)<E?v:y:n(E)<E?x:S)(E)}return u.invert=function(E){return new Date(d(E))},u.domain=function(E){return arguments.length?h(Array.from(E,sE)):h().map(iE)},u.ticks=function(E){var T=h();return e(T[0],T[T.length-1],E??10)},u.tickFormat=function(E,T){return T==null?_:c(T)},u.nice=function(E){var T=h();return(!E||typeof E.range!="function")&&(E=t(T[0],T[T.length-1],E??10)),E?h(Ed(T,E)):u},u.copy=function(){return Jo(u,jd(e,t,n,r,i,s,a,o,l,c))},u}function Wd(){return lr.apply(jd(e_,n_,Qe,ll,Ps,li,al,sl,ur,zd).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function st(e){return function(){return e}}const qd=Math.abs,Wt=Math.atan2,In=Math.cos,aE=Math.max,hl=Math.min,Pe=Math.sin,pr=Math.sqrt,qt=1e-12,di=Math.PI,Vs=di/2,Hs=2*di;function oE(e){return e>1?0:e<-1?di:Math.acos(e)}function Yd(e){return e>=1?Vs:e<=-1?-Vs:Math.asin(e)}function Gs(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new Cx(t)}function lE(e){return e.innerRadius}function cE(e){return e.outerRadius}function uE(e){return e.startAngle}function hE(e){return e.endAngle}function dE(e){return e&&e.padAngle}function fE(e,t,n,r,i,s,a,o){var l=n-e,c=r-t,u=a-i,d=o-s,h=d*l-u*c;if(!(h*h<qt))return h=(u*(t-s)-d*(e-i))/h,[e+h*l,t+h*c]}function Fs(e,t,n,r,i,s,a){var o=e-n,l=t-r,c=(a?s:-s)/pr(o*o+l*l),u=c*l,d=-c*o,h=e+u,f=t+d,p=n+u,m=r+d,g=(h+p)/2,v=(f+m)/2,y=p-h,x=m-f,S=y*y+x*x,_=i-s,E=h*m-p*f,T=(x<0?-1:1)*pr(aE(0,_*_*S-E*E)),k=(E*x-y*T)/S,I=(-E*y-x*T)/S,A=(E*x+y*T)/S,C=(-E*y+x*T)/S,B=k-g,M=I-v,$=A-g,w=C-v;return B*B+M*M>$*$+w*w&&(k=A,I=C),{cx:k,cy:I,x01:-u,y01:-d,x11:k*(i/_-1),y11:I*(i/_-1)}}function fi(){var e=lE,t=cE,n=st(0),r=null,i=uE,s=hE,a=dE,o=null,l=Gs(c);function c(){var u,d,h=+e.apply(this,arguments),f=+t.apply(this,arguments),p=i.apply(this,arguments)-Vs,m=s.apply(this,arguments)-Vs,g=qd(m-p),v=m>p;if(o||(o=u=l()),f<h&&(d=f,f=h,h=d),!(f>qt))o.moveTo(0,0);else if(g>Hs-qt)o.moveTo(f*In(p),f*Pe(p)),o.arc(0,0,f,p,m,!v),h>qt&&(o.moveTo(h*In(m),h*Pe(m)),o.arc(0,0,h,m,p,v));else{var y=p,x=m,S=p,_=m,E=g,T=g,k=a.apply(this,arguments)/2,I=k>qt&&(r?+r.apply(this,arguments):pr(h*h+f*f)),A=hl(qd(f-h)/2,+n.apply(this,arguments)),C=A,B=A,M,$;if(I>qt){var w=Yd(I/h*Pe(k)),N=Yd(I/f*Pe(k));(E-=w*2)>qt?(w*=v?1:-1,S+=w,_-=w):(E=0,S=_=(p+m)/2),(T-=N*2)>qt?(N*=v?1:-1,y+=N,x-=N):(T=0,y=x=(p+m)/2)}var P=f*In(y),R=f*Pe(y),U=h*In(_),F=h*Pe(_);if(A>qt){var j=f*In(x),K=f*Pe(x),ut=h*In(S),G=h*Pe(S),Y;if(g<di)if(Y=fE(P,R,ut,G,j,K,U,F)){var ct=P-Y[0],et=R-Y[1],Lt=j-Y[0],z=K-Y[1],Q=1/Pe(oE((ct*Lt+et*z)/(pr(ct*ct+et*et)*pr(Lt*Lt+z*z)))/2),at=pr(Y[0]*Y[0]+Y[1]*Y[1]);C=hl(A,(h-at)/(Q-1)),B=hl(A,(f-at)/(Q+1))}else C=B=0}T>qt?B>qt?(M=Fs(ut,G,P,R,f,B,v),$=Fs(j,K,U,F,f,B,v),o.moveTo(M.cx+M.x01,M.cy+M.y01),B<A?o.arc(M.cx,M.cy,B,Wt(M.y01,M.x01),Wt($.y01,$.x01),!v):(o.arc(M.cx,M.cy,B,Wt(M.y01,M.x01),Wt(M.y11,M.x11),!v),o.arc(0,0,f,Wt(M.cy+M.y11,M.cx+M.x11),Wt($.cy+$.y11,$.cx+$.x11),!v),o.arc($.cx,$.cy,B,Wt($.y11,$.x11),Wt($.y01,$.x01),!v))):(o.moveTo(P,R),o.arc(0,0,f,y,x,!v)):o.moveTo(P,R),!(h>qt)||!(E>qt)?o.lineTo(U,F):C>qt?(M=Fs(U,F,j,K,h,-C,v),$=Fs(P,R,ut,G,h,-C,v),o.lineTo(M.cx+M.x01,M.cy+M.y01),C<A?o.arc(M.cx,M.cy,C,Wt(M.y01,M.x01),Wt($.y01,$.x01),!v):(o.arc(M.cx,M.cy,C,Wt(M.y01,M.x01),Wt(M.y11,M.x11),!v),o.arc(0,0,h,Wt(M.cy+M.y11,M.cx+M.x11),Wt($.cy+$.y11,$.cx+$.x11),v),o.arc($.cx,$.cy,C,Wt($.y11,$.x11),Wt($.y01,$.x01),!v))):o.arc(0,0,h,_,S,v)}if(o.closePath(),u)return o=null,u+""||null}return c.centroid=function(){var u=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+i.apply(this,arguments)+ +s.apply(this,arguments))/2-di/2;return[In(d)*u,Pe(d)*u]},c.innerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:st(+u),c):e},c.outerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:st(+u),c):t},c.cornerRadius=function(u){return arguments.length?(n=typeof u=="function"?u:st(+u),c):n},c.padRadius=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:st(+u),c):r},c.startAngle=function(u){return arguments.length?(i=typeof u=="function"?u:st(+u),c):i},c.endAngle=function(u){return arguments.length?(s=typeof u=="function"?u:st(+u),c):s},c.padAngle=function(u){return arguments.length?(a=typeof u=="function"?u:st(+u),c):a},c.context=function(u){return arguments.length?(o=u??null,c):o},c}var pE=Array.prototype.slice;function zs(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Xd(e){this._context=e}Xd.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);break}}};function js(e){return new Xd(e)}function dl(e){return e[0]}function fl(e){return e[1]}function pi(e,t){var n=st(!0),r=null,i=js,s=null,a=Gs(o);e=typeof e=="function"?e:e===void 0?dl:st(e),t=typeof t=="function"?t:t===void 0?fl:st(t);function o(l){var c,u=(l=zs(l)).length,d,h=!1,f;for(r==null&&(s=i(f=a())),c=0;c<=u;++c)!(c<u&&n(d=l[c],c,l))===h&&((h=!h)?s.lineStart():s.lineEnd()),h&&s.point(+e(d,c,l),+t(d,c,l));if(f)return s=null,f+""||null}return o.x=function(l){return arguments.length?(e=typeof l=="function"?l:st(+l),o):e},o.y=function(l){return arguments.length?(t=typeof l=="function"?l:st(+l),o):t},o.defined=function(l){return arguments.length?(n=typeof l=="function"?l:st(!!l),o):n},o.curve=function(l){return arguments.length?(i=l,r!=null&&(s=i(r)),o):i},o.context=function(l){return arguments.length?(l==null?r=s=null:s=i(r=l),o):r},o}function pl(e,t,n){var r=null,i=st(!0),s=null,a=js,o=null,l=Gs(c);e=typeof e=="function"?e:e===void 0?dl:st(+e),t=typeof t=="function"?t:st(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?fl:st(+n);function c(d){var h,f,p,m=(d=zs(d)).length,g,v=!1,y,x=new Array(m),S=new Array(m);for(s==null&&(o=a(y=l())),h=0;h<=m;++h){if(!(h<m&&i(g=d[h],h,d))===v)if(v=!v)f=h,o.areaStart(),o.lineStart();else{for(o.lineEnd(),o.lineStart(),p=h-1;p>=f;--p)o.point(x[p],S[p]);o.lineEnd(),o.areaEnd()}v&&(x[h]=+e(g,h,d),S[h]=+t(g,h,d),o.point(r?+r(g,h,d):x[h],n?+n(g,h,d):S[h]))}if(y)return o=null,y+""||null}function u(){return pi().defined(i).curve(a).context(s)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:st(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:st(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:st(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:st(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:st(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:st(+d),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(d){return arguments.length?(i=typeof d=="function"?d:st(!!d),c):i},c.curve=function(d){return arguments.length?(a=d,s!=null&&(o=a(s)),c):a},c.context=function(d){return arguments.length?(d==null?s=o=null:o=a(s=d),c):s},c}function gE(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function mE(e){return e}function vE(){var e=mE,t=gE,n=null,r=st(0),i=st(Hs),s=st(0);function a(o){var l,c=(o=zs(o)).length,u,d,h=0,f=new Array(c),p=new Array(c),m=+r.apply(this,arguments),g=Math.min(Hs,Math.max(-Hs,i.apply(this,arguments)-m)),v,y=Math.min(Math.abs(g)/c,s.apply(this,arguments)),x=y*(g<0?-1:1),S;for(l=0;l<c;++l)(S=p[f[l]=l]=+e(o[l],l,o))>0&&(h+=S);for(t!=null?f.sort(function(_,E){return t(p[_],p[E])}):n!=null&&f.sort(function(_,E){return n(o[_],o[E])}),l=0,d=h?(g-c*x)/h:0;l<c;++l,m=v)u=f[l],S=p[u],v=m+(S>0?S*d:0)+x,p[u]={data:o[u],index:l,value:S,startAngle:m,endAngle:v,padAngle:y};return p}return a.value=function(o){return arguments.length?(e=typeof o=="function"?o:st(+o),a):e},a.sortValues=function(o){return arguments.length?(t=o,n=null,a):t},a.sort=function(o){return arguments.length?(n=o,t=null,a):n},a.startAngle=function(o){return arguments.length?(r=typeof o=="function"?o:st(+o),a):r},a.endAngle=function(o){return arguments.length?(i=typeof o=="function"?o:st(+o),a):i},a.padAngle=function(o){return arguments.length?(s=typeof o=="function"?o:st(+o),a):s},a}var yE=Kd(js);function Zd(e){this._curve=e}Zd.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function Kd(e){function t(n){return new Zd(e(n))}return t._curve=e,t}function xE(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(n){return arguments.length?t(Kd(n)):t()._curve},e}function bE(){return xE(pi().curve(yE))}class wE{constructor(t,n){this._context=t,this._x=n}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(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function _E(e){return new wE(e,!0)}function EE(e){return e.source}function SE(e){return e.target}function OE(e){let t=EE,n=SE,r=dl,i=fl,s=null,a=null,o=Gs(l);function l(){let c;const u=pE.call(arguments),d=t.apply(this,u),h=n.apply(this,u);if(s==null&&(a=e(c=o())),a.lineStart(),u[0]=d,a.point(+r.apply(this,u),+i.apply(this,u)),u[0]=h,a.point(+r.apply(this,u),+i.apply(this,u)),a.lineEnd(),c)return a=null,c+""||null}return l.source=function(c){return arguments.length?(t=c,l):t},l.target=function(c){return arguments.length?(n=c,l):n},l.x=function(c){return arguments.length?(r=typeof c=="function"?c:st(+c),l):r},l.y=function(c){return arguments.length?(i=typeof c=="function"?c:st(+c),l):i},l.context=function(c){return arguments.length?(c==null?s=a=null:a=e(s=c),l):s},l}function TE(){return OE(_E)}function fn(){}function Ws(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 qs(e){this._context=e}qs.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:Ws(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(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:Ws(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ME(e){return new qs(e)}function Qd(e){this._context=e}Qd.prototype={areaStart:fn,areaEnd:fn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(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:Ws(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function CE(e){return new Qd(e)}function Jd(e){this._context=e}Jd.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:Ws(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function $E(e){return new Jd(e)}function tf(e,t){this._basis=new qs(e),this._beta=t}tf.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],s=e[n]-r,a=t[n]-i,o=-1,l;++o<=n;)l=o/n,this._basis.point(this._beta*e[o]+(1-this._beta)*(r+l*s),this._beta*t[o]+(1-this._beta)*(i+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const AE=function e(t){function n(r){return t===1?new qs(r):new tf(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Ys(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 gl(e,t){this._context=e,this._k=(1-t)/6}gl.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:Ys(this,this._x1,this._y1);break}(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:Ys(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const LE=function e(t){function n(r){return new gl(r,t)}return n.tension=function(r){return e(+r)},n}(0);function ml(e,t){this._context=e,this._k=(1-t)/6}ml.prototype={areaStart:fn,areaEnd:fn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(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:Ys(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const DE=function e(t){function n(r){return new ml(r,t)}return n.tension=function(r){return e(+r)},n}(0);function vl(e,t){this._context=e,this._k=(1-t)/6}vl.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:Ys(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const kE=function e(t){function n(r){return new vl(r,t)}return n.tension=function(r){return e(+r)},n}(0);function yl(e,t,n){var r=e._x1,i=e._y1,s=e._x2,a=e._y2;if(e._l01_a>qt){var o=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*o-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*o-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>qt){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);s=(s*c+e._x1*e._l23_2a-t*e._l12_2a)/u,a=(a*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,s,a,e._x2,e._y2)}function ef(e,t){this._context=e,this._alpha=t}ef.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(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=Math.pow(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:yl(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const RE=function e(t){function n(r){return t?new ef(r,t):new gl(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function nf(e,t){this._context=e,this._alpha=t}nf.prototype={areaStart:fn,areaEnd:fn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(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=Math.pow(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:yl(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const IE=function e(t){function n(r){return t?new nf(r,t):new ml(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function rf(e,t){this._context=e,this._alpha=t}rf.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=Math.pow(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:yl(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const NE=function e(t){function n(r){return t?new rf(r,t):new vl(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function sf(e){this._context=e}sf.prototype={areaStart:fn,areaEnd:fn,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 af(e){return new sf(e)}function of(e){return e<0?-1:1}function lf(e,t,n){var r=e._x1-e._x0,i=t-e._x1,s=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),o=(s*i+a*r)/(r+i);return(of(s)+of(a))*Math.min(Math.abs(s),Math.abs(a),.5*Math.abs(o))||0}function cf(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function xl(e,t,n){var r=e._x0,i=e._y0,s=e._x1,a=e._y1,o=(s-r)/3;e._context.bezierCurveTo(r+o,i+o*t,s-o,a-o*n,s,a)}function Xs(e){this._context=e}Xs.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:xl(this,this._t0,cf(this,this._t0));break}(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,xl(this,cf(this,n=lf(this,e,t)),n);break;default:xl(this,this._t0,n=lf(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function uf(e){this._context=new hf(e)}(uf.prototype=Object.create(Xs.prototype)).point=function(e,t){Xs.prototype.point.call(this,t,e)};function hf(e){this._context=e}hf.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,s){this._context.bezierCurveTo(t,e,r,n,s,i)}};function PE(e){return new Xs(e)}function UE(e){return new uf(e)}function df(e){this._context=e}df.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=ff(e),i=ff(t),s=0,a=1;a<n;++s,++a)this._context.bezierCurveTo(r[0][s],i[0][s],r[1][s],i[1][s],e[a],t[a]);(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 ff(e){var t,n=e.length-1,r,i=new Array(n),s=new Array(n),a=new Array(n);for(i[0]=0,s[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,s[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,s[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/s[t-1],s[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/s[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/s[t];for(s[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)s[t]=2*e[t+1]-i[t+1];return[i,s]}function BE(e){return new df(e)}function Zs(e,t){this._context=e,this._t=t}Zs.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)}break}}this._x=e,this._y=t}};function VE(e){return new Zs(e,.5)}function HE(e){return new Zs(e,0)}function GE(e){return new Zs(e,1)}function pf(e,t){if((a=e.length)>1)for(var n=1,r,i,s=e[t[0]],a,o=s.length;n<a;++n)for(i=s,s=e[t[n]],r=0;r<o;++r)s[r][1]+=s[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function gf(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function FE(e,t){return e[t]}function zE(e){const t=[];return t.key=e,t}function bl(){var e=st([]),t=gf,n=pf,r=FE;function i(s){var a=Array.from(e.apply(this,arguments),zE),o,l=a.length,c=-1,u;for(const d of s)for(o=0,++c;o<l;++o)(a[o][c]=[0,+r(d,a[o].key,c,s)]).data=d;for(o=0,u=zs(t(a));o<l;++o)a[u[o]].index=o;return n(a,u),a}return i.keys=function(s){return arguments.length?(e=typeof s=="function"?s:st(Array.from(s)),i):e},i.value=function(s){return arguments.length?(r=typeof s=="function"?s:st(+s),i):r},i.order=function(s){return arguments.length?(t=s==null?gf:typeof s=="function"?s:st(Array.from(s)),i):t},i.offset=function(s){return arguments.length?(n=s??pf,i):n},i}function jE(e,t){if((l=e.length)>0)for(var n,r=0,i,s,a,o,l,c=e[t[0]].length;r<c;++r)for(a=o=0,n=0;n<l;++n)(s=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=a,i[1]=a+=s):s<0?(i[1]=o,i[0]=o+=s):(i[0]=0,i[1]=s)}function gi(e,t,n){this.k=e,this.x=t,this.y=n}gi.prototype={constructor:gi,scale:function(e){return e===1?this:new gi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new gi(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+")"}},gi.prototype;function wl(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}function mi(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var s=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):s;i=e.formattingValues[a]||e.formattingValues[s]}else{var o=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[o]}var c=e.argumentCallback?e.argumentCallback(t):t;return i[c]}}function vi(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(i);if(!s)return null;var a=s[0],o=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(o)?qE(o,function(d){return d.test(a)}):WE(o,function(d){return d.test(a)}),c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;var u=t.slice(a.length);return{value:c,rest:u}}}function WE(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function qE(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function YE(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],s=t.match(e.parsePattern);if(!s)return null;var a=e.valueCallback?e.valueCallback(s[0]):s[0];a=n.valueCallback?n.valueCallback(a):a;var o=t.slice(i.length);return{value:a,rest:o}}}function Ks(e){"@babel/helpers - typeof";return Ks=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ks(e)}function Ut(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function rt(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function dt(e){rt(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Ks(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Qs(e,t){rt(2,arguments);var n=dt(e).getTime(),r=Ut(t);return new Date(n+r)}var XE={};function Js(){return XE}function _l(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function ZE(e){return rt(1,arguments),e instanceof Date||Ks(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function KE(e){if(rt(1,arguments),!ZE(e)&&typeof e!="number")return!1;var t=dt(e);return!isNaN(Number(t))}function QE(e,t){rt(2,arguments);var n=Ut(t);return Qs(e,-n)}var JE=864e5;function tS(e){rt(1,arguments);var t=dt(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/JE)+1}function ta(e){rt(1,arguments);var t=1,n=dt(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function mf(e){rt(1,arguments);var t=dt(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=ta(r),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var a=ta(s);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function eS(e){rt(1,arguments);var t=mf(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=ta(n);return r}var nS=6048e5;function rS(e){rt(1,arguments);var t=dt(e),n=ta(t).getTime()-eS(t).getTime();return Math.round(n/nS)+1}function ea(e,t){var n,r,i,s,a,o,l,c;rt(1,arguments);var u=Js(),d=Ut((n=(r=(i=(s=t==null?void 0:t.weekStartsOn)!==null&&s!==void 0?s:t==null||(a=t.locale)===null||a===void 0||(o=a.options)===null||o===void 0?void 0:o.weekStartsOn)!==null&&i!==void 0?i:u.weekStartsOn)!==null&&r!==void 0?r:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=dt(e),f=h.getUTCDay(),p=(f<d?7:0)+f-d;return h.setUTCDate(h.getUTCDate()-p),h.setUTCHours(0,0,0,0),h}function vf(e,t){var n,r,i,s,a,o,l,c;rt(1,arguments);var u=dt(e),d=u.getUTCFullYear(),h=Js(),f=Ut((n=(r=(i=(s=t==null?void 0:t.firstWeekContainsDate)!==null&&s!==void 0?s:t==null||(a=t.locale)===null||a===void 0||(o=a.options)===null||o===void 0?void 0:o.firstWeekContainsDate)!==null&&i!==void 0?i:h.firstWeekContainsDate)!==null&&r!==void 0?r:(l=h.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(d+1,0,f),p.setUTCHours(0,0,0,0);var m=ea(p,t),g=new Date(0);g.setUTCFullYear(d,0,f),g.setUTCHours(0,0,0,0);var v=ea(g,t);return u.getTime()>=m.getTime()?d+1:u.getTime()>=v.getTime()?d:d-1}function iS(e,t){var n,r,i,s,a,o,l,c;rt(1,arguments);var u=Js(),d=Ut((n=(r=(i=(s=t==null?void 0:t.firstWeekContainsDate)!==null&&s!==void 0?s:t==null||(a=t.locale)===null||a===void 0||(o=a.options)===null||o===void 0?void 0:o.firstWeekContainsDate)!==null&&i!==void 0?i:u.firstWeekContainsDate)!==null&&r!==void 0?r:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),h=vf(e,t),f=new Date(0);f.setUTCFullYear(h,0,d),f.setUTCHours(0,0,0,0);var p=ea(f,t);return p}var sS=6048e5;function aS(e,t){rt(1,arguments);var n=dt(e),r=ea(n,t).getTime()-iS(n,t).getTime();return Math.round(r/sS)+1}function mt(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var oS={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return mt(t==="yy"?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return t==="M"?String(n+1):mt(n+1,2)},d:function(e,t){return mt(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(e,t){return mt(e.getUTCHours()%12||12,t.length)},H:function(e,t){return mt(e.getUTCHours(),t.length)},m:function(e,t){return mt(e.getUTCMinutes(),t.length)},s:function(e,t){return mt(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds(),i=Math.floor(r*Math.pow(10,n-3));return mt(i,t.length)}};const pn=oS;var gr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},lS={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return pn.y(e,t)},Y:function(e,t,n,r){var i=vf(e,r),s=i>0?i:1-i;if(t==="YY"){var a=s%100;return mt(a,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):mt(s,t.length)},R:function(e,t){var n=mf(e);return mt(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return mt(n,t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return mt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return mt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return pn.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return mt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=aS(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):mt(i,t.length)},I:function(e,t,n){var r=rS(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):mt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):pn.d(e,t)},D:function(e,t,n){var r=tS(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):mt(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),s=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return mt(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),s=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return mt(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return mt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours(),i=r/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r=e.getUTCHours(),i;switch(r===12?i=gr.noon:r===0?i=gr.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r=e.getUTCHours(),i;switch(r>=17?i=gr.evening:r>=12?i=gr.afternoon:r>=4?i=gr.morning:i=gr.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){var r=e.getUTCHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return pn.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):pn.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):mt(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):mt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):pn.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):pn.s(e,t)},S:function(e,t){return pn.S(e,t)},X:function(e,t,n,r){var i=r._originalDate||e,s=i.getTimezoneOffset();if(s===0)return"Z";switch(t){case"X":return xf(s);case"XXXX":case"XX":return Nn(s);case"XXXXX":case"XXX":default:return Nn(s,":")}},x:function(e,t,n,r){var i=r._originalDate||e,s=i.getTimezoneOffset();switch(t){case"x":return xf(s);case"xxxx":case"xx":return Nn(s);case"xxxxx":case"xxx":default:return Nn(s,":")}},O:function(e,t,n,r){var i=r._originalDate||e,s=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+yf(s,":");case"OOOO":default:return"GMT"+Nn(s,":")}},z:function(e,t,n,r){var i=r._originalDate||e,s=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+yf(s,":");case"zzzz":default:return"GMT"+Nn(s,":")}},t:function(e,t,n,r){var i=r._originalDate||e,s=Math.floor(i.getTime()/1e3);return mt(s,t.length)},T:function(e,t,n,r){var i=r._originalDate||e,s=i.getTime();return mt(s,t.length)}};function yf(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),s=r%60;if(s===0)return n+String(i);var a=t||"";return n+String(i)+a+mt(s,2)}function xf(e,t){if(e%60===0){var n=e>0?"-":"+";return n+mt(Math.abs(e)/60,2)}return Nn(e,t)}function Nn(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),s=mt(Math.floor(i/60),2),a=mt(i%60,2);return r+s+n+a}const cS=lS;var bf=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},wf=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},uS=function(e,t){var n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return bf(e,t);var s;switch(r){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",bf(r,t)).replace("{{time}}",wf(i,t))},hS={p:wf,P:uS};const dS=hS;var fS=["D","DD"],pS=["YY","YYYY"];function gS(e){return fS.indexOf(e)!==-1}function mS(e){return pS.indexOf(e)!==-1}function _f(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var vS={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},yS=function(e,t,n){var r,i=vS[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};const xS=yS;var bS={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},wS={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},_S={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ES={date:wl({formats:bS,defaultWidth:"full"}),time:wl({formats:wS,defaultWidth:"full"}),dateTime:wl({formats:_S,defaultWidth:"full"})};const SS=ES;var OS={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},TS=function(e,t,n,r){return OS[e]};const MS=TS;var CS={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},$S={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},AS={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},LS={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},DS={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},kS={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},RS=function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},IS={ordinalNumber:RS,era:mi({values:CS,defaultWidth:"wide"}),quarter:mi({values:$S,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:mi({values:AS,defaultWidth:"wide"}),day:mi({values:LS,defaultWidth:"wide"}),dayPeriod:mi({values:DS,defaultWidth:"wide",formattingValues:kS,defaultFormattingWidth:"wide"})};const NS=IS;var PS=/^(\d+)(th|st|nd|rd)?/i,US=/\d+/i,BS={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},VS={any:[/^b/i,/^(a|c)/i]},HS={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},GS={any:[/1/i,/2/i,/3/i,/4/i]},FS={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},zS={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},jS={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},WS={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},qS={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},YS={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},XS={ordinalNumber:YE({matchPattern:PS,parsePattern:US,valueCallback:function(e){return parseInt(e,10)}}),era:vi({matchPatterns:BS,defaultMatchWidth:"wide",parsePatterns:VS,defaultParseWidth:"any"}),quarter:vi({matchPatterns:HS,defaultMatchWidth:"wide",parsePatterns:GS,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:vi({matchPatterns:FS,defaultMatchWidth:"wide",parsePatterns:zS,defaultParseWidth:"any"}),day:vi({matchPatterns:jS,defaultMatchWidth:"wide",parsePatterns:WS,defaultParseWidth:"any"}),dayPeriod:vi({matchPatterns:qS,defaultMatchWidth:"any",parsePatterns:YS,defaultParseWidth:"any"})},ZS={code:"en-US",formatDistance:xS,formatLong:SS,formatRelative:MS,localize:NS,match:XS,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Ef=ZS;var KS=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,QS=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,JS=/^'([^]*?)'?$/,tO=/''/g,eO=/[a-zA-Z]/;function mr(e,t,n){var r,i,s,a,o,l,c,u,d,h,f,p,m,g,v,y,x,S;rt(2,arguments);var _=String(t),E=Js(),T=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:E.locale)!==null&&r!==void 0?r:Ef,k=Ut((s=(a=(o=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(c=n.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&o!==void 0?o:E.firstWeekContainsDate)!==null&&a!==void 0?a:(d=E.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var I=Ut((f=(p=(m=(g=n==null?void 0:n.weekStartsOn)!==null&&g!==void 0?g:n==null||(v=n.locale)===null||v===void 0||(y=v.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&m!==void 0?m:E.weekStartsOn)!==null&&p!==void 0?p:(x=E.locale)===null||x===void 0||(S=x.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&f!==void 0?f:0);if(!(I>=0&&I<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var A=dt(e);if(!KE(A))throw new RangeError("Invalid time value");var C=_l(A),B=QE(A,C),M={firstWeekContainsDate:k,weekStartsOn:I,locale:T,_originalDate:A},$=_.match(QS).map(function(w){var N=w[0];if(N==="p"||N==="P"){var P=dS[N];return P(w,T.formatLong)}return w}).join("").match(KS).map(function(w){if(w==="''")return"'";var N=w[0];if(N==="'")return nO(w);var P=cS[N];if(P)return!(n!=null&&n.useAdditionalWeekYearTokens)&&mS(w)&&_f(w,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&gS(w)&&_f(w,t,String(e)),P(B,w,T.localize,M);if(N.match(eO))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");return w}).join("");return $}function nO(e){var t=e.match(JS);return t?t[1].replace(tO,"'"):e}var rO=typeof global=="object"&&global&&global.Object===Object&&global;const Sf=rO;var iO=typeof self=="object"&&self&&self.Object===Object&&self,sO=Sf||iO||Function("return this")();const Me=sO;var aO=Me.Symbol;const me=aO;var Of=Object.prototype,oO=Of.hasOwnProperty,lO=Of.toString,yi=me?me.toStringTag:void 0;function cO(e){var t=oO.call(e,yi),n=e[yi];try{e[yi]=void 0;var r=!0}catch{}var i=lO.call(e);return r&&(t?e[yi]=n:delete e[yi]),i}var uO=Object.prototype,hO=uO.toString;function dO(e){return hO.call(e)}var fO="[object Null]",pO="[object Undefined]",Tf=me?me.toStringTag:void 0;function Pn(e){return e==null?e===void 0?pO:fO:Tf&&Tf in Object(e)?cO(e):dO(e)}function Ue(e){return e!=null&&typeof e=="object"}var gO="[object Symbol]";function na(e){return typeof e=="symbol"||Ue(e)&&Pn(e)==gO}function Mf(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var mO=Array.isArray;const Ht=mO;var vO=1/0,Cf=me?me.prototype:void 0,$f=Cf?Cf.toString:void 0;function Af(e){if(typeof e=="string")return e;if(Ht(e))return Mf(e,Af)+"";if(na(e))return $f?$f.call(e):"";var t=e+"";return t=="0"&&1/e==-vO?"-0":t}function ve(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function El(e){return e}var yO="[object AsyncFunction]",xO="[object Function]",bO="[object GeneratorFunction]",wO="[object Proxy]";function Sl(e){if(!ve(e))return!1;var t=Pn(e);return t==xO||t==bO||t==yO||t==wO}var _O=Me["__core-js_shared__"];const Ol=_O;var Lf=function(){var e=/[^.]+$/.exec(Ol&&Ol.keys&&Ol.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function EO(e){return!!Lf&&Lf in e}var SO=Function.prototype,OO=SO.toString;function Un(e){if(e!=null){try{return OO.call(e)}catch{}try{return e+""}catch{}}return""}var TO=/[\\^$.*+?()[\]{}|]/g,MO=/^\[object .+?Constructor\]$/,CO=Function.prototype,$O=Object.prototype,AO=CO.toString,LO=$O.hasOwnProperty,DO=RegExp("^"+AO.call(LO).replace(TO,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function kO(e){if(!ve(e)||EO(e))return!1;var t=Sl(e)?DO:MO;return t.test(Un(e))}function RO(e,t){return e==null?void 0:e[t]}function Bn(e,t){var n=RO(e,t);return kO(n)?n:void 0}var IO=Bn(Me,"WeakMap");const Tl=IO;var Df=Object.create,NO=function(){function e(){}return function(t){if(!ve(t))return{};if(Df)return Df(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const PO=NO;function UO(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function BO(){}function kf(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var VO=800,HO=16,GO=Date.now;function FO(e){var t=0,n=0;return function(){var r=GO(),i=HO-(r-n);if(n=r,i>0){if(++t>=VO)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function zO(e){return function(){return e}}var jO=function(){try{var e=Bn(Object,"defineProperty");return e({},"",{}),e}catch{}}();const ra=jO;var WO=ra?function(e,t){return ra(e,"toString",{configurable:!0,enumerable:!1,value:zO(t),writable:!0})}:El,qO=FO(WO);const YO=qO;function XO(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function ZO(e,t,n,r){for(var i=e.length,s=n+(r?1:-1);r?s--:++s<i;)if(t(e[s],s,e))return s;return-1}function KO(e){return e!==e}function QO(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function JO(e,t,n){return t===t?QO(e,t,n):ZO(e,KO,n)}function tT(e,t){var n=e==null?0:e.length;return!!n&&JO(e,t,0)>-1}var eT=9007199254740991,nT=/^(?:0|[1-9]\d*)$/;function Ml(e,t){var n=typeof e;return t=t??eT,!!t&&(n=="number"||n!="symbol"&&nT.test(e))&&e>-1&&e%1==0&&e<t}function ia(e,t,n){t=="__proto__"&&ra?ra(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function xi(e,t){return e===t||e!==e&&t!==t}var rT=Object.prototype,iT=rT.hasOwnProperty;function Rf(e,t,n){var r=e[t];(!(iT.call(e,t)&&xi(r,n))||n===void 0&&!(t in e))&&ia(e,t,n)}function bi(e,t,n,r){var i=!n;n||(n={});for(var s=-1,a=t.length;++s<a;){var o=t[s],l=r?r(n[o],e[o],o,n,e):void 0;l===void 0&&(l=e[o]),i?ia(n,o,l):Rf(n,o,l)}return n}var If=Math.max;function sT(e,t,n){return t=If(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,s=If(r.length-t,0),a=Array(s);++i<s;)a[i]=r[t+i];i=-1;for(var o=Array(t+1);++i<t;)o[i]=r[i];return o[t]=n(a),UO(e,this,o)}}function Nf(e,t){return YO(sT(e,t,El),e+"")}var aT=9007199254740991;function Cl(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=aT}function Vn(e){return e!=null&&Cl(e.length)&&!Sl(e)}function Pf(e,t,n){if(!ve(n))return!1;var r=typeof t;return(r=="number"?Vn(n)&&Ml(t,n.length):r=="string"&&t in n)?xi(n[t],e):!1}function oT(e){return Nf(function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,a&&Pf(n[0],n[1],a)&&(s=i<3?void 0:s,i=1),t=Object(t);++r<i;){var o=n[r];o&&e(t,o,r,s)}return t})}var lT=Object.prototype;function sa(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||lT;return e===n}function cT(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var uT="[object Arguments]";function Uf(e){return Ue(e)&&Pn(e)==uT}var Bf=Object.prototype,hT=Bf.hasOwnProperty,dT=Bf.propertyIsEnumerable,fT=Uf(function(){return arguments}())?Uf:function(e){return Ue(e)&&hT.call(e,"callee")&&!dT.call(e,"callee")};const vr=fT;function pT(){return!1}var Vf=typeof nt=="object"&&nt&&!nt.nodeType&&nt,Hf=Vf&&typeof module=="object"&&module&&!module.nodeType&&module,gT=Hf&&Hf.exports===Vf,Gf=gT?Me.Buffer:void 0,mT=Gf?Gf.isBuffer:void 0,vT=mT||pT;const yr=vT;var yT="[object Arguments]",xT="[object Array]",bT="[object Boolean]",wT="[object Date]",_T="[object Error]",ET="[object Function]",ST="[object Map]",OT="[object Number]",TT="[object Object]",MT="[object RegExp]",CT="[object Set]",$T="[object String]",AT="[object WeakMap]",LT="[object ArrayBuffer]",DT="[object DataView]",kT="[object Float32Array]",RT="[object Float64Array]",IT="[object Int8Array]",NT="[object Int16Array]",PT="[object Int32Array]",UT="[object Uint8Array]",BT="[object Uint8ClampedArray]",VT="[object Uint16Array]",HT="[object Uint32Array]",St={};St[kT]=St[RT]=St[IT]=St[NT]=St[PT]=St[UT]=St[BT]=St[VT]=St[HT]=!0,St[yT]=St[xT]=St[LT]=St[bT]=St[DT]=St[wT]=St[_T]=St[ET]=St[ST]=St[OT]=St[TT]=St[MT]=St[CT]=St[$T]=St[AT]=!1;function GT(e){return Ue(e)&&Cl(e.length)&&!!St[Pn(e)]}function $l(e){return function(t){return e(t)}}var Ff=typeof nt=="object"&&nt&&!nt.nodeType&&nt,wi=Ff&&typeof module=="object"&&module&&!module.nodeType&&module,FT=wi&&wi.exports===Ff,Al=FT&&Sf.process,zT=function(){try{var e=wi&&wi.require&&wi.require("util").types;return e||Al&&Al.binding&&Al.binding("util")}catch{}}();const xr=zT;var zf=xr&&xr.isTypedArray,jT=zf?$l(zf):GT;const aa=jT;var WT=Object.prototype,qT=WT.hasOwnProperty;function jf(e,t){var n=Ht(e),r=!n&&vr(e),i=!n&&!r&&yr(e),s=!n&&!r&&!i&&aa(e),a=n||r||i||s,o=a?cT(e.length,String):[],l=o.length;for(var c in e)(t||qT.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Ml(c,l)))&&o.push(c);return o}function Wf(e,t){return function(n){return e(t(n))}}var YT=Wf(Object.keys,Object);const XT=YT;var ZT=Object.prototype,KT=ZT.hasOwnProperty;function qf(e){if(!sa(e))return XT(e);var t=[];for(var n in Object(e))KT.call(e,n)&&n!="constructor"&&t.push(n);return t}function _i(e){return Vn(e)?jf(e):qf(e)}function QT(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var JT=Object.prototype,tM=JT.hasOwnProperty;function eM(e){if(!ve(e))return QT(e);var t=sa(e),n=[];for(var r in e)r=="constructor"&&(t||!tM.call(e,r))||n.push(r);return n}function Ei(e){return Vn(e)?jf(e,!0):eM(e)}var nM=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rM=/^\w*$/;function Ll(e,t){if(Ht(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||na(e)?!0:rM.test(e)||!nM.test(e)||t!=null&&e in Object(t)}var iM=Bn(Object,"create");const Si=iM;function sM(){this.__data__=Si?Si(null):{},this.size=0}function aM(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var oM="__lodash_hash_undefined__",lM=Object.prototype,cM=lM.hasOwnProperty;function uM(e){var t=this.__data__;if(Si){var n=t[e];return n===oM?void 0:n}return cM.call(t,e)?t[e]:void 0}var hM=Object.prototype,dM=hM.hasOwnProperty;function fM(e){var t=this.__data__;return Si?t[e]!==void 0:dM.call(t,e)}var pM="__lodash_hash_undefined__";function gM(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Si&&t===void 0?pM:t,this}function Hn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Hn.prototype.clear=sM,Hn.prototype.delete=aM,Hn.prototype.get=uM,Hn.prototype.has=fM,Hn.prototype.set=gM;function mM(){this.__data__=[],this.size=0}function oa(e,t){for(var n=e.length;n--;)if(xi(e[n][0],t))return n;return-1}var vM=Array.prototype,yM=vM.splice;function xM(e){var t=this.__data__,n=oa(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():yM.call(t,n,1),--this.size,!0}function bM(e){var t=this.__data__,n=oa(t,e);return n<0?void 0:t[n][1]}function wM(e){return oa(this.__data__,e)>-1}function _M(e,t){var n=this.__data__,r=oa(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Je(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Je.prototype.clear=mM,Je.prototype.delete=xM,Je.prototype.get=bM,Je.prototype.has=wM,Je.prototype.set=_M;var EM=Bn(Me,"Map");const Oi=EM;function SM(){this.size=0,this.__data__={hash:new Hn,map:new(Oi||Je),string:new Hn}}function OM(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function la(e,t){var n=e.__data__;return OM(t)?n[typeof t=="string"?"string":"hash"]:n.map}function TM(e){var t=la(this,e).delete(e);return this.size-=t?1:0,t}function MM(e){return la(this,e).get(e)}function CM(e){return la(this,e).has(e)}function $M(e,t){var n=la(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function tn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}tn.prototype.clear=SM,tn.prototype.delete=TM,tn.prototype.get=MM,tn.prototype.has=CM,tn.prototype.set=$M;var AM="Expected a function";function Dl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(AM);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var a=e.apply(this,r);return n.cache=s.set(i,a)||s,a};return n.cache=new(Dl.Cache||tn),n}Dl.Cache=tn;var LM=500;function DM(e){var t=Dl(e,function(r){return n.size===LM&&n.clear(),r}),n=t.cache;return t}var kM=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,RM=/\\(\\)?/g,IM=DM(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(kM,function(n,r,i,s){t.push(i?s.replace(RM,"$1"):r||n)}),t});const NM=IM;function Ti(e){return e==null?"":Af(e)}function Yf(e,t){return Ht(e)?e:Ll(e,t)?[e]:NM(Ti(e))}var PM=1/0;function ca(e){if(typeof e=="string"||na(e))return e;var t=e+"";return t=="0"&&1/e==-PM?"-0":t}function Xf(e,t){t=Yf(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[ca(t[n++])];return n&&n==r?e:void 0}function wt(e,t,n){var r=e==null?void 0:Xf(e,t);return r===void 0?n:r}function kl(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Zf=me?me.isConcatSpreadable:void 0;function UM(e){return Ht(e)||vr(e)||!!(Zf&&e&&e[Zf])}function ua(e,t,n,r,i){var s=-1,a=e.length;for(n||(n=UM),i||(i=[]);++s<a;){var o=e[s];t>0&&n(o)?t>1?ua(o,t-1,n,r,i):kl(i,o):r||(i[i.length]=o)}return i}var BM=Wf(Object.getPrototypeOf,Object);const Rl=BM;var VM="[object Object]",HM=Function.prototype,GM=Object.prototype,Kf=HM.toString,FM=GM.hasOwnProperty,zM=Kf.call(Object);function jM(e){if(!Ue(e)||Pn(e)!=VM)return!1;var t=Rl(e);if(t===null)return!0;var n=FM.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Kf.call(n)==zM}function WM(){this.__data__=new Je,this.size=0}function qM(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function YM(e){return this.__data__.get(e)}function XM(e){return this.__data__.has(e)}var ZM=200;function KM(e,t){var n=this.__data__;if(n instanceof Je){var r=n.__data__;if(!Oi||r.length<ZM-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new tn(r)}return n.set(e,t),this.size=n.size,this}function Ce(e){var t=this.__data__=new Je(e);this.size=t.size}Ce.prototype.clear=WM,Ce.prototype.delete=qM,Ce.prototype.get=YM,Ce.prototype.has=XM,Ce.prototype.set=KM;function QM(e,t){return e&&bi(t,_i(t),e)}function JM(e,t){return e&&bi(t,Ei(t),e)}var Qf=typeof nt=="object"&&nt&&!nt.nodeType&&nt,Jf=Qf&&typeof module=="object"&&module&&!module.nodeType&&module,tC=Jf&&Jf.exports===Qf,tp=tC?Me.Buffer:void 0,ep=tp?tp.allocUnsafe:void 0;function np(e,t){if(t)return e.slice();var n=e.length,r=ep?ep(n):new e.constructor(n);return e.copy(r),r}function eC(e,t){for(var n=-1,r=e==null?0:e.length,i=0,s=[];++n<r;){var a=e[n];t(a,n,e)&&(s[i++]=a)}return s}function rp(){return[]}var nC=Object.prototype,rC=nC.propertyIsEnumerable,ip=Object.getOwnPropertySymbols,iC=ip?function(e){return e==null?[]:(e=Object(e),eC(ip(e),function(t){return rC.call(e,t)}))}:rp;const Il=iC;function sC(e,t){return bi(e,Il(e),t)}var aC=Object.getOwnPropertySymbols,oC=aC?function(e){for(var t=[];e;)kl(t,Il(e)),e=Rl(e);return t}:rp;const sp=oC;function lC(e,t){return bi(e,sp(e),t)}function ap(e,t,n){var r=t(e);return Ht(e)?r:kl(r,n(e))}function Nl(e){return ap(e,_i,Il)}function cC(e){return ap(e,Ei,sp)}var uC=Bn(Me,"DataView");const Pl=uC;var hC=Bn(Me,"Promise");const Ul=hC;var dC=Bn(Me,"Set");const br=dC;var op="[object Map]",fC="[object Object]",lp="[object Promise]",cp="[object Set]",up="[object WeakMap]",hp="[object DataView]",pC=Un(Pl),gC=Un(Oi),mC=Un(Ul),vC=Un(br),yC=Un(Tl),Gn=Pn;(Pl&&Gn(new Pl(new ArrayBuffer(1)))!=hp||Oi&&Gn(new Oi)!=op||Ul&&Gn(Ul.resolve())!=lp||br&&Gn(new br)!=cp||Tl&&Gn(new Tl)!=up)&&(Gn=function(e){var t=Pn(e),n=t==fC?e.constructor:void 0,r=n?Un(n):"";if(r)switch(r){case pC:return hp;case gC:return op;case mC:return lp;case vC:return cp;case yC:return up}return t});const wr=Gn;var xC=Object.prototype,bC=xC.hasOwnProperty;function wC(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&bC.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var _C=Me.Uint8Array;const ha=_C;function Bl(e){var t=new e.constructor(e.byteLength);return new ha(t).set(new ha(e)),t}function EC(e,t){var n=t?Bl(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var SC=/\w*$/;function OC(e){var t=new e.constructor(e.source,SC.exec(e));return t.lastIndex=e.lastIndex,t}var dp=me?me.prototype:void 0,fp=dp?dp.valueOf:void 0;function TC(e){return fp?Object(fp.call(e)):{}}function pp(e,t){var n=t?Bl(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var MC="[object Boolean]",CC="[object Date]",$C="[object Map]",AC="[object Number]",LC="[object RegExp]",DC="[object Set]",kC="[object String]",RC="[object Symbol]",IC="[object ArrayBuffer]",NC="[object DataView]",PC="[object Float32Array]",UC="[object Float64Array]",BC="[object Int8Array]",VC="[object Int16Array]",HC="[object Int32Array]",GC="[object Uint8Array]",FC="[object Uint8ClampedArray]",zC="[object Uint16Array]",jC="[object Uint32Array]";function WC(e,t,n){var r=e.constructor;switch(t){case IC:return Bl(e);case MC:case CC:return new r(+e);case NC:return EC(e,n);case PC:case UC:case BC:case VC:case HC:case GC:case FC:case zC:case jC:return pp(e,n);case $C:return new r;case AC:case kC:return new r(e);case LC:return OC(e);case DC:return new r;case RC:return TC(e)}}function gp(e){return typeof e.constructor=="function"&&!sa(e)?PO(Rl(e)):{}}var qC="[object Map]";function YC(e){return Ue(e)&&wr(e)==qC}var mp=xr&&xr.isMap,XC=mp?$l(mp):YC;const ZC=XC;var KC="[object Set]";function QC(e){return Ue(e)&&wr(e)==KC}var vp=xr&&xr.isSet,JC=vp?$l(vp):QC;const t2=JC;var e2=1,n2=2,r2=4,yp="[object Arguments]",i2="[object Array]",s2="[object Boolean]",a2="[object Date]",o2="[object Error]",xp="[object Function]",l2="[object GeneratorFunction]",c2="[object Map]",u2="[object Number]",bp="[object Object]",h2="[object RegExp]",d2="[object Set]",f2="[object String]",p2="[object Symbol]",g2="[object WeakMap]",m2="[object ArrayBuffer]",v2="[object DataView]",y2="[object Float32Array]",x2="[object Float64Array]",b2="[object Int8Array]",w2="[object Int16Array]",_2="[object Int32Array]",E2="[object Uint8Array]",S2="[object Uint8ClampedArray]",O2="[object Uint16Array]",T2="[object Uint32Array]",_t={};_t[yp]=_t[i2]=_t[m2]=_t[v2]=_t[s2]=_t[a2]=_t[y2]=_t[x2]=_t[b2]=_t[w2]=_t[_2]=_t[c2]=_t[u2]=_t[bp]=_t[h2]=_t[d2]=_t[f2]=_t[p2]=_t[E2]=_t[S2]=_t[O2]=_t[T2]=!0,_t[o2]=_t[xp]=_t[g2]=!1;function da(e,t,n,r,i,s){var a,o=t&e2,l=t&n2,c=t&r2;if(n&&(a=i?n(e,r,i,s):n(e)),a!==void 0)return a;if(!ve(e))return e;var u=Ht(e);if(u){if(a=wC(e),!o)return kf(e,a)}else{var d=wr(e),h=d==xp||d==l2;if(yr(e))return np(e,o);if(d==bp||d==yp||h&&!i){if(a=l||h?{}:gp(e),!o)return l?lC(e,JM(a,e)):sC(e,QM(a,e))}else{if(!_t[d])return i?e:{};a=WC(e,d,o)}}s||(s=new Ce);var f=s.get(e);if(f)return f;s.set(e,a),t2(e)?e.forEach(function(g){a.add(da(g,t,n,g,e,s))}):ZC(e)&&e.forEach(function(g,v){a.set(v,da(g,t,n,v,e,s))});var p=c?l?cC:Nl:l?Ei:_i,m=u?void 0:p(e);return XO(m||e,function(g,v){m&&(v=g,g=e[v]),Rf(a,v,da(g,t,n,v,e,s))}),a}var M2=1,C2=4;function en(e){return da(e,M2|C2)}var $2="__lodash_hash_undefined__";function A2(e){return this.__data__.set(e,$2),this}function L2(e){return this.__data__.has(e)}function Mi(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new tn;++t<n;)this.add(e[t])}Mi.prototype.add=Mi.prototype.push=A2,Mi.prototype.has=L2;function wp(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function _p(e,t){return e.has(t)}var D2=1,k2=2;function Ep(e,t,n,r,i,s){var a=n&D2,o=e.length,l=t.length;if(o!=l&&!(a&&l>o))return!1;var c=s.get(e),u=s.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,f=n&k2?new Mi:void 0;for(s.set(e,t),s.set(t,e);++d<o;){var p=e[d],m=t[d];if(r)var g=a?r(m,p,d,t,e,s):r(p,m,d,e,t,s);if(g!==void 0){if(g)continue;h=!1;break}if(f){if(!wp(t,function(v,y){if(!_p(f,y)&&(p===v||i(p,v,n,r,s)))return f.push(y)})){h=!1;break}}else if(!(p===m||i(p,m,n,r,s))){h=!1;break}}return s.delete(e),s.delete(t),h}function R2(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function Vl(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var I2=1,N2=2,P2="[object Boolean]",U2="[object Date]",B2="[object Error]",V2="[object Map]",H2="[object Number]",G2="[object RegExp]",F2="[object Set]",z2="[object String]",j2="[object Symbol]",W2="[object ArrayBuffer]",q2="[object DataView]",Sp=me?me.prototype:void 0,Hl=Sp?Sp.valueOf:void 0;function Y2(e,t,n,r,i,s,a){switch(n){case q2:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case W2:return!(e.byteLength!=t.byteLength||!s(new ha(e),new ha(t)));case P2:case U2:case H2:return xi(+e,+t);case B2:return e.name==t.name&&e.message==t.message;case G2:case z2:return e==t+"";case V2:var o=R2;case F2:var l=r&I2;if(o||(o=Vl),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=N2,a.set(e,t);var u=Ep(o(e),o(t),r,i,s,a);return a.delete(e),u;case j2:if(Hl)return Hl.call(e)==Hl.call(t)}return!1}var X2=1,Z2=Object.prototype,K2=Z2.hasOwnProperty;function Q2(e,t,n,r,i,s){var a=n&X2,o=Nl(e),l=o.length,c=Nl(t),u=c.length;if(l!=u&&!a)return!1;for(var d=l;d--;){var h=o[d];if(!(a?h in t:K2.call(t,h)))return!1}var f=s.get(e),p=s.get(t);if(f&&p)return f==t&&p==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=a;++d<l;){h=o[d];var v=e[h],y=t[h];if(r)var x=a?r(y,v,h,t,e,s):r(v,y,h,e,t,s);if(!(x===void 0?v===y||i(v,y,n,r,s):x)){m=!1;break}g||(g=h=="constructor")}if(m&&!g){var S=e.constructor,_=t.constructor;S!=_&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof _=="function"&&_ instanceof _)&&(m=!1)}return s.delete(e),s.delete(t),m}var J2=1,Op="[object Arguments]",Tp="[object Array]",fa="[object Object]",t$=Object.prototype,Mp=t$.hasOwnProperty;function e$(e,t,n,r,i,s){var a=Ht(e),o=Ht(t),l=a?Tp:wr(e),c=o?Tp:wr(t);l=l==Op?fa:l,c=c==Op?fa:c;var u=l==fa,d=c==fa,h=l==c;if(h&&yr(e)){if(!yr(t))return!1;a=!0,u=!1}if(h&&!u)return s||(s=new Ce),a||aa(e)?Ep(e,t,n,r,i,s):Y2(e,t,l,n,r,i,s);if(!(n&J2)){var f=u&&Mp.call(e,"__wrapped__"),p=d&&Mp.call(t,"__wrapped__");if(f||p){var m=f?e.value():e,g=p?t.value():t;return s||(s=new Ce),i(m,g,n,r,s)}}return h?(s||(s=new Ce),Q2(e,t,n,r,i,s)):!1}function pa(e,t,n,r,i){return e===t?!0:e==null||t==null||!Ue(e)&&!Ue(t)?e!==e&&t!==t:e$(e,t,n,r,pa,i)}var n$=1,r$=2;function i$(e,t,n,r){var i=n.length,s=i,a=!r;if(e==null)return!s;for(e=Object(e);i--;){var o=n[i];if(a&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<s;){o=n[i];var l=o[0],c=e[l],u=o[1];if(a&&o[2]){if(c===void 0&&!(l in e))return!1}else{var d=new Ce;if(r)var h=r(c,u,l,e,t,d);if(!(h===void 0?pa(u,c,n$|r$,r,d):h))return!1}}return!0}function Cp(e){return e===e&&!ve(e)}function s$(e){for(var t=_i(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Cp(i)]}return t}function $p(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function a$(e){var t=s$(e);return t.length==1&&t[0][2]?$p(t[0][0],t[0][1]):function(n){return n===e||i$(n,e,t)}}function o$(e,t){return e!=null&&t in Object(e)}function l$(e,t,n){t=Yf(t,e);for(var r=-1,i=t.length,s=!1;++r<i;){var a=ca(t[r]);if(!(s=e!=null&&n(e,a)))break;e=e[a]}return s||++r!=i?s:(i=e==null?0:e.length,!!i&&Cl(i)&&Ml(a,i)&&(Ht(e)||vr(e)))}function c$(e,t){return e!=null&&l$(e,t,o$)}var u$=1,h$=2;function d$(e,t){return Ll(e)&&Cp(t)?$p(ca(e),t):function(n){var r=wt(n,e);return r===void 0&&r===t?c$(n,e):pa(t,r,u$|h$)}}function f$(e){return function(t){return t==null?void 0:t[e]}}function p$(e){return function(t){return Xf(t,e)}}function g$(e){return Ll(e)?f$(ca(e)):p$(e)}function ga(e){return typeof e=="function"?e:e==null?El:typeof e=="object"?Ht(e)?d$(e[0],e[1]):a$(e):g$(e)}function m$(e){return function(t,n,r){for(var i=-1,s=Object(t),a=r(t),o=a.length;o--;){var l=a[e?o:++i];if(n(s[l],l,s)===!1)break}return t}}var v$=m$();const Ap=v$;function Gl(e,t,n){(n!==void 0&&!xi(e[t],n)||n===void 0&&!(t in e))&&ia(e,t,n)}function Fl(e){return Ue(e)&&Vn(e)}function zl(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function y$(e){return bi(e,Ei(e))}function x$(e,t,n,r,i,s,a){var o=zl(e,n),l=zl(t,n),c=a.get(l);if(c){Gl(e,n,c);return}var u=s?s(o,l,n+"",e,t,a):void 0,d=u===void 0;if(d){var h=Ht(l),f=!h&&yr(l),p=!h&&!f&&aa(l);u=l,h||f||p?Ht(o)?u=o:Fl(o)?u=kf(o):f?(d=!1,u=np(l,!0)):p?(d=!1,u=pp(l,!0)):u=[]:jM(l)||vr(l)?(u=o,vr(o)?u=y$(o):(!ve(o)||Sl(o))&&(u=gp(l))):d=!1}d&&(a.set(l,u),i(u,l,r,s,a),a.delete(l)),Gl(e,n,u)}function Lp(e,t,n,r,i){e!==t&&Ap(t,function(s,a){if(i||(i=new Ce),ve(s))x$(e,t,a,n,Lp,r,i);else{var o=r?r(zl(e,a),s,a+"",e,t,i):void 0;o===void 0&&(o=s),Gl(e,a,o)}},Ei)}function b$(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function w$(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var _$="[object Map]",E$="[object Set]",S$=Object.prototype,O$=S$.hasOwnProperty;function $e(e){if(e==null)return!0;if(Vn(e)&&(Ht(e)||typeof e=="string"||typeof e.splice=="function"||yr(e)||aa(e)||vr(e)))return!e.length;var t=wr(e);if(t==_$||t==E$)return!e.size;if(sa(e))return!qf(e).length;for(var n in e)if(O$.call(e,n))return!1;return!0}var T$=oT(function(e,t,n){Lp(e,t,n)});const Z=T$;var M$=1/0,C$=br&&1/Vl(new br([,-0]))[1]==M$?function(e){return new br(e)}:BO;const $$=C$;var A$=200;function Dp(e,t,n){var r=-1,i=tT,s=e.length,a=!0,o=[],l=o;if(n)a=!1,i=b$;else if(s>=A$){var c=t?null:$$(e);if(c)return Vl(c);a=!1,i=_p,l=new Mi}else l=t?[]:o;t:for(;++r<s;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,a&&d===d){for(var h=l.length;h--;)if(l[h]===d)continue t;t&&l.push(d),o.push(u)}else i(l,d,n)||(l!==o&&l.push(d),o.push(u))}return o}var L$=Nf(function(e){var t=w$(e);return Fl(t)&&(t=void 0),Dp(ua(e,1,Fl,!0),ga(t))});const D$=L$;function Ci(e){return e&&e.length?Dp(e):[]}const ne="cds",nn={opacity:{unselected:.05,selected:.4}},gn={ticks:{number:7,rotateIfSmallerThan:30,verticalSpaceRatio:2.5,horizontalSpaceRatio:3.5},ratio:{reference:"value",compareTo:"marker"},paddingRatio:.1,hover:{rectanglePadding:4}},_r={duration:1e3,ease:nh,zoomLevel:3},Er={circles:{fillOpacity:.3,hover:{stroke:"#FFF"}},padding:{mainGroup:4,children:2},hierarchyLevel:2},kp={pairingOptions:{"1-color":4,"2-color":5,"3-color":5,"4-color":3,"5-color":2,"14-color":1}},ye={circle:{radius:4,opacity:{hovered:1,default:.3}},box:{opacity:{hovered:.5,default:.3}},strokeWidth:{default:1,thicker:2}},k$={defaultBins:10},Ct={items:{status:{ACTIVE:1,DISABLED:0},horizontalSpace:12,verticalSpace:24,textYOffset:8,spaceAfter:4},checkbox:{radius:6.5},radius:{iconData:[{cx:7,cy:7,r:6.5},{cx:7,cy:10,r:3.5}],fill:null,stroke:"#8c8c8c"},line:{yPosition:6,width:24,strokeWidth:1.4,fill:null,stroke:"#999999"},area:{width:24,height:14,fill:"#6f6f6f",stroke:null},size:{iconData:[{width:23,height:12},{width:13,height:6}],fill:null,stroke:"#8D8D8D"},quartile:{iconData:[{x:0,y:0,width:24,height:13},{x:11,y:4,width:1,height:4}]},zoom:{iconData:[{x:0,y:0,width:12,height:12}],color:"#8D8D8D"},color:{barWidth:300,barHeight:8,axisYTranslation:10}},rn={opacity:{unselected:.3,selected:1},weight:{selected:2,unselected:1}},Gt={statusBar:{paddingRight:5},status:{indicatorSize:16,paddingLeft:15},total:{paddingLeft:36,paddingRight:24},height:{default:8,proportional:16},dividerWidth:2},Et={radiusOffset:-15,innerRadius:2,padAngle:.007,hoverArc:{outerRadiusOffset:3},xOffset:30,yOffset:20,yOffsetCallout:10,callout:{minSliceDegree:5,offsetX:15,offsetY:12,horizontalLineLength:8,textMargin:2}},Fn={opacity:{unselected:.1,selected:.3},xLabelPadding:10,yLabelPadding:8,yTicksNumber:4,minRange:10,xAxisRectHeight:50,dotsRadius:5},Ae={nodeWidth:4,nodeHoveredWidth:8,minNodePadding:24,opacity:{unfocus:.3,default:.8,selected:1}},Rp={minCellDividerDimension:16,chartPadding:.5},Ip={default:{size:24}},R$={horizontalOffset:10},Np={default:{duration:300},pie_slice_mouseover:{duration:100},pie_chart_titles:{duration:375},graph_element_mouseover_fill_update:{duration:100},graph_element_mouseout_fill_update:{duration:100}},ce={height:{[De.GRAPH_VIEW]:32,[De.SLIDER_VIEW]:10},spacerHeight:8,handleWidth:5,handleBarWidth:1,handleBarHeight:12},I$=[{type:Nt.RADIUS,name:"Radius"},{type:Nt.AREA,name:"Poor area"},{type:Nt.AREA,name:"Satisfactory area"},{type:Nt.AREA,name:"Great area"},{type:Nt.QUARTILE,name:"Quartiles"}],Sr={type:be.END_LINE,threshold:16,numCharacter:14},N$={enabled:!0,position:kr.BOTTOM,clickable:!0,truncation:Sr,alignment:Rt.LEFT,order:null,additionalItems:[]},P$={x:{enabled:!0,numberOfTicks:15,alignWithAxisTicks:!1},y:{enabled:!0,numberOfTicks:5,alignWithAxisTicks:!1}},U$={enabled:!0},Pp={enabled:!0,showTotal:!0,truncation:Sr,groupLabel:"Group"},Up={top:{visible:!0,includeZero:!0,truncation:Sr},bottom:{visible:!0,includeZero:!0,truncation:Sr},left:{visible:!0,includeZero:!0,truncation:Sr},right:{visible:!0,includeZero:!0,truncation:Sr}},ma={addSpaceOnEdges:1,showDayName:!1,localeObject:Ef,timeIntervalFormats:{"15seconds":{primary:"MMM d, pp",secondary:"pp"},minute:{primary:"MMM d, p",secondary:"p"},"30minutes":{primary:"MMM d, p",secondary:"p"},hourly:{primary:"MMM d, hh a",secondary:"hh a"},daily:{primary:"MMM d",secondary:"d"},weekly:{primary:"eee, MMM d",secondary:"eee"},monthly:{primary:"MMM yyyy",secondary:"MMM"},quarterly:{primary:"QQQ ''yy",secondary:"QQQ"},yearly:{primary:"yyyy",secondary:"yyyy"}}},B$=typeof document<"u"&&(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled),Yt={width:null,height:null,resizable:!0,theme:ou.WHITE,tooltip:Pp,legend:N$,style:{prefix:"cc"},data:{groupMapsTo:"group",loading:!1,selectedGroups:[]},color:{scale:null,pairing:{numberOfVariants:null,option:1},gradient:{enabled:!1}},toolbar:{enabled:!0,numberOfIcons:3,controls:[{type:Mt.SHOW_AS_DATATABLE},...B$?[{type:Mt.MAKE_FULLSCREEN}]:[],{type:Mt.EXPORT_CSV},{type:Mt.EXPORT_PNG},{type:Mt.EXPORT_JPG}]}},Bp=Z({},Yt,{thematic:{projection:Fe.geoNaturalEarth1}}),$i=Z({},Yt,{axes:Up,timeScale:ma,grid:P$,ruler:U$,zoomBar:{zoomRatio:.4,minZoomRatio:.01,top:{enabled:!1,type:De.GRAPH_VIEW}}}),zn=Z({},$i,{bars:{maxWidth:16,spacingFactor:.25},timeScale:Z(ma,{addSpaceOnEdges:1})}),V$=Z({},zn,{}),H$=Z({},zn,{}),G$=Z({},zn,{bars:Z({},zn.bars,{dividerSize:1.5})}),F$=Z({},zn,{}),jl=Z({},$i,{points:{radius:4,fillOpacity:.3,filled:!0,enabled:!0}}),z$=jl,Vp=Z({},jl,{points:{radius:3,filled:!1,enabled:!0}}),Hp=Z({},Vp,{timeScale:Z(ma,{addSpaceOnEdges:0})}),j$=Hp,W$=Z({},$i,{bubble:{radiusMapsTo:"radius",radiusLabel:"Radius",radiusRange:e=>{const t=Math.min(e.width,e.height);return[t*3/400,t*25/400]},fillOpacity:.2,enabled:!0},points:{filled:!0},legend:{additionalItems:[{type:Nt.RADIUS,name:"Radius"}]}}),q$=Z({},$i,{bullet:{performanceAreaTitles:["Poor","Satisfactory","Great"]},grid:{x:{enabled:!1},y:{enabled:!1}},legend:{additionalItems:[{type:Nt.AREA,name:"Poor area"},{type:Nt.AREA,name:"Satisfactory area"},{type:Nt.AREA,name:"Great area"},{type:Nt.QUARTILE,name:"Quartiles"}]}}),Y$=Z({},zn,{bars:{dividerSize:1.5},timeScale:Z(ma,{addSpaceOnEdges:0})}),X$=Z({},Yt,{tooltip:Z({},Pp,{wordLabel:"Word",valueLabel:"Value"}),wordCloud:{fontSizeMapsTo:"value",fontSizeRange:e=>{const t=Math.min(e.width,e.height);return[t*20/400,t*75/400]},wordMapsTo:"word"}}),Gp=Z({},Yt,{pie:{labels:{formatter:null,enabled:!0},alignment:Rt.LEFT,sortFunction:null,valueMapsTo:"value"}}),Z$=Z({},Yt,{legend:{enabled:!1},gauge:{type:Xn.SEMI,arcWidth:16,deltaArrow:{size:e=>e/8,enabled:!0},showPercentageSymbol:!0,status:null,numberSpacing:10,deltaFontSize:e=>e/8,valueFontSize:e=>e/2.5,numberFormatter:e=>Number(e.toFixed(2))%1!==0?e.toFixed(2).toLocaleString():e.toFixed().toLocaleString(),alignment:Rt.LEFT}}),K$=Z({},Gp,{donut:{center:{numberFontSize:e=>`${Math.min(e/100*24,24)}px`,titleFontSize:e=>`${Math.min(e/100*15,15)}px`,titleYPosition:e=>Math.min(e/80*20,20),numberFormatter:e=>Math.floor(e).toLocaleString()},alignment:Rt.LEFT}}),Fp=Z({},Yt,{legend:{enabled:!1,clickable:!1},meter:{showLabels:!0,proportional:null,statusBar:{percentageIndicator:{enabled:!0}}}}),Q$=Z({},Fp,{legend:{enabled:!0}}),J$=Z({},Yt,{radar:{axes:{angle:"key",value:"value"},alignment:Rt.LEFT},tooltip:{gridline:{enabled:!0},valueFormatter:e=>e??"N/A"}}),tA=Z({},zn,{comboChartTypes:[]}),eA=Z({tree:{type:Ba.TREE}},Yt,{}),nA=Z({},Yt,{data:Z(Yt.data,{groupMapsTo:"name"})}),rA=Z({},Yt,Er,{data:Z(Yt.data,{groupMapsTo:"name"})}),iA=Z({},Yt,{alluvial:{data:Z(Yt.data,{groupMapsTo:"source"}),nodeAlignment:Rt.CENTER,nodePadding:24,monochrome:!1,nodes:[]}}),sA=Z({},Yt,{axes:Up,heatmap:{divider:{state:Ir.AUTO},colorLegend:{type:"linear"}}}),aA=Z({},Bp,{choropleth:{colorLegend:{type:"linear"}}}),xt={alluvialChart:iA,areaChart:Hp,axisChart:$i,boxplotChart:F$,bubbleChart:W$,bulletChart:q$,chart:Yt,circlePackChart:rA,choroplethChart:aA,comboChart:tA,donutChart:K$,gaugeChart:Z$,groupedBarChart:H$,heatmapChart:sA,histogramChart:Y$,lineChart:Vp,lollipopChart:z$,meterChart:Fp,pieChart:Gp,proportionalMeterChart:Q$,radarChart:J$,scatterChart:jl,simpleBarChart:V$,stackedAreaChart:j$,stackedBarChart:G$,thematicChart:Bp,treeChart:eA,treemapChart:nA,wordCloudChart:X$};function oA(e,t,n){let r=null;return function(...i){const s=this;s.mousePosition=Sn(i[0],n),clearTimeout(r),r=setTimeout(function(){e.apply(s,i)},t)}}function Tt(e,t){var n;const r=en(e),i=Object.keys(t.axes||{});(n=t==null?void 0:t.toolbar)!=null&&n.controls&&delete r.toolbar.controls,i.length===0&&delete r.axes;for(const s in r.axes)if(i.includes(s)){const a=t.axes[s];if((a.primary||a.secondary)&&console.warn("`primary` & `secondary` are no longer needed for axis configurations. Read more here https://carbon-design-system.github.io/carbon-charts/?path=/story/docs-tutorials--tabular-data-format"),a.mapsTo==null){const l=a.scaleType;l==null?a.mapsTo="value":l===W.TIME?a.mapsTo="date":l===W.LABELS&&(a.mapsTo="key")}}else delete r.axes[s];return Wl(r,t),Z(r,t)}function sn(e){if(!e)return;const t=/translate\([0-9]+\.?[0-9]*,[0-9]+\.?[0-9]*\)/,n=e.getAttribute("transform").match(t);if(!n)return null;if(n[0]){const r=n[0].replace(/translate\(/,"").replace(/\)/,"").split(",");return{tx:r[0],ty:r[1]}}return null}function Ai(e){const t=/\(([^)]+)\)/.exec(e);if(t&&t.length>1){const n=t[1].split(",");if(n.length>1)return{x:parseFloat(n[0]),y:parseFloat(n[1])}}return{x:0,y:0}}function zp(e,t,n="value"){const r=e/t.reduce((i,s)=>i+s[n],0)*100;return r%1!==0?parseFloat(r.toFixed(1)):r}function Li(e,t,n){if(n>e.length)return e;if(t===be.MID_LINE)return e.substr(0,n/2)+"..."+e.substr(-n/2);if(t===be.FRONT_LINE)return"..."+e.substr(-n);if(t===be.END_LINE)return e.substr(0,n)+"..."}function Wl(e,t){const n=b(e,"legend","additionalItems"),r=b(t,"legend","additionalItems");if(n&&r){const i=r.map(o=>o.type),s=n.map(o=>o.type),a=I$.filter(o=>s.includes(o.type)&&!i.includes(o.type));e.legend.additionalItems=a,t.legend.additionalItems=D$(a,r,"name")}}const b=(e,...t)=>{let n=e;if(n){for(const r of t)if(n[r]!==null&&n[r]!==void 0)n=n[r];else return null;return n}return null},jp=(e,t)=>t===Bt.HORIZONTAL?{y0:e.x0,y1:e.x1,x0:e.y0,x1:e.y1}:e,Zt=(e,t)=>{const{x0:n,x1:r,y0:i,y1:s}=jp(e,t);return`M${n},${i}L${n},${s}L${r},${s}L${r},${i}L${n},${i}`};function an(e,t,n){return n===Bt.VERTICAL?[e,t]:[t,e]}var Wp=(e=>(e["15seconds"]="15seconds",e.minute="minute",e["30minutes"]="30minutes",e.hourly="hourly",e.daily="daily",e.weekly="weekly",e.monthly="monthly",e.quarterly="quarterly",e.yearly="yearly",e))(Wp||{});const ql=[["15seconds",15*1e3],["minute",60*1e3],["30minutes",30*60*1e3],["hourly",60*60*1e3],["daily",24*60*60*1e3],["monthly",30*24*60*60*1e3],["quarterly",3*30*24*60*60*1e3],["yearly",12*30*24*60*60*1e3]];function qp(e,t,n,r,i){const s=t===0,a=Number(mr(new Date(e),"c"))===2,o=Number(mr(new Date(e),"q"))===1,l=t!==0?n[t-1]:null;switch(r){case"15seconds":return s||ya(e)||Di(e,l)||mn(e);case"minute":return s||ya(e)||Di(e,l)||mn(e);case"30minutes":return s||ya(e)||Di(e,l)||mn(e);case"hourly":return s||ya(e)||Di(e,l)||mn(e);case"daily":return i?s||a||mn(e):s||Di(e,l)||mn(e);case"weekly":return s||a||mn(e);case"monthly":return s||mn(e);case"quarterly":return s||o;case"yearly":return!1;default:throw new Error(`${r} is not a valid time interval.`)}}function Yl(e,t,n,r,i){const s=i.showDayName,a=r==="daily"&&s?"weekly":r,o=new Date(e),l=b(i,"timeIntervalFormats")[a],c=b(l,"primary"),u=b(l,"secondary");let d=qp(e,t,n,r,s)?c:u;r==="15seconds"&&o.getMilliseconds()!==0&&(d=d.replace("pp","h:mm:ss.SSS a"));const h=i.localeObject;return mr(o,d,{locale:h})}function va(e){const t=new Date(e);return{M:t.getMonth()+1,d:t.getDate(),H:t.getHours(),m:t.getMinutes(),s:t.getSeconds()}}function lA(e){if(e)return e.slice(1).map((t,n)=>t-e[n])}function cA(e){const t=ql.reduce((n,[,r],i)=>{const s=ql[n][1],a=Math.abs(s-e),o=Math.abs(r-e);return a<o?n:i},0);return ql[t][0]}function Xl(e,t){if(Wp[t])return t;if(e.length===1)return"15seconds";const n=lA(e),r=un(n);return cA(r)}function ya(e){const{s:t,m:n,H:r}=va(e);return r===0&&n===0&&t===0}function Di(e,t){const n=va(e).M,r=va(t).M;return n!==r}function mn(e){const{M:t,d:n,s:r,m:i,H:s}=va(e);return t===1&&n===1&&s===0&&i===0&&r===0}function Yp(e){return e===void 0?"":e.toISOString()}function Xp(e){const t=we(e,r=>r.value),n=Te().domain(t).nice().domain();if(n[0]>0)n[0]=0;else if(n[0]===0&&n[1]===0)return[0,1];return n[0]<0&&n[1]>0&&(Math.abs(n[0])>n[1]?n[1]=Math.abs(n[0]):n[0]=-n[1]),n}function Zp(e,t){const n=b(t,"gradient","colors"),r=!$e(n);let i=b(t,"pairing","option");const s=Xp(e),a=s[0]<0&&s[1]>0?"diverge":"mono";(i<1&&i>4&&a==="mono"||i<1&&i>2&&a==="diverge")&&(i=1);const o=r?n:[];if(!r){const l=a==="diverge"?17:11;for(let c=1;c<l+1;c++)o.push(`fill-${a}-${i}-${c}`)}return tl().domain(s).range(o)}var it=(e=>(e.GRAPHICS_DOCUMENT="graphics-document",e.GRAPHICS_OBJECT="graphics-object",e.GRAPHICS_SYMBOL="graphics-symbol",e.GROUP="group",e.DOCUMENT="document",e.CHECKBOX="checkbox",e.BUTTON="button",e.MENU="menu",e.MENU_ITEM="menuitem",e.IMG="img",e))(it||{});function uA(e,t){return e&&Ap(e,t,_i)}function hA(e,t){return function(n,r){if(n==null)return n;if(!Vn(n))return e(n,r);for(var i=n.length,s=t?i:-1,a=Object(n);(t?s--:++s<i)&&r(a[s],s,a)!==!1;);return n}}var dA=hA(uA);const Zl=dA;function fA(e,t,n,r){for(var i=-1,s=e==null?0:e.length;++i<s;){var a=e[i];t(r,a,n(a),e)}return r}function pA(e,t,n,r){return Zl(e,function(i,s,a){t(r,i,n(i),a)}),r}function gA(e,t){return function(n,r){var i=Ht(n)?fA:pA,s=t?t():{};return i(n,e,ga(r),s)}}function mA(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}var vA=Object.prototype,yA=vA.hasOwnProperty,xA=gA(function(e,t,n){yA.call(e,n)?e[n].push(t):ia(e,n,[t])});const bA=xA;class Be{constructor(t){this.state={options:{}},this.colorScale={},this.colorClassNames={},this.services=t}getAllDataFromDomain(t){if(!this.getData())return null;const n=this.getOptions();let r=this.getData();const i=this.getDataGroups(),{groupMapsTo:s}=b(n,"data"),a=b(n,"axes");return t&&(r=r.filter(o=>t.includes(o[s]))),a&&Object.keys(a).forEach(o=>{const l=a[o].mapsTo,c=a[o].scaleType;if((c===W.LINEAR||c===W.LOG)&&(r=r.map(u=>({...u,[l]:u[l]===null?u[l]:Number(u[l])}))),l&&a[o].domain)if(c===W.LABELS)r=r.filter(u=>a[o].domain.includes(u[l]));else{const[u,d]=a[o].domain;r=r.filter(h=>!(l in h)||h[l]>=u&&h[l]<=d)}}),r.filter(o=>i.find(l=>l.name===o[s]))}getDisplayData(t){if(!this.get("data"))return null;const{ACTIVE:n}=Ct.items.status,r=this.getDataGroups(t),{groupMapsTo:i}=this.getOptions().data;return this.getAllDataFromDomain(t).filter(s=>r.find(a=>a.name===s[i]&&a.status===n))}getData(){return this.get("data")}isDataEmpty(){return!this.getData().length}setData(t){const n=this.sanitize(en(t)),r=this.generateDataGroups(n);return this.set({data:n,dataGroups:r}),n}getDataGroups(t){return b(this.getOptions(),"data","loading")?[]:t?this.get("dataGroups").filter(n=>t.includes(n.name)):this.get("dataGroups")}getActiveDataGroups(t){const{ACTIVE:n}=Ct.items.status;return this.getDataGroups(t).filter(r=>r.status===n)}getDataGroupNames(t){return this.getDataGroups(t).map(n=>n.name)}getActiveDataGroupNames(t){return this.getActiveDataGroups(t).map(n=>n.name)}aggregateBinDataByGroup(t){return bA(t,"group")}getBinConfigurations(){const t=this.getDisplayData(),n=this.getOptions(),r=this.services.cartesianScales.getMainXAxisPosition(),i=this.services.cartesianScales.getDomainIdentifier(),s=n.axes[r],{groupMapsTo:a}=n.data,{bins:o=k$.defaultBins}=s,l=Array.isArray(o),c=Bv().value(f=>f[i]).thresholds(o)(t);if(l)c[c.length-1].x1=o[o.length-1];else{const f=c[0].x1-c[0].x0;c[c.length-1].x1=+c[c.length-1].x0+f}const u=l?[o[0],o[o.length-1]]:[c[0].x0,c[c.length-1].x1],d=Array.from(new Set(t.map(f=>f[a]))),h=[];return c.forEach(f=>{const p=`${f.x0}-${f.x1}`,m=this.aggregateBinDataByGroup(f);d.forEach(g=>{h.push({group:g,key:p,value:m[g]||0,bin:f.x0})})}),{bins:c,binsDomain:u}}getBinnedStackedData(){const t=this.getOptions(),{groupMapsTo:n}=t.data,r=this.getActiveDataGroupNames(),{bins:i}=this.getBinConfigurations(),s=this.getDataValuesGroupedByKeys({bins:i});return bl().keys(r)(s).map((a,o)=>Object.keys(a).filter(l=>!isNaN(l)).map(l=>{const c=a[l];return c[n]=r[o],c}))}getGroupedData(t){const n=this.getDisplayData(t),r={},{groupMapsTo:i}=this.getOptions().data;return n.map(s=>{const a=s[i];r[a]!==null&&r[a]!==void 0?r[a].push(s):r[a]=[s]}),Object.keys(r).map(s=>({name:s,data:r[s]}))}getStackKeys({bins:t=null,groups:n=null}={bins:null,groups:null}){const r=this.getOptions(),i=this.getDisplayData(n);let s;t?s=t.map(l=>`${l.x0}-${l.x1}`):s=Ci(i.map(l=>{const c=this.services.cartesianScales.getDomainIdentifier(l);return l[c]instanceof Date?Yp(l[c]):l[c]&&typeof l[c].toString=="function"?l[c].toString():l[c]}));const a=this.services.cartesianScales.domainAxisPosition,o=r.axes[a].scaleType;return o===W.TIME?s.sort((l,c)=>{const u=new Date(l),d=new Date(c);return u-d}):(o===W.LOG||o===W.LINEAR)&&s.sort((l,c)=>l-c),s}getDataValuesGroupedByKeys({bins:t=null,groups:n=null}){const r=this.getOptions(),{groupMapsTo:i}=r.data,s=this.getDisplayData(n),a=this.getDataGroupNames(),o=this.getStackKeys({bins:t,groups:n});return t?o.map(l=>{const[c,u]=l.split("-"),d={x0:c,x1:u},h=t.find(f=>f.x0.toString()===c.toString());return a.forEach(f=>{d[f]=h.filter(p=>p[i]===f).length}),d}):o.map(l=>{const c={sharedStackKey:l};return a.forEach(u=>{const d=s.find(f=>{const p=this.services.cartesianScales.getDomainIdentifier(f);return f[i]===u&&Object.prototype.hasOwnProperty.call(f,p)&&(f[p]instanceof Date?Yp(f[p])===l:f[p].toString()===l)}),h=this.services.cartesianScales.getRangeIdentifier(c);c[u]=d?d[h]:null}),c})}getStackedData({percentage:t=!1,groups:n=null,divergent:r=!1}){const i=this.getOptions(),{groupMapsTo:s}=i.data,a=this.getActiveDataGroupNames(n),o=this.getDataValuesGroupedByKeys({groups:n});if(t){const l=mA(o.map(c=>[c.sharedStackKey,0]));o.forEach(c=>{a.forEach(u=>{l[c.sharedStackKey]+=c[u]})}),o.forEach(c=>{a.forEach(u=>{const d=l[c.sharedStackKey];l[c.sharedStackKey]?c[u]=c[u]/d*100:c[u]=0})})}return(r?bl().offset(jE):bl()).keys(a)(o).map((l,c)=>Object.keys(l).filter(u=>!isNaN(u)).map(u=>{const d=l[u];return d[s]=a[c],d}))}getOptions(){return this.state.options}set(t,n){this.state=Object.assign({},this.state,t);const r=Object.assign({skipUpdate:!1,animate:!0},n);r.skipUpdate||this.update(r.animate)}get(t){return t?this.state[t]:this.state}setOptions(t){const n=this.getOptions();Wl(n,t),this.set({options:Z(n,t)})}update(t=!0){this.getDisplayData()&&(this.updateAllDataGroups(),this.setCustomColorScale(),this.setColorClassNames(),this.services.events.dispatchEvent(O.Model.UPDATE,{animate:t}))}toggleDataLabel(t){const{ACTIVE:n,DISABLED:r}=Ct.items.status,i=this.getDataGroups(),s=i.some(c=>c.status===r),a=i.filter(c=>c.status===n);if(s)if(a.length===1&&a[0].name===t)i.forEach((c,u)=>{i[u].status=n});else{const c=i.findIndex(u=>u.name===t);i[c].status=i[c].status===r?n:r}else i.forEach((c,u)=>{i[u].status=c.name===t?n:r});const o=i.filter(c=>c.status===n),l=this.getOptions();i.some(c=>c.status===r)?l.data.selectedGroups=o.map(c=>c.name):l.data.selectedGroups=[],this.services.events.dispatchEvent(O.Legend.ITEMS_UPDATE,{dataGroups:i}),this.set({dataGroups:i})}getIsFilled(t,n,r,i){const s=this.getOptions();return s.getIsFilled?s.getIsFilled(t,n,r,i):i}getFillColor(t,n,r){const i=this.getOptions(),s=b(this.colorScale,t);return i.getFillColor?i.getFillColor(t,n,r,s):s}getStrokeColor(t,n,r){const i=this.getOptions(),s=b(this.colorScale,t);return i.getStrokeColor?i.getStrokeColor(t,n,r,s):s}isUserProvidedColorScaleValid(){const t=b(this.getOptions(),"color","scale"),n=this.getDataGroups();return t==null||Object.keys(t).length==0?!1:n.some(r=>Object.keys(t).includes(r.name))}getColorClassName(t){const n=this.colorClassNames(t.dataGroupName);let r=t.originalClassName;return t.classNameTypes.forEach(i=>r=t.originalClassName?`${r} ${i}-${n}`:`${i}-${n}`),r||""}getStatus(){return null}getAllDataGroupsNames(){return this.allDataGroups}transformToTabularData(t){console.warn("We've updated the charting data format to be tabular by default. The current format you're using is deprecated and will be removed in v1.0, read more here https://carbon-design-system.github.io/carbon-charts/?path=/story/docs-tutorials--tabular-data-format");const n=[],{datasets:r,labels:i}=t;return r.forEach(s=>{s.data.forEach((a,o)=>{let l;const c=b(s,"label");if(c===null){const d=b(i,o);d?l=d:l="Ungrouped"}else l=c;const u={group:l,key:i[o]};isNaN(a)?(u.value=a.value,u.date=a.date):u.value=a,n.push(u)})}),n}getTabularDataArray(){return[]}exportToCSV(){const t=this.getTabularDataArray().map(i=>i.map(s=>`"${s==="&ndash;"?"–":s}"`));let n="",r="";t.forEach(function(i,s){r=i.join(","),n+=s<t.length?r+`
2
- `:r}),this.services.files.downloadCSV(n,"myChart.csv")}getTabularData(t){return Array.isArray(t)?t:this.transformToTabularData(t)}sanitize(t){return t=this.getTabularData(t),t}updateAllDataGroups(){this.allDataGroups?this.getDataGroupNames().forEach(t=>{this.allDataGroups.indexOf(t)===-1&&this.allDataGroups.push(t)}):this.allDataGroups=this.getDataGroupNames()}generateDataGroups(t){const{groupMapsTo:n}=this.getOptions().data,{ACTIVE:r,DISABLED:i}=Ct.items.status,s=this.getOptions(),a=Ci(t.map(l=>l[n]));s.data.selectedGroups.length&&(s.data.selectedGroups.every(l=>a.includes(l))||(s.data.selectedGroups=[]));const o=l=>!s.data.selectedGroups.length||s.data.selectedGroups.includes(l)?r:i;return a.map(l=>({name:l,status:o(l)}))}setCustomColorScale(){if(!this.isUserProvidedColorScaleValid())return;const t=this.getOptions(),n=b(t,"color","scale");Object.keys(n).forEach(r=>{this.allDataGroups.includes(r)||console.warn(`"${r}" does not exist in data groups.`)}),this.allDataGroups.filter(r=>n[r]).forEach(r=>this.colorScale[r]=n[r])}setColorClassNames(){const t=b(this.getOptions(),"color","pairing");let n=b(t,"numberOfVariants");(!n||n<this.allDataGroups.length)&&(n=this.allDataGroups.length);let r=b(t,"option");const i=kp.pairingOptions,s=n>5?14:n,a=`${s}-color`;r=r<=i[a]?r:1;const o=this.allDataGroups.map((l,c)=>`${s}-${r}-${c%14+1}`);this.colorClassNames=Is().range(o).domain(this.allDataGroups)}}class jn extends Be{constructor(t){super(t),this.axisFlavor=Fi.DEFAULT}assignRangeAndDomains(){const{cartesianScales:t}=this.services,n=this.getOptions(),r=t.isDualAxes(),i={primaryDomain:t.domainAxisPosition,primaryRange:t.rangeAxisPosition,secondaryDomain:null,secondaryRange:null};return r&&(i.secondaryDomain=t.secondaryDomainAxisPosition,i.secondaryRange=t.secondaryRangeAxisPosition),Object.keys(i).forEach(s=>{const a=i[s];t.scales[a]?i[s]={position:a,label:t.getScaleLabel(a),identifier:b(n,"axes",a,"mapsTo")}:i[s]=null}),i}getTabularDataArray(){const t=this.getDisplayData(),n=this.getOptions(),{groupMapsTo:r}=n.data,{cartesianScales:i}=this.services,{primaryDomain:s,primaryRange:a,secondaryDomain:o,secondaryRange:l}=this.assignRangeAndDomains(),c=i.getDomainAxisScaleType();let u;return c===W.TIME&&(u=d=>mr(d,"MMM d, yyyy")),[["Group",s.label,a.label,...o?[o.label]:[],...l?[l.label]:[]],...t.map(d=>[d[r],d[s.identifier]===null?"&ndash;":u?u(d[s.identifier]):d[s.identifier],d[a.identifier]===null||isNaN(d[a.identifier])?"&ndash;":d[a.identifier].toLocaleString(),...o?[d[o.identifier]===null?"&ndash;":d[o.identifier]]:[],...l?[d[l.identifier]===null||isNaN(d[l.identifier])?"&ndash;":d[l.identifier]]:[]])]}setData(t){let n;if(t&&(n=super.setData(t),b(this.getOptions(),"zoomBar",V.TOP,"enabled"))){const r=b(this.getOptions(),"zoomBar",V.TOP,"data");this.setZoomBarData(r)}return n}setZoomBarData(t){const n=t?this.sanitize(en(t)):this.getDisplayData();let r=n;const{cartesianScales:i}=this.services;if(n&&i.domainAxisPosition&&i.rangeAxisPosition){const s=i.getDomainIdentifier(),a=i.getRangeIdentifier();let o=n.map(l=>l[s].getTime());o=Ci(o).sort(),r=o.map(l=>{let c=0;const u={};return n.forEach(d=>{d[s].getTime()===l&&(c+=d[a])}),u[s]=new Date(l),u[a]=c,u})}this.set({zoomBarData:r})}getZoomBarData(){return this.get("zoomBarData")}sanitizeDateValues(t){const n=this.getOptions();if(!n.axes)return t;const r=[];return Object.keys(V).forEach(i=>{const s=V[i],a=n.axes[s];if(a&&a.scaleType===W.TIME){const o=a.mapsTo;(o!==null||o!==void 0)&&r.push(o)}}),r.length>0&&t.forEach(i=>{r.forEach(s=>{b(i,s,"getTime")===null&&(i[s]=new Date(i[s]))})}),t}sanitize(t){return t=super.sanitize(t),t=this.sanitizeDateValues(t),t}}let wA=class extends jn{constructor(t){super(t)}getTabularDataArray(){const t=this.getDisplayData();return t.sort((n,r)=>n.source.localeCompare(r.source)),[["Source","Target","Value"],...t.map(n=>[n.source,n.target,n.value])]}},_A=class extends jn{constructor(t){super(t)}getBoxQuartiles(t){return{q_25:Wa(t,.25),q_50:Wa(t,.5),q_75:Wa(t,.75)}}getBoxplotData(){const t=this.getOptions(),{groupMapsTo:n}=t.data,r=this.getGroupedData(),i=[];for(const{name:s,data:a}of r){const o=this.services.cartesianScales.getRangeIdentifier(),l=a.map(x=>x[o]).sort(wn),c={[n]:s,counts:l,quartiles:this.getBoxQuartiles(l),outliers:null,whiskers:null},u=c.quartiles.q_25,d=c.quartiles.q_75,h=(d-u)*1.5,f=u-h,p=d+h,m=[],g=[];for(const x of l)x<f||x>p?m.push(x):g.push(x);c.outliers=m;const v=un(g),y=En(g);c.whiskers={min:v||un([c.quartiles.q_25,c.quartiles.q_50,c.quartiles.q_75]),max:y||En([c.quartiles.q_25,c.quartiles.q_50,c.quartiles.q_75])},i.push(c)}return i}getTabularDataArray(){const t=this.getOptions(),{groupMapsTo:n}=t.data,r=this.getBoxplotData();return[["Group","Minimum","Q1","Median","Q3","Maximum","IQR","Outlier(s)"],...r.map(i=>{let s=b(i,"outliers");return(s===null||s.length===0)&&(s=["&ndash;"]),[i[n],b(i,"whiskers","min")!==null?b(i,"whiskers","min").toLocaleString():"&ndash;",b(i,"quartiles","q_25")!==null?b(i,"quartiles","q_25").toLocaleString():"&ndash;",b(i,"quartiles","q_50")!==null?b(i,"quartiles","q_50").toLocaleString():"&ndash;",b(i,"quartiles","q_75")!==null?b(i,"quartiles","q_75").toLocaleString():"&ndash;",b(i,"whiskers","max")!==null?b(i,"whiskers","max").toLocaleString():"&ndash;",b(i,"quartiles","q_75")!==null&&b(i,"quartiles","q_25")!==null?(b(i,"quartiles","q_75")-b(i,"quartiles","q_25")).toLocaleString():"&ndash;",s.map(a=>a.toLocaleString()).join(",")]})]}setColorClassNames(){const t=b(this.getOptions(),"color","pairing");let n=b(t,"option");const r=kp.pairingOptions;n=n<=r["1-color"]?n:1;const i=this.allDataGroups.map(()=>`1-${n}-1`);this.colorClassNames=Is().range(i).domain(this.allDataGroups)}},EA=class extends jn{constructor(t){super(t)}getMatchingRangeIndexForDatapoint(t){let n;for(let r=t.ranges.length-1;r>0;r--){const i=t.ranges[r];if(t.value>=i)return n=r,n}return 0}getTabularDataArray(){const t=this.getDisplayData(),n=this.getOptions(),{groupMapsTo:r}=n.data,i=this.services.cartesianScales.getRangeIdentifier(),s=b(n,"bullet","performanceAreaTitles");return[["Title","Group","Value","Target","Percentage","Performance"],...t.map(a=>[a.title,a[r],a.value===null?"&ndash;":a.value,b(a,"marker")===null?"&ndash;":a.marker,b(a,"marker")===null?"&ndash;":`${Math.floor(a[i]/a.marker*100)}%`,s[this.getMatchingRangeIndexForDatapoint(a)]])]}},SA=class extends Be{constructor(t){super(t),this._colorScale=void 0,this._matrix={}}getFillColor(t){return this._colorScale(t)}getCombinedData(){if($e(this._matrix)){const t=this.getOptions(),n=this.getDisplayData();!$e(n)&&!$e(t.geoData.objects.countries)&&(t.geoData.objects.countries.geometries.forEach(r=>{this._matrix[r.properties.NAME]=r}),n.forEach(r=>{this._matrix[r.name]?this._matrix[r.name].value=r.value||null:console.warn(`Data point ${r} is missing geographical data.`)}))}return this._matrix}getTabularDataArray(){const t=this.getDisplayData();return[["Country ID","Country Name","Value"],...t.map(n=>[n.id===null?"&ndash;":n.id,n.name,n.value])]}getColorClassName(t){return`${t.originalClassName} ${this._colorScale(t.value)}`}setColorClassNames(){const t=b(this.getOptions(),"color");this._colorScale=Zp(this.getDisplayData(),t)}},OA=class extends Be{constructor(t){super(t),this.parentNode=!1,this.set({depth:2},{skipUpdate:!0})}setData(t){super.setData(t),this.setDataGroups(),t.length===1&&(this.parentNode=!0),this.setZoom()}setOptions(t){const n=this.getOptions(),r=Z({},t,this.getZoomOptions(t));Wl(n,r);const i=this.getHierarchyLevel(),s=b(n,"circlePack","hierarchyLevel");this.set({options:Z(n,r),depth:s&&s<4?s:i})}getZoomOptions(t){if(!this.getDisplayData())return{};const n=this.getDisplayData(),r=t||this.getOptions(),i=n.length===1&&b(n,0,"children")?b(n,0,"children"):n;let s=this.getHierarchyLevel();return i.some(a=>{if(a.children&&a.children.some(o=>o.children))return s=3,!1}),b(r,"canvasZoom","enabled")===!0&&s>2?{legend:{additionalItems:[{type:Nt.ZOOM,name:"Click to zoom"}]}}:null}setZoom(t){this.setOptions(this.getZoomOptions(t))}updateHierarchyLevel(t){this.set({depth:t})}getHierarchyLevel(){return this.get("depth")}hasParentNode(){return this.parentNode}setDataGroups(){const t=this.getData(),n=this.getOptions(),{groupMapsTo:r}=n.data,i=t.map(s=>{const a=s[r];return this.setChildrenDataGroup(s,a)});this.set({data:i},{skipUpdate:!0})}setChildrenDataGroup(t,n){return t.children?{...t,dataGroupName:n,children:t.children.map(r=>this.setChildrenDataGroup(r,n))}:{...t,dataGroupName:n}}getTabularDataArray(){const t=this.getDisplayData(),n=[["Child","Parent","Value"]];return t.forEach(r=>{let i=r.value?r.value:0;r.children&&(i+=this.getChildrenDatums(r.children,r.name,n,0)),n.push(["&ndash;",r.name,i])}),n}getChildrenDatums(t,n,r=[],i=0){const s=n;return t.forEach(a=>{const o=a.name;let l=0;if(a.children)a.children.length>0&&(typeof a.value=="number"&&(i+=a.value),l+=this.getChildrenDatums(a.children,o,r,l),r.push([o,s,l]),i+=l);else{let c=0;typeof a.value=="number"&&(c=a.value,i+=a.value),r.push([a.name,s,c])}}),i}},TA=class extends Be{constructor(t){super(t)}getTabularData(t){const n=super.getTabularData(t);return t!==n&&n.forEach(r=>{r.key&&r.key!==r.group&&(r.group=r.key)}),n}getTabularDataArray(){const t=this.getDisplayData(),n=this.getOptions(),{groupMapsTo:r}=n.data;return[["Group","Value"],...t.map(i=>[i[r],i.value===null?"&ndash;":i.value.toLocaleString()])]}sanitize(t){return this.getTabularData(t).sort((n,r)=>r.value-n.value)}},MA=class extends Be{constructor(t){super(t)}getDataGroups(){return super.getDataGroups().filter(t=>t.name!=="delta")}getTabularDataArray(){const t=this.getDisplayData(),n=this.getOptions(),{groupMapsTo:r}=n.data;return[["Group","Value"],...t.map(i=>[i[r],i.value===null?"&ndash;":i.value.toLocaleString()])]}},CA=class extends jn{constructor(t){super(t),this.axisFlavor=Fi.HOVERABLE,this._colorScale=void 0,this._domains=[],this._ranges=[],this._matrix={};const n=b(this.getOptions(),"axes");if(b(n,"left","scaleType")&&b(n,"left","scaleType")!==W.LABELS||b(n,"right","scaleType")&&b(n,"right","scaleType")!==W.LABELS||b(n,"top","scaleType")&&b(n,"top","scaleType")!==W.LABELS||b(n,"bottom","scaleType")&&b(n,"bottom","scaleType")!==W.LABELS)throw Error("Heatmap only supports label scaletypes.")}getValueDomain(){const t=we(this.getDisplayData(),r=>r.value),n=Te().domain(t).nice().domain();if(n[0]>0)n[0]=0;else if(n[0]===0&&n[1]===0)return[0,1];return n[0]<0&&n[1]>0&&(Math.abs(n[0])>n[1]?n[1]=Math.abs(n[0]):n[0]=-n[1]),n}getFillColor(t){return this._colorScale(t)}getUniqueDomain(){if($e(this._domains)){const t=this.getDisplayData(),{cartesianScales:n}=this.services,r=n.getDomainIdentifier(),i=n.getMainXAxisPosition(),s=n.getCustomDomainValuesByposition(i);if(s)return s;this._domains=Array.from(new Set(t.map(a=>a[r])))}return this._domains}getUniqueRanges(){if($e(this._ranges)){const t=this.getDisplayData(),{cartesianScales:n}=this.services,r=n.getRangeIdentifier(),i=n.getMainYAxisPosition(),s=n.getCustomDomainValuesByposition(i);if(s)return s;this._ranges=Array.from(new Set(t.map(a=>a[r])))}return this._ranges}getMatrix(){if($e(this._matrix)){const t=this.getUniqueDomain(),n=this.getUniqueRanges(),r=this.services.cartesianScales.getDomainIdentifier(),i=this.services.cartesianScales.getRangeIdentifier(),s={};n.forEach(a=>{s[a]={value:null,index:-1}}),t.forEach(a=>{this._matrix[a]=en(s)}),this.getDisplayData().forEach((a,o)=>{this._matrix[a[r]][a[i]]={value:a.value,index:o}})}return this._matrix}setData(t){const n=this.sanitize(en(t)),r=this.generateDataGroups(n);return this.set({data:n,dataGroups:r}),this._domains=[],this._ranges=[],this._matrix={},n}getMatrixAsArray(){$e(this._matrix)&&this.getMatrix();const t=this.getUniqueDomain(),n=this.getUniqueRanges(),r=this.services.cartesianScales.getDomainIdentifier(),i=this.services.cartesianScales.getRangeIdentifier(),s=[];return t.forEach(a=>{n.forEach(o=>{const l={value:this._matrix[a][o].value,index:this._matrix[a][o].index};l[r]=a,l[i]=o,s.push(l)})}),s}getTabularDataArray(){const t=this.getDisplayData(),{primaryDomain:n,primaryRange:r}=this.assignRangeAndDomains();return[[n.label,r.label,"Value"],...t.map(i=>[i[n.identifier]===null?"&ndash;":i[n.identifier],i[r.identifier]===null?"&ndash;":i[r.identifier].toLocaleString(),i.value])]}getColorClassName(t){return`${t.originalClassName} ${this._colorScale(t.value)}`}setColorClassNames(){const t=this.getOptions(),n=b(t,"color","gradient","colors"),r=!$e(n);let i=b(t,"color","pairing","option");const s=this.getValueDomain(),a=s[0]<0&&s[1]>0?"diverge":"mono";(i<1&&i>4&&a==="mono"||i<1&&i>2&&a==="diverge")&&(i=1);const o=r?n:[];if(!r){const c=a==="diverge"?17:11;for(let u=1;u<c+1;u++)o.push(`fill-${a}-${i}-${u}`)}this._colorScale=tl().domain(s).range(o);const l=b(this.getOptions(),"color");this._colorScale=Zp(this.getDisplayData(),l)}},$A=class extends jn{getTabularDataArray(){const t=this.getOptions(),{groupMapsTo:n}=t.data,r=this.getBinnedStackedData();return[[wt(t,"bins.rangeLabel")||"Range",...r.map(i=>wt(i,`0.${n}`))],...wt(r,0).map((i,s)=>[`${wt(i,"data.x0")} – ${wt(i,"data.x1")}`,...r.map(a=>wt(a[s],`data.${wt(a[s],n)}`))])]}},AA=class extends Be{constructor(t){super(t)}getMaximumDomain(t){return t.reduce((n,r)=>n+r.value,0)}getFillColor(t){const n=this.getOptions(),r=b(n,"color","scale"),i=this.getStatus();return r||!i?super.getFillColor(t):null}getStatus(){const t=this.getOptions(),n=b(this.getDisplayData()),r=(n==null?void 0:n.reduce((a,o)=>a+o.value,0))??0,i=b(t,"meter","proportional")?r:r>100?100:r,s=b(t,"meter","status","ranges");if(s){const a=s.filter(o=>o.range[0]<=i&&i<=o.range[1]);if(a.length>0)return a[0].status}return null}getTabularDataArray(){const t=this.getDisplayData(),n=this.getOptions(),{groupMapsTo:r}=n.data,i=this.getStatus(),s=b(n,"meter","proportional");let a=[],o;if(s===null){o=100;const l=t[0];a=[["Group","Value",...i?["Status"]:[]],[l[r],l.value,...i?[i]:[]]]}else o=b(s,"total")||this.getMaximumDomain(t),a=[["Group","Value","Percentage of total"],...t.map(c=>[c[r],c.value,(c.value/o*100).toFixed(2)+" %"])];return a}},LA=class extends jn{constructor(t){super(t)}getTabularDataArray(){const t=this.getOptions(),n=this.getGroupedData(),{angle:r,value:i}=b(t,"radar","axes"),s=b(n,"0","data").map(a=>a[r]);return[["Group",...s],...n.map(a=>[a.name,...s.map((o,l)=>b(a,"data",l,i)!==null?b(a,"data",l,i).toLocaleString():"&ndash;")])]}},DA=class extends Be{constructor(t){super(t)}getTabularDataArray(){const t=this.getDisplayData(),n=[["Child","Parent"]];return t.forEach(r=>{this.getChildrenDatums(r,n),n.push([r.name,"&ndash;"])}),n}getChildrenDatums(t,n=[]){t.children&&t.children.length>0&&t.children.forEach(r=>{this.getChildrenDatums(r,n),n.push([r.name,t.name])})}},kA=class extends Be{constructor(t){super(t)}getTabularDataArray(){const t=this.getDisplayData(),n=[["Child","Group","Value"]];return t.forEach(r=>{Array.isArray(r.children)?r.children.forEach(i=>{n.push([i.name,r.name,i.value])}):b(r.name)!==null&&b(r.value)&&n.push(["–",r.name,r.value])}),n}};class RA extends Be{constructor(t){super(t)}getTabularDataArray(){const t=this.getDisplayData(),n=this.getOptions(),{fontSizeMapsTo:r,wordMapsTo:i}=n.wordCloud,{groupMapsTo:s}=n.data;return[[n.tooltip.wordLabel,"Group",n.tooltip.valueLabel],...t.map(a=>[a[i],a[s],a[r]])]}}var IA=/\s/;function NA(e){for(var t=e.length;t--&&IA.test(e.charAt(t)););return t}var PA=/^\s+/;function UA(e){return e&&e.slice(0,NA(e)+1).replace(PA,"")}var Kp=0/0,BA=/^[-+]0x[0-9a-f]+$/i,VA=/^0b[01]+$/i,HA=/^0o[0-7]+$/i,GA=parseInt;function ki(e){if(typeof e=="number")return e;if(na(e))return Kp;if(ve(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ve(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=UA(e);var n=VA.test(e);return n||HA.test(e)?GA(e.slice(2),n?2:8):BA.test(e)?Kp:+e}var FA=function(){return Me.Date.now()};const Kl=FA;var zA="Expected a function",jA=Math.max,WA=Math.min;function xa(e,t,n){var r,i,s,a,o,l,c=0,u=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(zA);t=ki(t)||0,ve(n)&&(u=!!n.leading,d="maxWait"in n,s=d?jA(ki(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h);function f(E){var T=r,k=i;return r=i=void 0,c=E,a=e.apply(k,T),a}function p(E){return c=E,o=setTimeout(v,t),u?f(E):a}function m(E){var T=E-l,k=E-c,I=t-T;return d?WA(I,s-k):I}function g(E){var T=E-l,k=E-c;return l===void 0||T>=t||T<0||d&&k>=s}function v(){var E=Kl();if(g(E))return y(E);o=setTimeout(v,m(E))}function y(E){return o=void 0,h&&r?f(E):(r=i=void 0,a)}function x(){o!==void 0&&clearTimeout(o),c=0,r=l=i=o=void 0}function S(){return o===void 0?a:y(Kl())}function _(){var E=Kl(),T=g(E);if(r=arguments,i=this,l=E,T){if(o===void 0)return p(l);if(d)return clearTimeout(o),o=setTimeout(v,t),f(l)}return o===void 0&&(o=setTimeout(v,t)),a}return _.cancel=x,_.flush=S,_}function qA(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),t&&(r.href=t),i.href=e,i.href}const YA=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function on(e){const t=[];for(let n=0,r=e.length;n<r;n++)t.push(e[n]);return t}function ba(e,t){const n=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return n?parseFloat(n.replace("px","")):0}function XA(e){const t=ba(e,"border-left-width"),n=ba(e,"border-right-width");return e.clientWidth+t+n}function ZA(e){const t=ba(e,"border-top-width"),n=ba(e,"border-bottom-width");return e.clientHeight+t+n}function Qp(e,t={}){const n=t.width||XA(e),r=t.height||ZA(e);return{width:n,height:r}}function KA(){let e,t;try{t=process}catch{}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const ue=16384;function QA(e){(e.width>ue||e.height>ue)&&(e.width>ue&&e.height>ue?e.width>e.height?(e.height*=ue/e.width,e.width=ue):(e.width*=ue/e.height,e.height=ue):e.width>ue?(e.height*=ue/e.width,e.width=ue):(e.width*=ue/e.height,e.height=ue))}function wa(e){return new Promise((t,n)=>{const r=new Image;r.decode=()=>t(r),r.onload=()=>t(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function JA(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function tL(e,t,n){const r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),s=document.createElementNS(r,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${t} ${n}`),s.setAttribute("width","100%"),s.setAttribute("height","100%"),s.setAttribute("x","0"),s.setAttribute("y","0"),s.setAttribute("externalResourcesRequired","true"),i.appendChild(s),s.appendChild(e),JA(i)}const re=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||re(n,t)};function eL(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function nL(e){return on(e).map(t=>{const n=e.getPropertyValue(t),r=e.getPropertyPriority(t);return`${t}: ${n}${r?" !important":""};`}).join(" ")}function rL(e,t,n){const r=`.${e}:${t}`,i=n.cssText?eL(n):nL(n);return document.createTextNode(`${r}{${i}}`)}function Jp(e,t,n){const r=window.getComputedStyle(e,n),i=r.getPropertyValue("content");if(i===""||i==="none")return;const s=YA();try{t.className=`${t.className} ${s}`}catch{return}const a=document.createElement("style");a.appendChild(rL(s,n,r)),t.appendChild(a)}function iL(e,t){Jp(e,t,":before"),Jp(e,t,":after")}const tg="application/font-woff",eg="image/jpeg",sL={woff:tg,woff2:tg,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:eg,jpeg:eg,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function aL(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function Ql(e){const t=aL(e).toLowerCase();return sL[t]||""}function oL(e){return e.split(/,/)[1]}function Jl(e){return e.search(/^(data:)/)!==-1}function ng(e,t){return`data:${t};base64,${e}`}async function rg(e,t,n){const r=await fetch(e,t);if(r.status===404)throw new Error(`Resource "${r.url}" not found`);const i=await r.blob();return new Promise((s,a)=>{const o=new FileReader;o.onerror=a,o.onloadend=()=>{try{s(n({res:r,result:o.result}))}catch(l){a(l)}},o.readAsDataURL(i)})}const tc={};function lL(e,t,n){let r=e.replace(/\?.*/,"");return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?`[${t}]${r}`:r}async function ec(e,t,n){const r=lL(e,t,n.includeQueryParams);if(tc[r]!=null)return tc[r];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let i;try{const s=await rg(e,n.fetchRequestInit,({res:a,result:o})=>(t||(t=a.headers.get("Content-Type")||""),oL(o)));i=ng(s,t)}catch(s){i=n.imagePlaceholder||"";let a=`Failed to fetch resource: ${e}`;s&&(a=typeof s=="string"?s:s.message),a&&console.warn(a)}return tc[r]=i,i}async function cL(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):wa(t)}async function uL(e,t){if(e.currentSrc){const s=document.createElement("canvas"),a=s.getContext("2d");s.width=e.clientWidth,s.height=e.clientHeight,a==null||a.drawImage(e,0,0,s.width,s.height);const o=s.toDataURL();return wa(o)}const n=e.poster,r=Ql(n),i=await ec(n,r,t);return wa(i)}async function hL(e){var t;try{if(!((t=e==null?void 0:e.contentDocument)===null||t===void 0)&&t.body)return await _a(e.contentDocument.body,{},!0)}catch{}return e.cloneNode(!1)}async function dL(e,t){return re(e,HTMLCanvasElement)?cL(e):re(e,HTMLVideoElement)?uL(e,t):re(e,HTMLIFrameElement)?hL(e):e.cloneNode(!1)}const fL=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";async function pL(e,t,n){var r,i;let s=[];return fL(e)&&e.assignedNodes?s=on(e.assignedNodes()):re(e,HTMLIFrameElement)&&!((r=e.contentDocument)===null||r===void 0)&&r.body?s=on(e.contentDocument.body.childNodes):s=on(((i=e.shadowRoot)!==null&&i!==void 0?i:e).childNodes),s.length===0||re(e,HTMLVideoElement)||await s.reduce((a,o)=>a.then(()=>_a(o,n)).then(l=>{l&&t.appendChild(l)}),Promise.resolve()),t}function gL(e,t){const n=t.style;if(!n)return;const r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):on(r).forEach(i=>{let s=r.getPropertyValue(i);i==="font-size"&&s.endsWith("px")&&(s=`${Math.floor(parseFloat(s.substring(0,s.length-2)))-.1}px`),re(e,HTMLIFrameElement)&&i==="display"&&s==="inline"&&(s="block"),i==="d"&&t.getAttribute("d")&&(s=`path(${t.getAttribute("d")})`),n.setProperty(i,s,r.getPropertyPriority(i))})}function mL(e,t){re(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),re(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function vL(e,t){if(re(e,HTMLSelectElement)){const n=t,r=Array.from(n.children).find(i=>e.value===i.getAttribute("value"));r&&r.setAttribute("selected","")}}function yL(e,t){return re(t,Element)&&(gL(e,t),iL(e,t),mL(e,t),vL(e,t)),t}async function xL(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(n.length===0)return e;const r={};for(let s=0;s<n.length;s++){const a=n[s].getAttribute("xlink:href");if(a){const o=e.querySelector(a),l=document.querySelector(a);!o&&l&&!r[a]&&(r[a]=await _a(l,t,!0))}}const i=Object.values(r);if(i.length){const s="http://www.w3.org/1999/xhtml",a=document.createElementNS(s,"svg");a.setAttribute("xmlns",s),a.style.position="absolute",a.style.width="0",a.style.height="0",a.style.overflow="hidden",a.style.display="none";const o=document.createElementNS(s,"defs");a.appendChild(o);for(let l=0;l<i.length;l++)o.appendChild(i[l]);e.appendChild(a)}return e}async function _a(e,t,n){return!n&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(r=>dL(r,t)).then(r=>pL(e,r,t)).then(r=>yL(e,r)).then(r=>xL(r,t))}const ig=/url\((['"]?)([^'"]+?)\1\)/g,bL=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,wL=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function _L(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function EL(e){const t=[];return e.replace(ig,(n,r,i)=>(t.push(i),n)),t.filter(n=>!Jl(n))}async function SL(e,t,n,r,i){try{const s=n?qA(t,n):t,a=Ql(t);let o;if(i){const l=await i(s);o=ng(l,a)}else o=await ec(s,a,r);return e.replace(_L(t),`$1${o}$3`)}catch{}return e}function OL(e,{preferredFontFormat:t}){return t?e.replace(wL,n=>{for(;;){const[r,,i]=bL.exec(n)||[];if(!i)return"";if(i===t)return`src: ${r};`}}):e}function sg(e){return e.search(ig)!==-1}async function ag(e,t,n){if(!sg(e))return e;const r=OL(e,n);return EL(r).reduce((i,s)=>i.then(a=>SL(a,s,t,n)),Promise.resolve(r))}async function Ea(e,t,n){var r;const i=(r=t.style)===null||r===void 0?void 0:r.getPropertyValue(e);if(i){const s=await ag(i,null,n);return t.style.setProperty(e,s,t.style.getPropertyPriority(e)),!0}return!1}async function TL(e,t){await Ea("background",e,t)||await Ea("background-image",e,t),await Ea("mask",e,t)||await Ea("mask-image",e,t)}async function ML(e,t){const n=re(e,HTMLImageElement);if(!(n&&!Jl(e.src))&&!(re(e,SVGImageElement)&&!Jl(e.href.baseVal)))return;const r=n?e.src:e.href.baseVal,i=await ec(r,Ql(r),t);await new Promise((s,a)=>{e.onload=s,e.onerror=a;const o=e;o.decode&&(o.decode=s),o.loading==="lazy"&&(o.loading="eager"),n?(e.srcset="",e.src=i):e.href.baseVal=i})}async function CL(e,t){const n=on(e.childNodes).map(r=>og(r,t));await Promise.all(n).then(()=>e)}async function og(e,t){re(e,Element)&&(await TL(e,t),await ML(e,t),await CL(e,t))}function $L(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const r=t.style;return r!=null&&Object.keys(r).forEach(i=>{n[i]=r[i]}),e}const lg={};async function cg(e){let t=lg[e];if(t!=null)return t;const n=await(await fetch(e)).text();return t={url:e,cssText:n},lg[e]=t,t}async function ug(e,t){let n=e.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,i=(n.match(/url\([^)]+\)/g)||[]).map(async s=>{let a=s.replace(r,"$1");return a.startsWith("https://")||(a=new URL(a,e.url).href),rg(a,t.fetchRequestInit,({result:o})=>(n=n.replace(s,`url(${o})`),[s,o]))});return Promise.all(i).then(()=>n)}function hg(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let r=e.replace(n,"");const i=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const l=i.exec(r);if(l===null)break;t.push(l[0])}r=r.replace(i,"");const s=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",o=new RegExp(a,"gi");for(;;){let l=s.exec(r);if(l===null){if(l=o.exec(r),l===null)break;s.lastIndex=o.lastIndex}else o.lastIndex=s.lastIndex;t.push(l[0])}return t}async function AL(e,t){const n=[],r=[];return e.forEach(i=>{if("cssRules"in i)try{on(i.cssRules||[]).forEach((s,a)=>{if(s.type===CSSRule.IMPORT_RULE){let o=a+1;const l=s.href,c=cg(l).then(u=>ug(u,t)).then(u=>hg(u).forEach(d=>{try{i.insertRule(d,d.startsWith("@import")?o+=1:i.cssRules.length)}catch(h){console.error("Error inserting rule from remote css",{rule:d,error:h})}})).catch(u=>{console.error("Error loading remote css",u.toString())});r.push(c)}})}catch(s){const a=e.find(o=>o.href==null)||document.styleSheets[0];i.href!=null&&r.push(cg(i.href).then(o=>ug(o,t)).then(o=>hg(o).forEach(l=>{a.insertRule(l,i.cssRules.length)})).catch(o=>{console.error("Error loading remote stylesheet",o)})),console.error("Error inlining remote css file",s)}}),Promise.all(r).then(()=>(e.forEach(i=>{if("cssRules"in i)try{on(i.cssRules||[]).forEach(s=>{n.push(s)})}catch(s){console.error(`Error while reading CSS rules from ${i.href}`,s)}}),n))}function LL(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>sg(t.style.getPropertyValue("src")))}async function DL(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=on(e.ownerDocument.styleSheets),r=await AL(n,t);return LL(r)}async function kL(e,t){const n=await DL(e,t);return(await Promise.all(n.map(r=>{const i=r.parentStyleSheet?r.parentStyleSheet.href:null;return ag(r.cssText,i,t)}))).join(`
3
- `)}async function RL(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await kL(e,t);if(n){const r=document.createElement("style"),i=document.createTextNode(n);r.appendChild(i),e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}}async function IL(e,t={}){const{width:n,height:r}=Qp(e,t),i=await _a(e,t,!0);return await RL(i,t),await og(i,t),$L(i,t),await tL(i,n,r)}async function dg(e,t={}){const{width:n,height:r}=Qp(e,t),i=await IL(e,t),s=await wa(i),a=document.createElement("canvas"),o=a.getContext("2d"),l=t.pixelRatio||KA(),c=t.canvasWidth||n,u=t.canvasHeight||r;return a.width=c*l,a.height=u*l,t.skipAutoScale||QA(a),a.style.width=`${c}`,a.style.height=`${u}`,t.backgroundColor&&(o.fillStyle=t.backgroundColor,o.fillRect(0,0,a.width,a.height)),o.drawImage(s,0,0,a.width,a.height),a}async function NL(e,t={}){return(await dg(e,t)).toDataURL()}async function PL(e,t={}){return(await dg(e,t)).toDataURL("image/jpeg",t.quality||1)}class ln{constructor(t,n){this.model=t,this.services=n,this.init()}init(){}update(){}setModel(t){this.model=t}setServices(t){this.services=t}}const UL="DONT_STYLE_ME_css_styles_verifier";class L extends ln{constructor(t,n){super(t,n),this.chartID=""}static getHTMLElementSize(t){return{width:t.clientWidth,height:t.clientHeight}}static getSVGElementSize(t,n={useAttrs:!1,useClientDimensions:!1,useBBox:!1,useBoundingRect:!1}){t.attr||(t=D(t));const r={width:0,height:0},i=h=>{h&&Object.keys(r).forEach(f=>{if(h[f]){const p=h[f],m=parseFloat(p);p&&m>r[f]&&(""+p).indexOf("%")===-1&&(r[f]=m)}})},s={width:t.attr("width"),height:t.attr("height")},a=t.node();let o,l,c,u;try{typeof a.getBBox=="function"&&(o=a.getBBox(),l={width:o.width,height:o.height})}catch(h){console.error(h)}try{typeof(a==null?void 0:a.getBoundingClientRect)=="function"&&(c=a.getBoundingClientRect(),u={width:c.width,height:c.height})}catch(h){console.error(h)}let d;if(a instanceof SVGSVGElement&&(d={width:a.clientWidth,height:a.clientHeight}),n){if(n.useAttrs&&(i(s),r.width>0&&r.height>0))return r;if(n.useClientDimensions&&(i(d),r.width>0&&r.height>0))return d;if(n.useBBox&&(i(l),r.width>0&&r.height>0))return l;if(n.useBoundingRect&&(i(u),r.width>0&&r.height>0))return u}try{const h={width:b(t.node(),"width","baseVal","value"),height:b(t.node(),"height","baseVal","value")};i(h)}catch{i(d),i(l),i(s)}return r}static appendOrSelect(t,n){const r=t.select(`${n}`);if(r.empty()){let i=n.split("#"),s,a;return i.length===2?(s=i[0],i=i[1].split("."),a=i[0]):(i=n.split("."),s=i[0]),t.append(s).attr("id",a).attr("class",i.slice(1).join(" "))}return r}init(){this.styleHolderElement(),this.initializeID(),this.addMainContainer(),this.model.getOptions().resizable&&this.addResizeListener(),this.addHolderListeners(),this.handleFullscreenChange()}getChartID(){return this.chartID}generateElementIDString(t){return`chart-${this.chartID}-${t}`}initializeID(){this.chartID=Math.floor((1+Math.random())*281474976710656).toString(16)}addMainContainer(){const t=this.model.getOptions(),n=b(t,"style","prefix"),r=D(this.getHolder()).append("div").classed(`${ne}--${n}--chart-wrapper`,!0).attr("id",`chart-${this.getChartID()}`).style("height","100%").style("width","100%");r.append("g").attr("class",UL),this.mainContainer=r.node()}update(){this.styleHolderElement()}styleHolderElement(){const t=this.getHolder(),{width:n,height:r,theme:i}=this.model.getOptions();n!==this.width&&(t.style.width=n,this.width=n),r!==this.height&&(t.style.height=r,this.height=r),D(this.getHolder()).classed(`${ne}--chart-holder`,!0).attr("data-carbon-theme",i)}getHolder(){return this.model.get("holder")}exportToJPG(){const t=this,n=this.getHolder(),r=D(n);r.classed("filled",!0),PL(this.getMainContainer(),{quality:1,filter:i=>!(i.classList&&i.classList.contains("cds--cc--toolbar"))}).then(function(i){var s;(s=t.services.files)==null||s.downloadImage(i,"myChart.jpg"),r.classed("filled",!1)})}exportToPNG(){const t=this,n=this.getHolder(),r=D(n);r.classed("filled",!0),NL(this.getMainContainer(),{quality:1,filter:i=>!(i.classList&&i.classList.contains("cds--cc--toolbar"))}).then(function(i){var s;(s=t.services.files)==null||s.downloadImage(i,"myChart.png"),r.classed("filled",!1)}).catch(function(i){console.error("oops, something went wrong!",i)})}toggleFullscreen(){const t=this.getHolder();D(t).classed("fullscreen")&&(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen():t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()}handleFullscreenChange(){document.addEventListener("fullscreenchange",()=>{const t=D(this.getHolder()),n=t.classed("fullscreen");t.classed("fullscreen",!n)})}setSVGMaxHeight(){if(!this.model.getOptions().height){const{height:t}=L.getSVGElementSize(D(this.mainContainer),{useBBox:!0}),n=D(this.mainContainer).attr("class"),r=D(this.mainContainer).selectAll(`.${n} > svg`);let i=0;r.nodes().forEach(function(s){i+=Number(L.getSVGElementSize(D(s),{useBBox:!0}).height)}),i<=t?D(this.mainContainer).attr("height",i):D(this.mainContainer).attr("height","100%")}}getMainContainer(){return this.mainContainer}addHolderListeners(){const t=this.getHolder();t&&D(t).on("mouseover",()=>{var n;(n=this.services.events)==null||n.dispatchEvent(O.Chart.MOUSEOVER)}).on("mouseout",()=>{var n;(n=this.services.events)==null||n.dispatchEvent(O.Chart.MOUSEOUT)})}addResizeListener(){const t=this.getHolder();if(!t)return;let n=t.clientWidth,r=t.clientHeight;const i=xa(()=>{var s;t&&(Math.abs(n-t.clientWidth)>1||Math.abs(r-t.clientHeight)>1)&&(n=t.clientWidth,r=t.clientHeight,(s=this.services.events)==null||s.dispatchEvent(O.Chart.RESIZE))},12.5);new ResizeObserver(i).observe(t)}}let nc=class vv extends ln{static appendOrUpdateLinearGradient(t){let n=t.svg.select(`defs linearGradient#${t.id}`);n.empty()&&(n=t.svg.append("defs").append("linearGradient").attr("id",t.id).attr("x1",t.x1).attr("x2",t.x2).attr("y1",t.y1).attr("y2",t.y2)),n.selectAll("stop").remove(),n.selectAll("stop").data(t.stops).enter().append("stop").attr("offset",r=>r.offset).style("stop-color",r=>r.color).style("stop-opacity",r=>r.opacity)}static getOffsetRatio(t){return(Math.abs(t[1])*100/Math.abs(t[0]-t[1])).toFixed(2)+"%"}static getStops(t,n){const r=t[0]<0&&t[1]>0;let i=[{offset:"0%",color:n,opacity:"0.6"},{offset:"80%",color:n,opacity:"0"}];return r&&(i=[{offset:"0%",color:n,opacity:"0.6"},{offset:vv.getOffsetRatio(t),color:n,opacity:"0"},{offset:"100%",color:n,opacity:"0.6"}]),i}};function fg(e){const t=BL(pg(e),360);return vn(t,[0,10])||vn(t,[350,0])?{textAnchor:He.START,dominantBaseline:Ge.MIDDLE}:vn(t,[10,80])?{textAnchor:He.START,dominantBaseline:Ge.HANGING}:vn(t,[80,100])?{textAnchor:He.MIDDLE,dominantBaseline:Ge.HANGING}:vn(t,[100,170])?{textAnchor:He.END,dominantBaseline:Ge.HANGING}:vn(t,[170,190])?{textAnchor:He.END,dominantBaseline:Ge.MIDDLE}:vn(t,[190,260])?{textAnchor:He.END,dominantBaseline:Ge.BASELINE}:vn(t,[260,280])?{textAnchor:He.MIDDLE,dominantBaseline:Ge.BASELINE}:{textAnchor:He.START,dominantBaseline:Ge.BASELINE}}function BL(e,t){return(e%t+t)%t}function vn(e,[t,n]){return e>=t&&e<=n}function pg(e){return e*(180/Math.PI)}function At(e,t,n={x:0,y:0}){const r=t*Math.cos(e)+n.x,i=t*Math.sin(e)+n.y;return{x:isNaN(r)?0:r,y:isNaN(i)?0:i}}function VL(e,t){return t*Math.sin(e-Math.PI/2)}function gg(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);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}function HL(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);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}function rc(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}function GL(e){return e.depth}function FL(e,t){return t-1-e.height}function mg(e,t){return e.sourceLinks.length?e.depth:t-1}function Sa(e){return function(){return e}}function vg(e,t){return Oa(e.source,t.source)||e.index-t.index}function yg(e,t){return Oa(e.target,t.target)||e.index-t.index}function Oa(e,t){return e.y0-t.y0}function ic(e){return e.value}function zL(e){return e.index}function jL(e){return e.nodes}function WL(e){return e.links}function xg(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function bg({nodes:e}){for(const t of e){let n=t.y0,r=n;for(const i of t.sourceLinks)i.y0=n+i.width/2,n+=i.width;for(const i of t.targetLinks)i.y1=r+i.width/2,r+=i.width}}function qL(){let e=0,t=0,n=1,r=1,i=24,s=8,a,o=zL,l=mg,c,u,d=jL,h=WL,f=6;function p(){const w={nodes:d.apply(null,arguments),links:h.apply(null,arguments)};return m(w),g(w),v(w),y(w),_(w),bg(w),w}p.update=function(w){return bg(w),w},p.nodeId=function(w){return arguments.length?(o=typeof w=="function"?w:Sa(w),p):o},p.nodeAlign=function(w){return arguments.length?(l=typeof w=="function"?w:Sa(w),p):l},p.nodeSort=function(w){return arguments.length?(c=w,p):c},p.nodeWidth=function(w){return arguments.length?(i=+w,p):i},p.nodePadding=function(w){return arguments.length?(s=a=+w,p):s},p.nodes=function(w){return arguments.length?(d=typeof w=="function"?w:Sa(w),p):d},p.links=function(w){return arguments.length?(h=typeof w=="function"?w:Sa(w),p):h},p.linkSort=function(w){return arguments.length?(u=w,p):u},p.size=function(w){return arguments.length?(e=t=0,n=+w[0],r=+w[1],p):[n-e,r-t]},p.extent=function(w){return arguments.length?(e=+w[0][0],n=+w[1][0],t=+w[0][1],r=+w[1][1],p):[[e,t],[n,r]]},p.iterations=function(w){return arguments.length?(f=+w,p):f};function m({nodes:w,links:N}){for(const[R,U]of w.entries())U.index=R,U.sourceLinks=[],U.targetLinks=[];const P=new Map(w.map((R,U)=>[o(R,U,w),R]));for(const[R,U]of N.entries()){U.index=R;let{source:F,target:j}=U;typeof F!="object"&&(F=U.source=xg(P,F)),typeof j!="object"&&(j=U.target=xg(P,j)),F.sourceLinks.push(U),j.targetLinks.push(U)}if(u!=null)for(const{sourceLinks:R,targetLinks:U}of w)R.sort(u),U.sort(u)}function g({nodes:w}){for(const N of w)N.value=N.fixedValue===void 0?Math.max(rc(N.sourceLinks,ic),rc(N.targetLinks,ic)):N.fixedValue}function v({nodes:w}){const N=w.length;let P=new Set(w),R=new Set,U=0;for(;P.size;){for(const F of P){F.depth=U;for(const{target:j}of F.sourceLinks)R.add(j)}if(++U>N)throw new Error("circular link");P=R,R=new Set}}function y({nodes:w}){const N=w.length;let P=new Set(w),R=new Set,U=0;for(;P.size;){for(const F of P){F.height=U;for(const{source:j}of F.targetLinks)R.add(j)}if(++U>N)throw new Error("circular link");P=R,R=new Set}}function x({nodes:w}){const N=gg(w,U=>U.depth)+1,P=(n-e-i)/(N-1),R=new Array(N);for(const U of w){const F=Math.max(0,Math.min(N-1,Math.floor(l.call(null,U,N))));U.layer=F,U.x0=e+F*P,U.x1=U.x0+i,R[F]?R[F].push(U):R[F]=[U]}if(c)for(const U of R)U.sort(c);return R}function S(w){const N=HL(w,P=>(r-t-(P.length-1)*a)/rc(P,ic));for(const P of w){let R=t;for(const U of P){U.y0=R,U.y1=R+U.value*N,R=U.y1+a;for(const F of U.sourceLinks)F.width=F.value*N}R=(r-R+a)/(P.length+1);for(let U=0;U<P.length;++U){const F=P[U];F.y0+=R*(U+1),F.y1+=R*(U+1)}B(P)}}function _(w){const N=x(w);a=Math.min(s,(r-t)/(gg(N,P=>P.length)-1)),S(N);for(let P=0;P<f;++P){const R=Math.pow(.99,P),U=Math.max(1-R,(P+1)/f);T(N,R,U),E(N,R,U)}}function E(w,N,P){for(let R=1,U=w.length;R<U;++R){const F=w[R];for(const j of F){let K=0,ut=0;for(const{source:Y,value:ct}of j.targetLinks){let et=ct*(j.layer-Y.layer);K+=M(Y,j)*et,ut+=et}if(!(ut>0))continue;let G=(K/ut-j.y0)*N;j.y0+=G,j.y1+=G,C(j)}c===void 0&&F.sort(Oa),k(F,P)}}function T(w,N,P){for(let R=w.length,U=R-2;U>=0;--U){const F=w[U];for(const j of F){let K=0,ut=0;for(const{target:Y,value:ct}of j.sourceLinks){let et=ct*(Y.layer-j.layer);K+=$(j,Y)*et,ut+=et}if(!(ut>0))continue;let G=(K/ut-j.y0)*N;j.y0+=G,j.y1+=G,C(j)}c===void 0&&F.sort(Oa),k(F,P)}}function k(w,N){const P=w.length>>1,R=w[P];A(w,R.y0-a,P-1,N),I(w,R.y1+a,P+1,N),A(w,r,w.length-1,N),I(w,t,0,N)}function I(w,N,P,R){for(;P<w.length;++P){const U=w[P],F=(N-U.y0)*R;F>1e-6&&(U.y0+=F,U.y1+=F),N=U.y1+a}}function A(w,N,P,R){for(;P>=0;--P){const U=w[P],F=(U.y1-N)*R;F>1e-6&&(U.y0-=F,U.y1-=F),N=U.y0-a}}function C({sourceLinks:w,targetLinks:N}){if(u===void 0){for(const{source:{sourceLinks:P}}of N)P.sort(yg);for(const{target:{targetLinks:P}}of w)P.sort(vg)}}function B(w){if(u===void 0)for(const{sourceLinks:N,targetLinks:P}of w)N.sort(yg),P.sort(vg)}function M(w,N){let P=w.y0-(w.sourceLinks.length-1)*a/2;for(const{target:R,width:U}of w.sourceLinks){if(R===N)break;P+=U+a}for(const{source:R,width:U}of N.targetLinks){if(R===w)break;P-=U}return P}function $(w,N){let P=N.y0-(N.targetLinks.length-1)*a/2;for(const{source:R,width:U}of N.targetLinks){if(R===w)break;P+=U+a}for(const{target:R,width:U}of w.sourceLinks){if(R===N)break;P-=U}return P}return p}var sc=Math.PI,ac=2*sc,Wn=1e-6,YL=ac-Wn;function oc(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function wg(){return new oc}oc.prototype=wg.prototype={constructor:oc,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,s){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+s)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var s=this._x1,a=this._y1,o=n-e,l=r-t,c=s-e,u=a-t,d=c*c+u*u;if(i<0)throw new Error("negative radius: "+i);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>Wn)if(!(Math.abs(u*o-l*c)>Wn)||!i)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var h=n-s,f=r-a,p=o*o+l*l,m=h*h+f*f,g=Math.sqrt(p),v=Math.sqrt(d),y=i*Math.tan((sc-Math.acos((p+d-m)/(2*g*v)))/2),x=y/v,S=y/g;Math.abs(x-1)>Wn&&(this._+="L"+(e+x*c)+","+(t+x*u)),this._+="A"+i+","+i+",0,0,"+ +(u*h>c*f)+","+(this._x1=e+S*o)+","+(this._y1=t+S*l)}},arc:function(e,t,n,r,i,s){e=+e,t=+t,n=+n,s=!!s;var a=n*Math.cos(r),o=n*Math.sin(r),l=e+a,c=t+o,u=1^s,d=s?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+l+","+c:(Math.abs(this._x1-l)>Wn||Math.abs(this._y1-c)>Wn)&&(this._+="L"+l+","+c),n&&(d<0&&(d=d%ac+ac),d>YL?this._+="A"+n+","+n+",0,1,"+u+","+(e-a)+","+(t-o)+"A"+n+","+n+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):d>Wn&&(this._+="A"+n+","+n+",0,"+ +(d>=sc)+","+u+","+(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._}};function _g(e){return function(){return e}}function XL(e){return e[0]}function ZL(e){return e[1]}var KL=Array.prototype.slice;function QL(e){return e.source}function JL(e){return e.target}function tD(e){var t=QL,n=JL,r=XL,i=ZL,s=null;function a(){var o,l=KL.call(arguments),c=t.apply(this,l),u=n.apply(this,l);if(s||(s=o=wg()),e(s,+r.apply(this,(l[0]=c,l)),+i.apply(this,l),+r.apply(this,(l[0]=u,l)),+i.apply(this,l)),o)return s=null,o+""||null}return a.source=function(o){return arguments.length?(t=o,a):t},a.target=function(o){return arguments.length?(n=o,a):n},a.x=function(o){return arguments.length?(r=typeof o=="function"?o:_g(+o),a):r},a.y=function(o){return arguments.length?(i=typeof o=="function"?o:_g(+o),a):i},a.context=function(o){return arguments.length?(s=o??null,a):s},a}function eD(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function nD(){return tD(eD)}function rD(e){return[e.source.x1,e.y0]}function iD(e){return[e.target.x0,e.y1]}function sD(){return nD().source(rD).target(iD)}function aD(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function oD(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var lD={value:function(){}};function Eg(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Ta(n)}function Ta(e){this._=e}function cD(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Ta.prototype=Eg.prototype={constructor:Ta,on:function(e,t){var n=this._,r=cD(e+"",n),i,s=-1,a=r.length;if(arguments.length<2){for(;++s<a;)if((i=(e=r[s]).type)&&(i=uD(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++s<a;)if(i=(e=r[s]).type)n[i]=Sg(n[i],e.name,t);else if(t==null)for(i in n)n[i]=Sg(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 Ta(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,s;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(s=this._[e],r=0,i=s.length;r<i;++r)s[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,s=r.length;i<s;++i)r[i].value.apply(t,n)}};function uD(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function Sg(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=lD,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}const hD=oD(Object.freeze(Object.defineProperty({__proto__:null,dispatch:Eg},Symbol.toStringTag,{value:"Module"}))).dispatch,lc=Math.PI/180,dD={archimedean:Tg,rectangular:ED},Ri=64,Ma=2048;var fD=function(){var e=[256,256],t=pD,n=gD,r=mD,i=Og,s=Og,a=vD,o=yD,l=Tg,c=[],u=1/0,d=hD("word","end"),h=null,f=Math.random,p={},m=OD;p.canvas=function(y){return arguments.length?(m=yn(y),p):m},p.start=function(){var y=g(m()),x=SD((e[0]>>5)*e[1]),S=null,_=c.length,E=-1,T=[],k=c.map(function(A,C){return A.text=t.call(this,A,C),A.font=n.call(this,A,C),A.style=i.call(this,A,C),A.weight=s.call(this,A,C),A.rotate=a.call(this,A,C),A.size=~~r.call(this,A,C),A.padding=o.call(this,A,C),A}).sort(function(A,C){return C.size-A.size});return h&&clearInterval(h),h=setInterval(I,0),I(),p;function I(){for(var A=Date.now();Date.now()-A<u&&++E<_&&h;){var C=k[E];C.x=e[0]*(f()+.5)>>1,C.y=e[1]*(f()+.5)>>1,xD(y,C,k,E),C.hasText&&v(x,C,S)&&(T.push(C),d.call("word",p,C),S?wD(S,C):S=[{x:C.x+C.x0,y:C.y+C.y0},{x:C.x+C.x1,y:C.y+C.y1}],C.x-=e[0]>>1,C.y-=e[1]>>1)}E>=_&&(p.stop(),d.call("end",p,T,S))}},p.stop=function(){h&&(clearInterval(h),h=null);for(const y of c)delete y.sprite;return p};function g(y){const x=y.getContext("2d",{willReadFrequently:!0});y.width=y.height=1;const S=Math.sqrt(x.getImageData(0,0,1,1).data.length>>2);return y.width=(Ri<<5)/S,y.height=Ma/S,x.fillStyle=x.strokeStyle="red",{context:x,ratio:S}}function v(y,x,S){e[0],e[1];for(var _=x.x,E=x.y,T=Math.sqrt(e[0]*e[0]+e[1]*e[1]),k=l(e),I=f()<.5?1:-1,A=-I,C,B,M;(C=k(A+=I))&&(B=~~C[0],M=~~C[1],!(Math.min(Math.abs(B),Math.abs(M))>=T));)if(x.x=_+B,x.y=E+M,!(x.x+x.x0<0||x.y+x.y0<0||x.x+x.x1>e[0]||x.y+x.y1>e[1])&&(!S||_D(x,S))&&!bD(x,y,e[0])){for(var $=x.sprite,w=x.width>>5,N=e[0]>>5,P=x.x-(w<<4),R=P&127,U=32-R,F=x.y1-x.y0,j=(x.y+x.y0)*N+(P>>5),K,ut=0;ut<F;ut++){K=0;for(var G=0;G<=w;G++)y[j+G]|=K<<U|(G<w?(K=$[ut*w+G])>>>R:0);j+=N}return!0}return!1}return p.timeInterval=function(y){return arguments.length?(u=y??1/0,p):u},p.words=function(y){return arguments.length?(c=y,p):c},p.size=function(y){return arguments.length?(e=[+y[0],+y[1]],p):e},p.font=function(y){return arguments.length?(n=yn(y),p):n},p.fontStyle=function(y){return arguments.length?(i=yn(y),p):i},p.fontWeight=function(y){return arguments.length?(s=yn(y),p):s},p.rotate=function(y){return arguments.length?(a=yn(y),p):a},p.text=function(y){return arguments.length?(t=yn(y),p):t},p.spiral=function(y){return arguments.length?(l=dD[y]||y,p):l},p.fontSize=function(y){return arguments.length?(r=yn(y),p):r},p.padding=function(y){return arguments.length?(o=yn(y),p):o},p.random=function(y){return arguments.length?(f=y,p):f},p.on=function(){var y=d.on.apply(d,arguments);return y===d?p:y},p};function pD(e){return e.text}function gD(){return"serif"}function Og(){return"normal"}function mD(e){return Math.sqrt(e.value)}function vD(){return(~~(random()*6)-3)*30}function yD(){return 1}function xD(e,t,n,r){if(!t.sprite){var i=e.context,s=e.ratio;i.clearRect(0,0,(Ri<<5)/s,Ma/s);var a=0,o=0,l=0,c=n.length;for(--r;++r<c;){t=n[r],i.save(),i.font=t.style+" "+t.weight+" "+~~((t.size+1)/s)+"px "+t.font;const C=i.measureText(t.text),B=-Math.floor(C.width/2);let M=(C.width+1)*s,$=t.size<<1;if(t.rotate){var u=Math.sin(t.rotate*lc),d=Math.cos(t.rotate*lc),h=M*d,f=M*u,p=$*d,m=$*u;M=Math.max(Math.abs(h+m),Math.abs(h-m))+31>>5<<5,$=~~Math.max(Math.abs(f+p),Math.abs(f-p))}else M=M+31>>5<<5;if($>l&&(l=$),a+M>=Ri<<5&&(a=0,o+=l,l=0),o+$>=Ma)break;i.translate((a+(M>>1))/s,(o+($>>1))/s),t.rotate&&i.rotate(t.rotate*lc),i.fillText(t.text,B,0),t.padding&&(i.lineWidth=2*t.padding,i.strokeText(t.text,B,0)),i.restore(),t.width=M,t.height=$,t.xoff=a,t.yoff=o,t.x1=M>>1,t.y1=$>>1,t.x0=-t.x1,t.y0=-t.y1,t.hasText=!0,a+=M}for(var g=i.getImageData(0,0,(Ri<<5)/s,Ma/s).data,v=[];--r>=0;)if(t=n[r],!!t.hasText){for(var y=t.width,x=y>>5,S=t.y1-t.y0,_=0;_<S*x;_++)v[_]=0;if(a=t.xoff,a==null)return;o=t.yoff;for(var E=0,T=-1,k=0;k<S;k++){for(var _=0;_<y;_++){var I=x*k+(_>>5),A=g[(o+k)*(Ri<<5)+(a+_)<<2]?1<<31-_%32:0;v[I]|=A,E|=A}E?T=k:(t.y0++,S--,k--,o++)}t.y1=t.y0+T,t.sprite=v.slice(0,(t.y1-t.y0)*x)}}}function bD(e,t,n){n>>=5;for(var r=e.sprite,i=e.width>>5,s=e.x-(i<<4),a=s&127,o=32-a,l=e.y1-e.y0,c=(e.y+e.y0)*n+(s>>5),u,d=0;d<l;d++){u=0;for(var h=0;h<=i;h++)if((u<<o|(h<i?(u=r[d*i+h])>>>a:0))&t[c+h])return!0;c+=n}return!1}function wD(e,t){var n=e[0],r=e[1];t.x+t.x0<n.x&&(n.x=t.x+t.x0),t.y+t.y0<n.y&&(n.y=t.y+t.y0),t.x+t.x1>r.x&&(r.x=t.x+t.x1),t.y+t.y1>r.y&&(r.y=t.y+t.y1)}function _D(e,t){return e.x+e.x1>t[0].x&&e.x+e.x0<t[1].x&&e.y+e.y1>t[0].y&&e.y+e.y0<t[1].y}function Tg(e){var t=e[0]/e[1];return function(n){return[t*(n*=.1)*Math.cos(n),n*Math.sin(n)]}}function ED(e){var t=4,n=t*e[0]/e[1],r=0,i=0;return function(s){var a=s<0?-1:1;switch(Math.sqrt(1+4*a*s)-a&3){case 0:r+=n;break;case 1:i+=t;break;case 2:r-=n;break;default:i-=t;break}return[r,i]}}function SD(e){for(var t=[],n=-1;++n<e;)t[n]=0;return t}function OD(){return document.createElement("canvas")}function yn(e){return typeof e=="function"?e:function(){return e}}const TD=aD(fD);function MD(e,t,n,r){var i=-1,s=e==null?0:e.length;for(r&&s&&(n=e[++i]);++i<s;)n=t(n,e[i],i,e);return n}function CD(e){return function(t){return e==null?void 0:e[t]}}var $D={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},AD=CD($D);const LD=AD;var DD=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,kD="\\u0300-\\u036f",RD="\\ufe20-\\ufe2f",ID="\\u20d0-\\u20ff",ND=kD+RD+ID,PD="["+ND+"]",UD=RegExp(PD,"g");function BD(e){return e=Ti(e),e&&e.replace(DD,LD).replace(UD,"")}var VD=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function HD(e){return e.match(VD)||[]}var GD=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function FD(e){return GD.test(e)}var Mg="\\ud800-\\udfff",zD="\\u0300-\\u036f",jD="\\ufe20-\\ufe2f",WD="\\u20d0-\\u20ff",qD=zD+jD+WD,Cg="\\u2700-\\u27bf",$g="a-z\\xdf-\\xf6\\xf8-\\xff",YD="\\xac\\xb1\\xd7\\xf7",XD="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ZD="\\u2000-\\u206f",KD=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ag="A-Z\\xc0-\\xd6\\xd8-\\xde",QD="\\ufe0e\\ufe0f",Lg=YD+XD+ZD+KD,Dg="['’]",kg="["+Lg+"]",JD="["+qD+"]",Rg="\\d+",tk="["+Cg+"]",Ig="["+$g+"]",Ng="[^"+Mg+Lg+Rg+Cg+$g+Ag+"]",ek="\\ud83c[\\udffb-\\udfff]",nk="(?:"+JD+"|"+ek+")",rk="[^"+Mg+"]",Pg="(?:\\ud83c[\\udde6-\\uddff]){2}",Ug="[\\ud800-\\udbff][\\udc00-\\udfff]",Or="["+Ag+"]",ik="\\u200d",Bg="(?:"+Ig+"|"+Ng+")",sk="(?:"+Or+"|"+Ng+")",Vg="(?:"+Dg+"(?:d|ll|m|re|s|t|ve))?",Hg="(?:"+Dg+"(?:D|LL|M|RE|S|T|VE))?",Gg=nk+"?",Fg="["+QD+"]?",ak="(?:"+ik+"(?:"+[rk,Pg,Ug].join("|")+")"+Fg+Gg+")*",ok="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",lk="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ck=Fg+Gg+ak,uk="(?:"+[tk,Pg,Ug].join("|")+")"+ck,hk=RegExp([Or+"?"+Ig+"+"+Vg+"(?="+[kg,Or,"$"].join("|")+")",sk+"+"+Hg+"(?="+[kg,Or+Bg,"$"].join("|")+")",Or+"?"+Bg+"+"+Vg,Or+"+"+Hg,lk,ok,Rg,uk].join("|"),"g");function dk(e){return e.match(hk)||[]}function fk(e,t,n){return e=Ti(e),t=n?void 0:t,t===void 0?FD(e)?dk(e):HD(e):e.match(t)||[]}var pk="['’]",gk=RegExp(pk,"g");function zg(e){return function(t){return MD(fk(BD(t).replace(gk,"")),e,"")}}function mk(e,t,n){return e===e&&(n!==void 0&&(e=e<=n?e:n),t!==void 0&&(e=e>=t?e:t)),e}function jg(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=ki(n),n=n===n?n:0),t!==void 0&&(t=ki(t),t=t===t?t:0),mk(ki(e),t,n)}function vk(e,t){var n=-1,r=Vn(e)?Array(e.length):[];return Zl(e,function(i,s,a){r[++n]=t(i,s,a)}),r}function yk(e,t){var n=Ht(e)?Mf:vk;return n(e,ga(t))}var xk=1/0;function bk(e,t){return ua(yk(e,t),xk)}function Wg(e,t){return pa(e,t)}var wk=zg(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()});const Tr=wk;function _k(e,t){var n;return Zl(e,function(r,i,s){return n=t(r,i,s),!n}),!!n}function Ek(e,t,n){var r=Ht(e)?wp:_k;return n&&Pf(e,t,n)&&(t=void 0),r(e,ga(t))}class lt{constructor(t,n,r){if(this.type="",this.renderType=q.HTML,this.id="",this.parent=void 0,this.configs={},this.model=t,this.services=n,r&&(this.configs=r,this.configs.id)){const i=b(this.model.getOptions(),"style","prefix");this.id=`${i}--${this.configs.id}`}this.parent||this.setParent(D(this.services.domUtils.getMainContainer()))}init(){}render(t=!0){console.error("Error: Component did not provide the required render function.")}destroy(){}setModel(t){this.model=t}setServices(t){this.services=t}setParent(t){var n;const r=this.parent;if(this.parent=t,!(r&&r.node()===t.node())&&this.type){const i=b(this.model.getOptions(),"style","prefix");(n=this.parent)==null||n.classed(`${ne}--${i}--${this.type}`,!0),r&&r.classed(`${ne}--${i}--${this.type}`,!1)}}getParent(){return this.parent}getComponentContainer(t={withinChartClip:!1}){if(this.type){const n=b(this.model.getOptions(),"style","prefix"),r=this.id?`#${this.id}`:"",i=L.appendOrSelect(this.parent,`${this.renderType===q.SVG?"svg":"div"}${r}.${ne}--${n}--${this.type}`);if(t.withinChartClip){const s=this.model.get("chartClipId");if(s){const a=D(`#${s}`).select("rect");a.size()!==0&&parseFloat(a.attr("height"))>0&&i.attr("clip-path",`url(#${s})`)}}return i.attr("width","100%").attr("height","100%")}return this.parent}getOptions(){return this.configs.options?Z({},this.model.getOptions(),this.configs.options):this.model.getOptions()}}const qg=class yv extends lt{constructor(){super(...arguments),this.type="toolbar",this.renderType=q.HTML}init(){const t=()=>this.updateOverflowMenu(!1);this.services.events.addEventListener(O.Toolbar.SHOW_OVERFLOW_MENU,()=>{this.renderOverflowMenu(),document.body.addEventListener("click",t)}),this.services.events.addEventListener(O.Toolbar.HIDE_OVERFLOW_MENU,()=>{document.body.removeEventListener("click",t)})}render(t=!0){const n=this.getComponentContainer().attr("role","toolbar").attr("aria-label",`chart-${this.services.domUtils.getChartID()} toolbar`);if(b(this.getOptions(),"data","loading"))n.html(""),this.overflowMenu=null;else{this.overflowMenu||(this.overflowMenu=n.append("div").attr("class","cds--overflow-menu-options cds--overflow-menu--flip cds--overflow-menu-options cds--overflow-menu--flip").attr("tabindex",-1).html("<ul role='menu'></ul>"));const{buttonList:r,overflowMenuItemList:i}=this.getControlConfigs();i&&r.push(this.getOverflowButtonConfig());const s=n.selectAll("div.toolbar-control").data(r,l=>l.id);s.exit().remove();const a=s.enter().append("div").attr("class","toolbar-control cds--overflow-menu cds--overflow-menu").attr("role","button"),o=this;a.merge(s).classed("disabled",l=>l.shouldBeDisabled()).attr("aria-disabled",l=>l.shouldBeDisabled()).attr("aria-label",l=>l.title).html(l=>`
1
+ (function(nt,xe){typeof exports=="object"&&typeof module<"u"?xe(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],xe):(nt=typeof globalThis<"u"?globalThis:nt||self,xe(nt.ChartsVue={},nt.Vue))})(this,function(nt,xe){"use strict";var Nc=(e=>(e.RENDER_FINISHED="render-finished",e.RESIZE="chart-resize",e.MOUSEOVER="chart-mouseover",e.MOUSEOUT="chart-mouseout",e))(Nc||{}),Pc=(e=>(e.SHOW="show-modal",e.HIDE="hide-modal",e))(Pc||{}),Uc=(e=>(e.UPDATE="model-update",e))(Uc||{}),Bc=(e=>(e.SHOW_OVERFLOW_MENU="show-toolbar-overflow-menu",e.HIDE_OVERFLOW_MENU="hide-toolbar-overflow-menu",e.BUTTON_CLICK="toolbar-button-click",e))(Bc||{}),Vc=(e=>(e.UPDATE="zoom-bar-update",e.SELECTION_START="zoom-bar-selection-start",e.SELECTION_IN_PROGRESS="zoom-bar-selection-in-progress",e.SELECTION_END="zoom-bar-selection-end",e))(Vc||{}),Hc=(e=>(e.CHANGE="zoom-domain-change",e))(Hc||{}),Gc=(e=>(e.CANVAS_ZOOM_IN="canvas-zoom-in",e.CANVAS_ZOOM_OUT="canvas-zoom-out",e))(Gc||{}),Fc=(e=>(e.LABEL_MOUSEOVER="axis-label-mouseover",e.LABEL_MOUSEMOVE="axis-label-mousemove",e.LABEL_CLICK="axis-label-click",e.LABEL_MOUSEOUT="axis-label-mouseout",e.LABEL_FOCUS="axis-label-focus",e.LABEL_BLUR="axis-label-blur",e.RENDER_COMPLETE="axis-render-complete",e))(Fc||{}),zc=(e=>(e.POINT_MOUSEOVER="scatter-mouseover",e.POINT_MOUSEMOVE="scatter-mousemove",e.POINT_CLICK="scatter-click",e.POINT_MOUSEOUT="scatter-mouseout",e))(zc||{}),jc=(e=>(e.WORD_MOUSEOVER="wordcloud-word-mouseover",e.WORD_MOUSEMOVE="wordcloud-word-mousemove",e.WORD_CLICK="wordcloud-word-click",e.WORD_MOUSEOUT="wordcloud-word-mouseout",e))(jc||{}),Wc=(e=>(e.SLICE_MOUSEOVER="pie-slice-mouseover",e.SLICE_MOUSEMOVE="pie-slice-mousemove",e.SLICE_CLICK="pie-slice-click",e.SLICE_MOUSEOUT="pie-slice-mouseout",e))(Wc||{}),qc=(e=>(e.ARC_MOUSEOVER="gauge-arc-mouseover",e.ARC_MOUSEMOVE="gauge-arc-mousemove",e.ARC_CLICK="gauge-arc-click",e.ARC_MOUSEOUT="gauge-arc-mouseout",e))(qc||{}),Yc=(e=>(e.BAR_MOUSEOVER="bar-mouseover",e.BAR_MOUSEMOVE="bar-mousemove",e.BAR_CLICK="bar-click",e.BAR_MOUSEOUT="bar-mouseout",e))(Yc||{}),Xc=(e=>(e.BOX_MOUSEOVER="box-mouseover",e.BOX_MOUSEMOVE="box-mousemove",e.BOX_CLICK="box-click",e.BOX_MOUSEOUT="box-mouseout",e.OUTLIER_MOUSEOVER="outlier-mouseover",e.OUTLIER_MOUSEMOVE="outlier-mousemove",e.OUTLIER_CLICK="outlier-click",e.OUTLIER_MOUSEOUT="outlier-mouseout",e))(Xc||{}),Zc=(e=>(e.SCATTER_MOUSEOVER="scatter-mouseover",e.SCATTER_MOUSEMOVE="scatter-mousemove",e.SCATTER_CLICK="scatter-click",e.SCATTER_MOUSEOUT="scatter-mouseout",e))(Zc||{}),Kc=(e=>(e.POINT_MOUSEOVER="scatter-mouseover",e.POINT_MOUSEMOVE="scatter-mousemove",e.POINT_CLICK="scatter-click",e.POINT_MOUSEOUT="scatter-mouseout",e))(Kc||{}),Qc=(e=>(e.X_AXIS_MOUSEOVER="radar-x-axis-mouseover",e.X_AXIS_MOUSEMOVE="radar-x-axis-mousemove",e.X_AXIS_CLICK="radar-x-axis-click",e.X_AXIS_MOUSEOUT="radar-x-axis-mouseout",e))(Qc||{}),Jc=(e=>(e.NODE_MOUSEOVER="tree-node-mouseover",e.NODE_CLICK="tree-node-click",e.NODE_MOUSEOUT="tree-node-mouseout",e))(Jc||{}),tu=(e=>(e.LEAF_MOUSEOVER="leaf-mouseover",e.LEAF_MOUSEMOVE="leaf-mousemove",e.LEAF_CLICK="leaf-click",e.LEAF_MOUSEOUT="leaf-mouseout",e))(tu||{}),Dr=(e=>(e.SHOW="show-tooltip",e.MOVE="move-tooltip",e.HIDE="hide-tooltip",e))(Dr||{}),eu=(e=>(e.SHOW="show-threshold",e.HIDE="hide-threshold",e))(eu||{}),nu=(e=>(e.ITEM_HOVER="legend-item-onhover",e.ITEM_CLICK="legend-item-onclick",e.ITEM_MOUSEOUT="legend-item-onmouseout",e.ITEMS_UPDATE="legend-items-update",e))(nu||{}),ru=(e=>(e.CIRCLE_MOUSEOVER="circle-leaf-mouseover",e.CIRCLE_CLICK="circle-leaf-click",e.CIRCLE_MOUSEOUT="circle-leaf-mouseout",e.CIRCLE_MOUSEMOVE="circle-leaf-mousemove",e))(ru||{}),iu=(e=>(e.NODE_MOUSEOVER="alluvial-node-mouseover",e.NODE_CLICK="alluvial-node-click",e.NODE_MOUSEOUT="alluvial-node-mouseout",e.NODE_MOUSEMOVE="alluvial-node-mousemove",e.LINE_MOUSEOVER="alluvial-line-mouseover",e.LINE_CLICK="alluvial-line-click",e.LINE_MOUSEOUT="alluvial-line-mouseout",e.LINE_MOUSEMOVE="alluvial-line-mousemove",e))(iu||{}),su=(e=>(e.METER_MOUSEOVER="meter-mouseover",e.METER_CLICK="meter-click",e.METER_MOUSEOUT="meter-mouseout",e.METER_MOUSEMOVE="meter-mousemove",e))(su||{}),au=(e=>(e.HEATMAP_MOUSEOVER="heatmap-mouseover",e.HEATMAP_CLICK="heatmap-click",e.HEATMAP_MOUSEOUT="heatmap-mouseout",e.HEATMAP_MOUSEMOVE="hetmap-mousemove",e))(au||{}),qn=(e=>(e.CHOROPLETH_MOUSEOVER="choropleth-mouseover",e.CHOROPLETH_CLICK="choropleth-click",e.CHOROPLETH_MOUSEOUT="choropleth-mouseout",e.CHOROPLETH_MOUSEMOVE="choropleth-mousemove",e))(qn||{});const bv=Object.freeze(Object.defineProperty({__proto__:null,Alluvial:iu,Area:zc,Axis:Fc,Bar:Yc,Boxplot:Xc,CanvasZoom:Gc,Chart:Nc,Choropleth:qn,CirclePack:ru,Gauge:qc,Heatmap:au,Legend:nu,Line:Kc,Meter:su,Modal:Pc,Model:Uc,Pie:Wc,Radar:Qc,Scatter:Zc,Threshold:eu,Toolbar:Bc,Tooltip:Dr,Tree:Jc,Treemap:tu,WordCloud:jc,ZoomBar:Vc,ZoomDomain:Hc},Symbol.toStringTag,{value:"Module"})),O=bv;var q=(e=>(e.HTML="html",e.SVG="svg",e))(q||{}),ou=(e=>(e.WHITE="white",e.G100="g100",e.G90="g90",e.G10="g10",e))(ou||{}),X=(e=>(e.BACKGROUND="background",e.FILL="fill",e.STROKE="stroke",e.TOOLTIP="tooltip",e))(X||{}),V=(e=>(e.LEFT="left",e.RIGHT="right",e.TOP="top",e.BOTTOM="bottom",e))(V||{}),De=(e=>(e.GRAPH_VIEW="graph_view",e.SLIDER_VIEW="slider_view",e))(De||{}),be=(e=>(e.END_LINE="end_line",e.MID_LINE="mid_line",e.FRONT_LINE="front_line",e.NONE="none",e))(be||{}),Bt=(e=>(e.VERTICAL="vertical",e.HORIZONTAL="horizontal",e))(Bt||{}),W=(e=>(e.TIME="time",e.LINEAR="linear",e.LOG="log",e.LABELS="labels",e.LABELS_RATIO="labels-ratio",e))(W||{}),kr=(e=>(e.RIGHT="right",e.LEFT="left",e.TOP="top",e.BOTTOM="bottom",e))(kr||{}),Rt=(e=>(e.LEFT="left",e.CENTER="center",e.RIGHT="right",e))(Rt||{}),Rr=(e=>(e.HORIZONTAL="horizontal",e.VERTICAL="vertical",e))(Rr||{}),Ba=(e=>(e.TREE="tree",e.DENDROGRAM="dendrogram",e))(Ba||{}),bt=(e=>(e.ROW="row",e.COLUMN="column",e.ROW_REVERSE="row-reverse",e.COLUMN_REVERSE="column-reverse",e))(bt||{}),tt=(e=>(e.FIXED="fixed",e.PREFERRED="preferred",e.STRETCH="stretch",e))(tt||{}),Yn=(e=>(e.CENTER="center",e))(Yn||{}),Bi=(e=>(e.LEFT="left",e.RIGHT="right",e))(Bi||{}),It=(e=>(e.GRID="grid",e.VERT_OR_HORIZ="vertOrHoriz",e.PIE="pie",e.DONUT="donut",e))(It||{}),He=(e=>(e.START="start",e.MIDDLE="middle",e.END="end",e))(He||{}),Ge=(e=>(e.BASELINE="baseline",e.MIDDLE="middle",e.HANGING="hanging",e))(Ge||{}),Xn=(e=>(e.SEMI="semi",e.FULL="full",e))(Xn||{}),Va=(e=>(e.UP="up",e.DOWN="down",e))(Va||{}),Vi=(e=>(e.SUCCESS="success",e.WARNING="warning",e.DANGER="danger",e))(Vi||{}),Hi=(e=>(e.ALWAYS="always",e.AUTO="auto",e.NEVER="never",e))(Hi||{}),fe=(e=>(e.SCATTER="scatter",e.LINE="line",e.SIMPLE_BAR="simple-bar",e.STACKED_BAR="stacked-bar",e.GROUPED_BAR="grouped-bar",e.AREA="area",e.STACKED_AREA="stacked-area",e))(fe||{}),Mt=(e=>(e.EXPORT_CSV="Export as CSV",e.EXPORT_PNG="Export as PNG",e.EXPORT_JPG="Export as JPG",e.ZOOM_IN="Zoom in",e.ZOOM_OUT="Zoom out",e.RESET_ZOOM="Reset zoom",e.MAKE_FULLSCREEN="Make fullscreen",e.SHOW_AS_DATATABLE="Show as data-table",e.CUSTOM="Custom",e))(Mt||{}),Ha=(e=>(e.LEFT="left",e.RIGHT="right",e))(Ha||{}),Nt=(e=>(e.CHECKBOX="checkbox",e.RADIUS="radius",e.AREA="area",e.SIZE="size",e.LINE="line",e.QUARTILE="quartile",e.ZOOM="zoom",e))(Nt||{}),Gi=(e=>(e.LINEAR="linear",e.QUANTIZE="quantize",e))(Gi||{}),Ir=(e=>(e.ON="on",e.AUTO="auto",e.OFF="off",e))(Ir||{}),Fi=(e=>(e.DEFAULT="default",e.HOVERABLE="hoverable",e))(Fi||{}),Fe=(e=>(e.geoEqualEarth="geoEqualEarth",e.geoAlbers="geoAlbers",e.geoConicEqualArea="geoConicEqualArea",e.geoConicEquidistant="geoConicEquidistant",e.geoEquirectangular="geoEquirectangular",e.geoMercator="geoMercator",e.geoNaturalEarth1="geoNaturalEarth1",e))(Fe||{});function wn(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function wv(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Ga(e){let t,n,r;e.length!==2?(t=wn,n=(o,l)=>wn(e(o),l),r=(o,l)=>e(o)-l):(t=e===wn||e===wv?e:_v,n=e,r=e);function i(o,l,c=0,u=o.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(o[d],l)<0?c=d+1:u=d}while(c<u)}return c}function s(o,l,c=0,u=o.length){if(c<u){if(t(l,l)!==0)return u;do{const d=c+u>>>1;n(o[d],l)<=0?c=d+1:u=d}while(c<u)}return c}function a(o,l,c=0,u=o.length){const d=i(o,l,c,u-1);return d>c&&r(o[d-1],l)>-r(o[d],l)?d-1:d}return{left:i,center:a,right:s}}function _v(){return 0}function Ev(e){return e===null?NaN:+e}function*Sv(e,t){if(t===void 0)for(let n of e)n!=null&&(n=+n)>=n&&(yield n);else{let n=-1;for(let r of e)(r=t(r,++n,e))!=null&&(r=+r)>=r&&(yield r)}}const Ov=Ga(wn).right;Ga(Ev).center;const Fa=Ov;function Tv(e,t){let n=0;if(t===void 0)for(let r of e)r!=null&&(r=+r)>=r&&++n;else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(i=+i)>=i&&++n}return n}function we(e,t){let n,r;if(t===void 0)for(const i of e)i!=null&&(n===void 0?i>=i&&(n=r=i):(n>i&&(n=i),r<i&&(r=i)));else{let i=-1;for(let s of e)(s=t(s,++i,e))!=null&&(n===void 0?s>=s&&(n=r=s):(n>s&&(n=s),r<s&&(r=s)))}return[n,r]}class _n{constructor(){this._partials=new Float64Array(32),this._n=0}add(t){const n=this._partials;let r=0;for(let i=0;i<this._n&&i<32;i++){const s=n[i],a=t+s,o=Math.abs(t)<Math.abs(s)?t-(a-s):s-(a-t);o&&(n[r++]=o),t=a}return n[r]=t,this._n=r+1,this}valueOf(){const t=this._partials;let n=this._n,r,i,s,a=0;if(n>0){for(a=t[--n];n>0&&(r=a,i=t[--n],a=r+i,s=i-(a-r),!s););n>0&&(s<0&&t[n-1]<0||s>0&&t[n-1]>0)&&(i=s*2,r=a+i,i==r-a&&(a=r))}return a}}class lu extends Map{constructor(t,n=$v){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(cu(this,t))}has(t){return super.has(cu(this,t))}set(t,n){return super.set(Mv(this,t),n)}delete(t){return super.delete(Cv(this,t))}}function cu({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Mv({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Cv({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function $v(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Av(e){return e}function Lv(e=wn){if(e===wn)return uu;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function uu(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}var Dv=Array.prototype,kv=Dv.slice;function za(e){return()=>e}const Rv=Math.sqrt(50),Iv=Math.sqrt(10),Nv=Math.sqrt(2);function zi(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),s=r/Math.pow(10,i),a=s>=Rv?10:s>=Iv?5:s>=Nv?2:1;let o,l,c;return i<0?(c=Math.pow(10,-i)/a,o=Math.round(e*c),l=Math.round(t*c),o/c<e&&++o,l/c>t&&--l,c=-c):(c=Math.pow(10,i)*a,o=Math.round(e/c),l=Math.round(t/c),o*c<e&&++o,l*c>t&&--l),l<o&&.5<=n&&n<2?zi(e,t,n*2):[o,l,c]}function ji(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,s,a]=r?zi(t,e,n):zi(e,t,n);if(!(s>=i))return[];const o=s-i+1,l=new Array(o);if(r)if(a<0)for(let c=0;c<o;++c)l[c]=(s-c)/-a;else for(let c=0;c<o;++c)l[c]=(s-c)*a;else if(a<0)for(let c=0;c<o;++c)l[c]=(i+c)/-a;else for(let c=0;c<o;++c)l[c]=(i+c)*a;return l}function Zn(e,t,n){return t=+t,e=+e,n=+n,zi(e,t,n)[2]}function ja(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?Zn(t,e,n):Zn(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function Pv(e,t,n){let r;for(;;){const i=Zn(e,t,n);if(i===r||i===0||!isFinite(i))return[e,t];i>0?(e=Math.floor(e/i)*i,t=Math.ceil(t/i)*i):i<0&&(e=Math.ceil(e*i)/i,t=Math.floor(t*i)/i),r=i}}function Uv(e){return Math.max(1,Math.ceil(Math.log(Tv(e))/Math.LN2)+1)}function Bv(){var e=Av,t=we,n=Uv;function r(i){Array.isArray(i)||(i=Array.from(i));var s,a=i.length,o,l,c=new Array(a);for(s=0;s<a;++s)c[s]=e(i[s],s,i);var u=t(c),d=u[0],h=u[1],f=n(c,d,h);if(!Array.isArray(f)){const x=h,S=+f;if(t===we&&([d,h]=Pv(d,h,S)),f=ji(d,h,S),f[0]<=d&&(l=Zn(d,h,S)),f[f.length-1]>=h)if(x>=h&&t===we){const _=Zn(d,h,S);isFinite(_)&&(_>0?h=(Math.floor(h/_)+1)*_:_<0&&(h=(Math.ceil(h*-_)+1)/-_))}else f.pop()}for(var p=f.length,m=0,g=p;f[m]<=d;)++m;for(;f[g-1]>h;)--g;(m||g<p)&&(f=f.slice(m,g),p=g-m);var v=new Array(p+1),y;for(s=0;s<=p;++s)y=v[s]=[],y.x0=s>0?f[s-1]:d,y.x1=s<p?f[s]:h;if(isFinite(l)){if(l>0)for(s=0;s<a;++s)(o=c[s])!=null&&d<=o&&o<=h&&v[Math.min(p,Math.floor((o-d)/l))].push(i[s]);else if(l<0){for(s=0;s<a;++s)if((o=c[s])!=null&&d<=o&&o<=h){const x=Math.floor((d-o)*l);v[Math.min(p,x+(f[x]<=o))].push(i[s])}}}else for(s=0;s<a;++s)(o=c[s])!=null&&d<=o&&o<=h&&v[Fa(f,o,0,p)].push(i[s]);return v}return r.value=function(i){return arguments.length?(e=typeof i=="function"?i:za(i),r):e},r.domain=function(i){return arguments.length?(t=typeof i=="function"?i:za([i[0],i[1]]),r):t},r.thresholds=function(i){return arguments.length?(n=typeof i=="function"?i:za(Array.isArray(i)?kv.call(i):i),r):n},r}function En(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);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}function un(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);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}function hu(e,t,n=0,r=1/0,i){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(i=i===void 0?uu:Lv(i);r>n;){if(r-n>600){const l=r-n+1,c=t-n+1,u=Math.log(l),d=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*d*(l-d)/l)*(c-l/2<0?-1:1),f=Math.max(n,Math.floor(t-c*d/l+h)),p=Math.min(r,Math.floor(t+(l-c)*d/l+h));hu(e,t,f,p,i)}const s=e[t];let a=n,o=r;for(Nr(e,n,t),i(e[r],s)>0&&Nr(e,n,r);a<o;){for(Nr(e,a,o),++a,--o;i(e[a],s)<0;)++a;for(;i(e[o],s)>0;)--o}i(e[n],s)===0?Nr(e,n,o):(++o,Nr(e,o,r)),o<=t&&(n=o+1),t<=o&&(r=o-1)}return e}function Nr(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Wa(e,t,n){if(e=Float64Array.from(Sv(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return un(e);if(t>=1)return En(e);var r,i=(r-1)*t,s=Math.floor(i),a=En(hu(e,s).subarray(0,s+1)),o=un(e.subarray(s+1));return a+(o-a)*(i-s)}}function*Vv(e){for(const t of e)yield*t}function du(e){return Array.from(Vv(e))}function Hv(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,s=new Array(i);++r<i;)s[r]=e+r*n;return s}function Gv(e){return e}var Wi=1,qi=2,qa=3,Pr=4,fu=1e-6;function Fv(e){return"translate("+e+",0)"}function zv(e){return"translate(0,"+e+")"}function jv(e){return t=>+e(t)}function Wv(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function qv(){return!this.__axis}function Yi(e,t){var n=[],r=null,i=null,s=6,a=6,o=3,l=typeof window<"u"&&window.devicePixelRatio>1?0:.5,c=e===Wi||e===Pr?-1:1,u=e===Pr||e===qi?"x":"y",d=e===Wi||e===qa?Fv:zv;function h(f){var p=r??(t.ticks?t.ticks.apply(t,n):t.domain()),m=i??(t.tickFormat?t.tickFormat.apply(t,n):Gv),g=Math.max(s,0)+o,v=t.range(),y=+v[0]+l,x=+v[v.length-1]+l,S=(t.bandwidth?Wv:jv)(t.copy(),l),_=f.selection?f.selection():f,E=_.selectAll(".domain").data([null]),T=_.selectAll(".tick").data(p,t).order(),k=T.exit(),I=T.enter().append("g").attr("class","tick"),A=T.select("line"),C=T.select("text");E=E.merge(E.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),T=T.merge(I),A=A.merge(I.append("line").attr("stroke","currentColor").attr(u+"2",c*s)),C=C.merge(I.append("text").attr("fill","currentColor").attr(u,c*g).attr("dy",e===Wi?"0em":e===qa?"0.71em":"0.32em")),f!==_&&(E=E.transition(f),T=T.transition(f),A=A.transition(f),C=C.transition(f),k=k.transition(f).attr("opacity",fu).attr("transform",function(B){return isFinite(B=S(B))?d(B+l):this.getAttribute("transform")}),I.attr("opacity",fu).attr("transform",function(B){var M=this.parentNode.__axis;return d((M&&isFinite(M=M(B))?M:S(B))+l)})),k.remove(),E.attr("d",e===Pr||e===qi?a?"M"+c*a+","+y+"H"+l+"V"+x+"H"+c*a:"M"+l+","+y+"V"+x:a?"M"+y+","+c*a+"V"+l+"H"+x+"V"+c*a:"M"+y+","+l+"H"+x),T.attr("opacity",1).attr("transform",function(B){return d(S(B)+l)}),A.attr(u+"2",c*s),C.attr(u,c*g).text(m),_.filter(qv).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===qi?"start":e===Pr?"end":"middle"),_.each(function(){this.__axis=S})}return h.scale=function(f){return arguments.length?(t=f,h):t},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(f){return arguments.length?(n=f==null?[]:Array.from(f),h):n.slice()},h.tickValues=function(f){return arguments.length?(r=f==null?null:Array.from(f),h):r&&r.slice()},h.tickFormat=function(f){return arguments.length?(i=f,h):i},h.tickSize=function(f){return arguments.length?(s=a=+f,h):s},h.tickSizeInner=function(f){return arguments.length?(s=+f,h):s},h.tickSizeOuter=function(f){return arguments.length?(a=+f,h):a},h.tickPadding=function(f){return arguments.length?(o=+f,h):o},h.offset=function(f){return arguments.length?(l=+f,h):l},h}function Yv(e){return Yi(Wi,e)}function Xv(e){return Yi(qi,e)}function Ya(e){return Yi(qa,e)}function pu(e){return Yi(Pr,e)}var Zv={value:()=>{}};function Xa(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Xi(n)}function Xi(e){this._=e}function Kv(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Xi.prototype=Xa.prototype={constructor:Xi,on:function(e,t){var n=this._,r=Kv(e+"",n),i,s=-1,a=r.length;if(arguments.length<2){for(;++s<a;)if((i=(e=r[s]).type)&&(i=Qv(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++s<a;)if(i=(e=r[s]).type)n[i]=gu(n[i],e.name,t);else if(t==null)for(i in n)n[i]=gu(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 Xi(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,s;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(s=this._[e],r=0,i=s.length;r<i;++r)s[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,s=r.length;i<s;++i)r[i].value.apply(t,n)}};function Qv(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function gu(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=Zv,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var Za="http://www.w3.org/1999/xhtml";const mu={svg:"http://www.w3.org/2000/svg",xhtml:Za,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Zi(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),mu.hasOwnProperty(t)?{space:mu[t],local:e}:e}function Jv(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===Za&&t.documentElement.namespaceURI===Za?t.createElement(e):t.createElementNS(n,e)}}function t0(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function vu(e){var t=Zi(e);return(t.local?t0:Jv)(t)}function e0(){}function Ka(e){return e==null?e0:function(){return this.querySelector(e)}}function n0(e){typeof e!="function"&&(e=Ka(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var s=t[i],a=s.length,o=r[i]=new Array(a),l,c,u=0;u<a;++u)(l=s[u])&&(c=e.call(l,l.__data__,u,s))&&("__data__"in l&&(c.__data__=l.__data__),o[u]=c);return new ae(r,this._parents)}function r0(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function i0(){return[]}function yu(e){return e==null?i0:function(){return this.querySelectorAll(e)}}function s0(e){return function(){return r0(e.apply(this,arguments))}}function a0(e){typeof e=="function"?e=s0(e):e=yu(e);for(var t=this._groups,n=t.length,r=[],i=[],s=0;s<n;++s)for(var a=t[s],o=a.length,l,c=0;c<o;++c)(l=a[c])&&(r.push(e.call(l,l.__data__,c,a)),i.push(l));return new ae(r,i)}function xu(e){return function(){return this.matches(e)}}function bu(e){return function(t){return t.matches(e)}}var o0=Array.prototype.find;function l0(e){return function(){return o0.call(this.children,e)}}function c0(){return this.firstElementChild}function u0(e){return this.select(e==null?c0:l0(typeof e=="function"?e:bu(e)))}var h0=Array.prototype.filter;function d0(){return Array.from(this.children)}function f0(e){return function(){return h0.call(this.children,e)}}function p0(e){return this.selectAll(e==null?d0:f0(typeof e=="function"?e:bu(e)))}function g0(e){typeof e!="function"&&(e=xu(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var s=t[i],a=s.length,o=r[i]=[],l,c=0;c<a;++c)(l=s[c])&&e.call(l,l.__data__,c,s)&&o.push(l);return new ae(r,this._parents)}function wu(e){return new Array(e.length)}function m0(){return new ae(this._enter||this._groups.map(wu),this._parents)}function Ki(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Ki.prototype={constructor:Ki,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 v0(e){return function(){return e}}function y0(e,t,n,r,i,s){for(var a=0,o,l=t.length,c=s.length;a<c;++a)(o=t[a])?(o.__data__=s[a],r[a]=o):n[a]=new Ki(e,s[a]);for(;a<l;++a)(o=t[a])&&(i[a]=o)}function x0(e,t,n,r,i,s,a){var o,l,c=new Map,u=t.length,d=s.length,h=new Array(u),f;for(o=0;o<u;++o)(l=t[o])&&(h[o]=f=a.call(l,l.__data__,o,t)+"",c.has(f)?i[o]=l:c.set(f,l));for(o=0;o<d;++o)f=a.call(e,s[o],o,s)+"",(l=c.get(f))?(r[o]=l,l.__data__=s[o],c.delete(f)):n[o]=new Ki(e,s[o]);for(o=0;o<u;++o)(l=t[o])&&c.get(h[o])===l&&(i[o]=l)}function b0(e){return e.__data__}function w0(e,t){if(!arguments.length)return Array.from(this,b0);var n=t?x0:y0,r=this._parents,i=this._groups;typeof e!="function"&&(e=v0(e));for(var s=i.length,a=new Array(s),o=new Array(s),l=new Array(s),c=0;c<s;++c){var u=r[c],d=i[c],h=d.length,f=_0(e.call(u,u&&u.__data__,c,r)),p=f.length,m=o[c]=new Array(p),g=a[c]=new Array(p),v=l[c]=new Array(h);n(u,d,m,g,v,f,t);for(var y=0,x=0,S,_;y<p;++y)if(S=m[y]){for(y>=x&&(x=y+1);!(_=g[x])&&++x<p;);S._next=_||null}}return a=new ae(a,r),a._enter=o,a._exit=l,a}function _0(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function E0(){return new ae(this._exit||this._groups.map(wu),this._parents)}function S0(e,t,n){var r=this.enter(),i=this,s=this.exit();return typeof e=="function"?(r=e(r),r&&(r=r.selection())):r=r.append(e+""),t!=null&&(i=t(i),i&&(i=i.selection())),n==null?s.remove():n(s),r&&i?r.merge(i).order():i}function O0(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,s=r.length,a=Math.min(i,s),o=new Array(i),l=0;l<a;++l)for(var c=n[l],u=r[l],d=c.length,h=o[l]=new Array(d),f,p=0;p<d;++p)(f=c[p]||u[p])&&(h[p]=f);for(;l<i;++l)o[l]=n[l];return new ae(o,this._parents)}function T0(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,s=r[i],a;--i>=0;)(a=r[i])&&(s&&a.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(a,s),s=a);return this}function M0(e){e||(e=C0);function t(d,h){return d&&h?e(d.__data__,h.__data__):!d-!h}for(var n=this._groups,r=n.length,i=new Array(r),s=0;s<r;++s){for(var a=n[s],o=a.length,l=i[s]=new Array(o),c,u=0;u<o;++u)(c=a[u])&&(l[u]=c);l.sort(t)}return new ae(i,this._parents).order()}function C0(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function $0(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function A0(){return Array.from(this)}function L0(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,s=r.length;i<s;++i){var a=r[i];if(a)return a}return null}function D0(){let e=0;for(const t of this)++e;return e}function k0(){return!this.node()}function R0(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],s=0,a=i.length,o;s<a;++s)(o=i[s])&&e.call(o,o.__data__,s,i);return this}function I0(e){return function(){this.removeAttribute(e)}}function N0(e){return function(){this.removeAttributeNS(e.space,e.local)}}function P0(e,t){return function(){this.setAttribute(e,t)}}function U0(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function B0(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function V0(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 H0(e,t){var n=Zi(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?N0:I0:typeof t=="function"?n.local?V0:B0:n.local?U0:P0)(n,t))}function _u(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function G0(e){return function(){this.style.removeProperty(e)}}function F0(e,t,n){return function(){this.style.setProperty(e,t,n)}}function z0(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function j0(e,t,n){return arguments.length>1?this.each((t==null?G0:typeof t=="function"?z0:F0)(e,t,n??"")):Kn(this.node(),e)}function Kn(e,t){return e.style.getPropertyValue(t)||_u(e).getComputedStyle(e,null).getPropertyValue(t)}function W0(e){return function(){delete this[e]}}function q0(e,t){return function(){this[e]=t}}function Y0(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function X0(e,t){return arguments.length>1?this.each((t==null?W0:typeof t=="function"?Y0:q0)(e,t)):this.node()[e]}function Eu(e){return e.trim().split(/^|\s+/)}function Qa(e){return e.classList||new Su(e)}function Su(e){this._node=e,this._names=Eu(e.getAttribute("class")||"")}Su.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Ou(e,t){for(var n=Qa(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function Tu(e,t){for(var n=Qa(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function Z0(e){return function(){Ou(this,e)}}function K0(e){return function(){Tu(this,e)}}function Q0(e,t){return function(){(t.apply(this,arguments)?Ou:Tu)(this,e)}}function J0(e,t){var n=Eu(e+"");if(arguments.length<2){for(var r=Qa(this.node()),i=-1,s=n.length;++i<s;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?Q0:t?Z0:K0)(n,t))}function ty(){this.textContent=""}function ey(e){return function(){this.textContent=e}}function ny(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function ry(e){return arguments.length?this.each(e==null?ty:(typeof e=="function"?ny:ey)(e)):this.node().textContent}function iy(){this.innerHTML=""}function sy(e){return function(){this.innerHTML=e}}function ay(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function oy(e){return arguments.length?this.each(e==null?iy:(typeof e=="function"?ay:sy)(e)):this.node().innerHTML}function ly(){this.nextSibling&&this.parentNode.appendChild(this)}function cy(){return this.each(ly)}function uy(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function hy(){return this.each(uy)}function dy(e){var t=typeof e=="function"?e:vu(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function fy(){return null}function py(e,t){var n=typeof e=="function"?e:vu(e),r=t==null?fy:typeof t=="function"?t:Ka(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function gy(){var e=this.parentNode;e&&e.removeChild(this)}function my(){return this.each(gy)}function vy(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function yy(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function xy(e){return this.select(e?yy:vy)}function by(e){return arguments.length?this.property("__data__",e):this.node().__data__}function wy(e){return function(t){e.call(this,t,this.__data__)}}function _y(e){return e.trim().split(/^|\s+/).map(function(t){var n="",r=t.indexOf(".");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function Ey(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,s;n<i;++n)s=t[n],(!e.type||s.type===e.type)&&s.name===e.name?this.removeEventListener(s.type,s.listener,s.options):t[++r]=s;++r?t.length=r:delete this.__on}}}function Sy(e,t,n){return function(){var r=this.__on,i,s=wy(t);if(r){for(var a=0,o=r.length;a<o;++a)if((i=r[a]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=s,i.options=n),i.value=t;return}}this.addEventListener(e.type,s,n),i={type:e.type,name:e.name,value:t,listener:s,options:n},r?r.push(i):this.__on=[i]}}function Oy(e,t,n){var r=_y(e+""),i,s=r.length,a;if(arguments.length<2){var o=this.node().__on;if(o){for(var l=0,c=o.length,u;l<c;++l)for(i=0,u=o[l];i<s;++i)if((a=r[i]).type===u.type&&a.name===u.name)return u.value}return}for(o=t?Sy:Ey,i=0;i<s;++i)this.each(o(r[i],t,n));return this}function Mu(e,t,n){var r=_u(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 Ty(e,t){return function(){return Mu(this,e,t)}}function My(e,t){return function(){return Mu(this,e,t.apply(this,arguments))}}function Cy(e,t){return this.each((typeof t=="function"?My:Ty)(e,t))}function*$y(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,s=r.length,a;i<s;++i)(a=r[i])&&(yield a)}var Cu=[null];function ae(e,t){this._groups=e,this._parents=t}function Ur(){return new ae([[document.documentElement]],Cu)}function Ay(){return this}ae.prototype=Ur.prototype={constructor:ae,select:n0,selectAll:a0,selectChild:u0,selectChildren:p0,filter:g0,data:w0,enter:m0,exit:E0,join:S0,merge:O0,selection:Ay,order:T0,sort:M0,call:$0,nodes:A0,node:L0,size:D0,empty:k0,each:R0,attr:H0,style:j0,property:X0,classed:J0,text:ry,html:oy,raise:cy,lower:hy,append:dy,insert:py,remove:my,clone:xy,datum:by,on:Oy,dispatch:Cy,[Symbol.iterator]:$y};function D(e){return typeof e=="string"?new ae([[document.querySelector(e)]],[document.documentElement]):new ae([[e]],Cu)}function Ly(e){let t;for(;t=e.sourceEvent;)e=t;return e}function Sn(e,t){if(e=Ly(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}const Ja={capture:!0,passive:!1};function to(e){e.preventDefault(),e.stopImmediatePropagation()}function Dy(e){var t=e.document.documentElement,n=D(e).on("dragstart.drag",to,Ja);"onselectstart"in t?n.on("selectstart.drag",to,Ja):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function ky(e,t){var n=e.document.documentElement,r=D(e).on("dragstart.drag",null);t&&(r.on("click.drag",to,Ja),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}function eo(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function $u(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Br(){}var Vr=.7,Qi=1/Vr,Qn="\\s*([+-]?\\d+)\\s*",Hr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ke="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Ry=/^#([0-9a-f]{3,8})$/,Iy=new RegExp(`^rgb\\(${Qn},${Qn},${Qn}\\)$`),Ny=new RegExp(`^rgb\\(${ke},${ke},${ke}\\)$`),Py=new RegExp(`^rgba\\(${Qn},${Qn},${Qn},${Hr}\\)$`),Uy=new RegExp(`^rgba\\(${ke},${ke},${ke},${Hr}\\)$`),By=new RegExp(`^hsl\\(${Hr},${ke},${ke}\\)$`),Vy=new RegExp(`^hsla\\(${Hr},${ke},${ke},${Hr}\\)$`),Au={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};eo(Br,ze,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Lu,formatHex:Lu,formatHex8:Hy,formatHsl:Gy,formatRgb:Du,toString:Du});function Lu(){return this.rgb().formatHex()}function Hy(){return this.rgb().formatHex8()}function Gy(){return Pu(this).formatHsl()}function Du(){return this.rgb().formatRgb()}function ze(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Ry.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?ku(t):n===3?new te(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Ji(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Ji(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=Iy.exec(e))?new te(t[1],t[2],t[3],1):(t=Ny.exec(e))?new te(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Py.exec(e))?Ji(t[1],t[2],t[3],t[4]):(t=Uy.exec(e))?Ji(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=By.exec(e))?Nu(t[1],t[2]/100,t[3]/100,1):(t=Vy.exec(e))?Nu(t[1],t[2]/100,t[3]/100,t[4]):Au.hasOwnProperty(e)?ku(Au[e]):e==="transparent"?new te(NaN,NaN,NaN,0):null}function ku(e){return new te(e>>16&255,e>>8&255,e&255,1)}function Ji(e,t,n,r){return r<=0&&(e=t=n=NaN),new te(e,t,n,r)}function Fy(e){return e instanceof Br||(e=ze(e)),e?(e=e.rgb(),new te(e.r,e.g,e.b,e.opacity)):new te}function no(e,t,n,r){return arguments.length===1?Fy(e):new te(e,t,n,r??1)}function te(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}eo(te,no,$u(Br,{brighter(e){return e=e==null?Qi:Math.pow(Qi,e),new te(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Vr:Math.pow(Vr,e),new te(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new te(On(this.r),On(this.g),On(this.b),ts(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:Ru,formatHex:Ru,formatHex8:zy,formatRgb:Iu,toString:Iu}));function Ru(){return`#${Tn(this.r)}${Tn(this.g)}${Tn(this.b)}`}function zy(){return`#${Tn(this.r)}${Tn(this.g)}${Tn(this.b)}${Tn((isNaN(this.opacity)?1:this.opacity)*255)}`}function Iu(){const e=ts(this.opacity);return`${e===1?"rgb(":"rgba("}${On(this.r)}, ${On(this.g)}, ${On(this.b)}${e===1?")":`, ${e})`}`}function ts(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function On(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Tn(e){return e=On(e),(e<16?"0":"")+e.toString(16)}function Nu(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new _e(e,t,n,r)}function Pu(e){if(e instanceof _e)return new _e(e.h,e.s,e.l,e.opacity);if(e instanceof Br||(e=ze(e)),!e)return new _e;if(e instanceof _e)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),s=Math.max(t,n,r),a=NaN,o=s-i,l=(s+i)/2;return o?(t===s?a=(n-r)/o+(n<r)*6:n===s?a=(r-t)/o+2:a=(t-n)/o+4,o/=l<.5?s+i:2-s-i,a*=60):o=l>0&&l<1?0:a,new _e(a,o,l,e.opacity)}function ro(e,t,n,r){return arguments.length===1?Pu(e):new _e(e,t,n,r??1)}function _e(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}eo(_e,ro,$u(Br,{brighter(e){return e=e==null?Qi:Math.pow(Qi,e),new _e(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Vr:Math.pow(Vr,e),new _e(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 te(io(e>=240?e-240:e+120,i,r),io(e,i,r),io(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new _e(Uu(this.h),es(this.s),es(this.l),ts(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=ts(this.opacity);return`${e===1?"hsl(":"hsla("}${Uu(this.h)}, ${es(this.s)*100}%, ${es(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Uu(e){return e=(e||0)%360,e<0?e+360:e}function es(e){return Math.max(0,Math.min(1,e||0))}function io(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const so=e=>()=>e;function jy(e,t){return function(n){return e+n*t}}function Wy(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function qy(e){return(e=+e)==1?Bu:function(t,n){return n-t?Wy(t,n,e):so(isNaN(t)?n:t)}}function Bu(e,t){var n=t-e;return n?jy(e,n):so(isNaN(e)?t:e)}const ns=function e(t){var n=qy(t);function r(i,s){var a=n((i=no(i)).r,(s=no(s)).r),o=n(i.g,s.g),l=n(i.b,s.b),c=Bu(i.opacity,s.opacity);return function(u){return i.r=a(u),i.g=o(u),i.b=l(u),i.opacity=c(u),i+""}}return r.gamma=e,r}(1);function Yy(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(s){for(i=0;i<n;++i)r[i]=e[i]*(1-s)+t[i]*s;return r}}function Xy(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Zy(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),s=new Array(n),a;for(a=0;a<r;++a)i[a]=Gr(e[a],t[a]);for(;a<n;++a)s[a]=t[a];return function(o){for(a=0;a<r;++a)s[a]=i[a](o);return s}}function Ky(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function oe(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Qy(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Gr(e[i],t[i]):r[i]=t[i];return function(s){for(i in n)r[i]=n[i](s);return r}}var ao=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,oo=new RegExp(ao.source,"g");function Jy(e){return function(){return e}}function t1(e){return function(t){return e(t)+""}}function Vu(e,t){var n=ao.lastIndex=oo.lastIndex=0,r,i,s,a=-1,o=[],l=[];for(e=e+"",t=t+"";(r=ao.exec(e))&&(i=oo.exec(t));)(s=i.index)>n&&(s=t.slice(n,s),o[a]?o[a]+=s:o[++a]=s),(r=r[0])===(i=i[0])?o[a]?o[a]+=i:o[++a]=i:(o[++a]=null,l.push({i:a,x:oe(r,i)})),n=oo.lastIndex;return n<t.length&&(s=t.slice(n),o[a]?o[a]+=s:o[++a]=s),o.length<2?l[0]?t1(l[0].x):Jy(t):(t=l.length,function(c){for(var u=0,d;u<t;++u)o[(d=l[u]).i]=d.x(c);return o.join("")})}function Gr(e,t){var n=typeof t,r;return t==null||n==="boolean"?so(t):(n==="number"?oe:n==="string"?(r=ze(t))?(t=r,ns):Vu:t instanceof ze?ns:t instanceof Date?Ky:Xy(t)?Yy:Array.isArray(t)?Zy:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Qy:oe)(e,t)}function Hu(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var Gu=180/Math.PI,lo={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Fu(e,t,n,r,i,s){var a,o,l;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(l=e*n+t*r)&&(n-=e*l,r-=t*l),(o=Math.sqrt(n*n+r*r))&&(n/=o,r/=o,l/=o),e*r<t*n&&(e=-e,t=-t,l=-l,a=-a),{translateX:i,translateY:s,rotate:Math.atan2(t,e)*Gu,skewX:Math.atan(l)*Gu,scaleX:a,scaleY:o}}var rs;function e1(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?lo:Fu(t.a,t.b,t.c,t.d,t.e,t.f)}function n1(e){return e==null||(rs||(rs=document.createElementNS("http://www.w3.org/2000/svg","g")),rs.setAttribute("transform",e),!(e=rs.transform.baseVal.consolidate()))?lo:(e=e.matrix,Fu(e.a,e.b,e.c,e.d,e.e,e.f))}function zu(e,t,n,r){function i(c){return c.length?c.pop()+" ":""}function s(c,u,d,h,f,p){if(c!==d||u!==h){var m=f.push("translate(",null,t,null,n);p.push({i:m-4,x:oe(c,d)},{i:m-2,x:oe(u,h)})}else(d||h)&&f.push("translate("+d+t+h+n)}function a(c,u,d,h){c!==u?(c-u>180?u+=360:u-c>180&&(c+=360),h.push({i:d.push(i(d)+"rotate(",null,r)-2,x:oe(c,u)})):u&&d.push(i(d)+"rotate("+u+r)}function o(c,u,d,h){c!==u?h.push({i:d.push(i(d)+"skewX(",null,r)-2,x:oe(c,u)}):u&&d.push(i(d)+"skewX("+u+r)}function l(c,u,d,h,f,p){if(c!==d||u!==h){var m=f.push(i(f)+"scale(",null,",",null,")");p.push({i:m-4,x:oe(c,d)},{i:m-2,x:oe(u,h)})}else(d!==1||h!==1)&&f.push(i(f)+"scale("+d+","+h+")")}return function(c,u){var d=[],h=[];return c=e(c),u=e(u),s(c.translateX,c.translateY,u.translateX,u.translateY,d,h),a(c.rotate,u.rotate,d,h),o(c.skewX,u.skewX,d,h),l(c.scaleX,c.scaleY,u.scaleX,u.scaleY,d,h),c=u=null,function(f){for(var p=-1,m=h.length,g;++p<m;)d[(g=h[p]).i]=g.x(f);return d.join("")}}}var r1=zu(e1,"px, ","px)","deg)"),i1=zu(n1,", ",")",")");function s1(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n}var Jn=0,Fr=0,zr=0,ju=1e3,is,jr,ss=0,Mn=0,as=0,Wr=typeof performance=="object"&&performance.now?performance:Date,Wu=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function co(){return Mn||(Wu(a1),Mn=Wr.now()+as)}function a1(){Mn=0}function os(){this._call=this._time=this._next=null}os.prototype=qu.prototype={constructor:os,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?co():+n)+(t==null?0:+t),!this._next&&jr!==this&&(jr?jr._next=this:is=this,jr=this),this._call=e,this._time=n,uo()},stop:function(){this._call&&(this._call=null,this._time=1/0,uo())}};function qu(e,t,n){var r=new os;return r.restart(e,t,n),r}function o1(){co(),++Jn;for(var e=is,t;e;)(t=Mn-e._time)>=0&&e._call.call(void 0,t),e=e._next;--Jn}function Yu(){Mn=(ss=Wr.now())+as,Jn=Fr=0;try{o1()}finally{Jn=0,c1(),Mn=0}}function l1(){var e=Wr.now(),t=e-ss;t>ju&&(as-=t,ss=e)}function c1(){for(var e,t=is,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:is=n);jr=e,uo(r)}function uo(e){if(!Jn){Fr&&(Fr=clearTimeout(Fr));var t=e-Mn;t>24?(e<1/0&&(Fr=setTimeout(Yu,e-Wr.now()-as)),zr&&(zr=clearInterval(zr))):(zr||(ss=Wr.now(),zr=setInterval(l1,ju)),Jn=1,Wu(Yu))}}function Xu(e,t,n){var r=new os;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var u1=Xa("start","end","cancel","interrupt"),h1=[],Zu=0,Ku=1,ho=2,ls=3,Qu=4,fo=5,cs=6;function us(e,t,n,r,i,s){var a=e.__transition;if(!a)e.__transition={};else if(n in a)return;d1(e,n,{name:t,index:r,group:i,on:u1,tween:h1,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:Zu})}function po(e,t){var n=Ee(e,t);if(n.state>Zu)throw new Error("too late; already scheduled");return n}function Re(e,t){var n=Ee(e,t);if(n.state>ls)throw new Error("too late; already running");return n}function Ee(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function d1(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=qu(s,0,n.time);function s(c){n.state=Ku,n.timer.restart(a,n.delay,n.time),n.delay<=c&&a(c-n.delay)}function a(c){var u,d,h,f;if(n.state!==Ku)return l();for(u in r)if(f=r[u],f.name===n.name){if(f.state===ls)return Xu(a);f.state===Qu?(f.state=cs,f.timer.stop(),f.on.call("interrupt",e,e.__data__,f.index,f.group),delete r[u]):+u<t&&(f.state=cs,f.timer.stop(),f.on.call("cancel",e,e.__data__,f.index,f.group),delete r[u])}if(Xu(function(){n.state===ls&&(n.state=Qu,n.timer.restart(o,n.delay,n.time),o(c))}),n.state=ho,n.on.call("start",e,e.__data__,n.index,n.group),n.state===ho){for(n.state=ls,i=new Array(h=n.tween.length),u=0,d=-1;u<h;++u)(f=n.tween[u].value.call(e,e.__data__,n.index,n.group))&&(i[++d]=f);i.length=d+1}}function o(c){for(var u=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(l),n.state=fo,1),d=-1,h=i.length;++d<h;)i[d].call(e,u);n.state===fo&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){n.state=cs,n.timer.stop(),delete r[t];for(var c in r)return;delete e.__transition}}function go(e,t){var n=e.__transition,r,i,s=!0,a;if(n){t=t==null?null:t+"";for(a in n){if((r=n[a]).name!==t){s=!1;continue}i=r.state>ho&&r.state<fo,r.state=cs,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[a]}s&&delete e.__transition}}function f1(e){return this.each(function(){go(this,e)})}function p1(e,t){var n,r;return function(){var i=Re(this,e),s=i.tween;if(s!==n){r=n=s;for(var a=0,o=r.length;a<o;++a)if(r[a].name===t){r=r.slice(),r.splice(a,1);break}}i.tween=r}}function g1(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var s=Re(this,e),a=s.tween;if(a!==r){i=(r=a).slice();for(var o={name:t,value:n},l=0,c=i.length;l<c;++l)if(i[l].name===t){i[l]=o;break}l===c&&i.push(o)}s.tween=i}}function m1(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=Ee(this.node(),n).tween,i=0,s=r.length,a;i<s;++i)if((a=r[i]).name===e)return a.value;return null}return this.each((t==null?p1:g1)(n,e,t))}function mo(e,t,n){var r=e._id;return e.each(function(){var i=Re(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return Ee(i,r).value[t]}}function Ju(e,t){var n;return(typeof t=="number"?oe:t instanceof ze?ns:(n=ze(t))?(t=n,ns):Vu)(e,t)}function v1(e){return function(){this.removeAttribute(e)}}function y1(e){return function(){this.removeAttributeNS(e.space,e.local)}}function x1(e,t,n){var r,i=n+"",s;return function(){var a=this.getAttribute(e);return a===i?null:a===r?s:s=t(r=a,n)}}function b1(e,t,n){var r,i=n+"",s;return function(){var a=this.getAttributeNS(e.space,e.local);return a===i?null:a===r?s:s=t(r=a,n)}}function w1(e,t,n){var r,i,s;return function(){var a,o=n(this),l;return o==null?void this.removeAttribute(e):(a=this.getAttribute(e),l=o+"",a===l?null:a===r&&l===i?s:(i=l,s=t(r=a,o)))}}function _1(e,t,n){var r,i,s;return function(){var a,o=n(this),l;return o==null?void this.removeAttributeNS(e.space,e.local):(a=this.getAttributeNS(e.space,e.local),l=o+"",a===l?null:a===r&&l===i?s:(i=l,s=t(r=a,o)))}}function E1(e,t){var n=Zi(e),r=n==="transform"?i1:Ju;return this.attrTween(e,typeof t=="function"?(n.local?_1:w1)(n,r,mo(this,"attr."+e,t)):t==null?(n.local?y1:v1)(n):(n.local?b1:x1)(n,r,t))}function S1(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function O1(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function T1(e,t){var n,r;function i(){var s=t.apply(this,arguments);return s!==r&&(n=(r=s)&&O1(e,s)),n}return i._value=t,i}function M1(e,t){var n,r;function i(){var s=t.apply(this,arguments);return s!==r&&(n=(r=s)&&S1(e,s)),n}return i._value=t,i}function C1(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 new Error;var r=Zi(e);return this.tween(n,(r.local?T1:M1)(r,t))}function $1(e,t){return function(){po(this,e).delay=+t.apply(this,arguments)}}function A1(e,t){return t=+t,function(){po(this,e).delay=t}}function L1(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?$1:A1)(t,e)):Ee(this.node(),t).delay}function D1(e,t){return function(){Re(this,e).duration=+t.apply(this,arguments)}}function k1(e,t){return t=+t,function(){Re(this,e).duration=t}}function R1(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?D1:k1)(t,e)):Ee(this.node(),t).duration}function I1(e,t){if(typeof t!="function")throw new Error;return function(){Re(this,e).ease=t}}function N1(e){var t=this._id;return arguments.length?this.each(I1(t,e)):Ee(this.node(),t).ease}function P1(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;Re(this,e).ease=n}}function U1(e){if(typeof e!="function")throw new Error;return this.each(P1(this._id,e))}function B1(e){typeof e!="function"&&(e=xu(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var s=t[i],a=s.length,o=r[i]=[],l,c=0;c<a;++c)(l=s[c])&&e.call(l,l.__data__,c,s)&&o.push(l);return new je(r,this._parents,this._name,this._id)}function V1(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,s=Math.min(r,i),a=new Array(r),o=0;o<s;++o)for(var l=t[o],c=n[o],u=l.length,d=a[o]=new Array(u),h,f=0;f<u;++f)(h=l[f]||c[f])&&(d[f]=h);for(;o<r;++o)a[o]=t[o];return new je(a,this._parents,this._name,this._id)}function H1(e){return(e+"").trim().split(/^|\s+/).every(function(t){var n=t.indexOf(".");return n>=0&&(t=t.slice(0,n)),!t||t==="start"})}function G1(e,t,n){var r,i,s=H1(t)?po:Re;return function(){var a=s(this,e),o=a.on;o!==r&&(i=(r=o).copy()).on(t,n),a.on=i}}function F1(e,t){var n=this._id;return arguments.length<2?Ee(this.node(),n).on.on(e):this.each(G1(n,e,t))}function z1(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function j1(){return this.on("end.remove",z1(this._id))}function W1(e){var t=this._name,n=this._id;typeof e!="function"&&(e=Ka(e));for(var r=this._groups,i=r.length,s=new Array(i),a=0;a<i;++a)for(var o=r[a],l=o.length,c=s[a]=new Array(l),u,d,h=0;h<l;++h)(u=o[h])&&(d=e.call(u,u.__data__,h,o))&&("__data__"in u&&(d.__data__=u.__data__),c[h]=d,us(c[h],t,n,h,c,Ee(u,n)));return new je(s,this._parents,t,n)}function q1(e){var t=this._name,n=this._id;typeof e!="function"&&(e=yu(e));for(var r=this._groups,i=r.length,s=[],a=[],o=0;o<i;++o)for(var l=r[o],c=l.length,u,d=0;d<c;++d)if(u=l[d]){for(var h=e.call(u,u.__data__,d,l),f,p=Ee(u,n),m=0,g=h.length;m<g;++m)(f=h[m])&&us(f,t,n,m,h,p);s.push(h),a.push(u)}return new je(s,a,t,n)}var Y1=Ur.prototype.constructor;function X1(){return new Y1(this._groups,this._parents)}function Z1(e,t){var n,r,i;return function(){var s=Kn(this,e),a=(this.style.removeProperty(e),Kn(this,e));return s===a?null:s===n&&a===r?i:i=t(n=s,r=a)}}function th(e){return function(){this.style.removeProperty(e)}}function K1(e,t,n){var r,i=n+"",s;return function(){var a=Kn(this,e);return a===i?null:a===r?s:s=t(r=a,n)}}function Q1(e,t,n){var r,i,s;return function(){var a=Kn(this,e),o=n(this),l=o+"";return o==null&&(l=o=(this.style.removeProperty(e),Kn(this,e))),a===l?null:a===r&&l===i?s:(i=l,s=t(r=a,o))}}function J1(e,t){var n,r,i,s="style."+t,a="end."+s,o;return function(){var l=Re(this,e),c=l.on,u=l.value[s]==null?o||(o=th(t)):void 0;(c!==n||i!==u)&&(r=(n=c).copy()).on(a,i=u),l.on=r}}function tx(e,t,n){var r=(e+="")=="transform"?r1:Ju;return t==null?this.styleTween(e,Z1(e,r)).on("end.style."+e,th(e)):typeof t=="function"?this.styleTween(e,Q1(e,r,mo(this,"style."+e,t))).each(J1(this._id,e)):this.styleTween(e,K1(e,r,t),n).on("end.style."+e,null)}function ex(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function nx(e,t,n){var r,i;function s(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&ex(e,a,n)),r}return s._value=t,s}function rx(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 new Error;return this.tween(r,nx(e,t,n??""))}function ix(e){return function(){this.textContent=e}}function sx(e){return function(){var t=e(this);this.textContent=t??""}}function ax(e){return this.tween("text",typeof e=="function"?sx(mo(this,"text",e)):ix(e==null?"":e+""))}function ox(e){return function(t){this.textContent=e.call(this,t)}}function lx(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&ox(i)),t}return r._value=e,r}function cx(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 new Error;return this.tween(t,lx(e))}function ux(){for(var e=this._name,t=this._id,n=eh(),r=this._groups,i=r.length,s=0;s<i;++s)for(var a=r[s],o=a.length,l,c=0;c<o;++c)if(l=a[c]){var u=Ee(l,t);us(l,e,n,c,a,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new je(r,this._parents,e,n)}function hx(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(s,a){var o={value:a},l={value:function(){--i===0&&s()}};n.each(function(){var c=Re(this,r),u=c.on;u!==e&&(t=(e=u).copy(),t._.cancel.push(o),t._.interrupt.push(o),t._.end.push(l)),c.on=t}),i===0&&s()})}var dx=0;function je(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function eh(){return++dx}var We=Ur.prototype;je.prototype={constructor:je,select:W1,selectAll:q1,selectChild:We.selectChild,selectChildren:We.selectChildren,filter:B1,merge:V1,selection:X1,transition:ux,call:We.call,nodes:We.nodes,node:We.node,size:We.size,empty:We.empty,each:We.each,on:F1,attr:E1,attrTween:C1,style:tx,styleTween:rx,text:ax,textTween:cx,remove:j1,tween:m1,delay:L1,duration:R1,ease:N1,easeVarying:U1,end:hx,[Symbol.iterator]:We[Symbol.iterator]};const fx=e=>+e;function nh(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var px={time:null,delay:0,duration:250,ease:nh};function gx(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return n}function mx(e){var t,n;e instanceof je?(t=e._id,e=e._name):(t=eh(),(n=px).time=co(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,s=0;s<i;++s)for(var a=r[s],o=a.length,l,c=0;c<o;++c)(l=a[c])&&us(l,e,t,c,a,n||gx(l,t));return new je(r,this._parents,e,t)}Ur.prototype.interrupt=f1,Ur.prototype.transition=mx;const vo=e=>()=>e;function vx(e,{sourceEvent:t,target:n,selection:r,mode:i,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},selection:{value:r,enumerable:!0,configurable:!0},mode:{value:i,enumerable:!0,configurable:!0},_:{value:s}})}function yx(e){e.stopImmediatePropagation()}function yo(e){e.preventDefault(),e.stopImmediatePropagation()}var rh={name:"drag"},xo={name:"space"},tr={name:"handle"},er={name:"center"};const{abs:ih,max:zt,min:jt}=Math;function sh(e){return[+e[0],+e[1]]}function ah(e){return[sh(e[0]),sh(e[1])]}var hs={name:"x",handles:["w","e"].map(ds),input:function(e,t){return e==null?null:[[+e[0],t[0][1]],[+e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},bo={name:"y",handles:["n","s"].map(ds),input:function(e,t){return e==null?null:[[t[0][0],+e[0]],[t[1][0],+e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},qe={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},oh={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},lh={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},xx={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},bx={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function ds(e){return{type:e}}function wx(e){return!e.ctrlKey&&!e.button}function _x(){var e=this.ownerSVGElement||this;return e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function Ex(){return navigator.maxTouchPoints||"ontouchstart"in this}function wo(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function Sx(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function ch(){return Ox(hs)}function Ox(e){var t=_x,n=wx,r=Ex,i=!0,s=Xa("start","brush","end"),a=6,o;function l(g){var v=g.property("__brush",m).selectAll(".overlay").data([ds("overlay")]);v.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",qe.overlay).merge(v).each(function(){var x=wo(this).extent;D(this).attr("x",x[0][0]).attr("y",x[0][1]).attr("width",x[1][0]-x[0][0]).attr("height",x[1][1]-x[0][1])}),g.selectAll(".selection").data([ds("selection")]).enter().append("rect").attr("class","selection").attr("cursor",qe.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var y=g.selectAll(".handle").data(e.handles,function(x){return x.type});y.exit().remove(),y.enter().append("rect").attr("class",function(x){return"handle handle--"+x.type}).attr("cursor",function(x){return qe[x.type]}),g.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(r).on("touchstart.brush",h).on("touchmove.brush",f).on("touchend.brush touchcancel.brush",p).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}l.move=function(g,v,y){g.tween?g.on("start.brush",function(x){u(this,arguments).beforestart().start(x)}).on("interrupt.brush end.brush",function(x){u(this,arguments).end(x)}).tween("brush",function(){var x=this,S=x.__brush,_=u(x,arguments),E=S.selection,T=e.input(typeof v=="function"?v.apply(this,arguments):v,S.extent),k=Gr(E,T);function I(A){S.selection=A===1&&T===null?null:k(A),c.call(x),_.brush()}return E!==null&&T!==null?I:I(1)}):g.each(function(){var x=this,S=arguments,_=x.__brush,E=e.input(typeof v=="function"?v.apply(x,S):v,_.extent),T=u(x,S).beforestart();go(x),_.selection=E===null?null:E,c.call(x),T.start(y).brush(y).end(y)})},l.clear=function(g,v){l.move(g,null,v)};function c(){var g=D(this),v=wo(this).selection;v?(g.selectAll(".selection").style("display",null).attr("x",v[0][0]).attr("y",v[0][1]).attr("width",v[1][0]-v[0][0]).attr("height",v[1][1]-v[0][1]),g.selectAll(".handle").style("display",null).attr("x",function(y){return y.type[y.type.length-1]==="e"?v[1][0]-a/2:v[0][0]-a/2}).attr("y",function(y){return y.type[0]==="s"?v[1][1]-a/2:v[0][1]-a/2}).attr("width",function(y){return y.type==="n"||y.type==="s"?v[1][0]-v[0][0]+a:a}).attr("height",function(y){return y.type==="e"||y.type==="w"?v[1][1]-v[0][1]+a:a})):g.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function u(g,v,y){var x=g.__brush.emitter;return x&&(!y||!x.clean)?x:new d(g,v,y)}function d(g,v,y){this.that=g,this.args=v,this.state=g.__brush,this.active=0,this.clean=y}d.prototype={beforestart:function(){return++this.active===1&&(this.state.emitter=this,this.starting=!0),this},start:function(g,v){return this.starting?(this.starting=!1,this.emit("start",g,v)):this.emit("brush",g),this},brush:function(g,v){return this.emit("brush",g,v),this},end:function(g,v){return--this.active===0&&(delete this.state.emitter,this.emit("end",g,v)),this},emit:function(g,v,y){var x=D(this.that).datum();s.call(g,this.that,new vx(g,{sourceEvent:v,target:l,selection:e.output(this.state.selection),mode:y,dispatch:s}),x)}};function h(g){if(o&&!g.touches||!n.apply(this,arguments))return;var v=this,y=g.target.__data__.type,x=(i&&g.metaKey?y="overlay":y)==="selection"?rh:i&&g.altKey?er:tr,S=e===bo?null:xx[y],_=e===hs?null:bx[y],E=wo(v),T=E.extent,k=E.selection,I=T[0][0],A,C,B=T[0][1],M,$,w=T[1][0],N,P,R=T[1][1],U,F,j=0,K=0,ut,G=S&&_&&i&&g.shiftKey,Y,ct,et=Array.from(g.touches||[g],J=>{const kt=J.identifier;return J=Sn(J,v),J.point0=J.slice(),J.identifier=kt,J});go(v);var Lt=u(v,arguments,!0).beforestart();if(y==="overlay"){k&&(ut=!0);const J=[et[0],et[1]||et[0]];E.selection=k=[[A=e===bo?I:jt(J[0][0],J[1][0]),M=e===hs?B:jt(J[0][1],J[1][1])],[N=e===bo?w:zt(J[0][0],J[1][0]),U=e===hs?R:zt(J[0][1],J[1][1])]],et.length>1&&Dt(g)}else A=k[0][0],M=k[0][1],N=k[1][0],U=k[1][1];C=A,$=M,P=N,F=U;var z=D(v).attr("pointer-events","none"),Q=z.selectAll(".overlay").attr("cursor",qe[y]);if(g.touches)Lt.moved=H,Lt.ended=vt;else{var at=D(g.view).on("mousemove.brush",H,!0).on("mouseup.brush",vt,!0);i&&at.on("keydown.brush",Qt,!0).on("keyup.brush",Jt,!0),Dy(g.view)}c.call(v),Lt.start(g,x.name);function H(J){for(const kt of J.changedTouches||[J])for(const Ui of et)Ui.identifier===kt.identifier&&(Ui.cur=Sn(kt,v));if(G&&!Y&&!ct&&et.length===1){const kt=et[0];ih(kt.cur[0]-kt[0])>ih(kt.cur[1]-kt[1])?ct=!0:Y=!0}for(const kt of et)kt.cur&&(kt[0]=kt.cur[0],kt[1]=kt.cur[1]);ut=!0,yo(J),Dt(J)}function Dt(J){const kt=et[0],Ui=kt.point0;var bn;switch(j=kt[0]-Ui[0],K=kt[1]-Ui[1],x){case xo:case rh:{S&&(j=zt(I-A,jt(w-N,j)),C=A+j,P=N+j),_&&(K=zt(B-M,jt(R-U,K)),$=M+K,F=U+K);break}case tr:{et[1]?(S&&(C=zt(I,jt(w,et[0][0])),P=zt(I,jt(w,et[1][0])),S=1),_&&($=zt(B,jt(R,et[0][1])),F=zt(B,jt(R,et[1][1])),_=1)):(S<0?(j=zt(I-A,jt(w-A,j)),C=A+j,P=N):S>0&&(j=zt(I-N,jt(w-N,j)),C=A,P=N+j),_<0?(K=zt(B-M,jt(R-M,K)),$=M+K,F=U):_>0&&(K=zt(B-U,jt(R-U,K)),$=M,F=U+K));break}case er:{S&&(C=zt(I,jt(w,A-j*S)),P=zt(I,jt(w,N+j*S))),_&&($=zt(B,jt(R,M-K*_)),F=zt(B,jt(R,U+K*_)));break}}P<C&&(S*=-1,bn=A,A=N,N=bn,bn=C,C=P,P=bn,y in oh&&Q.attr("cursor",qe[y=oh[y]])),F<$&&(_*=-1,bn=M,M=U,U=bn,bn=$,$=F,F=bn,y in lh&&Q.attr("cursor",qe[y=lh[y]])),E.selection&&(k=E.selection),Y&&(C=k[0][0],P=k[1][0]),ct&&($=k[0][1],F=k[1][1]),(k[0][0]!==C||k[0][1]!==$||k[1][0]!==P||k[1][1]!==F)&&(E.selection=[[C,$],[P,F]],c.call(v),Lt.brush(J,x.name))}function vt(J){if(yx(J),J.touches){if(J.touches.length)return;o&&clearTimeout(o),o=setTimeout(function(){o=null},500)}else ky(J.view,ut),at.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);z.attr("pointer-events","all"),Q.attr("cursor",qe.overlay),E.selection&&(k=E.selection),Sx(k)&&(E.selection=null,c.call(v)),Lt.end(J,x.name)}function Qt(J){switch(J.keyCode){case 16:{G=S&&_;break}case 18:{x===tr&&(S&&(N=P-j*S,A=C+j*S),_&&(U=F-K*_,M=$+K*_),x=er,Dt(J));break}case 32:{(x===tr||x===er)&&(S<0?N=P-j:S>0&&(A=C-j),_<0?U=F-K:_>0&&(M=$-K),x=xo,Q.attr("cursor",qe.selection),Dt(J));break}default:return}yo(J)}function Jt(J){switch(J.keyCode){case 16:{G&&(Y=ct=G=!1,Dt(J));break}case 18:{x===er&&(S<0?N=P:S>0&&(A=C),_<0?U=F:_>0&&(M=$),x=tr,Dt(J));break}case 32:{x===xo&&(J.altKey?(S&&(N=P-j*S,A=C+j*S),_&&(U=F-K*_,M=$+K*_),x=er):(S<0?N=P:S>0&&(A=C),_<0?U=F:_>0&&(M=$),x=tr),Q.attr("cursor",qe[y]),Dt(J));break}default:return}yo(J)}}function f(g){u(this,arguments).moved(g)}function p(g){u(this,arguments).ended(g)}function m(){var g=this.__brush||{selection:null};return g.extent=ah(t.apply(this,arguments)),g.dim=e,g}return l.extent=function(g){return arguments.length?(t=typeof g=="function"?g:vo(ah(g)),l):t},l.filter=function(g){return arguments.length?(n=typeof g=="function"?g:vo(!!g),l):n},l.touchable=function(g){return arguments.length?(r=typeof g=="function"?g:vo(!!g),l):r},l.handleSize=function(g){return arguments.length?(a=+g,l):a},l.keyModifiers=function(g){return arguments.length?(i=!!g,l):i},l.on=function(){var g=s.on.apply(s,arguments);return g===s?l:g},l}const _o=Math.PI,Eo=2*_o,Cn=1e-6,Tx=Eo-Cn;function uh(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Mx(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return uh;const n=10**t;return function(r){this._+=r[0];for(let i=1,s=r.length;i<s;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}let Cx=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?uh:Mx(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,s,a){this._append`C${+t},${+n},${+r},${+i},${this._x1=+s},${this._y1=+a}`}arcTo(t,n,r,i,s){if(t=+t,n=+n,r=+r,i=+i,s=+s,s<0)throw new Error(`negative radius: ${s}`);let a=this._x1,o=this._y1,l=r-t,c=i-n,u=a-t,d=o-n,h=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(h>Cn)if(!(Math.abs(d*l-c*u)>Cn)||!s)this._append`L${this._x1=t},${this._y1=n}`;else{let f=r-a,p=i-o,m=l*l+c*c,g=f*f+p*p,v=Math.sqrt(m),y=Math.sqrt(h),x=s*Math.tan((_o-Math.acos((m+h-g)/(2*v*y)))/2),S=x/y,_=x/v;Math.abs(S-1)>Cn&&this._append`L${t+S*u},${n+S*d}`,this._append`A${s},${s},0,0,${+(d*f>u*p)},${this._x1=t+_*l},${this._y1=n+_*c}`}}arc(t,n,r,i,s,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let o=r*Math.cos(i),l=r*Math.sin(i),c=t+o,u=n+l,d=1^a,h=a?i-s:s-i;this._x1===null?this._append`M${c},${u}`:(Math.abs(this._x1-c)>Cn||Math.abs(this._y1-u)>Cn)&&this._append`L${c},${u}`,r&&(h<0&&(h=h%Eo+Eo),h>Tx?this._append`A${r},${r},0,1,${d},${t-o},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=u}`:h>Cn&&this._append`A${r},${r},0,${+(h>=_o)},${d},${this._x1=t+r*Math.cos(s)},${this._y1=n+r*Math.sin(s)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}};function $x(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function fs(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function nr(e){return e=fs(Math.abs(e)),e?e[1]:NaN}function Ax(e,t){return function(n,r){for(var i=n.length,s=[],a=0,o=e[0],l=0;i>0&&o>0&&(l+o+1>r&&(o=Math.max(1,r-l)),s.push(n.substring(i-=o,i+o)),!((l+=o+1)>r));)o=e[a=(a+1)%e.length];return s.reverse().join(t)}}function Lx(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Dx=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function qr(e){if(!(t=Dx.exec(e)))throw new Error("invalid format: "+e);var t;return new So({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]})}qr.prototype=So.prototype;function So(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+""}So.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 kx(e){t: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 t;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var hh;function Rx(e,t){var n=fs(e,t);if(!n)return e+"";var r=n[0],i=n[1],s=i-(hh=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,a=r.length;return s===a?r:s>a?r+new Array(s-a+1).join("0"):s>0?r.slice(0,s)+"."+r.slice(s):"0."+new Array(1-s).join("0")+fs(e,Math.max(0,t+s-1))[0]}function dh(e,t){var n=fs(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const fh={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:$x,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)=>dh(e*100,t),r:dh,s:Rx,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function ph(e){return e}var gh=Array.prototype.map,mh=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ix(e){var t=e.grouping===void 0||e.thousands===void 0?ph:Ax(gh.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+"",s=e.numerals===void 0?ph:Lx(gh.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",o=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d){d=qr(d);var h=d.fill,f=d.align,p=d.sign,m=d.symbol,g=d.zero,v=d.width,y=d.comma,x=d.precision,S=d.trim,_=d.type;_==="n"?(y=!0,_="g"):fh[_]||(x===void 0&&(x=12),S=!0,_="g"),(g||h==="0"&&f==="=")&&(g=!0,h="0",f="=");var E=m==="$"?n:m==="#"&&/[boxX]/.test(_)?"0"+_.toLowerCase():"",T=m==="$"?r:/[%p]/.test(_)?a:"",k=fh[_],I=/[defgprs%]/.test(_);x=x===void 0?6:/[gprs]/.test(_)?Math.max(1,Math.min(21,x)):Math.max(0,Math.min(20,x));function A(C){var B=E,M=T,$,w,N;if(_==="c")M=k(C)+M,C="";else{C=+C;var P=C<0||1/C<0;if(C=isNaN(C)?l:k(Math.abs(C),x),S&&(C=kx(C)),P&&+C==0&&p!=="+"&&(P=!1),B=(P?p==="("?p:o:p==="-"||p==="("?"":p)+B,M=(_==="s"?mh[8+hh/3]:"")+M+(P&&p==="("?")":""),I){for($=-1,w=C.length;++$<w;)if(N=C.charCodeAt($),48>N||N>57){M=(N===46?i+C.slice($+1):C.slice($))+M,C=C.slice(0,$);break}}}y&&!g&&(C=t(C,1/0));var R=B.length+C.length+M.length,U=R<v?new Array(v-R+1).join(h):"";switch(y&&g&&(C=t(U+C,U.length?v-M.length:1/0),U=""),f){case"<":C=B+C+M+U;break;case"=":C=B+U+C+M;break;case"^":C=U.slice(0,R=U.length>>1)+B+C+M+U.slice(R);break;default:C=U+B+C+M;break}return s(C)}return A.toString=function(){return d+""},A}function u(d,h){var f=c((d=qr(d),d.type="f",d)),p=Math.max(-8,Math.min(8,Math.floor(nr(h)/3)))*3,m=Math.pow(10,-p),g=mh[8+p/3];return function(v){return f(m*v)+g}}return{format:c,formatPrefix:u}}var ps,Oo,vh;Nx({thousands:",",grouping:[3],currency:["$",""]});function Nx(e){return ps=Ix(e),Oo=ps.format,vh=ps.formatPrefix,ps}function Px(e){return Math.max(0,-nr(Math.abs(e)))}function Ux(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(nr(t)/3)))*3-nr(Math.abs(e)))}function Bx(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,nr(t)-nr(e))+1}var pt=1e-6,yh=1e-12,ot=Math.PI,ee=ot/2,xh=ot/4,le=ot*2,Xt=180/ot,$t=ot/180,gt=Math.abs,bh=Math.atan,$n=Math.atan2,yt=Math.cos,Vx=Math.exp,Hx=Math.log,ft=Math.sin,hn=Math.sign||function(e){return e>0?1:e<0?-1:0},Se=Math.sqrt,Gx=Math.tan;function Fx(e){return e>1?0:e<-1?ot:Math.acos(e)}function Ye(e){return e>1?ee:e<-1?-ee:Math.asin(e)}function pe(){}function gs(e,t){e&&_h.hasOwnProperty(e.type)&&_h[e.type](e,t)}var wh={Feature:function(e,t){gs(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)gs(n[r].geometry,t)}},_h={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){To(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)To(n[r],t,0)},Polygon:function(e,t){Eh(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)Eh(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)gs(n[r],t)}};function To(e,t,n){var r=-1,i=e.length-n,s;for(t.lineStart();++r<i;)s=e[r],t.point(s[0],s[1],s[2]);t.lineEnd()}function Eh(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)To(e[n],t,1);t.polygonEnd()}function rr(e,t){e&&wh.hasOwnProperty(e.type)?wh[e.type](e,t):gs(e,t)}function Mo(e){return[$n(e[1],e[0]),Ye(e[2])]}function ir(e){var t=e[0],n=e[1],r=yt(n);return[r*yt(t),r*ft(t),ft(n)]}function ms(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function vs(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Co(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function ys(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function $o(e){var t=Se(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function Ao(e,t){function n(r,i){return r=e(r,i),t(r[0],r[1])}return e.invert&&t.invert&&(n.invert=function(r,i){return r=t.invert(r,i),r&&e.invert(r[0],r[1])}),n}function Lo(e,t){return gt(e)>ot&&(e-=Math.round(e/le)*le),[e,t]}Lo.invert=Lo;function Sh(e,t,n){return(e%=le)?t||n?Ao(Th(e),Mh(t,n)):Th(e):t||n?Mh(t,n):Lo}function Oh(e){return function(t,n){return t+=e,gt(t)>ot&&(t-=Math.round(t/le)*le),[t,n]}}function Th(e){var t=Oh(e);return t.invert=Oh(-e),t}function Mh(e,t){var n=yt(e),r=ft(e),i=yt(t),s=ft(t);function a(o,l){var c=yt(l),u=yt(o)*c,d=ft(o)*c,h=ft(l),f=h*n+u*r;return[$n(d*i-f*s,u*n-h*r),Ye(f*i+d*s)]}return a.invert=function(o,l){var c=yt(l),u=yt(o)*c,d=ft(o)*c,h=ft(l),f=h*i-d*s;return[$n(d*i+h*s,u*n+f*r),Ye(f*n-u*r)]},a}function zx(e){e=Sh(e[0]*$t,e[1]*$t,e.length>2?e[2]*$t:0);function t(n){return n=e(n[0]*$t,n[1]*$t),n[0]*=Xt,n[1]*=Xt,n}return t.invert=function(n){return n=e.invert(n[0]*$t,n[1]*$t),n[0]*=Xt,n[1]*=Xt,n},t}function jx(e,t,n,r,i,s){if(n){var a=yt(t),o=ft(t),l=r*n;i==null?(i=t+r*le,s=t-l/2):(i=Ch(a,i),s=Ch(a,s),(r>0?i<s:i>s)&&(i+=r*le));for(var c,u=i;r>0?u>s:u<s;u-=l)c=Mo([a,-o*yt(u),-o*ft(u)]),e.point(c[0],c[1])}}function Ch(e,t){t=ir(t),t[0]-=e,$o(t);var n=Fx(-t[1]);return((-t[2]<0?-n:n)+le-pt)%le}function $h(){var e=[],t;return{point:function(n,r,i){t.push([n,r,i])},lineStart:function(){e.push(t=[])},lineEnd:pe,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function xs(e,t){return gt(e[0]-t[0])<pt&&gt(e[1]-t[1])<pt}function bs(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}function Ah(e,t,n,r,i){var s=[],a=[],o,l;if(e.forEach(function(p){if(!((m=p.length-1)<=0)){var m,g=p[0],v=p[m],y;if(xs(g,v)){if(!g[2]&&!v[2]){for(i.lineStart(),o=0;o<m;++o)i.point((g=p[o])[0],g[1]);i.lineEnd();return}v[0]+=2*pt}s.push(y=new bs(g,p,null,!0)),a.push(y.o=new bs(g,null,y,!1)),s.push(y=new bs(v,p,null,!1)),a.push(y.o=new bs(v,null,y,!0))}}),!!s.length){for(a.sort(t),Lh(s),Lh(a),o=0,l=a.length;o<l;++o)a[o].e=n=!n;for(var c=s[0],u,d;;){for(var h=c,f=!0;h.v;)if((h=h.n)===c)return;u=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(f)for(o=0,l=u.length;o<l;++o)i.point((d=u[o])[0],d[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(f)for(u=h.p.z,o=u.length-1;o>=0;--o)i.point((d=u[o])[0],d[1]);else r(h.x,h.p.x,-1,i);h=h.p}h=h.o,u=h.z,f=!f}while(!h.v);i.lineEnd()}}}function Lh(e){if(t=e.length){for(var t,n=0,r=e[0],i;++n<t;)r.n=i=e[n],i.p=r,r=i;r.n=i=e[0],i.p=r}}function Do(e){return gt(e[0])<=ot?e[0]:hn(e[0])*((gt(e[0])+ot)%le-ot)}function Wx(e,t){var n=Do(t),r=t[1],i=ft(r),s=[ft(n),-yt(n),0],a=0,o=0,l=new _n;i===1?r=ee+pt:i===-1&&(r=-ee-pt);for(var c=0,u=e.length;c<u;++c)if(h=(d=e[c]).length)for(var d,h,f=d[h-1],p=Do(f),m=f[1]/2+xh,g=ft(m),v=yt(m),y=0;y<h;++y,p=S,g=E,v=T,f=x){var x=d[y],S=Do(x),_=x[1]/2+xh,E=ft(_),T=yt(_),k=S-p,I=k>=0?1:-1,A=I*k,C=A>ot,B=g*E;if(l.add($n(B*I*ft(A),v*T+B*yt(A))),a+=C?k+I*le:k,C^p>=n^S>=n){var M=vs(ir(f),ir(x));$o(M);var $=vs(s,M);$o($);var w=(C^k>=0?-1:1)*Ye($[2]);(r>w||r===w&&(M[0]||M[1]))&&(o+=C^k>=0?1:-1)}}return(a<-pt||a<pt&&l<-yh)^o&1}function Dh(e,t,n,r){return function(i){var s=t(i),a=$h(),o=t(a),l=!1,c,u,d,h={point:f,lineStart:m,lineEnd:g,polygonStart:function(){h.point=v,h.lineStart=y,h.lineEnd=x,u=[],c=[]},polygonEnd:function(){h.point=f,h.lineStart=m,h.lineEnd=g,u=du(u);var S=Wx(c,r);u.length?(l||(i.polygonStart(),l=!0),Ah(u,Yx,S,n,i)):S&&(l||(i.polygonStart(),l=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),l&&(i.polygonEnd(),l=!1),u=c=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function f(S,_){e(S,_)&&i.point(S,_)}function p(S,_){s.point(S,_)}function m(){h.point=p,s.lineStart()}function g(){h.point=f,s.lineEnd()}function v(S,_){d.push([S,_]),o.point(S,_)}function y(){o.lineStart(),d=[]}function x(){v(d[0][0],d[0][1]),o.lineEnd();var S=o.clean(),_=a.result(),E,T=_.length,k,I,A;if(d.pop(),c.push(d),d=null,!!T){if(S&1){if(I=_[0],(k=I.length-1)>0){for(l||(i.polygonStart(),l=!0),i.lineStart(),E=0;E<k;++E)i.point((A=I[E])[0],A[1]);i.lineEnd()}return}T>1&&S&2&&_.push(_.pop().concat(_.shift())),u.push(_.filter(qx))}}return h}}function qx(e){return e.length>1}function Yx(e,t){return((e=e.x)[0]<0?e[1]-ee-pt:ee-e[1])-((t=t.x)[0]<0?t[1]-ee-pt:ee-t[1])}const kh=Dh(function(){return!0},Xx,Kx,[-ot,-ee]);function Xx(e){var t=NaN,n=NaN,r=NaN,i;return{lineStart:function(){e.lineStart(),i=1},point:function(s,a){var o=s>0?ot:-ot,l=gt(s-t);gt(l-ot)<pt?(e.point(t,n=(n+a)/2>0?ee:-ee),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(o,n),e.point(s,n),i=0):r!==o&&l>=ot&&(gt(t-r)<pt&&(t-=r*pt),gt(s-o)<pt&&(s-=o*pt),n=Zx(t,n,s,a),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(o,n),i=0),e.point(t=s,n=a),r=o},lineEnd:function(){e.lineEnd(),t=n=NaN},clean:function(){return 2-i}}}function Zx(e,t,n,r){var i,s,a=ft(e-n);return gt(a)>pt?bh((ft(t)*(s=yt(r))*ft(n)-ft(r)*(i=yt(t))*ft(e))/(i*s*a)):(t+r)/2}function Kx(e,t,n,r){var i;if(e==null)i=n*ee,r.point(-ot,i),r.point(0,i),r.point(ot,i),r.point(ot,0),r.point(ot,-i),r.point(0,-i),r.point(-ot,-i),r.point(-ot,0),r.point(-ot,i);else if(gt(e[0]-t[0])>pt){var s=e[0]<t[0]?ot:-ot;i=n*s/2,r.point(-s,i),r.point(0,i),r.point(s,i)}else r.point(t[0],t[1])}function Qx(e){var t=yt(e),n=6*$t,r=t>0,i=gt(t)>pt;function s(u,d,h,f){jx(f,e,n,h,u,d)}function a(u,d){return yt(u)*yt(d)>t}function o(u){var d,h,f,p,m;return{lineStart:function(){p=f=!1,m=1},point:function(g,v){var y=[g,v],x,S=a(g,v),_=r?S?0:c(g,v):S?c(g+(g<0?ot:-ot),v):0;if(!d&&(p=f=S)&&u.lineStart(),S!==f&&(x=l(d,y),(!x||xs(d,x)||xs(y,x))&&(y[2]=1)),S!==f)m=0,S?(u.lineStart(),x=l(y,d),u.point(x[0],x[1])):(x=l(d,y),u.point(x[0],x[1],2),u.lineEnd()),d=x;else if(i&&d&&r^S){var E;!(_&h)&&(E=l(y,d,!0))&&(m=0,r?(u.lineStart(),u.point(E[0][0],E[0][1]),u.point(E[1][0],E[1][1]),u.lineEnd()):(u.point(E[1][0],E[1][1]),u.lineEnd(),u.lineStart(),u.point(E[0][0],E[0][1],3)))}S&&(!d||!xs(d,y))&&u.point(y[0],y[1]),d=y,f=S,h=_},lineEnd:function(){f&&u.lineEnd(),d=null},clean:function(){return m|(p&&f)<<1}}}function l(u,d,h){var f=ir(u),p=ir(d),m=[1,0,0],g=vs(f,p),v=ms(g,g),y=g[0],x=v-y*y;if(!x)return!h&&u;var S=t*v/x,_=-t*y/x,E=vs(m,g),T=ys(m,S),k=ys(g,_);Co(T,k);var I=E,A=ms(T,I),C=ms(I,I),B=A*A-C*(ms(T,T)-1);if(!(B<0)){var M=Se(B),$=ys(I,(-A-M)/C);if(Co($,T),$=Mo($),!h)return $;var w=u[0],N=d[0],P=u[1],R=d[1],U;N<w&&(U=w,w=N,N=U);var F=N-w,j=gt(F-ot)<pt,K=j||F<pt;if(!j&&R<P&&(U=P,P=R,R=U),K?j?P+R>0^$[1]<(gt($[0]-w)<pt?P:R):P<=$[1]&&$[1]<=R:F>ot^(w<=$[0]&&$[0]<=N)){var ut=ys(I,(-A+M)/C);return Co(ut,T),[$,Mo(ut)]}}}function c(u,d){var h=r?e:ot-e,f=0;return u<-h?f|=1:u>h&&(f|=2),d<-h?f|=4:d>h&&(f|=8),f}return Dh(a,o,s,r?[0,-e]:[-ot,e-ot])}function Jx(e,t,n,r,i,s){var a=e[0],o=e[1],l=t[0],c=t[1],u=0,d=1,h=l-a,f=c-o,p;if(p=n-a,!(!h&&p>0)){if(p/=h,h<0){if(p<u)return;p<d&&(d=p)}else if(h>0){if(p>d)return;p>u&&(u=p)}if(p=i-a,!(!h&&p<0)){if(p/=h,h<0){if(p>d)return;p>u&&(u=p)}else if(h>0){if(p<u)return;p<d&&(d=p)}if(p=r-o,!(!f&&p>0)){if(p/=f,f<0){if(p<u)return;p<d&&(d=p)}else if(f>0){if(p>d)return;p>u&&(u=p)}if(p=s-o,!(!f&&p<0)){if(p/=f,f<0){if(p>d)return;p>u&&(u=p)}else if(f>0){if(p<u)return;p<d&&(d=p)}return u>0&&(e[0]=a+u*h,e[1]=o+u*f),d<1&&(t[0]=a+d*h,t[1]=o+d*f),!0}}}}}var Yr=1e9,ws=-Yr;function tb(e,t,n,r){function i(c,u){return e<=c&&c<=n&&t<=u&&u<=r}function s(c,u,d,h){var f=0,p=0;if(c==null||(f=a(c,d))!==(p=a(u,d))||l(c,u)<0^d>0)do h.point(f===0||f===3?e:n,f>1?r:t);while((f=(f+d+4)%4)!==p);else h.point(u[0],u[1])}function a(c,u){return gt(c[0]-e)<pt?u>0?0:3:gt(c[0]-n)<pt?u>0?2:1:gt(c[1]-t)<pt?u>0?1:0:u>0?3:2}function o(c,u){return l(c.x,u.x)}function l(c,u){var d=a(c,1),h=a(u,1);return d!==h?d-h:d===0?u[1]-c[1]:d===1?c[0]-u[0]:d===2?c[1]-u[1]:u[0]-c[0]}return function(c){var u=c,d=$h(),h,f,p,m,g,v,y,x,S,_,E,T={point:k,lineStart:B,lineEnd:M,polygonStart:A,polygonEnd:C};function k(w,N){i(w,N)&&u.point(w,N)}function I(){for(var w=0,N=0,P=f.length;N<P;++N)for(var R=f[N],U=1,F=R.length,j=R[0],K,ut,G=j[0],Y=j[1];U<F;++U)K=G,ut=Y,j=R[U],G=j[0],Y=j[1],ut<=r?Y>r&&(G-K)*(r-ut)>(Y-ut)*(e-K)&&++w:Y<=r&&(G-K)*(r-ut)<(Y-ut)*(e-K)&&--w;return w}function A(){u=d,h=[],f=[],E=!0}function C(){var w=I(),N=E&&w,P=(h=du(h)).length;(N||P)&&(c.polygonStart(),N&&(c.lineStart(),s(null,null,1,c),c.lineEnd()),P&&Ah(h,o,w,s,c),c.polygonEnd()),u=c,h=f=p=null}function B(){T.point=$,f&&f.push(p=[]),_=!0,S=!1,y=x=NaN}function M(){h&&($(m,g),v&&S&&d.rejoin(),h.push(d.result())),T.point=k,S&&u.lineEnd()}function $(w,N){var P=i(w,N);if(f&&p.push([w,N]),_)m=w,g=N,v=P,_=!1,P&&(u.lineStart(),u.point(w,N));else if(P&&S)u.point(w,N);else{var R=[y=Math.max(ws,Math.min(Yr,y)),x=Math.max(ws,Math.min(Yr,x))],U=[w=Math.max(ws,Math.min(Yr,w)),N=Math.max(ws,Math.min(Yr,N))];Jx(R,U,e,t,n,r)?(S||(u.lineStart(),u.point(R[0],R[1])),u.point(U[0],U[1]),P||u.lineEnd(),E=!1):P&&(u.lineStart(),u.point(w,N),E=!1)}y=w,x=N,S=P}return T}}const ko=e=>e;var Ro=new _n,Io=new _n,Rh,Ih,No,Po,dn={point:pe,lineStart:pe,lineEnd:pe,polygonStart:function(){dn.lineStart=eb,dn.lineEnd=rb},polygonEnd:function(){dn.lineStart=dn.lineEnd=dn.point=pe,Ro.add(gt(Io)),Io=new _n},result:function(){var e=Ro/2;return Ro=new _n,e}};function eb(){dn.point=nb}function nb(e,t){dn.point=Nh,Rh=No=e,Ih=Po=t}function Nh(e,t){Io.add(Po*e-No*t),No=e,Po=t}function rb(){Nh(Rh,Ih)}const Ph=dn;var sr=1/0,_s=sr,Xr=-sr,Es=Xr,ib={point:sb,lineStart:pe,lineEnd:pe,polygonStart:pe,polygonEnd:pe,result:function(){var e=[[sr,_s],[Xr,Es]];return Xr=Es=-(_s=sr=1/0),e}};function sb(e,t){e<sr&&(sr=e),e>Xr&&(Xr=e),t<_s&&(_s=t),t>Es&&(Es=t)}const Ss=ib;var Uo=0,Bo=0,Zr=0,Os=0,Ts=0,ar=0,Vo=0,Ho=0,Kr=0,Uh,Bh,Ie,Ne,Oe={point:An,lineStart:Vh,lineEnd:Hh,polygonStart:function(){Oe.lineStart=lb,Oe.lineEnd=cb},polygonEnd:function(){Oe.point=An,Oe.lineStart=Vh,Oe.lineEnd=Hh},result:function(){var e=Kr?[Vo/Kr,Ho/Kr]:ar?[Os/ar,Ts/ar]:Zr?[Uo/Zr,Bo/Zr]:[NaN,NaN];return Uo=Bo=Zr=Os=Ts=ar=Vo=Ho=Kr=0,e}};function An(e,t){Uo+=e,Bo+=t,++Zr}function Vh(){Oe.point=ab}function ab(e,t){Oe.point=ob,An(Ie=e,Ne=t)}function ob(e,t){var n=e-Ie,r=t-Ne,i=Se(n*n+r*r);Os+=i*(Ie+e)/2,Ts+=i*(Ne+t)/2,ar+=i,An(Ie=e,Ne=t)}function Hh(){Oe.point=An}function lb(){Oe.point=ub}function cb(){Gh(Uh,Bh)}function ub(e,t){Oe.point=Gh,An(Uh=Ie=e,Bh=Ne=t)}function Gh(e,t){var n=e-Ie,r=t-Ne,i=Se(n*n+r*r);Os+=i*(Ie+e)/2,Ts+=i*(Ne+t)/2,ar+=i,i=Ne*e-Ie*t,Vo+=i*(Ie+e),Ho+=i*(Ne+t),Kr+=i*3,An(Ie=e,Ne=t)}const Fh=Oe;function zh(e){this._context=e}zh.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){this._line===0&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:{this._context.moveTo(e,t),this._point=1;break}case 1:{this._context.lineTo(e,t);break}default:{this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,le);break}}},result:pe};var Go=new _n,Fo,jh,Wh,Qr,Jr,Ms={point:pe,lineStart:function(){Ms.point=hb},lineEnd:function(){Fo&&qh(jh,Wh),Ms.point=pe},polygonStart:function(){Fo=!0},polygonEnd:function(){Fo=null},result:function(){var e=+Go;return Go=new _n,e}};function hb(e,t){Ms.point=qh,jh=Qr=e,Wh=Jr=t}function qh(e,t){Qr-=e,Jr-=t,Go.add(Se(Qr*Qr+Jr*Jr)),Qr=e,Jr=t}const Yh=Ms;let Xh,Cs,Zh,Kh;class Qh{constructor(t){this._append=t==null?Jh:db(t),this._radius=4.5,this._=""}pointRadius(t){return this._radius=+t,this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){this._line===0&&(this._+="Z"),this._point=NaN}point(t,n){switch(this._point){case 0:{this._append`M${t},${n}`,this._point=1;break}case 1:{this._append`L${t},${n}`;break}default:{if(this._append`M${t},${n}`,this._radius!==Zh||this._append!==Cs){const r=this._radius,i=this._;this._="",this._append`m0,${r}a${r},${r} 0 1,1 0,${-2*r}a${r},${r} 0 1,1 0,${2*r}z`,Zh=r,Cs=this._append,Kh=this._,this._=i}this._+=Kh;break}}}result(){const t=this._;return this._="",t.length?t:null}}function Jh(e){let t=1;this._+=e[0];for(const n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function db(e){const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);if(t>15)return Jh;if(t!==Xh){const n=10**t;Xh=t,Cs=function(i){let s=1;this._+=i[0];for(const a=i.length;s<a;++s)this._+=Math.round(arguments[s]*n)/n+i[s]}}return Cs}function fb(e,t){let n=3,r=4.5,i,s;function a(o){return o&&(typeof r=="function"&&s.pointRadius(+r.apply(this,arguments)),rr(o,i(s))),s.result()}return a.area=function(o){return rr(o,i(Ph)),Ph.result()},a.measure=function(o){return rr(o,i(Yh)),Yh.result()},a.bounds=function(o){return rr(o,i(Ss)),Ss.result()},a.centroid=function(o){return rr(o,i(Fh)),Fh.result()},a.projection=function(o){return arguments.length?(i=o==null?(e=null,ko):(e=o).stream,a):e},a.context=function(o){return arguments.length?(s=o==null?(t=null,new Qh(n)):new zh(t=o),typeof r!="function"&&s.pointRadius(r),a):t},a.pointRadius=function(o){return arguments.length?(r=typeof o=="function"?o:(s.pointRadius(+o),+o),a):r},a.digits=function(o){if(!arguments.length)return n;if(o==null)n=null;else{const l=Math.floor(o);if(!(l>=0))throw new RangeError(`invalid digits: ${o}`);n=l}return t===null&&(s=new Qh(n)),a},a.projection(e).digits(n).context(t)}function zo(e){return function(t){var n=new jo;for(var r in e)n[r]=e[r];return n.stream=t,n}}function jo(){}jo.prototype={constructor:jo,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function Wo(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),r!=null&&e.clipExtent(null),rr(n,e.stream(Ss)),t(Ss.result()),r!=null&&e.clipExtent(r),e}function td(e,t,n){return Wo(e,function(r){var i=t[1][0]-t[0][0],s=t[1][1]-t[0][1],a=Math.min(i/(r[1][0]-r[0][0]),s/(r[1][1]-r[0][1])),o=+t[0][0]+(i-a*(r[1][0]+r[0][0]))/2,l=+t[0][1]+(s-a*(r[1][1]+r[0][1]))/2;e.scale(150*a).translate([o,l])},n)}function pb(e,t,n){return td(e,[[0,0],t],n)}function gb(e,t,n){return Wo(e,function(r){var i=+t,s=i/(r[1][0]-r[0][0]),a=(i-s*(r[1][0]+r[0][0]))/2,o=-s*r[0][1];e.scale(150*s).translate([a,o])},n)}function mb(e,t,n){return Wo(e,function(r){var i=+t,s=i/(r[1][1]-r[0][1]),a=-s*r[0][0],o=(i-s*(r[1][1]+r[0][1]))/2;e.scale(150*s).translate([a,o])},n)}var ed=16,vb=yt(30*$t);function nd(e,t){return+t?xb(e,t):yb(e)}function yb(e){return zo({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}function xb(e,t){function n(r,i,s,a,o,l,c,u,d,h,f,p,m,g){var v=c-r,y=u-i,x=v*v+y*y;if(x>4*t&&m--){var S=a+h,_=o+f,E=l+p,T=Se(S*S+_*_+E*E),k=Ye(E/=T),I=gt(gt(E)-1)<pt||gt(s-d)<pt?(s+d)/2:$n(_,S),A=e(I,k),C=A[0],B=A[1],M=C-r,$=B-i,w=y*M-v*$;(w*w/x>t||gt((v*M+y*$)/x-.5)>.3||a*h+o*f+l*p<vb)&&(n(r,i,s,a,o,l,C,B,I,S/=T,_/=T,E,m,g),g.point(C,B),n(C,B,I,S,_,E,c,u,d,h,f,p,m,g))}}return function(r){var i,s,a,o,l,c,u,d,h,f,p,m,g={point:v,lineStart:y,lineEnd:S,polygonStart:function(){r.polygonStart(),g.lineStart=_},polygonEnd:function(){r.polygonEnd(),g.lineStart=y}};function v(k,I){k=e(k,I),r.point(k[0],k[1])}function y(){d=NaN,g.point=x,r.lineStart()}function x(k,I){var A=ir([k,I]),C=e(k,I);n(d,h,u,f,p,m,d=C[0],h=C[1],u=k,f=A[0],p=A[1],m=A[2],ed,r),r.point(d,h)}function S(){g.point=v,r.lineEnd()}function _(){y(),g.point=E,g.lineEnd=T}function E(k,I){x(i=k,I),s=d,a=h,o=f,l=p,c=m,g.point=x}function T(){n(d,h,u,f,p,m,s,a,i,o,l,c,ed,r),g.lineEnd=S,S()}return g}}var bb=zo({point:function(e,t){this.stream.point(e*$t,t*$t)}});function wb(e){return zo({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}function _b(e,t,n,r,i){function s(a,o){return a*=r,o*=i,[t+e*a,n-e*o]}return s.invert=function(a,o){return[(a-t)/e*r,(n-o)/e*i]},s}function rd(e,t,n,r,i,s){if(!s)return _b(e,t,n,r,i);var a=yt(s),o=ft(s),l=a*e,c=o*e,u=a/e,d=o/e,h=(o*n-a*t)/e,f=(o*t+a*n)/e;function p(m,g){return m*=r,g*=i,[l*m-c*g+t,n-c*m-l*g]}return p.invert=function(m,g){return[r*(u*m-d*g+h),i*(f-d*m-u*g)]},p}function $s(e){return id(function(){return e})()}function id(e){var t,n=150,r=480,i=250,s=0,a=0,o=0,l=0,c=0,u,d=0,h=1,f=1,p=null,m=kh,g=null,v,y,x,S=ko,_=.5,E,T,k,I,A;function C(w){return k(w[0]*$t,w[1]*$t)}function B(w){return w=k.invert(w[0],w[1]),w&&[w[0]*Xt,w[1]*Xt]}C.stream=function(w){return I&&A===w?I:I=bb(wb(u)(m(E(S(A=w)))))},C.preclip=function(w){return arguments.length?(m=w,p=void 0,$()):m},C.postclip=function(w){return arguments.length?(S=w,g=v=y=x=null,$()):S},C.clipAngle=function(w){return arguments.length?(m=+w?Qx(p=w*$t):(p=null,kh),$()):p*Xt},C.clipExtent=function(w){return arguments.length?(S=w==null?(g=v=y=x=null,ko):tb(g=+w[0][0],v=+w[0][1],y=+w[1][0],x=+w[1][1]),$()):g==null?null:[[g,v],[y,x]]},C.scale=function(w){return arguments.length?(n=+w,M()):n},C.translate=function(w){return arguments.length?(r=+w[0],i=+w[1],M()):[r,i]},C.center=function(w){return arguments.length?(s=w[0]%360*$t,a=w[1]%360*$t,M()):[s*Xt,a*Xt]},C.rotate=function(w){return arguments.length?(o=w[0]%360*$t,l=w[1]%360*$t,c=w.length>2?w[2]%360*$t:0,M()):[o*Xt,l*Xt,c*Xt]},C.angle=function(w){return arguments.length?(d=w%360*$t,M()):d*Xt},C.reflectX=function(w){return arguments.length?(h=w?-1:1,M()):h<0},C.reflectY=function(w){return arguments.length?(f=w?-1:1,M()):f<0},C.precision=function(w){return arguments.length?(E=nd(T,_=w*w),$()):Se(_)},C.fitExtent=function(w,N){return td(C,w,N)},C.fitSize=function(w,N){return pb(C,w,N)},C.fitWidth=function(w,N){return gb(C,w,N)},C.fitHeight=function(w,N){return mb(C,w,N)};function M(){var w=rd(n,0,0,h,f,d).apply(null,t(s,a)),N=rd(n,r-w[0],i-w[1],h,f,d);return u=Sh(o,l,c),T=Ao(t,N),k=Ao(u,T),E=nd(T,_),$()}function $(){return I=A=null,C}return function(){return t=e.apply(this,arguments),C.invert=t.invert&&B,M()}}function sd(e){var t=0,n=ot/3,r=id(e),i=r(t,n);return i.parallels=function(s){return arguments.length?r(t=s[0]*$t,n=s[1]*$t):[t*Xt,n*Xt]},i}function Eb(e){var t=yt(e);function n(r,i){return[r*t,ft(i)/t]}return n.invert=function(r,i){return[r/t,Ye(i*t)]},n}function Sb(e,t){var n=ft(e),r=(n+ft(t))/2;if(gt(r)<pt)return Eb(e);var i=1+n*(2*r-n),s=Se(i)/r;function a(o,l){var c=Se(i-2*r*ft(l))/r;return[c*ft(o*=r),s-c*yt(o)]}return a.invert=function(o,l){var c=s-l,u=$n(o,gt(c))*hn(c);return c*r<0&&(u-=ot*hn(o)*hn(c)),[u/r,Ye((i-(o*o+c*c)*r*r)/(2*r))]},a}function ad(){return sd(Sb).scale(155.424).center([0,33.6442])}function Ob(){return ad().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function qo(e,t){return[e,Hx(Gx((ee+t)/2))]}qo.invert=function(e,t){return[e,2*bh(Vx(t))-ee]};function Tb(){return Mb(qo).scale(961/le)}function Mb(e){var t=$s(e),n=t.center,r=t.scale,i=t.translate,s=t.clipExtent,a=null,o,l,c;t.scale=function(d){return arguments.length?(r(d),u()):r()},t.translate=function(d){return arguments.length?(i(d),u()):i()},t.center=function(d){return arguments.length?(n(d),u()):n()},t.clipExtent=function(d){return arguments.length?(d==null?a=o=l=c=null:(a=+d[0][0],o=+d[0][1],l=+d[1][0],c=+d[1][1]),u()):a==null?null:[[a,o],[l,c]]};function u(){var d=ot*r(),h=t(zx(t.rotate()).invert([0,0]));return s(a==null?[[h[0]-d,h[1]-d],[h[0]+d,h[1]+d]]:e===qo?[[Math.max(h[0]-d,a),o],[Math.min(h[0]+d,l),c]]:[[a,Math.max(h[1]-d,o)],[l,Math.min(h[1]+d,c)]])}return u()}function As(e,t){return[e,t]}As.invert=As;function Cb(){return $s(As).scale(152.63)}function $b(e,t){var n=yt(e),r=e===t?ft(e):(n-yt(t))/(t-e),i=n/r+e;if(gt(r)<pt)return As;function s(a,o){var l=i-o,c=r*a;return[l*ft(c),i-l*yt(c)]}return s.invert=function(a,o){var l=i-o,c=$n(a,gt(l))*hn(l);return l*r<0&&(c-=ot*hn(a)*hn(l)),[c/r,i-hn(r)*Se(a*a+l*l)]},s}function Ab(){return sd($b).scale(131.154).center([0,13.9389])}var ti=1.340264,ei=-.081106,ni=893e-6,ri=.003796,Ls=Se(3)/2,Lb=12;function od(e,t){var n=Ye(Ls*ft(t)),r=n*n,i=r*r*r;return[e*yt(n)/(Ls*(ti+3*ei*r+i*(7*ni+9*ri*r))),n*(ti+ei*r+i*(ni+ri*r))]}od.invert=function(e,t){for(var n=t,r=n*n,i=r*r*r,s=0,a,o,l;s<Lb&&(o=n*(ti+ei*r+i*(ni+ri*r))-t,l=ti+3*ei*r+i*(7*ni+9*ri*r),n-=a=o/l,r=n*n,i=r*r*r,!(gt(a)<yh));++s);return[Ls*e*(ti+3*ei*r+i*(7*ni+9*ri*r))/yt(n),Ye(ft(n)/Ls)]};function Db(){return $s(od).scale(177.158)}function ld(e,t){var n=t*t,r=n*n;return[e*(.8707-.131979*n+r*(-.013791+r*(.003971*n-.001529*r))),t*(1.007226+n*(.015085+r*(-.044475+.028874*n-.005916*r)))]}ld.invert=function(e,t){var n=t,r=25,i;do{var s=n*n,a=s*s;n-=i=(n*(1.007226+s*(.015085+a*(-.044475+.028874*s-.005916*a)))-t)/(1.007226+s*(.015085*3+a*(-.044475*7+.028874*9*s-.005916*11*a)))}while(gt(i)>pt&&--r>0);return[e/(.8707+(s=n*n)*(-.131979+s*(-.013791+s*s*s*(.003971-.001529*s)))),n]};function kb(){return $s(ld).scale(175.295)}function Rb(e,t){return e.parent===t.parent?1:2}function Ib(e){return e.reduce(Nb,0)/e.length}function Nb(e,t){return e+t.x}function Pb(e){return 1+e.reduce(Ub,0)}function Ub(e,t){return Math.max(e,t.y)}function Bb(e){for(var t;t=e.children;)e=t[0];return e}function Vb(e){for(var t;t=e.children;)e=t[t.length-1];return e}function Hb(){var e=Rb,t=1,n=1,r=!1;function i(s){var a,o=0;s.eachAfter(function(h){var f=h.children;f?(h.x=Ib(f),h.y=Pb(f)):(h.x=a?o+=e(h,a):0,h.y=0,a=h)});var l=Bb(s),c=Vb(s),u=l.x-e(l,c)/2,d=c.x+e(c,l)/2;return s.eachAfter(r?function(h){h.x=(h.x-s.x)*t,h.y=(s.y-h.y)*n}:function(h){h.x=(h.x-u)/(d-u)*t,h.y=(1-(s.y?h.y/s.y:1))*n})}return i.separation=function(s){return arguments.length?(e=s,i):e},i.size=function(s){return arguments.length?(r=!1,t=+s[0],n=+s[1],i):r?null:[t,n]},i.nodeSize=function(s){return arguments.length?(r=!0,t=+s[0],n=+s[1],i):r?[t,n]:null},i}function Gb(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 Fb(){return this.eachAfter(Gb)}function zb(e,t){let n=-1;for(const r of this)e.call(t,r,++n,this);return this}function jb(e,t){for(var n=this,r=[n],i,s,a=-1;n=r.pop();)if(e.call(t,n,++a,this),i=n.children)for(s=i.length-1;s>=0;--s)r.push(i[s]);return this}function Wb(e,t){for(var n=this,r=[n],i=[],s,a,o,l=-1;n=r.pop();)if(i.push(n),s=n.children)for(a=0,o=s.length;a<o;++a)r.push(s[a]);for(;n=i.pop();)e.call(t,n,++l,this);return this}function qb(e,t){let n=-1;for(const r of this)if(e.call(t,r,++n,this))return r}function Yb(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})}function Xb(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function Zb(e){for(var t=this,n=Kb(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 Kb(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}function Qb(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function Jb(){return Array.from(this)}function tw(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function ew(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function*nw(){var e=this,t,n=[e],r,i,s;do for(t=n.reverse(),n=[];e=t.pop();)if(yield e,r=e.children)for(i=0,s=r.length;i<s;++i)n.push(r[i]);while(n.length)}function ii(e,t){e instanceof Map?(e=[void 0,e],t===void 0&&(t=sw)):t===void 0&&(t=iw);for(var n=new si(e),r,i=[n],s,a,o,l;r=i.pop();)if((a=t(r.data))&&(l=(a=Array.from(a)).length))for(r.children=a,o=l-1;o>=0;--o)i.push(s=a[o]=new si(a[o])),s.parent=r,s.depth=r.depth+1;return n.eachBefore(ow)}function rw(){return ii(this).eachBefore(aw)}function iw(e){return e.children}function sw(e){return Array.isArray(e)?e[1]:null}function aw(e){e.data.value!==void 0&&(e.value=e.data.value),e.data=e.data.data}function ow(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function si(e){this.data=e,this.depth=this.height=0,this.parent=null}si.prototype=ii.prototype={constructor:si,count:Fb,each:zb,eachAfter:Wb,eachBefore:jb,find:qb,sum:Yb,sort:Xb,path:Zb,ancestors:Qb,descendants:Jb,leaves:tw,links:ew,copy:rw,[Symbol.iterator]:nw};function lw(e){return e==null?null:cd(e)}function cd(e){if(typeof e!="function")throw new Error;return e}function Ln(){return 0}function or(e){return function(){return e}}const cw=1664525,uw=1013904223,ud=4294967296;function hw(){let e=1;return()=>(e=(cw*e+uw)%ud)/ud}function dw(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function fw(e,t){let n=e.length,r,i;for(;n;)i=t()*n--|0,r=e[n],e[n]=e[i],e[i]=r;return e}function pw(e,t){for(var n=0,r=(e=fw(Array.from(e),t)).length,i=[],s,a;n<r;)s=e[n],a&&hd(a,s)?++n:(a=mw(i=gw(i,s)),n=0);return a}function gw(e,t){var n,r;if(Yo(t,e))return[t];for(n=0;n<e.length;++n)if(Ds(t,e[n])&&Yo(ai(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(r=n+1;r<e.length;++r)if(Ds(ai(e[n],e[r]),t)&&Ds(ai(e[n],t),e[r])&&Ds(ai(e[r],t),e[n])&&Yo(dd(e[n],e[r],t),e))return[e[n],e[r],t];throw new Error}function Ds(e,t){var n=e.r-t.r,r=t.x-e.x,i=t.y-e.y;return n<0||n*n<r*r+i*i}function hd(e,t){var n=e.r-t.r+Math.max(e.r,t.r,1)*1e-9,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function Yo(e,t){for(var n=0;n<t.length;++n)if(!hd(e,t[n]))return!1;return!0}function mw(e){switch(e.length){case 1:return vw(e[0]);case 2:return ai(e[0],e[1]);case 3:return dd(e[0],e[1],e[2])}}function vw(e){return{x:e.x,y:e.y,r:e.r}}function ai(e,t){var n=e.x,r=e.y,i=e.r,s=t.x,a=t.y,o=t.r,l=s-n,c=a-r,u=o-i,d=Math.sqrt(l*l+c*c);return{x:(n+s+l/d*u)/2,y:(r+a+c/d*u)/2,r:(d+i+o)/2}}function dd(e,t,n){var r=e.x,i=e.y,s=e.r,a=t.x,o=t.y,l=t.r,c=n.x,u=n.y,d=n.r,h=r-a,f=r-c,p=i-o,m=i-u,g=l-s,v=d-s,y=r*r+i*i-s*s,x=y-a*a-o*o+l*l,S=y-c*c-u*u+d*d,_=f*p-h*m,E=(p*S-m*x)/(_*2)-r,T=(m*g-p*v)/_,k=(f*x-h*S)/(_*2)-i,I=(h*v-f*g)/_,A=T*T+I*I-1,C=2*(s+E*T+k*I),B=E*E+k*k-s*s,M=-(Math.abs(A)>1e-6?(C+Math.sqrt(C*C-4*A*B))/(2*A):B/C);return{x:r+E+T*M,y:i+k+I*M,r:M}}function fd(e,t,n){var r=e.x-t.x,i,s,a=e.y-t.y,o,l,c=r*r+a*a;c?(s=t.r+n.r,s*=s,l=e.r+n.r,l*=l,s>l?(i=(c+l-s)/(2*c),o=Math.sqrt(Math.max(0,l/c-i*i)),n.x=e.x-i*r-o*a,n.y=e.y-i*a+o*r):(i=(c+s-l)/(2*c),o=Math.sqrt(Math.max(0,s/c-i*i)),n.x=t.x+i*r-o*a,n.y=t.y+i*a+o*r)):(n.x=t.x+n.r,n.y=t.y)}function pd(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function gd(e){var t=e._,n=e.next._,r=t.r+n.r,i=(t.x*n.r+n.x*t.r)/r,s=(t.y*n.r+n.y*t.r)/r;return i*i+s*s}function ks(e){this._=e,this.next=null,this.previous=null}function yw(e,t){if(!(s=(e=dw(e)).length))return 0;var n,r,i,s,a,o,l,c,u,d,h;if(n=e[0],n.x=0,n.y=0,!(s>1))return n.r;if(r=e[1],n.x=-r.r,r.x=n.r,r.y=0,!(s>2))return n.r+r.r;fd(r,n,i=e[2]),n=new ks(n),r=new ks(r),i=new ks(i),n.next=i.previous=r,r.next=n.previous=i,i.next=r.previous=n;t:for(l=3;l<s;++l){fd(n._,r._,i=e[l]),i=new ks(i),c=r.next,u=n.previous,d=r._.r,h=n._.r;do if(d<=h){if(pd(c._,i._)){r=c,n.next=r,r.previous=n,--l;continue t}d+=c._.r,c=c.next}else{if(pd(u._,i._)){n=u,n.next=r,r.previous=n,--l;continue t}h+=u._.r,u=u.previous}while(c!==u.next);for(i.previous=n,i.next=r,n.next=r.previous=r=i,a=gd(n);(i=i.next)!==r;)(o=gd(i))<a&&(n=i,a=o);r=n.next}for(n=[r._],i=r;(i=i.next)!==r;)n.push(i._);for(i=pw(n,t),l=0;l<s;++l)n=e[l],n.x-=i.x,n.y-=i.y;return i.r}function xw(e){return Math.sqrt(e.value)}function bw(){var e=null,t=1,n=1,r=Ln;function i(s){const a=hw();return s.x=t/2,s.y=n/2,e?s.eachBefore(md(e)).eachAfter(Xo(r,.5,a)).eachBefore(vd(1)):s.eachBefore(md(xw)).eachAfter(Xo(Ln,1,a)).eachAfter(Xo(r,s.r/Math.min(t,n),a)).eachBefore(vd(Math.min(t,n)/(2*s.r))),s}return i.radius=function(s){return arguments.length?(e=lw(s),i):e},i.size=function(s){return arguments.length?(t=+s[0],n=+s[1],i):[t,n]},i.padding=function(s){return arguments.length?(r=typeof s=="function"?s:or(+s),i):r},i}function md(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function Xo(e,t,n){return function(r){if(i=r.children){var i,s,a=i.length,o=e(r)*t||0,l;if(o)for(s=0;s<a;++s)i[s].r+=o;if(l=yw(i,n),o)for(s=0;s<a;++s)i[s].r-=o;r.r=l+o}}}function vd(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}function ww(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)}function _w(e,t,n,r,i){for(var s=e.children,a,o=-1,l=s.length,c=e.value&&(r-t)/e.value;++o<l;)a=s[o],a.y0=n,a.y1=i,a.x0=t,a.x1=t+=a.value*c}function Ew(e,t){return e.parent===t.parent?1:2}function Zo(e){var t=e.children;return t?t[0]:e.t}function Ko(e){var t=e.children;return t?t[t.length-1]:e.t}function Sw(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function Ow(e){for(var t=0,n=0,r=e.children,i=r.length,s;--i>=0;)s=r[i],s.z+=t,s.m+=t,t+=s.s+(n+=s.c)}function Tw(e,t,n){return e.a.parent===t.parent?e.a:n}function Rs(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}Rs.prototype=Object.create(si.prototype);function Mw(e){for(var t=new Rs(e,0),n,r=[t],i,s,a,o;n=r.pop();)if(s=n._.children)for(n.children=new Array(o=s.length),a=o-1;a>=0;--a)r.push(i=n.children[a]=new Rs(s[a],a)),i.parent=n;return(t.parent=new Rs(null,0)).children=[t],t}function Cw(){var e=Ew,t=1,n=1,r=null;function i(c){var u=Mw(c);if(u.eachAfter(s),u.parent.m=-u.z,u.eachBefore(a),r)c.eachBefore(l);else{var d=c,h=c,f=c;c.eachBefore(function(y){y.x<d.x&&(d=y),y.x>h.x&&(h=y),y.depth>f.depth&&(f=y)});var p=d===h?1:e(d,h)/2,m=p-d.x,g=t/(h.x+p+m),v=n/(f.depth||1);c.eachBefore(function(y){y.x=(y.x+m)*g,y.y=y.depth*v})}return c}function s(c){var u=c.children,d=c.parent.children,h=c.i?d[c.i-1]:null;if(u){Ow(c);var f=(u[0].z+u[u.length-1].z)/2;h?(c.z=h.z+e(c._,h._),c.m=c.z-f):c.z=f}else h&&(c.z=h.z+e(c._,h._));c.parent.A=o(c,h,c.parent.A||d[0])}function a(c){c._.x=c.z+c.parent.m,c.m+=c.parent.m}function o(c,u,d){if(u){for(var h=c,f=c,p=u,m=h.parent.children[0],g=h.m,v=f.m,y=p.m,x=m.m,S;p=Ko(p),h=Zo(h),p&&h;)m=Zo(m),f=Ko(f),f.a=c,S=p.z+y-h.z-g+e(p._,h._),S>0&&(Sw(Tw(p,c,d),c,S),g+=S,v+=S),y+=p.m,g+=h.m,x+=m.m,v+=f.m;p&&!Ko(f)&&(f.t=p,f.m+=y-v),h&&!Zo(m)&&(m.t=h,m.m+=g-x,d=c)}return d}function l(c){c.x*=t,c.y=c.depth*n}return i.separation=function(c){return arguments.length?(e=c,i):e},i.size=function(c){return arguments.length?(r=!1,t=+c[0],n=+c[1],i):r?null:[t,n]},i.nodeSize=function(c){return arguments.length?(r=!0,t=+c[0],n=+c[1],i):r?[t,n]:null},i}function $w(e,t,n,r,i){for(var s=e.children,a,o=-1,l=s.length,c=e.value&&(i-n)/e.value;++o<l;)a=s[o],a.x0=t,a.x1=r,a.y0=n,a.y1=n+=a.value*c}var Aw=(1+Math.sqrt(5))/2;function Lw(e,t,n,r,i,s){for(var a=[],o=t.children,l,c,u=0,d=0,h=o.length,f,p,m=t.value,g,v,y,x,S,_,E;u<h;){f=i-n,p=s-r;do g=o[d++].value;while(!g&&d<h);for(v=y=g,_=Math.max(p/f,f/p)/(m*e),E=g*g*_,S=Math.max(y/E,E/v);d<h;++d){if(g+=c=o[d].value,c<v&&(v=c),c>y&&(y=c),E=g*g*_,x=Math.max(y/E,E/v),x>S){g-=c;break}S=x}a.push(l={value:g,dice:f<p,children:o.slice(u,d)}),l.dice?_w(l,n,r,i,m?r+=p*g/m:s):$w(l,n,r,m?n+=f*g/m:i,s),m-=g,u=d}return a}const Dw=function e(t){function n(r,i,s,a,o){Lw(t,r,i,s,a,o)}return n.ratio=function(r){return e((r=+r)>1?r:1)},n}(Aw);function kw(){var e=Dw,t=!1,n=1,r=1,i=[0],s=Ln,a=Ln,o=Ln,l=Ln,c=Ln;function u(h){return h.x0=h.y0=0,h.x1=n,h.y1=r,h.eachBefore(d),i=[0],t&&h.eachBefore(ww),h}function d(h){var f=i[h.depth],p=h.x0+f,m=h.y0+f,g=h.x1-f,v=h.y1-f;g<p&&(p=g=(p+g)/2),v<m&&(m=v=(m+v)/2),h.x0=p,h.y0=m,h.x1=g,h.y1=v,h.children&&(f=i[h.depth+1]=s(h)/2,p+=c(h)-f,m+=a(h)-f,g-=o(h)-f,v-=l(h)-f,g<p&&(p=g=(p+g)/2),v<m&&(m=v=(m+v)/2),e(h,p,m,g,v))}return u.round=function(h){return arguments.length?(t=!!h,u):t},u.size=function(h){return arguments.length?(n=+h[0],r=+h[1],u):[n,r]},u.tile=function(h){return arguments.length?(e=cd(h),u):e},u.padding=function(h){return arguments.length?u.paddingInner(h).paddingOuter(h):u.paddingInner()},u.paddingInner=function(h){return arguments.length?(s=typeof h=="function"?h:or(+h),u):s},u.paddingOuter=function(h){return arguments.length?u.paddingTop(h).paddingRight(h).paddingBottom(h).paddingLeft(h):u.paddingTop()},u.paddingTop=function(h){return arguments.length?(a=typeof h=="function"?h:or(+h),u):a},u.paddingRight=function(h){return arguments.length?(o=typeof h=="function"?h:or(+h),u):o},u.paddingBottom=function(h){return arguments.length?(l=typeof h=="function"?h:or(+h),u):l},u.paddingLeft=function(h){return arguments.length?(c=typeof h=="function"?h:or(+h),u):c},u}function lr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}const yd=Symbol("implicit");function Is(){var e=new lu,t=[],n=[],r=yd;function i(s){let a=e.get(s);if(a===void 0){if(r!==yd)return r;e.set(s,a=t.push(s)-1)}return n[a%n.length]}return i.domain=function(s){if(!arguments.length)return t.slice();t=[],e=new lu;for(const a of s)e.has(a)||e.set(a,t.push(a)-1);return i},i.range=function(s){return arguments.length?(n=Array.from(s),i):n.slice()},i.unknown=function(s){return arguments.length?(r=s,i):r},i.copy=function(){return Is(t,n).unknown(r)},lr.apply(i,arguments),i}function oi(){var e=Is().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,s,a,o=!1,l=0,c=0,u=.5;delete e.unknown;function d(){var h=t().length,f=i<r,p=f?i:r,m=f?r:i;s=(m-p)/Math.max(1,h-l+c*2),o&&(s=Math.floor(s)),p+=(m-p-s*(h-l))*u,a=s*(1-l),o&&(p=Math.round(p),a=Math.round(a));var g=Hv(h).map(function(v){return p+s*v});return n(f?g.reverse():g)}return e.domain=function(h){return arguments.length?(t(h),d()):t()},e.range=function(h){return arguments.length?([r,i]=h,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(h){return[r,i]=h,r=+r,i=+i,o=!0,d()},e.bandwidth=function(){return a},e.step=function(){return s},e.round=function(h){return arguments.length?(o=!!h,d()):o},e.padding=function(h){return arguments.length?(l=Math.min(1,c=+h),d()):l},e.paddingInner=function(h){return arguments.length?(l=Math.min(1,h),d()):l},e.paddingOuter=function(h){return arguments.length?(c=+h,d()):c},e.align=function(h){return arguments.length?(u=Math.max(0,Math.min(1,h)),d()):u},e.copy=function(){return oi(t(),[r,i]).round(o).paddingInner(l).paddingOuter(c).align(u)},lr.apply(d(),arguments)}function Rw(e){return function(){return e}}function Iw(e){return+e}var xd=[0,1];function cr(e){return e}function Qo(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Rw(isNaN(t)?NaN:.5)}function Nw(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Pw(e,t,n){var r=e[0],i=e[1],s=t[0],a=t[1];return i<r?(r=Qo(i,r),s=n(a,s)):(r=Qo(r,i),s=n(s,a)),function(o){return s(r(o))}}function Uw(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),s=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)i[a]=Qo(e[a],e[a+1]),s[a]=n(t[a],t[a+1]);return function(o){var l=Fa(e,o,1,r)-1;return s[l](i[l](o))}}function Jo(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function bd(){var e=xd,t=xd,n=Gr,r,i,s,a=cr,o,l,c;function u(){var h=Math.min(e.length,t.length);return a!==cr&&(a=Nw(e[0],e[h-1])),o=h>2?Uw:Pw,l=c=null,d}function d(h){return h==null||isNaN(h=+h)?s:(l||(l=o(e.map(r),t,n)))(r(a(h)))}return d.invert=function(h){return a(i((c||(c=o(t,e.map(r),oe)))(h)))},d.domain=function(h){return arguments.length?(e=Array.from(h,Iw),u()):e.slice()},d.range=function(h){return arguments.length?(t=Array.from(h),u()):t.slice()},d.rangeRound=function(h){return t=Array.from(h),n=Hu,u()},d.clamp=function(h){return arguments.length?(a=h?!0:cr,u()):a!==cr},d.interpolate=function(h){return arguments.length?(n=h,u()):n},d.unknown=function(h){return arguments.length?(s=h,d):s},function(h,f){return r=h,i=f,u()}}function wd(){return bd()(cr,cr)}function Bw(e,t,n,r){var i=ja(e,t,n),s;switch(r=qr(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(s=Ux(i,a))&&(r.precision=s),vh(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(s=Bx(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=s-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(s=Px(i))&&(r.precision=s-(r.type==="%")*2);break}}return Oo(r)}function _d(e){var t=e.domain;return e.ticks=function(n){var r=t();return ji(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return Bw(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,s=r.length-1,a=r[i],o=r[s],l,c,u=10;for(o<a&&(c=a,a=o,o=c,c=i,i=s,s=c);u-- >0;){if(c=Zn(a,o,n),c===l)return r[i]=a,r[s]=o,t(r);if(c>0)a=Math.floor(a/c)*c,o=Math.ceil(o/c)*c;else if(c<0)a=Math.ceil(a*c)/c,o=Math.floor(o*c)/c;else break;l=c}return e},e}function Te(){var e=wd();return e.copy=function(){return Jo(e,Te())},lr.apply(e,arguments),_d(e)}function Ed(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],s=e[r],a;return s<i&&(a=n,n=r,r=a,a=i,i=s,s=a),e[n]=t.floor(i),e[r]=t.ceil(s),e}function Sd(e){return Math.log(e)}function Od(e){return Math.exp(e)}function Vw(e){return-Math.log(-e)}function Hw(e){return-Math.exp(-e)}function Gw(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Fw(e){return e===10?Gw:e===Math.E?Math.exp:t=>Math.pow(e,t)}function zw(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function Td(e){return(t,n)=>-e(-t,n)}function jw(e){const t=e(Sd,Od),n=t.domain;let r=10,i,s;function a(){return i=zw(r),s=Fw(r),n()[0]<0?(i=Td(i),s=Td(s),e(Vw,Hw)):e(Sd,Od),t}return t.base=function(o){return arguments.length?(r=+o,a()):r},t.domain=function(o){return arguments.length?(n(o),a()):n()},t.ticks=o=>{const l=n();let c=l[0],u=l[l.length-1];const d=u<c;d&&([c,u]=[u,c]);let h=i(c),f=i(u),p,m;const g=o==null?10:+o;let v=[];if(!(r%1)&&f-h<g){if(h=Math.floor(h),f=Math.ceil(f),c>0){for(;h<=f;++h)for(p=1;p<r;++p)if(m=h<0?p/s(-h):p*s(h),!(m<c)){if(m>u)break;v.push(m)}}else for(;h<=f;++h)for(p=r-1;p>=1;--p)if(m=h>0?p/s(-h):p*s(h),!(m<c)){if(m>u)break;v.push(m)}v.length*2<g&&(v=ji(c,u,g))}else v=ji(h,f,Math.min(f-h,g)).map(s);return d?v.reverse():v},t.tickFormat=(o,l)=>{if(o==null&&(o=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=qr(l)).precision==null&&(l.trim=!0),l=Oo(l)),o===1/0)return l;const c=Math.max(1,r*o/t.ticks().length);return u=>{let d=u/s(Math.round(i(u)));return d*r<r-.5&&(d*=r),d<=c?l(u):""}},t.nice=()=>n(Ed(n(),{floor:o=>s(Math.floor(i(o))),ceil:o=>s(Math.ceil(i(o)))})),t}function Md(){const e=jw(bd()).domain([1,10]);return e.copy=()=>Jo(e,Md()).base(e.base()),lr.apply(e,arguments),e}function tl(){var e=0,t=1,n=1,r=[.5],i=[0,1],s;function a(l){return l!=null&&l<=l?i[Fa(r,l,0,n)]:s}function o(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return a}return a.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,o()):[e,t]},a.range=function(l){return arguments.length?(n=(i=Array.from(l)).length-1,o()):i.slice()},a.invertExtent=function(l){var c=i.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,r[0]]:c>=n?[r[n-1],t]:[r[c-1],r[c]]},a.unknown=function(l){return arguments.length&&(s=l),a},a.thresholds=function(){return r.slice()},a.copy=function(){return tl().domain([e,t]).range(i).unknown(s)},lr.apply(_d(a),arguments)}const el=new Date,nl=new Date;function Pt(e,t,n,r){function i(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}return i.floor=s=>(e(s=new Date(+s)),s),i.ceil=s=>(e(s=new Date(s-1)),t(s,1),e(s),s),i.round=s=>{const a=i(s),o=i.ceil(s);return s-a<o-s?a:o},i.offset=(s,a)=>(t(s=new Date(+s),a==null?1:Math.floor(a)),s),i.range=(s,a,o)=>{const l=[];if(s=i.ceil(s),o=o==null?1:Math.floor(o),!(s<a)||!(o>0))return l;let c;do l.push(c=new Date(+s)),t(s,o),e(s);while(c<s&&s<a);return l},i.filter=s=>Pt(a=>{if(a>=a)for(;e(a),!s(a);)a.setTime(a-1)},(a,o)=>{if(a>=a)if(o<0)for(;++o<=0;)for(;t(a,-1),!s(a););else for(;--o>=0;)for(;t(a,1),!s(a););}),n&&(i.count=(s,a)=>(el.setTime(+s),nl.setTime(+a),e(el),e(nl),Math.floor(n(el,nl))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?a=>r(a)%s===0:a=>i.count(0,a)%s===0):i)),i}const Ns=Pt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Ns.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Pt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Ns),Ns.range;const Xe=1e3,ge=Xe*60,Ze=ge*60,Ke=Ze*24,rl=Ke*7,Cd=Ke*30,il=Ke*365,ur=Pt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Xe)},(e,t)=>(t-e)/Xe,e=>e.getUTCSeconds());ur.range;const sl=Pt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Xe)},(e,t)=>{e.setTime(+e+t*ge)},(e,t)=>(t-e)/ge,e=>e.getMinutes());sl.range,Pt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ge)},(e,t)=>(t-e)/ge,e=>e.getUTCMinutes()).range;const al=Pt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Xe-e.getMinutes()*ge)},(e,t)=>{e.setTime(+e+t*Ze)},(e,t)=>(t-e)/Ze,e=>e.getHours());al.range,Pt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ze)},(e,t)=>(t-e)/Ze,e=>e.getUTCHours()).range;const li=Pt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ge)/Ke,e=>e.getDate()-1);li.range;const ol=Pt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ke,e=>e.getUTCDate()-1);ol.range,Pt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ke,e=>Math.floor(e/Ke)).range;function Dn(e){return Pt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*ge)/rl)}const Ps=Dn(0),Us=Dn(1),Ww=Dn(2),qw=Dn(3),hr=Dn(4),Yw=Dn(5),Xw=Dn(6);Ps.range,Us.range,Ww.range,qw.range,hr.range,Yw.range,Xw.range;function kn(e){return Pt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/rl)}const $d=kn(0),Bs=kn(1),Zw=kn(2),Kw=kn(3),dr=kn(4),Qw=kn(5),Jw=kn(6);$d.range,Bs.range,Zw.range,Kw.range,dr.range,Qw.range,Jw.range;const ll=Pt(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());ll.range,Pt(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()).range;const Qe=Pt(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());Qe.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Pt(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)}),Qe.range;const Rn=Pt(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());Rn.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Pt(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)}),Rn.range;function t_(e,t,n,r,i,s){const a=[[ur,1,Xe],[ur,5,5*Xe],[ur,15,15*Xe],[ur,30,30*Xe],[s,1,ge],[s,5,5*ge],[s,15,15*ge],[s,30,30*ge],[i,1,Ze],[i,3,3*Ze],[i,6,6*Ze],[i,12,12*Ze],[r,1,Ke],[r,2,2*Ke],[n,1,rl],[t,1,Cd],[t,3,3*Cd],[e,1,il]];function o(c,u,d){const h=u<c;h&&([c,u]=[u,c]);const f=d&&typeof d.range=="function"?d:l(c,u,d),p=f?f.range(c,+u+1):[];return h?p.reverse():p}function l(c,u,d){const h=Math.abs(u-c)/d,f=Ga(([,,g])=>g).right(a,h);if(f===a.length)return e.every(ja(c/il,u/il,d));if(f===0)return Ns.every(Math.max(ja(c,u,d),1));const[p,m]=a[h/a[f-1][2]<a[f][2]/h?f-1:f];return p.every(m)}return[o,l]}const[e_,n_]=t_(Qe,ll,Ps,li,al,sl);function cl(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 ul(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 ci(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function r_(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,s=e.days,a=e.shortDays,o=e.months,l=e.shortMonths,c=ui(i),u=hi(i),d=ui(s),h=hi(s),f=ui(a),p=hi(a),m=ui(o),g=hi(o),v=ui(l),y=hi(l),x={a:P,A:R,b:U,B:F,c:null,d:Id,e:Id,f:T_,g:N_,G:U_,H:E_,I:S_,j:O_,L:Nd,m:M_,M:C_,p:j,q:K,Q:Gd,s:Fd,S:$_,u:A_,U:L_,V:D_,w:k_,W:R_,x:null,X:null,y:I_,Y:P_,Z:B_,"%":Hd},S={a:ut,A:G,b:Y,B:ct,c:null,d:Ud,e:Ud,f:F_,g:J_,G:eE,H:V_,I:H_,j:G_,L:Bd,m:z_,M:j_,p:et,q:Lt,Q:Gd,s:Fd,S:W_,u:q_,U:Y_,V:X_,w:Z_,W:K_,x:null,X:null,y:Q_,Y:tE,Z:nE,"%":Hd},_={a:A,A:C,b:B,B:M,c:$,d:kd,e:kd,f:x_,g:Dd,G:Ld,H:Rd,I:Rd,j:g_,L:y_,m:p_,M:m_,p:I,q:f_,Q:w_,s:__,S:v_,u:l_,U:c_,V:u_,w:o_,W:h_,x:w,X:N,y:Dd,Y:Ld,Z:d_,"%":b_};x.x=E(n,x),x.X=E(r,x),x.c=E(t,x),S.x=E(n,S),S.X=E(r,S),S.c=E(t,S);function E(z,Q){return function(at){var H=[],Dt=-1,vt=0,Qt=z.length,Jt,J,kt;for(at instanceof Date||(at=new Date(+at));++Dt<Qt;)z.charCodeAt(Dt)===37&&(H.push(z.slice(vt,Dt)),(J=Ad[Jt=z.charAt(++Dt)])!=null?Jt=z.charAt(++Dt):J=Jt==="e"?" ":"0",(kt=Q[Jt])&&(Jt=kt(at,J)),H.push(Jt),vt=Dt+1);return H.push(z.slice(vt,Dt)),H.join("")}}function T(z,Q){return function(at){var H=ci(1900,void 0,1),Dt=k(H,z,at+="",0),vt,Qt;if(Dt!=at.length)return null;if("Q"in H)return new Date(H.Q);if("s"in H)return new Date(H.s*1e3+("L"in H?H.L:0));if(Q&&!("Z"in H)&&(H.Z=0),"p"in H&&(H.H=H.H%12+H.p*12),H.m===void 0&&(H.m="q"in H?H.q:0),"V"in H){if(H.V<1||H.V>53)return null;"w"in H||(H.w=1),"Z"in H?(vt=ul(ci(H.y,0,1)),Qt=vt.getUTCDay(),vt=Qt>4||Qt===0?Bs.ceil(vt):Bs(vt),vt=ol.offset(vt,(H.V-1)*7),H.y=vt.getUTCFullYear(),H.m=vt.getUTCMonth(),H.d=vt.getUTCDate()+(H.w+6)%7):(vt=cl(ci(H.y,0,1)),Qt=vt.getDay(),vt=Qt>4||Qt===0?Us.ceil(vt):Us(vt),vt=li.offset(vt,(H.V-1)*7),H.y=vt.getFullYear(),H.m=vt.getMonth(),H.d=vt.getDate()+(H.w+6)%7)}else("W"in H||"U"in H)&&("w"in H||(H.w="u"in H?H.u%7:"W"in H?1:0),Qt="Z"in H?ul(ci(H.y,0,1)).getUTCDay():cl(ci(H.y,0,1)).getDay(),H.m=0,H.d="W"in H?(H.w+6)%7+H.W*7-(Qt+5)%7:H.w+H.U*7-(Qt+6)%7);return"Z"in H?(H.H+=H.Z/100|0,H.M+=H.Z%100,ul(H)):cl(H)}}function k(z,Q,at,H){for(var Dt=0,vt=Q.length,Qt=at.length,Jt,J;Dt<vt;){if(H>=Qt)return-1;if(Jt=Q.charCodeAt(Dt++),Jt===37){if(Jt=Q.charAt(Dt++),J=_[Jt in Ad?Q.charAt(Dt++):Jt],!J||(H=J(z,at,H))<0)return-1}else if(Jt!=at.charCodeAt(H++))return-1}return H}function I(z,Q,at){var H=c.exec(Q.slice(at));return H?(z.p=u.get(H[0].toLowerCase()),at+H[0].length):-1}function A(z,Q,at){var H=f.exec(Q.slice(at));return H?(z.w=p.get(H[0].toLowerCase()),at+H[0].length):-1}function C(z,Q,at){var H=d.exec(Q.slice(at));return H?(z.w=h.get(H[0].toLowerCase()),at+H[0].length):-1}function B(z,Q,at){var H=v.exec(Q.slice(at));return H?(z.m=y.get(H[0].toLowerCase()),at+H[0].length):-1}function M(z,Q,at){var H=m.exec(Q.slice(at));return H?(z.m=g.get(H[0].toLowerCase()),at+H[0].length):-1}function $(z,Q,at){return k(z,t,Q,at)}function w(z,Q,at){return k(z,n,Q,at)}function N(z,Q,at){return k(z,r,Q,at)}function P(z){return a[z.getDay()]}function R(z){return s[z.getDay()]}function U(z){return l[z.getMonth()]}function F(z){return o[z.getMonth()]}function j(z){return i[+(z.getHours()>=12)]}function K(z){return 1+~~(z.getMonth()/3)}function ut(z){return a[z.getUTCDay()]}function G(z){return s[z.getUTCDay()]}function Y(z){return l[z.getUTCMonth()]}function ct(z){return o[z.getUTCMonth()]}function et(z){return i[+(z.getUTCHours()>=12)]}function Lt(z){return 1+~~(z.getUTCMonth()/3)}return{format:function(z){var Q=E(z+="",x);return Q.toString=function(){return z},Q},parse:function(z){var Q=T(z+="",!1);return Q.toString=function(){return z},Q},utcFormat:function(z){var Q=E(z+="",S);return Q.toString=function(){return z},Q},utcParse:function(z){var Q=T(z+="",!0);return Q.toString=function(){return z},Q}}}var Ad={"-":"",_:" ",0:"0"},Vt=/^\s*\d+/,i_=/^%/,s_=/[\\^$*+?|[\]().{}]/g;function ht(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",s=i.length;return r+(s<n?new Array(n-s+1).join(t)+i:i)}function a_(e){return e.replace(s_,"\\$&")}function ui(e){return new RegExp("^(?:"+e.map(a_).join("|")+")","i")}function hi(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function o_(e,t,n){var r=Vt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function l_(e,t,n){var r=Vt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function c_(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function u_(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function h_(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Ld(e,t,n){var r=Vt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Dd(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function d_(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 f_(e,t,n){var r=Vt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function p_(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function kd(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function g_(e,t,n){var r=Vt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Rd(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function m_(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function v_(e,t,n){var r=Vt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function y_(e,t,n){var r=Vt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function x_(e,t,n){var r=Vt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function b_(e,t,n){var r=i_.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function w_(e,t,n){var r=Vt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function __(e,t,n){var r=Vt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function Id(e,t){return ht(e.getDate(),t,2)}function E_(e,t){return ht(e.getHours(),t,2)}function S_(e,t){return ht(e.getHours()%12||12,t,2)}function O_(e,t){return ht(1+li.count(Qe(e),e),t,3)}function Nd(e,t){return ht(e.getMilliseconds(),t,3)}function T_(e,t){return Nd(e,t)+"000"}function M_(e,t){return ht(e.getMonth()+1,t,2)}function C_(e,t){return ht(e.getMinutes(),t,2)}function $_(e,t){return ht(e.getSeconds(),t,2)}function A_(e){var t=e.getDay();return t===0?7:t}function L_(e,t){return ht(Ps.count(Qe(e)-1,e),t,2)}function Pd(e){var t=e.getDay();return t>=4||t===0?hr(e):hr.ceil(e)}function D_(e,t){return e=Pd(e),ht(hr.count(Qe(e),e)+(Qe(e).getDay()===4),t,2)}function k_(e){return e.getDay()}function R_(e,t){return ht(Us.count(Qe(e)-1,e),t,2)}function I_(e,t){return ht(e.getFullYear()%100,t,2)}function N_(e,t){return e=Pd(e),ht(e.getFullYear()%100,t,2)}function P_(e,t){return ht(e.getFullYear()%1e4,t,4)}function U_(e,t){var n=e.getDay();return e=n>=4||n===0?hr(e):hr.ceil(e),ht(e.getFullYear()%1e4,t,4)}function B_(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+ht(t/60|0,"0",2)+ht(t%60,"0",2)}function Ud(e,t){return ht(e.getUTCDate(),t,2)}function V_(e,t){return ht(e.getUTCHours(),t,2)}function H_(e,t){return ht(e.getUTCHours()%12||12,t,2)}function G_(e,t){return ht(1+ol.count(Rn(e),e),t,3)}function Bd(e,t){return ht(e.getUTCMilliseconds(),t,3)}function F_(e,t){return Bd(e,t)+"000"}function z_(e,t){return ht(e.getUTCMonth()+1,t,2)}function j_(e,t){return ht(e.getUTCMinutes(),t,2)}function W_(e,t){return ht(e.getUTCSeconds(),t,2)}function q_(e){var t=e.getUTCDay();return t===0?7:t}function Y_(e,t){return ht($d.count(Rn(e)-1,e),t,2)}function Vd(e){var t=e.getUTCDay();return t>=4||t===0?dr(e):dr.ceil(e)}function X_(e,t){return e=Vd(e),ht(dr.count(Rn(e),e)+(Rn(e).getUTCDay()===4),t,2)}function Z_(e){return e.getUTCDay()}function K_(e,t){return ht(Bs.count(Rn(e)-1,e),t,2)}function Q_(e,t){return ht(e.getUTCFullYear()%100,t,2)}function J_(e,t){return e=Vd(e),ht(e.getUTCFullYear()%100,t,2)}function tE(e,t){return ht(e.getUTCFullYear()%1e4,t,4)}function eE(e,t){var n=e.getUTCDay();return e=n>=4||n===0?dr(e):dr.ceil(e),ht(e.getUTCFullYear()%1e4,t,4)}function nE(){return"+0000"}function Hd(){return"%"}function Gd(e){return+e}function Fd(e){return Math.floor(+e/1e3)}var fr,zd;rE({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function rE(e){return fr=r_(e),zd=fr.format,fr.parse,fr.utcFormat,fr.utcParse,fr}function iE(e){return new Date(e)}function sE(e){return e instanceof Date?+e:+new Date(+e)}function jd(e,t,n,r,i,s,a,o,l,c){var u=wd(),d=u.invert,h=u.domain,f=c(".%L"),p=c(":%S"),m=c("%I:%M"),g=c("%I %p"),v=c("%a %d"),y=c("%b %d"),x=c("%B"),S=c("%Y");function _(E){return(l(E)<E?f:o(E)<E?p:a(E)<E?m:s(E)<E?g:r(E)<E?i(E)<E?v:y:n(E)<E?x:S)(E)}return u.invert=function(E){return new Date(d(E))},u.domain=function(E){return arguments.length?h(Array.from(E,sE)):h().map(iE)},u.ticks=function(E){var T=h();return e(T[0],T[T.length-1],E??10)},u.tickFormat=function(E,T){return T==null?_:c(T)},u.nice=function(E){var T=h();return(!E||typeof E.range!="function")&&(E=t(T[0],T[T.length-1],E??10)),E?h(Ed(T,E)):u},u.copy=function(){return Jo(u,jd(e,t,n,r,i,s,a,o,l,c))},u}function Wd(){return lr.apply(jd(e_,n_,Qe,ll,Ps,li,al,sl,ur,zd).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function st(e){return function(){return e}}const qd=Math.abs,Wt=Math.atan2,In=Math.cos,aE=Math.max,hl=Math.min,Pe=Math.sin,pr=Math.sqrt,qt=1e-12,di=Math.PI,Vs=di/2,Hs=2*di;function oE(e){return e>1?0:e<-1?di:Math.acos(e)}function Yd(e){return e>=1?Vs:e<=-1?-Vs:Math.asin(e)}function Gs(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new Cx(t)}function lE(e){return e.innerRadius}function cE(e){return e.outerRadius}function uE(e){return e.startAngle}function hE(e){return e.endAngle}function dE(e){return e&&e.padAngle}function fE(e,t,n,r,i,s,a,o){var l=n-e,c=r-t,u=a-i,d=o-s,h=d*l-u*c;if(!(h*h<qt))return h=(u*(t-s)-d*(e-i))/h,[e+h*l,t+h*c]}function Fs(e,t,n,r,i,s,a){var o=e-n,l=t-r,c=(a?s:-s)/pr(o*o+l*l),u=c*l,d=-c*o,h=e+u,f=t+d,p=n+u,m=r+d,g=(h+p)/2,v=(f+m)/2,y=p-h,x=m-f,S=y*y+x*x,_=i-s,E=h*m-p*f,T=(x<0?-1:1)*pr(aE(0,_*_*S-E*E)),k=(E*x-y*T)/S,I=(-E*y-x*T)/S,A=(E*x+y*T)/S,C=(-E*y+x*T)/S,B=k-g,M=I-v,$=A-g,w=C-v;return B*B+M*M>$*$+w*w&&(k=A,I=C),{cx:k,cy:I,x01:-u,y01:-d,x11:k*(i/_-1),y11:I*(i/_-1)}}function fi(){var e=lE,t=cE,n=st(0),r=null,i=uE,s=hE,a=dE,o=null,l=Gs(c);function c(){var u,d,h=+e.apply(this,arguments),f=+t.apply(this,arguments),p=i.apply(this,arguments)-Vs,m=s.apply(this,arguments)-Vs,g=qd(m-p),v=m>p;if(o||(o=u=l()),f<h&&(d=f,f=h,h=d),!(f>qt))o.moveTo(0,0);else if(g>Hs-qt)o.moveTo(f*In(p),f*Pe(p)),o.arc(0,0,f,p,m,!v),h>qt&&(o.moveTo(h*In(m),h*Pe(m)),o.arc(0,0,h,m,p,v));else{var y=p,x=m,S=p,_=m,E=g,T=g,k=a.apply(this,arguments)/2,I=k>qt&&(r?+r.apply(this,arguments):pr(h*h+f*f)),A=hl(qd(f-h)/2,+n.apply(this,arguments)),C=A,B=A,M,$;if(I>qt){var w=Yd(I/h*Pe(k)),N=Yd(I/f*Pe(k));(E-=w*2)>qt?(w*=v?1:-1,S+=w,_-=w):(E=0,S=_=(p+m)/2),(T-=N*2)>qt?(N*=v?1:-1,y+=N,x-=N):(T=0,y=x=(p+m)/2)}var P=f*In(y),R=f*Pe(y),U=h*In(_),F=h*Pe(_);if(A>qt){var j=f*In(x),K=f*Pe(x),ut=h*In(S),G=h*Pe(S),Y;if(g<di)if(Y=fE(P,R,ut,G,j,K,U,F)){var ct=P-Y[0],et=R-Y[1],Lt=j-Y[0],z=K-Y[1],Q=1/Pe(oE((ct*Lt+et*z)/(pr(ct*ct+et*et)*pr(Lt*Lt+z*z)))/2),at=pr(Y[0]*Y[0]+Y[1]*Y[1]);C=hl(A,(h-at)/(Q-1)),B=hl(A,(f-at)/(Q+1))}else C=B=0}T>qt?B>qt?(M=Fs(ut,G,P,R,f,B,v),$=Fs(j,K,U,F,f,B,v),o.moveTo(M.cx+M.x01,M.cy+M.y01),B<A?o.arc(M.cx,M.cy,B,Wt(M.y01,M.x01),Wt($.y01,$.x01),!v):(o.arc(M.cx,M.cy,B,Wt(M.y01,M.x01),Wt(M.y11,M.x11),!v),o.arc(0,0,f,Wt(M.cy+M.y11,M.cx+M.x11),Wt($.cy+$.y11,$.cx+$.x11),!v),o.arc($.cx,$.cy,B,Wt($.y11,$.x11),Wt($.y01,$.x01),!v))):(o.moveTo(P,R),o.arc(0,0,f,y,x,!v)):o.moveTo(P,R),!(h>qt)||!(E>qt)?o.lineTo(U,F):C>qt?(M=Fs(U,F,j,K,h,-C,v),$=Fs(P,R,ut,G,h,-C,v),o.lineTo(M.cx+M.x01,M.cy+M.y01),C<A?o.arc(M.cx,M.cy,C,Wt(M.y01,M.x01),Wt($.y01,$.x01),!v):(o.arc(M.cx,M.cy,C,Wt(M.y01,M.x01),Wt(M.y11,M.x11),!v),o.arc(0,0,h,Wt(M.cy+M.y11,M.cx+M.x11),Wt($.cy+$.y11,$.cx+$.x11),v),o.arc($.cx,$.cy,C,Wt($.y11,$.x11),Wt($.y01,$.x01),!v))):o.arc(0,0,h,_,S,v)}if(o.closePath(),u)return o=null,u+""||null}return c.centroid=function(){var u=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+i.apply(this,arguments)+ +s.apply(this,arguments))/2-di/2;return[In(d)*u,Pe(d)*u]},c.innerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:st(+u),c):e},c.outerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:st(+u),c):t},c.cornerRadius=function(u){return arguments.length?(n=typeof u=="function"?u:st(+u),c):n},c.padRadius=function(u){return arguments.length?(r=u==null?null:typeof u=="function"?u:st(+u),c):r},c.startAngle=function(u){return arguments.length?(i=typeof u=="function"?u:st(+u),c):i},c.endAngle=function(u){return arguments.length?(s=typeof u=="function"?u:st(+u),c):s},c.padAngle=function(u){return arguments.length?(a=typeof u=="function"?u:st(+u),c):a},c.context=function(u){return arguments.length?(o=u??null,c):o},c}var pE=Array.prototype.slice;function zs(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Xd(e){this._context=e}Xd.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);break}}};function js(e){return new Xd(e)}function dl(e){return e[0]}function fl(e){return e[1]}function pi(e,t){var n=st(!0),r=null,i=js,s=null,a=Gs(o);e=typeof e=="function"?e:e===void 0?dl:st(e),t=typeof t=="function"?t:t===void 0?fl:st(t);function o(l){var c,u=(l=zs(l)).length,d,h=!1,f;for(r==null&&(s=i(f=a())),c=0;c<=u;++c)!(c<u&&n(d=l[c],c,l))===h&&((h=!h)?s.lineStart():s.lineEnd()),h&&s.point(+e(d,c,l),+t(d,c,l));if(f)return s=null,f+""||null}return o.x=function(l){return arguments.length?(e=typeof l=="function"?l:st(+l),o):e},o.y=function(l){return arguments.length?(t=typeof l=="function"?l:st(+l),o):t},o.defined=function(l){return arguments.length?(n=typeof l=="function"?l:st(!!l),o):n},o.curve=function(l){return arguments.length?(i=l,r!=null&&(s=i(r)),o):i},o.context=function(l){return arguments.length?(l==null?r=s=null:s=i(r=l),o):r},o}function pl(e,t,n){var r=null,i=st(!0),s=null,a=js,o=null,l=Gs(c);e=typeof e=="function"?e:e===void 0?dl:st(+e),t=typeof t=="function"?t:st(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?fl:st(+n);function c(d){var h,f,p,m=(d=zs(d)).length,g,v=!1,y,x=new Array(m),S=new Array(m);for(s==null&&(o=a(y=l())),h=0;h<=m;++h){if(!(h<m&&i(g=d[h],h,d))===v)if(v=!v)f=h,o.areaStart(),o.lineStart();else{for(o.lineEnd(),o.lineStart(),p=h-1;p>=f;--p)o.point(x[p],S[p]);o.lineEnd(),o.areaEnd()}v&&(x[h]=+e(g,h,d),S[h]=+t(g,h,d),o.point(r?+r(g,h,d):x[h],n?+n(g,h,d):S[h]))}if(y)return o=null,y+""||null}function u(){return pi().defined(i).curve(a).context(s)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:st(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:st(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:st(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:st(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:st(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:st(+d),c):n},c.lineX0=c.lineY0=function(){return u().x(e).y(t)},c.lineY1=function(){return u().x(e).y(n)},c.lineX1=function(){return u().x(r).y(t)},c.defined=function(d){return arguments.length?(i=typeof d=="function"?d:st(!!d),c):i},c.curve=function(d){return arguments.length?(a=d,s!=null&&(o=a(s)),c):a},c.context=function(d){return arguments.length?(d==null?s=o=null:o=a(s=d),c):s},c}function gE(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function mE(e){return e}function vE(){var e=mE,t=gE,n=null,r=st(0),i=st(Hs),s=st(0);function a(o){var l,c=(o=zs(o)).length,u,d,h=0,f=new Array(c),p=new Array(c),m=+r.apply(this,arguments),g=Math.min(Hs,Math.max(-Hs,i.apply(this,arguments)-m)),v,y=Math.min(Math.abs(g)/c,s.apply(this,arguments)),x=y*(g<0?-1:1),S;for(l=0;l<c;++l)(S=p[f[l]=l]=+e(o[l],l,o))>0&&(h+=S);for(t!=null?f.sort(function(_,E){return t(p[_],p[E])}):n!=null&&f.sort(function(_,E){return n(o[_],o[E])}),l=0,d=h?(g-c*x)/h:0;l<c;++l,m=v)u=f[l],S=p[u],v=m+(S>0?S*d:0)+x,p[u]={data:o[u],index:l,value:S,startAngle:m,endAngle:v,padAngle:y};return p}return a.value=function(o){return arguments.length?(e=typeof o=="function"?o:st(+o),a):e},a.sortValues=function(o){return arguments.length?(t=o,n=null,a):t},a.sort=function(o){return arguments.length?(n=o,t=null,a):n},a.startAngle=function(o){return arguments.length?(r=typeof o=="function"?o:st(+o),a):r},a.endAngle=function(o){return arguments.length?(i=typeof o=="function"?o:st(+o),a):i},a.padAngle=function(o){return arguments.length?(s=typeof o=="function"?o:st(+o),a):s},a}var yE=Kd(js);function Zd(e){this._curve=e}Zd.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function Kd(e){function t(n){return new Zd(e(n))}return t._curve=e,t}function xE(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(n){return arguments.length?t(Kd(n)):t()._curve},e}function bE(){return xE(pi().curve(yE))}class wE{constructor(t,n){this._context=t,this._x=n}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(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function _E(e){return new wE(e,!0)}function EE(e){return e.source}function SE(e){return e.target}function OE(e){let t=EE,n=SE,r=dl,i=fl,s=null,a=null,o=Gs(l);function l(){let c;const u=pE.call(arguments),d=t.apply(this,u),h=n.apply(this,u);if(s==null&&(a=e(c=o())),a.lineStart(),u[0]=d,a.point(+r.apply(this,u),+i.apply(this,u)),u[0]=h,a.point(+r.apply(this,u),+i.apply(this,u)),a.lineEnd(),c)return a=null,c+""||null}return l.source=function(c){return arguments.length?(t=c,l):t},l.target=function(c){return arguments.length?(n=c,l):n},l.x=function(c){return arguments.length?(r=typeof c=="function"?c:st(+c),l):r},l.y=function(c){return arguments.length?(i=typeof c=="function"?c:st(+c),l):i},l.context=function(c){return arguments.length?(c==null?s=a=null:a=e(s=c),l):s},l}function TE(){return OE(_E)}function fn(){}function Ws(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 qs(e){this._context=e}qs.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:Ws(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(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:Ws(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function ME(e){return new qs(e)}function Qd(e){this._context=e}Qd.prototype={areaStart:fn,areaEnd:fn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(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:Ws(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function CE(e){return new Qd(e)}function Jd(e){this._context=e}Jd.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:Ws(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function $E(e){return new Jd(e)}function tf(e,t){this._basis=new qs(e),this._beta=t}tf.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],s=e[n]-r,a=t[n]-i,o=-1,l;++o<=n;)l=o/n,this._basis.point(this._beta*e[o]+(1-this._beta)*(r+l*s),this._beta*t[o]+(1-this._beta)*(i+l*a));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const AE=function e(t){function n(r){return t===1?new qs(r):new tf(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function Ys(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 gl(e,t){this._context=e,this._k=(1-t)/6}gl.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:Ys(this,this._x1,this._y1);break}(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:Ys(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const LE=function e(t){function n(r){return new gl(r,t)}return n.tension=function(r){return e(+r)},n}(0);function ml(e,t){this._context=e,this._k=(1-t)/6}ml.prototype={areaStart:fn,areaEnd:fn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(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:Ys(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const DE=function e(t){function n(r){return new ml(r,t)}return n.tension=function(r){return e(+r)},n}(0);function vl(e,t){this._context=e,this._k=(1-t)/6}vl.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:Ys(this,e,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const kE=function e(t){function n(r){return new vl(r,t)}return n.tension=function(r){return e(+r)},n}(0);function yl(e,t,n){var r=e._x1,i=e._y1,s=e._x2,a=e._y2;if(e._l01_a>qt){var o=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*o-e._x0*e._l12_2a+e._x2*e._l01_2a)/l,i=(i*o-e._y0*e._l12_2a+e._y2*e._l01_2a)/l}if(e._l23_a>qt){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);s=(s*c+e._x1*e._l23_2a-t*e._l12_2a)/u,a=(a*c+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,s,a,e._x2,e._y2)}function ef(e,t){this._context=e,this._alpha=t}ef.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(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=Math.pow(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:yl(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const RE=function e(t){function n(r){return t?new ef(r,t):new gl(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function nf(e,t){this._context=e,this._alpha=t}nf.prototype={areaStart:fn,areaEnd:fn,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(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=Math.pow(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:yl(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const IE=function e(t){function n(r){return t?new nf(r,t):new ml(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function rf(e,t){this._context=e,this._alpha=t}rf.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=Math.pow(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:yl(this,e,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const NE=function e(t){function n(r){return t?new rf(r,t):new vl(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function sf(e){this._context=e}sf.prototype={areaStart:fn,areaEnd:fn,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 af(e){return new sf(e)}function of(e){return e<0?-1:1}function lf(e,t,n){var r=e._x1-e._x0,i=t-e._x1,s=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),o=(s*i+a*r)/(r+i);return(of(s)+of(a))*Math.min(Math.abs(s),Math.abs(a),.5*Math.abs(o))||0}function cf(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function xl(e,t,n){var r=e._x0,i=e._y0,s=e._x1,a=e._y1,o=(s-r)/3;e._context.bezierCurveTo(r+o,i+o*t,s-o,a-o*n,s,a)}function Xs(e){this._context=e}Xs.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:xl(this,this._t0,cf(this,this._t0));break}(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,xl(this,cf(this,n=lf(this,e,t)),n);break;default:xl(this,this._t0,n=lf(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function uf(e){this._context=new hf(e)}(uf.prototype=Object.create(Xs.prototype)).point=function(e,t){Xs.prototype.point.call(this,t,e)};function hf(e){this._context=e}hf.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,s){this._context.bezierCurveTo(t,e,r,n,s,i)}};function PE(e){return new Xs(e)}function UE(e){return new uf(e)}function df(e){this._context=e}df.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=ff(e),i=ff(t),s=0,a=1;a<n;++s,++a)this._context.bezierCurveTo(r[0][s],i[0][s],r[1][s],i[1][s],e[a],t[a]);(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 ff(e){var t,n=e.length-1,r,i=new Array(n),s=new Array(n),a=new Array(n);for(i[0]=0,s[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,s[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,s[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/s[t-1],s[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/s[n-1],t=n-2;t>=0;--t)i[t]=(a[t]-i[t+1])/s[t];for(s[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)s[t]=2*e[t+1]-i[t+1];return[i,s]}function BE(e){return new df(e)}function Zs(e,t){this._context=e,this._t=t}Zs.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)}break}}this._x=e,this._y=t}};function VE(e){return new Zs(e,.5)}function HE(e){return new Zs(e,0)}function GE(e){return new Zs(e,1)}function pf(e,t){if((a=e.length)>1)for(var n=1,r,i,s=e[t[0]],a,o=s.length;n<a;++n)for(i=s,s=e[t[n]],r=0;r<o;++r)s[r][1]+=s[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function gf(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function FE(e,t){return e[t]}function zE(e){const t=[];return t.key=e,t}function bl(){var e=st([]),t=gf,n=pf,r=FE;function i(s){var a=Array.from(e.apply(this,arguments),zE),o,l=a.length,c=-1,u;for(const d of s)for(o=0,++c;o<l;++o)(a[o][c]=[0,+r(d,a[o].key,c,s)]).data=d;for(o=0,u=zs(t(a));o<l;++o)a[u[o]].index=o;return n(a,u),a}return i.keys=function(s){return arguments.length?(e=typeof s=="function"?s:st(Array.from(s)),i):e},i.value=function(s){return arguments.length?(r=typeof s=="function"?s:st(+s),i):r},i.order=function(s){return arguments.length?(t=s==null?gf:typeof s=="function"?s:st(Array.from(s)),i):t},i.offset=function(s){return arguments.length?(n=s??pf,i):n},i}function jE(e,t){if((l=e.length)>0)for(var n,r=0,i,s,a,o,l,c=e[t[0]].length;r<c;++r)for(a=o=0,n=0;n<l;++n)(s=(i=e[t[n]][r])[1]-i[0])>0?(i[0]=a,i[1]=a+=s):s<0?(i[1]=o,i[0]=o+=s):(i[0]=0,i[1]=s)}function gi(e,t,n){this.k=e,this.x=t,this.y=n}gi.prototype={constructor:gi,scale:function(e){return e===1?this:new gi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new gi(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+")"}},gi.prototype;function wl(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth,r=e.formats[n]||e.formats[e.defaultWidth];return r}}function mi(e){return function(t,n){var r=n!=null&&n.context?String(n.context):"standalone",i;if(r==="formatting"&&e.formattingValues){var s=e.defaultFormattingWidth||e.defaultWidth,a=n!=null&&n.width?String(n.width):s;i=e.formattingValues[a]||e.formattingValues[s]}else{var o=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[o]}var c=e.argumentCallback?e.argumentCallback(t):t;return i[c]}}function vi(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(i);if(!s)return null;var a=s[0],o=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(o)?qE(o,function(d){return d.test(a)}):WE(o,function(d){return d.test(a)}),c;c=e.valueCallback?e.valueCallback(l):l,c=n.valueCallback?n.valueCallback(c):c;var u=t.slice(a.length);return{value:c,rest:u}}}function WE(e,t){for(var n in e)if(e.hasOwnProperty(n)&&t(e[n]))return n}function qE(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n}function YE(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var i=r[0],s=t.match(e.parsePattern);if(!s)return null;var a=e.valueCallback?e.valueCallback(s[0]):s[0];a=n.valueCallback?n.valueCallback(a):a;var o=t.slice(i.length);return{value:a,rest:o}}}function Ks(e){"@babel/helpers - typeof";return Ks=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ks(e)}function Ut(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function rt(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function dt(e){rt(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Ks(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function Qs(e,t){rt(2,arguments);var n=dt(e).getTime(),r=Ut(t);return new Date(n+r)}var XE={};function Js(){return XE}function _l(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function ZE(e){return rt(1,arguments),e instanceof Date||Ks(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function KE(e){if(rt(1,arguments),!ZE(e)&&typeof e!="number")return!1;var t=dt(e);return!isNaN(Number(t))}function QE(e,t){rt(2,arguments);var n=Ut(t);return Qs(e,-n)}var JE=864e5;function tS(e){rt(1,arguments);var t=dt(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),i=n-r;return Math.floor(i/JE)+1}function ta(e){rt(1,arguments);var t=1,n=dt(e),r=n.getUTCDay(),i=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-i),n.setUTCHours(0,0,0,0),n}function mf(e){rt(1,arguments);var t=dt(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var i=ta(r),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var a=ta(s);return t.getTime()>=i.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function eS(e){rt(1,arguments);var t=mf(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=ta(n);return r}var nS=6048e5;function rS(e){rt(1,arguments);var t=dt(e),n=ta(t).getTime()-eS(t).getTime();return Math.round(n/nS)+1}function ea(e,t){var n,r,i,s,a,o,l,c;rt(1,arguments);var u=Js(),d=Ut((n=(r=(i=(s=t==null?void 0:t.weekStartsOn)!==null&&s!==void 0?s:t==null||(a=t.locale)===null||a===void 0||(o=a.options)===null||o===void 0?void 0:o.weekStartsOn)!==null&&i!==void 0?i:u.weekStartsOn)!==null&&r!==void 0?r:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=dt(e),f=h.getUTCDay(),p=(f<d?7:0)+f-d;return h.setUTCDate(h.getUTCDate()-p),h.setUTCHours(0,0,0,0),h}function vf(e,t){var n,r,i,s,a,o,l,c;rt(1,arguments);var u=dt(e),d=u.getUTCFullYear(),h=Js(),f=Ut((n=(r=(i=(s=t==null?void 0:t.firstWeekContainsDate)!==null&&s!==void 0?s:t==null||(a=t.locale)===null||a===void 0||(o=a.options)===null||o===void 0?void 0:o.firstWeekContainsDate)!==null&&i!==void 0?i:h.firstWeekContainsDate)!==null&&r!==void 0?r:(l=h.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(d+1,0,f),p.setUTCHours(0,0,0,0);var m=ea(p,t),g=new Date(0);g.setUTCFullYear(d,0,f),g.setUTCHours(0,0,0,0);var v=ea(g,t);return u.getTime()>=m.getTime()?d+1:u.getTime()>=v.getTime()?d:d-1}function iS(e,t){var n,r,i,s,a,o,l,c;rt(1,arguments);var u=Js(),d=Ut((n=(r=(i=(s=t==null?void 0:t.firstWeekContainsDate)!==null&&s!==void 0?s:t==null||(a=t.locale)===null||a===void 0||(o=a.options)===null||o===void 0?void 0:o.firstWeekContainsDate)!==null&&i!==void 0?i:u.firstWeekContainsDate)!==null&&r!==void 0?r:(l=u.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&n!==void 0?n:1),h=vf(e,t),f=new Date(0);f.setUTCFullYear(h,0,d),f.setUTCHours(0,0,0,0);var p=ea(f,t);return p}var sS=6048e5;function aS(e,t){rt(1,arguments);var n=dt(e),r=ea(n,t).getTime()-iS(n,t).getTime();return Math.round(r/sS)+1}function mt(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var oS={y:function(e,t){var n=e.getUTCFullYear(),r=n>0?n:1-n;return mt(t==="yy"?r%100:r,t.length)},M:function(e,t){var n=e.getUTCMonth();return t==="M"?String(n+1):mt(n+1,2)},d:function(e,t){return mt(e.getUTCDate(),t.length)},a:function(e,t){var n=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h:function(e,t){return mt(e.getUTCHours()%12||12,t.length)},H:function(e,t){return mt(e.getUTCHours(),t.length)},m:function(e,t){return mt(e.getUTCMinutes(),t.length)},s:function(e,t){return mt(e.getUTCSeconds(),t.length)},S:function(e,t){var n=t.length,r=e.getUTCMilliseconds(),i=Math.floor(r*Math.pow(10,n-3));return mt(i,t.length)}};const pn=oS;var gr={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},lS={G:function(e,t,n){var r=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){var r=e.getUTCFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return pn.y(e,t)},Y:function(e,t,n,r){var i=vf(e,r),s=i>0?i:1-i;if(t==="YY"){var a=s%100;return mt(a,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):mt(s,t.length)},R:function(e,t){var n=mf(e);return mt(n,t.length)},u:function(e,t){var n=e.getUTCFullYear();return mt(n,t.length)},Q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return mt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){var r=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return mt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){var r=e.getUTCMonth();switch(t){case"M":case"MM":return pn.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){var r=e.getUTCMonth();switch(t){case"L":return String(r+1);case"LL":return mt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){var i=aS(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):mt(i,t.length)},I:function(e,t,n){var r=rS(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):mt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getUTCDate(),{unit:"date"}):pn.d(e,t)},D:function(e,t,n){var r=tS(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):mt(r,t.length)},E:function(e,t,n){var r=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){var i=e.getUTCDay(),s=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return mt(s,2);case"eo":return n.ordinalNumber(s,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){var i=e.getUTCDay(),s=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return mt(s,t.length);case"co":return n.ordinalNumber(s,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){var r=e.getUTCDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return mt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){var r=e.getUTCHours(),i=r/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){var r=e.getUTCHours(),i;switch(r===12?i=gr.noon:r===0?i=gr.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){var r=e.getUTCHours(),i;switch(r>=17?i=gr.evening:r>=12?i=gr.afternoon:r>=4?i=gr.morning:i=gr.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){var r=e.getUTCHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return pn.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getUTCHours(),{unit:"hour"}):pn.H(e,t)},K:function(e,t,n){var r=e.getUTCHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):mt(r,t.length)},k:function(e,t,n){var r=e.getUTCHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):mt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):pn.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):pn.s(e,t)},S:function(e,t){return pn.S(e,t)},X:function(e,t,n,r){var i=r._originalDate||e,s=i.getTimezoneOffset();if(s===0)return"Z";switch(t){case"X":return xf(s);case"XXXX":case"XX":return Nn(s);case"XXXXX":case"XXX":default:return Nn(s,":")}},x:function(e,t,n,r){var i=r._originalDate||e,s=i.getTimezoneOffset();switch(t){case"x":return xf(s);case"xxxx":case"xx":return Nn(s);case"xxxxx":case"xxx":default:return Nn(s,":")}},O:function(e,t,n,r){var i=r._originalDate||e,s=i.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+yf(s,":");case"OOOO":default:return"GMT"+Nn(s,":")}},z:function(e,t,n,r){var i=r._originalDate||e,s=i.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+yf(s,":");case"zzzz":default:return"GMT"+Nn(s,":")}},t:function(e,t,n,r){var i=r._originalDate||e,s=Math.floor(i.getTime()/1e3);return mt(s,t.length)},T:function(e,t,n,r){var i=r._originalDate||e,s=i.getTime();return mt(s,t.length)}};function yf(e,t){var n=e>0?"-":"+",r=Math.abs(e),i=Math.floor(r/60),s=r%60;if(s===0)return n+String(i);var a=t||"";return n+String(i)+a+mt(s,2)}function xf(e,t){if(e%60===0){var n=e>0?"-":"+";return n+mt(Math.abs(e)/60,2)}return Nn(e,t)}function Nn(e,t){var n=t||"",r=e>0?"-":"+",i=Math.abs(e),s=mt(Math.floor(i/60),2),a=mt(i%60,2);return r+s+n+a}const cS=lS;var bf=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},wf=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},uS=function(e,t){var n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return bf(e,t);var s;switch(r){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",bf(r,t)).replace("{{time}}",wf(i,t))},hS={p:wf,P:uS};const dS=hS;var fS=["D","DD"],pS=["YY","YYYY"];function gS(e){return fS.indexOf(e)!==-1}function mS(e){return pS.indexOf(e)!==-1}function _f(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var vS={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},yS=function(e,t,n){var r,i=vS[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};const xS=yS;var bS={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},wS={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},_S={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ES={date:wl({formats:bS,defaultWidth:"full"}),time:wl({formats:wS,defaultWidth:"full"}),dateTime:wl({formats:_S,defaultWidth:"full"})};const SS=ES;var OS={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},TS=function(e,t,n,r){return OS[e]};const MS=TS;var CS={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},$S={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},AS={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},LS={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},DS={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},kS={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},RS=function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},IS={ordinalNumber:RS,era:mi({values:CS,defaultWidth:"wide"}),quarter:mi({values:$S,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:mi({values:AS,defaultWidth:"wide"}),day:mi({values:LS,defaultWidth:"wide"}),dayPeriod:mi({values:DS,defaultWidth:"wide",formattingValues:kS,defaultFormattingWidth:"wide"})};const NS=IS;var PS=/^(\d+)(th|st|nd|rd)?/i,US=/\d+/i,BS={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},VS={any:[/^b/i,/^(a|c)/i]},HS={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},GS={any:[/1/i,/2/i,/3/i,/4/i]},FS={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},zS={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},jS={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},WS={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},qS={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},YS={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},XS={ordinalNumber:YE({matchPattern:PS,parsePattern:US,valueCallback:function(e){return parseInt(e,10)}}),era:vi({matchPatterns:BS,defaultMatchWidth:"wide",parsePatterns:VS,defaultParseWidth:"any"}),quarter:vi({matchPatterns:HS,defaultMatchWidth:"wide",parsePatterns:GS,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:vi({matchPatterns:FS,defaultMatchWidth:"wide",parsePatterns:zS,defaultParseWidth:"any"}),day:vi({matchPatterns:jS,defaultMatchWidth:"wide",parsePatterns:WS,defaultParseWidth:"any"}),dayPeriod:vi({matchPatterns:qS,defaultMatchWidth:"any",parsePatterns:YS,defaultParseWidth:"any"})},ZS={code:"en-US",formatDistance:xS,formatLong:SS,formatRelative:MS,localize:NS,match:XS,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Ef=ZS;var KS=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,QS=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,JS=/^'([^]*?)'?$/,tO=/''/g,eO=/[a-zA-Z]/;function mr(e,t,n){var r,i,s,a,o,l,c,u,d,h,f,p,m,g,v,y,x,S;rt(2,arguments);var _=String(t),E=Js(),T=(r=(i=n==null?void 0:n.locale)!==null&&i!==void 0?i:E.locale)!==null&&r!==void 0?r:Ef,k=Ut((s=(a=(o=(l=n==null?void 0:n.firstWeekContainsDate)!==null&&l!==void 0?l:n==null||(c=n.locale)===null||c===void 0||(u=c.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&o!==void 0?o:E.firstWeekContainsDate)!==null&&a!==void 0?a:(d=E.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var I=Ut((f=(p=(m=(g=n==null?void 0:n.weekStartsOn)!==null&&g!==void 0?g:n==null||(v=n.locale)===null||v===void 0||(y=v.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&m!==void 0?m:E.weekStartsOn)!==null&&p!==void 0?p:(x=E.locale)===null||x===void 0||(S=x.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&f!==void 0?f:0);if(!(I>=0&&I<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var A=dt(e);if(!KE(A))throw new RangeError("Invalid time value");var C=_l(A),B=QE(A,C),M={firstWeekContainsDate:k,weekStartsOn:I,locale:T,_originalDate:A},$=_.match(QS).map(function(w){var N=w[0];if(N==="p"||N==="P"){var P=dS[N];return P(w,T.formatLong)}return w}).join("").match(KS).map(function(w){if(w==="''")return"'";var N=w[0];if(N==="'")return nO(w);var P=cS[N];if(P)return!(n!=null&&n.useAdditionalWeekYearTokens)&&mS(w)&&_f(w,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&gS(w)&&_f(w,t,String(e)),P(B,w,T.localize,M);if(N.match(eO))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");return w}).join("");return $}function nO(e){var t=e.match(JS);return t?t[1].replace(tO,"'"):e}var rO=typeof global=="object"&&global&&global.Object===Object&&global;const Sf=rO;var iO=typeof self=="object"&&self&&self.Object===Object&&self,sO=Sf||iO||Function("return this")();const Me=sO;var aO=Me.Symbol;const me=aO;var Of=Object.prototype,oO=Of.hasOwnProperty,lO=Of.toString,yi=me?me.toStringTag:void 0;function cO(e){var t=oO.call(e,yi),n=e[yi];try{e[yi]=void 0;var r=!0}catch{}var i=lO.call(e);return r&&(t?e[yi]=n:delete e[yi]),i}var uO=Object.prototype,hO=uO.toString;function dO(e){return hO.call(e)}var fO="[object Null]",pO="[object Undefined]",Tf=me?me.toStringTag:void 0;function Pn(e){return e==null?e===void 0?pO:fO:Tf&&Tf in Object(e)?cO(e):dO(e)}function Ue(e){return e!=null&&typeof e=="object"}var gO="[object Symbol]";function na(e){return typeof e=="symbol"||Ue(e)&&Pn(e)==gO}function Mf(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var mO=Array.isArray;const Ht=mO;var vO=1/0,Cf=me?me.prototype:void 0,$f=Cf?Cf.toString:void 0;function Af(e){if(typeof e=="string")return e;if(Ht(e))return Mf(e,Af)+"";if(na(e))return $f?$f.call(e):"";var t=e+"";return t=="0"&&1/e==-vO?"-0":t}function ve(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function El(e){return e}var yO="[object AsyncFunction]",xO="[object Function]",bO="[object GeneratorFunction]",wO="[object Proxy]";function Sl(e){if(!ve(e))return!1;var t=Pn(e);return t==xO||t==bO||t==yO||t==wO}var _O=Me["__core-js_shared__"];const Ol=_O;var Lf=function(){var e=/[^.]+$/.exec(Ol&&Ol.keys&&Ol.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function EO(e){return!!Lf&&Lf in e}var SO=Function.prototype,OO=SO.toString;function Un(e){if(e!=null){try{return OO.call(e)}catch{}try{return e+""}catch{}}return""}var TO=/[\\^$.*+?()[\]{}|]/g,MO=/^\[object .+?Constructor\]$/,CO=Function.prototype,$O=Object.prototype,AO=CO.toString,LO=$O.hasOwnProperty,DO=RegExp("^"+AO.call(LO).replace(TO,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function kO(e){if(!ve(e)||EO(e))return!1;var t=Sl(e)?DO:MO;return t.test(Un(e))}function RO(e,t){return e==null?void 0:e[t]}function Bn(e,t){var n=RO(e,t);return kO(n)?n:void 0}var IO=Bn(Me,"WeakMap");const Tl=IO;var Df=Object.create,NO=function(){function e(){}return function(t){if(!ve(t))return{};if(Df)return Df(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const PO=NO;function UO(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function BO(){}function kf(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}var VO=800,HO=16,GO=Date.now;function FO(e){var t=0,n=0;return function(){var r=GO(),i=HO-(r-n);if(n=r,i>0){if(++t>=VO)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function zO(e){return function(){return e}}var jO=function(){try{var e=Bn(Object,"defineProperty");return e({},"",{}),e}catch{}}();const ra=jO;var WO=ra?function(e,t){return ra(e,"toString",{configurable:!0,enumerable:!1,value:zO(t),writable:!0})}:El,qO=FO(WO);const YO=qO;function XO(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function ZO(e,t,n,r){for(var i=e.length,s=n+(r?1:-1);r?s--:++s<i;)if(t(e[s],s,e))return s;return-1}function KO(e){return e!==e}function QO(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function JO(e,t,n){return t===t?QO(e,t,n):ZO(e,KO,n)}function tT(e,t){var n=e==null?0:e.length;return!!n&&JO(e,t,0)>-1}var eT=9007199254740991,nT=/^(?:0|[1-9]\d*)$/;function Ml(e,t){var n=typeof e;return t=t??eT,!!t&&(n=="number"||n!="symbol"&&nT.test(e))&&e>-1&&e%1==0&&e<t}function ia(e,t,n){t=="__proto__"&&ra?ra(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function xi(e,t){return e===t||e!==e&&t!==t}var rT=Object.prototype,iT=rT.hasOwnProperty;function Rf(e,t,n){var r=e[t];(!(iT.call(e,t)&&xi(r,n))||n===void 0&&!(t in e))&&ia(e,t,n)}function bi(e,t,n,r){var i=!n;n||(n={});for(var s=-1,a=t.length;++s<a;){var o=t[s],l=r?r(n[o],e[o],o,n,e):void 0;l===void 0&&(l=e[o]),i?ia(n,o,l):Rf(n,o,l)}return n}var If=Math.max;function sT(e,t,n){return t=If(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,s=If(r.length-t,0),a=Array(s);++i<s;)a[i]=r[t+i];i=-1;for(var o=Array(t+1);++i<t;)o[i]=r[i];return o[t]=n(a),UO(e,this,o)}}function Nf(e,t){return YO(sT(e,t,El),e+"")}var aT=9007199254740991;function Cl(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=aT}function Vn(e){return e!=null&&Cl(e.length)&&!Sl(e)}function Pf(e,t,n){if(!ve(n))return!1;var r=typeof t;return(r=="number"?Vn(n)&&Ml(t,n.length):r=="string"&&t in n)?xi(n[t],e):!1}function oT(e){return Nf(function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,a&&Pf(n[0],n[1],a)&&(s=i<3?void 0:s,i=1),t=Object(t);++r<i;){var o=n[r];o&&e(t,o,r,s)}return t})}var lT=Object.prototype;function sa(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||lT;return e===n}function cT(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var uT="[object Arguments]";function Uf(e){return Ue(e)&&Pn(e)==uT}var Bf=Object.prototype,hT=Bf.hasOwnProperty,dT=Bf.propertyIsEnumerable,fT=Uf(function(){return arguments}())?Uf:function(e){return Ue(e)&&hT.call(e,"callee")&&!dT.call(e,"callee")};const vr=fT;function pT(){return!1}var Vf=typeof nt=="object"&&nt&&!nt.nodeType&&nt,Hf=Vf&&typeof module=="object"&&module&&!module.nodeType&&module,gT=Hf&&Hf.exports===Vf,Gf=gT?Me.Buffer:void 0,mT=Gf?Gf.isBuffer:void 0,vT=mT||pT;const yr=vT;var yT="[object Arguments]",xT="[object Array]",bT="[object Boolean]",wT="[object Date]",_T="[object Error]",ET="[object Function]",ST="[object Map]",OT="[object Number]",TT="[object Object]",MT="[object RegExp]",CT="[object Set]",$T="[object String]",AT="[object WeakMap]",LT="[object ArrayBuffer]",DT="[object DataView]",kT="[object Float32Array]",RT="[object Float64Array]",IT="[object Int8Array]",NT="[object Int16Array]",PT="[object Int32Array]",UT="[object Uint8Array]",BT="[object Uint8ClampedArray]",VT="[object Uint16Array]",HT="[object Uint32Array]",St={};St[kT]=St[RT]=St[IT]=St[NT]=St[PT]=St[UT]=St[BT]=St[VT]=St[HT]=!0,St[yT]=St[xT]=St[LT]=St[bT]=St[DT]=St[wT]=St[_T]=St[ET]=St[ST]=St[OT]=St[TT]=St[MT]=St[CT]=St[$T]=St[AT]=!1;function GT(e){return Ue(e)&&Cl(e.length)&&!!St[Pn(e)]}function $l(e){return function(t){return e(t)}}var Ff=typeof nt=="object"&&nt&&!nt.nodeType&&nt,wi=Ff&&typeof module=="object"&&module&&!module.nodeType&&module,FT=wi&&wi.exports===Ff,Al=FT&&Sf.process,zT=function(){try{var e=wi&&wi.require&&wi.require("util").types;return e||Al&&Al.binding&&Al.binding("util")}catch{}}();const xr=zT;var zf=xr&&xr.isTypedArray,jT=zf?$l(zf):GT;const aa=jT;var WT=Object.prototype,qT=WT.hasOwnProperty;function jf(e,t){var n=Ht(e),r=!n&&vr(e),i=!n&&!r&&yr(e),s=!n&&!r&&!i&&aa(e),a=n||r||i||s,o=a?cT(e.length,String):[],l=o.length;for(var c in e)(t||qT.call(e,c))&&!(a&&(c=="length"||i&&(c=="offset"||c=="parent")||s&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Ml(c,l)))&&o.push(c);return o}function Wf(e,t){return function(n){return e(t(n))}}var YT=Wf(Object.keys,Object);const XT=YT;var ZT=Object.prototype,KT=ZT.hasOwnProperty;function qf(e){if(!sa(e))return XT(e);var t=[];for(var n in Object(e))KT.call(e,n)&&n!="constructor"&&t.push(n);return t}function _i(e){return Vn(e)?jf(e):qf(e)}function QT(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var JT=Object.prototype,tM=JT.hasOwnProperty;function eM(e){if(!ve(e))return QT(e);var t=sa(e),n=[];for(var r in e)r=="constructor"&&(t||!tM.call(e,r))||n.push(r);return n}function Ei(e){return Vn(e)?jf(e,!0):eM(e)}var nM=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,rM=/^\w*$/;function Ll(e,t){if(Ht(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||na(e)?!0:rM.test(e)||!nM.test(e)||t!=null&&e in Object(t)}var iM=Bn(Object,"create");const Si=iM;function sM(){this.__data__=Si?Si(null):{},this.size=0}function aM(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var oM="__lodash_hash_undefined__",lM=Object.prototype,cM=lM.hasOwnProperty;function uM(e){var t=this.__data__;if(Si){var n=t[e];return n===oM?void 0:n}return cM.call(t,e)?t[e]:void 0}var hM=Object.prototype,dM=hM.hasOwnProperty;function fM(e){var t=this.__data__;return Si?t[e]!==void 0:dM.call(t,e)}var pM="__lodash_hash_undefined__";function gM(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Si&&t===void 0?pM:t,this}function Hn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Hn.prototype.clear=sM,Hn.prototype.delete=aM,Hn.prototype.get=uM,Hn.prototype.has=fM,Hn.prototype.set=gM;function mM(){this.__data__=[],this.size=0}function oa(e,t){for(var n=e.length;n--;)if(xi(e[n][0],t))return n;return-1}var vM=Array.prototype,yM=vM.splice;function xM(e){var t=this.__data__,n=oa(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():yM.call(t,n,1),--this.size,!0}function bM(e){var t=this.__data__,n=oa(t,e);return n<0?void 0:t[n][1]}function wM(e){return oa(this.__data__,e)>-1}function _M(e,t){var n=this.__data__,r=oa(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Je(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Je.prototype.clear=mM,Je.prototype.delete=xM,Je.prototype.get=bM,Je.prototype.has=wM,Je.prototype.set=_M;var EM=Bn(Me,"Map");const Oi=EM;function SM(){this.size=0,this.__data__={hash:new Hn,map:new(Oi||Je),string:new Hn}}function OM(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function la(e,t){var n=e.__data__;return OM(t)?n[typeof t=="string"?"string":"hash"]:n.map}function TM(e){var t=la(this,e).delete(e);return this.size-=t?1:0,t}function MM(e){return la(this,e).get(e)}function CM(e){return la(this,e).has(e)}function $M(e,t){var n=la(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function tn(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}tn.prototype.clear=SM,tn.prototype.delete=TM,tn.prototype.get=MM,tn.prototype.has=CM,tn.prototype.set=$M;var AM="Expected a function";function Dl(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(AM);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],s=n.cache;if(s.has(i))return s.get(i);var a=e.apply(this,r);return n.cache=s.set(i,a)||s,a};return n.cache=new(Dl.Cache||tn),n}Dl.Cache=tn;var LM=500;function DM(e){var t=Dl(e,function(r){return n.size===LM&&n.clear(),r}),n=t.cache;return t}var kM=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,RM=/\\(\\)?/g,IM=DM(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(kM,function(n,r,i,s){t.push(i?s.replace(RM,"$1"):r||n)}),t});const NM=IM;function Ti(e){return e==null?"":Af(e)}function Yf(e,t){return Ht(e)?e:Ll(e,t)?[e]:NM(Ti(e))}var PM=1/0;function ca(e){if(typeof e=="string"||na(e))return e;var t=e+"";return t=="0"&&1/e==-PM?"-0":t}function Xf(e,t){t=Yf(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[ca(t[n++])];return n&&n==r?e:void 0}function wt(e,t,n){var r=e==null?void 0:Xf(e,t);return r===void 0?n:r}function kl(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Zf=me?me.isConcatSpreadable:void 0;function UM(e){return Ht(e)||vr(e)||!!(Zf&&e&&e[Zf])}function ua(e,t,n,r,i){var s=-1,a=e.length;for(n||(n=UM),i||(i=[]);++s<a;){var o=e[s];t>0&&n(o)?t>1?ua(o,t-1,n,r,i):kl(i,o):r||(i[i.length]=o)}return i}var BM=Wf(Object.getPrototypeOf,Object);const Rl=BM;var VM="[object Object]",HM=Function.prototype,GM=Object.prototype,Kf=HM.toString,FM=GM.hasOwnProperty,zM=Kf.call(Object);function jM(e){if(!Ue(e)||Pn(e)!=VM)return!1;var t=Rl(e);if(t===null)return!0;var n=FM.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Kf.call(n)==zM}function WM(){this.__data__=new Je,this.size=0}function qM(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function YM(e){return this.__data__.get(e)}function XM(e){return this.__data__.has(e)}var ZM=200;function KM(e,t){var n=this.__data__;if(n instanceof Je){var r=n.__data__;if(!Oi||r.length<ZM-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new tn(r)}return n.set(e,t),this.size=n.size,this}function Ce(e){var t=this.__data__=new Je(e);this.size=t.size}Ce.prototype.clear=WM,Ce.prototype.delete=qM,Ce.prototype.get=YM,Ce.prototype.has=XM,Ce.prototype.set=KM;function QM(e,t){return e&&bi(t,_i(t),e)}function JM(e,t){return e&&bi(t,Ei(t),e)}var Qf=typeof nt=="object"&&nt&&!nt.nodeType&&nt,Jf=Qf&&typeof module=="object"&&module&&!module.nodeType&&module,tC=Jf&&Jf.exports===Qf,tp=tC?Me.Buffer:void 0,ep=tp?tp.allocUnsafe:void 0;function np(e,t){if(t)return e.slice();var n=e.length,r=ep?ep(n):new e.constructor(n);return e.copy(r),r}function eC(e,t){for(var n=-1,r=e==null?0:e.length,i=0,s=[];++n<r;){var a=e[n];t(a,n,e)&&(s[i++]=a)}return s}function rp(){return[]}var nC=Object.prototype,rC=nC.propertyIsEnumerable,ip=Object.getOwnPropertySymbols,iC=ip?function(e){return e==null?[]:(e=Object(e),eC(ip(e),function(t){return rC.call(e,t)}))}:rp;const Il=iC;function sC(e,t){return bi(e,Il(e),t)}var aC=Object.getOwnPropertySymbols,oC=aC?function(e){for(var t=[];e;)kl(t,Il(e)),e=Rl(e);return t}:rp;const sp=oC;function lC(e,t){return bi(e,sp(e),t)}function ap(e,t,n){var r=t(e);return Ht(e)?r:kl(r,n(e))}function Nl(e){return ap(e,_i,Il)}function cC(e){return ap(e,Ei,sp)}var uC=Bn(Me,"DataView");const Pl=uC;var hC=Bn(Me,"Promise");const Ul=hC;var dC=Bn(Me,"Set");const br=dC;var op="[object Map]",fC="[object Object]",lp="[object Promise]",cp="[object Set]",up="[object WeakMap]",hp="[object DataView]",pC=Un(Pl),gC=Un(Oi),mC=Un(Ul),vC=Un(br),yC=Un(Tl),Gn=Pn;(Pl&&Gn(new Pl(new ArrayBuffer(1)))!=hp||Oi&&Gn(new Oi)!=op||Ul&&Gn(Ul.resolve())!=lp||br&&Gn(new br)!=cp||Tl&&Gn(new Tl)!=up)&&(Gn=function(e){var t=Pn(e),n=t==fC?e.constructor:void 0,r=n?Un(n):"";if(r)switch(r){case pC:return hp;case gC:return op;case mC:return lp;case vC:return cp;case yC:return up}return t});const wr=Gn;var xC=Object.prototype,bC=xC.hasOwnProperty;function wC(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&bC.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var _C=Me.Uint8Array;const ha=_C;function Bl(e){var t=new e.constructor(e.byteLength);return new ha(t).set(new ha(e)),t}function EC(e,t){var n=t?Bl(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var SC=/\w*$/;function OC(e){var t=new e.constructor(e.source,SC.exec(e));return t.lastIndex=e.lastIndex,t}var dp=me?me.prototype:void 0,fp=dp?dp.valueOf:void 0;function TC(e){return fp?Object(fp.call(e)):{}}function pp(e,t){var n=t?Bl(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var MC="[object Boolean]",CC="[object Date]",$C="[object Map]",AC="[object Number]",LC="[object RegExp]",DC="[object Set]",kC="[object String]",RC="[object Symbol]",IC="[object ArrayBuffer]",NC="[object DataView]",PC="[object Float32Array]",UC="[object Float64Array]",BC="[object Int8Array]",VC="[object Int16Array]",HC="[object Int32Array]",GC="[object Uint8Array]",FC="[object Uint8ClampedArray]",zC="[object Uint16Array]",jC="[object Uint32Array]";function WC(e,t,n){var r=e.constructor;switch(t){case IC:return Bl(e);case MC:case CC:return new r(+e);case NC:return EC(e,n);case PC:case UC:case BC:case VC:case HC:case GC:case FC:case zC:case jC:return pp(e,n);case $C:return new r;case AC:case kC:return new r(e);case LC:return OC(e);case DC:return new r;case RC:return TC(e)}}function gp(e){return typeof e.constructor=="function"&&!sa(e)?PO(Rl(e)):{}}var qC="[object Map]";function YC(e){return Ue(e)&&wr(e)==qC}var mp=xr&&xr.isMap,XC=mp?$l(mp):YC;const ZC=XC;var KC="[object Set]";function QC(e){return Ue(e)&&wr(e)==KC}var vp=xr&&xr.isSet,JC=vp?$l(vp):QC;const t2=JC;var e2=1,n2=2,r2=4,yp="[object Arguments]",i2="[object Array]",s2="[object Boolean]",a2="[object Date]",o2="[object Error]",xp="[object Function]",l2="[object GeneratorFunction]",c2="[object Map]",u2="[object Number]",bp="[object Object]",h2="[object RegExp]",d2="[object Set]",f2="[object String]",p2="[object Symbol]",g2="[object WeakMap]",m2="[object ArrayBuffer]",v2="[object DataView]",y2="[object Float32Array]",x2="[object Float64Array]",b2="[object Int8Array]",w2="[object Int16Array]",_2="[object Int32Array]",E2="[object Uint8Array]",S2="[object Uint8ClampedArray]",O2="[object Uint16Array]",T2="[object Uint32Array]",_t={};_t[yp]=_t[i2]=_t[m2]=_t[v2]=_t[s2]=_t[a2]=_t[y2]=_t[x2]=_t[b2]=_t[w2]=_t[_2]=_t[c2]=_t[u2]=_t[bp]=_t[h2]=_t[d2]=_t[f2]=_t[p2]=_t[E2]=_t[S2]=_t[O2]=_t[T2]=!0,_t[o2]=_t[xp]=_t[g2]=!1;function da(e,t,n,r,i,s){var a,o=t&e2,l=t&n2,c=t&r2;if(n&&(a=i?n(e,r,i,s):n(e)),a!==void 0)return a;if(!ve(e))return e;var u=Ht(e);if(u){if(a=wC(e),!o)return kf(e,a)}else{var d=wr(e),h=d==xp||d==l2;if(yr(e))return np(e,o);if(d==bp||d==yp||h&&!i){if(a=l||h?{}:gp(e),!o)return l?lC(e,JM(a,e)):sC(e,QM(a,e))}else{if(!_t[d])return i?e:{};a=WC(e,d,o)}}s||(s=new Ce);var f=s.get(e);if(f)return f;s.set(e,a),t2(e)?e.forEach(function(g){a.add(da(g,t,n,g,e,s))}):ZC(e)&&e.forEach(function(g,v){a.set(v,da(g,t,n,v,e,s))});var p=c?l?cC:Nl:l?Ei:_i,m=u?void 0:p(e);return XO(m||e,function(g,v){m&&(v=g,g=e[v]),Rf(a,v,da(g,t,n,v,e,s))}),a}var M2=1,C2=4;function en(e){return da(e,M2|C2)}var $2="__lodash_hash_undefined__";function A2(e){return this.__data__.set(e,$2),this}function L2(e){return this.__data__.has(e)}function Mi(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new tn;++t<n;)this.add(e[t])}Mi.prototype.add=Mi.prototype.push=A2,Mi.prototype.has=L2;function wp(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function _p(e,t){return e.has(t)}var D2=1,k2=2;function Ep(e,t,n,r,i,s){var a=n&D2,o=e.length,l=t.length;if(o!=l&&!(a&&l>o))return!1;var c=s.get(e),u=s.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,f=n&k2?new Mi:void 0;for(s.set(e,t),s.set(t,e);++d<o;){var p=e[d],m=t[d];if(r)var g=a?r(m,p,d,t,e,s):r(p,m,d,e,t,s);if(g!==void 0){if(g)continue;h=!1;break}if(f){if(!wp(t,function(v,y){if(!_p(f,y)&&(p===v||i(p,v,n,r,s)))return f.push(y)})){h=!1;break}}else if(!(p===m||i(p,m,n,r,s))){h=!1;break}}return s.delete(e),s.delete(t),h}function R2(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function Vl(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var I2=1,N2=2,P2="[object Boolean]",U2="[object Date]",B2="[object Error]",V2="[object Map]",H2="[object Number]",G2="[object RegExp]",F2="[object Set]",z2="[object String]",j2="[object Symbol]",W2="[object ArrayBuffer]",q2="[object DataView]",Sp=me?me.prototype:void 0,Hl=Sp?Sp.valueOf:void 0;function Y2(e,t,n,r,i,s,a){switch(n){case q2:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case W2:return!(e.byteLength!=t.byteLength||!s(new ha(e),new ha(t)));case P2:case U2:case H2:return xi(+e,+t);case B2:return e.name==t.name&&e.message==t.message;case G2:case z2:return e==t+"";case V2:var o=R2;case F2:var l=r&I2;if(o||(o=Vl),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=N2,a.set(e,t);var u=Ep(o(e),o(t),r,i,s,a);return a.delete(e),u;case j2:if(Hl)return Hl.call(e)==Hl.call(t)}return!1}var X2=1,Z2=Object.prototype,K2=Z2.hasOwnProperty;function Q2(e,t,n,r,i,s){var a=n&X2,o=Nl(e),l=o.length,c=Nl(t),u=c.length;if(l!=u&&!a)return!1;for(var d=l;d--;){var h=o[d];if(!(a?h in t:K2.call(t,h)))return!1}var f=s.get(e),p=s.get(t);if(f&&p)return f==t&&p==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=a;++d<l;){h=o[d];var v=e[h],y=t[h];if(r)var x=a?r(y,v,h,t,e,s):r(v,y,h,e,t,s);if(!(x===void 0?v===y||i(v,y,n,r,s):x)){m=!1;break}g||(g=h=="constructor")}if(m&&!g){var S=e.constructor,_=t.constructor;S!=_&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof _=="function"&&_ instanceof _)&&(m=!1)}return s.delete(e),s.delete(t),m}var J2=1,Op="[object Arguments]",Tp="[object Array]",fa="[object Object]",t$=Object.prototype,Mp=t$.hasOwnProperty;function e$(e,t,n,r,i,s){var a=Ht(e),o=Ht(t),l=a?Tp:wr(e),c=o?Tp:wr(t);l=l==Op?fa:l,c=c==Op?fa:c;var u=l==fa,d=c==fa,h=l==c;if(h&&yr(e)){if(!yr(t))return!1;a=!0,u=!1}if(h&&!u)return s||(s=new Ce),a||aa(e)?Ep(e,t,n,r,i,s):Y2(e,t,l,n,r,i,s);if(!(n&J2)){var f=u&&Mp.call(e,"__wrapped__"),p=d&&Mp.call(t,"__wrapped__");if(f||p){var m=f?e.value():e,g=p?t.value():t;return s||(s=new Ce),i(m,g,n,r,s)}}return h?(s||(s=new Ce),Q2(e,t,n,r,i,s)):!1}function pa(e,t,n,r,i){return e===t?!0:e==null||t==null||!Ue(e)&&!Ue(t)?e!==e&&t!==t:e$(e,t,n,r,pa,i)}var n$=1,r$=2;function i$(e,t,n,r){var i=n.length,s=i,a=!r;if(e==null)return!s;for(e=Object(e);i--;){var o=n[i];if(a&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++i<s;){o=n[i];var l=o[0],c=e[l],u=o[1];if(a&&o[2]){if(c===void 0&&!(l in e))return!1}else{var d=new Ce;if(r)var h=r(c,u,l,e,t,d);if(!(h===void 0?pa(u,c,n$|r$,r,d):h))return!1}}return!0}function Cp(e){return e===e&&!ve(e)}function s$(e){for(var t=_i(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Cp(i)]}return t}function $p(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function a$(e){var t=s$(e);return t.length==1&&t[0][2]?$p(t[0][0],t[0][1]):function(n){return n===e||i$(n,e,t)}}function o$(e,t){return e!=null&&t in Object(e)}function l$(e,t,n){t=Yf(t,e);for(var r=-1,i=t.length,s=!1;++r<i;){var a=ca(t[r]);if(!(s=e!=null&&n(e,a)))break;e=e[a]}return s||++r!=i?s:(i=e==null?0:e.length,!!i&&Cl(i)&&Ml(a,i)&&(Ht(e)||vr(e)))}function c$(e,t){return e!=null&&l$(e,t,o$)}var u$=1,h$=2;function d$(e,t){return Ll(e)&&Cp(t)?$p(ca(e),t):function(n){var r=wt(n,e);return r===void 0&&r===t?c$(n,e):pa(t,r,u$|h$)}}function f$(e){return function(t){return t==null?void 0:t[e]}}function p$(e){return function(t){return Xf(t,e)}}function g$(e){return Ll(e)?f$(ca(e)):p$(e)}function ga(e){return typeof e=="function"?e:e==null?El:typeof e=="object"?Ht(e)?d$(e[0],e[1]):a$(e):g$(e)}function m$(e){return function(t,n,r){for(var i=-1,s=Object(t),a=r(t),o=a.length;o--;){var l=a[e?o:++i];if(n(s[l],l,s)===!1)break}return t}}var v$=m$();const Ap=v$;function Gl(e,t,n){(n!==void 0&&!xi(e[t],n)||n===void 0&&!(t in e))&&ia(e,t,n)}function Fl(e){return Ue(e)&&Vn(e)}function zl(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function y$(e){return bi(e,Ei(e))}function x$(e,t,n,r,i,s,a){var o=zl(e,n),l=zl(t,n),c=a.get(l);if(c){Gl(e,n,c);return}var u=s?s(o,l,n+"",e,t,a):void 0,d=u===void 0;if(d){var h=Ht(l),f=!h&&yr(l),p=!h&&!f&&aa(l);u=l,h||f||p?Ht(o)?u=o:Fl(o)?u=kf(o):f?(d=!1,u=np(l,!0)):p?(d=!1,u=pp(l,!0)):u=[]:jM(l)||vr(l)?(u=o,vr(o)?u=y$(o):(!ve(o)||Sl(o))&&(u=gp(l))):d=!1}d&&(a.set(l,u),i(u,l,r,s,a),a.delete(l)),Gl(e,n,u)}function Lp(e,t,n,r,i){e!==t&&Ap(t,function(s,a){if(i||(i=new Ce),ve(s))x$(e,t,a,n,Lp,r,i);else{var o=r?r(zl(e,a),s,a+"",e,t,i):void 0;o===void 0&&(o=s),Gl(e,a,o)}},Ei)}function b$(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function w$(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var _$="[object Map]",E$="[object Set]",S$=Object.prototype,O$=S$.hasOwnProperty;function $e(e){if(e==null)return!0;if(Vn(e)&&(Ht(e)||typeof e=="string"||typeof e.splice=="function"||yr(e)||aa(e)||vr(e)))return!e.length;var t=wr(e);if(t==_$||t==E$)return!e.size;if(sa(e))return!qf(e).length;for(var n in e)if(O$.call(e,n))return!1;return!0}var T$=oT(function(e,t,n){Lp(e,t,n)});const Z=T$;var M$=1/0,C$=br&&1/Vl(new br([,-0]))[1]==M$?function(e){return new br(e)}:BO;const $$=C$;var A$=200;function Dp(e,t,n){var r=-1,i=tT,s=e.length,a=!0,o=[],l=o;if(n)a=!1,i=b$;else if(s>=A$){var c=t?null:$$(e);if(c)return Vl(c);a=!1,i=_p,l=new Mi}else l=t?[]:o;t:for(;++r<s;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,a&&d===d){for(var h=l.length;h--;)if(l[h]===d)continue t;t&&l.push(d),o.push(u)}else i(l,d,n)||(l!==o&&l.push(d),o.push(u))}return o}var L$=Nf(function(e){var t=w$(e);return Fl(t)&&(t=void 0),Dp(ua(e,1,Fl,!0),ga(t))});const D$=L$;function Ci(e){return e&&e.length?Dp(e):[]}const ne="cds",nn={opacity:{unselected:.05,selected:.4}},gn={ticks:{number:7,rotateIfSmallerThan:30,verticalSpaceRatio:2.5,horizontalSpaceRatio:3.5},ratio:{reference:"value",compareTo:"marker"},paddingRatio:.1,hover:{rectanglePadding:4}},_r={duration:1e3,ease:nh,zoomLevel:3},Er={circles:{fillOpacity:.3,hover:{stroke:"#FFF"}},padding:{mainGroup:4,children:2},hierarchyLevel:2},kp={pairingOptions:{"1-color":4,"2-color":5,"3-color":5,"4-color":3,"5-color":2,"14-color":1}},ye={circle:{radius:4,opacity:{hovered:1,default:.3}},box:{opacity:{hovered:.5,default:.3}},strokeWidth:{default:1,thicker:2}},k$={defaultBins:10},Ct={items:{status:{ACTIVE:1,DISABLED:0},horizontalSpace:12,verticalSpace:24,textYOffset:8,spaceAfter:4},checkbox:{radius:6.5},radius:{iconData:[{cx:7,cy:7,r:6.5},{cx:7,cy:10,r:3.5}],fill:null,stroke:"#8c8c8c"},line:{yPosition:6,width:24,strokeWidth:1.4,fill:null,stroke:"#999999"},area:{width:24,height:14,fill:"#6f6f6f",stroke:null},size:{iconData:[{width:23,height:12},{width:13,height:6}],fill:null,stroke:"#8D8D8D"},quartile:{iconData:[{x:0,y:0,width:24,height:13},{x:11,y:4,width:1,height:4}]},zoom:{iconData:[{x:0,y:0,width:12,height:12}],color:"#8D8D8D"},color:{barWidth:300,barHeight:8,axisYTranslation:10}},rn={opacity:{unselected:.3,selected:1},weight:{selected:2,unselected:1}},Gt={statusBar:{paddingRight:5},status:{indicatorSize:16,paddingLeft:15},total:{paddingLeft:36,paddingRight:24},height:{default:8,proportional:16},dividerWidth:2},Et={radiusOffset:-15,innerRadius:2,padAngle:.007,hoverArc:{outerRadiusOffset:3},xOffset:30,yOffset:20,yOffsetCallout:10,callout:{minSliceDegree:5,offsetX:15,offsetY:12,horizontalLineLength:8,textMargin:2}},Fn={opacity:{unselected:.1,selected:.3},xLabelPadding:10,yLabelPadding:8,yTicksNumber:4,minRange:10,xAxisRectHeight:50,dotsRadius:5},Ae={nodeWidth:4,nodeHoveredWidth:8,minNodePadding:24,opacity:{unfocus:.3,default:.8,selected:1}},Rp={minCellDividerDimension:16,chartPadding:.5},Ip={default:{size:24}},R$={horizontalOffset:10},Np={default:{duration:300},pie_slice_mouseover:{duration:100},pie_chart_titles:{duration:375},graph_element_mouseover_fill_update:{duration:100},graph_element_mouseout_fill_update:{duration:100}},ce={height:{[De.GRAPH_VIEW]:32,[De.SLIDER_VIEW]:10},spacerHeight:8,handleWidth:5,handleBarWidth:1,handleBarHeight:12},I$=[{type:Nt.RADIUS,name:"Radius"},{type:Nt.AREA,name:"Poor area"},{type:Nt.AREA,name:"Satisfactory area"},{type:Nt.AREA,name:"Great area"},{type:Nt.QUARTILE,name:"Quartiles"}],Sr={type:be.END_LINE,threshold:16,numCharacter:14},N$={enabled:!0,position:kr.BOTTOM,clickable:!0,truncation:Sr,alignment:Rt.LEFT,order:null,additionalItems:[]},P$={x:{enabled:!0,numberOfTicks:15,alignWithAxisTicks:!1},y:{enabled:!0,numberOfTicks:5,alignWithAxisTicks:!1}},U$={enabled:!0},Pp={enabled:!0,showTotal:!0,truncation:Sr,groupLabel:"Group"},Up={top:{visible:!0,includeZero:!0,truncation:Sr},bottom:{visible:!0,includeZero:!0,truncation:Sr},left:{visible:!0,includeZero:!0,truncation:Sr},right:{visible:!0,includeZero:!0,truncation:Sr}},ma={addSpaceOnEdges:1,showDayName:!1,localeObject:Ef,timeIntervalFormats:{"15seconds":{primary:"MMM d, pp",secondary:"pp"},minute:{primary:"MMM d, p",secondary:"p"},"30minutes":{primary:"MMM d, p",secondary:"p"},hourly:{primary:"MMM d, hh a",secondary:"hh a"},daily:{primary:"MMM d",secondary:"d"},weekly:{primary:"eee, MMM d",secondary:"eee"},monthly:{primary:"MMM yyyy",secondary:"MMM"},quarterly:{primary:"QQQ ''yy",secondary:"QQQ"},yearly:{primary:"yyyy",secondary:"yyyy"}}},B$=typeof document<"u"&&(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled),Yt={width:null,height:null,resizable:!0,theme:ou.WHITE,tooltip:Pp,legend:N$,style:{prefix:"cc"},data:{groupMapsTo:"group",loading:!1,selectedGroups:[]},color:{scale:null,pairing:{numberOfVariants:null,option:1},gradient:{enabled:!1}},toolbar:{enabled:!0,numberOfIcons:3,controls:[{type:Mt.SHOW_AS_DATATABLE},...B$?[{type:Mt.MAKE_FULLSCREEN}]:[],{type:Mt.EXPORT_CSV},{type:Mt.EXPORT_PNG},{type:Mt.EXPORT_JPG}]}},Bp=Z({},Yt,{thematic:{projection:Fe.geoNaturalEarth1}}),$i=Z({},Yt,{axes:Up,timeScale:ma,grid:P$,ruler:U$,zoomBar:{zoomRatio:.4,minZoomRatio:.01,top:{enabled:!1,type:De.GRAPH_VIEW}}}),zn=Z({},$i,{bars:{maxWidth:16,spacingFactor:.25},timeScale:Z(ma,{addSpaceOnEdges:1})}),V$=Z({},zn,{}),H$=Z({},zn,{}),G$=Z({},zn,{bars:Z({},zn.bars,{dividerSize:1.5})}),F$=Z({},zn,{}),jl=Z({},$i,{points:{radius:4,fillOpacity:.3,filled:!0,enabled:!0}}),z$=jl,Vp=Z({},jl,{points:{radius:3,filled:!1,enabled:!0}}),Hp=Z({},Vp,{timeScale:Z(ma,{addSpaceOnEdges:0})}),j$=Hp,W$=Z({},$i,{bubble:{radiusMapsTo:"radius",radiusLabel:"Radius",radiusRange:e=>{const t=Math.min(e.width,e.height);return[t*3/400,t*25/400]},fillOpacity:.2,enabled:!0},points:{filled:!0},legend:{additionalItems:[{type:Nt.RADIUS,name:"Radius"}]}}),q$=Z({},$i,{bullet:{performanceAreaTitles:["Poor","Satisfactory","Great"]},grid:{x:{enabled:!1},y:{enabled:!1}},legend:{additionalItems:[{type:Nt.AREA,name:"Poor area"},{type:Nt.AREA,name:"Satisfactory area"},{type:Nt.AREA,name:"Great area"},{type:Nt.QUARTILE,name:"Quartiles"}]}}),Y$=Z({},zn,{bars:{dividerSize:1.5},timeScale:Z(ma,{addSpaceOnEdges:0})}),X$=Z({},Yt,{tooltip:Z({},Pp,{wordLabel:"Word",valueLabel:"Value"}),wordCloud:{fontSizeMapsTo:"value",fontSizeRange:e=>{const t=Math.min(e.width,e.height);return[t*20/400,t*75/400]},wordMapsTo:"word"}}),Gp=Z({},Yt,{pie:{labels:{formatter:null,enabled:!0},alignment:Rt.LEFT,sortFunction:null,valueMapsTo:"value"}}),Z$=Z({},Yt,{legend:{enabled:!1},gauge:{type:Xn.SEMI,arcWidth:16,deltaArrow:{size:e=>e/8,enabled:!0},showPercentageSymbol:!0,status:null,numberSpacing:10,deltaFontSize:e=>e/8,valueFontSize:e=>e/2.5,numberFormatter:e=>Number(e.toFixed(2))%1!==0?e.toFixed(2).toLocaleString():e.toFixed().toLocaleString(),alignment:Rt.LEFT}}),K$=Z({},Gp,{donut:{center:{numberFontSize:e=>`${Math.min(e/100*24,24)}px`,titleFontSize:e=>`${Math.min(e/100*15,15)}px`,titleYPosition:e=>Math.min(e/80*20,20),numberFormatter:e=>Math.floor(e).toLocaleString()},alignment:Rt.LEFT}}),Fp=Z({},Yt,{legend:{enabled:!1,clickable:!1},meter:{showLabels:!0,proportional:null,statusBar:{percentageIndicator:{enabled:!0}}}}),Q$=Z({},Fp,{legend:{enabled:!0}}),J$=Z({},Yt,{radar:{axes:{angle:"key",value:"value"},alignment:Rt.LEFT},tooltip:{gridline:{enabled:!0},valueFormatter:e=>e??"N/A"}}),tA=Z({},zn,{comboChartTypes:[]}),eA=Z({tree:{type:Ba.TREE}},Yt,{}),nA=Z({},Yt,{data:Z(Yt.data,{groupMapsTo:"name"})}),rA=Z({},Yt,Er,{data:Z(Yt.data,{groupMapsTo:"name"})}),iA=Z({},Yt,{alluvial:{data:Z(Yt.data,{groupMapsTo:"source"}),nodeAlignment:Rt.CENTER,nodePadding:24,monochrome:!1,nodes:[]}}),sA=Z({},Yt,{axes:Up,heatmap:{divider:{state:Ir.AUTO},colorLegend:{type:"linear"}}}),aA=Z({},Bp,{choropleth:{colorLegend:{type:"linear"}}}),xt={alluvialChart:iA,areaChart:Hp,axisChart:$i,boxplotChart:F$,bubbleChart:W$,bulletChart:q$,chart:Yt,circlePackChart:rA,choroplethChart:aA,comboChart:tA,donutChart:K$,gaugeChart:Z$,groupedBarChart:H$,heatmapChart:sA,histogramChart:Y$,lineChart:Vp,lollipopChart:z$,meterChart:Fp,pieChart:Gp,proportionalMeterChart:Q$,radarChart:J$,scatterChart:jl,simpleBarChart:V$,stackedAreaChart:j$,stackedBarChart:G$,thematicChart:Bp,treeChart:eA,treemapChart:nA,wordCloudChart:X$};function oA(e,t,n){let r=null;return function(...i){const s=this;s.mousePosition=Sn(i[0],n),clearTimeout(r),r=setTimeout(function(){e.apply(s,i)},t)}}function Tt(e,t){var n;const r=en(e),i=Object.keys(t.axes||{});(n=t==null?void 0:t.toolbar)!=null&&n.controls&&delete r.toolbar.controls,i.length===0&&delete r.axes;for(const s in r.axes)if(i.includes(s)){const a=t.axes[s];if((a.primary||a.secondary)&&console.warn("`primary` & `secondary` are no longer needed for axis configurations. Read more here https://carbon-design-system.github.io/carbon-charts/?path=/story/docs-tutorials--tabular-data-format"),a.mapsTo==null){const l=a.scaleType;l==null?a.mapsTo="value":l===W.TIME?a.mapsTo="date":l===W.LABELS&&(a.mapsTo="key")}}else delete r.axes[s];return Wl(r,t),Z(r,t)}function sn(e){if(!e)return;const t=/translate\([0-9]+\.?[0-9]*,[0-9]+\.?[0-9]*\)/,n=e.getAttribute("transform").match(t);if(!n)return null;if(n[0]){const r=n[0].replace(/translate\(/,"").replace(/\)/,"").split(",");return{tx:r[0],ty:r[1]}}return null}function Ai(e){const t=/\(([^)]+)\)/.exec(e);if(t&&t.length>1){const n=t[1].split(",");if(n.length>1)return{x:parseFloat(n[0]),y:parseFloat(n[1])}}return{x:0,y:0}}function zp(e,t,n="value"){const r=e/t.reduce((i,s)=>i+s[n],0)*100;return r%1!==0?parseFloat(r.toFixed(1)):r}function Li(e,t,n){if(n>e.length)return e;if(t===be.MID_LINE)return e.substr(0,n/2)+"..."+e.substr(-n/2);if(t===be.FRONT_LINE)return"..."+e.substr(-n);if(t===be.END_LINE)return e.substr(0,n)+"..."}function Wl(e,t){const n=b(e,"legend","additionalItems"),r=b(t,"legend","additionalItems");if(n&&r){const i=r.map(o=>o.type),s=n.map(o=>o.type),a=I$.filter(o=>s.includes(o.type)&&!i.includes(o.type));e.legend.additionalItems=a,t.legend.additionalItems=D$(a,r,"name")}}const b=(e,...t)=>{let n=e;if(n){for(const r of t)if(n[r]!==null&&n[r]!==void 0)n=n[r];else return null;return n}return null},jp=(e,t)=>t===Bt.HORIZONTAL?{y0:e.x0,y1:e.x1,x0:e.y0,x1:e.y1}:e,Zt=(e,t)=>{const{x0:n,x1:r,y0:i,y1:s}=jp(e,t);return`M${n},${i}L${n},${s}L${r},${s}L${r},${i}L${n},${i}`};function an(e,t,n){return n===Bt.VERTICAL?[e,t]:[t,e]}var Wp=(e=>(e["15seconds"]="15seconds",e.minute="minute",e["30minutes"]="30minutes",e.hourly="hourly",e.daily="daily",e.weekly="weekly",e.monthly="monthly",e.quarterly="quarterly",e.yearly="yearly",e))(Wp||{});const ql=[["15seconds",15*1e3],["minute",60*1e3],["30minutes",30*60*1e3],["hourly",60*60*1e3],["daily",24*60*60*1e3],["monthly",30*24*60*60*1e3],["quarterly",3*30*24*60*60*1e3],["yearly",12*30*24*60*60*1e3]];function qp(e,t,n,r,i){const s=t===0,a=Number(mr(new Date(e),"c"))===2,o=Number(mr(new Date(e),"q"))===1,l=t!==0?n[t-1]:null;switch(r){case"15seconds":return s||ya(e)||Di(e,l)||mn(e);case"minute":return s||ya(e)||Di(e,l)||mn(e);case"30minutes":return s||ya(e)||Di(e,l)||mn(e);case"hourly":return s||ya(e)||Di(e,l)||mn(e);case"daily":return i?s||a||mn(e):s||Di(e,l)||mn(e);case"weekly":return s||a||mn(e);case"monthly":return s||mn(e);case"quarterly":return s||o;case"yearly":return!1;default:throw new Error(`${r} is not a valid time interval.`)}}function Yl(e,t,n,r,i){const s=i.showDayName,a=r==="daily"&&s?"weekly":r,o=new Date(e),l=b(i,"timeIntervalFormats")[a],c=b(l,"primary"),u=b(l,"secondary");let d=qp(e,t,n,r,s)?c:u;r==="15seconds"&&o.getMilliseconds()!==0&&(d=d.replace("pp","h:mm:ss.SSS a"));const h=i.localeObject;return mr(o,d,{locale:h})}function va(e){const t=new Date(e);return{M:t.getMonth()+1,d:t.getDate(),H:t.getHours(),m:t.getMinutes(),s:t.getSeconds()}}function lA(e){if(e)return e.slice(1).map((t,n)=>t-e[n])}function cA(e){const t=ql.reduce((n,[,r],i)=>{const s=ql[n][1],a=Math.abs(s-e),o=Math.abs(r-e);return a<o?n:i},0);return ql[t][0]}function Xl(e,t){if(Wp[t])return t;if(e.length===1)return"15seconds";const n=lA(e),r=un(n);return cA(r)}function ya(e){const{s:t,m:n,H:r}=va(e);return r===0&&n===0&&t===0}function Di(e,t){const n=va(e).M,r=va(t).M;return n!==r}function mn(e){const{M:t,d:n,s:r,m:i,H:s}=va(e);return t===1&&n===1&&s===0&&i===0&&r===0}function Yp(e){return e===void 0?"":e.toISOString()}function Xp(e){const t=we(e,r=>r.value),n=Te().domain(t).nice().domain();if(n[0]>0)n[0]=0;else if(n[0]===0&&n[1]===0)return[0,1];return n[0]<0&&n[1]>0&&(Math.abs(n[0])>n[1]?n[1]=Math.abs(n[0]):n[0]=-n[1]),n}function Zp(e,t){const n=b(t,"gradient","colors"),r=!$e(n);let i=b(t,"pairing","option");const s=Xp(e),a=s[0]<0&&s[1]>0?"diverge":"mono";(i<1&&i>4&&a==="mono"||i<1&&i>2&&a==="diverge")&&(i=1);const o=r?n:[];if(!r){const l=a==="diverge"?17:11;for(let c=1;c<l+1;c++)o.push(`fill-${a}-${i}-${c}`)}return tl().domain(s).range(o)}var it=(e=>(e.GRAPHICS_DOCUMENT="graphics-document",e.GRAPHICS_OBJECT="graphics-object",e.GRAPHICS_SYMBOL="graphics-symbol",e.GROUP="group",e.DOCUMENT="document",e.CHECKBOX="checkbox",e.BUTTON="button",e.MENU="menu",e.MENU_ITEM="menuitem",e.IMG="img",e))(it||{});function uA(e,t){return e&&Ap(e,t,_i)}function hA(e,t){return function(n,r){if(n==null)return n;if(!Vn(n))return e(n,r);for(var i=n.length,s=t?i:-1,a=Object(n);(t?s--:++s<i)&&r(a[s],s,a)!==!1;);return n}}var dA=hA(uA);const Zl=dA;function fA(e,t,n,r){for(var i=-1,s=e==null?0:e.length;++i<s;){var a=e[i];t(r,a,n(a),e)}return r}function pA(e,t,n,r){return Zl(e,function(i,s,a){t(r,i,n(i),a)}),r}function gA(e,t){return function(n,r){var i=Ht(n)?fA:pA,s=t?t():{};return i(n,e,ga(r),s)}}function mA(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r}var vA=Object.prototype,yA=vA.hasOwnProperty,xA=gA(function(e,t,n){yA.call(e,n)?e[n].push(t):ia(e,n,[t])});const bA=xA;class Be{constructor(t){this.state={options:{}},this.colorScale={},this.colorClassNames={},this.services=t}getAllDataFromDomain(t){if(!this.getData())return null;const n=this.getOptions();let r=this.getData();const i=this.getDataGroups(),{groupMapsTo:s}=b(n,"data"),a=b(n,"axes");return t&&(r=r.filter(o=>t.includes(o[s]))),a&&Object.keys(a).forEach(o=>{const l=a[o].mapsTo,c=a[o].scaleType;if((c===W.LINEAR||c===W.LOG)&&(r=r.map(u=>({...u,[l]:u[l]===null?u[l]:Number(u[l])}))),l&&a[o].domain)if(c===W.LABELS)r=r.filter(u=>a[o].domain.includes(u[l]));else{const[u,d]=a[o].domain;r=r.filter(h=>!(l in h)||h[l]>=u&&h[l]<=d)}}),r.filter(o=>i.find(l=>l.name===o[s]))}getDisplayData(t){if(!this.get("data"))return null;const{ACTIVE:n}=Ct.items.status,r=this.getDataGroups(t),{groupMapsTo:i}=this.getOptions().data;return this.getAllDataFromDomain(t).filter(s=>r.find(a=>a.name===s[i]&&a.status===n))}getData(){return this.get("data")}isDataEmpty(){return!this.getData().length}setData(t){const n=this.sanitize(en(t)),r=this.generateDataGroups(n);return this.set({data:n,dataGroups:r}),n}getDataGroups(t){return b(this.getOptions(),"data","loading")?[]:t?this.get("dataGroups").filter(n=>t.includes(n.name)):this.get("dataGroups")}getActiveDataGroups(t){const{ACTIVE:n}=Ct.items.status;return this.getDataGroups(t).filter(r=>r.status===n)}getDataGroupNames(t){return this.getDataGroups(t).map(n=>n.name)}getActiveDataGroupNames(t){return this.getActiveDataGroups(t).map(n=>n.name)}aggregateBinDataByGroup(t){return bA(t,"group")}getBinConfigurations(){const t=this.getDisplayData(),n=this.getOptions(),r=this.services.cartesianScales.getMainXAxisPosition(),i=this.services.cartesianScales.getDomainIdentifier(),s=n.axes[r],{groupMapsTo:a}=n.data,{bins:o=k$.defaultBins}=s,l=Array.isArray(o),c=Bv().value(f=>f[i]).thresholds(o)(t);if(l)c[c.length-1].x1=o[o.length-1];else{const f=c[0].x1-c[0].x0;c[c.length-1].x1=+c[c.length-1].x0+f}const u=l?[o[0],o[o.length-1]]:[c[0].x0,c[c.length-1].x1],d=Array.from(new Set(t.map(f=>f[a]))),h=[];return c.forEach(f=>{const p=`${f.x0}-${f.x1}`,m=this.aggregateBinDataByGroup(f);d.forEach(g=>{h.push({group:g,key:p,value:m[g]||0,bin:f.x0})})}),{bins:c,binsDomain:u}}getBinnedStackedData(){const t=this.getOptions(),{groupMapsTo:n}=t.data,r=this.getActiveDataGroupNames(),{bins:i}=this.getBinConfigurations(),s=this.getDataValuesGroupedByKeys({bins:i});return bl().keys(r)(s).map((a,o)=>Object.keys(a).filter(l=>!isNaN(l)).map(l=>{const c=a[l];return c[n]=r[o],c}))}getGroupedData(t){const n=this.getDisplayData(t),r={},{groupMapsTo:i}=this.getOptions().data;return n.map(s=>{const a=s[i];r[a]!==null&&r[a]!==void 0?r[a].push(s):r[a]=[s]}),Object.keys(r).map(s=>({name:s,data:r[s]}))}getStackKeys({bins:t=null,groups:n=null}={bins:null,groups:null}){const r=this.getOptions(),i=this.getDisplayData(n);let s;t?s=t.map(l=>`${l.x0}-${l.x1}`):s=Ci(i.map(l=>{const c=this.services.cartesianScales.getDomainIdentifier(l);return l[c]instanceof Date?Yp(l[c]):l[c]&&typeof l[c].toString=="function"?l[c].toString():l[c]}));const a=this.services.cartesianScales.domainAxisPosition,o=r.axes[a].scaleType;return o===W.TIME?s.sort((l,c)=>{const u=new Date(l),d=new Date(c);return u-d}):(o===W.LOG||o===W.LINEAR)&&s.sort((l,c)=>l-c),s}getDataValuesGroupedByKeys({bins:t=null,groups:n=null}){const r=this.getOptions(),{groupMapsTo:i}=r.data,s=this.getDisplayData(n),a=this.getDataGroupNames(),o=this.getStackKeys({bins:t,groups:n});return t?o.map(l=>{const[c,u]=l.split("-"),d={x0:c,x1:u},h=t.find(f=>f.x0.toString()===c.toString());return a.forEach(f=>{d[f]=h.filter(p=>p[i]===f).length}),d}):o.map(l=>{const c={sharedStackKey:l};return a.forEach(u=>{const d=s.find(f=>{const p=this.services.cartesianScales.getDomainIdentifier(f);return f[i]===u&&Object.prototype.hasOwnProperty.call(f,p)&&(f[p]instanceof Date?Yp(f[p])===l:f[p].toString()===l)}),h=this.services.cartesianScales.getRangeIdentifier(c);c[u]=d?d[h]:null}),c})}getStackedData({percentage:t=!1,groups:n=null,divergent:r=!1}){const i=this.getOptions(),{groupMapsTo:s}=i.data,a=this.getActiveDataGroupNames(n),o=this.getDataValuesGroupedByKeys({groups:n});if(t){const l=mA(o.map(c=>[c.sharedStackKey,0]));o.forEach(c=>{a.forEach(u=>{l[c.sharedStackKey]+=c[u]})}),o.forEach(c=>{a.forEach(u=>{const d=l[c.sharedStackKey];l[c.sharedStackKey]?c[u]=c[u]/d*100:c[u]=0})})}return(r?bl().offset(jE):bl()).keys(a)(o).map((l,c)=>Object.keys(l).filter(u=>!isNaN(u)).map(u=>{const d=l[u];return d[s]=a[c],d}))}getOptions(){return this.state.options}set(t,n){this.state=Object.assign({},this.state,t);const r=Object.assign({skipUpdate:!1,animate:!0},n);r.skipUpdate||this.update(r.animate)}get(t){return t?this.state[t]:this.state}setOptions(t){const n=this.getOptions();Wl(n,t),this.set({options:Z(n,t)})}update(t=!0){this.getDisplayData()&&(this.updateAllDataGroups(),this.setCustomColorScale(),this.setColorClassNames(),this.services.events.dispatchEvent(O.Model.UPDATE,{animate:t}))}toggleDataLabel(t){const{ACTIVE:n,DISABLED:r}=Ct.items.status,i=this.getDataGroups(),s=i.some(c=>c.status===r),a=i.filter(c=>c.status===n);if(s)if(a.length===1&&a[0].name===t)i.forEach((c,u)=>{i[u].status=n});else{const c=i.findIndex(u=>u.name===t);i[c].status=i[c].status===r?n:r}else i.forEach((c,u)=>{i[u].status=c.name===t?n:r});const o=i.filter(c=>c.status===n),l=this.getOptions();i.some(c=>c.status===r)?l.data.selectedGroups=o.map(c=>c.name):l.data.selectedGroups=[],this.services.events.dispatchEvent(O.Legend.ITEMS_UPDATE,{dataGroups:i}),this.set({dataGroups:i})}getIsFilled(t,n,r,i){const s=this.getOptions();return s.getIsFilled?s.getIsFilled(t,n,r,i):i}getFillColor(t,n,r){const i=this.getOptions(),s=b(this.colorScale,t);return i.getFillColor?i.getFillColor(t,n,r,s):s}getStrokeColor(t,n,r){const i=this.getOptions(),s=b(this.colorScale,t);return i.getStrokeColor?i.getStrokeColor(t,n,r,s):s}isUserProvidedColorScaleValid(){const t=b(this.getOptions(),"color","scale"),n=this.getDataGroups();return t==null||Object.keys(t).length==0?!1:n.some(r=>Object.keys(t).includes(r.name))}getColorClassName(t){const n=this.colorClassNames(t.dataGroupName);let r=t.originalClassName;return t.classNameTypes.forEach(i=>r=t.originalClassName?`${r} ${i}-${n}`:`${i}-${n}`),r||""}getStatus(){return null}getAllDataGroupsNames(){return this.allDataGroups}transformToTabularData(t){console.warn("We've updated the charting data format to be tabular by default. The current format you're using is deprecated and will be removed in v1.0, read more here https://carbon-design-system.github.io/carbon-charts/?path=/story/docs-tutorials--tabular-data-format");const n=[],{datasets:r,labels:i}=t;return r.forEach(s=>{s.data.forEach((a,o)=>{let l;const c=b(s,"label");if(c===null){const d=b(i,o);d?l=d:l="Ungrouped"}else l=c;const u={group:l,key:i[o]};isNaN(a)?(u.value=a.value,u.date=a.date):u.value=a,n.push(u)})}),n}getTabularDataArray(){return[]}exportToCSV(){const t=this.getTabularDataArray().map(o=>o.map(l=>`"${l==="&ndash;"?"–":l}"`));let n="",r="";t.forEach(function(o,l){r=o.join(","),n+=l<t.length?r+`
2
+ `:r});const i=this.getOptions();let s="myChart";const a=b(i,"fileDownload","fileName");typeof a=="function"?s=a("csv"):typeof a=="string"&&(s=a),this.services.files.downloadCSV(n,`${s}.csv`)}getTabularData(t){return Array.isArray(t)?t:this.transformToTabularData(t)}sanitize(t){return t=this.getTabularData(t),t}updateAllDataGroups(){this.allDataGroups?this.getDataGroupNames().forEach(t=>{this.allDataGroups.indexOf(t)===-1&&this.allDataGroups.push(t)}):this.allDataGroups=this.getDataGroupNames()}generateDataGroups(t){const{groupMapsTo:n}=this.getOptions().data,{ACTIVE:r,DISABLED:i}=Ct.items.status,s=this.getOptions(),a=Ci(t.map(l=>l[n]));s.data.selectedGroups.length&&(s.data.selectedGroups.every(l=>a.includes(l))||(s.data.selectedGroups=[]));const o=l=>!s.data.selectedGroups.length||s.data.selectedGroups.includes(l)?r:i;return a.map(l=>({name:l,status:o(l)}))}setCustomColorScale(){if(!this.isUserProvidedColorScaleValid())return;const t=this.getOptions(),n=b(t,"color","scale");Object.keys(n).forEach(r=>{this.allDataGroups.includes(r)||console.warn(`"${r}" does not exist in data groups.`)}),this.allDataGroups.filter(r=>n[r]).forEach(r=>this.colorScale[r]=n[r])}setColorClassNames(){const t=b(this.getOptions(),"color","pairing");let n=b(t,"numberOfVariants");(!n||n<this.allDataGroups.length)&&(n=this.allDataGroups.length);let r=b(t,"option");const i=kp.pairingOptions,s=n>5?14:n,a=`${s}-color`;r=r<=i[a]?r:1;const o=this.allDataGroups.map((l,c)=>`${s}-${r}-${c%14+1}`);this.colorClassNames=Is().range(o).domain(this.allDataGroups)}}class jn extends Be{constructor(t){super(t),this.axisFlavor=Fi.DEFAULT}assignRangeAndDomains(){const{cartesianScales:t}=this.services,n=this.getOptions(),r=t.isDualAxes(),i={primaryDomain:t.domainAxisPosition,primaryRange:t.rangeAxisPosition,secondaryDomain:null,secondaryRange:null};return r&&(i.secondaryDomain=t.secondaryDomainAxisPosition,i.secondaryRange=t.secondaryRangeAxisPosition),Object.keys(i).forEach(s=>{const a=i[s];t.scales[a]?i[s]={position:a,label:t.getScaleLabel(a),identifier:b(n,"axes",a,"mapsTo")}:i[s]=null}),i}getTabularDataArray(){const t=this.getDisplayData(),n=this.getOptions(),{groupMapsTo:r}=n.data,{cartesianScales:i}=this.services,{primaryDomain:s,primaryRange:a,secondaryDomain:o,secondaryRange:l}=this.assignRangeAndDomains(),c=i.getDomainAxisScaleType();let u;return c===W.TIME&&(u=d=>mr(d,"MMM d, yyyy")),[["Group",s.label,a.label,...o?[o.label]:[],...l?[l.label]:[]],...t.map(d=>[d[r],d[s.identifier]===null?"&ndash;":u?u(d[s.identifier]):d[s.identifier],d[a.identifier]===null||isNaN(d[a.identifier])?"&ndash;":d[a.identifier].toLocaleString(),...o?[d[o.identifier]===null?"&ndash;":d[o.identifier]]:[],...l?[d[l.identifier]===null||isNaN(d[l.identifier])?"&ndash;":d[l.identifier]]:[]])]}setData(t){let n;if(t&&(n=super.setData(t),b(this.getOptions(),"zoomBar",V.TOP,"enabled"))){const r=b(this.getOptions(),"zoomBar",V.TOP,"data");this.setZoomBarData(r)}return n}setZoomBarData(t){const n=t?this.sanitize(en(t)):this.getDisplayData();let r=n;const{cartesianScales:i}=this.services;if(n&&i.domainAxisPosition&&i.rangeAxisPosition){const s=i.getDomainIdentifier(),a=i.getRangeIdentifier();let o=n.map(l=>l[s].getTime());o=Ci(o).sort(),r=o.map(l=>{let c=0;const u={};return n.forEach(d=>{d[s].getTime()===l&&(c+=d[a])}),u[s]=new Date(l),u[a]=c,u})}this.set({zoomBarData:r})}getZoomBarData(){return this.get("zoomBarData")}sanitizeDateValues(t){const n=this.getOptions();if(!n.axes)return t;const r=[];return Object.keys(V).forEach(i=>{const s=V[i],a=n.axes[s];if(a&&a.scaleType===W.TIME){const o=a.mapsTo;(o!==null||o!==void 0)&&r.push(o)}}),r.length>0&&t.forEach(i=>{r.forEach(s=>{b(i,s,"getTime")===null&&(i[s]=new Date(i[s]))})}),t}sanitize(t){return t=super.sanitize(t),t=this.sanitizeDateValues(t),t}}let wA=class extends jn{constructor(t){super(t)}getTabularDataArray(){const t=this.getDisplayData();return t.sort((n,r)=>n.source.localeCompare(r.source)),[["Source","Target","Value"],...t.map(n=>[n.source,n.target,n.value])]}},_A=class extends jn{constructor(t){super(t)}getBoxQuartiles(t){return{q_25:Wa(t,.25),q_50:Wa(t,.5),q_75:Wa(t,.75)}}getBoxplotData(){const t=this.getOptions(),{groupMapsTo:n}=t.data,r=this.getGroupedData(),i=[];for(const{name:s,data:a}of r){const o=this.services.cartesianScales.getRangeIdentifier(),l=a.map(x=>x[o]).sort(wn),c={[n]:s,counts:l,quartiles:this.getBoxQuartiles(l),outliers:null,whiskers:null},u=c.quartiles.q_25,d=c.quartiles.q_75,h=(d-u)*1.5,f=u-h,p=d+h,m=[],g=[];for(const x of l)x<f||x>p?m.push(x):g.push(x);c.outliers=m;const v=un(g),y=En(g);c.whiskers={min:v||un([c.quartiles.q_25,c.quartiles.q_50,c.quartiles.q_75]),max:y||En([c.quartiles.q_25,c.quartiles.q_50,c.quartiles.q_75])},i.push(c)}return i}getTabularDataArray(){const t=this.getOptions(),{groupMapsTo:n}=t.data,r=this.getBoxplotData();return[["Group","Minimum","Q1","Median","Q3","Maximum","IQR","Outlier(s)"],...r.map(i=>{let s=b(i,"outliers");return(s===null||s.length===0)&&(s=["&ndash;"]),[i[n],b(i,"whiskers","min")!==null?b(i,"whiskers","min").toLocaleString():"&ndash;",b(i,"quartiles","q_25")!==null?b(i,"quartiles","q_25").toLocaleString():"&ndash;",b(i,"quartiles","q_50")!==null?b(i,"quartiles","q_50").toLocaleString():"&ndash;",b(i,"quartiles","q_75")!==null?b(i,"quartiles","q_75").toLocaleString():"&ndash;",b(i,"whiskers","max")!==null?b(i,"whiskers","max").toLocaleString():"&ndash;",b(i,"quartiles","q_75")!==null&&b(i,"quartiles","q_25")!==null?(b(i,"quartiles","q_75")-b(i,"quartiles","q_25")).toLocaleString():"&ndash;",s.map(a=>a.toLocaleString()).join(",")]})]}setColorClassNames(){const t=b(this.getOptions(),"color","pairing");let n=b(t,"option");const r=kp.pairingOptions;n=n<=r["1-color"]?n:1;const i=this.allDataGroups.map(()=>`1-${n}-1`);this.colorClassNames=Is().range(i).domain(this.allDataGroups)}},EA=class extends jn{constructor(t){super(t)}getMatchingRangeIndexForDatapoint(t){let n;for(let r=t.ranges.length-1;r>0;r--){const i=t.ranges[r];if(t.value>=i)return n=r,n}return 0}getTabularDataArray(){const t=this.getDisplayData(),n=this.getOptions(),{groupMapsTo:r}=n.data,i=this.services.cartesianScales.getRangeIdentifier(),s=b(n,"bullet","performanceAreaTitles");return[["Title","Group","Value","Target","Percentage","Performance"],...t.map(a=>[a.title,a[r],a.value===null?"&ndash;":a.value,b(a,"marker")===null?"&ndash;":a.marker,b(a,"marker")===null?"&ndash;":`${Math.floor(a[i]/a.marker*100)}%`,s[this.getMatchingRangeIndexForDatapoint(a)]])]}},SA=class extends Be{constructor(t){super(t),this._colorScale=void 0,this._matrix={}}getFillColor(t){return this._colorScale(t)}getCombinedData(){if($e(this._matrix)){const t=this.getOptions(),n=this.getDisplayData();!$e(n)&&!$e(t.geoData.objects.countries)&&(t.geoData.objects.countries.geometries.forEach(r=>{this._matrix[r.properties.NAME]=r}),n.forEach(r=>{this._matrix[r.name]?this._matrix[r.name].value=r.value||null:console.warn(`Data point ${r} is missing geographical data.`)}))}return this._matrix}getTabularDataArray(){const t=this.getDisplayData();return[["Country ID","Country Name","Value"],...t.map(n=>[n.id===null?"&ndash;":n.id,n.name,n.value])]}getColorClassName(t){return`${t.originalClassName} ${this._colorScale(t.value)}`}setColorClassNames(){const t=b(this.getOptions(),"color");this._colorScale=Zp(this.getDisplayData(),t)}},OA=class extends Be{constructor(t){super(t),this.parentNode=!1,this.set({depth:2},{skipUpdate:!0})}setData(t){super.setData(t),this.setDataGroups(),t.length===1&&(this.parentNode=!0),this.setZoom()}setOptions(t){const n=this.getOptions(),r=Z({},t,this.getZoomOptions(t));Wl(n,r);const i=this.getHierarchyLevel(),s=b(n,"circlePack","hierarchyLevel");this.set({options:Z(n,r),depth:s&&s<4?s:i})}getZoomOptions(t){if(!this.getDisplayData())return{};const n=this.getDisplayData(),r=t||this.getOptions(),i=n.length===1&&b(n,0,"children")?b(n,0,"children"):n;let s=this.getHierarchyLevel();return i.some(a=>{if(a.children&&a.children.some(o=>o.children))return s=3,!1}),b(r,"canvasZoom","enabled")===!0&&s>2?{legend:{additionalItems:[{type:Nt.ZOOM,name:"Click to zoom"}]}}:null}setZoom(t){this.setOptions(this.getZoomOptions(t))}updateHierarchyLevel(t){this.set({depth:t})}getHierarchyLevel(){return this.get("depth")}hasParentNode(){return this.parentNode}setDataGroups(){const t=this.getData(),n=this.getOptions(),{groupMapsTo:r}=n.data,i=t.map(s=>{const a=s[r];return this.setChildrenDataGroup(s,a)});this.set({data:i},{skipUpdate:!0})}setChildrenDataGroup(t,n){return t.children?{...t,dataGroupName:n,children:t.children.map(r=>this.setChildrenDataGroup(r,n))}:{...t,dataGroupName:n}}getTabularDataArray(){const t=this.getDisplayData(),n=[["Child","Parent","Value"]];return t.forEach(r=>{let i=r.value?r.value:0;r.children&&(i+=this.getChildrenDatums(r.children,r.name,n,0)),n.push(["&ndash;",r.name,i])}),n}getChildrenDatums(t,n,r=[],i=0){const s=n;return t.forEach(a=>{const o=a.name;let l=0;if(a.children)a.children.length>0&&(typeof a.value=="number"&&(i+=a.value),l+=this.getChildrenDatums(a.children,o,r,l),r.push([o,s,l]),i+=l);else{let c=0;typeof a.value=="number"&&(c=a.value,i+=a.value),r.push([a.name,s,c])}}),i}},TA=class extends Be{constructor(t){super(t)}getTabularData(t){const n=super.getTabularData(t);return t!==n&&n.forEach(r=>{r.key&&r.key!==r.group&&(r.group=r.key)}),n}getTabularDataArray(){const t=this.getDisplayData(),n=this.getOptions(),{groupMapsTo:r}=n.data;return[["Group","Value"],...t.map(i=>[i[r],i.value===null?"&ndash;":i.value.toLocaleString()])]}sanitize(t){return this.getTabularData(t).sort((n,r)=>r.value-n.value)}},MA=class extends Be{constructor(t){super(t)}getDataGroups(){return super.getDataGroups().filter(t=>t.name!=="delta")}getTabularDataArray(){const t=this.getDisplayData(),n=this.getOptions(),{groupMapsTo:r}=n.data;return[["Group","Value"],...t.map(i=>[i[r],i.value===null?"&ndash;":i.value.toLocaleString()])]}},CA=class extends jn{constructor(t){super(t),this.axisFlavor=Fi.HOVERABLE,this._colorScale=void 0,this._domains=[],this._ranges=[],this._matrix={};const n=b(this.getOptions(),"axes");if(b(n,"left","scaleType")&&b(n,"left","scaleType")!==W.LABELS||b(n,"right","scaleType")&&b(n,"right","scaleType")!==W.LABELS||b(n,"top","scaleType")&&b(n,"top","scaleType")!==W.LABELS||b(n,"bottom","scaleType")&&b(n,"bottom","scaleType")!==W.LABELS)throw Error("Heatmap only supports label scaletypes.")}getValueDomain(){const t=we(this.getDisplayData(),r=>r.value),n=Te().domain(t).nice().domain();if(n[0]>0)n[0]=0;else if(n[0]===0&&n[1]===0)return[0,1];return n[0]<0&&n[1]>0&&(Math.abs(n[0])>n[1]?n[1]=Math.abs(n[0]):n[0]=-n[1]),n}getFillColor(t){return this._colorScale(t)}getUniqueDomain(){if($e(this._domains)){const t=this.getDisplayData(),{cartesianScales:n}=this.services,r=n.getDomainIdentifier(),i=n.getMainXAxisPosition(),s=n.getCustomDomainValuesByposition(i);if(s)return s;this._domains=Array.from(new Set(t.map(a=>a[r])))}return this._domains}getUniqueRanges(){if($e(this._ranges)){const t=this.getDisplayData(),{cartesianScales:n}=this.services,r=n.getRangeIdentifier(),i=n.getMainYAxisPosition(),s=n.getCustomDomainValuesByposition(i);if(s)return s;this._ranges=Array.from(new Set(t.map(a=>a[r])))}return this._ranges}getMatrix(){if($e(this._matrix)){const t=this.getUniqueDomain(),n=this.getUniqueRanges(),r=this.services.cartesianScales.getDomainIdentifier(),i=this.services.cartesianScales.getRangeIdentifier(),s={};n.forEach(a=>{s[a]={value:null,index:-1}}),t.forEach(a=>{this._matrix[a]=en(s)}),this.getDisplayData().forEach((a,o)=>{this._matrix[a[r]][a[i]]={value:a.value,index:o}})}return this._matrix}setData(t){const n=this.sanitize(en(t)),r=this.generateDataGroups(n);return this.set({data:n,dataGroups:r}),this._domains=[],this._ranges=[],this._matrix={},n}getMatrixAsArray(){$e(this._matrix)&&this.getMatrix();const t=this.getUniqueDomain(),n=this.getUniqueRanges(),r=this.services.cartesianScales.getDomainIdentifier(),i=this.services.cartesianScales.getRangeIdentifier(),s=[];return t.forEach(a=>{n.forEach(o=>{const l={value:this._matrix[a][o].value,index:this._matrix[a][o].index};l[r]=a,l[i]=o,s.push(l)})}),s}getTabularDataArray(){const t=this.getDisplayData(),{primaryDomain:n,primaryRange:r}=this.assignRangeAndDomains();return[[n.label,r.label,"Value"],...t.map(i=>[i[n.identifier]===null?"&ndash;":i[n.identifier],i[r.identifier]===null?"&ndash;":i[r.identifier].toLocaleString(),i.value])]}getColorClassName(t){return`${t.originalClassName} ${this._colorScale(t.value)}`}setColorClassNames(){const t=this.getOptions(),n=b(t,"color","gradient","colors"),r=!$e(n);let i=b(t,"color","pairing","option");const s=this.getValueDomain(),a=s[0]<0&&s[1]>0?"diverge":"mono";(i<1&&i>4&&a==="mono"||i<1&&i>2&&a==="diverge")&&(i=1);const o=r?n:[];if(!r){const c=a==="diverge"?17:11;for(let u=1;u<c+1;u++)o.push(`fill-${a}-${i}-${u}`)}this._colorScale=tl().domain(s).range(o);const l=b(this.getOptions(),"color");this._colorScale=Zp(this.getDisplayData(),l)}},$A=class extends jn{getTabularDataArray(){const t=this.getOptions(),{groupMapsTo:n}=t.data,r=this.getBinnedStackedData();return[[wt(t,"bins.rangeLabel")||"Range",...r.map(i=>wt(i,`0.${n}`))],...wt(r,0).map((i,s)=>[`${wt(i,"data.x0")} – ${wt(i,"data.x1")}`,...r.map(a=>wt(a[s],`data.${wt(a[s],n)}`))])]}},AA=class extends Be{constructor(t){super(t)}getMaximumDomain(t){return t.reduce((n,r)=>n+r.value,0)}getFillColor(t){const n=this.getOptions(),r=b(n,"color","scale"),i=this.getStatus();return r||!i?super.getFillColor(t):null}getStatus(){const t=this.getOptions(),n=b(this.getDisplayData()),r=(n==null?void 0:n.reduce((a,o)=>a+o.value,0))??0,i=b(t,"meter","proportional")?r:r>100?100:r,s=b(t,"meter","status","ranges");if(s){const a=s.filter(o=>o.range[0]<=i&&i<=o.range[1]);if(a.length>0)return a[0].status}return null}getTabularDataArray(){const t=this.getDisplayData(),n=this.getOptions(),{groupMapsTo:r}=n.data,i=this.getStatus(),s=b(n,"meter","proportional");let a=[],o;if(s===null){o=100;const l=t[0];a=[["Group","Value",...i?["Status"]:[]],[l[r],l.value,...i?[i]:[]]]}else o=b(s,"total")||this.getMaximumDomain(t),a=[["Group","Value","Percentage of total"],...t.map(c=>[c[r],c.value,(c.value/o*100).toFixed(2)+" %"])];return a}},LA=class extends jn{constructor(t){super(t)}getTabularDataArray(){const t=this.getOptions(),n=this.getGroupedData(),{angle:r,value:i}=b(t,"radar","axes"),s=b(n,"0","data").map(a=>a[r]);return[["Group",...s],...n.map(a=>[a.name,...s.map((o,l)=>b(a,"data",l,i)!==null?b(a,"data",l,i).toLocaleString():"&ndash;")])]}},DA=class extends Be{constructor(t){super(t)}getTabularDataArray(){const t=this.getDisplayData(),n=[["Child","Parent"]];return t.forEach(r=>{this.getChildrenDatums(r,n),n.push([r.name,"&ndash;"])}),n}getChildrenDatums(t,n=[]){t.children&&t.children.length>0&&t.children.forEach(r=>{this.getChildrenDatums(r,n),n.push([r.name,t.name])})}},kA=class extends Be{constructor(t){super(t)}getTabularDataArray(){const t=this.getDisplayData(),n=[["Child","Group","Value"]];return t.forEach(r=>{Array.isArray(r.children)?r.children.forEach(i=>{n.push([i.name,r.name,i.value])}):b(r.name)!==null&&b(r.value)&&n.push(["–",r.name,r.value])}),n}};class RA extends Be{constructor(t){super(t)}getTabularDataArray(){const t=this.getDisplayData(),n=this.getOptions(),{fontSizeMapsTo:r,wordMapsTo:i}=n.wordCloud,{groupMapsTo:s}=n.data;return[[n.tooltip.wordLabel,"Group",n.tooltip.valueLabel],...t.map(a=>[a[i],a[s],a[r]])]}}var IA=/\s/;function NA(e){for(var t=e.length;t--&&IA.test(e.charAt(t)););return t}var PA=/^\s+/;function UA(e){return e&&e.slice(0,NA(e)+1).replace(PA,"")}var Kp=0/0,BA=/^[-+]0x[0-9a-f]+$/i,VA=/^0b[01]+$/i,HA=/^0o[0-7]+$/i,GA=parseInt;function ki(e){if(typeof e=="number")return e;if(na(e))return Kp;if(ve(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ve(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=UA(e);var n=VA.test(e);return n||HA.test(e)?GA(e.slice(2),n?2:8):BA.test(e)?Kp:+e}var FA=function(){return Me.Date.now()};const Kl=FA;var zA="Expected a function",jA=Math.max,WA=Math.min;function xa(e,t,n){var r,i,s,a,o,l,c=0,u=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(zA);t=ki(t)||0,ve(n)&&(u=!!n.leading,d="maxWait"in n,s=d?jA(ki(n.maxWait)||0,t):s,h="trailing"in n?!!n.trailing:h);function f(E){var T=r,k=i;return r=i=void 0,c=E,a=e.apply(k,T),a}function p(E){return c=E,o=setTimeout(v,t),u?f(E):a}function m(E){var T=E-l,k=E-c,I=t-T;return d?WA(I,s-k):I}function g(E){var T=E-l,k=E-c;return l===void 0||T>=t||T<0||d&&k>=s}function v(){var E=Kl();if(g(E))return y(E);o=setTimeout(v,m(E))}function y(E){return o=void 0,h&&r?f(E):(r=i=void 0,a)}function x(){o!==void 0&&clearTimeout(o),c=0,r=l=i=o=void 0}function S(){return o===void 0?a:y(Kl())}function _(){var E=Kl(),T=g(E);if(r=arguments,i=this,l=E,T){if(o===void 0)return p(l);if(d)return clearTimeout(o),o=setTimeout(v,t),f(l)}return o===void 0&&(o=setTimeout(v,t)),a}return _.cancel=x,_.flush=S,_}function qA(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),t&&(r.href=t),i.href=e,i.href}const YA=(()=>{let e=0;const t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function on(e){const t=[];for(let n=0,r=e.length;n<r;n++)t.push(e[n]);return t}function ba(e,t){const n=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return n?parseFloat(n.replace("px","")):0}function XA(e){const t=ba(e,"border-left-width"),n=ba(e,"border-right-width");return e.clientWidth+t+n}function ZA(e){const t=ba(e,"border-top-width"),n=ba(e,"border-bottom-width");return e.clientHeight+t+n}function Qp(e,t={}){const n=t.width||XA(e),r=t.height||ZA(e);return{width:n,height:r}}function KA(){let e,t;try{t=process}catch{}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}const ue=16384;function QA(e){(e.width>ue||e.height>ue)&&(e.width>ue&&e.height>ue?e.width>e.height?(e.height*=ue/e.width,e.width=ue):(e.width*=ue/e.height,e.height=ue):e.width>ue?(e.height*=ue/e.width,e.width=ue):(e.width*=ue/e.height,e.height=ue))}function wa(e){return new Promise((t,n)=>{const r=new Image;r.decode=()=>t(r),r.onload=()=>t(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=e})}async function JA(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function tL(e,t,n){const r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),s=document.createElementNS(r,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${t} ${n}`),s.setAttribute("width","100%"),s.setAttribute("height","100%"),s.setAttribute("x","0"),s.setAttribute("y","0"),s.setAttribute("externalResourcesRequired","true"),i.appendChild(s),s.appendChild(e),JA(i)}const re=(e,t)=>{if(e instanceof t)return!0;const n=Object.getPrototypeOf(e);return n===null?!1:n.constructor.name===t.name||re(n,t)};function eL(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function nL(e){return on(e).map(t=>{const n=e.getPropertyValue(t),r=e.getPropertyPriority(t);return`${t}: ${n}${r?" !important":""};`}).join(" ")}function rL(e,t,n){const r=`.${e}:${t}`,i=n.cssText?eL(n):nL(n);return document.createTextNode(`${r}{${i}}`)}function Jp(e,t,n){const r=window.getComputedStyle(e,n),i=r.getPropertyValue("content");if(i===""||i==="none")return;const s=YA();try{t.className=`${t.className} ${s}`}catch{return}const a=document.createElement("style");a.appendChild(rL(s,n,r)),t.appendChild(a)}function iL(e,t){Jp(e,t,":before"),Jp(e,t,":after")}const tg="application/font-woff",eg="image/jpeg",sL={woff:tg,woff2:tg,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:eg,jpeg:eg,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function aL(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function Ql(e){const t=aL(e).toLowerCase();return sL[t]||""}function oL(e){return e.split(/,/)[1]}function Jl(e){return e.search(/^(data:)/)!==-1}function ng(e,t){return`data:${t};base64,${e}`}async function rg(e,t,n){const r=await fetch(e,t);if(r.status===404)throw new Error(`Resource "${r.url}" not found`);const i=await r.blob();return new Promise((s,a)=>{const o=new FileReader;o.onerror=a,o.onloadend=()=>{try{s(n({res:r,result:o.result}))}catch(l){a(l)}},o.readAsDataURL(i)})}const tc={};function lL(e,t,n){let r=e.replace(/\?.*/,"");return n&&(r=e),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),t?`[${t}]${r}`:r}async function ec(e,t,n){const r=lL(e,t,n.includeQueryParams);if(tc[r]!=null)return tc[r];n.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let i;try{const s=await rg(e,n.fetchRequestInit,({res:a,result:o})=>(t||(t=a.headers.get("Content-Type")||""),oL(o)));i=ng(s,t)}catch(s){i=n.imagePlaceholder||"";let a=`Failed to fetch resource: ${e}`;s&&(a=typeof s=="string"?s:s.message),a&&console.warn(a)}return tc[r]=i,i}async function cL(e){const t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):wa(t)}async function uL(e,t){if(e.currentSrc){const s=document.createElement("canvas"),a=s.getContext("2d");s.width=e.clientWidth,s.height=e.clientHeight,a==null||a.drawImage(e,0,0,s.width,s.height);const o=s.toDataURL();return wa(o)}const n=e.poster,r=Ql(n),i=await ec(n,r,t);return wa(i)}async function hL(e){var t;try{if(!((t=e==null?void 0:e.contentDocument)===null||t===void 0)&&t.body)return await _a(e.contentDocument.body,{},!0)}catch{}return e.cloneNode(!1)}async function dL(e,t){return re(e,HTMLCanvasElement)?cL(e):re(e,HTMLVideoElement)?uL(e,t):re(e,HTMLIFrameElement)?hL(e):e.cloneNode(!1)}const fL=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";async function pL(e,t,n){var r,i;let s=[];return fL(e)&&e.assignedNodes?s=on(e.assignedNodes()):re(e,HTMLIFrameElement)&&!((r=e.contentDocument)===null||r===void 0)&&r.body?s=on(e.contentDocument.body.childNodes):s=on(((i=e.shadowRoot)!==null&&i!==void 0?i:e).childNodes),s.length===0||re(e,HTMLVideoElement)||await s.reduce((a,o)=>a.then(()=>_a(o,n)).then(l=>{l&&t.appendChild(l)}),Promise.resolve()),t}function gL(e,t){const n=t.style;if(!n)return;const r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):on(r).forEach(i=>{let s=r.getPropertyValue(i);i==="font-size"&&s.endsWith("px")&&(s=`${Math.floor(parseFloat(s.substring(0,s.length-2)))-.1}px`),re(e,HTMLIFrameElement)&&i==="display"&&s==="inline"&&(s="block"),i==="d"&&t.getAttribute("d")&&(s=`path(${t.getAttribute("d")})`),n.setProperty(i,s,r.getPropertyPriority(i))})}function mL(e,t){re(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),re(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function vL(e,t){if(re(e,HTMLSelectElement)){const n=t,r=Array.from(n.children).find(i=>e.value===i.getAttribute("value"));r&&r.setAttribute("selected","")}}function yL(e,t){return re(t,Element)&&(gL(e,t),iL(e,t),mL(e,t),vL(e,t)),t}async function xL(e,t){const n=e.querySelectorAll?e.querySelectorAll("use"):[];if(n.length===0)return e;const r={};for(let s=0;s<n.length;s++){const a=n[s].getAttribute("xlink:href");if(a){const o=e.querySelector(a),l=document.querySelector(a);!o&&l&&!r[a]&&(r[a]=await _a(l,t,!0))}}const i=Object.values(r);if(i.length){const s="http://www.w3.org/1999/xhtml",a=document.createElementNS(s,"svg");a.setAttribute("xmlns",s),a.style.position="absolute",a.style.width="0",a.style.height="0",a.style.overflow="hidden",a.style.display="none";const o=document.createElementNS(s,"defs");a.appendChild(o);for(let l=0;l<i.length;l++)o.appendChild(i[l]);e.appendChild(a)}return e}async function _a(e,t,n){return!n&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(r=>dL(r,t)).then(r=>pL(e,r,t)).then(r=>yL(e,r)).then(r=>xL(r,t))}const ig=/url\((['"]?)([^'"]+?)\1\)/g,bL=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,wL=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function _L(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function EL(e){const t=[];return e.replace(ig,(n,r,i)=>(t.push(i),n)),t.filter(n=>!Jl(n))}async function SL(e,t,n,r,i){try{const s=n?qA(t,n):t,a=Ql(t);let o;if(i){const l=await i(s);o=ng(l,a)}else o=await ec(s,a,r);return e.replace(_L(t),`$1${o}$3`)}catch{}return e}function OL(e,{preferredFontFormat:t}){return t?e.replace(wL,n=>{for(;;){const[r,,i]=bL.exec(n)||[];if(!i)return"";if(i===t)return`src: ${r};`}}):e}function sg(e){return e.search(ig)!==-1}async function ag(e,t,n){if(!sg(e))return e;const r=OL(e,n);return EL(r).reduce((i,s)=>i.then(a=>SL(a,s,t,n)),Promise.resolve(r))}async function Ea(e,t,n){var r;const i=(r=t.style)===null||r===void 0?void 0:r.getPropertyValue(e);if(i){const s=await ag(i,null,n);return t.style.setProperty(e,s,t.style.getPropertyPriority(e)),!0}return!1}async function TL(e,t){await Ea("background",e,t)||await Ea("background-image",e,t),await Ea("mask",e,t)||await Ea("mask-image",e,t)}async function ML(e,t){const n=re(e,HTMLImageElement);if(!(n&&!Jl(e.src))&&!(re(e,SVGImageElement)&&!Jl(e.href.baseVal)))return;const r=n?e.src:e.href.baseVal,i=await ec(r,Ql(r),t);await new Promise((s,a)=>{e.onload=s,e.onerror=a;const o=e;o.decode&&(o.decode=s),o.loading==="lazy"&&(o.loading="eager"),n?(e.srcset="",e.src=i):e.href.baseVal=i})}async function CL(e,t){const n=on(e.childNodes).map(r=>og(r,t));await Promise.all(n).then(()=>e)}async function og(e,t){re(e,Element)&&(await TL(e,t),await ML(e,t),await CL(e,t))}function $L(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const r=t.style;return r!=null&&Object.keys(r).forEach(i=>{n[i]=r[i]}),e}const lg={};async function cg(e){let t=lg[e];if(t!=null)return t;const n=await(await fetch(e)).text();return t={url:e,cssText:n},lg[e]=t,t}async function ug(e,t){let n=e.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,i=(n.match(/url\([^)]+\)/g)||[]).map(async s=>{let a=s.replace(r,"$1");return a.startsWith("https://")||(a=new URL(a,e.url).href),rg(a,t.fetchRequestInit,({result:o})=>(n=n.replace(s,`url(${o})`),[s,o]))});return Promise.all(i).then(()=>n)}function hg(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let r=e.replace(n,"");const i=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const l=i.exec(r);if(l===null)break;t.push(l[0])}r=r.replace(i,"");const s=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",o=new RegExp(a,"gi");for(;;){let l=s.exec(r);if(l===null){if(l=o.exec(r),l===null)break;s.lastIndex=o.lastIndex}else o.lastIndex=s.lastIndex;t.push(l[0])}return t}async function AL(e,t){const n=[],r=[];return e.forEach(i=>{if("cssRules"in i)try{on(i.cssRules||[]).forEach((s,a)=>{if(s.type===CSSRule.IMPORT_RULE){let o=a+1;const l=s.href,c=cg(l).then(u=>ug(u,t)).then(u=>hg(u).forEach(d=>{try{i.insertRule(d,d.startsWith("@import")?o+=1:i.cssRules.length)}catch(h){console.error("Error inserting rule from remote css",{rule:d,error:h})}})).catch(u=>{console.error("Error loading remote css",u.toString())});r.push(c)}})}catch(s){const a=e.find(o=>o.href==null)||document.styleSheets[0];i.href!=null&&r.push(cg(i.href).then(o=>ug(o,t)).then(o=>hg(o).forEach(l=>{a.insertRule(l,i.cssRules.length)})).catch(o=>{console.error("Error loading remote stylesheet",o)})),console.error("Error inlining remote css file",s)}}),Promise.all(r).then(()=>(e.forEach(i=>{if("cssRules"in i)try{on(i.cssRules||[]).forEach(s=>{n.push(s)})}catch(s){console.error(`Error while reading CSS rules from ${i.href}`,s)}}),n))}function LL(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>sg(t.style.getPropertyValue("src")))}async function DL(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");const n=on(e.ownerDocument.styleSheets),r=await AL(n,t);return LL(r)}async function kL(e,t){const n=await DL(e,t);return(await Promise.all(n.map(r=>{const i=r.parentStyleSheet?r.parentStyleSheet.href:null;return ag(r.cssText,i,t)}))).join(`
3
+ `)}async function RL(e,t){const n=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await kL(e,t);if(n){const r=document.createElement("style"),i=document.createTextNode(n);r.appendChild(i),e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r)}}async function IL(e,t={}){const{width:n,height:r}=Qp(e,t),i=await _a(e,t,!0);return await RL(i,t),await og(i,t),$L(i,t),await tL(i,n,r)}async function dg(e,t={}){const{width:n,height:r}=Qp(e,t),i=await IL(e,t),s=await wa(i),a=document.createElement("canvas"),o=a.getContext("2d"),l=t.pixelRatio||KA(),c=t.canvasWidth||n,u=t.canvasHeight||r;return a.width=c*l,a.height=u*l,t.skipAutoScale||QA(a),a.style.width=`${c}`,a.style.height=`${u}`,t.backgroundColor&&(o.fillStyle=t.backgroundColor,o.fillRect(0,0,a.width,a.height)),o.drawImage(s,0,0,a.width,a.height),a}async function NL(e,t={}){return(await dg(e,t)).toDataURL()}async function PL(e,t={}){return(await dg(e,t)).toDataURL("image/jpeg",t.quality||1)}class ln{constructor(t,n){this.model=t,this.services=n,this.init()}init(){}update(){}setModel(t){this.model=t}setServices(t){this.services=t}}const UL="DONT_STYLE_ME_css_styles_verifier";class L extends ln{constructor(t,n){super(t,n),this.chartID=""}static getHTMLElementSize(t){return{width:t.clientWidth,height:t.clientHeight}}static getSVGElementSize(t,n={useAttrs:!1,useClientDimensions:!1,useBBox:!1,useBoundingRect:!1}){t.attr||(t=D(t));const r={width:0,height:0},i=h=>{h&&Object.keys(r).forEach(f=>{if(h[f]){const p=h[f],m=parseFloat(p);p&&m>r[f]&&(""+p).indexOf("%")===-1&&(r[f]=m)}})},s={width:t.attr("width"),height:t.attr("height")},a=t.node();let o,l,c,u;try{typeof a.getBBox=="function"&&(o=a.getBBox(),l={width:o.width,height:o.height})}catch(h){console.error(h)}try{typeof(a==null?void 0:a.getBoundingClientRect)=="function"&&(c=a.getBoundingClientRect(),u={width:c.width,height:c.height})}catch(h){console.error(h)}let d;if(a instanceof SVGSVGElement&&(d={width:a.clientWidth,height:a.clientHeight}),n){if(n.useAttrs&&(i(s),r.width>0&&r.height>0))return r;if(n.useClientDimensions&&(i(d),r.width>0&&r.height>0))return d;if(n.useBBox&&(i(l),r.width>0&&r.height>0))return l;if(n.useBoundingRect&&(i(u),r.width>0&&r.height>0))return u}try{const h={width:b(t.node(),"width","baseVal","value"),height:b(t.node(),"height","baseVal","value")};i(h)}catch{i(d),i(l),i(s)}return r}static appendOrSelect(t,n){const r=t.select(`${n}`);if(r.empty()){let i=n.split("#"),s,a;return i.length===2?(s=i[0],i=i[1].split("."),a=i[0]):(i=n.split("."),s=i[0]),t.append(s).attr("id",a).attr("class",i.slice(1).join(" "))}return r}init(){this.styleHolderElement(),this.initializeID(),this.addMainContainer(),this.model.getOptions().resizable&&this.addResizeListener(),this.addHolderListeners(),this.handleFullscreenChange()}getChartID(){return this.chartID}generateElementIDString(t){return`chart-${this.chartID}-${t}`}initializeID(){this.chartID=Math.floor((1+Math.random())*281474976710656).toString(16)}addMainContainer(){const t=this.model.getOptions(),n=b(t,"style","prefix"),r=D(this.getHolder()).append("div").classed(`${ne}--${n}--chart-wrapper`,!0).attr("id",`chart-${this.getChartID()}`).style("height","100%").style("width","100%");r.append("g").attr("class",UL),this.mainContainer=r.node()}update(){this.styleHolderElement()}styleHolderElement(){const t=this.getHolder(),{width:n,height:r,theme:i}=this.model.getOptions();n!==this.width&&(t.style.width=n,this.width=n),r!==this.height&&(t.style.height=r,this.height=r),D(this.getHolder()).classed(`${ne}--chart-holder`,!0).attr("data-carbon-theme",i)}getHolder(){return this.model.get("holder")}exportToJPG(){const t=this,n=this.model.getOptions(),r=this.getHolder(),i=D(r);i.classed("filled",!0),PL(this.getMainContainer(),{quality:1,filter:s=>!(s.classList&&s.classList.contains("cds--cc--toolbar"))}).then(function(s){var a;let o="myChart";const l=b(n,"fileDownload","fileName");typeof l=="function"?o=l("jpg"):typeof l=="string"&&(o=l),(a=t.services.files)==null||a.downloadImage(s,`${o}.jpg`),i.classed("filled",!1)})}exportToPNG(){const t=this,n=this.model.getOptions(),r=this.getHolder(),i=D(r);i.classed("filled",!0),NL(this.getMainContainer(),{quality:1,filter:s=>!(s.classList&&s.classList.contains("cds--cc--toolbar"))}).then(function(s){var a;let o="myChart";const l=b(n,"fileDownload","fileName");typeof l=="function"?o=l("png"):typeof l=="string"&&(o=l),(a=t.services.files)==null||a.downloadImage(s,`${o}.png`),i.classed("filled",!1)}).catch(function(s){console.error("oops, something went wrong!",s)})}toggleFullscreen(){const t=this.getHolder();D(t).classed("fullscreen")&&(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)?document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen():t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()}handleFullscreenChange(){document.addEventListener("fullscreenchange",()=>{const t=D(this.getHolder()),n=t.classed("fullscreen");t.classed("fullscreen",!n)})}setSVGMaxHeight(){if(!this.model.getOptions().height){const{height:t}=L.getSVGElementSize(D(this.mainContainer),{useBBox:!0}),n=D(this.mainContainer).attr("class"),r=D(this.mainContainer).selectAll(`.${n} > svg`);let i=0;r.nodes().forEach(function(s){i+=Number(L.getSVGElementSize(D(s),{useBBox:!0}).height)}),i<=t?D(this.mainContainer).attr("height",i):D(this.mainContainer).attr("height","100%")}}getMainContainer(){return this.mainContainer}addHolderListeners(){const t=this.getHolder();t&&D(t).on("mouseover",()=>{var n;(n=this.services.events)==null||n.dispatchEvent(O.Chart.MOUSEOVER)}).on("mouseout",()=>{var n;(n=this.services.events)==null||n.dispatchEvent(O.Chart.MOUSEOUT)})}addResizeListener(){const t=this.getHolder();if(!t)return;let n=t.clientWidth,r=t.clientHeight;const i=xa(()=>{var s;t&&(Math.abs(n-t.clientWidth)>1||Math.abs(r-t.clientHeight)>1)&&(n=t.clientWidth,r=t.clientHeight,(s=this.services.events)==null||s.dispatchEvent(O.Chart.RESIZE))},12.5);new ResizeObserver(i).observe(t)}}let nc=class vv extends ln{static appendOrUpdateLinearGradient(t){let n=t.svg.select(`defs linearGradient#${t.id}`);n.empty()&&(n=t.svg.append("defs").append("linearGradient").attr("id",t.id).attr("x1",t.x1).attr("x2",t.x2).attr("y1",t.y1).attr("y2",t.y2)),n.selectAll("stop").remove(),n.selectAll("stop").data(t.stops).enter().append("stop").attr("offset",r=>r.offset).style("stop-color",r=>r.color).style("stop-opacity",r=>r.opacity)}static getOffsetRatio(t){return(Math.abs(t[1])*100/Math.abs(t[0]-t[1])).toFixed(2)+"%"}static getStops(t,n){const r=t[0]<0&&t[1]>0;let i=[{offset:"0%",color:n,opacity:"0.6"},{offset:"80%",color:n,opacity:"0"}];return r&&(i=[{offset:"0%",color:n,opacity:"0.6"},{offset:vv.getOffsetRatio(t),color:n,opacity:"0"},{offset:"100%",color:n,opacity:"0.6"}]),i}};function fg(e){const t=BL(pg(e),360);return vn(t,[0,10])||vn(t,[350,0])?{textAnchor:He.START,dominantBaseline:Ge.MIDDLE}:vn(t,[10,80])?{textAnchor:He.START,dominantBaseline:Ge.HANGING}:vn(t,[80,100])?{textAnchor:He.MIDDLE,dominantBaseline:Ge.HANGING}:vn(t,[100,170])?{textAnchor:He.END,dominantBaseline:Ge.HANGING}:vn(t,[170,190])?{textAnchor:He.END,dominantBaseline:Ge.MIDDLE}:vn(t,[190,260])?{textAnchor:He.END,dominantBaseline:Ge.BASELINE}:vn(t,[260,280])?{textAnchor:He.MIDDLE,dominantBaseline:Ge.BASELINE}:{textAnchor:He.START,dominantBaseline:Ge.BASELINE}}function BL(e,t){return(e%t+t)%t}function vn(e,[t,n]){return e>=t&&e<=n}function pg(e){return e*(180/Math.PI)}function At(e,t,n={x:0,y:0}){const r=t*Math.cos(e)+n.x,i=t*Math.sin(e)+n.y;return{x:isNaN(r)?0:r,y:isNaN(i)?0:i}}function VL(e,t){return t*Math.sin(e-Math.PI/2)}function gg(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);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}function HL(e,t){let n;if(t===void 0)for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);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}function rc(e,t){let n=0;if(t===void 0)for(let r of e)(r=+r)&&(n+=r);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}function GL(e){return e.depth}function FL(e,t){return t-1-e.height}function mg(e,t){return e.sourceLinks.length?e.depth:t-1}function Sa(e){return function(){return e}}function vg(e,t){return Oa(e.source,t.source)||e.index-t.index}function yg(e,t){return Oa(e.target,t.target)||e.index-t.index}function Oa(e,t){return e.y0-t.y0}function ic(e){return e.value}function zL(e){return e.index}function jL(e){return e.nodes}function WL(e){return e.links}function xg(e,t){const n=e.get(t);if(!n)throw new Error("missing: "+t);return n}function bg({nodes:e}){for(const t of e){let n=t.y0,r=n;for(const i of t.sourceLinks)i.y0=n+i.width/2,n+=i.width;for(const i of t.targetLinks)i.y1=r+i.width/2,r+=i.width}}function qL(){let e=0,t=0,n=1,r=1,i=24,s=8,a,o=zL,l=mg,c,u,d=jL,h=WL,f=6;function p(){const w={nodes:d.apply(null,arguments),links:h.apply(null,arguments)};return m(w),g(w),v(w),y(w),_(w),bg(w),w}p.update=function(w){return bg(w),w},p.nodeId=function(w){return arguments.length?(o=typeof w=="function"?w:Sa(w),p):o},p.nodeAlign=function(w){return arguments.length?(l=typeof w=="function"?w:Sa(w),p):l},p.nodeSort=function(w){return arguments.length?(c=w,p):c},p.nodeWidth=function(w){return arguments.length?(i=+w,p):i},p.nodePadding=function(w){return arguments.length?(s=a=+w,p):s},p.nodes=function(w){return arguments.length?(d=typeof w=="function"?w:Sa(w),p):d},p.links=function(w){return arguments.length?(h=typeof w=="function"?w:Sa(w),p):h},p.linkSort=function(w){return arguments.length?(u=w,p):u},p.size=function(w){return arguments.length?(e=t=0,n=+w[0],r=+w[1],p):[n-e,r-t]},p.extent=function(w){return arguments.length?(e=+w[0][0],n=+w[1][0],t=+w[0][1],r=+w[1][1],p):[[e,t],[n,r]]},p.iterations=function(w){return arguments.length?(f=+w,p):f};function m({nodes:w,links:N}){for(const[R,U]of w.entries())U.index=R,U.sourceLinks=[],U.targetLinks=[];const P=new Map(w.map((R,U)=>[o(R,U,w),R]));for(const[R,U]of N.entries()){U.index=R;let{source:F,target:j}=U;typeof F!="object"&&(F=U.source=xg(P,F)),typeof j!="object"&&(j=U.target=xg(P,j)),F.sourceLinks.push(U),j.targetLinks.push(U)}if(u!=null)for(const{sourceLinks:R,targetLinks:U}of w)R.sort(u),U.sort(u)}function g({nodes:w}){for(const N of w)N.value=N.fixedValue===void 0?Math.max(rc(N.sourceLinks,ic),rc(N.targetLinks,ic)):N.fixedValue}function v({nodes:w}){const N=w.length;let P=new Set(w),R=new Set,U=0;for(;P.size;){for(const F of P){F.depth=U;for(const{target:j}of F.sourceLinks)R.add(j)}if(++U>N)throw new Error("circular link");P=R,R=new Set}}function y({nodes:w}){const N=w.length;let P=new Set(w),R=new Set,U=0;for(;P.size;){for(const F of P){F.height=U;for(const{source:j}of F.targetLinks)R.add(j)}if(++U>N)throw new Error("circular link");P=R,R=new Set}}function x({nodes:w}){const N=gg(w,U=>U.depth)+1,P=(n-e-i)/(N-1),R=new Array(N);for(const U of w){const F=Math.max(0,Math.min(N-1,Math.floor(l.call(null,U,N))));U.layer=F,U.x0=e+F*P,U.x1=U.x0+i,R[F]?R[F].push(U):R[F]=[U]}if(c)for(const U of R)U.sort(c);return R}function S(w){const N=HL(w,P=>(r-t-(P.length-1)*a)/rc(P,ic));for(const P of w){let R=t;for(const U of P){U.y0=R,U.y1=R+U.value*N,R=U.y1+a;for(const F of U.sourceLinks)F.width=F.value*N}R=(r-R+a)/(P.length+1);for(let U=0;U<P.length;++U){const F=P[U];F.y0+=R*(U+1),F.y1+=R*(U+1)}B(P)}}function _(w){const N=x(w);a=Math.min(s,(r-t)/(gg(N,P=>P.length)-1)),S(N);for(let P=0;P<f;++P){const R=Math.pow(.99,P),U=Math.max(1-R,(P+1)/f);T(N,R,U),E(N,R,U)}}function E(w,N,P){for(let R=1,U=w.length;R<U;++R){const F=w[R];for(const j of F){let K=0,ut=0;for(const{source:Y,value:ct}of j.targetLinks){let et=ct*(j.layer-Y.layer);K+=M(Y,j)*et,ut+=et}if(!(ut>0))continue;let G=(K/ut-j.y0)*N;j.y0+=G,j.y1+=G,C(j)}c===void 0&&F.sort(Oa),k(F,P)}}function T(w,N,P){for(let R=w.length,U=R-2;U>=0;--U){const F=w[U];for(const j of F){let K=0,ut=0;for(const{target:Y,value:ct}of j.sourceLinks){let et=ct*(Y.layer-j.layer);K+=$(j,Y)*et,ut+=et}if(!(ut>0))continue;let G=(K/ut-j.y0)*N;j.y0+=G,j.y1+=G,C(j)}c===void 0&&F.sort(Oa),k(F,P)}}function k(w,N){const P=w.length>>1,R=w[P];A(w,R.y0-a,P-1,N),I(w,R.y1+a,P+1,N),A(w,r,w.length-1,N),I(w,t,0,N)}function I(w,N,P,R){for(;P<w.length;++P){const U=w[P],F=(N-U.y0)*R;F>1e-6&&(U.y0+=F,U.y1+=F),N=U.y1+a}}function A(w,N,P,R){for(;P>=0;--P){const U=w[P],F=(U.y1-N)*R;F>1e-6&&(U.y0-=F,U.y1-=F),N=U.y0-a}}function C({sourceLinks:w,targetLinks:N}){if(u===void 0){for(const{source:{sourceLinks:P}}of N)P.sort(yg);for(const{target:{targetLinks:P}}of w)P.sort(vg)}}function B(w){if(u===void 0)for(const{sourceLinks:N,targetLinks:P}of w)N.sort(yg),P.sort(vg)}function M(w,N){let P=w.y0-(w.sourceLinks.length-1)*a/2;for(const{target:R,width:U}of w.sourceLinks){if(R===N)break;P+=U+a}for(const{source:R,width:U}of N.targetLinks){if(R===w)break;P-=U}return P}function $(w,N){let P=N.y0-(N.targetLinks.length-1)*a/2;for(const{source:R,width:U}of N.targetLinks){if(R===w)break;P+=U+a}for(const{target:R,width:U}of w.sourceLinks){if(R===N)break;P-=U}return P}return p}var sc=Math.PI,ac=2*sc,Wn=1e-6,YL=ac-Wn;function oc(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function wg(){return new oc}oc.prototype=wg.prototype={constructor:oc,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,s){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+s)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var s=this._x1,a=this._y1,o=n-e,l=r-t,c=s-e,u=a-t,d=c*c+u*u;if(i<0)throw new Error("negative radius: "+i);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(d>Wn)if(!(Math.abs(u*o-l*c)>Wn)||!i)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var h=n-s,f=r-a,p=o*o+l*l,m=h*h+f*f,g=Math.sqrt(p),v=Math.sqrt(d),y=i*Math.tan((sc-Math.acos((p+d-m)/(2*g*v)))/2),x=y/v,S=y/g;Math.abs(x-1)>Wn&&(this._+="L"+(e+x*c)+","+(t+x*u)),this._+="A"+i+","+i+",0,0,"+ +(u*h>c*f)+","+(this._x1=e+S*o)+","+(this._y1=t+S*l)}},arc:function(e,t,n,r,i,s){e=+e,t=+t,n=+n,s=!!s;var a=n*Math.cos(r),o=n*Math.sin(r),l=e+a,c=t+o,u=1^s,d=s?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+l+","+c:(Math.abs(this._x1-l)>Wn||Math.abs(this._y1-c)>Wn)&&(this._+="L"+l+","+c),n&&(d<0&&(d=d%ac+ac),d>YL?this._+="A"+n+","+n+",0,1,"+u+","+(e-a)+","+(t-o)+"A"+n+","+n+",0,1,"+u+","+(this._x1=l)+","+(this._y1=c):d>Wn&&(this._+="A"+n+","+n+",0,"+ +(d>=sc)+","+u+","+(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._}};function _g(e){return function(){return e}}function XL(e){return e[0]}function ZL(e){return e[1]}var KL=Array.prototype.slice;function QL(e){return e.source}function JL(e){return e.target}function tD(e){var t=QL,n=JL,r=XL,i=ZL,s=null;function a(){var o,l=KL.call(arguments),c=t.apply(this,l),u=n.apply(this,l);if(s||(s=o=wg()),e(s,+r.apply(this,(l[0]=c,l)),+i.apply(this,l),+r.apply(this,(l[0]=u,l)),+i.apply(this,l)),o)return s=null,o+""||null}return a.source=function(o){return arguments.length?(t=o,a):t},a.target=function(o){return arguments.length?(n=o,a):n},a.x=function(o){return arguments.length?(r=typeof o=="function"?o:_g(+o),a):r},a.y=function(o){return arguments.length?(i=typeof o=="function"?o:_g(+o),a):i},a.context=function(o){return arguments.length?(s=o??null,a):s},a}function eD(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function nD(){return tD(eD)}function rD(e){return[e.source.x1,e.y0]}function iD(e){return[e.target.x0,e.y1]}function sD(){return nD().source(rD).target(iD)}function aD(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function oD(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var lD={value:function(){}};function Eg(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+"")||r in n||/[\s.]/.test(r))throw new Error("illegal type: "+r);n[r]=[]}return new Ta(n)}function Ta(e){this._=e}function cD(e,t){return e.trim().split(/^|\s+/).map(function(n){var r="",i=n.indexOf(".");if(i>=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}Ta.prototype=Eg.prototype={constructor:Ta,on:function(e,t){var n=this._,r=cD(e+"",n),i,s=-1,a=r.length;if(arguments.length<2){for(;++s<a;)if((i=(e=r[s]).type)&&(i=uD(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++s<a;)if(i=(e=r[s]).type)n[i]=Sg(n[i],e.name,t);else if(t==null)for(i in n)n[i]=Sg(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 Ta(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,s;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(s=this._[e],r=0,i=s.length;r<i;++r)s[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,s=r.length;i<s;++i)r[i].value.apply(t,n)}};function uD(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function Sg(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=lD,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}const hD=oD(Object.freeze(Object.defineProperty({__proto__:null,dispatch:Eg},Symbol.toStringTag,{value:"Module"}))).dispatch,lc=Math.PI/180,dD={archimedean:Tg,rectangular:ED},Ri=64,Ma=2048;var fD=function(){var e=[256,256],t=pD,n=gD,r=mD,i=Og,s=Og,a=vD,o=yD,l=Tg,c=[],u=1/0,d=hD("word","end"),h=null,f=Math.random,p={},m=OD;p.canvas=function(y){return arguments.length?(m=yn(y),p):m},p.start=function(){var y=g(m()),x=SD((e[0]>>5)*e[1]),S=null,_=c.length,E=-1,T=[],k=c.map(function(A,C){return A.text=t.call(this,A,C),A.font=n.call(this,A,C),A.style=i.call(this,A,C),A.weight=s.call(this,A,C),A.rotate=a.call(this,A,C),A.size=~~r.call(this,A,C),A.padding=o.call(this,A,C),A}).sort(function(A,C){return C.size-A.size});return h&&clearInterval(h),h=setInterval(I,0),I(),p;function I(){for(var A=Date.now();Date.now()-A<u&&++E<_&&h;){var C=k[E];C.x=e[0]*(f()+.5)>>1,C.y=e[1]*(f()+.5)>>1,xD(y,C,k,E),C.hasText&&v(x,C,S)&&(T.push(C),d.call("word",p,C),S?wD(S,C):S=[{x:C.x+C.x0,y:C.y+C.y0},{x:C.x+C.x1,y:C.y+C.y1}],C.x-=e[0]>>1,C.y-=e[1]>>1)}E>=_&&(p.stop(),d.call("end",p,T,S))}},p.stop=function(){h&&(clearInterval(h),h=null);for(const y of c)delete y.sprite;return p};function g(y){const x=y.getContext("2d",{willReadFrequently:!0});y.width=y.height=1;const S=Math.sqrt(x.getImageData(0,0,1,1).data.length>>2);return y.width=(Ri<<5)/S,y.height=Ma/S,x.fillStyle=x.strokeStyle="red",{context:x,ratio:S}}function v(y,x,S){e[0],e[1];for(var _=x.x,E=x.y,T=Math.sqrt(e[0]*e[0]+e[1]*e[1]),k=l(e),I=f()<.5?1:-1,A=-I,C,B,M;(C=k(A+=I))&&(B=~~C[0],M=~~C[1],!(Math.min(Math.abs(B),Math.abs(M))>=T));)if(x.x=_+B,x.y=E+M,!(x.x+x.x0<0||x.y+x.y0<0||x.x+x.x1>e[0]||x.y+x.y1>e[1])&&(!S||_D(x,S))&&!bD(x,y,e[0])){for(var $=x.sprite,w=x.width>>5,N=e[0]>>5,P=x.x-(w<<4),R=P&127,U=32-R,F=x.y1-x.y0,j=(x.y+x.y0)*N+(P>>5),K,ut=0;ut<F;ut++){K=0;for(var G=0;G<=w;G++)y[j+G]|=K<<U|(G<w?(K=$[ut*w+G])>>>R:0);j+=N}return!0}return!1}return p.timeInterval=function(y){return arguments.length?(u=y??1/0,p):u},p.words=function(y){return arguments.length?(c=y,p):c},p.size=function(y){return arguments.length?(e=[+y[0],+y[1]],p):e},p.font=function(y){return arguments.length?(n=yn(y),p):n},p.fontStyle=function(y){return arguments.length?(i=yn(y),p):i},p.fontWeight=function(y){return arguments.length?(s=yn(y),p):s},p.rotate=function(y){return arguments.length?(a=yn(y),p):a},p.text=function(y){return arguments.length?(t=yn(y),p):t},p.spiral=function(y){return arguments.length?(l=dD[y]||y,p):l},p.fontSize=function(y){return arguments.length?(r=yn(y),p):r},p.padding=function(y){return arguments.length?(o=yn(y),p):o},p.random=function(y){return arguments.length?(f=y,p):f},p.on=function(){var y=d.on.apply(d,arguments);return y===d?p:y},p};function pD(e){return e.text}function gD(){return"serif"}function Og(){return"normal"}function mD(e){return Math.sqrt(e.value)}function vD(){return(~~(random()*6)-3)*30}function yD(){return 1}function xD(e,t,n,r){if(!t.sprite){var i=e.context,s=e.ratio;i.clearRect(0,0,(Ri<<5)/s,Ma/s);var a=0,o=0,l=0,c=n.length;for(--r;++r<c;){t=n[r],i.save(),i.font=t.style+" "+t.weight+" "+~~((t.size+1)/s)+"px "+t.font;const C=i.measureText(t.text),B=-Math.floor(C.width/2);let M=(C.width+1)*s,$=t.size<<1;if(t.rotate){var u=Math.sin(t.rotate*lc),d=Math.cos(t.rotate*lc),h=M*d,f=M*u,p=$*d,m=$*u;M=Math.max(Math.abs(h+m),Math.abs(h-m))+31>>5<<5,$=~~Math.max(Math.abs(f+p),Math.abs(f-p))}else M=M+31>>5<<5;if($>l&&(l=$),a+M>=Ri<<5&&(a=0,o+=l,l=0),o+$>=Ma)break;i.translate((a+(M>>1))/s,(o+($>>1))/s),t.rotate&&i.rotate(t.rotate*lc),i.fillText(t.text,B,0),t.padding&&(i.lineWidth=2*t.padding,i.strokeText(t.text,B,0)),i.restore(),t.width=M,t.height=$,t.xoff=a,t.yoff=o,t.x1=M>>1,t.y1=$>>1,t.x0=-t.x1,t.y0=-t.y1,t.hasText=!0,a+=M}for(var g=i.getImageData(0,0,(Ri<<5)/s,Ma/s).data,v=[];--r>=0;)if(t=n[r],!!t.hasText){for(var y=t.width,x=y>>5,S=t.y1-t.y0,_=0;_<S*x;_++)v[_]=0;if(a=t.xoff,a==null)return;o=t.yoff;for(var E=0,T=-1,k=0;k<S;k++){for(var _=0;_<y;_++){var I=x*k+(_>>5),A=g[(o+k)*(Ri<<5)+(a+_)<<2]?1<<31-_%32:0;v[I]|=A,E|=A}E?T=k:(t.y0++,S--,k--,o++)}t.y1=t.y0+T,t.sprite=v.slice(0,(t.y1-t.y0)*x)}}}function bD(e,t,n){n>>=5;for(var r=e.sprite,i=e.width>>5,s=e.x-(i<<4),a=s&127,o=32-a,l=e.y1-e.y0,c=(e.y+e.y0)*n+(s>>5),u,d=0;d<l;d++){u=0;for(var h=0;h<=i;h++)if((u<<o|(h<i?(u=r[d*i+h])>>>a:0))&t[c+h])return!0;c+=n}return!1}function wD(e,t){var n=e[0],r=e[1];t.x+t.x0<n.x&&(n.x=t.x+t.x0),t.y+t.y0<n.y&&(n.y=t.y+t.y0),t.x+t.x1>r.x&&(r.x=t.x+t.x1),t.y+t.y1>r.y&&(r.y=t.y+t.y1)}function _D(e,t){return e.x+e.x1>t[0].x&&e.x+e.x0<t[1].x&&e.y+e.y1>t[0].y&&e.y+e.y0<t[1].y}function Tg(e){var t=e[0]/e[1];return function(n){return[t*(n*=.1)*Math.cos(n),n*Math.sin(n)]}}function ED(e){var t=4,n=t*e[0]/e[1],r=0,i=0;return function(s){var a=s<0?-1:1;switch(Math.sqrt(1+4*a*s)-a&3){case 0:r+=n;break;case 1:i+=t;break;case 2:r-=n;break;default:i-=t;break}return[r,i]}}function SD(e){for(var t=[],n=-1;++n<e;)t[n]=0;return t}function OD(){return document.createElement("canvas")}function yn(e){return typeof e=="function"?e:function(){return e}}const TD=aD(fD);function MD(e,t,n,r){var i=-1,s=e==null?0:e.length;for(r&&s&&(n=e[++i]);++i<s;)n=t(n,e[i],i,e);return n}function CD(e){return function(t){return e==null?void 0:e[t]}}var $D={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},AD=CD($D);const LD=AD;var DD=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,kD="\\u0300-\\u036f",RD="\\ufe20-\\ufe2f",ID="\\u20d0-\\u20ff",ND=kD+RD+ID,PD="["+ND+"]",UD=RegExp(PD,"g");function BD(e){return e=Ti(e),e&&e.replace(DD,LD).replace(UD,"")}var VD=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function HD(e){return e.match(VD)||[]}var GD=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function FD(e){return GD.test(e)}var Mg="\\ud800-\\udfff",zD="\\u0300-\\u036f",jD="\\ufe20-\\ufe2f",WD="\\u20d0-\\u20ff",qD=zD+jD+WD,Cg="\\u2700-\\u27bf",$g="a-z\\xdf-\\xf6\\xf8-\\xff",YD="\\xac\\xb1\\xd7\\xf7",XD="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ZD="\\u2000-\\u206f",KD=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ag="A-Z\\xc0-\\xd6\\xd8-\\xde",QD="\\ufe0e\\ufe0f",Lg=YD+XD+ZD+KD,Dg="['’]",kg="["+Lg+"]",JD="["+qD+"]",Rg="\\d+",tk="["+Cg+"]",Ig="["+$g+"]",Ng="[^"+Mg+Lg+Rg+Cg+$g+Ag+"]",ek="\\ud83c[\\udffb-\\udfff]",nk="(?:"+JD+"|"+ek+")",rk="[^"+Mg+"]",Pg="(?:\\ud83c[\\udde6-\\uddff]){2}",Ug="[\\ud800-\\udbff][\\udc00-\\udfff]",Or="["+Ag+"]",ik="\\u200d",Bg="(?:"+Ig+"|"+Ng+")",sk="(?:"+Or+"|"+Ng+")",Vg="(?:"+Dg+"(?:d|ll|m|re|s|t|ve))?",Hg="(?:"+Dg+"(?:D|LL|M|RE|S|T|VE))?",Gg=nk+"?",Fg="["+QD+"]?",ak="(?:"+ik+"(?:"+[rk,Pg,Ug].join("|")+")"+Fg+Gg+")*",ok="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",lk="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ck=Fg+Gg+ak,uk="(?:"+[tk,Pg,Ug].join("|")+")"+ck,hk=RegExp([Or+"?"+Ig+"+"+Vg+"(?="+[kg,Or,"$"].join("|")+")",sk+"+"+Hg+"(?="+[kg,Or+Bg,"$"].join("|")+")",Or+"?"+Bg+"+"+Vg,Or+"+"+Hg,lk,ok,Rg,uk].join("|"),"g");function dk(e){return e.match(hk)||[]}function fk(e,t,n){return e=Ti(e),t=n?void 0:t,t===void 0?FD(e)?dk(e):HD(e):e.match(t)||[]}var pk="['’]",gk=RegExp(pk,"g");function zg(e){return function(t){return MD(fk(BD(t).replace(gk,"")),e,"")}}function mk(e,t,n){return e===e&&(n!==void 0&&(e=e<=n?e:n),t!==void 0&&(e=e>=t?e:t)),e}function jg(e,t,n){return n===void 0&&(n=t,t=void 0),n!==void 0&&(n=ki(n),n=n===n?n:0),t!==void 0&&(t=ki(t),t=t===t?t:0),mk(ki(e),t,n)}function vk(e,t){var n=-1,r=Vn(e)?Array(e.length):[];return Zl(e,function(i,s,a){r[++n]=t(i,s,a)}),r}function yk(e,t){var n=Ht(e)?Mf:vk;return n(e,ga(t))}var xk=1/0;function bk(e,t){return ua(yk(e,t),xk)}function Wg(e,t){return pa(e,t)}var wk=zg(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()});const Tr=wk;function _k(e,t){var n;return Zl(e,function(r,i,s){return n=t(r,i,s),!n}),!!n}function Ek(e,t,n){var r=Ht(e)?wp:_k;return n&&Pf(e,t,n)&&(t=void 0),r(e,ga(t))}class lt{constructor(t,n,r){if(this.type="",this.renderType=q.HTML,this.id="",this.parent=void 0,this.configs={},this.model=t,this.services=n,r&&(this.configs=r,this.configs.id)){const i=b(this.model.getOptions(),"style","prefix");this.id=`${i}--${this.configs.id}`}this.parent||this.setParent(D(this.services.domUtils.getMainContainer()))}init(){}render(t=!0){console.error("Error: Component did not provide the required render function.")}destroy(){}setModel(t){this.model=t}setServices(t){this.services=t}setParent(t){var n;const r=this.parent;if(this.parent=t,!(r&&r.node()===t.node())&&this.type){const i=b(this.model.getOptions(),"style","prefix");(n=this.parent)==null||n.classed(`${ne}--${i}--${this.type}`,!0),r&&r.classed(`${ne}--${i}--${this.type}`,!1)}}getParent(){return this.parent}getComponentContainer(t={withinChartClip:!1}){if(this.type){const n=b(this.model.getOptions(),"style","prefix"),r=this.id?`#${this.id}`:"",i=L.appendOrSelect(this.parent,`${this.renderType===q.SVG?"svg":"div"}${r}.${ne}--${n}--${this.type}`);if(t.withinChartClip){const s=this.model.get("chartClipId");if(s){const a=D(`#${s}`).select("rect");a.size()!==0&&parseFloat(a.attr("height"))>0&&i.attr("clip-path",`url(#${s})`)}}return i.attr("width","100%").attr("height","100%")}return this.parent}getOptions(){return this.configs.options?Z({},this.model.getOptions(),this.configs.options):this.model.getOptions()}}const qg=class yv extends lt{constructor(){super(...arguments),this.type="toolbar",this.renderType=q.HTML}init(){const t=()=>this.updateOverflowMenu(!1);this.services.events.addEventListener(O.Toolbar.SHOW_OVERFLOW_MENU,()=>{this.renderOverflowMenu(),document.body.addEventListener("click",t)}),this.services.events.addEventListener(O.Toolbar.HIDE_OVERFLOW_MENU,()=>{document.body.removeEventListener("click",t)})}render(t=!0){const n=this.getComponentContainer().attr("role","toolbar").attr("aria-label",`chart-${this.services.domUtils.getChartID()} toolbar`);if(b(this.getOptions(),"data","loading"))n.html(""),this.overflowMenu=null;else{this.overflowMenu||(this.overflowMenu=n.append("div").attr("class","cds--overflow-menu-options cds--overflow-menu--flip cds--overflow-menu-options cds--overflow-menu--flip").attr("tabindex",-1).html("<ul role='menu'></ul>"));const{buttonList:r,overflowMenuItemList:i}=this.getControlConfigs();i&&r.push(this.getOverflowButtonConfig());const s=n.selectAll("div.toolbar-control").data(r,l=>l.id);s.exit().remove();const a=s.enter().append("div").attr("class","toolbar-control cds--overflow-menu cds--overflow-menu").attr("role","button"),o=this;a.merge(s).classed("disabled",l=>l.shouldBeDisabled()).attr("aria-disabled",l=>l.shouldBeDisabled()).attr("aria-label",l=>l.title).html(l=>`
4
4
  <button
5
5
  class="cds--overflow-menu__trigger cds--overflow-menu__trigger"
6
6
  aria-haspopup="true" aria-expanded="false" id="${this.services.domUtils.generateElementIDString(`control-${l.id}`)}" aria-label="${l.title}">