fluency-v8-components 1.6.6 → 1.6.7

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.
@@ -87,7 +87,7 @@ var cF;function ft(){return cF.apply(null,arguments)}function Nge(e){cF=e}functi
87
87
  [`+a+"] ";for(o in arguments[0])or(arguments[0],o)&&(i+=o+": "+arguments[0][o]+", ");i=i.slice(0,-2)}else i=arguments[a];r.push(i)}fF(e+`
88
88
  Arguments: `+Array.prototype.slice.call(r).join("")+`
89
89
  `+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var hF={};function pF(e,t){ft.deprecationHandler!=null&&ft.deprecationHandler(e,t),hF[e]||(fF(t),hF[e]=!0)}ft.suppressDeprecationWarnings=!1,ft.deprecationHandler=null;function uu(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function Oge(e){var t,n;for(n in e)or(e,n)&&(t=e[n],uu(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Z5(e,t){var n=yA({},e),r;for(r in t)or(t,r)&&(Gd(e[r])&&Gd(t[r])?(n[r]={},yA(n[r],e[r]),yA(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)or(e,r)&&!or(t,r)&&Gd(e[r])&&(n[r]=yA({},n[r]));return n}function $5(e){e!=null&&this.set(e)}var eB;Object.keys?eB=Object.keys:eB=function(e){var t,n=[];for(t in e)or(e,t)&&n.push(t);return n};var Dge={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Ige(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return uu(r)?r.call(t,n):r}function cu(e,t,n){var r=""+Math.abs(e),i=t-r.length,a=e>=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var tB=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,E1=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,nB={},Sh={};function rn(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(Sh[e]=i),t&&(Sh[t[0]]=function(){return cu(i.apply(this,arguments),t[1],t[2])}),n&&(Sh[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Uge(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Pge(e){var t=e.match(tB),n,r;for(n=0,r=t.length;n<r;n++)Sh[t[n]]?t[n]=Sh[t[n]]:t[n]=Uge(t[n]);return function(i){var a="",o;for(o=0;o<r;o++)a+=uu(t[o])?t[o].call(i,e):t[o];return a}}function L1(e,t){return e.isValid()?(t=mF(t,e.localeData()),nB[t]=nB[t]||Pge(t),nB[t](e)):e.localeData().invalidDate()}function mF(e,t){var n=5;function r(i){return t.longDateFormat(i)||i}for(E1.lastIndex=0;n>=0&&E1.test(e);)e=e.replace(E1,r),E1.lastIndex=0,n-=1;return e}var Hge={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Yge(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(tB).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Rge="Invalid date";function Qge(){return this._invalidDate}var jge="%d",Vge=/\d{1,2}/;function zge(e){return this._ordinal.replace("%d",e)}var qge={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Kge(e,t,n,r){var i=this._relativeTime[n];return uu(i)?i(e,t,n,r):i.replace(/%d/i,e)}function Gge(e,t){var n=this._relativeTime[e>0?"future":"past"];return uu(n)?n(t):n.replace(/%s/i,t)}var gF={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Cs(e){return typeof e=="string"?gF[e]||gF[e.toLowerCase()]:void 0}function rB(e){var t={},n,r;for(r in e)or(e,r)&&(n=Cs(r),n&&(t[n]=e[r]));return t}var Wge={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function Xge(e){var t=[],n;for(n in e)or(e,n)&&t.push({unit:n,priority:Wge[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var vF=/\d/,Wo=/\d\d/,yF=/\d{3}/,iB=/\d{4}/,T1=/[+-]?\d{6}/,jr=/\d\d?/,_F=/\d\d\d\d?/,bF=/\d\d\d\d\d\d?/,N1=/\d{1,3}/,aB=/\d{1,4}/,F1=/[+-]?\d{1,6}/,kh=/\d+/,O1=/[+-]?\d+/,Jge=/Z|[+-]\d\d:?\d\d/gi,D1=/Z|[+-]\d\d(?::?\d\d)?/gi,Zge=/[+-]?\d+(\.\d{1,3})?/,Gm=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,Mh=/^[1-9]\d?/,oB=/^([1-9]\d|\d)/,I1;I1={};function Rt(e,t,n){I1[e]=uu(t)?t:function(r,i){return r&&n?n:t}}function $ge(e,t){return or(I1,e)?I1[e](t._strict,t._locale):new RegExp(e0e(e))}function e0e(e){return rc(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,a){return n||r||i||a}))}function rc(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Ss(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function qn(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Ss(t)),n}var sB={};function kr(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),nc(t)&&(r=function(a,o){o[t]=qn(a)}),i=e.length,n=0;n<i;n++)sB[e[n]]=r}function Wm(e,t){kr(e,function(n,r,i,a){i._w=i._w||{},t(n,i._w,i,a)})}function t0e(e,t,n){t!=null&&or(sB,e)&&sB[e](t,n._a,n,e)}function U1(e){return e%4===0&&e%100!==0||e%400===0}var Pa=0,ic=1,Au=2,Ki=3,ll=4,ac=5,Wd=6,n0e=7,r0e=8;rn("Y",0,0,function(){var e=this.year();return e<=9999?cu(e,4):"+"+e}),rn(0,["YY",2],0,function(){return this.year()%100}),rn(0,["YYYY",4],0,"year"),rn(0,["YYYYY",5],0,"year"),rn(0,["YYYYYY",6,!0],0,"year"),Rt("Y",O1),Rt("YY",jr,Wo),Rt("YYYY",aB,iB),Rt("YYYYY",F1,T1),Rt("YYYYYY",F1,T1),kr(["YYYYY","YYYYYY"],Pa),kr("YYYY",function(e,t){t[Pa]=e.length===2?ft.parseTwoDigitYear(e):qn(e)}),kr("YY",function(e,t){t[Pa]=ft.parseTwoDigitYear(e)}),kr("Y",function(e,t){t[Pa]=parseInt(e,10)});function Xm(e){return U1(e)?366:365}ft.parseTwoDigitYear=function(e){return qn(e)+(qn(e)>68?1900:2e3)};var wF=Eh("FullYear",!0);function i0e(){return U1(this.year())}function Eh(e,t){return function(n){return n!=null?(BF(this,e,n),ft.updateOffset(this,t),this):Jm(this,e)}}function Jm(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function BF(e,t,n){var r,i,a,o,s;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,o=e.month(),s=e.date(),s=s===29&&o===1&&!U1(a)?28:s,i?r.setUTCFullYear(a,o,s):r.setFullYear(a,o,s)}}function a0e(e){return e=Cs(e),uu(this[e])?this[e]():this}function o0e(e,t){if(typeof e=="object"){e=rB(e);var n=Xge(e),r,i=n.length;for(r=0;r<i;r++)this[n[r].unit](e[n[r].unit])}else if(e=Cs(e),uu(this[e]))return this[e](t);return this}function s0e(e,t){return(e%t+t)%t}var wi;Array.prototype.indexOf?wi=Array.prototype.indexOf:wi=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function lB(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=s0e(t,12);return e+=(t-n)/12,n===1?U1(e)?29:28:31-n%7%2}rn("M",["MM",2],"Mo",function(){return this.month()+1}),rn("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),rn("MMMM",0,0,function(e){return this.localeData().months(this,e)}),Rt("M",jr,Mh),Rt("MM",jr,Wo),Rt("MMM",function(e,t){return t.monthsShortRegex(e)}),Rt("MMMM",function(e,t){return t.monthsRegex(e)}),kr(["M","MM"],function(e,t){t[ic]=qn(e)-1}),kr(["MMM","MMMM"],function(e,t,n,r){var i=n._locale.monthsParse(e,r,n._strict);i!=null?t[ic]=i:Fn(n).invalidMonth=e});var l0e="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),xF="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),CF=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,u0e=Gm,c0e=Gm;function A0e(e,t){return e?ol(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||CF).test(t)?"format":"standalone"][e.month()]:ol(this._months)?this._months:this._months.standalone}function d0e(e,t){return e?ol(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[CF.test(t)?"format":"standalone"][e.month()]:ol(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function f0e(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)a=lu([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(a,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(a,"").toLocaleLowerCase();return n?t==="MMM"?(i=wi.call(this._shortMonthsParse,o),i!==-1?i:null):(i=wi.call(this._longMonthsParse,o),i!==-1?i:null):t==="MMM"?(i=wi.call(this._shortMonthsParse,o),i!==-1?i:(i=wi.call(this._longMonthsParse,o),i!==-1?i:null)):(i=wi.call(this._longMonthsParse,o),i!==-1?i:(i=wi.call(this._shortMonthsParse,o),i!==-1?i:null))}function h0e(e,t,n){var r,i,a;if(this._monthsParseExact)return f0e.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(i=lu([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(a="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[r]=new RegExp(a.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function SF(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=qn(t);else if(t=e.localeData().monthsParse(t),!nc(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,lB(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function kF(e){return e!=null?(SF(this,e),ft.updateOffset(this,!0),this):Jm(this,"Month")}function p0e(){return lB(this.year(),this.month())}function m0e(e){return this._monthsParseExact?(or(this,"_monthsRegex")||MF.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(or(this,"_monthsShortRegex")||(this._monthsShortRegex=u0e),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function g0e(e){return this._monthsParseExact?(or(this,"_monthsRegex")||MF.call(this),e?this._monthsStrictRegex:this._monthsRegex):(or(this,"_monthsRegex")||(this._monthsRegex=c0e),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function MF(){function e(u,c){return c.length-u.length}var t=[],n=[],r=[],i,a,o,s;for(i=0;i<12;i++)a=lu([2e3,i]),o=rc(this.monthsShort(a,"")),s=rc(this.months(a,"")),t.push(o),n.push(s),r.push(s),r.push(o);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function v0e(e,t,n,r,i,a,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,n,r,i,a,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,n,r,i,a,o),s}function Zm(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function P1(e,t,n){var r=7+t-n,i=(7+Zm(e,0,r).getUTCDay()-t)%7;return-i+r-1}function EF(e,t,n,r,i){var a=(7+n-r)%7,o=P1(e,r,i),s=1+7*(t-1)+a+o,u,c;return s<=0?(u=e-1,c=Xm(u)+s):s>Xm(e)?(u=e+1,c=s-Xm(e)):(u=e,c=s),{year:u,dayOfYear:c}}function $m(e,t,n){var r=P1(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,a,o;return i<1?(o=e.year()-1,a=i+oc(o,t,n)):i>oc(e.year(),t,n)?(a=i-oc(e.year(),t,n),o=e.year()+1):(o=e.year(),a=i),{week:a,year:o}}function oc(e,t,n){var r=P1(e,t,n),i=P1(e+1,t,n);return(Xm(e)-r+i)/7}rn("w",["ww",2],"wo","week"),rn("W",["WW",2],"Wo","isoWeek"),Rt("w",jr,Mh),Rt("ww",jr,Wo),Rt("W",jr,Mh),Rt("WW",jr,Wo),Wm(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=qn(e)});function y0e(e){return $m(e,this._week.dow,this._week.doy).week}var _0e={dow:0,doy:6};function b0e(){return this._week.dow}function w0e(){return this._week.doy}function B0e(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function x0e(e){var t=$m(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}rn("d",0,"do","day"),rn("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),rn("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),rn("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),rn("e",0,0,"weekday"),rn("E",0,0,"isoWeekday"),Rt("d",jr),Rt("e",jr),Rt("E",jr),Rt("dd",function(e,t){return t.weekdaysMinRegex(e)}),Rt("ddd",function(e,t){return t.weekdaysShortRegex(e)}),Rt("dddd",function(e,t){return t.weekdaysRegex(e)}),Wm(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:Fn(n).invalidWeekday=e}),Wm(["d","e","E"],function(e,t,n,r){t[r]=qn(e)});function C0e(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function S0e(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function uB(e,t){return e.slice(t,7).concat(e.slice(0,t))}var k0e="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),LF="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),M0e="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),E0e=Gm,L0e=Gm,T0e=Gm;function N0e(e,t){var n=ol(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?uB(n,this._week.dow):e?n[e.day()]:n}function F0e(e){return e===!0?uB(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function O0e(e){return e===!0?uB(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function D0e(e,t,n){var r,i,a,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=lu([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?t==="dddd"?(i=wi.call(this._weekdaysParse,o),i!==-1?i:null):t==="ddd"?(i=wi.call(this._shortWeekdaysParse,o),i!==-1?i:null):(i=wi.call(this._minWeekdaysParse,o),i!==-1?i:null):t==="dddd"?(i=wi.call(this._weekdaysParse,o),i!==-1||(i=wi.call(this._shortWeekdaysParse,o),i!==-1)?i:(i=wi.call(this._minWeekdaysParse,o),i!==-1?i:null)):t==="ddd"?(i=wi.call(this._shortWeekdaysParse,o),i!==-1||(i=wi.call(this._weekdaysParse,o),i!==-1)?i:(i=wi.call(this._minWeekdaysParse,o),i!==-1?i:null)):(i=wi.call(this._minWeekdaysParse,o),i!==-1||(i=wi.call(this._weekdaysParse,o),i!==-1)?i:(i=wi.call(this._shortWeekdaysParse,o),i!==-1?i:null))}function I0e(e,t,n){var r,i,a;if(this._weekdaysParseExact)return D0e.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=lu([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function U0e(e){if(!this.isValid())return e!=null?this:NaN;var t=Jm(this,"Day");return e!=null?(e=C0e(e,this.localeData()),this.add(e-t,"d")):t}function P0e(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function H0e(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=S0e(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function Y0e(e){return this._weekdaysParseExact?(or(this,"_weekdaysRegex")||cB.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(or(this,"_weekdaysRegex")||(this._weekdaysRegex=E0e),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function R0e(e){return this._weekdaysParseExact?(or(this,"_weekdaysRegex")||cB.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(or(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=L0e),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Q0e(e){return this._weekdaysParseExact?(or(this,"_weekdaysRegex")||cB.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(or(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=T0e),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function cB(){function e(A,f){return f.length-A.length}var t=[],n=[],r=[],i=[],a,o,s,u,c;for(a=0;a<7;a++)o=lu([2e3,1]).day(a),s=rc(this.weekdaysMin(o,"")),u=rc(this.weekdaysShort(o,"")),c=rc(this.weekdays(o,"")),t.push(s),n.push(u),r.push(c),i.push(s),i.push(u),i.push(c);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function AB(){return this.hours()%12||12}function j0e(){return this.hours()||24}rn("H",["HH",2],0,"hour"),rn("h",["hh",2],0,AB),rn("k",["kk",2],0,j0e),rn("hmm",0,0,function(){return""+AB.apply(this)+cu(this.minutes(),2)}),rn("hmmss",0,0,function(){return""+AB.apply(this)+cu(this.minutes(),2)+cu(this.seconds(),2)}),rn("Hmm",0,0,function(){return""+this.hours()+cu(this.minutes(),2)}),rn("Hmmss",0,0,function(){return""+this.hours()+cu(this.minutes(),2)+cu(this.seconds(),2)});function TF(e,t){rn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}TF("a",!0),TF("A",!1);function NF(e,t){return t._meridiemParse}Rt("a",NF),Rt("A",NF),Rt("H",jr,oB),Rt("h",jr,Mh),Rt("k",jr,Mh),Rt("HH",jr,Wo),Rt("hh",jr,Wo),Rt("kk",jr,Wo),Rt("hmm",_F),Rt("hmmss",bF),Rt("Hmm",_F),Rt("Hmmss",bF),kr(["H","HH"],Ki),kr(["k","kk"],function(e,t,n){var r=qn(e);t[Ki]=r===24?0:r}),kr(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),kr(["h","hh"],function(e,t,n){t[Ki]=qn(e),Fn(n).bigHour=!0}),kr("hmm",function(e,t,n){var r=e.length-2;t[Ki]=qn(e.substr(0,r)),t[ll]=qn(e.substr(r)),Fn(n).bigHour=!0}),kr("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Ki]=qn(e.substr(0,r)),t[ll]=qn(e.substr(r,2)),t[ac]=qn(e.substr(i)),Fn(n).bigHour=!0}),kr("Hmm",function(e,t,n){var r=e.length-2;t[Ki]=qn(e.substr(0,r)),t[ll]=qn(e.substr(r))}),kr("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[Ki]=qn(e.substr(0,r)),t[ll]=qn(e.substr(r,2)),t[ac]=qn(e.substr(i))});function V0e(e){return(e+"").toLowerCase().charAt(0)==="p"}var z0e=/[ap]\.?m?\.?/i,q0e=Eh("Hours",!0);function K0e(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var FF={calendar:Dge,longDateFormat:Hge,invalidDate:Rge,ordinal:jge,dayOfMonthOrdinalParse:Vge,relativeTime:qge,months:l0e,monthsShort:xF,week:_0e,weekdays:k0e,weekdaysMin:M0e,weekdaysShort:LF,meridiemParse:z0e},Wr={},eg={},tg;function G0e(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function OF(e){return e&&e.toLowerCase().replace("_","-")}function W0e(e){for(var t=0,n,r,i,a;t<e.length;){for(a=OF(e[t]).split("-"),n=a.length,r=OF(e[t+1]),r=r?r.split("-"):null;n>0;){if(i=H1(a.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&G0e(a,r)>=n-1)break;n--}t++}return tg}function X0e(e){return!!(e&&e.match("^[^/\\\\]*$"))}function H1(e){var t=null,n;if(Wr[e]===void 0&&typeof module<"u"&&module&&module.exports&&X0e(e))try{t=tg._abbr,n=require,n("./locale/"+e),_A(t)}catch{Wr[e]=null}return Wr[e]}function _A(e,t){var n;return e&&(Mo(t)?n=sc(e):n=dB(e,t),n?tg=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),tg._abbr}function dB(e,t){if(t!==null){var n,r=FF;if(t.abbr=e,Wr[e]!=null)pF("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Wr[e]._config;else if(t.parentLocale!=null)if(Wr[t.parentLocale]!=null)r=Wr[t.parentLocale]._config;else if(n=H1(t.parentLocale),n!=null)r=n._config;else return eg[t.parentLocale]||(eg[t.parentLocale]=[]),eg[t.parentLocale].push({name:e,config:t}),null;return Wr[e]=new $5(Z5(r,t)),eg[e]&&eg[e].forEach(function(i){dB(i.name,i.config)}),_A(e),Wr[e]}else return delete Wr[e],null}function J0e(e,t){if(t!=null){var n,r,i=FF;Wr[e]!=null&&Wr[e].parentLocale!=null?Wr[e].set(Z5(Wr[e]._config,t)):(r=H1(e),r!=null&&(i=r._config),t=Z5(i,t),r==null&&(t.abbr=e),n=new $5(t),n.parentLocale=Wr[e],Wr[e]=n),_A(e)}else Wr[e]!=null&&(Wr[e].parentLocale!=null?(Wr[e]=Wr[e].parentLocale,e===_A()&&_A(e)):Wr[e]!=null&&delete Wr[e]);return Wr[e]}function sc(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return tg;if(!ol(e)){if(t=H1(e),t)return t;e=[e]}return W0e(e)}function Z0e(){return eB(Wr)}function fB(e){var t,n=e._a;return n&&Fn(e).overflow===-2&&(t=n[ic]<0||n[ic]>11?ic:n[Au]<1||n[Au]>lB(n[Pa],n[ic])?Au:n[Ki]<0||n[Ki]>24||n[Ki]===24&&(n[ll]!==0||n[ac]!==0||n[Wd]!==0)?Ki:n[ll]<0||n[ll]>59?ll:n[ac]<0||n[ac]>59?ac:n[Wd]<0||n[Wd]>999?Wd:-1,Fn(e)._overflowDayOfYear&&(t<Pa||t>Au)&&(t=Au),Fn(e)._overflowWeeks&&t===-1&&(t=n0e),Fn(e)._overflowWeekday&&t===-1&&(t=r0e),Fn(e).overflow=t),e}var $0e=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,eve=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,tve=/Z|[+-]\d\d(?::?\d\d)?/,Y1=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],hB=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],nve=/^\/?Date\((-?\d+)/i,rve=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ive={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function DF(e){var t,n,r=e._i,i=$0e.exec(r)||eve.exec(r),a,o,s,u,c=Y1.length,A=hB.length;if(i){for(Fn(e).iso=!0,t=0,n=c;t<n;t++)if(Y1[t][1].exec(i[1])){o=Y1[t][0],a=Y1[t][2]!==!1;break}if(o==null){e._isValid=!1;return}if(i[3]){for(t=0,n=A;t<n;t++)if(hB[t][1].exec(i[3])){s=(i[2]||" ")+hB[t][0];break}if(s==null){e._isValid=!1;return}}if(!a&&s!=null){e._isValid=!1;return}if(i[4])if(tve.exec(i[4]))u="Z";else{e._isValid=!1;return}e._f=o+(s||"")+(u||""),mB(e)}else e._isValid=!1}function ave(e,t,n,r,i,a){var o=[ove(e),xF.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(i,10)];return a&&o.push(parseInt(a,10)),o}function ove(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function sve(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function lve(e,t,n){if(e){var r=LF.indexOf(e),i=new Date(t[0],t[1],t[2]).getDay();if(r!==i)return Fn(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function uve(e,t,n){if(e)return ive[e];if(t)return 0;var r=parseInt(n,10),i=r%100,a=(r-i)/100;return a*60+i}function IF(e){var t=rve.exec(sve(e._i)),n;if(t){if(n=ave(t[4],t[3],t[2],t[5],t[6],t[7]),!lve(t[1],n,e))return;e._a=n,e._tzm=uve(t[8],t[9],t[10]),e._d=Zm.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),Fn(e).rfc2822=!0}else e._isValid=!1}function cve(e){var t=nve.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(DF(e),e._isValid===!1)delete e._isValid;else return;if(IF(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:ft.createFromInputFallback(e)}ft.createFromInputFallback=xs("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function Lh(e,t,n){return e??t??n}function Ave(e){var t=new Date(ft.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function pB(e){var t,n,r=[],i,a,o;if(!e._d){for(i=Ave(e),e._w&&e._a[Au]==null&&e._a[ic]==null&&dve(e),e._dayOfYear!=null&&(o=Lh(e._a[Pa],i[Pa]),(e._dayOfYear>Xm(o)||e._dayOfYear===0)&&(Fn(e)._overflowDayOfYear=!0),n=Zm(o,0,e._dayOfYear),e._a[ic]=n.getUTCMonth(),e._a[Au]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Ki]===24&&e._a[ll]===0&&e._a[ac]===0&&e._a[Wd]===0&&(e._nextDay=!0,e._a[Ki]=0),e._d=(e._useUTC?Zm:v0e).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Ki]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(Fn(e).weekdayMismatch=!0)}}function dve(e){var t,n,r,i,a,o,s,u,c;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,o=4,n=Lh(t.GG,e._a[Pa],$m(Vr(),1,4).year),r=Lh(t.W,1),i=Lh(t.E,1),(i<1||i>7)&&(u=!0)):(a=e._locale._week.dow,o=e._locale._week.doy,c=$m(Vr(),a,o),n=Lh(t.gg,e._a[Pa],c.year),r=Lh(t.w,c.week),t.d!=null?(i=t.d,(i<0||i>6)&&(u=!0)):t.e!=null?(i=t.e+a,(t.e<0||t.e>6)&&(u=!0)):i=a),r<1||r>oc(n,a,o)?Fn(e)._overflowWeeks=!0:u!=null?Fn(e)._overflowWeekday=!0:(s=EF(n,r,i,a,o),e._a[Pa]=s.year,e._dayOfYear=s.dayOfYear)}ft.ISO_8601=function(){},ft.RFC_2822=function(){};function mB(e){if(e._f===ft.ISO_8601){DF(e);return}if(e._f===ft.RFC_2822){IF(e);return}e._a=[],Fn(e).empty=!0;var t=""+e._i,n,r,i,a,o,s=t.length,u=0,c,A;for(i=mF(e._f,e._locale).match(tB)||[],A=i.length,n=0;n<A;n++)a=i[n],r=(t.match($ge(a,e))||[])[0],r&&(o=t.substr(0,t.indexOf(r)),o.length>0&&Fn(e).unusedInput.push(o),t=t.slice(t.indexOf(r)+r.length),u+=r.length),Sh[a]?(r?Fn(e).empty=!1:Fn(e).unusedTokens.push(a),t0e(a,r,e)):e._strict&&!r&&Fn(e).unusedTokens.push(a);Fn(e).charsLeftOver=s-u,t.length>0&&Fn(e).unusedInput.push(t),e._a[Ki]<=12&&Fn(e).bigHour===!0&&e._a[Ki]>0&&(Fn(e).bigHour=void 0),Fn(e).parsedDateParts=e._a.slice(0),Fn(e).meridiem=e._meridiem,e._a[Ki]=fve(e._locale,e._a[Ki],e._meridiem),c=Fn(e).era,c!==null&&(e._a[Pa]=e._locale.erasConvertYear(c,e._a[Pa])),pB(e),fB(e)}function fve(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function hve(e){var t,n,r,i,a,o,s=!1,u=e._f.length;if(u===0){Fn(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;i<u;i++)a=0,o=!1,t=J5({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[i],mB(t),W5(t)&&(o=!0),a+=Fn(t).charsLeftOver,a+=Fn(t).unusedTokens.length*10,Fn(t).score=a,s?a<r&&(r=a,n=t):(r==null||a<r||o)&&(r=a,n=t,o&&(s=!0));yA(e,n||t)}function pve(e){if(!e._d){var t=rB(e._i),n=t.day===void 0?t.date:t.day;e._a=AF([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),pB(e)}}function mve(e){var t=new Km(fB(UF(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function UF(e){var t=e._i,n=e._f;return e._locale=e._locale||sc(e._l),t===null||n===void 0&&t===""?M1({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),sl(t)?new Km(fB(t)):(qm(t)?e._d=t:ol(n)?hve(e):n?mB(e):gve(e),W5(e)||(e._d=null),e))}function gve(e){var t=e._i;Mo(t)?e._d=new Date(ft.now()):qm(t)?e._d=new Date(t.valueOf()):typeof t=="string"?cve(e):ol(t)?(e._a=AF(t.slice(0),function(n){return parseInt(n,10)}),pB(e)):Gd(t)?pve(e):nc(t)?e._d=new Date(t):ft.createFromInputFallback(e)}function PF(e,t,n,r,i){var a={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(Gd(e)&&K5(e)||ol(e)&&e.length===0)&&(e=void 0),a._isAMomentObject=!0,a._useUTC=a._isUTC=i,a._l=n,a._i=e,a._f=t,a._strict=r,mve(a)}function Vr(e,t,n,r){return PF(e,t,n,r,!1)}var vve=xs("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Vr.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:M1()}),yve=xs("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Vr.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:M1()});function HF(e,t){var n,r;if(t.length===1&&ol(t[0])&&(t=t[0]),!t.length)return Vr();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function _ve(){var e=[].slice.call(arguments,0);return HF("isBefore",e)}function bve(){var e=[].slice.call(arguments,0);return HF("isAfter",e)}var wve=function(){return Date.now?Date.now():+new Date},ng=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Bve(e){var t,n=!1,r,i=ng.length;for(t in e)if(or(e,t)&&!(wi.call(ng,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<i;++r)if(e[ng[r]]){if(n)return!1;parseFloat(e[ng[r]])!==qn(e[ng[r]])&&(n=!0)}return!0}function xve(){return this._isValid}function Cve(){return ul(NaN)}function R1(e){var t=rB(e),n=t.year||0,r=t.quarter||0,i=t.month||0,a=t.week||t.isoWeek||0,o=t.day||0,s=t.hour||0,u=t.minute||0,c=t.second||0,A=t.millisecond||0;this._isValid=Bve(t),this._milliseconds=+A+c*1e3+u*6e4+s*1e3*60*60,this._days=+o+a*7,this._months=+i+r*3+n*12,this._data={},this._locale=sc(),this._bubble()}function Q1(e){return e instanceof R1}function gB(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function Sve(e,t,n){var r=Math.min(e.length,t.length),i=Math.abs(e.length-t.length),a=0,o;for(o=0;o<r;o++)qn(e[o])!==qn(t[o])&&a++;return a+i}function YF(e,t){rn(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+cu(~~(n/60),2)+t+cu(~~n%60,2)})}YF("Z",":"),YF("ZZ",""),Rt("Z",D1),Rt("ZZ",D1),kr(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=vB(D1,e)});var kve=/([\+\-]|\d\d)/gi;function vB(e,t){var n=(t||"").match(e),r,i,a;return n===null?null:(r=n[n.length-1]||[],i=(r+"").match(kve)||["-",0,0],a=+(i[1]*60)+qn(i[2]),a===0?0:i[0]==="+"?a:-a)}function yB(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(sl(e)||qm(e)?e.valueOf():Vr(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),ft.updateOffset(n,!1),n):Vr(e).local()}function _B(e){return-Math.round(e._d.getTimezoneOffset())}ft.updateOffset=function(){};function Mve(e,t,n){var r=this._offset||0,i;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=vB(D1,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(i=_B(this)),this._offset=e,this._isUTC=!0,i!=null&&this.add(i,"m"),r!==e&&(!t||this._changeInProgress?VF(this,ul(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,ft.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:_B(this)}function Eve(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function Lve(e){return this.utcOffset(0,e)}function Tve(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(_B(this),"m")),this}function Nve(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=vB(Jge,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function Fve(e){return this.isValid()?(e=e?Vr(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function Ove(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function Dve(){if(!Mo(this._isDSTShifted))return this._isDSTShifted;var e={},t;return J5(e,this),e=UF(e),e._a?(t=e._isUTC?lu(e._a):Vr(e._a),this._isDSTShifted=this.isValid()&&Sve(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function Ive(){return this.isValid()?!this._isUTC:!1}function Uve(){return this.isValid()?this._isUTC:!1}function RF(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Pve=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Hve=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ul(e,t){var n=e,r=null,i,a,o;return Q1(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:nc(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=Pve.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:qn(r[Au])*i,h:qn(r[Ki])*i,m:qn(r[ll])*i,s:qn(r[ac])*i,ms:qn(gB(r[Wd]*1e3))*i}):(r=Hve.exec(e))?(i=r[1]==="-"?-1:1,n={y:Xd(r[2],i),M:Xd(r[3],i),w:Xd(r[4],i),d:Xd(r[5],i),h:Xd(r[6],i),m:Xd(r[7],i),s:Xd(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(o=Yve(Vr(n.from),Vr(n.to)),n={},n.ms=o.milliseconds,n.M=o.months),a=new R1(n),Q1(e)&&or(e,"_locale")&&(a._locale=e._locale),Q1(e)&&or(e,"_isValid")&&(a._isValid=e._isValid),a}ul.fn=R1.prototype,ul.invalid=Cve;function Xd(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function QF(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function Yve(e,t){var n;return e.isValid()&&t.isValid()?(t=yB(t,e),e.isBefore(t)?n=QF(e,t):(n=QF(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function jF(e,t){return function(n,r){var i,a;return r!==null&&!isNaN(+r)&&(pF(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),i=ul(n,r),VF(this,i,e),this}}function VF(e,t,n,r){var i=t._milliseconds,a=gB(t._days),o=gB(t._months);e.isValid()&&(r=r??!0,o&&SF(e,Jm(e,"Month")+o*n),a&&BF(e,"Date",Jm(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&ft.updateOffset(e,a||o))}var Rve=jF(1,"add"),Qve=jF(-1,"subtract");function zF(e){return typeof e=="string"||e instanceof String}function jve(e){return sl(e)||qm(e)||zF(e)||nc(e)||zve(e)||Vve(e)||e===null||e===void 0}function Vve(e){var t=Gd(e)&&!K5(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,a,o=r.length;for(i=0;i<o;i+=1)a=r[i],n=n||or(e,a);return t&&n}function zve(e){var t=ol(e),n=!1;return t&&(n=e.filter(function(r){return!nc(r)&&zF(e)}).length===0),t&&n}function qve(e){var t=Gd(e)&&!K5(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],i,a;for(i=0;i<r.length;i+=1)a=r[i],n=n||or(e,a);return t&&n}function Kve(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function Gve(e,t){arguments.length===1&&(arguments[0]?jve(arguments[0])?(e=arguments[0],t=void 0):qve(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Vr(),r=yB(n,this).startOf("day"),i=ft.calendarFormat(this,r)||"sameElse",a=t&&(uu(t[i])?t[i].call(this,n):t[i]);return this.format(a||this.localeData().calendar(i,this,Vr(n)))}function Wve(){return new Km(this)}function Xve(e,t){var n=sl(e)?e:Vr(e);return this.isValid()&&n.isValid()?(t=Cs(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function Jve(e,t){var n=sl(e)?e:Vr(e);return this.isValid()&&n.isValid()?(t=Cs(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function Zve(e,t,n,r){var i=sl(e)?e:Vr(e),a=sl(t)?t:Vr(t);return this.isValid()&&i.isValid()&&a.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(i,n):!this.isBefore(i,n))&&(r[1]===")"?this.isBefore(a,n):!this.isAfter(a,n))):!1}function $ve(e,t){var n=sl(e)?e:Vr(e),r;return this.isValid()&&n.isValid()?(t=Cs(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function e1e(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function t1e(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function n1e(e,t,n){var r,i,a;if(!this.isValid())return NaN;if(r=yB(e,this),!r.isValid())return NaN;switch(i=(r.utcOffset()-this.utcOffset())*6e4,t=Cs(t),t){case"year":a=j1(this,r)/12;break;case"month":a=j1(this,r);break;case"quarter":a=j1(this,r)/3;break;case"second":a=(this-r)/1e3;break;case"minute":a=(this-r)/6e4;break;case"hour":a=(this-r)/36e5;break;case"day":a=(this-r-i)/864e5;break;case"week":a=(this-r-i)/6048e5;break;default:a=this-r}return n?a:Ss(a)}function j1(e,t){if(e.date()<t.date())return-j1(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),i,a;return t-r<0?(i=e.clone().add(n-1,"months"),a=(t-r)/(r-i)):(i=e.clone().add(n+1,"months"),a=(t-r)/(i-r)),-(n+a)||0}ft.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",ft.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function r1e(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function i1e(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?L1(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):uu(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",L1(n,"Z")):L1(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function a1e(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(n+r+i+a)}function o1e(e){e||(e=this.isUtc()?ft.defaultFormatUtc:ft.defaultFormat);var t=L1(this,e);return this.localeData().postformat(t)}function s1e(e,t){return this.isValid()&&(sl(e)&&e.isValid()||Vr(e).isValid())?ul({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function l1e(e){return this.from(Vr(),e)}function u1e(e,t){return this.isValid()&&(sl(e)&&e.isValid()||Vr(e).isValid())?ul({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function c1e(e){return this.to(Vr(),e)}function qF(e){var t;return e===void 0?this._locale._abbr:(t=sc(e),t!=null&&(this._locale=t),this)}var KF=xs("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function GF(){return this._locale}var V1=1e3,Th=60*V1,z1=60*Th,WF=(365*400+97)*24*z1;function Nh(e,t){return(e%t+t)%t}function XF(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-WF:new Date(e,t,n).valueOf()}function JF(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-WF:Date.UTC(e,t,n)}function A1e(e){var t,n;if(e=Cs(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?JF:XF,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Nh(t+(this._isUTC?0:this.utcOffset()*Th),z1);break;case"minute":t=this._d.valueOf(),t-=Nh(t,Th);break;case"second":t=this._d.valueOf(),t-=Nh(t,V1);break}return this._d.setTime(t),ft.updateOffset(this,!0),this}function d1e(e){var t,n;if(e=Cs(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?JF:XF,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=z1-Nh(t+(this._isUTC?0:this.utcOffset()*Th),z1)-1;break;case"minute":t=this._d.valueOf(),t+=Th-Nh(t,Th)-1;break;case"second":t=this._d.valueOf(),t+=V1-Nh(t,V1)-1;break}return this._d.setTime(t),ft.updateOffset(this,!0),this}function f1e(){return this._d.valueOf()-(this._offset||0)*6e4}function h1e(){return Math.floor(this.valueOf()/1e3)}function p1e(){return new Date(this.valueOf())}function m1e(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function g1e(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function v1e(){return this.isValid()?this.toISOString():null}function y1e(){return W5(this)}function _1e(){return yA({},Fn(this))}function b1e(){return Fn(this).overflow}function w1e(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}rn("N",0,0,"eraAbbr"),rn("NN",0,0,"eraAbbr"),rn("NNN",0,0,"eraAbbr"),rn("NNNN",0,0,"eraName"),rn("NNNNN",0,0,"eraNarrow"),rn("y",["y",1],"yo","eraYear"),rn("y",["yy",2],0,"eraYear"),rn("y",["yyy",3],0,"eraYear"),rn("y",["yyyy",4],0,"eraYear"),Rt("N",bB),Rt("NN",bB),Rt("NNN",bB),Rt("NNNN",F1e),Rt("NNNNN",O1e),kr(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?Fn(n).era=i:Fn(n).invalidEra=e}),Rt("y",kh),Rt("yy",kh),Rt("yyy",kh),Rt("yyyy",kh),Rt("yo",D1e),kr(["y","yy","yyy","yyyy"],Pa),kr(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[Pa]=n._locale.eraYearOrdinalParse(e,i):t[Pa]=parseInt(e,10)});function B1e(e,t){var n,r,i,a=this._eras||sc("en")._eras;for(n=0,r=a.length;n<r;++n){switch(typeof a[n].since){case"string":i=ft(a[n].since).startOf("day"),a[n].since=i.valueOf();break}switch(typeof a[n].until){case"undefined":a[n].until=1/0;break;case"string":i=ft(a[n].until).startOf("day").valueOf(),a[n].until=i.valueOf();break}}return a}function x1e(e,t,n){var r,i,a=this.eras(),o,s,u;for(e=e.toUpperCase(),r=0,i=a.length;r<i;++r)if(o=a[r].name.toUpperCase(),s=a[r].abbr.toUpperCase(),u=a[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(s===e)return a[r];break;case"NNNN":if(o===e)return a[r];break;case"NNNNN":if(u===e)return a[r];break}else if([o,s,u].indexOf(e)>=0)return a[r]}function C1e(e,t){var n=e.since<=e.until?1:-1;return t===void 0?ft(e.since).year():ft(e.since).year()+(t-e.offset)*n}function S1e(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function k1e(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function M1e(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function E1e(){var e,t,n,r,i=this.localeData().eras();for(e=0,t=i.length;e<t;++e)if(n=i[e].since<=i[e].until?1:-1,r=this.clone().startOf("day").valueOf(),i[e].since<=r&&r<=i[e].until||i[e].until<=r&&r<=i[e].since)return(this.year()-ft(i[e].since).year())*n+i[e].offset;return this.year()}function L1e(e){return or(this,"_erasNameRegex")||wB.call(this),e?this._erasNameRegex:this._erasRegex}function T1e(e){return or(this,"_erasAbbrRegex")||wB.call(this),e?this._erasAbbrRegex:this._erasRegex}function N1e(e){return or(this,"_erasNarrowRegex")||wB.call(this),e?this._erasNarrowRegex:this._erasRegex}function bB(e,t){return t.erasAbbrRegex(e)}function F1e(e,t){return t.erasNameRegex(e)}function O1e(e,t){return t.erasNarrowRegex(e)}function D1e(e,t){return t._eraYearOrdinalRegex||kh}function wB(){var e=[],t=[],n=[],r=[],i,a,o,s,u,c=this.eras();for(i=0,a=c.length;i<a;++i)o=rc(c[i].name),s=rc(c[i].abbr),u=rc(c[i].narrow),t.push(o),e.push(s),n.push(u),r.push(o),r.push(s),r.push(u);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}rn(0,["gg",2],0,function(){return this.weekYear()%100}),rn(0,["GG",2],0,function(){return this.isoWeekYear()%100});function q1(e,t){rn(0,[e,e.length],0,t)}q1("gggg","weekYear"),q1("ggggg","weekYear"),q1("GGGG","isoWeekYear"),q1("GGGGG","isoWeekYear"),Rt("G",O1),Rt("g",O1),Rt("GG",jr,Wo),Rt("gg",jr,Wo),Rt("GGGG",aB,iB),Rt("gggg",aB,iB),Rt("GGGGG",F1,T1),Rt("ggggg",F1,T1),Wm(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=qn(e)}),Wm(["gg","GG"],function(e,t,n,r){t[r]=ft.parseTwoDigitYear(e)});function I1e(e){return ZF.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function U1e(e){return ZF.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function P1e(){return oc(this.year(),1,4)}function H1e(){return oc(this.isoWeekYear(),1,4)}function Y1e(){var e=this.localeData()._week;return oc(this.year(),e.dow,e.doy)}function R1e(){var e=this.localeData()._week;return oc(this.weekYear(),e.dow,e.doy)}function ZF(e,t,n,r,i){var a;return e==null?$m(this,r,i).year:(a=oc(e,r,i),t>a&&(t=a),Q1e.call(this,e,t,n,r,i))}function Q1e(e,t,n,r,i){var a=EF(e,t,n,r,i),o=Zm(a.year,0,a.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}rn("Q",0,"Qo","quarter"),Rt("Q",vF),kr("Q",function(e,t){t[ic]=(qn(e)-1)*3});function j1e(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}rn("D",["DD",2],"Do","date"),Rt("D",jr,Mh),Rt("DD",jr,Wo),Rt("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),kr(["D","DD"],Au),kr("Do",function(e,t){t[Au]=qn(e.match(jr)[0])});var $F=Eh("Date",!0);rn("DDD",["DDDD",3],"DDDo","dayOfYear"),Rt("DDD",N1),Rt("DDDD",yF),kr(["DDD","DDDD"],function(e,t,n){n._dayOfYear=qn(e)});function V1e(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}rn("m",["mm",2],0,"minute"),Rt("m",jr,oB),Rt("mm",jr,Wo),kr(["m","mm"],ll);var z1e=Eh("Minutes",!1);rn("s",["ss",2],0,"second"),Rt("s",jr,oB),Rt("ss",jr,Wo),kr(["s","ss"],ac);var q1e=Eh("Seconds",!1);rn("S",0,0,function(){return~~(this.millisecond()/100)}),rn(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),rn(0,["SSS",3],0,"millisecond"),rn(0,["SSSS",4],0,function(){return this.millisecond()*10}),rn(0,["SSSSS",5],0,function(){return this.millisecond()*100}),rn(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),rn(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),rn(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),rn(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Rt("S",N1,vF),Rt("SS",N1,Wo),Rt("SSS",N1,yF);var bA,eO;for(bA="SSSS";bA.length<=9;bA+="S")Rt(bA,kh);function K1e(e,t){t[Wd]=qn(("0."+e)*1e3)}for(bA="S";bA.length<=9;bA+="S")kr(bA,K1e);eO=Eh("Milliseconds",!1),rn("z",0,0,"zoneAbbr"),rn("zz",0,0,"zoneName");function G1e(){return this._isUTC?"UTC":""}function W1e(){return this._isUTC?"Coordinated Universal Time":""}var yt=Km.prototype;yt.add=Rve,yt.calendar=Gve,yt.clone=Wve,yt.diff=n1e,yt.endOf=d1e,yt.format=o1e,yt.from=s1e,yt.fromNow=l1e,yt.to=u1e,yt.toNow=c1e,yt.get=a0e,yt.invalidAt=b1e,yt.isAfter=Xve,yt.isBefore=Jve,yt.isBetween=Zve,yt.isSame=$ve,yt.isSameOrAfter=e1e,yt.isSameOrBefore=t1e,yt.isValid=y1e,yt.lang=KF,yt.locale=qF,yt.localeData=GF,yt.max=yve,yt.min=vve,yt.parsingFlags=_1e,yt.set=o0e,yt.startOf=A1e,yt.subtract=Qve,yt.toArray=m1e,yt.toObject=g1e,yt.toDate=p1e,yt.toISOString=i1e,yt.inspect=a1e,typeof Symbol<"u"&&Symbol.for!=null&&(yt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),yt.toJSON=v1e,yt.toString=r1e,yt.unix=h1e,yt.valueOf=f1e,yt.creationData=w1e,yt.eraName=S1e,yt.eraNarrow=k1e,yt.eraAbbr=M1e,yt.eraYear=E1e,yt.year=wF,yt.isLeapYear=i0e,yt.weekYear=I1e,yt.isoWeekYear=U1e,yt.quarter=yt.quarters=j1e,yt.month=kF,yt.daysInMonth=p0e,yt.week=yt.weeks=B0e,yt.isoWeek=yt.isoWeeks=x0e,yt.weeksInYear=Y1e,yt.weeksInWeekYear=R1e,yt.isoWeeksInYear=P1e,yt.isoWeeksInISOWeekYear=H1e,yt.date=$F,yt.day=yt.days=U0e,yt.weekday=P0e,yt.isoWeekday=H0e,yt.dayOfYear=V1e,yt.hour=yt.hours=q0e,yt.minute=yt.minutes=z1e,yt.second=yt.seconds=q1e,yt.millisecond=yt.milliseconds=eO,yt.utcOffset=Mve,yt.utc=Lve,yt.local=Tve,yt.parseZone=Nve,yt.hasAlignedHourOffset=Fve,yt.isDST=Ove,yt.isLocal=Ive,yt.isUtcOffset=Uve,yt.isUtc=RF,yt.isUTC=RF,yt.zoneAbbr=G1e,yt.zoneName=W1e,yt.dates=xs("dates accessor is deprecated. Use date instead.",$F),yt.months=xs("months accessor is deprecated. Use month instead",kF),yt.years=xs("years accessor is deprecated. Use year instead",wF),yt.zone=xs("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",Eve),yt.isDSTShifted=xs("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",Dve);function X1e(e){return Vr(e*1e3)}function J1e(){return Vr.apply(null,arguments).parseZone()}function tO(e){return e}var sr=$5.prototype;sr.calendar=Ige,sr.longDateFormat=Yge,sr.invalidDate=Qge,sr.ordinal=zge,sr.preparse=tO,sr.postformat=tO,sr.relativeTime=Kge,sr.pastFuture=Gge,sr.set=Oge,sr.eras=B1e,sr.erasParse=x1e,sr.erasConvertYear=C1e,sr.erasAbbrRegex=T1e,sr.erasNameRegex=L1e,sr.erasNarrowRegex=N1e,sr.months=A0e,sr.monthsShort=d0e,sr.monthsParse=h0e,sr.monthsRegex=g0e,sr.monthsShortRegex=m0e,sr.week=y0e,sr.firstDayOfYear=w0e,sr.firstDayOfWeek=b0e,sr.weekdays=N0e,sr.weekdaysMin=O0e,sr.weekdaysShort=F0e,sr.weekdaysParse=I0e,sr.weekdaysRegex=Y0e,sr.weekdaysShortRegex=R0e,sr.weekdaysMinRegex=Q0e,sr.isPM=V0e,sr.meridiem=K0e;function K1(e,t,n,r){var i=sc(),a=lu().set(r,t);return i[n](a,e)}function nO(e,t,n){if(nc(e)&&(t=e,e=void 0),e=e||"",t!=null)return K1(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=K1(e,r,n,"month");return i}function BB(e,t,n,r){typeof e=="boolean"?(nc(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,nc(t)&&(n=t,t=void 0),t=t||"");var i=sc(),a=e?i._week.dow:0,o,s=[];if(n!=null)return K1(t,(n+a)%7,r,"day");for(o=0;o<7;o++)s[o]=K1(t,(o+a)%7,r,"day");return s}function Z1e(e,t){return nO(e,t,"months")}function $1e(e,t){return nO(e,t,"monthsShort")}function eye(e,t,n){return BB(e,t,n,"weekdays")}function tye(e,t,n){return BB(e,t,n,"weekdaysShort")}function nye(e,t,n){return BB(e,t,n,"weekdaysMin")}_A("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=qn(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}}),ft.lang=xs("moment.lang is deprecated. Use moment.locale instead.",_A),ft.langData=xs("moment.langData is deprecated. Use moment.localeData instead.",sc);var lc=Math.abs;function rye(){var e=this._data;return this._milliseconds=lc(this._milliseconds),this._days=lc(this._days),this._months=lc(this._months),e.milliseconds=lc(e.milliseconds),e.seconds=lc(e.seconds),e.minutes=lc(e.minutes),e.hours=lc(e.hours),e.months=lc(e.months),e.years=lc(e.years),this}function rO(e,t,n,r){var i=ul(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function iye(e,t){return rO(this,e,t,1)}function aye(e,t){return rO(this,e,t,-1)}function iO(e){return e<0?Math.floor(e):Math.ceil(e)}function oye(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,a,o,s,u;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=iO(xB(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=Ss(e/1e3),r.seconds=i%60,a=Ss(i/60),r.minutes=a%60,o=Ss(a/60),r.hours=o%24,t+=Ss(o/24),u=Ss(aO(t)),n+=u,t-=iO(xB(u)),s=Ss(n/12),n%=12,r.days=t,r.months=n,r.years=s,this}function aO(e){return e*4800/146097}function xB(e){return e*146097/4800}function sye(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Cs(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+aO(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(xB(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function uc(e){return function(){return this.as(e)}}var oO=uc("ms"),lye=uc("s"),uye=uc("m"),cye=uc("h"),Aye=uc("d"),dye=uc("w"),fye=uc("M"),hye=uc("Q"),pye=uc("y"),mye=oO;function gye(){return ul(this)}function vye(e){return e=Cs(e),this.isValid()?this[e+"s"]():NaN}function Jd(e){return function(){return this.isValid()?this._data[e]:NaN}}var yye=Jd("milliseconds"),_ye=Jd("seconds"),bye=Jd("minutes"),wye=Jd("hours"),Bye=Jd("days"),xye=Jd("months"),Cye=Jd("years");function Sye(){return Ss(this.days()/7)}var cc=Math.round,Fh={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function kye(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function Mye(e,t,n,r){var i=ul(e).abs(),a=cc(i.as("s")),o=cc(i.as("m")),s=cc(i.as("h")),u=cc(i.as("d")),c=cc(i.as("M")),A=cc(i.as("w")),f=cc(i.as("y")),h=a<=n.ss&&["s",a]||a<n.s&&["ss",a]||o<=1&&["m"]||o<n.m&&["mm",o]||s<=1&&["h"]||s<n.h&&["hh",s]||u<=1&&["d"]||u<n.d&&["dd",u];return n.w!=null&&(h=h||A<=1&&["w"]||A<n.w&&["ww",A]),h=h||c<=1&&["M"]||c<n.M&&["MM",c]||f<=1&&["y"]||["yy",f],h[2]=t,h[3]=+e>0,h[4]=r,kye.apply(null,h)}function Eye(e){return e===void 0?cc:typeof e=="function"?(cc=e,!0):!1}function Lye(e,t){return Fh[e]===void 0?!1:t===void 0?Fh[e]:(Fh[e]=t,e==="s"&&(Fh.ss=t-1),!0)}function Tye(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Fh,i,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Fh,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),a=Mye(this,!n,r,i),n&&(a=i.pastFuture(+this,a)),i.postformat(a)}var CB=Math.abs;function Oh(e){return(e>0)-(e<0)||+e}function G1(){if(!this.isValid())return this.localeData().invalidDate();var e=CB(this._milliseconds)/1e3,t=CB(this._days),n=CB(this._months),r,i,a,o,s=this.asSeconds(),u,c,A,f;return s?(r=Ss(e/60),i=Ss(r/60),e%=60,r%=60,a=Ss(n/12),n%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",u=s<0?"-":"",c=Oh(this._months)!==Oh(s)?"-":"",A=Oh(this._days)!==Oh(s)?"-":"",f=Oh(this._milliseconds)!==Oh(s)?"-":"",u+"P"+(a?c+a+"Y":"")+(n?c+n+"M":"")+(t?A+t+"D":"")+(i||r||e?"T":"")+(i?f+i+"H":"")+(r?f+r+"M":"")+(e?f+o+"S":"")):"P0D"}var Jn=R1.prototype;Jn.isValid=xve,Jn.abs=rye,Jn.add=iye,Jn.subtract=aye,Jn.as=sye,Jn.asMilliseconds=oO,Jn.asSeconds=lye,Jn.asMinutes=uye,Jn.asHours=cye,Jn.asDays=Aye,Jn.asWeeks=dye,Jn.asMonths=fye,Jn.asQuarters=hye,Jn.asYears=pye,Jn.valueOf=mye,Jn._bubble=oye,Jn.clone=gye,Jn.get=vye,Jn.milliseconds=yye,Jn.seconds=_ye,Jn.minutes=bye,Jn.hours=wye,Jn.days=Bye,Jn.weeks=Sye,Jn.months=xye,Jn.years=Cye,Jn.humanize=Tye,Jn.toISOString=G1,Jn.toString=G1,Jn.toJSON=G1,Jn.locale=qF,Jn.localeData=GF,Jn.toIsoString=xs("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",G1),Jn.lang=KF,rn("X",0,0,"unix"),rn("x",0,0,"valueOf"),Rt("x",O1),Rt("X",Zge),kr("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)}),kr("x",function(e,t,n){n._d=new Date(qn(e))});//! moment.js
90
- ft.version="2.30.1",Nge(Vr),ft.fn=yt,ft.min=_ve,ft.max=bve,ft.now=wve,ft.utc=lu,ft.unix=X1e,ft.months=Z1e,ft.isDate=qm,ft.locale=_A,ft.invalid=M1,ft.duration=ul,ft.isMoment=sl,ft.weekdays=eye,ft.parseZone=J1e,ft.localeData=sc,ft.isDuration=Q1,ft.monthsShort=$1e,ft.weekdaysMin=nye,ft.defineLocale=dB,ft.updateLocale=J0e,ft.locales=Z0e,ft.weekdaysShort=tye,ft.normalizeUnits=Cs,ft.relativeTimeRounding=Eye,ft.relativeTimeThreshold=Lye,ft.calendarFormat=Kve,ft.prototype=yt,ft.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Nye={class:"col"},Fye={__name:"DatePickerInput",props:{from:Number,to:Number},emits:["selectTime","error"],setup(e,{emit:t}){const n=e,r=t,i=l.ref(u());l.watch(()=>[n.from,n.to],([A,f])=>{const h=Array.isArray(i.value)?i.value:[],d=h.length===2?[...h]:u();let m=!1;c(A)&&(d[0]=s(A),m=!0),c(f)&&(d[1]=s(f),m=!0),m?i.value=d:o()},{immediate:!0}),l.watch(i,(A,f)=>{Array.isArray(A)&&A.length===2&&A[0]&&A[1]&&(A[0]>A[1]?r("error","Time from is greater than time to"):Array.isArray(f)&&f.length===2&&f[0]&&f[1]?(f[0]!==A[0]||f[1]!==A[1])&&r("selectTime",[ft(A[0]).valueOf(),ft(A[1]).valueOf()]):r("selectTime",[ft(A[0]).valueOf(),ft(A[1]).valueOf()]))},{deep:!0});function a(){const A=ft().valueOf();return[{label:"Last Hour",atClick:()=>[ft().subtract(1,"hours").valueOf(),A]},{label:"Last Three Hours",atClick:()=>[ft().subtract(3,"hours").valueOf(),A]},{label:"Last Six Hours",atClick:()=>[ft().subtract(6,"hours").valueOf(),A]},{label:"Last Twelve Hours",atClick:()=>[ft().subtract(12,"hours").valueOf(),A]},{label:"Last Day",atClick:()=>[ft().subtract(1,"days").valueOf(),A]},{label:"Last Three Days",atClick:()=>[ft().subtract(3,"days").valueOf(),A]},{label:"Last Week",atClick:()=>[ft().subtract(7,"days").valueOf(),A]}]}function o(){i.value=u()}function s(A){return ft(A).format("YYYY-MM-DD HH:mm:ss")}function u(){return[s(ft().subtract(1,"hours")),s(ft())]}function c(A){return typeof A=="number"&&!Number.isNaN(A)&&A>0}return(A,f)=>(l.openBlock(),l.createElementBlock("div",Nye,[l.createVNode(l.unref(k1),{shortcuts:a,modelValue:i.value,"onUpdate:modelValue":f[0]||(f[0]=h=>i.value=h)},null,8,["modelValue"])]))}},Oye={key:0},Dye={key:1},Iye={key:2},Uye=l.defineComponent({__name:"TriState",props:["state"],emits:["newState"],setup(e,{emit:t}){const n=e,r=t,i=l.ref(n.state);function a(){switch(i.value){case"unchecked":i.value="checked";break;case"checked":i.value="ignored";break;default:i.value="unchecked"}r("newState",i.value)}return(o,s)=>(l.openBlock(),l.createElementBlock("div",{onClick:s[0]||(s[0]=u=>a())},[i.value==="unchecked"?(l.openBlock(),l.createElementBlock("div",Oye,[l.createVNode(tu)])):l.createCommentVNode("",!0),i.value==="checked"?(l.openBlock(),l.createElementBlock("div",Dye,[l.createVNode(tu,{checked:!0})])):l.createCommentVNode("",!0),i.value==="ignored"?(l.openBlock(),l.createElementBlock("div",Iye,[l.createVNode(tu,{indeterminate:!0})])):l.createCommentVNode("",!0)]))}}),Pye={class:"text-sm font-light"},Hye={class:"flex justify-between pt-3 pb-1 relative"},Yye={class:"font-light"},Rye={class:"flex pr-1"},Qye={class:"flex justify-between py-1"},jye={class:"flex items-center min-w-0"},Vye={class:"px-2 truncate"},zye=l.defineComponent({__name:"Leaf",props:{parent:{type:Object,default:{}},children:{type:Array,default:[]},clear:Number,facetOptions:Object,tooltip:{type:Boolean,default:!1}},emits:["newState"],setup(e,{emit:t}){const n=e,r=t,i=l.ref(n.parent.show),a=l.ref(!1),o=l.ref(!0),s=l.computed(()=>{const m=JSON.parse(JSON.stringify(n.children));return o.value||m.reverse(),m.slice(0,i.value)});function u(){return i.value<n.children.length?"std-blue-text cursor-pointer":"std-disabled-text cursor-not-allowed"}function c(){return i.value===0||n.children.length===0?"std-disabled-text cursor-not-allowed":"std-blue-text cursor-pointer"}function A(){i.value<n.children.length&&(i.value+=5)}function f(){i.value>0&&(i.value-=5)}function h(){o.value=!o.value}function d(m,p,g){r("newState",m,p,g)}return(m,p)=>(l.openBlock(),l.createElementBlock("div",Pye,[l.createElementVNode("div",Hye,[l.createElementVNode("div",{class:"text-base font-normal max-w-3/4 truncate",onMouseover:p[0]||(p[0]=g=>a.value=!0),onMouseout:p[1]||(p[1]=g=>a.value=!1)},[l.createTextVNode(l.toDisplayString(e.parent.title)+" ",1),l.createElementVNode("span",Yye,"("+l.toDisplayString(e.children.length)+")",1)],32),l.createElementVNode("div",Rye,[l.createVNode(l.unref(Wne),{class:l.normalizeClass(["icon-lg",u()]),onClick:p[2]||(p[2]=g=>A())},null,8,["class"]),l.createVNode(l.unref(qne),{class:l.normalizeClass(["icon-lg",c()]),onClick:p[3]||(p[3]=g=>f())},null,8,["class"]),o.value?(l.openBlock(),l.createBlock(l.unref(Fne),{key:0,class:"icon-lg std-blue-text cursor-pointer",onClick:h})):(l.openBlock(),l.createBlock(l.unref(Dne),{key:1,class:"icon-lg std-blue-text cursor-pointer",onClick:h}))]),n.tooltip?(l.openBlock(),l.createBlock(zu,{key:0,tooltip:e.parent.label,showingTooltip:a.value,direction:"top",class:"left-20"},null,8,["tooltip","showingTooltip"])):l.createCommentVNode("",!0)]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.value,g=>(l.openBlock(),l.createElementBlock("div",Qye,[l.createElementVNode("div",jye,[l.createVNode(Uye,{state:g.state,onNewState:v=>d(e.parent.label,g.label,v)},null,8,["state","onNewState"]),l.createElementVNode("div",Vye,l.toDisplayString(g.label?g.label:"-"),1)]),l.createElementVNode("div",null,l.toDisplayString(g.count),1)]))),256))]))}}),qye={class:"hidden md:col md:h-full overflow-hidden"},Kye={key:0,class:"flex"},Gye={class:"h-0 flex-1 overflow-y-auto px-1"},Wye={key:0,class:"q-ml-md text-bold"},Xye={key:1,class:"flex flex-shrink-0 px-1 py-1"},Jye={class:"relative isolate inline-flex rounded-md shadow-xs"},Zye=ar(l.defineComponent({__name:"Facet",props:{tree:{type:Array,default:[]},facetOptions:{type:Object,default:{}},state:{type:Number,default:0},searchBar:{type:Boolean,default:!0},tooltip:{type:Boolean,default:!1},buttons:{type:Boolean,default:!1},hideSaveButton:{type:Boolean,default:!1}},emits:["search","updateStr","reset","edit","save","download","search"],setup(e,{emit:t}){var v,y,_;const n=e,r=t,i=l.ref((v=n.facetOptions)==null?void 0:v.mustFilters),a=l.ref((y=n.facetOptions)==null?void 0:y.mustNotFilters),o=l.ref((_=n.facetOptions)==null?void 0:_.searchStr),s=l.ref(n.state),u=l.ref(!1),c=l.ref("");function A(b,w){const C=w.find(B=>B.field===b.parent);typeof C<"u"?C.terms.push(b.child):w.push({field:b.parent,terms:[b.child]})}function f(b,w){const C=w.find(B=>B.field===b.parent);if(typeof C<"u"){const B=C.terms.indexOf(b.child);if(B>-1&&(C.terms.splice(B,1),C.terms.length===0)){const E=w.findIndex(N=>N.field===b.parent);w.splice(E,1)}}}function h(b,w,C){C==="checked"?d({parent:b,child:w}):C==="ignored"?m({parent:b,child:w}):p({parent:b,child:w})}function d(b){A(b,i.value)}function m(b){f(b,i.value),A(b,a.value)}function p(b){f(b,a.value)}function g(b,w=""){u.value=b,c.value=w}return(b,w)=>(l.openBlock(),l.createElementBlock("div",qye,[e.searchBar?(l.openBlock(),l.createElementBlock("div",Kye,[l.createVNode(xN,{class:"w-full",str:o.value,onSearch:w[0]||(w[0]=C=>r("search")),onUpdate:w[1]||(w[1]=C=>r("updateStr",C))},null,8,["str"])])):l.createCommentVNode("",!0),l.createElementVNode("div",Gye,[e.tree.length==0?(l.openBlock(),l.createElementBlock("div",Wye," No Facet data. Please select a search query. ")):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.tree,C=>(l.openBlock(),l.createElementBlock("div",{key:C.id,class:"primary"},[l.createVNode(zye,{parent:C,children:C.children,clear:s.value,"facet-options":e.facetOptions,tooltip:e.tooltip,onNewState:h},null,8,["parent","children","clear","facet-options","tooltip"]),l.createVNode(Iw)]))),128))]),e.buttons?(l.openBlock(),l.createElementBlock("div",Xye,[l.createElementVNode("span",Jye,[l.createElementVNode("button",{type:"button",class:"action-btn std-btn-red rounded-l-md",onClick:w[2]||(w[2]=C=>r("reset")),onMouseover:w[3]||(w[3]=C=>g(!0,"Reset Facet")),onMouseout:w[4]||(w[4]=C=>g(!1))},[l.createVNode(l.unref(Od),{class:"icon-md","aria-hidden":"true"})],32),l.createElementVNode("button",{type:"button",class:"action-btn std-btn-blue",onClick:w[5]||(w[5]=C=>r("edit")),onMouseover:w[6]||(w[6]=C=>g(!0,"Edit Facet")),onMouseout:w[7]||(w[7]=C=>g(!1))},[l.createVNode(l.unref(q6),{class:"icon-md","aria-hidden":"true"})],32),e.hideSaveButton?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("button",{key:0,type:"button",class:"action-btn std-btn-blue",onClick:w[8]||(w[8]=C=>r("save")),onMouseover:w[9]||(w[9]=C=>g(!0,"Save Facet")),onMouseout:w[10]||(w[10]=C=>g(!1))},[l.createVNode(iN,{class:"icon-md","aria-hidden":"true"})],32)),l.createElementVNode("button",{type:"button",class:"action-btn std-btn-blue rounded-r-md",onClick:w[11]||(w[11]=C=>r("search")),onMouseover:w[12]||(w[12]=C=>g(!0,"Search")),onMouseout:w[13]||(w[13]=C=>g(!1))},[l.createVNode(l.unref(Nw),{class:"icon-md","aria-hidden":"true"})],32),l.createVNode(zu,{tooltip:c.value,showingTooltip:u.value,direction:"top",style:{transform:"translateY(-40%)"}},null,8,["tooltip","showingTooltip"])])])):l.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-5e863be1"]]),$ye=[{label:"Hourly",value:"hourly"},{label:"Daily",value:"daily"},{label:"Weekly",value:"weekly"},{label:"Monthly",value:"monthly"}],e_e=[{label:"Sunday",value:0},{label:"Monday",value:1},{label:"Tuesday",value:2},{label:"Wednesday",value:3},{label:"Thursday",value:4},{label:"Friday",value:5},{label:"Saturday",value:6}],t_e=Array.from({length:24},(e,t)=>({label:t.toString(),value:t})),n_e=Array.from({length:31},(e,t)=>({label:(t+1).toString(),value:t+1})),r_e=[{label:"GMT",value:"GMT"},{label:"America/New_York",value:"America/New_York"},{label:"America/Chicago",value:"America/Chicago"},{label:"America/Los_Angeles",value:"America/Los_Angeles"},{label:"America/Denver",value:"America/Denver"},{label:"America/Phoenix",value:"America/Phoenix"},{label:"Canada/Atlantic",value:"Canada/Atlantic"},{label:"Canada/Central",value:"Canada/Central"},{label:"Canada/Eastern",value:"Canada/Eastern"},{label:"Canada/Mountain",value:"Canada/Mountain"},{label:"Canada/Pacific",value:"Canada/Pacific"},{label:"Canada/Newfoundland",value:"Canada/Newfoundland"},{label:"Europe/London",value:"Europe/London"},{label:"Europe/Berlin",value:"Europe/Berlin"},{label:"Hongkong",value:"Hongkong"},{label:"Asia/Kuala_Lumpur",value:"Asia/Kuala_Lumpur"}],i_e={class:"px-2"},a_e={class:"flex gap-x-3"},o_e={__name:"Schedule",props:{schedule:Object},setup(e){const t=e,n=l.ref(t.schedule),r=l.computed(()=>n.value.interval==="minute"?Array.from({length:60},(i,a)=>{const o=a+1;return{label:o.toString(),value:o}}):n.value.interval==="hourly"||n.value.interval==="daily"?Array.from({length:12},(i,a)=>{const o=a*5;return{label:o.toString(),value:o}}):[]);return(i,a)=>(l.openBlock(),l.createBlock(_m,{sectionName:"Schedule Details"},{default:l.withCtx(()=>[l.createElementVNode("div",i_e,[l.createVNode(zi,{fieldName:"Interval"},{default:l.withCtx(()=>[l.createVNode(fr,{modelValue:n.value.interval,"onUpdate:modelValue":a[0]||(a[0]=o=>n.value.interval=o),options:l.unref($ye)},null,8,["modelValue","options"])]),_:1}),l.createElementVNode("div",a_e,[n.value.interval==="monthly"?(l.openBlock(),l.createBlock(zi,{key:0,fieldName:"Day",class:"w-44"},{default:l.withCtx(()=>[l.createVNode(fr,{modelValue:n.value.day,"onUpdate:modelValue":a[1]||(a[1]=o=>n.value.day=o),options:l.unref(n_e)},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0),n.value.interval==="weekly"?(l.openBlock(),l.createBlock(zi,{key:1,fieldName:"Weekday",class:"w-44"},{default:l.withCtx(()=>[l.createVNode(fr,{modelValue:n.value.weekday,"onUpdate:modelValue":a[2]||(a[2]=o=>n.value.weekday=o),options:l.unref(e_e)},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0),n.value.interval!=="minute"&&n.value.interval!=="hourly"?(l.openBlock(),l.createBlock(zi,{key:2,fieldName:"Hour",class:"w-44"},{default:l.withCtx(()=>[l.createVNode(fr,{modelValue:n.value.hour,"onUpdate:modelValue":a[3]||(a[3]=o=>n.value.hour=o),options:l.unref(t_e)},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0),n.value.interval==="minute"||n.value.interval==="hourly"||n.value.interval==="daily"?(l.openBlock(),l.createBlock(zi,{key:3,fieldName:"Minute",class:"w-44"},{default:l.withCtx(()=>[l.createVNode(fr,{modelValue:n.value.minute,"onUpdate:modelValue":a[4]||(a[4]=o=>n.value.minute=o),options:r.value},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0)]),n.value.interval!=="minute"&&n.value.interval!=="hourly"?(l.openBlock(),l.createBlock(zi,{key:0,fieldName:"Timezone"},{default:l.withCtx(()=>[l.createVNode(fr,{modelValue:n.value.timezone,"onUpdate:modelValue":a[5]||(a[5]=o=>n.value.timezone=o),options:l.unref(r_e)},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0)])]),_:1}))}};function s_e(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z","clip-rule":"evenodd"})])}function l_e(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z","clip-rule":"evenodd"})])}const W1=e=>{const t=new Date(e),n={weekday:"long",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"};return t.toLocaleTimeString("en-us",n)};function rg(e){if(!e)return new Date;if(e.toString().indexOf("/")!==-1)return new Date(e);if(e.toString().indexOf("-")!==-1)return new Date(e);if(e.toString().startsWith("2")){const n=e.substring(0,4),r=e.substring(4,6),i=e.substring(6,8);return new Date(n,r-1,i)}return new Date(e).valueOf()!==e?new Date(e*1e3):new Date(e)}function u_e(e){return ft(e).fromNow()}const c_e={role:"list",class:"space-y-6"},A_e={class:"relative flex gap-x-4"},d_e={class:"relative flex icon-lg flex-none items-center justify-center std-white"},f_e={key:2,class:"h-2 w-2 rounded-full std-white-reverse ring-1 ring-gray-300"},h_e={class:"flex-auto py-0.5 text-xs leading-5"},p_e={class:"font-bold"},m_e=["datetime"],g_e={__name:"Feed",props:{data:Array},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("ul",c_e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.data,(r,i)=>(l.openBlock(),l.createElementBlock("li",A_e,[l.createElementVNode("div",{class:l.normalizeClass([i===e.data.length-1?"h-6":"-bottom-6","absolute left-0 top-0 flex w-6 justify-center"])},n[0]||(n[0]=[l.createElementVNode("div",{class:"w-px slider-active"},null,-1)]),2),l.createElementVNode("div",d_e,[r.action==="resolve"?(l.openBlock(),l.createBlock(l.unref(s_e),{key:0,class:"icon-lg icon-green","aria-hidden":"true"})):r.action==="trigger"?(l.openBlock(),l.createBlock(l.unref(l_e),{key:1,class:"icon-lg icon-red","aria-hidden":"true"})):(l.openBlock(),l.createElementBlock("div",f_e))]),l.createElementVNode("p",h_e,[l.createElementVNode("span",p_e,l.toDisplayString(r.source),1),l.createTextVNode(" "+l.toDisplayString(r.action)+" the alert. ",1)]),l.createElementVNode("time",{datetime:r.timestamp,class:"flex-none py-0.5 text-xs leading-5 font-light"},l.toDisplayString(l.unref(u_e)(r.timestamp)),9,m_e)]))),256))]))}},v_e={class:"mb-3 flex items-center justify-between relative"},y_e={class:"min-w-0 flex-1"},__e={class:"row truncate font-medium"},b_e={class:"text-xs font-light"},w_e={class:"flex mt-0 ml-4"},B_e={__name:"CategoryCard",props:{category:{type:[Object,String],required:!0},description:String},setup(e){return(t,n)=>(l.openBlock(),l.createBlock(bm,null,{default:l.withCtx(()=>[l.createElementVNode("div",v_e,[l.renderSlot(t.$slots,"icon"),l.createElementVNode("div",y_e,[l.createElementVNode("h3",__e,[l.createTextVNode(l.toDisplayString(e.category.name||e.category)+" ",1),l.renderSlot(t.$slots,"title")]),l.createElementVNode("p",b_e,l.toDisplayString(e.description),1)]),l.createElementVNode("div",w_e,[l.renderSlot(t.$slots,"header")])]),l.renderSlot(t.$slots,"default")]),_:3}))}},x_e={},C_e={class:"min-h-11 pl-3 py-1 sm:flex sm:items-center sm:justify-between content-center std-light dark:std-dark"},S_e={class:"mt-3 flex sm:mt-0"};function k_e(e,t){return l.openBlock(),l.createElementBlock("div",C_e,[l.renderSlot(e.$slots,"title"),l.createElementVNode("div",S_e,[l.renderSlot(e.$slots,"buttons")])])}const M_e=ar(x_e,[["render",k_e]]),E_e={class:"py-1"},L_e=["onClick"],sO={__name:"Select",props:{options:{type:Array,required:!0},direction:{type:String,default:"left"},optionsSize:{type:String,default:"40"},size:{type:String,default:"xs"},color:String,current:{type:String,default:""},disabled:Boolean,dense:Boolean},emits:["select"],setup(e,{emit:t}){const n=e,r=t;function i(a){return n.current===a||n.current===(a==null?void 0:a.label)}return(a,o)=>(l.openBlock(),l.createBlock(l.unref(Ed),{as:"div",class:"relative inline-block text-left"},{default:l.withCtx(()=>[l.createVNode(l.unref(Ld),{class:l.normalizeClass([`group inline-flex justify-center text-${e.size} font-medium`,{"std-btn std-btn-red":e.color==="red"},{"std-btn std-btn-green":e.color==="green"},{"std-btn std-btn-blue":e.color==="blue"},{"px-3! py-1!":e.dense}]),disabled:e.disabled},{default:l.withCtx(()=>[l.renderSlot(a.$slots,"btn")]),_:3},8,["class","disabled"]),l.createVNode(l.Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:l.withCtx(()=>[l.createVNode(l.unref(Td),{class:l.normalizeClass([`std-white input-dropdown w-${e.optionsSize} origin-top-right shadow-lg max-h-96`,e.direction==="right"?"left-0 ":"right-0",{"std-red":e.color==="red"},{"std-green":e.color==="green"},{"std-blue":e.color==="blue"},{"std-white":e.color!=="red"&&e.color!=="blue"&&e.color!=="green"}])},{default:l.withCtx(()=>[l.createElementVNode("div",E_e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.options,s=>(l.openBlock(),l.createBlock(l.unref(eu),{key:s},{default:l.withCtx(({active:u})=>[l.createElementVNode("span",{class:l.normalizeClass([{"outline-hidden":u},{"white-bg-hover dark:dark-bg-hover":e.color!=="red"&&e.color!=="blue"&&e.color!=="green"&&(u||i(s))},{"std-red-hover-light":e.color==="red"&&(u||i(s))},{"std-blue-hover-light":e.color==="blue"&&(u||i(s))},{"std-green-hover-light":e.color==="green"&&(u||i(s))},`group flex w-full items-center rounded-md px-2 py-2 text-${e.size} cursor-pointer`]),onClick:l.withModifiers(c=>r("select",s),["stop"])},l.toDisplayString((s==null?void 0:s.label)||s),11,L_e)]),_:2},1024))),128))])]),_:1},8,["class"])]),_:1})]),_:3}))}},lO={__name:"Sort",props:{options:{type:Array,required:!0},direction:{type:String,default:"left"},current:{type:Object,default:()=>({})},size:{type:String,default:"xs"}},emits:["sort"],setup(e,{emit:t}){const n=e,r=t,i=l.computed(()=>n.size==="xs"?"icon":n.size==="sm"?"icon-md":n.size==="md"?"icon-lg":n.size==="lg"?"icon-xl":"icon");return(a,o)=>(l.openBlock(),l.createBlock(sO,{options:e.options,current:e.current.label,direction:e.direction,size:e.size,onSelect:o[0]||(o[0]=s=>r("sort",s))},{btn:l.withCtx(()=>[l.createVNode(l.unref(oN),{class:l.normalizeClass(`${i.value} mr-2`)},null,8,["class"]),o[1]||(o[1]=l.createTextVNode(" Sort By ",-1)),l.createVNode(l.unref(A1),{class:l.normalizeClass(`${i.value} ml-2`)},null,8,["class"])]),_:1},8,["options","current","direction","size"]))}},T_e={class:"row py-0.5 border-b items-center"},uO={__name:"CheckDropdown",props:{options:{type:Array,required:!0},text:{type:String,default:"Filter"},size:{type:String,default:"sm"},color:String,direction:{type:String,default:"left"},optionsSize:{type:String,default:"40"},disabled:Boolean,dense:Boolean,selectAll:{type:Boolean,default:!0}},emits:[],setup(e,{emit:t}){const n=e,r=l.ref(!!n.selectAll),i=l.computed(()=>n.size==="xs"?"icon":n.size==="sm"?"icon-md":n.size==="md"?"icon-lg":n.size==="lg"?"icon-xl":"icon");function a(){const o=r.value;n.options.forEach(s=>{s.checked=o})}return(o,s)=>(l.openBlock(),l.createBlock(l.unref(Cw),{as:"div",class:"relative inline-block text-left"},{default:l.withCtx(()=>[l.createVNode(l.unref(E6),{class:l.normalizeClass([`group inline-flex justify-center text-${e.size} font-medium`,{"std-btn std-btn-red":e.color==="red"},{"std-btn std-btn-green":e.color==="green"},{"std-btn std-btn-blue":e.color==="blue"},{"px-3! py-1!":e.dense}]),disabled:e.disabled},{default:l.withCtx(()=>[l.renderSlot(o.$slots,"btn"),l.createTextVNode(" "+l.toDisplayString(e.text)+" ",1),l.createVNode(l.unref(Q6),{class:l.normalizeClass([i.value])},null,8,["class"])]),_:3},8,["class","disabled"]),l.createVNode(l.Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:l.withCtx(()=>[l.createVNode(l.unref(L6),{class:l.normalizeClass(["std-white input-dropdown origin-top-right shadow-lg max-h-96",`w-${e.optionsSize}`,e.direction==="right"?"left-0 ":"right-0",{"std-red":e.color==="red"},{"std-green":e.color==="green"},{"std-blue":e.color==="blue"},{"std-white":e.color!=="red"&&e.color!=="blue"&&e.color!=="green"}])},{default:l.withCtx(()=>[l.createElementVNode("div",null,[l.createElementVNode("span",T_e,[l.createVNode(tu,{modelValue:r.value,"onUpdate:modelValue":[s[0]||(s[0]=u=>r.value=u),a],size:e.size},null,8,["modelValue","size"]),l.createElementVNode("span",{class:l.normalizeClass(`ml-1 text-${e.size}`)},"Select All",2)]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.options,(u,c)=>(l.openBlock(),l.createElementBlock("span",{class:l.normalizeClass(["row py-0.5 items-center",{"border-b":c<e.options.length-1}])},[l.createVNode(tu,{modelValue:u.checked,"onUpdate:modelValue":A=>u.checked=A,disabled:r.value,size:e.size},null,8,["modelValue","onUpdate:modelValue","disabled","size"]),l.createElementVNode("span",{class:l.normalizeClass([`ml-1 text-${e.size}`,{"font-thin":r.value}])},l.toDisplayString(u.label),3)],2))),256))])]),_:1},8,["class"])]),_:1})]),_:3}))}},N_e={__name:"Filter",props:{filters:{type:Array,required:!0},text:{type:String,default:"Filter By"},direction:{type:String,default:"left"},size:{type:String,default:"xs"},optionsSize:{type:String,default:"40"},disabled:Boolean,dense:Boolean,selectAll:{type:Boolean,default:!0}},setup(e){const t=e,n=l.computed(()=>t.size==="xs"?"icon":t.size==="sm"?"icon-md":t.size==="md"?"icon-lg":t.size==="lg"?"icon-xl":"icon");return(r,i)=>(l.openBlock(),l.createBlock(uO,{options:e.filters,text:e.text,direction:e.direction,size:e.size,optionsSize:e.optionsSize,disabled:e.disabled,dense:e.dense,selectAll:e.selectAll},{btn:l.withCtx(()=>[l.createVNode(l.unref(GAe),{class:l.normalizeClass(`${n.value} mr-2`)},null,8,["class"])]),_:1},8,["options","text","direction","size","optionsSize","disabled","dense","selectAll"]))}},F_e=["title"],O_e={key:1,class:"text-xs"},D_e={__name:"Flag",props:{country:String,city:String,org:String,squared:{type:Boolean,default:!1}},emits:[],setup(e,{emit:t}){const n=e;return(r,i)=>(l.openBlock(),l.createElementBlock("div",null,[e.country?(l.openBlock(),l.createElementBlock("span",{key:0,class:l.normalizeClass(["fi mr-1",{fis:n.squared},`fi-${n.country.toLowerCase()}`]),title:e.country},null,10,F_e)):l.createCommentVNode("",!0),e.city?(l.openBlock(),l.createElementBlock("span",O_e,l.toDisplayString(e.city)+", "+l.toDisplayString(e.org),1)):l.createCommentVNode("",!0)]))}},I_e={class:"col md:flex-row md:justify-between gap-x-5 my-4"},U_e={class:"col items-center mt-2"},P_e={class:"row"},H_e={class:"text-5xl font-semibold"},Y_e={class:"font-light"},R_e={class:"col items-center mt-2"},Q_e={class:"row"},j_e={class:"text-5xl font-semibold"},V_e={class:"font-light"},z_e={class:"col items-center mt-2"},q_e={class:"row"},K_e={class:"text-5xl font-semibold"},G_e={class:"font-light"},W_e={__name:"ThreeHomePanel",props:{firstPanelValue:[Number,String],firstPanelName:String,secondPanelValue:[Number,String],secondPanelName:String,thirdPanelValue:[Number,String],thirdPanelName:String,shadow:{type:Boolean,default:!1}},emits:["panel"],setup(e,{emit:t}){const n=t;return(r,i)=>(l.openBlock(),l.createElementBlock("div",I_e,[l.createVNode(bm,{class:l.normalizeClass(["md:w-1/3",{"dark:bg-black":e.shadow}]),onClick:i[0]||(i[0]=a=>n("panel",1))},{default:l.withCtx(()=>[l.createElementVNode("div",U_e,[l.createElementVNode("div",P_e,[l.renderSlot(r.$slots,"firstPanelIcon"),l.createElementVNode("div",H_e,l.toDisplayString(e.firstPanelValue),1)]),l.createElementVNode("div",Y_e,l.toDisplayString(e.firstPanelName),1)])]),_:3},8,["class"]),l.createVNode(bm,{class:l.normalizeClass(["md:w-1/3",{"dark:bg-black":e.shadow}]),onClick:i[1]||(i[1]=a=>n("panel",2))},{default:l.withCtx(()=>[l.createElementVNode("div",R_e,[l.createElementVNode("div",Q_e,[l.renderSlot(r.$slots,"secondPanelIcon"),l.createElementVNode("div",j_e,l.toDisplayString(e.secondPanelValue),1)]),l.createElementVNode("div",V_e,l.toDisplayString(e.secondPanelName),1)])]),_:3},8,["class"]),l.createVNode(bm,{class:l.normalizeClass(["md:w-1/3",{"dark:bg-black":e.shadow}]),onClick:i[2]||(i[2]=a=>n("panel",3))},{default:l.withCtx(()=>[l.createElementVNode("div",z_e,[l.createElementVNode("div",q_e,[l.renderSlot(r.$slots,"thirdPanelIcon"),l.createElementVNode("div",K_e,l.toDisplayString(e.thirdPanelValue),1)]),l.createElementVNode("div",G_e,l.toDisplayString(e.thirdPanelName),1)])]),_:3},8,["class"])]))}};function wA(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function ig(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function X1(e){let t,n,r;e.length!==2?(t=wA,n=(s,u)=>wA(e(s),u),r=(s,u)=>e(s)-u):(t=e===wA||e===ig?e:X_e,n=e,r=e);function i(s,u,c=0,A=s.length){if(c<A){if(t(u,u)!==0)return A;do{const f=c+A>>>1;n(s[f],u)<0?c=f+1:A=f}while(c<A)}return c}function a(s,u,c=0,A=s.length){if(c<A){if(t(u,u)!==0)return A;do{const f=c+A>>>1;n(s[f],u)<=0?c=f+1:A=f}while(c<A)}return c}function o(s,u,c=0,A=s.length){const f=i(s,u,c,A-1);return f>c&&r(s[f-1],u)>-r(s[f],u)?f-1:f}return{left:i,center:o,right:a}}function X_e(){return 0}function cO(e){return e===null?NaN:+e}function*J_e(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 J1=X1(wA).right;X1(cO).center;function SB(e,t){let n=0;for(let r of e)r!=null&&(r=+r)>=r&&++n;return n}function Z_e(e){return e.length|0}function $_e(e){return!(e>0)}function ebe(e){return typeof e!="object"||"length"in e?e:Array.from(e)}function tbe(e){return t=>e(...t)}function nbe(...e){const t=typeof e[e.length-1]=="function"&&tbe(e.pop());e=e.map(ebe);const n=e.map(Z_e),r=e.length-1,i=new Array(r+1).fill(0),a=[];if(r<0||n.some($_e))return a;for(;;){a.push(i.map((s,u)=>e[u][s]));let o=r;for(;++i[o]===n[o];){if(o===0)return t?a.map(t):a;i[o--]=0}}}function AO(e,t){let n=0,r,i=0,a=0;if(t===void 0)for(let o of e)o!=null&&(o=+o)>=o&&(r=o-i,i+=r/++n,a+=r*(o-i));else{let o=-1;for(let s of e)(s=t(s,++o,e))!=null&&(s=+s)>=s&&(r=s-i,i+=r/++n,a+=r*(s-i))}if(n>1)return a/(n-1)}function dO(e,t){const n=AO(e,t);return n&&Math.sqrt(n)}function ii(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 a of e)(a=t(a,++i,e))!=null&&(n===void 0?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)))}return[n,r]}class Zd{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 a=n[i],o=t+a,s=Math.abs(t)<Math.abs(a)?t-(o-a):a-(o-t);s&&(n[r++]=s),t=o}return n[r]=t,this._n=r+1,this}valueOf(){const t=this._partials;let n=this._n,r,i,a,o=0;if(n>0){for(o=t[--n];n>0&&(r=o,i=t[--n],o=r+i,a=i-(o-r),!a););n>0&&(a<0&&t[n-1]<0||a>0&&t[n-1]>0)&&(i=a*2,r=o+i,i==r-o&&(o=r))}return o}}class ag extends Map{constructor(t,n=pO){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(kB(this,t))}has(t){return super.has(kB(this,t))}set(t,n){return super.set(fO(this,t),n)}delete(t){return super.delete(hO(this,t))}}class og extends Set{constructor(t,n=pO){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const r of t)this.add(r)}has(t){return super.has(kB(this,t))}add(t){return super.add(fO(this,t))}delete(t){return super.delete(hO(this,t))}}function kB({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function fO({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function hO({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function pO(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Z1(e){return e}function mO(e,...t){return ey(e,Z1,Z1,t)}function $1(e,t,...n){return ey(e,Z1,t,n)}function rbe(e,t,...n){return ey(e,Array.from,t,n)}function gO(e,...t){return ey(e,Z1,ibe,t)}function ibe(e){if(e.length!==1)throw new Error("duplicate key");return e[0]}function ey(e,t,n,r){return function i(a,o){if(o>=r.length)return n(a);const s=new ag,u=r[o++];let c=-1;for(const A of a){const f=u(A,++c,a),h=s.get(f);h?h.push(A):s.set(f,[A])}for(const[A,f]of s)s.set(A,i(f,o));return t(s)}(e,0)}function abe(e,t){return Array.from(t,n=>e[n])}function vO(e,...t){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");e=Array.from(e);let[n]=t;if(n&&n.length!==2||t.length>1){const r=Uint32Array.from(e,(i,a)=>a);return t.length>1?(t=t.map(i=>e.map(i)),r.sort((i,a)=>{for(const o of t){const s=ty(o[i],o[a]);if(s)return s}})):(n=e.map(n),r.sort((i,a)=>ty(n[i],n[a]))),abe(e,r)}return e.sort(yO(n))}function yO(e=wA){if(e===wA)return ty;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 ty(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const obe=Math.sqrt(50),sbe=Math.sqrt(10),lbe=Math.sqrt(2);function ny(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=obe?10:a>=sbe?5:a>=lbe?2:1;let s,u,c;return i<0?(c=Math.pow(10,-i)/o,s=Math.round(e*c),u=Math.round(t*c),s/c<e&&++s,u/c>t&&--u,c=-c):(c=Math.pow(10,i)*o,s=Math.round(e/c),u=Math.round(t/c),s*c<e&&++s,u*c>t&&--u),u<s&&.5<=n&&n<2?ny(e,t,n*2):[s,u,c]}function Ac(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,a,o]=r?ny(t,e,n):ny(e,t,n);if(!(a>=i))return[];const s=a-i+1,u=new Array(s);if(r)if(o<0)for(let c=0;c<s;++c)u[c]=(a-c)/-o;else for(let c=0;c<s;++c)u[c]=(a-c)*o;else if(o<0)for(let c=0;c<s;++c)u[c]=(i+c)/-o;else for(let c=0;c<s;++c)u[c]=(i+c)*o;return u}function ry(e,t,n){return t=+t,e=+e,n=+n,ny(e,t,n)[2]}function MB(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?ry(t,e,n):ry(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function ube(e){return Math.max(1,Math.ceil(Math.log(SB(e))/Math.LN2)+1)}function Pi(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 cbe(e,t){let n,r=-1,i=-1;if(t===void 0)for(const a of e)++i,a!=null&&(n<a||n===void 0&&a>=a)&&(n=a,r=i);else for(let a of e)(a=t(a,++i,e))!=null&&(n<a||n===void 0&&a>=a)&&(n=a,r=i);return r}function Dh(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 Abe(e,t){let n,r=-1,i=-1;if(t===void 0)for(const a of e)++i,a!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=i);else for(let a of e)(a=t(a,++i,e))!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=i);return r}function _O(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?ty:yO(i);r>n;){if(r-n>600){const u=r-n+1,c=t-n+1,A=Math.log(u),f=.5*Math.exp(2*A/3),h=.5*Math.sqrt(A*f*(u-f)/u)*(c-u/2<0?-1:1),d=Math.max(n,Math.floor(t-c*f/u+h)),m=Math.min(r,Math.floor(t+(u-c)*f/u+h));_O(e,t,d,m,i)}const a=e[t];let o=n,s=r;for(sg(e,n,t),i(e[r],a)>0&&sg(e,n,r);o<s;){for(sg(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[n],a)===0?sg(e,n,s):(++s,sg(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function sg(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Ih(e,t,n){if(e=Float64Array.from(J_e(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return Dh(e);if(t>=1)return Pi(e);var r,i=(r-1)*t,a=Math.floor(i),o=Pi(_O(e,a).subarray(0,a+1)),s=Dh(e.subarray(a+1));return o+(s-o)*(i-a)}}function dbe(e,t,n=cO){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e),s=+n(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function fbe(e,t,n){const r=SB(e),i=Ih(e,.75)-Ih(e,.25);return r&&i?Math.ceil((n-t)/(2*i*Math.pow(r,-1/3))):1}function bO(e,t,n){const r=SB(e),i=dO(e);return r&&i?Math.ceil((n-t)*Math.cbrt(r)/(3.49*i)):1}function hbe(e,t){let n=0,r=0;if(t===void 0)for(let i of e)i!=null&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let a of e)(a=t(a,++i,e))!=null&&(a=+a)>=a&&(++n,r+=a)}if(n)return r/n}function EB(e,t){return Ih(e,.5,t)}function*pbe(e){for(const t of e)yield*t}function wO(e){return Array.from(pbe(e))}function mbe(e,t){const n=new ag;if(t===void 0)for(let a of e)a!=null&&a>=a&&n.set(a,(n.get(a)||0)+1);else{let a=-1;for(let o of e)(o=t(o,++a,e))!=null&&o>=o&&n.set(o,(n.get(o)||0)+1)}let r,i=0;for(const[a,o]of n)o>i&&(i=o,r=a);return r}function gbe(e,t=vbe){const n=[];let r,i=!1;for(const a of e)i&&n.push(t(r,a)),r=a,i=!0;return n}function vbe(e,t){return[e,t]}function LB(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(i);++r<i;)a[r]=e+r*n;return a}function iy(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 ay(e){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(e).reverse()}function BO(...e){const t=new og;for(const n of e)for(const r of n)t.add(r);return t}function ybe(e){return e}var oy=1,sy=2,TB=3,lg=4,xO=1e-6;function _be(e){return"translate("+e+",0)"}function bbe(e){return"translate(0,"+e+")"}function wbe(e){return t=>+e(t)}function Bbe(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function xbe(){return!this.__axis}function ly(e,t){var n=[],r=null,i=null,a=6,o=6,s=3,u=typeof window<"u"&&window.devicePixelRatio>1?0:.5,c=e===oy||e===lg?-1:1,A=e===lg||e===sy?"x":"y",f=e===oy||e===TB?_be:bbe;function h(d){var m=r??(t.ticks?t.ticks.apply(t,n):t.domain()),p=i??(t.tickFormat?t.tickFormat.apply(t,n):ybe),g=Math.max(a,0)+s,v=t.range(),y=+v[0]+u,_=+v[v.length-1]+u,b=(t.bandwidth?Bbe:wbe)(t.copy(),u),w=d.selection?d.selection():d,C=w.selectAll(".domain").data([null]),B=w.selectAll(".tick").data(m,t).order(),E=B.exit(),N=B.enter().append("g").attr("class","tick"),P=B.select("line"),k=B.select("text");C=C.merge(C.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),B=B.merge(N),P=P.merge(N.append("line").attr("stroke","currentColor").attr(A+"2",c*a)),k=k.merge(N.append("text").attr("fill","currentColor").attr(A,c*g).attr("dy",e===oy?"0em":e===TB?"0.71em":"0.32em")),d!==w&&(C=C.transition(d),B=B.transition(d),P=P.transition(d),k=k.transition(d),E=E.transition(d).attr("opacity",xO).attr("transform",function(F){return isFinite(F=b(F))?f(F+u):this.getAttribute("transform")}),N.attr("opacity",xO).attr("transform",function(F){var D=this.parentNode.__axis;return f((D&&isFinite(D=D(F))?D:b(F))+u)})),E.remove(),C.attr("d",e===lg||e===sy?o?"M"+c*o+","+y+"H"+u+"V"+_+"H"+c*o:"M"+u+","+y+"V"+_:o?"M"+y+","+c*o+"V"+u+"H"+_+"V"+c*o:"M"+y+","+u+"H"+_),B.attr("opacity",1).attr("transform",function(F){return f(b(F)+u)}),P.attr(A+"2",c*a),k.attr(A,c*g).text(p),w.filter(xbe).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===sy?"start":e===lg?"end":"middle"),w.each(function(){this.__axis=b})}return h.scale=function(d){return arguments.length?(t=d,h):t},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(d){return arguments.length?(n=d==null?[]:Array.from(d),h):n.slice()},h.tickValues=function(d){return arguments.length?(r=d==null?null:Array.from(d),h):r&&r.slice()},h.tickFormat=function(d){return arguments.length?(i=d,h):i},h.tickSize=function(d){return arguments.length?(a=o=+d,h):a},h.tickSizeInner=function(d){return arguments.length?(a=+d,h):a},h.tickSizeOuter=function(d){return arguments.length?(o=+d,h):o},h.tickPadding=function(d){return arguments.length?(s=+d,h):s},h.offset=function(d){return arguments.length?(u=+d,h):u},h}function Cbe(e){return ly(oy,e)}function Sbe(e){return ly(sy,e)}function uo(e){return ly(TB,e)}function $d(e){return ly(lg,e)}var kbe={value:()=>{}};function NB(){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 uy(n)}function uy(e){this._=e}function Mbe(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}})}uy.prototype=NB.prototype={constructor:uy,on:function(e,t){var n=this._,r=Mbe(e+"",n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=Ebe(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=CO(n[i],e.name,t);else if(t==null)for(i in n)n[i]=CO(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 uy(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function Ebe(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function CO(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=kbe,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var FB="http://www.w3.org/1999/xhtml";const Uh={svg:"http://www.w3.org/2000/svg",xhtml:FB,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function cy(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Uh.hasOwnProperty(t)?{space:Uh[t],local:e}:e}function Lbe(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===FB&&t.documentElement.namespaceURI===FB?t.createElement(e):t.createElementNS(n,e)}}function Tbe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Ay(e){var t=cy(e);return(t.local?Tbe:Lbe)(t)}function Nbe(){}function OB(e){return e==null?Nbe:function(){return this.querySelector(e)}}function Fbe(e){typeof e!="function"&&(e=OB(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=new Array(o),u,c,A=0;A<o;++A)(u=a[A])&&(c=e.call(u,u.__data__,A,a))&&("__data__"in u&&(c.__data__=u.__data__),s[A]=c);return new co(r,this._parents)}function SO(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Obe(){return[]}function kO(e){return e==null?Obe:function(){return this.querySelectorAll(e)}}function Dbe(e){return function(){return SO(e.apply(this,arguments))}}function Ibe(e){typeof e=="function"?e=Dbe(e):e=kO(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,u,c=0;c<s;++c)(u=o[c])&&(r.push(e.call(u,u.__data__,c,o)),i.push(u));return new co(r,i)}function MO(e){return function(){return this.matches(e)}}function EO(e){return function(t){return t.matches(e)}}var Ube=Array.prototype.find;function Pbe(e){return function(){return Ube.call(this.children,e)}}function Hbe(){return this.firstElementChild}function Ybe(e){return this.select(e==null?Hbe:Pbe(typeof e=="function"?e:EO(e)))}var Rbe=Array.prototype.filter;function Qbe(){return Array.from(this.children)}function jbe(e){return function(){return Rbe.call(this.children,e)}}function Vbe(e){return this.selectAll(e==null?Qbe:jbe(typeof e=="function"?e:EO(e)))}function zbe(e){typeof e!="function"&&(e=MO(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],u,c=0;c<o;++c)(u=a[c])&&e.call(u,u.__data__,c,a)&&s.push(u);return new co(r,this._parents)}function LO(e){return new Array(e.length)}function qbe(){return new co(this._enter||this._groups.map(LO),this._parents)}function dy(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}dy.prototype={constructor:dy,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 Kbe(e){return function(){return e}}function Gbe(e,t,n,r,i,a){for(var o=0,s,u=t.length,c=a.length;o<c;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new dy(e,a[o]);for(;o<u;++o)(s=t[o])&&(i[o]=s)}function Wbe(e,t,n,r,i,a,o){var s,u,c=new Map,A=t.length,f=a.length,h=new Array(A),d;for(s=0;s<A;++s)(u=t[s])&&(h[s]=d=o.call(u,u.__data__,s,t)+"",c.has(d)?i[s]=u:c.set(d,u));for(s=0;s<f;++s)d=o.call(e,a[s],s,a)+"",(u=c.get(d))?(r[s]=u,u.__data__=a[s],c.delete(d)):n[s]=new dy(e,a[s]);for(s=0;s<A;++s)(u=t[s])&&c.get(h[s])===u&&(i[s]=u)}function Xbe(e){return e.__data__}function Jbe(e,t){if(!arguments.length)return Array.from(this,Xbe);var n=t?Wbe:Gbe,r=this._parents,i=this._groups;typeof e!="function"&&(e=Kbe(e));for(var a=i.length,o=new Array(a),s=new Array(a),u=new Array(a),c=0;c<a;++c){var A=r[c],f=i[c],h=f.length,d=Zbe(e.call(A,A&&A.__data__,c,r)),m=d.length,p=s[c]=new Array(m),g=o[c]=new Array(m),v=u[c]=new Array(h);n(A,f,p,g,v,d,t);for(var y=0,_=0,b,w;y<m;++y)if(b=p[y]){for(y>=_&&(_=y+1);!(w=g[_])&&++_<m;);b._next=w||null}}return o=new co(o,r),o._enter=s,o._exit=u,o}function Zbe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function $be(){return new co(this._exit||this._groups.map(LO),this._parents)}function e2e(e,t,n){var r=this.enter(),i=this,a=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?a.remove():n(a),r&&i?r.merge(i).order():i}function t2e(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=new Array(i),u=0;u<o;++u)for(var c=n[u],A=r[u],f=c.length,h=s[u]=new Array(f),d,m=0;m<f;++m)(d=c[m]||A[m])&&(h[m]=d);for(;u<i;++u)s[u]=n[u];return new co(s,this._parents)}function n2e(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function r2e(e){e||(e=i2e);function t(f,h){return f&&h?e(f.__data__,h.__data__):!f-!h}for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,u=i[a]=new Array(s),c,A=0;A<s;++A)(c=o[A])&&(u[A]=c);u.sort(t)}return new co(i,this._parents).order()}function i2e(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function a2e(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function o2e(){return Array.from(this)}function s2e(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function l2e(){let e=0;for(const t of this)++e;return e}function u2e(){return!this.node()}function c2e(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function A2e(e){return function(){this.removeAttribute(e)}}function d2e(e){return function(){this.removeAttributeNS(e.space,e.local)}}function f2e(e,t){return function(){this.setAttribute(e,t)}}function h2e(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function p2e(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function m2e(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 g2e(e,t){var n=cy(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?d2e:A2e:typeof t=="function"?n.local?m2e:p2e:n.local?h2e:f2e)(n,t))}function TO(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function v2e(e){return function(){this.style.removeProperty(e)}}function y2e(e,t,n){return function(){this.style.setProperty(e,t,n)}}function _2e(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function b2e(e,t,n){return arguments.length>1?this.each((t==null?v2e:typeof t=="function"?_2e:y2e)(e,t,n??"")):Ph(this.node(),e)}function Ph(e,t){return e.style.getPropertyValue(t)||TO(e).getComputedStyle(e,null).getPropertyValue(t)}function w2e(e){return function(){delete this[e]}}function B2e(e,t){return function(){this[e]=t}}function x2e(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function C2e(e,t){return arguments.length>1?this.each((t==null?w2e:typeof t=="function"?x2e:B2e)(e,t)):this.node()[e]}function NO(e){return e.trim().split(/^|\s+/)}function DB(e){return e.classList||new FO(e)}function FO(e){this._node=e,this._names=NO(e.getAttribute("class")||"")}FO.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 OO(e,t){for(var n=DB(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function DO(e,t){for(var n=DB(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function S2e(e){return function(){OO(this,e)}}function k2e(e){return function(){DO(this,e)}}function M2e(e,t){return function(){(t.apply(this,arguments)?OO:DO)(this,e)}}function E2e(e,t){var n=NO(e+"");if(arguments.length<2){for(var r=DB(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?M2e:t?S2e:k2e)(n,t))}function L2e(){this.textContent=""}function T2e(e){return function(){this.textContent=e}}function N2e(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function F2e(e){return arguments.length?this.each(e==null?L2e:(typeof e=="function"?N2e:T2e)(e)):this.node().textContent}function O2e(){this.innerHTML=""}function D2e(e){return function(){this.innerHTML=e}}function I2e(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function U2e(e){return arguments.length?this.each(e==null?O2e:(typeof e=="function"?I2e:D2e)(e)):this.node().innerHTML}function P2e(){this.nextSibling&&this.parentNode.appendChild(this)}function H2e(){return this.each(P2e)}function Y2e(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function R2e(){return this.each(Y2e)}function Q2e(e){var t=typeof e=="function"?e:Ay(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function j2e(){return null}function V2e(e,t){var n=typeof e=="function"?e:Ay(e),r=t==null?j2e:typeof t=="function"?t:OB(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function z2e(){var e=this.parentNode;e&&e.removeChild(this)}function q2e(){return this.each(z2e)}function K2e(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function G2e(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function W2e(e){return this.select(e?G2e:K2e)}function X2e(e){return arguments.length?this.property("__data__",e):this.node().__data__}function J2e(e){return function(t){e.call(this,t,this.__data__)}}function Z2e(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 $2e(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function ewe(e,t,n){return function(){var r=this.__on,i,a=J2e(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function twe(e,t,n){var r=Z2e(e+""),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var u=0,c=s.length,A;u<c;++u)for(i=0,A=s[u];i<a;++i)if((o=r[i]).type===A.type&&o.name===A.name)return A.value}return}for(s=t?ewe:$2e,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function IO(e,t,n){var r=TO(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 nwe(e,t){return function(){return IO(this,e,t)}}function rwe(e,t){return function(){return IO(this,e,t.apply(this,arguments))}}function iwe(e,t){return this.each((typeof t=="function"?rwe:nwe)(e,t))}function*awe(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var IB=[null];function co(e,t){this._groups=e,this._parents=t}function ug(){return new co([[document.documentElement]],IB)}function owe(){return this}co.prototype=ug.prototype={constructor:co,select:Fbe,selectAll:Ibe,selectChild:Ybe,selectChildren:Vbe,filter:zbe,data:Jbe,enter:qbe,exit:$be,join:e2e,merge:t2e,selection:owe,order:n2e,sort:r2e,call:a2e,nodes:o2e,node:s2e,size:l2e,empty:u2e,each:c2e,attr:g2e,style:b2e,property:C2e,classed:E2e,text:F2e,html:U2e,raise:H2e,lower:R2e,append:Q2e,insert:V2e,remove:q2e,clone:W2e,datum:X2e,on:twe,dispatch:iwe,[Symbol.iterator]:awe};function Ot(e){return typeof e=="string"?new co([[document.querySelector(e)]],[document.documentElement]):new co([[e]],IB)}function swe(e){let t;for(;t=e.sourceEvent;)e=t;return e}function fy(e,t){if(e=swe(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]}function Pn(e){return typeof e=="string"?new co([document.querySelectorAll(e)],[document.documentElement]):new co([SO(e)],IB)}const UB={capture:!0,passive:!1};function PB(e){e.preventDefault(),e.stopImmediatePropagation()}function lwe(e){var t=e.document.documentElement,n=Ot(e).on("dragstart.drag",PB,UB);"onselectstart"in t?n.on("selectstart.drag",PB,UB):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function uwe(e,t){var n=e.document.documentElement,r=Ot(e).on("dragstart.drag",null);t&&(r.on("click.drag",PB,UB),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 Hh(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function cg(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function BA(){}var ef=.7,Yh=1/ef,Rh="\\s*([+-]?\\d+)\\s*",Ag="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",du="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",cwe=/^#([0-9a-f]{3,8})$/,Awe=new RegExp(`^rgb\\(${Rh},${Rh},${Rh}\\)$`),dwe=new RegExp(`^rgb\\(${du},${du},${du}\\)$`),fwe=new RegExp(`^rgba\\(${Rh},${Rh},${Rh},${Ag}\\)$`),hwe=new RegExp(`^rgba\\(${du},${du},${du},${Ag}\\)$`),pwe=new RegExp(`^hsl\\(${Ag},${du},${du}\\)$`),mwe=new RegExp(`^hsla\\(${Ag},${du},${du},${Ag}\\)$`),UO={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};Hh(BA,tf,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:PO,formatHex:PO,formatHex8:gwe,formatHsl:vwe,formatRgb:HO,toString:HO});function PO(){return this.rgb().formatHex()}function gwe(){return this.rgb().formatHex8()}function vwe(){return VO(this).formatHsl()}function HO(){return this.rgb().formatRgb()}function tf(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=cwe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?YO(t):n===3?new sa(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?hy(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?hy(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=Awe.exec(e))?new sa(t[1],t[2],t[3],1):(t=dwe.exec(e))?new sa(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=fwe.exec(e))?hy(t[1],t[2],t[3],t[4]):(t=hwe.exec(e))?hy(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=pwe.exec(e))?jO(t[1],t[2]/100,t[3]/100,1):(t=mwe.exec(e))?jO(t[1],t[2]/100,t[3]/100,t[4]):UO.hasOwnProperty(e)?YO(UO[e]):e==="transparent"?new sa(NaN,NaN,NaN,0):null}function YO(e){return new sa(e>>16&255,e>>8&255,e&255,1)}function hy(e,t,n,r){return r<=0&&(e=t=n=NaN),new sa(e,t,n,r)}function HB(e){return e instanceof BA||(e=tf(e)),e?(e=e.rgb(),new sa(e.r,e.g,e.b,e.opacity)):new sa}function xA(e,t,n,r){return arguments.length===1?HB(e):new sa(e,t,n,r??1)}function sa(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Hh(sa,xA,cg(BA,{brighter(e){return e=e==null?Yh:Math.pow(Yh,e),new sa(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ef:Math.pow(ef,e),new sa(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new sa(nf(this.r),nf(this.g),nf(this.b),py(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:RO,formatHex:RO,formatHex8:ywe,formatRgb:QO,toString:QO}));function RO(){return`#${rf(this.r)}${rf(this.g)}${rf(this.b)}`}function ywe(){return`#${rf(this.r)}${rf(this.g)}${rf(this.b)}${rf((isNaN(this.opacity)?1:this.opacity)*255)}`}function QO(){const e=py(this.opacity);return`${e===1?"rgb(":"rgba("}${nf(this.r)}, ${nf(this.g)}, ${nf(this.b)}${e===1?")":`, ${e})`}`}function py(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function nf(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function rf(e){return e=nf(e),(e<16?"0":"")+e.toString(16)}function jO(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new cl(e,t,n,r)}function VO(e){if(e instanceof cl)return new cl(e.h,e.s,e.l,e.opacity);if(e instanceof BA||(e=tf(e)),!e)return new cl;if(e instanceof cl)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,u=(a+i)/2;return s?(t===a?o=(n-r)/s+(n<r)*6:n===a?o=(r-t)/s+2:o=(t-n)/s+4,s/=u<.5?a+i:2-a-i,o*=60):s=u>0&&u<1?0:o,new cl(o,s,u,e.opacity)}function YB(e,t,n,r){return arguments.length===1?VO(e):new cl(e,t,n,r??1)}function cl(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Hh(cl,YB,cg(BA,{brighter(e){return e=e==null?Yh:Math.pow(Yh,e),new cl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ef:Math.pow(ef,e),new cl(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 sa(RB(e>=240?e-240:e+120,i,r),RB(e,i,r),RB(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new cl(zO(this.h),my(this.s),my(this.l),py(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=py(this.opacity);return`${e===1?"hsl(":"hsla("}${zO(this.h)}, ${my(this.s)*100}%, ${my(this.l)*100}%${e===1?")":`, ${e})`}`}}));function zO(e){return e=(e||0)%360,e<0?e+360:e}function my(e){return Math.max(0,Math.min(1,e||0))}function RB(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 qO=Math.PI/180,KO=180/Math.PI,gy=18,GO=.96422,WO=1,XO=.82521,JO=4/29,Qh=6/29,ZO=3*Qh*Qh,_we=Qh*Qh*Qh;function $O(e){if(e instanceof fu)return new fu(e.l,e.a,e.b,e.opacity);if(e instanceof dc)return e7(e);e instanceof sa||(e=HB(e));var t=qB(e.r),n=qB(e.g),r=qB(e.b),i=jB((.2225045*t+.7168786*n+.0606169*r)/WO),a,o;return t===n&&n===r?a=o=i:(a=jB((.4360747*t+.3850649*n+.1430804*r)/GO),o=jB((.0139322*t+.0971045*n+.7141733*r)/XO)),new fu(116*i-16,500*(a-i),200*(i-o),e.opacity)}function QB(e,t,n,r){return arguments.length===1?$O(e):new fu(e,t,n,r??1)}function fu(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}Hh(fu,QB,cg(BA,{brighter(e){return new fu(this.l+gy*(e??1),this.a,this.b,this.opacity)},darker(e){return new fu(this.l-gy*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=GO*VB(t),e=WO*VB(e),n=XO*VB(n),new sa(zB(3.1338561*t-1.6168667*e-.4906146*n),zB(-.9787684*t+1.9161415*e+.033454*n),zB(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function jB(e){return e>_we?Math.pow(e,1/3):e/ZO+JO}function VB(e){return e>Qh?e*e*e:ZO*(e-JO)}function zB(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function qB(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function bwe(e){if(e instanceof dc)return new dc(e.h,e.c,e.l,e.opacity);if(e instanceof fu||(e=$O(e)),e.a===0&&e.b===0)return new dc(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*KO;return new dc(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function KB(e,t,n,r){return arguments.length===1?bwe(e):new dc(e,t,n,r??1)}function dc(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function e7(e){if(isNaN(e.h))return new fu(e.l,0,0,e.opacity);var t=e.h*qO;return new fu(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Hh(dc,KB,cg(BA,{brighter(e){return new dc(this.h,this.c,this.l+gy*(e??1),this.opacity)},darker(e){return new dc(this.h,this.c,this.l-gy*(e??1),this.opacity)},rgb(){return e7(this).rgb()}}));var t7=-.14861,GB=1.78277,WB=-.29227,vy=-.90649,dg=1.97294,n7=dg*vy,r7=dg*GB,i7=GB*WB-vy*t7;function wwe(e){if(e instanceof af)return new af(e.h,e.s,e.l,e.opacity);e instanceof sa||(e=HB(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(i7*r+n7*t-r7*n)/(i7+n7-r7),a=r-i,o=(dg*(n-i)-WB*a)/vy,s=Math.sqrt(o*o+a*a)/(dg*i*(1-i)),u=s?Math.atan2(o,a)*KO-120:NaN;return new af(u<0?u+360:u,s,i,e.opacity)}function hu(e,t,n,r){return arguments.length===1?wwe(e):new af(e,t,n,r??1)}function af(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Hh(af,hu,cg(BA,{brighter(e){return e=e==null?Yh:Math.pow(Yh,e),new af(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ef:Math.pow(ef,e),new af(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*qO,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new sa(255*(t+n*(t7*r+GB*i)),255*(t+n*(WB*r+vy*i)),255*(t+n*(dg*r)),this.opacity)}}));function Bwe(e,t,n,r,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*r+o*i)/6}function xwe(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],a=e[r+1],o=r>0?e[r-1]:2*i-a,s=r<t-1?e[r+2]:2*a-i;return Bwe((n-r/t)*t,o,i,a,s)}}const yy=e=>()=>e;function a7(e,t){return function(n){return e+n*t}}function Cwe(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 XB(e,t){var n=t-e;return n?a7(e,n>180||n<-180?n-360*Math.round(n/360):n):yy(isNaN(e)?t:e)}function Swe(e){return(e=+e)==1?Ha:function(t,n){return n-t?Cwe(t,n,e):yy(isNaN(t)?n:t)}}function Ha(e,t){var n=t-e;return n?a7(e,n):yy(isNaN(e)?t:e)}const of=function e(t){var n=Swe(t);function r(i,a){var o=n((i=xA(i)).r,(a=xA(a)).r),s=n(i.g,a.g),u=n(i.b,a.b),c=Ha(i.opacity,a.opacity);return function(A){return i.r=o(A),i.g=s(A),i.b=u(A),i.opacity=c(A),i+""}}return r.gamma=e,r}(1);function kwe(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),a=new Array(n),o,s;for(o=0;o<n;++o)s=xA(t[o]),r[o]=s.r||0,i[o]=s.g||0,a[o]=s.b||0;return r=e(r),i=e(i),a=e(a),s.opacity=1,function(u){return s.r=r(u),s.g=i(u),s.b=a(u),s+""}}}var Mwe=kwe(xwe);function Ewe(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function Lwe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Twe(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),o;for(o=0;o<r;++o)i[o]=pu(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(s){for(o=0;o<r;++o)a[o]=i[o](s);return a}}function Nwe(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Ya(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Fwe(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]=pu(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var JB=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ZB=new RegExp(JB.source,"g");function Owe(e){return function(){return e}}function Dwe(e){return function(t){return e(t)+""}}function o7(e,t){var n=JB.lastIndex=ZB.lastIndex=0,r,i,a,o=-1,s=[],u=[];for(e=e+"",t=t+"";(r=JB.exec(e))&&(i=ZB.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,u.push({i:o,x:Ya(r,i)})),n=ZB.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?u[0]?Dwe(u[0].x):Owe(t):(t=u.length,function(c){for(var A=0,f;A<t;++A)s[(f=u[A]).i]=f.x(c);return s.join("")})}function pu(e,t){var n=typeof t,r;return t==null||n==="boolean"?yy(t):(n==="number"?Ya:n==="string"?(r=tf(t))?(t=r,of):o7:t instanceof tf?of:t instanceof Date?Nwe:Lwe(t)?Ewe:Array.isArray(t)?Twe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Fwe:Ya)(e,t)}function _y(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var s7=180/Math.PI,$B={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function l7(e,t,n,r,i,a){var o,s,u;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r<t*n&&(e=-e,t=-t,u=-u,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*s7,skewX:Math.atan(u)*s7,scaleX:o,scaleY:s}}var by;function Iwe(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?$B:l7(t.a,t.b,t.c,t.d,t.e,t.f)}function Uwe(e){return e==null||(by||(by=document.createElementNS("http://www.w3.org/2000/svg","g")),by.setAttribute("transform",e),!(e=by.transform.baseVal.consolidate()))?$B:(e=e.matrix,l7(e.a,e.b,e.c,e.d,e.e,e.f))}function u7(e,t,n,r){function i(c){return c.length?c.pop()+" ":""}function a(c,A,f,h,d,m){if(c!==f||A!==h){var p=d.push("translate(",null,t,null,n);m.push({i:p-4,x:Ya(c,f)},{i:p-2,x:Ya(A,h)})}else(f||h)&&d.push("translate("+f+t+h+n)}function o(c,A,f,h){c!==A?(c-A>180?A+=360:A-c>180&&(c+=360),h.push({i:f.push(i(f)+"rotate(",null,r)-2,x:Ya(c,A)})):A&&f.push(i(f)+"rotate("+A+r)}function s(c,A,f,h){c!==A?h.push({i:f.push(i(f)+"skewX(",null,r)-2,x:Ya(c,A)}):A&&f.push(i(f)+"skewX("+A+r)}function u(c,A,f,h,d,m){if(c!==f||A!==h){var p=d.push(i(d)+"scale(",null,",",null,")");m.push({i:p-4,x:Ya(c,f)},{i:p-2,x:Ya(A,h)})}else(f!==1||h!==1)&&d.push(i(d)+"scale("+f+","+h+")")}return function(c,A){var f=[],h=[];return c=e(c),A=e(A),a(c.translateX,c.translateY,A.translateX,A.translateY,f,h),o(c.rotate,A.rotate,f,h),s(c.skewX,A.skewX,f,h),u(c.scaleX,c.scaleY,A.scaleX,A.scaleY,f,h),c=A=null,function(d){for(var m=-1,p=h.length,g;++m<p;)f[(g=h[m]).i]=g.x(d);return f.join("")}}}var Pwe=u7(Iwe,"px, ","px)","deg)"),Hwe=u7(Uwe,", ",")",")");function Ywe(e){return function(t,n){var r=e((t=YB(t)).h,(n=YB(n)).h),i=Ha(t.s,n.s),a=Ha(t.l,n.l),o=Ha(t.opacity,n.opacity);return function(s){return t.h=r(s),t.s=i(s),t.l=a(s),t.opacity=o(s),t+""}}}const Rwe=Ywe(XB);function Qwe(e,t){var n=Ha((e=QB(e)).l,(t=QB(t)).l),r=Ha(e.a,t.a),i=Ha(e.b,t.b),a=Ha(e.opacity,t.opacity);return function(o){return e.l=n(o),e.a=r(o),e.b=i(o),e.opacity=a(o),e+""}}function jwe(e){return function(t,n){var r=e((t=KB(t)).h,(n=KB(n)).h),i=Ha(t.c,n.c),a=Ha(t.l,n.l),o=Ha(t.opacity,n.opacity);return function(s){return t.h=r(s),t.c=i(s),t.l=a(s),t.opacity=o(s),t+""}}}const Vwe=jwe(XB);function c7(e){return function t(n){n=+n;function r(i,a){var o=e((i=hu(i)).h,(a=hu(a)).h),s=Ha(i.s,a.s),u=Ha(i.l,a.l),c=Ha(i.opacity,a.opacity);return function(A){return i.h=o(A),i.s=s(A),i.l=u(Math.pow(A,n)),i.opacity=c(A),i+""}}return r.gamma=t,r}(1)}c7(XB);var ex=c7(Ha);function wy(e,t){t===void 0&&(t=e,e=pu);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(o){var s=Math.max(0,Math.min(r-1,Math.floor(o*=r)));return a[s](o-s)}}function Al(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n}var jh=0,fg=0,hg=0,A7=1e3,By,pg,xy=0,sf=0,Cy=0,mg=typeof performance=="object"&&performance.now?performance:Date,d7=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function tx(){return sf||(d7(zwe),sf=mg.now()+Cy)}function zwe(){sf=0}function Sy(){this._call=this._time=this._next=null}Sy.prototype=f7.prototype={constructor:Sy,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?tx():+n)+(t==null?0:+t),!this._next&&pg!==this&&(pg?pg._next=this:By=this,pg=this),this._call=e,this._time=n,nx()},stop:function(){this._call&&(this._call=null,this._time=1/0,nx())}};function f7(e,t,n){var r=new Sy;return r.restart(e,t,n),r}function qwe(){tx(),++jh;for(var e=By,t;e;)(t=sf-e._time)>=0&&e._call.call(void 0,t),e=e._next;--jh}function h7(){sf=(xy=mg.now())+Cy,jh=fg=0;try{qwe()}finally{jh=0,Gwe(),sf=0}}function Kwe(){var e=mg.now(),t=e-xy;t>A7&&(Cy-=t,xy=e)}function Gwe(){for(var e,t=By,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:By=n);pg=e,nx(r)}function nx(e){if(!jh){fg&&(fg=clearTimeout(fg));var t=e-sf;t>24?(e<1/0&&(fg=setTimeout(h7,e-mg.now()-Cy)),hg&&(hg=clearInterval(hg))):(hg||(xy=mg.now(),hg=setInterval(Kwe,A7)),jh=1,d7(h7))}}function p7(e,t,n){var r=new Sy;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var Wwe=NB("start","end","cancel","interrupt"),Xwe=[],m7=0,g7=1,rx=2,ky=3,v7=4,ix=5,My=6;function Ey(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;Jwe(e,n,{name:t,index:r,group:i,on:Wwe,tween:Xwe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:m7})}function ax(e,t){var n=dl(e,t);if(n.state>m7)throw new Error("too late; already scheduled");return n}function mu(e,t){var n=dl(e,t);if(n.state>ky)throw new Error("too late; already running");return n}function dl(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Jwe(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=f7(a,0,n.time);function a(c){n.state=g7,n.timer.restart(o,n.delay,n.time),n.delay<=c&&o(c-n.delay)}function o(c){var A,f,h,d;if(n.state!==g7)return u();for(A in r)if(d=r[A],d.name===n.name){if(d.state===ky)return p7(o);d.state===v7?(d.state=My,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete r[A]):+A<t&&(d.state=My,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete r[A])}if(p7(function(){n.state===ky&&(n.state=v7,n.timer.restart(s,n.delay,n.time),s(c))}),n.state=rx,n.on.call("start",e,e.__data__,n.index,n.group),n.state===rx){for(n.state=ky,i=new Array(h=n.tween.length),A=0,f=-1;A<h;++A)(d=n.tween[A].value.call(e,e.__data__,n.index,n.group))&&(i[++f]=d);i.length=f+1}}function s(c){for(var A=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(u),n.state=ix,1),f=-1,h=i.length;++f<h;)i[f].call(e,A);n.state===ix&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){n.state=My,n.timer.stop(),delete r[t];for(var c in r)return;delete e.__transition}}function ox(e,t){var n=e.__transition,r,i,a=!0,o;if(n){t=t==null?null:t+"";for(o in n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>rx&&r.state<ix,r.state=My,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function Zwe(e){return this.each(function(){ox(this,e)})}function $we(e,t){var n,r;return function(){var i=mu(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function e5e(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var a=mu(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},u=0,c=i.length;u<c;++u)if(i[u].name===t){i[u]=s;break}u===c&&i.push(s)}a.tween=i}}function t5e(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=dl(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?$we:e5e)(n,e,t))}function sx(e,t,n){var r=e._id;return e.each(function(){var i=mu(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return dl(i,r).value[t]}}function y7(e,t){var n;return(typeof t=="number"?Ya:t instanceof tf?of:(n=tf(t))?(t=n,of):o7)(e,t)}function n5e(e){return function(){this.removeAttribute(e)}}function r5e(e){return function(){this.removeAttributeNS(e.space,e.local)}}function i5e(e,t,n){var r,i=n+"",a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function a5e(e,t,n){var r,i=n+"",a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function o5e(e,t,n){var r,i,a;return function(){var o,s=n(this),u;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),u=s+"",o===u?null:o===r&&u===i?a:(i=u,a=t(r=o,s)))}}function s5e(e,t,n){var r,i,a;return function(){var o,s=n(this),u;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),u=s+"",o===u?null:o===r&&u===i?a:(i=u,a=t(r=o,s)))}}function l5e(e,t){var n=cy(e),r=n==="transform"?Hwe:y7;return this.attrTween(e,typeof t=="function"?(n.local?s5e:o5e)(n,r,sx(this,"attr."+e,t)):t==null?(n.local?r5e:n5e)(n):(n.local?a5e:i5e)(n,r,t))}function u5e(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function c5e(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function A5e(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&c5e(e,a)),n}return i._value=t,i}function d5e(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&u5e(e,a)),n}return i._value=t,i}function f5e(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=cy(e);return this.tween(n,(r.local?A5e:d5e)(r,t))}function h5e(e,t){return function(){ax(this,e).delay=+t.apply(this,arguments)}}function p5e(e,t){return t=+t,function(){ax(this,e).delay=t}}function m5e(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?h5e:p5e)(t,e)):dl(this.node(),t).delay}function g5e(e,t){return function(){mu(this,e).duration=+t.apply(this,arguments)}}function v5e(e,t){return t=+t,function(){mu(this,e).duration=t}}function y5e(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?g5e:v5e)(t,e)):dl(this.node(),t).duration}function _5e(e,t){if(typeof t!="function")throw new Error;return function(){mu(this,e).ease=t}}function b5e(e){var t=this._id;return arguments.length?this.each(_5e(t,e)):dl(this.node(),t).ease}function w5e(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;mu(this,e).ease=n}}function B5e(e){if(typeof e!="function")throw new Error;return this.each(w5e(this._id,e))}function x5e(e){typeof e!="function"&&(e=MO(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],u,c=0;c<o;++c)(u=a[c])&&e.call(u,u.__data__,c,a)&&s.push(u);return new fc(r,this._parents,this._name,this._id)}function C5e(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s)for(var u=t[s],c=n[s],A=u.length,f=o[s]=new Array(A),h,d=0;d<A;++d)(h=u[d]||c[d])&&(f[d]=h);for(;s<r;++s)o[s]=t[s];return new fc(o,this._parents,this._name,this._id)}function S5e(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 k5e(e,t,n){var r,i,a=S5e(t)?ax:mu;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function M5e(e,t){var n=this._id;return arguments.length<2?dl(this.node(),n).on.on(e):this.each(k5e(n,e,t))}function E5e(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function L5e(){return this.on("end.remove",E5e(this._id))}function T5e(e){var t=this._name,n=this._id;typeof e!="function"&&(e=OB(e));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o<i;++o)for(var s=r[o],u=s.length,c=a[o]=new Array(u),A,f,h=0;h<u;++h)(A=s[h])&&(f=e.call(A,A.__data__,h,s))&&("__data__"in A&&(f.__data__=A.__data__),c[h]=f,Ey(c[h],t,n,h,c,dl(A,n)));return new fc(a,this._parents,t,n)}function N5e(e){var t=this._name,n=this._id;typeof e!="function"&&(e=kO(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var u=r[s],c=u.length,A,f=0;f<c;++f)if(A=u[f]){for(var h=e.call(A,A.__data__,f,u),d,m=dl(A,n),p=0,g=h.length;p<g;++p)(d=h[p])&&Ey(d,t,n,p,h,m);a.push(h),o.push(A)}return new fc(a,o,t,n)}var F5e=ug.prototype.constructor;function O5e(){return new F5e(this._groups,this._parents)}function D5e(e,t){var n,r,i;return function(){var a=Ph(this,e),o=(this.style.removeProperty(e),Ph(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function _7(e){return function(){this.style.removeProperty(e)}}function I5e(e,t,n){var r,i=n+"",a;return function(){var o=Ph(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function U5e(e,t,n){var r,i,a;return function(){var o=Ph(this,e),s=n(this),u=s+"";return s==null&&(u=s=(this.style.removeProperty(e),Ph(this,e))),o===u?null:o===r&&u===i?a:(i=u,a=t(r=o,s))}}function P5e(e,t){var n,r,i,a="style."+t,o="end."+a,s;return function(){var u=mu(this,e),c=u.on,A=u.value[a]==null?s||(s=_7(t)):void 0;(c!==n||i!==A)&&(r=(n=c).copy()).on(o,i=A),u.on=r}}function H5e(e,t,n){var r=(e+="")=="transform"?Pwe:y7;return t==null?this.styleTween(e,D5e(e,r)).on("end.style."+e,_7(e)):typeof t=="function"?this.styleTween(e,U5e(e,r,sx(this,"style."+e,t))).each(P5e(this._id,e)):this.styleTween(e,I5e(e,r,t),n).on("end.style."+e,null)}function Y5e(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function R5e(e,t,n){var r,i;function a(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&Y5e(e,o,n)),r}return a._value=t,a}function Q5e(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,R5e(e,t,n??""))}function j5e(e){return function(){this.textContent=e}}function V5e(e){return function(){var t=e(this);this.textContent=t??""}}function z5e(e){return this.tween("text",typeof e=="function"?V5e(sx(this,"text",e)):j5e(e==null?"":e+""))}function q5e(e){return function(t){this.textContent=e.call(this,t)}}function K5e(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&q5e(i)),t}return r._value=e,r}function G5e(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,K5e(e))}function W5e(){for(var e=this._name,t=this._id,n=b7(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,u,c=0;c<s;++c)if(u=o[c]){var A=dl(u,t);Ey(u,e,n,c,o,{time:A.time+A.delay+A.duration,delay:0,duration:A.duration,ease:A.ease})}return new fc(r,this._parents,e,n)}function X5e(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},u={value:function(){--i===0&&a()}};n.each(function(){var c=mu(this,r),A=c.on;A!==e&&(t=(e=A).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(u)),c.on=t}),i===0&&a()})}var J5e=0;function fc(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function b7(){return++J5e}var hc=ug.prototype;fc.prototype={constructor:fc,select:T5e,selectAll:N5e,selectChild:hc.selectChild,selectChildren:hc.selectChildren,filter:x5e,merge:C5e,selection:O5e,transition:W5e,call:hc.call,nodes:hc.nodes,node:hc.node,size:hc.size,empty:hc.empty,each:hc.each,on:M5e,attr:l5e,attrTween:f5e,style:H5e,styleTween:Q5e,text:z5e,textTween:G5e,remove:L5e,tween:t5e,delay:m5e,duration:y5e,ease:b5e,easeVarying:B5e,end:X5e,[Symbol.iterator]:hc[Symbol.iterator]};const Z5e=e=>+e;function $5e(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var eBe={time:null,delay:0,duration:250,ease:$5e};function tBe(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 nBe(e){var t,n;e instanceof fc?(t=e._id,e=e._name):(t=b7(),(n=eBe).time=tx(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,u,c=0;c<s;++c)(u=o[c])&&Ey(u,e,t,c,o,n||tBe(u,t));return new fc(r,this._parents,e,t)}ug.prototype.interrupt=Zwe,ug.prototype.transition=nBe;const lx=e=>()=>e;function rBe(e,{sourceEvent:t,target:n,selection:r,mode:i,dispatch:a}){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:a}})}function iBe(e){e.stopImmediatePropagation()}function ux(e){e.preventDefault(),e.stopImmediatePropagation()}var w7={name:"drag"},cx={name:"space"},Vh={name:"handle"},zh={name:"center"};const{abs:B7,max:Ra,min:Qa}=Math;function x7(e){return[+e[0],+e[1]]}function C7(e){return[x7(e[0]),x7(e[1])]}var Ly={name:"x",handles:["w","e"].map(dx),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]]}},Ax={},pc={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"},S7={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},k7={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},aBe={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},oBe={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function dx(e){return{type:e}}function sBe(e){return!e.ctrlKey&&!e.button}function lBe(){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 uBe(){return navigator.maxTouchPoints||"ontouchstart"in this}function fx(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function cBe(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function M7(){return ABe(Ly)}function ABe(e){var t=lBe,n=sBe,r=uBe,i=!0,a=NB("start","brush","end"),o=6,s;function u(g){var v=g.property("__brush",p).selectAll(".overlay").data([dx("overlay")]);v.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",pc.overlay).merge(v).each(function(){var _=fx(this).extent;Ot(this).attr("x",_[0][0]).attr("y",_[0][1]).attr("width",_[1][0]-_[0][0]).attr("height",_[1][1]-_[0][1])}),g.selectAll(".selection").data([dx("selection")]).enter().append("rect").attr("class","selection").attr("cursor",pc.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var y=g.selectAll(".handle").data(e.handles,function(_){return _.type});y.exit().remove(),y.enter().append("rect").attr("class",function(_){return"handle handle--"+_.type}).attr("cursor",function(_){return pc[_.type]}),g.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(r).on("touchstart.brush",h).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",m).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}u.move=function(g,v,y){g.tween?g.on("start.brush",function(_){A(this,arguments).beforestart().start(_)}).on("interrupt.brush end.brush",function(_){A(this,arguments).end(_)}).tween("brush",function(){var _=this,b=_.__brush,w=A(_,arguments),C=b.selection,B=e.input(typeof v=="function"?v.apply(this,arguments):v,b.extent),E=pu(C,B);function N(P){b.selection=P===1&&B===null?null:E(P),c.call(_),w.brush()}return C!==null&&B!==null?N:N(1)}):g.each(function(){var _=this,b=arguments,w=_.__brush,C=e.input(typeof v=="function"?v.apply(_,b):v,w.extent),B=A(_,b).beforestart();ox(_),w.selection=C===null?null:C,c.call(_),B.start(y).brush(y).end(y)})},u.clear=function(g,v){u.move(g,null,v)};function c(){var g=Ot(this),v=fx(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]-o/2:v[0][0]-o/2}).attr("y",function(y){return y.type[0]==="s"?v[1][1]-o/2:v[0][1]-o/2}).attr("width",function(y){return y.type==="n"||y.type==="s"?v[1][0]-v[0][0]+o:o}).attr("height",function(y){return y.type==="e"||y.type==="w"?v[1][1]-v[0][1]+o:o})):g.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function A(g,v,y){var _=g.__brush.emitter;return _&&(!y||!_.clean)?_:new f(g,v,y)}function f(g,v,y){this.that=g,this.args=v,this.state=g.__brush,this.active=0,this.clean=y}f.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 _=Ot(this.that).datum();a.call(g,this.that,new rBe(g,{sourceEvent:v,target:u,selection:e.output(this.state.selection),mode:y,dispatch:a}),_)}};function h(g){if(s&&!g.touches||!n.apply(this,arguments))return;var v=this,y=g.target.__data__.type,_=(i&&g.metaKey?y="overlay":y)==="selection"?w7:i&&g.altKey?zh:Vh,b=e===Ax?null:aBe[y],w=e===Ly?null:oBe[y],C=fx(v),B=C.extent,E=C.selection,N=B[0][0],P,k,F=B[0][1],D,L,H=B[1][0],K,q,z=B[1][1],J,ie,X=0,I=0,W,ee=b&&w&&i&&g.shiftKey,ne,pe,he=Array.from(g.touches||[g],$=>{const Z=$.identifier;return $=fy($,v),$.point0=$.slice(),$.identifier=Z,$});ox(v);var ve=A(v,arguments,!0).beforestart();if(y==="overlay"){E&&(W=!0);const $=[he[0],he[1]||he[0]];C.selection=E=[[P=e===Ax?N:Qa($[0][0],$[1][0]),D=e===Ly?F:Qa($[0][1],$[1][1])],[K=e===Ax?H:Ra($[0][0],$[1][0]),J=e===Ly?z:Ra($[0][1],$[1][1])]],he.length>1&&Pe(g)}else P=E[0][0],D=E[0][1],K=E[1][0],J=E[1][1];k=P,L=D,q=K,ie=J;var ue=Ot(v).attr("pointer-events","none"),_e=ue.selectAll(".overlay").attr("cursor",pc[y]);if(g.touches)ve.moved=Me,ve.ended=Q;else{var Le=Ot(g.view).on("mousemove.brush",Me,!0).on("mouseup.brush",Q,!0);i&&Le.on("keydown.brush",te,!0).on("keyup.brush",ce,!0),lwe(g.view)}c.call(v),ve.start(g,_.name);function Me($){for(const Z of $.changedTouches||[$])for(const ae of he)ae.identifier===Z.identifier&&(ae.cur=fy(Z,v));if(ee&&!ne&&!pe&&he.length===1){const Z=he[0];B7(Z.cur[0]-Z[0])>B7(Z.cur[1]-Z[1])?pe=!0:ne=!0}for(const Z of he)Z.cur&&(Z[0]=Z.cur[0],Z[1]=Z.cur[1]);W=!0,ux($),Pe($)}function Pe($){const Z=he[0],ae=Z.point0;var Be;switch(X=Z[0]-ae[0],I=Z[1]-ae[1],_){case cx:case w7:{b&&(X=Ra(N-P,Qa(H-K,X)),k=P+X,q=K+X),w&&(I=Ra(F-D,Qa(z-J,I)),L=D+I,ie=J+I);break}case Vh:{he[1]?(b&&(k=Ra(N,Qa(H,he[0][0])),q=Ra(N,Qa(H,he[1][0])),b=1),w&&(L=Ra(F,Qa(z,he[0][1])),ie=Ra(F,Qa(z,he[1][1])),w=1)):(b<0?(X=Ra(N-P,Qa(H-P,X)),k=P+X,q=K):b>0&&(X=Ra(N-K,Qa(H-K,X)),k=P,q=K+X),w<0?(I=Ra(F-D,Qa(z-D,I)),L=D+I,ie=J):w>0&&(I=Ra(F-J,Qa(z-J,I)),L=D,ie=J+I));break}case zh:{b&&(k=Ra(N,Qa(H,P-X*b)),q=Ra(N,Qa(H,K+X*b))),w&&(L=Ra(F,Qa(z,D-I*w)),ie=Ra(F,Qa(z,J+I*w)));break}}q<k&&(b*=-1,Be=P,P=K,K=Be,Be=k,k=q,q=Be,y in S7&&_e.attr("cursor",pc[y=S7[y]])),ie<L&&(w*=-1,Be=D,D=J,J=Be,Be=L,L=ie,ie=Be,y in k7&&_e.attr("cursor",pc[y=k7[y]])),C.selection&&(E=C.selection),ne&&(k=E[0][0],q=E[1][0]),pe&&(L=E[0][1],ie=E[1][1]),(E[0][0]!==k||E[0][1]!==L||E[1][0]!==q||E[1][1]!==ie)&&(C.selection=[[k,L],[q,ie]],c.call(v),ve.brush($,_.name))}function Q($){if(iBe($),$.touches){if($.touches.length)return;s&&clearTimeout(s),s=setTimeout(function(){s=null},500)}else uwe($.view,W),Le.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);ue.attr("pointer-events","all"),_e.attr("cursor",pc.overlay),C.selection&&(E=C.selection),cBe(E)&&(C.selection=null,c.call(v)),ve.end($,_.name)}function te($){switch($.keyCode){case 16:{ee=b&&w;break}case 18:{_===Vh&&(b&&(K=q-X*b,P=k+X*b),w&&(J=ie-I*w,D=L+I*w),_=zh,Pe($));break}case 32:{(_===Vh||_===zh)&&(b<0?K=q-X:b>0&&(P=k-X),w<0?J=ie-I:w>0&&(D=L-I),_=cx,_e.attr("cursor",pc.selection),Pe($));break}default:return}ux($)}function ce($){switch($.keyCode){case 16:{ee&&(ne=pe=ee=!1,Pe($));break}case 18:{_===zh&&(b<0?K=q:b>0&&(P=k),w<0?J=ie:w>0&&(D=L),_=Vh,Pe($));break}case 32:{_===cx&&($.altKey?(b&&(K=q-X*b,P=k+X*b),w&&(J=ie-I*w,D=L+I*w),_=zh):(b<0?K=q:b>0&&(P=k),w<0?J=ie:w>0&&(D=L),_=Vh),_e.attr("cursor",pc[y]),Pe($));break}default:return}ux($)}}function d(g){A(this,arguments).moved(g)}function m(g){A(this,arguments).ended(g)}function p(){var g=this.__brush||{selection:null};return g.extent=C7(t.apply(this,arguments)),g.dim=e,g}return u.extent=function(g){return arguments.length?(t=typeof g=="function"?g:lx(C7(g)),u):t},u.filter=function(g){return arguments.length?(n=typeof g=="function"?g:lx(!!g),u):n},u.touchable=function(g){return arguments.length?(r=typeof g=="function"?g:lx(!!g),u):r},u.handleSize=function(g){return arguments.length?(o=+g,u):o},u.keyModifiers=function(g){return arguments.length?(i=!!g,u):i},u.on=function(){var g=a.on.apply(a,arguments);return g===a?u:g},u}const hx=Math.PI,px=2*hx,lf=1e-6,dBe=px-lf;function E7(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function fBe(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return E7;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class L7{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?E7:fBe(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,a,o){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,n,r,i,a){if(t=+t,n=+n,r=+r,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,u=r-t,c=i-n,A=o-t,f=s-n,h=A*A+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(h>lf)if(!(Math.abs(f*u-c*A)>lf)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let d=r-o,m=i-s,p=u*u+c*c,g=d*d+m*m,v=Math.sqrt(p),y=Math.sqrt(h),_=a*Math.tan((hx-Math.acos((p+h-g)/(2*v*y)))/2),b=_/y,w=_/v;Math.abs(b-1)>lf&&this._append`L${t+b*A},${n+b*f}`,this._append`A${a},${a},0,0,${+(f*d>A*m)},${this._x1=t+w*u},${this._y1=n+w*c}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),u=r*Math.sin(i),c=t+s,A=n+u,f=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${c},${A}`:(Math.abs(this._x1-c)>lf||Math.abs(this._y1-A)>lf)&&this._append`L${c},${A}`,r&&(h<0&&(h=h%px+px),h>dBe?this._append`A${r},${r},0,1,${f},${t-s},${n-u}A${r},${r},0,1,${f},${this._x1=c},${this._y1=A}`:h>lf&&this._append`A${r},${r},0,${+(h>=hx)},${f},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}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 uf(e=3){return new L7(+e)}function hBe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ty(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 qh(e){return e=Ty(Math.abs(e)),e?e[1]:NaN}function pBe(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),a.push(n.substring(i-=s,i+s)),!((u+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function mBe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var gBe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function gg(e){if(!(t=gBe.exec(e)))throw new Error("invalid format: "+e);var t;return new mx({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]})}gg.prototype=mx.prototype;function mx(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+""}mx.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 vBe(e){e: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 e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var T7;function yBe(e,t){var n=Ty(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(T7=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Ty(e,Math.max(0,t+a-1))[0]}function N7(e,t){var n=Ty(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 F7={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:hBe,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)=>N7(e*100,t),r:N7,s:yBe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function O7(e){return e}var D7=Array.prototype.map,I7=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function _Be(e){var t=e.grouping===void 0||e.thousands===void 0?O7:pBe(D7.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?O7:mBe(D7.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function c(f){f=gg(f);var h=f.fill,d=f.align,m=f.sign,p=f.symbol,g=f.zero,v=f.width,y=f.comma,_=f.precision,b=f.trim,w=f.type;w==="n"?(y=!0,w="g"):F7[w]||(_===void 0&&(_=12),b=!0,w="g"),(g||h==="0"&&d==="=")&&(g=!0,h="0",d="=");var C=p==="$"?n:p==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",B=p==="$"?r:/[%p]/.test(w)?o:"",E=F7[w],N=/[defgprs%]/.test(w);_=_===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function P(k){var F=C,D=B,L,H,K;if(w==="c")D=E(k)+D,k="";else{k=+k;var q=k<0||1/k<0;if(k=isNaN(k)?u:E(Math.abs(k),_),b&&(k=vBe(k)),q&&+k==0&&m!=="+"&&(q=!1),F=(q?m==="("?m:s:m==="-"||m==="("?"":m)+F,D=(w==="s"?I7[8+T7/3]:"")+D+(q&&m==="("?")":""),N){for(L=-1,H=k.length;++L<H;)if(K=k.charCodeAt(L),48>K||K>57){D=(K===46?i+k.slice(L+1):k.slice(L))+D,k=k.slice(0,L);break}}}y&&!g&&(k=t(k,1/0));var z=F.length+k.length+D.length,J=z<v?new Array(v-z+1).join(h):"";switch(y&&g&&(k=t(J+k,J.length?v-D.length:1/0),J=""),d){case"<":k=F+k+D+J;break;case"=":k=F+J+k+D;break;case"^":k=J.slice(0,z=J.length>>1)+F+k+D+J.slice(z);break;default:k=J+F+k+D;break}return a(k)}return P.toString=function(){return f+""},P}function A(f,h){var d=c((f=gg(f),f.type="f",f)),m=Math.max(-8,Math.min(8,Math.floor(qh(h)/3)))*3,p=Math.pow(10,-m),g=I7[8+m/3];return function(v){return d(p*v)+g}}return{format:c,formatPrefix:A}}var Ny,_a,U7;bBe({thousands:",",grouping:[3],currency:["$",""]});function bBe(e){return Ny=_Be(e),_a=Ny.format,U7=Ny.formatPrefix,Ny}function wBe(e){return Math.max(0,-qh(Math.abs(e)))}function BBe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(qh(t)/3)))*3-qh(Math.abs(e)))}function xBe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,qh(t)-qh(e))+1}var On=1e-6,P7=1e-12,Qn=Math.PI,ui=Qn/2,H7=Qn/4,Xo=Qn*2,Ao=180/Qn,ci=Qn/180,yr=Math.abs,Kh=Math.atan,mc=Math.atan2,Yn=Math.cos,Y7=Math.exp,Fy=Math.log,gx=Math.pow,Mn=Math.sin,ks=Math.sign||function(e){return e>0?1:e<0?-1:0},Eo=Math.sqrt,vx=Math.tan;function R7(e){return e>1?0:e<-1?Qn:Math.acos(e)}function Ms(e){return e>1?ui:e<-1?-ui:Math.asin(e)}function Es(){}function Oy(e,t){e&&j7.hasOwnProperty(e.type)&&j7[e.type](e,t)}var Q7={Feature:function(e,t){Oy(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)Oy(n[r].geometry,t)}},j7={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){yx(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)yx(n[r],t,0)},Polygon:function(e,t){V7(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)V7(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)Oy(n[r],t)}};function yx(e,t,n){var r=-1,i=e.length-n,a;for(t.lineStart();++r<i;)a=e[r],t.point(a[0],a[1],a[2]);t.lineEnd()}function V7(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)yx(e[n],t,1);t.polygonEnd()}function cf(e,t){e&&Q7.hasOwnProperty(e.type)?Q7[e.type](e,t):Oy(e,t)}function _x(e){return[mc(e[1],e[0]),Ms(e[2])]}function Gh(e){var t=e[0],n=e[1],r=Yn(n);return[r*Yn(t),r*Mn(t),Mn(n)]}function Dy(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Iy(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 bx(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Uy(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function wx(e){var t=Eo(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function Bx(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 xx(e,t){return yr(e)>Qn&&(e-=Math.round(e/Xo)*Xo),[e,t]}xx.invert=xx;function z7(e,t,n){return(e%=Xo)?t||n?Bx(K7(e),G7(t,n)):K7(e):t||n?G7(t,n):xx}function q7(e){return function(t,n){return t+=e,yr(t)>Qn&&(t-=Math.round(t/Xo)*Xo),[t,n]}}function K7(e){var t=q7(e);return t.invert=q7(-e),t}function G7(e,t){var n=Yn(e),r=Mn(e),i=Yn(t),a=Mn(t);function o(s,u){var c=Yn(u),A=Yn(s)*c,f=Mn(s)*c,h=Mn(u),d=h*n+A*r;return[mc(f*i-d*a,A*n-h*r),Ms(d*i+f*a)]}return o.invert=function(s,u){var c=Yn(u),A=Yn(s)*c,f=Mn(s)*c,h=Mn(u),d=h*i-f*a;return[mc(f*i+h*a,A*n+d*r),Ms(d*n-A*r)]},o}function CBe(e){e=z7(e[0]*ci,e[1]*ci,e.length>2?e[2]*ci:0);function t(n){return n=e(n[0]*ci,n[1]*ci),n[0]*=Ao,n[1]*=Ao,n}return t.invert=function(n){return n=e.invert(n[0]*ci,n[1]*ci),n[0]*=Ao,n[1]*=Ao,n},t}function SBe(e,t,n,r,i,a){if(n){var o=Yn(t),s=Mn(t),u=r*n;i==null?(i=t+r*Xo,a=t-u/2):(i=W7(o,i),a=W7(o,a),(r>0?i<a:i>a)&&(i+=r*Xo));for(var c,A=i;r>0?A>a:A<a;A-=u)c=_x([o,-s*Yn(A),-s*Mn(A)]),e.point(c[0],c[1])}}function W7(e,t){t=Gh(t),t[0]-=e,wx(t);var n=R7(-t[1]);return((-t[2]<0?-n:n)+Xo-On)%Xo}function X7(){var e=[],t;return{point:function(n,r,i){t.push([n,r,i])},lineStart:function(){e.push(t=[])},lineEnd:Es,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function Py(e,t){return yr(e[0]-t[0])<On&&yr(e[1]-t[1])<On}function Hy(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 J7(e,t,n,r,i){var a=[],o=[],s,u;if(e.forEach(function(m){if(!((p=m.length-1)<=0)){var p,g=m[0],v=m[p],y;if(Py(g,v)){if(!g[2]&&!v[2]){for(i.lineStart(),s=0;s<p;++s)i.point((g=m[s])[0],g[1]);i.lineEnd();return}v[0]+=2*On}a.push(y=new Hy(g,m,null,!0)),o.push(y.o=new Hy(g,null,y,!1)),a.push(y=new Hy(v,m,null,!1)),o.push(y.o=new Hy(v,null,y,!0))}}),!!a.length){for(o.sort(t),Z7(a),Z7(o),s=0,u=o.length;s<u;++s)o[s].e=n=!n;for(var c=a[0],A,f;;){for(var h=c,d=!0;h.v;)if((h=h.n)===c)return;A=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(d)for(s=0,u=A.length;s<u;++s)i.point((f=A[s])[0],f[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(d)for(A=h.p.z,s=A.length-1;s>=0;--s)i.point((f=A[s])[0],f[1]);else r(h.x,h.p.x,-1,i);h=h.p}h=h.o,A=h.z,d=!d}while(!h.v);i.lineEnd()}}}function Z7(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 Cx(e){return yr(e[0])<=Qn?e[0]:ks(e[0])*((yr(e[0])+Qn)%Xo-Qn)}function kBe(e,t){var n=Cx(t),r=t[1],i=Mn(r),a=[Mn(n),-Yn(n),0],o=0,s=0,u=new Zd;i===1?r=ui+On:i===-1&&(r=-ui-On);for(var c=0,A=e.length;c<A;++c)if(h=(f=e[c]).length)for(var f,h,d=f[h-1],m=Cx(d),p=d[1]/2+H7,g=Mn(p),v=Yn(p),y=0;y<h;++y,m=b,g=C,v=B,d=_){var _=f[y],b=Cx(_),w=_[1]/2+H7,C=Mn(w),B=Yn(w),E=b-m,N=E>=0?1:-1,P=N*E,k=P>Qn,F=g*C;if(u.add(mc(F*N*Mn(P),v*B+F*Yn(P))),o+=k?E+N*Xo:E,k^m>=n^b>=n){var D=Iy(Gh(d),Gh(_));wx(D);var L=Iy(a,D);wx(L);var H=(k^E>=0?-1:1)*Ms(L[2]);(r>H||r===H&&(D[0]||D[1]))&&(s+=k^E>=0?1:-1)}}return(o<-On||o<On&&u<-P7)^s&1}function $7(e,t,n,r){return function(i){var a=t(i),o=X7(),s=t(o),u=!1,c,A,f,h={point:d,lineStart:p,lineEnd:g,polygonStart:function(){h.point=v,h.lineStart=y,h.lineEnd=_,A=[],c=[]},polygonEnd:function(){h.point=d,h.lineStart=p,h.lineEnd=g,A=wO(A);var b=kBe(c,r);A.length?(u||(i.polygonStart(),u=!0),J7(A,EBe,b,n,i)):b&&(u||(i.polygonStart(),u=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),u&&(i.polygonEnd(),u=!1),A=c=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function d(b,w){e(b,w)&&i.point(b,w)}function m(b,w){a.point(b,w)}function p(){h.point=m,a.lineStart()}function g(){h.point=d,a.lineEnd()}function v(b,w){f.push([b,w]),s.point(b,w)}function y(){s.lineStart(),f=[]}function _(){v(f[0][0],f[0][1]),s.lineEnd();var b=s.clean(),w=o.result(),C,B=w.length,E,N,P;if(f.pop(),c.push(f),f=null,!!B){if(b&1){if(N=w[0],(E=N.length-1)>0){for(u||(i.polygonStart(),u=!0),i.lineStart(),C=0;C<E;++C)i.point((P=N[C])[0],P[1]);i.lineEnd()}return}B>1&&b&2&&w.push(w.pop().concat(w.shift())),A.push(w.filter(MBe))}}return h}}function MBe(e){return e.length>1}function EBe(e,t){return((e=e.x)[0]<0?e[1]-ui-On:ui-e[1])-((t=t.x)[0]<0?t[1]-ui-On:ui-t[1])}const eD=$7(function(){return!0},LBe,NBe,[-Qn,-ui]);function LBe(e){var t=NaN,n=NaN,r=NaN,i;return{lineStart:function(){e.lineStart(),i=1},point:function(a,o){var s=a>0?Qn:-Qn,u=yr(a-t);yr(u-Qn)<On?(e.point(t,n=(n+o)/2>0?ui:-ui),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(s,n),e.point(a,n),i=0):r!==s&&u>=Qn&&(yr(t-r)<On&&(t-=r*On),yr(a-s)<On&&(a-=s*On),n=TBe(t,n,a,o),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(s,n),i=0),e.point(t=a,n=o),r=s},lineEnd:function(){e.lineEnd(),t=n=NaN},clean:function(){return 2-i}}}function TBe(e,t,n,r){var i,a,o=Mn(e-n);return yr(o)>On?Kh((Mn(t)*(a=Yn(r))*Mn(n)-Mn(r)*(i=Yn(t))*Mn(e))/(i*a*o)):(t+r)/2}function NBe(e,t,n,r){var i;if(e==null)i=n*ui,r.point(-Qn,i),r.point(0,i),r.point(Qn,i),r.point(Qn,0),r.point(Qn,-i),r.point(0,-i),r.point(-Qn,-i),r.point(-Qn,0),r.point(-Qn,i);else if(yr(e[0]-t[0])>On){var a=e[0]<t[0]?Qn:-Qn;i=n*a/2,r.point(-a,i),r.point(0,i),r.point(a,i)}else r.point(t[0],t[1])}function FBe(e){var t=Yn(e),n=2*ci,r=t>0,i=yr(t)>On;function a(A,f,h,d){SBe(d,e,n,h,A,f)}function o(A,f){return Yn(A)*Yn(f)>t}function s(A){var f,h,d,m,p;return{lineStart:function(){m=d=!1,p=1},point:function(g,v){var y=[g,v],_,b=o(g,v),w=r?b?0:c(g,v):b?c(g+(g<0?Qn:-Qn),v):0;if(!f&&(m=d=b)&&A.lineStart(),b!==d&&(_=u(f,y),(!_||Py(f,_)||Py(y,_))&&(y[2]=1)),b!==d)p=0,b?(A.lineStart(),_=u(y,f),A.point(_[0],_[1])):(_=u(f,y),A.point(_[0],_[1],2),A.lineEnd()),f=_;else if(i&&f&&r^b){var C;!(w&h)&&(C=u(y,f,!0))&&(p=0,r?(A.lineStart(),A.point(C[0][0],C[0][1]),A.point(C[1][0],C[1][1]),A.lineEnd()):(A.point(C[1][0],C[1][1]),A.lineEnd(),A.lineStart(),A.point(C[0][0],C[0][1],3)))}b&&(!f||!Py(f,y))&&A.point(y[0],y[1]),f=y,d=b,h=w},lineEnd:function(){d&&A.lineEnd(),f=null},clean:function(){return p|(m&&d)<<1}}}function u(A,f,h){var d=Gh(A),m=Gh(f),p=[1,0,0],g=Iy(d,m),v=Dy(g,g),y=g[0],_=v-y*y;if(!_)return!h&&A;var b=t*v/_,w=-t*y/_,C=Iy(p,g),B=Uy(p,b),E=Uy(g,w);bx(B,E);var N=C,P=Dy(B,N),k=Dy(N,N),F=P*P-k*(Dy(B,B)-1);if(!(F<0)){var D=Eo(F),L=Uy(N,(-P-D)/k);if(bx(L,B),L=_x(L),!h)return L;var H=A[0],K=f[0],q=A[1],z=f[1],J;K<H&&(J=H,H=K,K=J);var ie=K-H,X=yr(ie-Qn)<On,I=X||ie<On;if(!X&&z<q&&(J=q,q=z,z=J),I?X?q+z>0^L[1]<(yr(L[0]-H)<On?q:z):q<=L[1]&&L[1]<=z:ie>Qn^(H<=L[0]&&L[0]<=K)){var W=Uy(N,(-P+D)/k);return bx(W,B),[L,_x(W)]}}}function c(A,f){var h=r?e:Qn-e,d=0;return A<-h?d|=1:A>h&&(d|=2),f<-h?d|=4:f>h&&(d|=8),d}return $7(o,s,a,r?[0,-e]:[-Qn,e-Qn])}function OBe(e,t,n,r,i,a){var o=e[0],s=e[1],u=t[0],c=t[1],A=0,f=1,h=u-o,d=c-s,m;if(m=n-o,!(!h&&m>0)){if(m/=h,h<0){if(m<A)return;m<f&&(f=m)}else if(h>0){if(m>f)return;m>A&&(A=m)}if(m=i-o,!(!h&&m<0)){if(m/=h,h<0){if(m>f)return;m>A&&(A=m)}else if(h>0){if(m<A)return;m<f&&(f=m)}if(m=r-s,!(!d&&m>0)){if(m/=d,d<0){if(m<A)return;m<f&&(f=m)}else if(d>0){if(m>f)return;m>A&&(A=m)}if(m=a-s,!(!d&&m<0)){if(m/=d,d<0){if(m>f)return;m>A&&(A=m)}else if(d>0){if(m<A)return;m<f&&(f=m)}return A>0&&(e[0]=o+A*h,e[1]=s+A*d),f<1&&(t[0]=o+f*h,t[1]=s+f*d),!0}}}}}var vg=1e9,Yy=-vg;function tD(e,t,n,r){function i(c,A){return e<=c&&c<=n&&t<=A&&A<=r}function a(c,A,f,h){var d=0,m=0;if(c==null||(d=o(c,f))!==(m=o(A,f))||u(c,A)<0^f>0)do h.point(d===0||d===3?e:n,d>1?r:t);while((d=(d+f+4)%4)!==m);else h.point(A[0],A[1])}function o(c,A){return yr(c[0]-e)<On?A>0?0:3:yr(c[0]-n)<On?A>0?2:1:yr(c[1]-t)<On?A>0?1:0:A>0?3:2}function s(c,A){return u(c.x,A.x)}function u(c,A){var f=o(c,1),h=o(A,1);return f!==h?f-h:f===0?A[1]-c[1]:f===1?c[0]-A[0]:f===2?c[1]-A[1]:A[0]-c[0]}return function(c){var A=c,f=X7(),h,d,m,p,g,v,y,_,b,w,C,B={point:E,lineStart:F,lineEnd:D,polygonStart:P,polygonEnd:k};function E(H,K){i(H,K)&&A.point(H,K)}function N(){for(var H=0,K=0,q=d.length;K<q;++K)for(var z=d[K],J=1,ie=z.length,X=z[0],I,W,ee=X[0],ne=X[1];J<ie;++J)I=ee,W=ne,X=z[J],ee=X[0],ne=X[1],W<=r?ne>r&&(ee-I)*(r-W)>(ne-W)*(e-I)&&++H:ne<=r&&(ee-I)*(r-W)<(ne-W)*(e-I)&&--H;return H}function P(){A=f,h=[],d=[],C=!0}function k(){var H=N(),K=C&&H,q=(h=wO(h)).length;(K||q)&&(c.polygonStart(),K&&(c.lineStart(),a(null,null,1,c),c.lineEnd()),q&&J7(h,s,H,a,c),c.polygonEnd()),A=c,h=d=m=null}function F(){B.point=L,d&&d.push(m=[]),w=!0,b=!1,y=_=NaN}function D(){h&&(L(p,g),v&&b&&f.rejoin(),h.push(f.result())),B.point=E,b&&A.lineEnd()}function L(H,K){var q=i(H,K);if(d&&m.push([H,K]),w)p=H,g=K,v=q,w=!1,q&&(A.lineStart(),A.point(H,K));else if(q&&b)A.point(H,K);else{var z=[y=Math.max(Yy,Math.min(vg,y)),_=Math.max(Yy,Math.min(vg,_))],J=[H=Math.max(Yy,Math.min(vg,H)),K=Math.max(Yy,Math.min(vg,K))];OBe(z,J,e,t,n,r)?(b||(A.lineStart(),A.point(z[0],z[1])),A.point(J[0],J[1]),q||A.lineEnd(),C=!1):q&&(A.lineStart(),A.point(H,K),C=!1)}y=H,_=K,b=q}return B}}const Sx=e=>e;var kx=new Zd,Mx=new Zd,nD,rD,Ex,Lx,gc={point:Es,lineStart:Es,lineEnd:Es,polygonStart:function(){gc.lineStart=DBe,gc.lineEnd=UBe},polygonEnd:function(){gc.lineStart=gc.lineEnd=gc.point=Es,kx.add(yr(Mx)),Mx=new Zd},result:function(){var e=kx/2;return kx=new Zd,e}};function DBe(){gc.point=IBe}function IBe(e,t){gc.point=iD,nD=Ex=e,rD=Lx=t}function iD(e,t){Mx.add(Lx*e-Ex*t),Ex=e,Lx=t}function UBe(){iD(nD,rD)}var Wh=1/0,Ry=Wh,yg=-Wh,Qy=yg,jy={point:PBe,lineStart:Es,lineEnd:Es,polygonStart:Es,polygonEnd:Es,result:function(){var e=[[Wh,Ry],[yg,Qy]];return yg=Qy=-(Ry=Wh=1/0),e}};function PBe(e,t){e<Wh&&(Wh=e),e>yg&&(yg=e),t<Ry&&(Ry=t),t>Qy&&(Qy=t)}var Tx=0,Nx=0,_g=0,Vy=0,zy=0,Xh=0,Fx=0,Ox=0,bg=0,aD,oD,gu,vu,Ls={point:Af,lineStart:sD,lineEnd:lD,polygonStart:function(){Ls.lineStart=RBe,Ls.lineEnd=QBe},polygonEnd:function(){Ls.point=Af,Ls.lineStart=sD,Ls.lineEnd=lD},result:function(){var e=bg?[Fx/bg,Ox/bg]:Xh?[Vy/Xh,zy/Xh]:_g?[Tx/_g,Nx/_g]:[NaN,NaN];return Tx=Nx=_g=Vy=zy=Xh=Fx=Ox=bg=0,e}};function Af(e,t){Tx+=e,Nx+=t,++_g}function sD(){Ls.point=HBe}function HBe(e,t){Ls.point=YBe,Af(gu=e,vu=t)}function YBe(e,t){var n=e-gu,r=t-vu,i=Eo(n*n+r*r);Vy+=i*(gu+e)/2,zy+=i*(vu+t)/2,Xh+=i,Af(gu=e,vu=t)}function lD(){Ls.point=Af}function RBe(){Ls.point=jBe}function QBe(){uD(aD,oD)}function jBe(e,t){Ls.point=uD,Af(aD=gu=e,oD=vu=t)}function uD(e,t){var n=e-gu,r=t-vu,i=Eo(n*n+r*r);Vy+=i*(gu+e)/2,zy+=i*(vu+t)/2,Xh+=i,i=vu*e-gu*t,Fx+=i*(gu+e),Ox+=i*(vu+t),bg+=i*3,Af(gu=e,vu=t)}function cD(e){this._context=e}cD.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,Xo);break}}},result:Es};var Dx=new Zd,Ix,AD,dD,wg,Bg,xg={point:Es,lineStart:function(){xg.point=VBe},lineEnd:function(){Ix&&fD(AD,dD),xg.point=Es},polygonStart:function(){Ix=!0},polygonEnd:function(){Ix=null},result:function(){var e=+Dx;return Dx=new Zd,e}};function VBe(e,t){xg.point=fD,AD=wg=e,dD=Bg=t}function fD(e,t){wg-=e,Bg-=t,Dx.add(Eo(wg*wg+Bg*Bg)),wg=e,Bg=t}let hD,qy,pD,mD;class gD{constructor(t){this._append=t==null?vD:zBe(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!==pD||this._append!==qy){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`,pD=r,qy=this._append,mD=this._,this._=i}this._+=mD;break}}}result(){const t=this._;return this._="",t.length?t:null}}function vD(e){let t=1;this._+=e[0];for(const n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function zBe(e){const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);if(t>15)return vD;if(t!==hD){const n=10**t;hD=t,qy=function(i){let a=1;this._+=i[0];for(const o=i.length;a<o;++a)this._+=Math.round(arguments[a]*n)/n+i[a]}}return qy}function Ux(e,t){let n=3,r=4.5,i,a;function o(s){return s&&(typeof r=="function"&&a.pointRadius(+r.apply(this,arguments)),cf(s,i(a))),a.result()}return o.area=function(s){return cf(s,i(gc)),gc.result()},o.measure=function(s){return cf(s,i(xg)),xg.result()},o.bounds=function(s){return cf(s,i(jy)),jy.result()},o.centroid=function(s){return cf(s,i(Ls)),Ls.result()},o.projection=function(s){return arguments.length?(i=s==null?(e=null,Sx):(e=s).stream,o):e},o.context=function(s){return arguments.length?(a=s==null?(t=null,new gD(n)):new cD(t=s),typeof r!="function"&&a.pointRadius(r),o):t},o.pointRadius=function(s){return arguments.length?(r=typeof s=="function"?s:(a.pointRadius(+s),+s),o):r},o.digits=function(s){if(!arguments.length)return n;if(s==null)n=null;else{const u=Math.floor(s);if(!(u>=0))throw new RangeError(`invalid digits: ${s}`);n=u}return t===null&&(a=new gD(n)),o},o.projection(e).digits(n).context(t)}function Ky(e){return{stream:Gy(e)}}function Gy(e){return function(t){var n=new Px;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Px(){}Px.prototype={constructor:Px,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 Hx(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),r!=null&&e.clipExtent(null),cf(n,e.stream(jy)),t(jy.result()),r!=null&&e.clipExtent(r),e}function Yx(e,t,n){return Hx(e,function(r){var i=t[1][0]-t[0][0],a=t[1][1]-t[0][1],o=Math.min(i/(r[1][0]-r[0][0]),a/(r[1][1]-r[0][1])),s=+t[0][0]+(i-o*(r[1][0]+r[0][0]))/2,u=+t[0][1]+(a-o*(r[1][1]+r[0][1]))/2;e.scale(150*o).translate([s,u])},n)}function yD(e,t,n){return Yx(e,[[0,0],t],n)}function _D(e,t,n){return Hx(e,function(r){var i=+t,a=i/(r[1][0]-r[0][0]),o=(i-a*(r[1][0]+r[0][0]))/2,s=-a*r[0][1];e.scale(150*a).translate([o,s])},n)}function bD(e,t,n){return Hx(e,function(r){var i=+t,a=i/(r[1][1]-r[0][1]),o=-a*r[0][0],s=(i-a*(r[1][1]+r[0][1]))/2;e.scale(150*a).translate([o,s])},n)}var wD=16,qBe=Yn(30*ci);function BD(e,t){return+t?GBe(e,t):KBe(e)}function KBe(e){return Gy({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}function GBe(e,t){function n(r,i,a,o,s,u,c,A,f,h,d,m,p,g){var v=c-r,y=A-i,_=v*v+y*y;if(_>4*t&&p--){var b=o+h,w=s+d,C=u+m,B=Eo(b*b+w*w+C*C),E=Ms(C/=B),N=yr(yr(C)-1)<On||yr(a-f)<On?(a+f)/2:mc(w,b),P=e(N,E),k=P[0],F=P[1],D=k-r,L=F-i,H=y*D-v*L;(H*H/_>t||yr((v*D+y*L)/_-.5)>.3||o*h+s*d+u*m<qBe)&&(n(r,i,a,o,s,u,k,F,N,b/=B,w/=B,C,p,g),g.point(k,F),n(k,F,N,b,w,C,c,A,f,h,d,m,p,g))}}return function(r){var i,a,o,s,u,c,A,f,h,d,m,p,g={point:v,lineStart:y,lineEnd:b,polygonStart:function(){r.polygonStart(),g.lineStart=w},polygonEnd:function(){r.polygonEnd(),g.lineStart=y}};function v(E,N){E=e(E,N),r.point(E[0],E[1])}function y(){f=NaN,g.point=_,r.lineStart()}function _(E,N){var P=Gh([E,N]),k=e(E,N);n(f,h,A,d,m,p,f=k[0],h=k[1],A=E,d=P[0],m=P[1],p=P[2],wD,r),r.point(f,h)}function b(){g.point=v,r.lineEnd()}function w(){y(),g.point=C,g.lineEnd=B}function C(E,N){_(i=E,N),a=f,o=h,s=d,u=m,c=p,g.point=_}function B(){n(f,h,A,d,m,p,a,o,i,s,u,c,wD,r),g.lineEnd=b,b()}return g}}var WBe=Gy({point:function(e,t){this.stream.point(e*ci,t*ci)}});function XBe(e){return Gy({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}function JBe(e,t,n,r,i){function a(o,s){return o*=r,s*=i,[t+e*o,n-e*s]}return a.invert=function(o,s){return[(o-t)/e*r,(n-s)/e*i]},a}function xD(e,t,n,r,i,a){if(!a)return JBe(e,t,n,r,i);var o=Yn(a),s=Mn(a),u=o*e,c=s*e,A=o/e,f=s/e,h=(s*n-o*t)/e,d=(s*t+o*n)/e;function m(p,g){return p*=r,g*=i,[u*p-c*g+t,n-c*p-u*g]}return m.invert=function(p,g){return[r*(A*p-f*g+h),i*(d-f*p-A*g)]},m}function CA(e){return CD(function(){return e})()}function CD(e){var t,n=150,r=480,i=250,a=0,o=0,s=0,u=0,c=0,A,f=0,h=1,d=1,m=null,p=eD,g=null,v,y,_,b=Sx,w=.5,C,B,E,N,P;function k(H){return E(H[0]*ci,H[1]*ci)}function F(H){return H=E.invert(H[0],H[1]),H&&[H[0]*Ao,H[1]*Ao]}k.stream=function(H){return N&&P===H?N:N=WBe(XBe(A)(p(C(b(P=H)))))},k.preclip=function(H){return arguments.length?(p=H,m=void 0,L()):p},k.postclip=function(H){return arguments.length?(b=H,g=v=y=_=null,L()):b},k.clipAngle=function(H){return arguments.length?(p=+H?FBe(m=H*ci):(m=null,eD),L()):m*Ao},k.clipExtent=function(H){return arguments.length?(b=H==null?(g=v=y=_=null,Sx):tD(g=+H[0][0],v=+H[0][1],y=+H[1][0],_=+H[1][1]),L()):g==null?null:[[g,v],[y,_]]},k.scale=function(H){return arguments.length?(n=+H,D()):n},k.translate=function(H){return arguments.length?(r=+H[0],i=+H[1],D()):[r,i]},k.center=function(H){return arguments.length?(a=H[0]%360*ci,o=H[1]%360*ci,D()):[a*Ao,o*Ao]},k.rotate=function(H){return arguments.length?(s=H[0]%360*ci,u=H[1]%360*ci,c=H.length>2?H[2]%360*ci:0,D()):[s*Ao,u*Ao,c*Ao]},k.angle=function(H){return arguments.length?(f=H%360*ci,D()):f*Ao},k.reflectX=function(H){return arguments.length?(h=H?-1:1,D()):h<0},k.reflectY=function(H){return arguments.length?(d=H?-1:1,D()):d<0},k.precision=function(H){return arguments.length?(C=BD(B,w=H*H),L()):Eo(w)},k.fitExtent=function(H,K){return Yx(k,H,K)},k.fitSize=function(H,K){return yD(k,H,K)},k.fitWidth=function(H,K){return _D(k,H,K)},k.fitHeight=function(H,K){return bD(k,H,K)};function D(){var H=xD(n,0,0,h,d,f).apply(null,t(a,o)),K=xD(n,r-H[0],i-H[1],h,d,f);return A=z7(s,u,c),B=Bx(t,K),E=Bx(A,B),C=BD(B,w),L()}function L(){return N=P=null,k}return function(){return t=e.apply(this,arguments),k.invert=t.invert&&F,D()}}function Rx(e){var t=0,n=Qn/3,r=CD(e),i=r(t,n);return i.parallels=function(a){return arguments.length?r(t=a[0]*ci,n=a[1]*ci):[t*Ao,n*Ao]},i}function ZBe(e){var t=Yn(e);function n(r,i){return[r*t,Mn(i)/t]}return n.invert=function(r,i){return[r/t,Ms(i*t)]},n}function $Be(e,t){var n=Mn(e),r=(n+Mn(t))/2;if(yr(r)<On)return ZBe(e);var i=1+n*(2*r-n),a=Eo(i)/r;function o(s,u){var c=Eo(i-2*r*Mn(u))/r;return[c*Mn(s*=r),a-c*Yn(s)]}return o.invert=function(s,u){var c=a-u,A=mc(s,yr(c))*ks(c);return c*r<0&&(A-=Qn*ks(s)*ks(c)),[A/r,Ms((i-(s*s+c*c)*r*r)/(2*r))]},o}function Wy(){return Rx($Be).scale(155.424).center([0,33.6442])}function SD(){return Wy().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function exe(e){var t=e.length;return{point:function(n,r){for(var i=-1;++i<t;)e[i].point(n,r)},sphere:function(){for(var n=-1;++n<t;)e[n].sphere()},lineStart:function(){for(var n=-1;++n<t;)e[n].lineStart()},lineEnd:function(){for(var n=-1;++n<t;)e[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<t;)e[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<t;)e[n].polygonEnd()}}}function txe(){var e,t,n=SD(),r,i=Wy().rotate([154,0]).center([-2,58.5]).parallels([55,65]),a,o=Wy().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s,u,c={point:function(h,d){u=[h,d]}};function A(h){var d=h[0],m=h[1];return u=null,r.point(d,m),u||(a.point(d,m),u)||(s.point(d,m),u)}A.invert=function(h){var d=n.scale(),m=n.translate(),p=(h[0]-m[0])/d,g=(h[1]-m[1])/d;return(g>=.12&&g<.234&&p>=-.425&&p<-.214?i:g>=.166&&g<.234&&p>=-.214&&p<-.115?o:n).invert(h)},A.stream=function(h){return e&&t===h?e:e=exe([n.stream(t=h),i.stream(h),o.stream(h)])},A.precision=function(h){return arguments.length?(n.precision(h),i.precision(h),o.precision(h),f()):n.precision()},A.scale=function(h){return arguments.length?(n.scale(h),i.scale(h*.35),o.scale(h),A.translate(n.translate())):n.scale()},A.translate=function(h){if(!arguments.length)return n.translate();var d=n.scale(),m=+h[0],p=+h[1];return r=n.translate(h).clipExtent([[m-.455*d,p-.238*d],[m+.455*d,p+.238*d]]).stream(c),a=i.translate([m-.307*d,p+.201*d]).clipExtent([[m-.425*d+On,p+.12*d+On],[m-.214*d-On,p+.234*d-On]]).stream(c),s=o.translate([m-.205*d,p+.212*d]).clipExtent([[m-.214*d+On,p+.166*d+On],[m-.115*d-On,p+.234*d-On]]).stream(c),f()},A.fitExtent=function(h,d){return Yx(A,h,d)},A.fitSize=function(h,d){return yD(A,h,d)},A.fitWidth=function(h,d){return _D(A,h,d)},A.fitHeight=function(h,d){return bD(A,h,d)};function f(){return e=t=null,A}return A.scale(1070)}function kD(e){return function(t,n){var r=Yn(t),i=Yn(n),a=e(r*i);return a===1/0?[2,0]:[a*i*Mn(t),a*Mn(n)]}}function Cg(e){return function(t,n){var r=Eo(t*t+n*n),i=e(r),a=Mn(i),o=Yn(i);return[mc(t*a,r*o),Ms(r&&n*a/r)]}}var MD=kD(function(e){return Eo(2/(1+e))});MD.invert=Cg(function(e){return 2*Ms(e/2)});function nxe(){return CA(MD).scale(124.75).clipAngle(180-.001)}var ED=kD(function(e){return(e=R7(e))&&e/Mn(e)});ED.invert=Cg(function(e){return e});function rxe(){return CA(ED).scale(79.4188).clipAngle(180-.001)}function Xy(e,t){return[e,Fy(vx((ui+t)/2))]}Xy.invert=function(e,t){return[e,2*Kh(Y7(t))-ui]};function ixe(){return LD(Xy).scale(961/Xo)}function LD(e){var t=CA(e),n=t.center,r=t.scale,i=t.translate,a=t.clipExtent,o=null,s,u,c;t.scale=function(f){return arguments.length?(r(f),A()):r()},t.translate=function(f){return arguments.length?(i(f),A()):i()},t.center=function(f){return arguments.length?(n(f),A()):n()},t.clipExtent=function(f){return arguments.length?(f==null?o=s=u=c=null:(o=+f[0][0],s=+f[0][1],u=+f[1][0],c=+f[1][1]),A()):o==null?null:[[o,s],[u,c]]};function A(){var f=Qn*r(),h=t(CBe(t.rotate()).invert([0,0]));return a(o==null?[[h[0]-f,h[1]-f],[h[0]+f,h[1]+f]]:e===Xy?[[Math.max(h[0]-f,o),s],[Math.min(h[0]+f,u),c]]:[[o,Math.max(h[1]-f,s)],[u,Math.min(h[1]+f,c)]])}return A()}function Jy(e){return vx((ui+e)/2)}function axe(e,t){var n=Yn(e),r=e===t?Mn(e):Fy(n/Yn(t))/Fy(Jy(t)/Jy(e)),i=n*gx(Jy(e),r)/r;if(!r)return Xy;function a(o,s){i>0?s<-ui+On&&(s=-ui+On):s>ui-On&&(s=ui-On);var u=i/gx(Jy(s),r);return[u*Mn(r*o),i-u*Yn(r*o)]}return a.invert=function(o,s){var u=i-s,c=ks(r)*Eo(o*o+u*u),A=mc(o,yr(u))*ks(u);return u*r<0&&(A-=Qn*ks(o)*ks(u)),[A/r,2*Kh(gx(i/c,1/r))-ui]},a}function oxe(){return Rx(axe).scale(109.5).parallels([30,30])}function Zy(e,t){return[e,t]}Zy.invert=Zy;function sxe(){return CA(Zy).scale(152.63)}function lxe(e,t){var n=Yn(e),r=e===t?Mn(e):(n-Yn(t))/(t-e),i=n/r+e;if(yr(r)<On)return Zy;function a(o,s){var u=i-s,c=r*o;return[u*Mn(c),i-u*Yn(c)]}return a.invert=function(o,s){var u=i-s,c=mc(o,yr(u))*ks(u);return u*r<0&&(c-=Qn*ks(o)*ks(u)),[c/r,i-ks(r)*Eo(o*o+u*u)]},a}function uxe(){return Rx(lxe).scale(131.154).center([0,13.9389])}var Sg=1.340264,kg=-.081106,Mg=893e-6,Eg=.003796,$y=Eo(3)/2,cxe=12;function TD(e,t){var n=Ms($y*Mn(t)),r=n*n,i=r*r*r;return[e*Yn(n)/($y*(Sg+3*kg*r+i*(7*Mg+9*Eg*r))),n*(Sg+kg*r+i*(Mg+Eg*r))]}TD.invert=function(e,t){for(var n=t,r=n*n,i=r*r*r,a=0,o,s,u;a<cxe&&(s=n*(Sg+kg*r+i*(Mg+Eg*r))-t,u=Sg+3*kg*r+i*(7*Mg+9*Eg*r),n-=o=s/u,r=n*n,i=r*r*r,!(yr(o)<P7));++a);return[$y*e*(Sg+3*kg*r+i*(7*Mg+9*Eg*r))/Yn(n),Ms(Mn(n)/$y)]};function Axe(){return CA(TD).scale(177.158)}function ND(e,t){var n=Yn(t),r=Yn(e)*n;return[n*Mn(e)/r,Mn(t)/r]}ND.invert=Cg(Kh);function dxe(){return CA(ND).scale(144.049).clipAngle(60)}function FD(e,t){return[Yn(t)*Mn(e),Mn(t)]}FD.invert=Cg(Ms);function fxe(){return CA(FD).scale(249.5).clipAngle(90+On)}function OD(e,t){var n=Yn(t),r=1+Yn(e)*n;return[n*Mn(e)/r,Mn(t)/r]}OD.invert=Cg(function(e){return 2*Kh(e)});function hxe(){return CA(OD).scale(250).clipAngle(142)}function DD(e,t){return[Fy(vx((ui+t)/2)),-e]}DD.invert=function(e,t){return[-t,2*Kh(Y7(e))-ui]};function pxe(){var e=LD(DD),t=e.center,n=e.rotate;return e.center=function(r){return arguments.length?t([-r[1],r[0]]):(r=t(),[r[1],-r[0]])},e.rotate=function(r){return arguments.length?n([r[0],r[1],r.length>2?r[2]+90:90]):(r=n(),[r[0],r[1],r[2]-90])},n([0,0,90]).scale(159.155)}function yu(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Lg(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const Qx=Symbol("implicit");function jx(){var e=new ag,t=[],n=[],r=Qx;function i(a){let o=e.get(a);if(o===void 0){if(r!==Qx)return r;e.set(a,o=t.push(a)-1)}return n[o%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new ag;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(n=Array.from(a),i):n.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return jx(t,n).unknown(r)},yu.apply(i,arguments),i}function SA(){var e=jx().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,u=0,c=0,A=.5;delete e.unknown;function f(){var h=t().length,d=i<r,m=d?i:r,p=d?r:i;a=(p-m)/Math.max(1,h-u+c*2),s&&(a=Math.floor(a)),m+=(p-m-a*(h-u))*A,o=a*(1-u),s&&(m=Math.round(m),o=Math.round(o));var g=LB(h).map(function(v){return m+a*v});return n(d?g.reverse():g)}return e.domain=function(h){return arguments.length?(t(h),f()):t()},e.range=function(h){return arguments.length?([r,i]=h,r=+r,i=+i,f()):[r,i]},e.rangeRound=function(h){return[r,i]=h,r=+r,i=+i,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(h){return arguments.length?(s=!!h,f()):s},e.padding=function(h){return arguments.length?(u=Math.min(1,c=+h),f()):u},e.paddingInner=function(h){return arguments.length?(u=Math.min(1,h),f()):u},e.paddingOuter=function(h){return arguments.length?(c=+h,f()):c},e.align=function(h){return arguments.length?(A=Math.max(0,Math.min(1,h)),f()):A},e.copy=function(){return SA(t(),[r,i]).round(s).paddingInner(u).paddingOuter(c).align(A)},yu.apply(f(),arguments)}function ID(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return ID(t())},e}function mxe(){return ID(SA.apply(null,arguments).paddingInner(1))}function gxe(e){return function(){return e}}function Vx(e){return+e}var UD=[0,1];function Lo(e){return e}function zx(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:gxe(isNaN(t)?NaN:.5)}function vxe(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function yxe(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=zx(i,r),a=n(o,a)):(r=zx(r,i),a=n(a,o)),function(s){return a(r(s))}}function _xe(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=zx(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(s){var u=J1(e,s,1,r)-1;return a[u](i[u](s))}}function Tg(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function e_(){var e=UD,t=UD,n=pu,r,i,a,o=Lo,s,u,c;function A(){var h=Math.min(e.length,t.length);return o!==Lo&&(o=vxe(e[0],e[h-1])),s=h>2?_xe:yxe,u=c=null,f}function f(h){return h==null||isNaN(h=+h)?a:(u||(u=s(e.map(r),t,n)))(r(o(h)))}return f.invert=function(h){return o(i((c||(c=s(t,e.map(r),Ya)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,Vx),A()):e.slice()},f.range=function(h){return arguments.length?(t=Array.from(h),A()):t.slice()},f.rangeRound=function(h){return t=Array.from(h),n=_y,A()},f.clamp=function(h){return arguments.length?(o=h?!0:Lo,A()):o!==Lo},f.interpolate=function(h){return arguments.length?(n=h,A()):n},f.unknown=function(h){return arguments.length?(a=h,f):a},function(h,d){return r=h,i=d,A()}}function PD(){return e_()(Lo,Lo)}function bxe(e,t,n,r){var i=MB(e,t,n),a;switch(r=gg(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=BBe(i,o))&&(r.precision=a),U7(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=xBe(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=wBe(i))&&(r.precision=a-(r.type==="%")*2);break}}return _a(r)}function Jh(e){var t=e.domain;return e.ticks=function(n){var r=t();return Ac(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return bxe(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],u,c,A=10;for(s<o&&(c=o,o=s,s=c,c=i,i=a,a=c);A-- >0;){if(c=ry(o,s,n),c===u)return r[i]=o,r[a]=s,t(r);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;u=c}return e},e}function Jo(){var e=PD();return e.copy=function(){return Tg(e,Jo())},yu.apply(e,arguments),Jh(e)}function HD(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Vx),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return HD(e).unknown(t)},e=arguments.length?Array.from(e,Vx):[0,1],Jh(n)}function YD(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function RD(e){return Math.log(e)}function QD(e){return Math.exp(e)}function wxe(e){return-Math.log(-e)}function Bxe(e){return-Math.exp(-e)}function xxe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Cxe(e){return e===10?xxe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Sxe(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 jD(e){return(t,n)=>-e(-t,n)}function VD(e){const t=e(RD,QD),n=t.domain;let r=10,i,a;function o(){return i=Sxe(r),a=Cxe(r),n()[0]<0?(i=jD(i),a=jD(a),e(wxe,Bxe)):e(RD,QD),t}return t.base=function(s){return arguments.length?(r=+s,o()):r},t.domain=function(s){return arguments.length?(n(s),o()):n()},t.ticks=s=>{const u=n();let c=u[0],A=u[u.length-1];const f=A<c;f&&([c,A]=[A,c]);let h=i(c),d=i(A),m,p;const g=s==null?10:+s;let v=[];if(!(r%1)&&d-h<g){if(h=Math.floor(h),d=Math.ceil(d),c>0){for(;h<=d;++h)for(m=1;m<r;++m)if(p=h<0?m/a(-h):m*a(h),!(p<c)){if(p>A)break;v.push(p)}}else for(;h<=d;++h)for(m=r-1;m>=1;--m)if(p=h>0?m/a(-h):m*a(h),!(p<c)){if(p>A)break;v.push(p)}v.length*2<g&&(v=Ac(c,A,g))}else v=Ac(h,d,Math.min(d-h,g)).map(a);return f?v.reverse():v},t.tickFormat=(s,u)=>{if(s==null&&(s=10),u==null&&(u=r===10?"s":","),typeof u!="function"&&(!(r%1)&&(u=gg(u)).precision==null&&(u.trim=!0),u=_a(u)),s===1/0)return u;const c=Math.max(1,r*s/t.ticks().length);return A=>{let f=A/a(Math.round(i(A)));return f*r<r-.5&&(f*=r),f<=c?u(A):""}},t.nice=()=>n(YD(n(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function zD(){const e=VD(e_()).domain([1,10]);return e.copy=()=>Tg(e,zD()).base(e.base()),yu.apply(e,arguments),e}function qD(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function KD(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function GD(e){var t=1,n=e(qD(t),KD(t));return n.constant=function(r){return arguments.length?e(qD(t=+r),KD(t)):t},Jh(n)}function WD(){var e=GD(e_());return e.copy=function(){return Tg(e,WD()).constant(e.constant())},yu.apply(e,arguments)}function XD(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function kxe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Mxe(e){return e<0?-e*e:e*e}function JD(e){var t=e(Lo,Lo),n=1;function r(){return n===1?e(Lo,Lo):n===.5?e(kxe,Mxe):e(XD(n),XD(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Jh(t)}function ZD(){var e=JD(e_());return e.copy=function(){return Tg(e,ZD()).exponent(e.exponent())},yu.apply(e,arguments),e}function $D(){var e=[],t=[],n=[],r;function i(){var o=0,s=Math.max(1,t.length);for(n=new Array(s-1);++o<s;)n[o-1]=dbe(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?r:t[J1(n,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?n[s-1]:e[0],s<n.length?n[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(wA),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return $D().domain(e).range(t).unknown(r)},yu.apply(a,arguments)}function eI(){var e=[.5],t=[0,1],n,r=1;function i(a){return a!=null&&a<=a?t[J1(e,a,0,r)]:n}return i.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return eI().domain(e).range(t).unknown(n)},yu.apply(i,arguments)}const qx=new Date,Kx=new Date;function Gi(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const u=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return u;let c;do u.push(c=new Date(+a)),t(a,s),e(a);while(c<a&&a<o);return u},i.filter=a=>Gi(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),n&&(i.count=(a,o)=>(qx.setTime(+a),Kx.setTime(+o),e(qx),e(Kx),Math.floor(n(qx,Kx))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?o=>r(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const t_=Gi(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);t_.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Gi(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):t_),t_.range;const vc=1e3,Ts=vc*60,yc=Ts*60,_c=yc*24,Gx=_c*7,tI=_c*30,Wx=_c*365,fl=Gi(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*vc)},(e,t)=>(t-e)/vc,e=>e.getUTCSeconds());fl.range;const Ng=Gi(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*vc)},(e,t)=>{e.setTime(+e+t*Ts)},(e,t)=>(t-e)/Ts,e=>e.getMinutes());Ng.range;const Fg=Gi(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ts)},(e,t)=>(t-e)/Ts,e=>e.getUTCMinutes());Fg.range;const df=Gi(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*vc-e.getMinutes()*Ts)},(e,t)=>{e.setTime(+e+t*yc)},(e,t)=>(t-e)/yc,e=>e.getHours());df.range;const Og=Gi(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*yc)},(e,t)=>(t-e)/yc,e=>e.getUTCHours());Og.range;const ff=Gi(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ts)/_c,e=>e.getDate()-1);ff.range;const n_=Gi(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/_c,e=>e.getUTCDate()-1);n_.range;const r_=Gi(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/_c,e=>Math.floor(e/_c));r_.range;function hf(e){return Gi(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())*Ts)/Gx)}const Zh=hf(0),Dg=hf(1),nI=hf(2),rI=hf(3),pf=hf(4),iI=hf(5),aI=hf(6);Zh.range,Dg.range,nI.range,rI.range,pf.range,iI.range,aI.range;function mf(e){return Gi(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)/Gx)}const $h=mf(0),Ig=mf(1),oI=mf(2),sI=mf(3),gf=mf(4),lI=mf(5),uI=mf(6);$h.range,Ig.range,oI.range,sI.range,gf.range,lI.range,uI.range;const Ug=Gi(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());Ug.range;const Pg=Gi(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());Pg.range;const hl=Gi(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());hl.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Gi(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)}),hl.range;const pl=Gi(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());pl.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Gi(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)}),pl.range;function cI(e,t,n,r,i,a){const o=[[fl,1,vc],[fl,5,5*vc],[fl,15,15*vc],[fl,30,30*vc],[a,1,Ts],[a,5,5*Ts],[a,15,15*Ts],[a,30,30*Ts],[i,1,yc],[i,3,3*yc],[i,6,6*yc],[i,12,12*yc],[r,1,_c],[r,2,2*_c],[n,1,Gx],[t,1,tI],[t,3,3*tI],[e,1,Wx]];function s(c,A,f){const h=A<c;h&&([c,A]=[A,c]);const d=f&&typeof f.range=="function"?f:u(c,A,f),m=d?d.range(c,+A+1):[];return h?m.reverse():m}function u(c,A,f){const h=Math.abs(A-c)/f,d=X1(([,,g])=>g).right(o,h);if(d===o.length)return e.every(MB(c/Wx,A/Wx,f));if(d===0)return t_.every(Math.max(MB(c,A,f),1));const[m,p]=o[h/o[d-1][2]<o[d][2]/h?d-1:d];return m.every(p)}return[s,u]}const[Exe,AI]=cI(pl,Pg,$h,r_,Og,Fg),[Lxe,Txe]=cI(hl,Ug,Zh,ff,df,Ng);function Xx(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 Jx(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 Hg(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Nxe(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,u=e.shortMonths,c=Yg(i),A=Rg(i),f=Yg(a),h=Rg(a),d=Yg(o),m=Rg(o),p=Yg(s),g=Rg(s),v=Yg(u),y=Rg(u),_={a:q,A:z,b:J,B:ie,c:null,d:gI,e:gI,f:tCe,g:ACe,G:fCe,H:Zxe,I:$xe,j:eCe,L:vI,m:nCe,M:rCe,p:X,q:I,Q:xI,s:CI,S:iCe,u:aCe,U:oCe,V:sCe,w:lCe,W:uCe,x:null,X:null,y:cCe,Y:dCe,Z:hCe,"%":BI},b={a:W,A:ee,b:ne,B:pe,c:null,d:_I,e:_I,f:vCe,g:MCe,G:LCe,H:pCe,I:mCe,j:gCe,L:bI,m:yCe,M:_Ce,p:he,q:ve,Q:xI,s:CI,S:bCe,u:wCe,U:BCe,V:xCe,w:CCe,W:SCe,x:null,X:null,y:kCe,Y:ECe,Z:TCe,"%":BI},w={a:P,A:k,b:F,B:D,c:L,d:pI,e:pI,f:Gxe,g:hI,G:fI,H:mI,I:mI,j:Vxe,L:Kxe,m:jxe,M:zxe,p:N,q:Qxe,Q:Xxe,s:Jxe,S:qxe,u:Uxe,U:Pxe,V:Hxe,w:Ixe,W:Yxe,x:H,X:K,y:hI,Y:fI,Z:Rxe,"%":Wxe};_.x=C(n,_),_.X=C(r,_),_.c=C(t,_),b.x=C(n,b),b.X=C(r,b),b.c=C(t,b);function C(ue,_e){return function(Le){var Me=[],Pe=-1,Q=0,te=ue.length,ce,$,Z;for(Le instanceof Date||(Le=new Date(+Le));++Pe<te;)ue.charCodeAt(Pe)===37&&(Me.push(ue.slice(Q,Pe)),($=dI[ce=ue.charAt(++Pe)])!=null?ce=ue.charAt(++Pe):$=ce==="e"?" ":"0",(Z=_e[ce])&&(ce=Z(Le,$)),Me.push(ce),Q=Pe+1);return Me.push(ue.slice(Q,Pe)),Me.join("")}}function B(ue,_e){return function(Le){var Me=Hg(1900,void 0,1),Pe=E(Me,ue,Le+="",0),Q,te;if(Pe!=Le.length)return null;if("Q"in Me)return new Date(Me.Q);if("s"in Me)return new Date(Me.s*1e3+("L"in Me?Me.L:0));if(_e&&!("Z"in Me)&&(Me.Z=0),"p"in Me&&(Me.H=Me.H%12+Me.p*12),Me.m===void 0&&(Me.m="q"in Me?Me.q:0),"V"in Me){if(Me.V<1||Me.V>53)return null;"w"in Me||(Me.w=1),"Z"in Me?(Q=Jx(Hg(Me.y,0,1)),te=Q.getUTCDay(),Q=te>4||te===0?Ig.ceil(Q):Ig(Q),Q=n_.offset(Q,(Me.V-1)*7),Me.y=Q.getUTCFullYear(),Me.m=Q.getUTCMonth(),Me.d=Q.getUTCDate()+(Me.w+6)%7):(Q=Xx(Hg(Me.y,0,1)),te=Q.getDay(),Q=te>4||te===0?Dg.ceil(Q):Dg(Q),Q=ff.offset(Q,(Me.V-1)*7),Me.y=Q.getFullYear(),Me.m=Q.getMonth(),Me.d=Q.getDate()+(Me.w+6)%7)}else("W"in Me||"U"in Me)&&("w"in Me||(Me.w="u"in Me?Me.u%7:"W"in Me?1:0),te="Z"in Me?Jx(Hg(Me.y,0,1)).getUTCDay():Xx(Hg(Me.y,0,1)).getDay(),Me.m=0,Me.d="W"in Me?(Me.w+6)%7+Me.W*7-(te+5)%7:Me.w+Me.U*7-(te+6)%7);return"Z"in Me?(Me.H+=Me.Z/100|0,Me.M+=Me.Z%100,Jx(Me)):Xx(Me)}}function E(ue,_e,Le,Me){for(var Pe=0,Q=_e.length,te=Le.length,ce,$;Pe<Q;){if(Me>=te)return-1;if(ce=_e.charCodeAt(Pe++),ce===37){if(ce=_e.charAt(Pe++),$=w[ce in dI?_e.charAt(Pe++):ce],!$||(Me=$(ue,Le,Me))<0)return-1}else if(ce!=Le.charCodeAt(Me++))return-1}return Me}function N(ue,_e,Le){var Me=c.exec(_e.slice(Le));return Me?(ue.p=A.get(Me[0].toLowerCase()),Le+Me[0].length):-1}function P(ue,_e,Le){var Me=d.exec(_e.slice(Le));return Me?(ue.w=m.get(Me[0].toLowerCase()),Le+Me[0].length):-1}function k(ue,_e,Le){var Me=f.exec(_e.slice(Le));return Me?(ue.w=h.get(Me[0].toLowerCase()),Le+Me[0].length):-1}function F(ue,_e,Le){var Me=v.exec(_e.slice(Le));return Me?(ue.m=y.get(Me[0].toLowerCase()),Le+Me[0].length):-1}function D(ue,_e,Le){var Me=p.exec(_e.slice(Le));return Me?(ue.m=g.get(Me[0].toLowerCase()),Le+Me[0].length):-1}function L(ue,_e,Le){return E(ue,t,_e,Le)}function H(ue,_e,Le){return E(ue,n,_e,Le)}function K(ue,_e,Le){return E(ue,r,_e,Le)}function q(ue){return o[ue.getDay()]}function z(ue){return a[ue.getDay()]}function J(ue){return u[ue.getMonth()]}function ie(ue){return s[ue.getMonth()]}function X(ue){return i[+(ue.getHours()>=12)]}function I(ue){return 1+~~(ue.getMonth()/3)}function W(ue){return o[ue.getUTCDay()]}function ee(ue){return a[ue.getUTCDay()]}function ne(ue){return u[ue.getUTCMonth()]}function pe(ue){return s[ue.getUTCMonth()]}function he(ue){return i[+(ue.getUTCHours()>=12)]}function ve(ue){return 1+~~(ue.getUTCMonth()/3)}return{format:function(ue){var _e=C(ue+="",_);return _e.toString=function(){return ue},_e},parse:function(ue){var _e=B(ue+="",!1);return _e.toString=function(){return ue},_e},utcFormat:function(ue){var _e=C(ue+="",b);return _e.toString=function(){return ue},_e},utcParse:function(ue){var _e=B(ue+="",!0);return _e.toString=function(){return ue},_e}}}var dI={"-":"",_:" ",0:"0"},la=/^\s*\d+/,Fxe=/^%/,Oxe=/[\\^$*+?|[\]().{}]/g;function lr(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function Dxe(e){return e.replace(Oxe,"\\$&")}function Yg(e){return new RegExp("^(?:"+e.map(Dxe).join("|")+")","i")}function Rg(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Ixe(e,t,n){var r=la.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Uxe(e,t,n){var r=la.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Pxe(e,t,n){var r=la.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Hxe(e,t,n){var r=la.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Yxe(e,t,n){var r=la.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function fI(e,t,n){var r=la.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function hI(e,t,n){var r=la.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Rxe(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 Qxe(e,t,n){var r=la.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function jxe(e,t,n){var r=la.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function pI(e,t,n){var r=la.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Vxe(e,t,n){var r=la.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function mI(e,t,n){var r=la.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function zxe(e,t,n){var r=la.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function qxe(e,t,n){var r=la.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Kxe(e,t,n){var r=la.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Gxe(e,t,n){var r=la.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Wxe(e,t,n){var r=Fxe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Xxe(e,t,n){var r=la.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Jxe(e,t,n){var r=la.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function gI(e,t){return lr(e.getDate(),t,2)}function Zxe(e,t){return lr(e.getHours(),t,2)}function $xe(e,t){return lr(e.getHours()%12||12,t,2)}function eCe(e,t){return lr(1+ff.count(hl(e),e),t,3)}function vI(e,t){return lr(e.getMilliseconds(),t,3)}function tCe(e,t){return vI(e,t)+"000"}function nCe(e,t){return lr(e.getMonth()+1,t,2)}function rCe(e,t){return lr(e.getMinutes(),t,2)}function iCe(e,t){return lr(e.getSeconds(),t,2)}function aCe(e){var t=e.getDay();return t===0?7:t}function oCe(e,t){return lr(Zh.count(hl(e)-1,e),t,2)}function yI(e){var t=e.getDay();return t>=4||t===0?pf(e):pf.ceil(e)}function sCe(e,t){return e=yI(e),lr(pf.count(hl(e),e)+(hl(e).getDay()===4),t,2)}function lCe(e){return e.getDay()}function uCe(e,t){return lr(Dg.count(hl(e)-1,e),t,2)}function cCe(e,t){return lr(e.getFullYear()%100,t,2)}function ACe(e,t){return e=yI(e),lr(e.getFullYear()%100,t,2)}function dCe(e,t){return lr(e.getFullYear()%1e4,t,4)}function fCe(e,t){var n=e.getDay();return e=n>=4||n===0?pf(e):pf.ceil(e),lr(e.getFullYear()%1e4,t,4)}function hCe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+lr(t/60|0,"0",2)+lr(t%60,"0",2)}function _I(e,t){return lr(e.getUTCDate(),t,2)}function pCe(e,t){return lr(e.getUTCHours(),t,2)}function mCe(e,t){return lr(e.getUTCHours()%12||12,t,2)}function gCe(e,t){return lr(1+n_.count(pl(e),e),t,3)}function bI(e,t){return lr(e.getUTCMilliseconds(),t,3)}function vCe(e,t){return bI(e,t)+"000"}function yCe(e,t){return lr(e.getUTCMonth()+1,t,2)}function _Ce(e,t){return lr(e.getUTCMinutes(),t,2)}function bCe(e,t){return lr(e.getUTCSeconds(),t,2)}function wCe(e){var t=e.getUTCDay();return t===0?7:t}function BCe(e,t){return lr($h.count(pl(e)-1,e),t,2)}function wI(e){var t=e.getUTCDay();return t>=4||t===0?gf(e):gf.ceil(e)}function xCe(e,t){return e=wI(e),lr(gf.count(pl(e),e)+(pl(e).getUTCDay()===4),t,2)}function CCe(e){return e.getUTCDay()}function SCe(e,t){return lr(Ig.count(pl(e)-1,e),t,2)}function kCe(e,t){return lr(e.getUTCFullYear()%100,t,2)}function MCe(e,t){return e=wI(e),lr(e.getUTCFullYear()%100,t,2)}function ECe(e,t){return lr(e.getUTCFullYear()%1e4,t,4)}function LCe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?gf(e):gf.ceil(e),lr(e.getUTCFullYear()%1e4,t,4)}function TCe(){return"+0000"}function BI(){return"%"}function xI(e){return+e}function CI(e){return Math.floor(+e/1e3)}var ep,Qg,jg;NCe({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 NCe(e){return ep=Nxe(e),Qg=ep.format,ep.parse,jg=ep.utcFormat,ep.utcParse,ep}function FCe(e){return new Date(e)}function OCe(e){return e instanceof Date?+e:+new Date(+e)}function Zx(e,t,n,r,i,a,o,s,u,c){var A=PD(),f=A.invert,h=A.domain,d=c(".%L"),m=c(":%S"),p=c("%I:%M"),g=c("%I %p"),v=c("%a %d"),y=c("%b %d"),_=c("%B"),b=c("%Y");function w(C){return(u(C)<C?d:s(C)<C?m:o(C)<C?p:a(C)<C?g:r(C)<C?i(C)<C?v:y:n(C)<C?_:b)(C)}return A.invert=function(C){return new Date(f(C))},A.domain=function(C){return arguments.length?h(Array.from(C,OCe)):h().map(FCe)},A.ticks=function(C){var B=h();return e(B[0],B[B.length-1],C??10)},A.tickFormat=function(C,B){return B==null?w:c(B)},A.nice=function(C){var B=h();return(!C||typeof C.range!="function")&&(C=t(B[0],B[B.length-1],C??10)),C?h(YD(B,C)):A},A.copy=function(){return Tg(A,Zx(e,t,n,r,i,a,o,s,u,c))},A}function $x(){return yu.apply(Zx(Lxe,Txe,hl,Ug,Zh,ff,df,Ng,fl,Qg).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function kA(){return yu.apply(Zx(Exe,AI,pl,Pg,$h,n_,Og,Fg,fl,jg).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function DCe(){var e=0,t=1,n,r,i,a,o=Lo,s=!1,u;function c(f){return f==null||isNaN(f=+f)?u:o(i===0?.5:(f=(a(f)-n)*i,s?Math.max(0,Math.min(1,f)):f))}c.domain=function(f){return arguments.length?([e,t]=f,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),c):[e,t]},c.clamp=function(f){return arguments.length?(s=!!f,c):s},c.interpolator=function(f){return arguments.length?(o=f,c):o};function A(f){return function(h){var d,m;return arguments.length?([d,m]=h,o=f(d,m),c):[o(0),o(1)]}}return c.range=A(pu),c.rangeRound=A(_y),c.unknown=function(f){return arguments.length?(u=f,c):u},function(f){return a=f,n=f(e),r=f(t),i=n===r?0:1/(r-n),c}}function Vg(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function _u(){var e=Jh(DCe()(Lo));return e.copy=function(){return Vg(e,_u())},Lg.apply(e,arguments)}function i_(){var e=0,t=.5,n=1,r=1,i,a,o,s,u,c=Lo,A,f=!1,h;function d(p){return isNaN(p=+p)?h:(p=.5+((p=+A(p))-a)*(r*p<r*a?s:u),c(f?Math.max(0,Math.min(1,p)):p))}d.domain=function(p){return arguments.length?([e,t,n]=p,i=A(e=+e),a=A(t=+t),o=A(n=+n),s=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),r=a<i?-1:1,d):[e,t,n]},d.clamp=function(p){return arguments.length?(f=!!p,d):f},d.interpolator=function(p){return arguments.length?(c=p,d):c};function m(p){return function(g){var v,y,_;return arguments.length?([v,y,_]=g,c=wy(p,[v,y,_]),d):[c(0),c(.5),c(1)]}}return d.range=m(pu),d.rangeRound=m(_y),d.unknown=function(p){return arguments.length?(h=p,d):h},function(p){return A=p,i=p(e),a=p(t),o=p(n),s=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),r=a<i?-1:1,d}}function SI(){var e=Jh(i_()(Lo));return e.copy=function(){return Vg(e,SI())},Lg.apply(e,arguments)}function kI(){var e=VD(i_()).domain([.1,1,10]);return e.copy=function(){return Vg(e,kI()).base(e.base())},Lg.apply(e,arguments)}function MI(){var e=GD(i_());return e.copy=function(){return Vg(e,MI()).constant(e.constant())},Lg.apply(e,arguments)}function EI(){var e=JD(i_());return e.copy=function(){return Vg(e,EI()).exponent(e.exponent())},Lg.apply(e,arguments)}function En(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(r*6,++r*6);return n}const ICe=En("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),UCe=En("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),PCe=En("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),HCe=En("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0"),YCe=En("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),RCe=En("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),QCe=En("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),jCe=En("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),VCe=En("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),zCe=En("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),qCe=En("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Tr=e=>Mwe(e[e.length-1]);var LI=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(En);const TI=Tr(LI);var NI=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(En);const FI=Tr(NI);var OI=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(En);const DI=Tr(OI);var II=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(En);const UI=Tr(II);var eC=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(En);const a_=Tr(eC);var PI=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(En);const HI=Tr(PI);var tC=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(En);const o_=Tr(tC);var YI=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(En);const RI=Tr(YI);var QI=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(En);const jI=Tr(QI);var VI=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(En);const zI=Tr(VI);var qI=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(En);const KI=Tr(qI);var GI=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(En);const WI=Tr(GI);var XI=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(En);const JI=Tr(XI);var ZI=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(En);const $I=Tr(ZI);var eU=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(En);const tU=Tr(eU);var nU=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(En);const rU=Tr(nU);var iU=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(En);const aU=Tr(iU);var oU=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(En);const sU=Tr(oU);var lU=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(En);const uU=Tr(lU);var cU=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(En);const AU=Tr(cU);var dU=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(En);const fU=Tr(dU);var hU=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(En);const s_=Tr(hU);var pU=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(En);const l_=Tr(pU);var mU=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(En);const zg=Tr(mU);var gU=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(En);const vU=Tr(gU);var yU=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(En);const nC=Tr(yU);var _U=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(En);const rC=Tr(_U);function bU(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}const wU=ex(hu(300,.5,0),hu(-240,.5,1));var BU=ex(hu(-100,.75,.35),hu(80,1.5,.8)),xU=ex(hu(260,.75,.35),hu(80,1.5,.8)),u_=hu();function CU(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return u_.h=360*e-100,u_.s=1.5-1.5*t,u_.l=.8-.9*t,u_+""}var c_=xA(),KCe=Math.PI/3,GCe=Math.PI*2/3;function SU(e){var t;return e=(.5-e)*Math.PI,c_.r=255*(t=Math.sin(e))*t,c_.g=255*(t=Math.sin(e+KCe))*t,c_.b=255*(t=Math.sin(e+GCe))*t,c_+""}function kU(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function A_(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const MU=A_(En("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var EU=A_(En("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),LU=A_(En("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),TU=A_(En("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function Rn(e){return function(){return e}}const NU=Math.abs,ja=Math.atan2,bc=Math.cos,WCe=Math.max,tp=Math.min,To=Math.sin,zr=Math.sqrt,Va=1e-12,MA=Math.PI,d_=MA/2,EA=2*MA;function XCe(e){return e>1?0:e<-1?MA:Math.acos(e)}function FU(e){return e>=1?d_:e<=-1?-d_:Math.asin(e)}function f_(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 L7(t)}function JCe(e){return e.innerRadius}function ZCe(e){return e.outerRadius}function $Ce(e){return e.startAngle}function eSe(e){return e.endAngle}function tSe(e){return e&&e.padAngle}function nSe(e,t,n,r,i,a,o,s){var u=n-e,c=r-t,A=o-i,f=s-a,h=f*u-A*c;if(!(h*h<Va))return h=(A*(t-a)-f*(e-i))/h,[e+h*u,t+h*c]}function h_(e,t,n,r,i,a,o){var s=e-n,u=t-r,c=(o?a:-a)/zr(s*s+u*u),A=c*u,f=-c*s,h=e+A,d=t+f,m=n+A,p=r+f,g=(h+m)/2,v=(d+p)/2,y=m-h,_=p-d,b=y*y+_*_,w=i-a,C=h*p-m*d,B=(_<0?-1:1)*zr(WCe(0,w*w*b-C*C)),E=(C*_-y*B)/b,N=(-C*y-_*B)/b,P=(C*_+y*B)/b,k=(-C*y+_*B)/b,F=E-g,D=N-v,L=P-g,H=k-v;return F*F+D*D>L*L+H*H&&(E=P,N=k),{cx:E,cy:N,x01:-A,y01:-f,x11:E*(i/w-1),y11:N*(i/w-1)}}function iC(){var e=JCe,t=ZCe,n=Rn(0),r=null,i=$Ce,a=eSe,o=tSe,s=null,u=f_(c);function c(){var A,f,h=+e.apply(this,arguments),d=+t.apply(this,arguments),m=i.apply(this,arguments)-d_,p=a.apply(this,arguments)-d_,g=NU(p-m),v=p>m;if(s||(s=A=u()),d<h&&(f=d,d=h,h=f),!(d>Va))s.moveTo(0,0);else if(g>EA-Va)s.moveTo(d*bc(m),d*To(m)),s.arc(0,0,d,m,p,!v),h>Va&&(s.moveTo(h*bc(p),h*To(p)),s.arc(0,0,h,p,m,v));else{var y=m,_=p,b=m,w=p,C=g,B=g,E=o.apply(this,arguments)/2,N=E>Va&&(r?+r.apply(this,arguments):zr(h*h+d*d)),P=tp(NU(d-h)/2,+n.apply(this,arguments)),k=P,F=P,D,L;if(N>Va){var H=FU(N/h*To(E)),K=FU(N/d*To(E));(C-=H*2)>Va?(H*=v?1:-1,b+=H,w-=H):(C=0,b=w=(m+p)/2),(B-=K*2)>Va?(K*=v?1:-1,y+=K,_-=K):(B=0,y=_=(m+p)/2)}var q=d*bc(y),z=d*To(y),J=h*bc(w),ie=h*To(w);if(P>Va){var X=d*bc(_),I=d*To(_),W=h*bc(b),ee=h*To(b),ne;if(g<MA)if(ne=nSe(q,z,W,ee,X,I,J,ie)){var pe=q-ne[0],he=z-ne[1],ve=X-ne[0],ue=I-ne[1],_e=1/To(XCe((pe*ve+he*ue)/(zr(pe*pe+he*he)*zr(ve*ve+ue*ue)))/2),Le=zr(ne[0]*ne[0]+ne[1]*ne[1]);k=tp(P,(h-Le)/(_e-1)),F=tp(P,(d-Le)/(_e+1))}else k=F=0}B>Va?F>Va?(D=h_(W,ee,q,z,d,F,v),L=h_(X,I,J,ie,d,F,v),s.moveTo(D.cx+D.x01,D.cy+D.y01),F<P?s.arc(D.cx,D.cy,F,ja(D.y01,D.x01),ja(L.y01,L.x01),!v):(s.arc(D.cx,D.cy,F,ja(D.y01,D.x01),ja(D.y11,D.x11),!v),s.arc(0,0,d,ja(D.cy+D.y11,D.cx+D.x11),ja(L.cy+L.y11,L.cx+L.x11),!v),s.arc(L.cx,L.cy,F,ja(L.y11,L.x11),ja(L.y01,L.x01),!v))):(s.moveTo(q,z),s.arc(0,0,d,y,_,!v)):s.moveTo(q,z),!(h>Va)||!(C>Va)?s.lineTo(J,ie):k>Va?(D=h_(J,ie,X,I,h,-k,v),L=h_(q,z,W,ee,h,-k,v),s.lineTo(D.cx+D.x01,D.cy+D.y01),k<P?s.arc(D.cx,D.cy,k,ja(D.y01,D.x01),ja(L.y01,L.x01),!v):(s.arc(D.cx,D.cy,k,ja(D.y01,D.x01),ja(D.y11,D.x11),!v),s.arc(0,0,h,ja(D.cy+D.y11,D.cx+D.x11),ja(L.cy+L.y11,L.cx+L.x11),v),s.arc(L.cx,L.cy,k,ja(L.y11,L.x11),ja(L.y01,L.x01),!v))):s.arc(0,0,h,w,b,v)}if(s.closePath(),A)return s=null,A+""||null}return c.centroid=function(){var A=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,f=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-MA/2;return[bc(f)*A,To(f)*A]},c.innerRadius=function(A){return arguments.length?(e=typeof A=="function"?A:Rn(+A),c):e},c.outerRadius=function(A){return arguments.length?(t=typeof A=="function"?A:Rn(+A),c):t},c.cornerRadius=function(A){return arguments.length?(n=typeof A=="function"?A:Rn(+A),c):n},c.padRadius=function(A){return arguments.length?(r=A==null?null:typeof A=="function"?A:Rn(+A),c):r},c.startAngle=function(A){return arguments.length?(i=typeof A=="function"?A:Rn(+A),c):i},c.endAngle=function(A){return arguments.length?(a=typeof A=="function"?A:Rn(+A),c):a},c.padAngle=function(A){return arguments.length?(o=typeof A=="function"?A:Rn(+A),c):o},c.context=function(A){return arguments.length?(s=A??null,c):s},c}var rSe=Array.prototype.slice;function p_(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function OU(e){this._context=e}OU.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 qg(e){return new OU(e)}function aC(e){return e[0]}function oC(e){return e[1]}function Kg(e,t){var n=Rn(!0),r=null,i=qg,a=null,o=f_(s);e=typeof e=="function"?e:e===void 0?aC:Rn(e),t=typeof t=="function"?t:t===void 0?oC:Rn(t);function s(u){var c,A=(u=p_(u)).length,f,h=!1,d;for(r==null&&(a=i(d=o())),c=0;c<=A;++c)!(c<A&&n(f=u[c],c,u))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(f,c,u),+t(f,c,u));if(d)return a=null,d+""||null}return s.x=function(u){return arguments.length?(e=typeof u=="function"?u:Rn(+u),s):e},s.y=function(u){return arguments.length?(t=typeof u=="function"?u:Rn(+u),s):t},s.defined=function(u){return arguments.length?(n=typeof u=="function"?u:Rn(!!u),s):n},s.curve=function(u){return arguments.length?(i=u,r!=null&&(a=i(r)),s):i},s.context=function(u){return arguments.length?(u==null?r=a=null:a=i(r=u),s):r},s}function iSe(e,t,n){var r=null,i=Rn(!0),a=null,o=qg,s=null,u=f_(c);e=typeof e=="function"?e:e===void 0?aC:Rn(+e),t=typeof t=="function"?t:Rn(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?oC:Rn(+n);function c(f){var h,d,m,p=(f=p_(f)).length,g,v=!1,y,_=new Array(p),b=new Array(p);for(a==null&&(s=o(y=u())),h=0;h<=p;++h){if(!(h<p&&i(g=f[h],h,f))===v)if(v=!v)d=h,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=h-1;m>=d;--m)s.point(_[m],b[m]);s.lineEnd(),s.areaEnd()}v&&(_[h]=+e(g,h,f),b[h]=+t(g,h,f),s.point(r?+r(g,h,f):_[h],n?+n(g,h,f):b[h]))}if(y)return s=null,y+""||null}function A(){return Kg().defined(i).curve(o).context(a)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:Rn(+f),r=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Rn(+f),c):e},c.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Rn(+f),c):r},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:Rn(+f),n=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Rn(+f),c):t},c.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Rn(+f),c):n},c.lineX0=c.lineY0=function(){return A().x(e).y(t)},c.lineY1=function(){return A().x(e).y(n)},c.lineX1=function(){return A().x(r).y(t)},c.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Rn(!!f),c):i},c.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),c):o},c.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),c):a},c}function aSe(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function oSe(e){return e}function sSe(){var e=oSe,t=aSe,n=null,r=Rn(0),i=Rn(EA),a=Rn(0);function o(s){var u,c=(s=p_(s)).length,A,f,h=0,d=new Array(c),m=new Array(c),p=+r.apply(this,arguments),g=Math.min(EA,Math.max(-EA,i.apply(this,arguments)-p)),v,y=Math.min(Math.abs(g)/c,a.apply(this,arguments)),_=y*(g<0?-1:1),b;for(u=0;u<c;++u)(b=m[d[u]=u]=+e(s[u],u,s))>0&&(h+=b);for(t!=null?d.sort(function(w,C){return t(m[w],m[C])}):n!=null&&d.sort(function(w,C){return n(s[w],s[C])}),u=0,f=h?(g-c*_)/h:0;u<c;++u,p=v)A=d[u],b=m[A],v=p+(b>0?b*f:0)+_,m[A]={data:s[A],index:u,value:b,startAngle:p,endAngle:v,padAngle:y};return m}return o.value=function(s){return arguments.length?(e=typeof s=="function"?s:Rn(+s),o):e},o.sortValues=function(s){return arguments.length?(t=s,n=null,o):t},o.sort=function(s){return arguments.length?(n=s,t=null,o):n},o.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:Rn(+s),o):r},o.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:Rn(+s),o):i},o.padAngle=function(s){return arguments.length?(a=typeof s=="function"?s:Rn(+s),o):a},o}class DU{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 IU(e){return new DU(e,!0)}function lSe(e){return new DU(e,!1)}function uSe(e){return e.source}function cSe(e){return e.target}function ASe(e){let t=uSe,n=cSe,r=aC,i=oC,a=null,o=null,s=f_(u);function u(){let c;const A=rSe.call(arguments),f=t.apply(this,A),h=n.apply(this,A);if(a==null&&(o=e(c=s())),o.lineStart(),A[0]=f,o.point(+r.apply(this,A),+i.apply(this,A)),A[0]=h,o.point(+r.apply(this,A),+i.apply(this,A)),o.lineEnd(),c)return o=null,c+""||null}return u.source=function(c){return arguments.length?(t=c,u):t},u.target=function(c){return arguments.length?(n=c,u):n},u.x=function(c){return arguments.length?(r=typeof c=="function"?c:Rn(+c),u):r},u.y=function(c){return arguments.length?(i=typeof c=="function"?c:Rn(+c),u):i},u.context=function(c){return arguments.length?(c==null?a=o=null:o=e(a=c),u):a},u}function dSe(){return ASe(IU)}const fSe=zr(3),UU={draw(e,t){const n=zr(t+tp(t/28,.75))*.59436,r=n/2,i=r*fSe;e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-i,-r),e.lineTo(i,r),e.moveTo(-i,r),e.lineTo(i,-r)}},Gg={draw(e,t){const n=zr(t/MA);e.moveTo(n,0),e.arc(0,0,n,0,EA)}},PU={draw(e,t){const n=zr(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},HU=zr(1/3),hSe=HU*2,YU={draw(e,t){const n=zr(t/hSe),r=n*HU;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},RU={draw(e,t){const n=zr(t)*.62625;e.moveTo(0,-n),e.lineTo(n,0),e.lineTo(0,n),e.lineTo(-n,0),e.closePath()}},QU={draw(e,t){const n=zr(t-tp(t/7,2))*.87559;e.moveTo(-n,0),e.lineTo(n,0),e.moveTo(0,n),e.lineTo(0,-n)}},jU={draw(e,t){const n=zr(t),r=-n/2;e.rect(r,r,n,n)}},VU={draw(e,t){const n=zr(t)*.4431;e.moveTo(n,n),e.lineTo(n,-n),e.lineTo(-n,-n),e.lineTo(-n,n),e.closePath()}},pSe=.8908130915292852,zU=To(MA/10)/To(7*MA/10),mSe=To(EA/10)*zU,gSe=-bc(EA/10)*zU,qU={draw(e,t){const n=zr(t*pSe),r=mSe*n,i=gSe*n;e.moveTo(0,-n),e.lineTo(r,i);for(let a=1;a<5;++a){const o=EA*a/5,s=bc(o),u=To(o);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*i,u*r+s*i)}e.closePath()}},sC=zr(3),KU={draw(e,t){const n=-zr(t/(sC*3));e.moveTo(0,n*2),e.lineTo(-sC*n,-n),e.lineTo(sC*n,-n),e.closePath()}},vSe=zr(3),GU={draw(e,t){const n=zr(t)*.6824,r=n/2,i=n*vSe/2;e.moveTo(0,-n),e.lineTo(i,r),e.lineTo(-i,r),e.closePath()}},Ns=-.5,Fs=zr(3)/2,lC=1/zr(12),ySe=(lC/2+1)*3,WU={draw(e,t){const n=zr(t/ySe),r=n/2,i=n*lC,a=r,o=n*lC+n,s=-a,u=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,u),e.lineTo(Ns*r-Fs*i,Fs*r+Ns*i),e.lineTo(Ns*a-Fs*o,Fs*a+Ns*o),e.lineTo(Ns*s-Fs*u,Fs*s+Ns*u),e.lineTo(Ns*r+Fs*i,Ns*i-Fs*r),e.lineTo(Ns*a+Fs*o,Ns*o-Fs*a),e.lineTo(Ns*s+Fs*u,Ns*u-Fs*s),e.closePath()}},XU={draw(e,t){const n=zr(t-tp(t/6,1.7))*.6189;e.moveTo(-n,-n),e.lineTo(n,n),e.moveTo(-n,n),e.lineTo(n,-n)}},_Se=[Gg,PU,YU,jU,qU,KU,WU],bSe=[Gg,QU,XU,GU,UU,VU,RU];function LA(){}function m_(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 g_(e){this._context=e}g_.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:m_(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:m_(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function wSe(e){return new g_(e)}function JU(e){this._context=e}JU.prototype={areaStart:LA,areaEnd:LA,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:m_(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function BSe(e){return new JU(e)}function ZU(e){this._context=e}ZU.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:m_(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function xSe(e){return new ZU(e)}function $U(e,t){this._basis=new g_(e),this._beta=t}$U.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,u;++s<=n;)u=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+u*a),this._beta*t[s]+(1-this._beta)*(i+u*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const CSe=function e(t){function n(r){return t===1?new g_(r):new $U(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function v_(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 uC(e,t){this._context=e,this._k=(1-t)/6}uC.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:v_(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:v_(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 SSe=function e(t){function n(r){return new uC(r,t)}return n.tension=function(r){return e(+r)},n}(0);function cC(e,t){this._context=e,this._k=(1-t)/6}cC.prototype={areaStart:LA,areaEnd:LA,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:v_(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 kSe=function e(t){function n(r){return new cC(r,t)}return n.tension=function(r){return e(+r)},n}(0);function AC(e,t){this._context=e,this._k=(1-t)/6}AC.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:v_(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 MSe=function e(t){function n(r){return new AC(r,t)}return n.tension=function(r){return e(+r)},n}(0);function dC(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>Va){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>Va){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,A=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/A,o=(o*c+e._y1*e._l23_2a-n*e._l12_2a)/A}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function eP(e,t){this._context=e,this._alpha=t}eP.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:dC(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 ESe=function e(t){function n(r){return t?new eP(r,t):new uC(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function tP(e,t){this._context=e,this._alpha=t}tP.prototype={areaStart:LA,areaEnd:LA,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:dC(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 LSe=function e(t){function n(r){return t?new tP(r,t):new cC(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function nP(e,t){this._context=e,this._alpha=t}nP.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:dC(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 TSe=function e(t){function n(r){return t?new nP(r,t):new AC(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function rP(e){this._context=e}rP.prototype={areaStart:LA,areaEnd:LA,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 NSe(e){return new rP(e)}function iP(e){return e<0?-1:1}function aP(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(iP(a)+iP(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function oP(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function fC(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function y_(e){this._context=e}y_.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:fC(this,this._t0,oP(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,fC(this,oP(this,n=aP(this,e,t)),n);break;default:fC(this,this._t0,n=aP(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function sP(e){this._context=new lP(e)}(sP.prototype=Object.create(y_.prototype)).point=function(e,t){y_.prototype.point.call(this,t,e)};function lP(e){this._context=e}lP.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function FSe(e){return new y_(e)}function OSe(e){return new sP(e)}function uP(e){this._context=e}uP.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=cP(e),i=cP(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function cP(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function DSe(e){return new uP(e)}function __(e,t){this._context=e,this._t=t}__.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 ISe(e){return new __(e,.5)}function USe(e){return new __(e,0)}function PSe(e){return new __(e,1)}function AP(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function dP(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function HSe(e,t){return e[t]}function YSe(e){const t=[];return t.key=e,t}function fP(){var e=Rn([]),t=dP,n=AP,r=HSe;function i(a){var o=Array.from(e.apply(this,arguments),YSe),s,u=o.length,c=-1,A;for(const f of a)for(s=0,++c;s<u;++s)(o[s][c]=[0,+r(f,o[s].key,c,a)]).data=f;for(s=0,A=p_(t(o));s<u;++s)o[A[s]].index=s;return n(o,A),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Rn(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:Rn(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?dP:typeof a=="function"?a:Rn(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??AP,i):n},i}function Wg(e,t,n){this.k=e,this.x=t,this.y=n}Wg.prototype={constructor:Wg,scale:function(e){return e===1?this:new Wg(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Wg(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+")"}},Wg.prototype;const Ai={light:{canvas:"#ececee",primary:"#003153",secondary:"#2d6f9d",accent:"#9C27B0",positive:"#259940",neutral:"#777777",negative:"#C10015",info:"#007bf5",warning:"#C71E23",active:"#007D11",active2:"#BE8700",inactive:"#5C5C5C",error:"#B44936",text:"#000000",main:"#FFFFFF"},dark:{canvas:"#121212",primary:"#003153",secondary:"#2d6f9d",accent:"#9C27B0",positive:"#259940",neutral:"#777777",negative:"#C10015",info:"#007bf5",warning:"#C71E23",active:"#03FC1C",active2:"goldenrod",inactive:"#BDBDBD",error:"#FD1C03",text:"#cbd5e1",main:"#1f2937"}},TA={light:{pass:"#27aeef",input:"#007D11",output:"#007D11",drop:"#ef9b20",abort:"#7f7f7f",compressed:"#5C5C5C",error:"#ea5545",ignored:"#7f7f7f",buffer:"#27aeef"},dark:{pass:"#27aeef",input:"#03FC1C",output:"#03FC1C",drop:"#ef9b20",abort:"#7f7f7f",compressed:"#BDBDBD",error:"#ea5545",ignored:"#7f7f7f",buffer:"#27aeef"},scale:{pass:_u(s_),input:_u(l_),output:_u(l_),drop:_u(rC),abort:_u(zg),compressed:_u(zg),error:_u(nC),ignored:_u(zg),buffer:_u(s_)}},hC={light:{ingressdata:"#007D11",egresstootherregion:"#ef9b20",egresstointernet:"#27aeef"},dark:{ingressdata:"#03FC1C",egresstootherregion:"#ef9b20",egresstointernet:"#27aeef"}},jn=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf","#1c9099","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],b_={light:{Average:"#ff7f0e",Upper_Bound:"#2ca02c",Lower_Bound:"#e377c2",Alert:"#27aeef"},dark:{Average:"#ff7f0e",Upper_Bound:"#2ca02c",Lower_Bound:"#e377c2",Alert:"#27aeef"}},RSe={green:["#3FA83F","#93CE07","#43B446","#73B142","#259940","#00695C","#3ec995"],compute15:QSe("#b50101","#7f7f7f",15)};function hP(e){return e<0?"00":e<16?"0"+e.toString(16):e.toString(16)}function pC(e,t,n,r){return e>t?hP(Math.floor((t-e)*(n/r))+e):hP(Math.floor((e-t)*(1-n/r))+t)}function QSe(e,t,n){e=e.replace("#",""),t=t.replace("#","");const r=parseInt(e.substring(0,2),16),i=parseInt(e.substring(2,4),16),a=parseInt(e.substring(4,6),16),o=parseInt(t.substring(0,2),16),s=parseInt(t.substring(2,4),16),u=parseInt(t.substring(4,6),16),c=[];for(let A=0;A<=n;A++){let f="#";const h=pC(r,o,A,n),d=pC(i,s,A,n),m=pC(a,u,A,n);f=f+h+d+m,c.push(f)}return c}function jSe(e,t){const n=RSe[e];return n[t%n.length]}function VSe(e,t){let n=0;for(let r=0;r<t.length;r++)n+=t.charCodeAt(r);return jSe(e,n)}const NA=e=>`$${e.toFixed(2)}`,Xr=e=>{const t=["","K","M","G","T","P"];let n=0;const r=e>=0;let i=Math.abs(e);if(i<1e3)return i;for(;i>=1e3&&n<t.length-1;)i/=1e3,++n;return r?`${i.toFixed(1)} ${t[n]}`:`-${i.toFixed(1)} ${t[n]}`},Jr=e=>{const t=["","Ki","Mi","Gi","Ti","Pi"];let n=0;const r=e>=0;let i=Math.abs(e);if(i<1024)return i===1e3?1e3:i.toPrecision(3);for(;i>=1024&&n<t.length-1;)i/=1024,++n;return r?`${i.toFixed(1)} ${t[n]}`:`-${i.toFixed(1)} ${t[n]}`},pP=e=>e>6e4?e>36e5?e>864e5?Math.floor(e/864e5)+" days":Math.floor(e/36e5)+" hrs":Math.floor(e/6e4)+" mins":e+" ms",mP=e=>{const t=["s","mins","hrs","days"];let n=e,r="";if(n>=86400){const i=Math.floor(n/86400);n%=86400,r+=`${i} ${t[3]} `}if(n>=3600){const i=Math.floor(n/3600);n%=3600,r+=`${i} ${t[2]} `}if(n>=60){const i=Math.floor(n/60);n%=60,r+=`${i} ${t[1]} `}return`${r}${n} ${t[0]}`},zSe={props:{id:{type:String,required:!0},data:{type:Object,required:!0},unit:{type:String,default:"Count"},width:{type:Number,default:350},height:{type:Number,default:200},pannable:{type:Boolean,default:!0},theme:{type:String,default:"light"}},data(){return{svg:null}},mounted(){this.initializeChart(),this.createChart(this.data)},methods:{initializeChart(){this.svg=Ot("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height)},createChart(e){let t=[];e.series.forEach((h,d)=>{t.push({...h,index:d})});const n=this.width,r=this.height,i=20,a=15,o=30,s=50,u=[],c=(h,d)=>{const m=new Date(d.slots).toUTCString(),p=this.unit==="Bytes (B)"?Jr(d.values)+"B":this.unit==="Percent (%)"?d.values.toFixed(2)+"%":Xr(d.values),g=d.action?`${d.action}<br>Time: ${m}<br>Value: ${p}`:`Alert<br>Time: ${m}<br>Value: ${p}`;h.target.r.baseVal.value=5,Ot("#"+this.id+"tooltip").html(g).style("opacity",1).style("left",h.layerX+"px").style("top",h.layerY+"px")},A=(h,d)=>{h.target.r.baseVal.value=3,Ot("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")};(()=>{const h=t.filter(_=>!u.includes(_.index)),d=this.getAxisLargest(h),m=kA(ii(d[0]),[s,n-a]),p=Jo([0,d[1]],[r-o,i]),g=this.svg.append("g").attr("class",this.id+"xaxis").attr("transform",`translate(0,${r-o})`).call(uo(m).ticks(n/80).tickSizeOuter(0));if(this.svg.append("g").attr("class",this.id+"yaxis").attr("transform",`translate(${s},0)`).call($d(p).ticks(r/40).tickFormat(_=>this.unit==="Bytes (B)"?Jr(_):Xr(_))).call(_=>_.select(".domain").remove()).call(_=>_.selectAll(".tick line").clone().attr("x2",n-s-a).attr("stroke-opacity",.1)).call(_=>_.append("text").attr("x",-s).attr("y",10).attr("fill","currentColor").attr("text-anchor","start").text(this.unit)),this.pannable){let b=function(){_=null},_;const w=(B,E)=>{const N=B.selection;if(N)m.domain([m.invert(N[0]),m.invert(N[1])]),this.svg.select("."+this.id+"brush").call(C.move,null);else{if(!_)return _=setTimeout(b,500);m.domain(ii(e.slots))}g.transition().duration(1e3).call(uo(m)),this.svg.selectAll("."+this.id+"line").attr("d",function(P){return v(P.values.map((k,F)=>({slots:e.slots[F],values:k})))}),this.svg.selectAll("."+this.id+"points").attr("cx",P=>m(P.slots))},C=M7().extent([[0,0],[n,r]]).on("end",w);this.svg.append("g").attr("class",B=>this.id+"brush").call(C),this.svg.on("dblclick",function(){m.domain(ii(d[0],function(B){return B})),g.transition().call(uo(m)),this.svg.selectAll("."+this.id+"line").attr("d",function(B){return v(B.values.map((E,N)=>({slots:e.slots[N],values:E})))}),this.svg.selectAll("."+this.id+"points").attr("cx",B=>m(B.slots))})}const v=Kg().x((_,b)=>m(_.slots)).y((_,b)=>p(_.values));this.svg.selectAll(".line").data(h).enter().append("path").attr("class",_=>this.id+_.index+"line "+this.id+"line").attr("fill","none").attr("z-index",1).style("stroke",_=>b_[this.theme][_.action]||`${jn[_.index%jn.length]}${this.theme==="dark"?"CC":"99"}`).style("stroke-dasharray","3, 3").attr("stroke-width",1).attr("d",function(_){return v(_.values.map((b,w)=>({slots:e.slots[w],values:b})))}),this.svg.selectAll(".line").data([e]).enter().append("path").attr("class",this.id+"line").attr("fill","none").attr("z-index",1).style("stroke",b_[this.theme].Alert).attr("stroke-width",1.5).attr("d",function(_){return v(_.slots.map((b,w)=>({slots:b,values:_.values[w]})))});const y=e.slots.map((_,b)=>({slots:_,values:e.values[b],isAlert:e.metric.bools[b]}));this.svg.selectAll(".point").data(y).enter().append("circle").attr("class",(_,b)=>this.id+b+"points "+this.id+"points").attr("fill",jn[3]).attr("display",_=>_.isAlert?"":"none").attr("r",3).attr("cx",_=>m(_.slots)).attr("cy",_=>p(_.values)).on("mouseover",c).on("mouseout",A)})(),e.series||this.svg.append("text").attr("x",n/2).attr("y",r/2).attr("text-anchor","middle").attr("fill","currentColor").text("No data available"),e.series.length>0&&(this.legend=Ot("#"+this.id+"legend").append("svg").attr("width",this.width>600?200:75).attr("height",Math.max(25*e.series.length,r-20)),this.legend.selectAll("legendDots").data([...t,{action:"Alert",index:t.length}]).enter().append("circle").attr("id",h=>this.id+h.index+"dots").attr("class","show").attr("cx",10).attr("cy",(h,d)=>r/(t.length+2)+d*25).attr("r",5).style("fill",h=>b_[this.theme][h.action]||`${jn[h.index%jn.length]}${this.theme==="dark"?"CC":"99"}`),this.legend.selectAll("legendLabels").data([...t,{action:"Alert",index:t.length}]).enter().append("text").attr("class",h=>this.id+h.index+"labels").attr("x",20).attr("y",(h,d)=>r/(t.length+2)+d*25).style("fill",h=>b_[this.theme][h.action]||`${jn[h.index%jn.length]}${this.theme==="dark"?"CC":"99"}`).text(h=>h.action==="Alert"?e.action:h.action||"(no name)").attr("font-weight",500).attr("text-anchor","left").attr("font-size","11px").style("alignment-baseline","middle"))},getAxisLargest(e){let t=this.data.slots,n=Math.max(...this.data.values);return e.forEach((r,i)=>{const a=Math.max(...r.values);a>n&&(n=a)}),[t,n]}}},qSe=["id"],KSe=["id"],GSe=["id"];function WSe(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{id:n.id,class:"float-left"},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,KSe)],8,qSe),l.createElementVNode("div",{class:"overflow-auto",style:l.normalizeStyle(`height: ${n.height}px; overflow: auto`)},[l.createElementVNode("div",{id:n.id+"legend"},null,8,GSe)],4)],64)}const mC=ar(zSe,[["render",WSe]]),XSe={props:{id:String,tooltip:String,runs:Array,tooltipOffset:{type:String,default:"client"},theme:{type:String,default:"light"}},data(){return{svg:null,width:250,height:60}},mounted(){this.initializeChart(),this.createChart()},methods:{initializeChart(){this.svg=Ot("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height).attr("style","outline: thin solid;")},createChart(){const e=this.width,t=this.height,n=3,r=18,i=17,a=18,o=(A,f)=>{Pn("."+this.id+"run").attr("opacity","0.5"),Ot("."+this.id+f.taskID).attr("opacity","1");const h=ft(f.launchTime).format("YYYY-MM-DD HH:mm:ss"),d=ft(f.completeTime).format("YYYY-MM-DD HH:mm:ss"),m=ft(f.completeTime).diff(ft(f.launchTime)),p=`Task: ${f.taskID}<br>Status: ${f.status}<br>Launch Time: ${h}<br>Complete Time: ${d}<br>Duration: ${pP(m)}`;Ot("#"+this.id+"tooltip").html(p).style("opacity",1).style("left",A[this.tooltipOffset+"X"]+10+"px").style("top",A[this.tooltipOffset+"Y"]+"px")},s=(A,f)=>{Pn("."+this.id+"run").attr("opacity","1"),Ot("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},u=this.runs.map(A=>ft(A.launchTime).valueOf());u.length===1&&(u.push(ft(u[0]).add(2,"minute").valueOf()),u.push(ft(u[0]).subtract(2,"minute").valueOf()));const c=$x(ii(u),[a,e-r]);this.svg.append("g").attr("class",this.id+"xaxis").attr("transform",`translate(0,${t-i})`).call(uo(c).ticks(e/80).tickSize(3).tickSizeOuter(0)),this.svg.selectAll(".rect").data(this.runs).enter().append("rect").attr("class",A=>this.id+`run ${this.id}${A.taskID}`).attr("style","cursor: pointer;").attr("z-index",1).attr("x",A=>c(ft(A.launchTime).valueOf())).attr("y",n).attr("width",A=>{const f=c(ft(A.completeTime).valueOf())-c(ft(A.launchTime).valueOf());return f>3.5?f:3.5}).attr("height",A=>t-i-n).attr("fill",A=>{const f=A.status==="completed"?"input":A.status==="aborted"?"error":"ignored";return TA[this.theme][f]}).attr("opacity",0).on("click",(A,f)=>{this.$emit("viewRun",f)}).on("mouseover",o).on("mouseout",s).transition().delay((A,f)=>1e3-f/this.runs.length*1200).duration(200).attr("opacity",1)}}},JSe=["id"],ZSe=["id"];function $Se(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock("div",{id:n.id},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,ZSe)],8,JSe)}const e4e=ar(XSe,[["render",$Se]]),t4e={props:{id:{type:String,required:!0},data:{type:Array,required:!0},unit:{type:String,default:"Count"},width:{type:Number,default:350},height:{type:Number,default:200},hideZeros:{type:Boolean,default:!0},isTime:{type:Boolean,default:!0},tooltipOffset:{type:String,default:"layer"},slotName:{type:String,default:"Field"},valueName:{type:String,default:"Value"},useLegend:{type:Boolean,default:!0},theme:{type:String,default:"light"}},data(){return{svg:null,legend:null}},mounted(){this.initializeChart(),this.createChart(this.data)},methods:{initializeChart(){this.svg=Ot("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height)},createChart(e){let t=[];e.forEach((g,v)=>{g.index=v,g.values=g.values.map(_=>isNaN(_)?0:_);const y=g.values.reduce((_,b)=>_+b,0);g.total=isNaN(y)?0:y,this.hideZeros?y>0&&t.push(g):t.push(g)}),t=t.sort((g,v)=>v.total-g.total),e=e.sort((g,v)=>v.total-g.total);const n=this.width,r=this.height,i=20,a=15,o=30,s=50,u=[],c=(g,v)=>{const y=this.isTime?new Date(v.slots).toUTCString():v.slots,_=this.unit==="Bytes (B)"||this.unit==="B"?Jr(v.values)+"B":this.unit==="Percent (%)"?v.values.toFixed(2)+"%":this.unit==="$"?"$"+v.values.toFixed(2):Xr(v.values),b=v.action?`${v.action}<br>${this.isTime?"Time":this.slotName}: ${y}<br>${this.valueName}: ${_}`:`${this.isTime?"Time":this.slotName}: ${y}<br>${this.valueName}: ${_}`;g.target.r.baseVal.value=5,Ot("#"+this.id+"tooltip").html(b).style("opacity",1).style("left",g[this.tooltipOffset+"X"]+10+"px").style("top",g[this.tooltipOffset+"Y"]+"px")},A=(g,v)=>{g.target.r.baseVal.value=3,Ot("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},f=(g,v)=>{const y=v.index;g.target.classList.contains("show")&&(Pn("."+this.id+"line").attr("stroke-width",1),Pn("."+this.id+y+"line").attr("stroke-width",2.5),Pn("."+this.id+"points").attr("r",1),Pn("."+this.id+y+"points").attr("r",3),Pn("#"+this.id+y+"dots").attr("r",6),Pn("."+this.id+y+"labels").attr("font-weight",1e3))},h=(g,v)=>{const y=v.index;Pn("."+this.id+"line").attr("stroke-width",1.5),Pn("."+this.id+"points").attr("r",2.5),Pn("#"+this.id+y+"dots").attr("r",5),Pn("."+this.id+y+"labels").attr("font-weight",500)},d=(g,v)=>{const y=v.index;g.target.classList.contains("show")?(u.push(y),g.target.classList.remove("show"),g.target.classList.add("hide"),Pn("#"+this.id+y+"dots").attr("opacity","0.5")):(u.splice(u.indexOf(y),1),g.target.classList.remove("hide"),g.target.classList.add("show"),Pn("#"+this.id+y+"dots").attr("opacity","1")),Pn("."+this.id+"line").remove(),Pn("."+this.id+"points").remove(),Ot("."+this.id+"xaxis").remove(),Ot("."+this.id+"yaxis").remove(),m()},m=()=>{var E;const g=t.filter(N=>!u.includes(N.index)),v=this.getAxisLargest(g),y=this.isTime?kA(ii(v[0]),[s,n-a]):SA(v[0],[s,n-a]),_=Jo([0,v[1]],[r-o,i]);this.svg.append("g").attr("class",this.id+"xaxis").attr("transform",`translate(0,${r-o})`).call(this.isTime?uo(y).ticks(n/80).tickSizeOuter(0):uo(y).ticks(n/20).tickSizeOuter(0).tickFormat(N=>{if(!this.isTime)return hA(N,(n-a)/v[0].length*8)})),this.svg.append("g").attr("class",this.id+"yaxis").attr("transform",`translate(${s},0)`).call($d(_).ticks(r/40).tickFormat(N=>this.unit==="Bytes (B)"||this.unit==="B"?Jr(N):Xr(N))).call(N=>N.select(".domain").remove()).call(N=>N.selectAll(".tick line").clone().attr("x2",n-s-a).attr("stroke-opacity",.1)).call(N=>N.append("text").attr("x",-s).attr("y",10).attr("fill","currentColor").attr("text-anchor","start").text(this.unit));const b=Kg().x((N,P)=>y(N.slots)).y((N,P)=>_(N.values)),w=this.svg.selectAll(".line").data(g).enter().append("path").attr("class",N=>this.id+N.index+"line "+this.id+"line").attr("fill","none").attr("z-index",1).attr("stroke",N=>TA[this.theme][N.action]||`${jn[N.index%jn.length]}${this.theme==="dark"?"CC":"99"}`).attr("stroke-width",1.5).attr("d",function(N){return b(N.slots.map((P,k)=>({slots:P,values:N.values[k]})))}),C=((E=w.node())==null?void 0:E.getTotalLength())||0,B=1200;w.attr("stroke-dasharray",C+" "+C).attr("stroke-dashoffset",C).transition().duration(B).ease(Z5e).attr("stroke-dashoffset",0);for(const N of g){const P=N.slots.map((k,F)=>({index:N.index,action:N.action,slots:k,values:N.values[F]}));this.svg.selectAll(".point").data(P).enter().append("circle").attr("class",k=>this.id+k.index+"points "+this.id+"points").attr("fill",k=>TA[this.theme][N.action]||`${jn[k.index%jn.length]}${this.theme==="dark"?"CC":"99"}`).attr("r",2.5).attr("cx",k=>y(k.slots)).attr("cy",k=>_(k.values)).attr("opacity",0).on("mouseover",c).on("mouseout",A).transition().delay((k,F)=>F/P.length*B).duration(250).attr("opacity",1)}};m(),t.length===0&&this.svg.append("text").attr("x",n/2).attr("y",r/2).attr("text-anchor","middle").attr("fill","currentColor").text("No data available");const p=Math.max(...e.map(g=>Khe(g.action||"(no name)")),0);this.legend=Ot("#"+this.id+"legend").append("svg").attr("width",p/7+30).attr("height",Math.max(25*e.length,this.height)),this.legend.selectAll("legendDots").data(e).enter().append("circle").attr("id",g=>this.id+g.index+"dots").attr("class","show").attr("cx",10).attr("cy",(g,v)=>r/(e.length+1)+v*25+4).attr("r",5).style("fill",g=>TA[this.theme][g.action]||`${jn[g.index%jn.length]}${this.theme==="dark"?"CC":"99"}`).on("mouseover",f).on("mouseout",h).on("click",d),this.legend.selectAll("legendLabels").data(e).enter().append("text").attr("class",g=>this.id+g.index+"labels").attr("x",20).attr("y",(g,v)=>r/(e.length+1)+v*25+5).style("fill",g=>TA[this.theme][g.action]||`${jn[g.index%jn.length]}${this.theme==="dark"?"CC":"99"}`).text(g=>g.action||"(no name)").attr("font-weight",500).attr("text-anchor","left").attr("font-size","13px").style("alignment-baseline","middle")},getAxisLargest(e){let t=[],n=this.unit==="Percent (%)"?100:0;return e.forEach((r,i)=>{r.slots.forEach(o=>{t.includes(o)||t.push(o)});const a=Math.max(...r.values);a>n&&(n=a)}),[t,n]}}},n4e=["id"],r4e=["id"],i4e=["id"];function a4e(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{id:n.id,class:"float-left"},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,r4e)],8,n4e),n.useLegend?(l.openBlock(),l.createElementBlock("div",{key:0,style:l.normalizeStyle(`height: ${n.height}px; overflow: auto`)},[l.createElementVNode("div",{id:n.id+"legend"},null,8,i4e)],4)):l.createCommentVNode("",!0)],64)}const Xg=ar(t4e,[["render",a4e]]),o4e={props:{id:{type:String,required:!0},data:{type:Object,required:!0},unit:{type:String,default:"Cost ($)"},width:{type:Number,default:800},height:{type:Number,default:400},title:{type:String,default:""},valueName:{type:String,default:"Value"},theme:{type:String,default:"light"}},data(){return{svg:null}},mounted(){this.initializeChart(),this.createChart(this.data)},methods:{initializeChart(){this.svg=Ot("#"+this.id).append("svg").attr("width",this.width).attr("height",this.title?this.height+40:this.height)},createChart(e){const t=this.width,n=this.title?this.height+30:this.height,r=20,i=15,a=30,o=50;let s=this.unit==="Percent (%)"?100:0;e.values.forEach(d=>{d>s&&(s=d)});const u=kA(ii(e.slots),[o,t-i]),c=this.title?[n-a,r+30]:[n-a,r],A=Jo([0,s],c),f=(d,m)=>{const p=new Date(m.slots).toUTCString(),g=this.unit==="Bytes (B)"||this.unit==="B"?Jr(m.values)+"B":this.unit==="Percent (%)"?m.values.toFixed(2)+"%":this.unit==="Cost ($)"?NA(m.values):Xr(m.values),v=Ot("#"+this.id+"tooltip").html(`${this.data.name}<br>${p}<br>${this.valueName}: ${g}`).style("opacity",1).style("top",d.layerY+"px");if(d.layerX>t*3/4){const y=v.node().getBoundingClientRect().width;v.style("left",d.layerX-y+"px")}else v.style("left",d.layerX+"px")},h=(d,m)=>{Ot("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")};if(this.svg.append("g").attr("transform",`translate(0,${n-a})`).call(uo(u).ticks(t/80).tickSizeOuter(0)),this.svg.append("g").attr("transform",`translate(${o},0)`).call($d(A).ticks(n/40).tickFormat(d=>this.unit==="Bytes (B)"||this.unit==="B"?Jr(d):this.unit==="Cost ($)"?NA(d):Xr(d))).call(d=>d.select(".domain").remove()).call(d=>d.selectAll(".tick line").clone().attr("x2",t-o-i).attr("stroke-opacity",.1)).call(d=>d.append("text").attr("x",-o).attr("y",this.title?40:10).attr("fill","currentColor").attr("text-anchor","start").text(this.unit)).call(d=>d.append("text").attr("x",-o).attr("y",20).attr("fill","currentColor").attr("text-anchor","start").attr("font-weight","bold").attr("font-size","2em").text(this.title)),e.slots.length>0){const d=e.slots.map((m,p)=>({slots:m,values:e.values[p]}));this.svg.selectAll(".rect").data(d).enter().append("rect").attr("class",m=>this.id+"bar").attr("z-index",1).attr("x",m=>u(m.slots)-2).attr("y",m=>A(m.values)).attr("width",10).attr("height",m=>n-a-A(m.values)).attr("fill",jn[0]).on("mouseover",f).on("mouseout",h)}else this.svg.append("text").attr("x",t/2).attr("y",n/2).attr("text-anchor","middle").text("No data available")}}},s4e=["id"],l4e=["id"];function u4e(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock("div",{id:n.id},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,l4e)],8,s4e)}const c4e=ar(o4e,[["render",u4e]]),A4e={props:{id:{type:String,required:!0},data:{type:Object,required:!0},unit:{type:String,default:"Cost ($)"},width:{type:Number,default:300},height:{type:Number,default:600},title:{type:String,default:""},resizable:{type:Boolean,default:!1},tooltipOffset:{type:String,default:"layer"},valueName:{type:String,default:"Value"},theme:{type:String,default:"light"}},data(){return{svg:null}},mounted(){this.initializeChart(),this.createChart(this.data)},methods:{initializeChart(){this.resizable?this.svg=Ot("#"+this.id).append("svg").attr("viewBox",`0 0 ${this.width} ${this.title?this.height+40:this.height}`):this.svg=Ot("#"+this.id).append("svg").attr("width",this.width).attr("height",this.title?this.height+40:this.height)},createChart(e){const t=this.width,n=this.title?this.height+30:this.height,r=20,i=5,a=5,o=10,s=e.fields.reduce((h,d,m)=>(h[m]=d||"(no name)",h),{}),u=e.values.reduce((h,d,m)=>(h[m]=d||0,h),{}),c=h=>this.unit==="Bytes (B)"||this.unit==="B"?Jr(h)+"B":this.unit==="Cost ($)"?NA(h):this.unit==="Percent (%)"?h.toFixed(2)+"%":Xr(h),A=(h,d)=>{const m=c(d.values);h.target.style.opacity=.4,Ot("#"+this.id+"tooltip").html(`${d.field?d.field:"(no name)"}<br>${this.valueName}: ${m}`).style("opacity",1).style("left",h[this.tooltipOffset+"X"]+10+"px").style("top",h[this.tooltipOffset+"Y"]+"px")},f=(h,d)=>{h.target.style.opacity=0,Ot("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")};if(e.fields&&e.fields.length>0){let h=this.unit==="Percent (%)"?100:0;e.values.forEach(v=>{v>h&&(h=v)}),h===0&&(h=1);const d=Jo([0,h],[o,t-i-o]),m=this.title?[n-a,r+30]:[n-a,r],p=SA().range(m).domain(e.fields.map((v,y)=>y)).padding(.2),g=e.fields.map((v,y)=>({field:v,values:e.values[y]||0}));this.svg.selectAll(".rect").data(g).enter().append("rect").attr("class",v=>this.id+"bar").attr("z-index",1).attr("x",v=>d(0)).attr("y",(v,y)=>p(y)).attr("width",v=>0).attr("height",p.bandwidth()).attr("fill",(v,y)=>`${jn[y%jn.length]}${this.theme==="dark"?"CC":"99"}`).style("opacity",.8),this.svg.selectAll("rect").transition().duration(500).attr("x",v=>d(0)).attr("width",v=>d(v.values)-o).delay((v,y)=>y*50),this.svg.selectAll(".rect").data(g).enter().append("rect").attr("class",v=>this.id+"barEmpty").attr("z-index",1).attr("x",v=>d(0)).attr("y",(v,y)=>p(y)).attr("width",this.width-o).attr("height",p.bandwidth()).attr("fill",(v,y)=>`${jn[y%jn.length]}${this.theme==="dark"?"CC":"99"}`).style("opacity",0).on("mouseover",A).on("mouseout",f),this.svg.append("g").attr("transform",`translate(0,${r})`).call(Cbe(d).ticks(5).tickFormat(v=>this.unit==="Bytes (B)"||this.unit==="B"?Jr(v):this.unit==="Cost ($)"?NA(v):Xr(v))),this.svg.append("g").attr("transform",`translate(${o},0)`).call(Sbe(p).tickSize(0).tickFormat(v=>`${s[v]} - ${c(u[v])}`)).call(v=>v.select(".domain").remove()).call(v=>v.append("text").attr("x",-o).attr("y",20).attr("fill","currentColor").attr("text-anchor","start").attr("font-size","2em").text(this.title))}else this.svg.append("text").attr("x",t/2).attr("y",n/2).attr("text-anchor","middle").text("No data available")}}},d4e=["id"],f4e=["id"];function h4e(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock("div",{id:n.id},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,f4e)],8,d4e)}const gP=ar(A4e,[["render",h4e]]),p4e={props:{id:{type:String,required:!0},data:{type:Object,required:!0},change:{type:String,default:"neutral"},unit:{type:String,default:"Count"},width:{type:Number,default:350},height:{type:Number,default:200},hideAxis:{type:Boolean,default:!1},hideTooltip:{type:Boolean,default:!1},resizable:{type:Boolean,default:!1},tooltipOffset:{type:String,default:"layer"},valueName:{type:String,default:"Value"},theme:{type:String,default:"light"}},data(){return{svg:null}},watch:{data:{handler(){this.createChart(this.data)},deep:!0},theme:{handler(){this.svg&&this.updateTheme()},immediate:!1}},mounted(){this.initializeChart(),this.createChart(this.data)},methods:{initializeChart(){this.resizable?this.svg=Ot("#"+this.id).append("svg").attr("viewBox",`0 0 ${this.width} ${this.height}`):this.svg=Ot("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height);const e=this.data.color?this.data.color:Ai[this.theme][this.change],t=this.svg.append("defs").append("linearGradient").attr("id","gradientFill"+this.id).attr("x1","0%").attr("x2","0%").attr("y1","100%").attr("y2","0%");t.append("stop").attr("offset","0%").style("stop-color",Ai[this.theme].canvas).style("stop-opacity",.5),t.append("stop").attr("offset","100%").style("stop-color",e).style("stop-opacity",1)},createChart(e){const t=this.width,n=this.height,r=this.hideAxis?2:20,i=this.hideAxis?2:15,a=this.hideAxis?2:30,o=this.hideAxis?2:50,s=t>300?3:2,u=t>300?5:3,c=e.color?e.color:Ai[this.theme][this.change];let A=this.unit==="Percent (%)"?100:0;e.values.forEach(w=>{w>A&&(A=w)});const f=kA(ii(e.slots),[o,t-i]),h=Jo([0,A],[n-a,r]),d=(w,C)=>{const B=new Date(C.slots).toUTCString(),E=this.unit==="Bytes (B)"?Jr(C.values)+"B":this.unit==="Percent (%)"?C.values.toFixed(2)+"%":Xr(C.values);w.target.r.baseVal.value=u,Ot("#"+this.id+"tooltip").html(`Time: ${B}<br>${this.valueName}: ${E}`).style("opacity",1).style("left",w[this.tooltipOffset+"X"]+15+"px").style("top",w[this.tooltipOffset+"Y"]+"px")},m=(w,C)=>{w.target.r.baseVal.value=s,Ot("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},p=Kg().x((w,C)=>f(w.slots)).y((w,C)=>h(w.values)),g=iSe().x((w,C)=>f(w.slots)).y0(n-a).y1((w,C)=>h(w.values)),v=this.svg,y=this;v.selectAll("g").data([e]).join(w=>_(w),w=>_(w),w=>b(w));function _(w){w.append("g").call(C=>{C.append("g").call(B=>{B.append("g").attr("id",y.id+"xaxis").attr("transform",`translate(0,${n-a})`).call(uo(f).ticks(y.hideAxis?0:t/80).tickSizeOuter(0)),B.append("g").attr("id",y.id+"yaxis").attr("transform",`translate(${o},0)`).call($d(h).ticks(y.hideAxis?0:n/40).tickFormat(E=>y.unit==="Bytes (B)"?Jr(E):Xr(E))).call(E=>y.hideAxis?E.select(".domain").attr("stroke-width",.5):E.select(".domain").remove()).call(E=>E.selectAll(".tick line").clone().attr("x2",t-o-i).attr("stroke-opacity",.1)).call(E=>E.append("text").attr("x",-o).attr("y",10).attr("fill","currentColor").attr("text-anchor","start").text(y.hideAxis?"":y.unit))})}).call(C=>{C.append("g").call(B=>{if(B.append("path").attr("class",E=>y.id+"line").attr("z-index",1).attr("stroke",c).attr("stroke-width",1.5).attr("d",function(E){const N=E.slots.map((P,k)=>({slots:P,values:e.values[k]}));return p(N)}).attr("class","area").attr("d",function(E){const N=E.slots.map((P,k)=>({slots:P,values:e.values[k]}));return g(N)}).attr("fill","url(#gradientFill"+y.id+")"),!y.hideTooltip){const E=y.data.slots.map((N,P)=>({slots:N,values:y.data.values[P]}));B.append("g").call(N=>E.forEach(P=>{N.append("circle").attr("class",k=>y.id+"points").attr("stroke",c).attr("r",s).attr("cx",k=>f(P.slots)).attr("cy",k=>h(P.values)).on("mouseover",k=>d(k,P)).on("mouseout",k=>m(k))}))}})})}function b(w){w.call(C=>C.style("opacity",0).remove())}},updateTheme(){if(!this.svg)return;const e=this.data.color?this.data.color:Ai[this.theme][this.change],t=this.svg.select("#gradientFill"+this.id);if(t.node()){const n=t.selectAll("stop");Ot(n.nodes()[0]).style("stop-color",Ai[this.theme].canvas),Ot(n.nodes()[1]).style("stop-color",e)}}}},m4e=["id"],g4e=["id"];function v4e(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock("div",{id:n.id},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,g4e)],8,m4e)}const vP=ar(p4e,[["render",v4e]]),y4e={props:{id:{type:String,required:!0},data:{type:Object,required:!0},unit:{type:String,default:"Cost ($)"},width:{type:Number,default:575},height:{type:Number,default:350},title:{type:String,default:""},names:{type:Object,default:()=>{}},isTime:{type:Boolean,default:!0},tooltipOffset:{type:String,default:"layer"},slotName:{type:String,default:"Field"},valueName:{type:String,default:"Value"},theme:{type:String,default:"light"}},data(){return{svg:null,legend:null}},mounted(){this.initializeChart(),this.createChart(this.data)},methods:{initializeChart(){this.svg=Ot("#"+this.id).append("svg").attr("width",this.width).attr("height",this.title?this.height+30:this.height)},createChart(e){const t=this.width,n=this.title?this.height+30:this.height,r=20,i=15,a=30,o=50,s=[],u=Object.keys(this.names),c=(g,v)=>{const y=this.isTime?new Date(v.data[0]).toUTCString():v.data[0],_=v[1]-v[0],b=this.names[v.key]||v.key,w=this.unit==="Bytes (B)"?Jr(_)+"B":this.unit==="Percent (%)"?_.toFixed(2)+"%":this.unit==="Cost ($)"?"$"+_.toFixed(2):Xr(_);g.target.style.opacity=.7,Ot("#"+this.id+"tooltip").html(`${b}<br>${this.isTime?"Time":this.slotName}: ${y}<br>${this.valueName}: ${w}`).style("opacity",1).style("left",g[this.tooltipOffset+"X"]+10+"px").style("top",g[this.tooltipOffset+"Y"]+"px")},A=(g,v)=>{g.target.style.opacity=1,Ot("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},f=(g,v)=>{const y=u.indexOf(v.key);Pn("."+this.id+"bar").style("opacity",.7),Pn("."+this.id+y+"bar").style("opacity",1),Pn("#"+this.id+y+"dots").attr("r",6),Pn("."+this.id+y+"labels").attr("font-weight",1e3)},h=(g,v)=>{const y=u.indexOf(v.key);Pn("."+this.id+"bar").style("opacity",1),Pn("#"+this.id+y+"dots").attr("r",5),Pn("."+this.id+y+"labels").attr("font-weight",500)},d=(g,v)=>{const y=u.indexOf(v.key);Ot("."+this.id+"xaxis").remove(),Ot("."+this.id+"yaxis").remove(),Pn("#"+this.id+" rect").remove(),g.target.classList.contains("show")?(s.push(v.key),g.target.classList.remove("show"),g.target.classList.add("hide"),Pn("#"+this.id+y+"dots").attr("opacity","0.5")):(s.splice(s.indexOf(v.key),1),g.target.classList.remove("hide"),g.target.classList.add("show"),Pn("#"+this.id+y+"dots").attr("opacity","1")),m()},m=()=>{const g=e.series.filter(w=>!s.includes(w.name)),v=fP().keys(BO(g.map(w=>w.name))).value((w,C)=>w[1].get(C)===void 0?0:w[1].get(C).value)(gO(g,w=>w.slot,w=>w.name)),y=this.isTime?kA(ii(e.slots),[o,t-i]):SA(e.slots,[o,t-i]),_=this.title?[n-a,r+30]:[n-a,r],b=Jo([0,Pi(v,w=>Pi(w,C=>C[1]))],_);return this.svg.append("g").attr("transform",`translate(0,${n-a})`).attr("class",this.id+"xaxis").call(this.isTime?uo(y).ticks(t/80).tickSizeOuter(0):uo(y).ticks(t/20).tickSizeOuter(0).tickFormat(w=>{if(!this.isTime)return hA(w,(t-i)/e.slots.length*8)})),this.svg.append("g").attr("transform",`translate(${o},0)`).attr("class",this.id+"yaxis").call($d(b).ticks(n/40).tickFormat(w=>this.unit==="Bytes (B)"?Jr(w):this.unit==="Cost ($)"?NA(w):Xr(w))).call(w=>w.select(".domain").remove()).call(w=>w.selectAll(".tick line").clone().attr("x2",t-o-i).attr("stroke-opacity",.1)).call(w=>w.append("text").attr("x",-o).attr("y",this.title?40:10).attr("fill","currentColor").attr("text-anchor","start").text(this.unit)),this.svg.append("g").selectAll().data(v).join("g").attr("fill",w=>hC[this.theme][w.key]||`${jn[u.indexOf(w.key)%jn.length]}${this.theme==="dark"?"CC":"99"}`).selectAll("rect").data(w=>w.map(C=>(C.key=w.key,C))).join("rect").attr("class",w=>{const C=u.indexOf(w.key);return`${this.id}${C}bar ${this.id}bar`}).attr("x",w=>y(w.data[0])).attr("y",w=>b(w[1])).attr("height",w=>b(w[0])-b(w[1])).attr("width",this.isTime?15:Math.max(y.step()-5,15)).on("mouseover",c).on("mouseout",A),v},p=m();this.svg.append("g").call(g=>g.append("text").attr("x",0).attr("y",20).attr("fill","currentColor").attr("text-anchor","start").attr("font-weight","bold").attr("font-size","20px").text(this.title)),e.series.length===0&&this.svg.append("text").attr("x",t/2).attr("y",n/2).attr("text-anchor","middle").text("No data available").attr("fill","currentColor"),this.legend=Ot("#"+this.id+"legend").append("svg").attr("width",Math.max(this.width,p.length*125)).attr("height",20),this.legend.selectAll("legendDots").data(p).enter().append("circle").attr("id",g=>this.id+u.indexOf(g.key)+"dots").attr("class","show").attr("cx",(g,v)=>t/(p.length+1)+v*120-10).attr("cy",15).attr("r",5).attr("fill",(g,v)=>hC[this.theme][g.key]||`${jn[v%jn.length]}${this.theme==="dark"?"CC":"99"}`).on("mouseover",f).on("mouseout",h).on("click",d),this.legend.selectAll("legendLabels").data(p).enter().append("text").attr("class",g=>this.id+u.indexOf(g.key)+"labels").attr("x",(g,v)=>t/(p.length+1)+v*120).attr("y",15).attr("fill",(g,v)=>hC[this.theme][g.key]||`${jn[v%jn.length]}${this.theme==="dark"?"CC":"99"}`).text((g,v)=>hA(this.names[g[0].key],700)).attr("font-weight",500).attr("text-anchor","left").attr("font-size","11px").style("alignment-baseline","middle")}}},_4e=["id"],b4e=["id"],w4e=["id"];function B4e(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{id:n.id},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,b4e)],8,_4e),l.createElementVNode("div",{class:"overflow-auto",style:l.normalizeStyle(`width: ${n.width}px; overflow: auto`)},[l.createElementVNode("div",{id:n.id+"legend"},null,8,w4e)],4)],64)}const Jg=ar(y4e,[["render",B4e]]),x4e={props:{id:{type:String,required:!0},data:{type:Object,required:!0},names:{type:Object,default:{}},unit:{type:String,default:"Cost ($)"},width:{type:Number,default:575},height:{type:Number,default:350},isTime:{type:Boolean,default:!0},tooltipOffset:{type:String,default:"layer"},slotName:{type:String,default:"Field"},valueName:{type:String,default:"Value"},theme:{type:String,default:"light"}},data(){return{svg:null,legend:null}},mounted(){this.initializeChart(),this.createChart(this.data)},methods:{initializeChart(){this.svg=Ot("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height)},createChart(e){const t=this.width,n=this.height,r=20,i=15,a=30,o=50,s={},u={};e.forEach(_=>{s[_.action]=_.action,u[_.instance]=_.instance});const c=[],A=Object.keys(s),f=Object.keys(u),h=[];e.forEach(_=>{_.slots.forEach((b,w)=>{h.push({slot:b,action:_.action,instance:_.instance,value:_.values[w]})})});const d=(_,b)=>{const w=this.isTime?new Date(b.data[0]).toUTCString():b.data[0],C=b[1]-b[0],B=b.key.split(":")[0],E=this.names[b.key.split(":")[1]]||b.key.split(":")[1],N=this.unit==="Bytes (B)"?Jr(C)+"B":this.unit==="Percent (%)"?C.toFixed(2)+"%":this.unit==="Cost ($)"?"$"+C.toFixed(2):Xr(C);_.target.style.opacity=.7,Ot("#"+this.id+"tooltip").html(`${B}<br>Instance: ${E}<br>${this.isTime?"Time":this.slotName}: ${w}<br>${this.valueName}: ${N}`).style("opacity",1).style("left",_[this.tooltipOffset+"X"]+10+"px").style("top",_[this.tooltipOffset+"Y"]+"px")},m=(_,b)=>{_.target.style.opacity=1,Ot("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},p=(_,b)=>{const w=A.indexOf(b);Pn("."+this.id+"bar").style("opacity",.7),Pn("."+this.id+w+"bar").style("opacity",1),Pn("#"+this.id+w+"dots").attr("r",6),Pn("."+this.id+w+"labels").attr("font-weight",1e3)},g=(_,b)=>{const w=A.indexOf(b);Pn("."+this.id+"bar").style("opacity",1),Pn("#"+this.id+w+"dots").attr("r",5),Pn("."+this.id+w+"labels").attr("font-weight",500)},v=(_,b)=>{const w=A.indexOf(b);Ot("."+this.id+"xaxis").remove(),Ot("."+this.id+"yaxis").remove(),Pn("#"+this.id+" rect").remove(),_.target.classList.contains("show")?(c.push(b),_.target.classList.remove("show"),_.target.classList.add("hide"),Pn("#"+this.id+w+"dots").attr("opacity","0.5")):(c.splice(c.indexOf(b),1),_.target.classList.remove("hide"),_.target.classList.add("show"),Pn("#"+this.id+w+"dots").attr("opacity","1")),y()},y=()=>{const _=h.filter(D=>!c.includes(D.action)),b=_.map(D=>D.slot).filter((D,L,H)=>H.indexOf(D)===L),w=Pi(b),C=Dh(b),B=(w-C)/20,E=!w||!C?null:w+B,N=this.isTime?kA(ii([...b,E]),[o,t-i]):SA(b,[o,t-i]),P=Pi(_,D=>D.value),k=[n-a,r];for(const D of A)if(!c.includes(D)){const L=A.indexOf(D),H=h.filter(z=>z.action===D),K=fP().keys(BO(H.map(z=>z.action+":"+z.instance))).value((z,J)=>z[1].get(J)===void 0?0:z[1].get(J).value)(gO(H,z=>z.slot,z=>z.action+":"+z.instance)),q=Jo([0,P],k);this.svg.append("g").selectAll().data(K).join("g").attr("fill",z=>TA.scale[z.key.split(":")[0]](.5*f.indexOf(z.key.split(":")[1])/f.length+.5)||`${jn[A.indexOf(z.key.split(":")[0])%jn.length]}${this.theme==="dark"?"CC":"99"}`).selectAll("rect").data(z=>z.map(J=>(J.key=z.key,J))).join("rect").attr("class",z=>`${this.id}${L}bar ${this.id}bar`).attr("x",z=>N(z.data[0])+30*L/A.length).attr("y",z=>n-a).attr("width",Math.min((t-o-i)/b.length,25)/A.length).attr("height",0).attr("stroke","black").attr("stroke-width","0.5").on("mouseover",d).on("mouseout",m).transition().duration(1e3).attr("y",z=>q(z[1])).attr("height",z=>q(z[0])-q(z[1]))}const F=Jo([0,P],k);this.svg.append("g").attr("transform",`translate(0,${n-a})`).attr("class",this.id+"xaxis").call(this.isTime?uo(N).ticks(t/80).tickSizeOuter(0):uo(N).ticks(t/20).tickSizeOuter(0).tickFormat(D=>{if(!this.isTime)return hA(D,(t-i)/b.length*8)})),this.svg.append("g").attr("transform",`translate(${o},0)`).attr("class",this.id+"yaxis").call($d(F).ticks(n/40).tickFormat(D=>this.unit==="Bytes (B)"?Jr(D):this.unit==="Cost ($)"?NA(D):Xr(D))).call(D=>D.select(".domain").remove()).call(D=>D.selectAll(".tick line").clone().attr("x2",t-o-i).attr("stroke-opacity",.1)).call(D=>D.append("text").attr("x",-o).attr("y",10).attr("fill","currentColor").attr("text-anchor","start").text(this.unit))};y(),e.length===0&&this.svg.append("text").attr("x",t/2).attr("y",n/2).attr("text-anchor","middle").text("No data available").attr("fill","currentColor"),this.legend=Ot("#"+this.id+"legend").append("svg").attr("width",Math.max(this.width,A.length*100)).attr("height",30),this.legend.selectAll("legendDots").data(A).enter().append("circle").attr("id",_=>this.id+A.indexOf(_)+"dots").attr("class","show").attr("cx",(_,b)=>t/(A.length+1)+b*100-10).attr("cy",5).attr("r",5).attr("fill",(_,b)=>TA[this.theme][_]||`${jn[b%jn.length]}${this.theme==="dark"?"CC":"99"}`).on("mouseover",p).on("mouseout",g).on("click",v),this.legend.selectAll("legendLabels").data(A).enter().append("text").attr("class",_=>this.id+A.indexOf(_)+"labels").attr("x",(_,b)=>t/(A.length+1)+b*100).attr("y",5).attr("fill",(_,b)=>TA[this.theme][_]||`${jn[b%jn.length]}${this.theme==="dark"?"CC":"99"}`).text((_,b)=>hA(_,700)).attr("font-weight",500).attr("text-anchor","left").attr("font-size","11px").style("alignment-baseline","middle")}}},C4e=["id"],S4e=["id"],k4e=["id"];function M4e(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{id:n.id},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,S4e)],8,C4e),l.createElementVNode("div",{class:"overflow-auto",style:l.normalizeStyle(`width: ${n.width}px; overflow: auto`)},[l.createElementVNode("div",{id:n.id+"legend"},null,8,k4e)],4)],64)}const E4e=ar(x4e,[["render",M4e]]),L4e={props:{id:{type:String,required:!0},data:{type:Array,required:!0},unit:{type:String,default:"Count"},width:{type:Number,default:350},height:{type:Number,default:200},tooltipOffset:{type:String,default:"layer"},valueName:{type:String,default:"Value"},theme:{type:String,default:"light"}},data(){return{svg:null,legend:null}},mounted(){this.initializeChart(),this.createChart()},watch:{theme(){this.updateThemeStyles()}},methods:{initializeChart(){this.svg=Ot("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height-10)},createChart(){const e=this.width,t=this.height-20,n=Math.min(e,t)/2,r=n*2+100>e?n>150?n-75:n-50:n,i={};this.data.forEach((b,w)=>{i[b.field]=w});const a=sSe().value(b=>b.values),o=iC().innerRadius(0).outerRadius(r),s=iC().innerRadius(r*.9).outerRadius(r*.9),u=(b,w)=>{const C=!b.target.id||b.target.id.endsWith("dots")?t/2:b[this.tooltipOffset+"Y"],B=!b.target.id||b.target.id.endsWith("dots")?0:b[this.tooltipOffset+"X"],E=i[w.data.field],N=this.unit==="Bytes (B)"||this.unit==="B"?Jr(w.data.values)+"B":this.unit==="Percent (%)"?w.data.values.toFixed(2)+"%":Xr(w.data.values);Pn("."+this.id+"pie").style("opacity",.4),Ot("#"+this.id+E+"pie").style("opacity",1),Pn("."+this.id+"labels").style("opacity",.4),Ot("#"+this.id+E+"labels").style("opacity",1),Ot("#"+this.id+E+"polyline").style("opacity",1),Ot("#"+this.id+"tooltip").html(`${w.data.field}<br>${this.valueName}: ${N} (${((w.endAngle-w.startAngle)/(2*Math.PI)*100).toFixed(2)}%)`).style("opacity",1).style("left",B+10+"px").style("top",C+"px")},c=()=>{Pn("."+this.id+"pie").style("opacity",.8),Pn("."+this.id+"labels").style("opacity",1),Ot("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},A=a(this.data),f=A.reduce((b,w)=>b+w.data.values,0),h=e/t,d=h>2?h>2.5?1500:900:600,p=(b=>{const w=r<100?12:14;return b.map((C,B)=>{if(B===0)return C;if(!f){const P=b[B-1].pos[1]-C.pos[1]+w;return C.pos[1]+=P,C}const E=(b[B-1].startAngle+b[B-1].endAngle)/2,N=(C.startAngle+C.endAngle)/2;if(E<Math.PI&&N>Math.PI)return C;if(E>Math.PI&&N<Math.PI)return C;if(N>Math.PI){const P=b[B-1].pos[1]-C.pos[1]+w;P>0&&(C.pos[1]+=P)}else{const P=C.pos[1]-b[B-1].pos[1]+w;P>0&&(C.pos[1]-=P)}return C})})(A.map(b=>f?{...b,pos:s.centroid(b)}:{...b,pos:s.centroid({startAngle:2*Math.PI,endAngle:2*Math.PI})}).sort((b,w)=>w.startAngle-b.startAngle)),g=this.svg,v=this;g.selectAll("g").data(p).join(b=>y(b),b=>y(b),b=>_(b));function y(b){const w=b.append("g"),C=b.append("g");w.append("path").attr("class",v.id+"pie").attr("id",B=>v.id+i[B.data.field]+"pie").attr("transform",`translate(${e/2},${t/2+10})`).attr("d",B=>(f||(B.endAngle=Math.PI*A.length),o(B))).attr("fill",(B,E)=>f?`${jn[E%jn.length]}${v.theme==="dark"?"CC":"99"}`:jn[0]).style("opacity",.8).style("fill-opacity",0).on("mouseover",u).on("mouseout",c).transition().duration(800).attrTween("d",function(B){const E=pu(v._current,B);return v._current=E(1),N=>o(E(N))}).style("fill-opacity",1),C.append("polyline").attr("class",v.id+"labels").attr("id",B=>v.id+i[B.data.field]+"polyline").attr("points",B=>{const E=B.pos,P=(B.startAngle+B.endAngle)/2<Math.PI?r*1.1:-r*1.1;if(!f){const k=-r*1.1;return[o.centroid({startAngle:0,endAngle:0}),s.centroid({startAngle:0,endAngle:0}),[k,E[1]]]}return[o.centroid(B),s.centroid(B),[P,E[1]]]}).attr("fill","none").style("stroke",v.theme==="dark"?"white":"black").attr("transform",`translate(${e/2},${t/2})`).style("opacity",0).transition().duration(800).style("opacity",1),C.append("text").attr("class",v.id+"labels").attr("id",B=>v.id+i[B.data.field]+"labels").attr("transform",B=>{const E=B.pos;return`translate(${((B.startAngle+B.endAngle)/2<Math.PI?r*1.15:-r*1.15)+e/2},${E[1]+t/2})`}).attr("text-anchor",B=>(B.startAngle+B.endAngle)/2<Math.PI?"start":"end").attr("font-size",r<100?"9px":"11px").style("fill",v.theme==="dark"?"white":"black").text(B=>B.data.field===0?0:B.data.field?hA(B.data.field,d):"(no name)").on("mouseover",u).on("mouseout",c).style("opacity",0).transition().duration(1200).style("opacity",1)}function _(b){b.call(w=>w.style("opacity",0).remove())}},updateThemeStyles(){if(!this.svg)return;const e=this.data.reduce((n,r)=>n+(r.values||0),0),t=this.theme==="dark"?"white":"black";this.svg.selectAll("polyline."+this.id+"labels").style("stroke",t),this.svg.selectAll("text."+this.id+"labels").style("fill",t),this.svg.selectAll("path."+this.id+"pie").attr("fill",(n,r)=>e?`${jn[r%jn.length]}${this.theme==="dark"?"CC":"99"}`:jn[0])}}},T4e={class:"flex w-full flex-col items-center"},N4e=["id"],F4e=["id"],O4e=["id"];function D4e(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock("div",T4e,[l.createElementVNode("div",{id:n.id},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,F4e)],8,N4e),l.createElementVNode("div",{class:"overflow-auto",style:l.normalizeStyle(`width: ${n.width}px; overflow: auto`)},[l.createElementVNode("div",{id:n.id+"legend"},null,8,O4e)],4)])}const yP=ar(L4e,[["render",D4e]]),I4e={props:{id:{type:String,required:!0},data:{type:Object,required:!0},width:{type:Number,default:350},height:{type:Number,default:200},theme:{type:String,default:"light"}},data(){return{svg:null,legend:null}},watch:{theme:{handler(){this.svg&&this.createChart()},immediate:!0}},mounted(){this.initializeChart(),this.createChart()},methods:{initializeChart(){this.svg=Ot("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height)},createChart(){const e=this.width,t=this.height,n=Math.min(e,t)/2,r=this.data.progress,i=iC().innerRadius(n*.7).outerRadius(n).startAngle(0);this.svg.append("path").datum({endAngle:2*Math.PI}).attr("d",i).attr("fill",Ai[this.theme].canvas).attr("transform",`translate(${e/2},${t/2})`),this.svg.append("path").datum({endAngle:0}).attr("d",i).attr("fill",Ai[this.theme].secondary).attr("transform",`translate(${e/2},${t/2})`).transition().duration(1e3).call(a=>a.attrTween("d",o=>{const s=pu(0,r*2*Math.PI);return u=>(o.endAngle=s(u),i(o))})),this.svg.append("text").attr("text-anchor","middle").attr("dy","0.35em").style("font-size","35px").text("0%").style("fill",Ai[this.theme].text).attr("transform",`translate(${e/2},${t/2})`).transition().duration(1e3).tween("text",function(){const a=pu(0,r*100);return function(o){this.textContent=`${Math.round(a(o))}%`}})}}},U4e=["id"];function P4e(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock("div",{id:n.id,class:"float-left"},null,8,U4e)}const H4e=ar(I4e,[["render",P4e]]);function FA(e){return e!=null&&!Number.isNaN(e)}function vf(e,t){return+FA(t)-+FA(e)||wA(e,t)}function gC(e,t){return+FA(t)-+FA(e)||ig(e,t)}function vC(e){return e!=null&&`${e}`!=""}function _P(e){return isFinite(e)?e:NaN}function w_(e){return e>0&&isFinite(e)?e:NaN}function yC(e){return e<0&&isFinite(e)?e:NaN}function Y4e(e,t){if(e instanceof Date||(e=new Date(+e)),isNaN(e))return typeof t=="function"?t(e):t;const n=e.getUTCHours(),r=e.getUTCMinutes(),i=e.getUTCSeconds(),a=e.getUTCMilliseconds();return`${R4e(e.getUTCFullYear())}-${wc(e.getUTCMonth()+1,2)}-${wc(e.getUTCDate(),2)}${n||r||i||a?`T${wc(n,2)}:${wc(r,2)}${i||a?`:${wc(i,2)}${a?`.${wc(a,3)}`:""}`:""}Z`:""}`}function R4e(e){return e<0?`-${wc(-e,6)}`:e>9999?`+${wc(e,6)}`:wc(e,4)}function wc(e,t){return`${e}`.padStart(t,"0")}const Q4e=/^(?:[-+]\d{2})?\d{4}(?:-\d{2}(?:-\d{2})?)?(?:T\d{2}:\d{2}(?::\d{2}(?:\.\d{3})?)?(?:Z|[-+]\d{2}:?\d{2})?)?$/;function bP(e,t){return Q4e.test(e+="")?new Date(e):typeof t=="function"?t(e):t}function np(e){if(e==null)return;const t=e[0],n=e[e.length-1];return ig(t,n)}const rp=1e3,OA=rp*60,DA=OA*60,bu=DA*24,wu=bu*7,yf=bu*30,IA=bu*365,_C=[["millisecond",1],["2 milliseconds",2],["5 milliseconds",5],["10 milliseconds",10],["20 milliseconds",20],["50 milliseconds",50],["100 milliseconds",100],["200 milliseconds",200],["500 milliseconds",500],["second",rp],["5 seconds",5*rp],["15 seconds",15*rp],["30 seconds",30*rp],["minute",OA],["5 minutes",5*OA],["15 minutes",15*OA],["30 minutes",30*OA],["hour",DA],["3 hours",3*DA],["6 hours",6*DA],["12 hours",12*DA],["day",bu],["2 days",2*bu],["week",wu],["2 weeks",2*wu],["month",yf],["3 months",3*yf],["6 months",6*yf],["year",IA],["2 years",2*IA],["5 years",5*IA],["10 years",10*IA],["20 years",20*IA],["50 years",50*IA],["100 years",100*IA]],bC=new Map([["second",rp],["minute",OA],["hour",DA],["day",bu],["monday",wu],["tuesday",wu],["wednesday",wu],["thursday",wu],["friday",wu],["saturday",wu],["sunday",wu],["week",wu],["month",yf],["year",IA]]),wP=new Map([["second",fl],["minute",Ng],["hour",df],["day",ff],["monday",Dg],["tuesday",nI],["wednesday",rI],["thursday",pf],["friday",iI],["saturday",aI],["sunday",Zh],["week",Zh],["month",Ug],["year",hl]]),wC=new Map([["second",fl],["minute",Fg],["hour",Og],["day",r_],["monday",Ig],["tuesday",oI],["wednesday",sI],["thursday",gf],["friday",lI],["saturday",uI],["sunday",$h],["week",$h],["month",Pg],["year",pl]]),Zg=Symbol("intervalDuration"),B_=Symbol("intervalType");for(const[e,t]of wP)t[Zg]=bC.get(e),t[B_]="time";for(const[e,t]of wC)t[Zg]=bC.get(e),t[B_]="utc";const $g=[["year",pl,"utc"],["month",Pg,"utc"],["day",r_,"utc",6*yf],["hour",Og,"utc",3*bu],["minute",Fg,"utc",6*DA],["second",fl,"utc",30*OA]],x_=[["year",hl,"time"],["month",Ug,"time"],["day",ff,"time",6*yf],["hour",df,"time",3*bu],["minute",Ng,"time",6*DA],["second",fl,"time",30*OA]],j4e=[$g[0],x_[0],$g[1],x_[1],$g[2],x_[2],...$g.slice(3)];function BP(e){let t=`${e}`.toLowerCase();t.endsWith("s")&&(t=t.slice(0,-1));let n=1;const r=/^(?:(\d+)\s+)/.exec(t);switch(r&&(t=t.slice(r[0].length),n=+r[1]),t){case"quarter":t="month",n*=3;break;case"half":t="month",n*=6;break}let i=wC.get(t);if(!i)throw new Error(`unknown interval: ${e}`);if(n>1&&!i.every)throw new Error(`non-periodic interval: ${t}`);return[t,n]}function xP(e){return CP(BP(e),"time")}function BC(e){return CP(BP(e),"utc")}function CP([e,t],n){let r=(n==="time"?wP:wC).get(e);return t>1&&(r=r.every(t),r[Zg]=bC.get(e)*t,r[B_]=n),r}function SP(e,t){if(!(t>1))return;const n=e[Zg];if(!_C.some(([,i])=>i===n)||n%bu===0&&bu<n&&n<yf)return;const[r]=_C[X1(([,i])=>Math.log(i)).center(_C,Math.log(n*t))];return(e[B_]==="time"?xP:BC)(r)}function kP(e,t,n){const r=t==="time"?Qg:jg;if(n==null)return r(e==="year"?"%Y":e==="month"?"%Y-%m":e==="day"?"%Y-%m-%d":e==="hour"||e==="minute"?"%Y-%m-%dT%H:%M":e==="second"?"%Y-%m-%dT%H:%M:%S":"%Y-%m-%dT%H:%M:%S.%L");const i=V4e(n);switch(e){case"millisecond":return ip(r(".%L"),r(":%M:%S"),i);case"second":return ip(r(":%S"),r("%-I:%M"),i);case"minute":return ip(r("%-I:%M"),r("%p"),i);case"hour":return ip(r("%-I %p"),r("%b %-d"),i);case"day":return ip(r("%-d"),r("%b"),i);case"month":return ip(r("%b"),r("%Y"),i);case"year":return r("%Y")}throw new Error("unable to format time ticks")}function V4e(e){return e==="left"||e==="right"?(t,n)=>`
90
+ ft.version="2.30.1",Nge(Vr),ft.fn=yt,ft.min=_ve,ft.max=bve,ft.now=wve,ft.utc=lu,ft.unix=X1e,ft.months=Z1e,ft.isDate=qm,ft.locale=_A,ft.invalid=M1,ft.duration=ul,ft.isMoment=sl,ft.weekdays=eye,ft.parseZone=J1e,ft.localeData=sc,ft.isDuration=Q1,ft.monthsShort=$1e,ft.weekdaysMin=nye,ft.defineLocale=dB,ft.updateLocale=J0e,ft.locales=Z0e,ft.weekdaysShort=tye,ft.normalizeUnits=Cs,ft.relativeTimeRounding=Eye,ft.relativeTimeThreshold=Lye,ft.calendarFormat=Kve,ft.prototype=yt,ft.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const Nye={class:"col"},Fye={__name:"DatePickerInput",props:{from:Number,to:Number},emits:["selectTime","error"],setup(e,{emit:t}){const n=e,r=t,i=l.ref(u());l.watch(()=>[n.from,n.to],([A,f])=>{const h=Array.isArray(i.value)?i.value:[],d=h.length===2?[...h]:u();let m=!1;c(A)&&(d[0]=s(A),m=!0),c(f)&&(d[1]=s(f),m=!0),m?i.value=d:o()},{immediate:!0}),l.watch(i,(A,f)=>{Array.isArray(A)&&A.length===2&&A[0]&&A[1]&&(A[0]>A[1]?r("error","Time from is greater than time to"):Array.isArray(f)&&f.length===2&&f[0]&&f[1]?(f[0]!==A[0]||f[1]!==A[1])&&r("selectTime",[ft(A[0]).valueOf(),ft(A[1]).valueOf()]):r("selectTime",[ft(A[0]).valueOf(),ft(A[1]).valueOf()]))},{deep:!0});function a(){const A=ft().valueOf();return[{label:"Last Hour",atClick:()=>[ft().subtract(1,"hours").valueOf(),A]},{label:"Last Three Hours",atClick:()=>[ft().subtract(3,"hours").valueOf(),A]},{label:"Last Six Hours",atClick:()=>[ft().subtract(6,"hours").valueOf(),A]},{label:"Last Twelve Hours",atClick:()=>[ft().subtract(12,"hours").valueOf(),A]},{label:"Last Day",atClick:()=>[ft().subtract(1,"days").valueOf(),A]},{label:"Last Three Days",atClick:()=>[ft().subtract(3,"days").valueOf(),A]},{label:"Last Week",atClick:()=>[ft().subtract(7,"days").valueOf(),A]}]}function o(){i.value=u()}function s(A){return ft(A).format("YYYY-MM-DD HH:mm:ss")}function u(){return[s(ft().subtract(1,"hours")),s(ft())]}function c(A){return typeof A=="number"&&!Number.isNaN(A)&&A>0}return(A,f)=>(l.openBlock(),l.createElementBlock("div",Nye,[l.createVNode(l.unref(k1),{shortcuts:a,modelValue:i.value,"onUpdate:modelValue":f[0]||(f[0]=h=>i.value=h)},null,8,["modelValue"])]))}},Oye={key:0},Dye={key:1},Iye={key:2},Uye=l.defineComponent({__name:"TriState",props:["state"],emits:["newState"],setup(e,{emit:t}){const n=e,r=t,i=l.ref(n.state);function a(){switch(i.value){case"unchecked":i.value="checked";break;case"checked":i.value="ignored";break;default:i.value="unchecked"}r("newState",i.value)}return(o,s)=>(l.openBlock(),l.createElementBlock("div",{onClick:s[0]||(s[0]=u=>a())},[i.value==="unchecked"?(l.openBlock(),l.createElementBlock("div",Oye,[l.createVNode(tu)])):l.createCommentVNode("",!0),i.value==="checked"?(l.openBlock(),l.createElementBlock("div",Dye,[l.createVNode(tu,{checked:!0})])):l.createCommentVNode("",!0),i.value==="ignored"?(l.openBlock(),l.createElementBlock("div",Iye,[l.createVNode(tu,{indeterminate:!0})])):l.createCommentVNode("",!0)]))}}),Pye={class:"text-sm font-light"},Hye={class:"flex justify-between pt-3 pb-1 relative"},Yye={class:"font-light"},Rye={class:"flex pr-1"},Qye={class:"flex justify-between py-1"},jye={class:"flex items-center min-w-0"},Vye={class:"px-2 truncate"},zye=l.defineComponent({__name:"Leaf",props:{parent:{type:Object,default:{}},children:{type:Array,default:[]},clear:Number,facetOptions:Object,tooltip:{type:Boolean,default:!1}},emits:["newState"],setup(e,{emit:t}){const n=e,r=t,i=l.ref(n.parent.show),a=l.ref(!1),o=l.ref(!0),s=l.computed(()=>{const m=JSON.parse(JSON.stringify(n.children));return o.value||m.reverse(),m.slice(0,i.value)});function u(){return i.value<n.children.length?"std-blue-text cursor-pointer":"std-disabled-text cursor-not-allowed"}function c(){return i.value===0||n.children.length===0?"std-disabled-text cursor-not-allowed":"std-blue-text cursor-pointer"}function A(){i.value<n.children.length&&(i.value+=5)}function f(){i.value>0&&(i.value-=5)}function h(){o.value=!o.value}function d(m,p,g){r("newState",m,p,g)}return(m,p)=>(l.openBlock(),l.createElementBlock("div",Pye,[l.createElementVNode("div",Hye,[l.createElementVNode("div",{class:"text-base font-normal max-w-3/4 truncate",onMouseover:p[0]||(p[0]=g=>a.value=!0),onMouseout:p[1]||(p[1]=g=>a.value=!1)},[l.createTextVNode(l.toDisplayString(e.parent.title)+" ",1),l.createElementVNode("span",Yye,"("+l.toDisplayString(e.children.length)+")",1)],32),l.createElementVNode("div",Rye,[l.createVNode(l.unref(Wne),{class:l.normalizeClass(["icon-lg",u()]),onClick:p[2]||(p[2]=g=>A())},null,8,["class"]),l.createVNode(l.unref(qne),{class:l.normalizeClass(["icon-lg",c()]),onClick:p[3]||(p[3]=g=>f())},null,8,["class"]),o.value?(l.openBlock(),l.createBlock(l.unref(Fne),{key:0,class:"icon-lg std-blue-text cursor-pointer",onClick:h})):(l.openBlock(),l.createBlock(l.unref(Dne),{key:1,class:"icon-lg std-blue-text cursor-pointer",onClick:h}))]),n.tooltip?(l.openBlock(),l.createBlock(zu,{key:0,tooltip:e.parent.label,showingTooltip:a.value,direction:"top",class:"left-20"},null,8,["tooltip","showingTooltip"])):l.createCommentVNode("",!0)]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(s.value,g=>(l.openBlock(),l.createElementBlock("div",Qye,[l.createElementVNode("div",jye,[l.createVNode(Uye,{state:g.state,onNewState:v=>d(e.parent.label,g.label,v)},null,8,["state","onNewState"]),l.createElementVNode("div",Vye,l.toDisplayString(g.label?g.label:"-"),1)]),l.createElementVNode("div",null,l.toDisplayString(g.count),1)]))),256))]))}}),qye={class:"hidden md:col md:h-full overflow-hidden"},Kye={key:0,class:"flex"},Gye={class:"h-0 flex-1 overflow-y-auto px-1"},Wye={key:0,class:"q-ml-md text-bold"},Xye={key:1,class:"flex flex-shrink-0 px-1 py-1"},Jye={class:"relative isolate inline-flex rounded-md shadow-xs"},Zye=ar(l.defineComponent({__name:"Facet",props:{tree:{type:Array,default:[]},facetOptions:{type:Object,default:{}},state:{type:Number,default:0},searchBar:{type:Boolean,default:!0},tooltip:{type:Boolean,default:!1},buttons:{type:Boolean,default:!1},hideSaveButton:{type:Boolean,default:!1}},emits:["search","updateStr","reset","edit","save","download","search"],setup(e,{emit:t}){var v,y,_;const n=e,r=t,i=l.ref((v=n.facetOptions)==null?void 0:v.mustFilters),a=l.ref((y=n.facetOptions)==null?void 0:y.mustNotFilters),o=l.ref((_=n.facetOptions)==null?void 0:_.searchStr),s=l.ref(n.state),u=l.ref(!1),c=l.ref("");function A(b,w){const C=w.find(B=>B.field===b.parent);typeof C<"u"?C.terms.push(b.child):w.push({field:b.parent,terms:[b.child]})}function f(b,w){const C=w.find(B=>B.field===b.parent);if(typeof C<"u"){const B=C.terms.indexOf(b.child);if(B>-1&&(C.terms.splice(B,1),C.terms.length===0)){const E=w.findIndex(N=>N.field===b.parent);w.splice(E,1)}}}function h(b,w,C){C==="checked"?d({parent:b,child:w}):C==="ignored"?m({parent:b,child:w}):p({parent:b,child:w})}function d(b){A(b,i.value)}function m(b){f(b,i.value),A(b,a.value)}function p(b){f(b,a.value)}function g(b,w=""){u.value=b,c.value=w}return(b,w)=>(l.openBlock(),l.createElementBlock("div",qye,[e.searchBar?(l.openBlock(),l.createElementBlock("div",Kye,[l.createVNode(xN,{class:"w-full",str:o.value,onSearch:w[0]||(w[0]=C=>r("search")),onUpdate:w[1]||(w[1]=C=>r("updateStr",C))},null,8,["str"])])):l.createCommentVNode("",!0),l.createElementVNode("div",Gye,[e.tree.length==0?(l.openBlock(),l.createElementBlock("div",Wye," No Facet data. Please select a search query. ")):l.createCommentVNode("",!0),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.tree,C=>(l.openBlock(),l.createElementBlock("div",{key:C.id,class:"primary"},[l.createVNode(zye,{parent:C,children:C.children,clear:s.value,"facet-options":e.facetOptions,tooltip:e.tooltip,onNewState:h},null,8,["parent","children","clear","facet-options","tooltip"]),l.createVNode(Iw)]))),128))]),e.buttons?(l.openBlock(),l.createElementBlock("div",Xye,[l.createElementVNode("span",Jye,[l.createElementVNode("button",{type:"button",class:"action-btn std-btn-red rounded-l-md",onClick:w[2]||(w[2]=C=>r("reset")),onMouseover:w[3]||(w[3]=C=>g(!0,"Reset Facet")),onMouseout:w[4]||(w[4]=C=>g(!1))},[l.createVNode(l.unref(Od),{class:"icon-md","aria-hidden":"true"})],32),l.createElementVNode("button",{type:"button",class:"action-btn std-btn-blue",onClick:w[5]||(w[5]=C=>r("edit")),onMouseover:w[6]||(w[6]=C=>g(!0,"Edit Facet")),onMouseout:w[7]||(w[7]=C=>g(!1))},[l.createVNode(l.unref(q6),{class:"icon-md","aria-hidden":"true"})],32),e.hideSaveButton?l.createCommentVNode("",!0):(l.openBlock(),l.createElementBlock("button",{key:0,type:"button",class:"action-btn std-btn-blue",onClick:w[8]||(w[8]=C=>r("save")),onMouseover:w[9]||(w[9]=C=>g(!0,"Save Facet")),onMouseout:w[10]||(w[10]=C=>g(!1))},[l.createVNode(iN,{class:"icon-md","aria-hidden":"true"})],32)),l.createElementVNode("button",{type:"button",class:"action-btn std-btn-blue rounded-r-md",onClick:w[11]||(w[11]=C=>r("search")),onMouseover:w[12]||(w[12]=C=>g(!0,"Search")),onMouseout:w[13]||(w[13]=C=>g(!1))},[l.createVNode(l.unref(Nw),{class:"icon-md","aria-hidden":"true"})],32),l.createVNode(zu,{tooltip:c.value,showingTooltip:u.value,direction:"top",style:{transform:"translateY(-40%)"}},null,8,["tooltip","showingTooltip"])])])):l.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-5e863be1"]]),$ye=[{label:"Hourly",value:"hourly"},{label:"Daily",value:"daily"},{label:"Weekly",value:"weekly"},{label:"Monthly",value:"monthly"}],e_e=[{label:"Sunday",value:0},{label:"Monday",value:1},{label:"Tuesday",value:2},{label:"Wednesday",value:3},{label:"Thursday",value:4},{label:"Friday",value:5},{label:"Saturday",value:6}],t_e=Array.from({length:24},(e,t)=>({label:t.toString(),value:t})),n_e=Array.from({length:31},(e,t)=>({label:(t+1).toString(),value:t+1})),r_e=[{label:"GMT",value:"GMT"},{label:"America/New_York",value:"America/New_York"},{label:"America/Chicago",value:"America/Chicago"},{label:"America/Los_Angeles",value:"America/Los_Angeles"},{label:"America/Denver",value:"America/Denver"},{label:"America/Phoenix",value:"America/Phoenix"},{label:"Canada/Atlantic",value:"Canada/Atlantic"},{label:"Canada/Central",value:"Canada/Central"},{label:"Canada/Eastern",value:"Canada/Eastern"},{label:"Canada/Mountain",value:"Canada/Mountain"},{label:"Canada/Pacific",value:"Canada/Pacific"},{label:"Canada/Newfoundland",value:"Canada/Newfoundland"},{label:"Europe/London",value:"Europe/London"},{label:"Europe/Berlin",value:"Europe/Berlin"},{label:"Hongkong",value:"Hongkong"},{label:"Asia/Kuala_Lumpur",value:"Asia/Kuala_Lumpur"}],i_e={class:"px-2"},a_e={class:"flex gap-x-3"},o_e={__name:"Schedule",props:{schedule:Object},setup(e){const t=e,n=l.ref(t.schedule),r=l.computed(()=>n.value.interval==="minute"?Array.from({length:60},(i,a)=>{const o=a+1;return{label:o.toString(),value:o}}):n.value.interval==="hourly"||n.value.interval==="daily"?Array.from({length:12},(i,a)=>{const o=a*5;return{label:o.toString(),value:o}}):[]);return(i,a)=>(l.openBlock(),l.createBlock(_m,{sectionName:"Schedule Details"},{default:l.withCtx(()=>[l.createElementVNode("div",i_e,[l.createVNode(zi,{fieldName:"Interval"},{default:l.withCtx(()=>[l.createVNode(fr,{modelValue:n.value.interval,"onUpdate:modelValue":a[0]||(a[0]=o=>n.value.interval=o),options:l.unref($ye)},null,8,["modelValue","options"])]),_:1}),l.createElementVNode("div",a_e,[n.value.interval==="monthly"?(l.openBlock(),l.createBlock(zi,{key:0,fieldName:"Day",class:"w-44"},{default:l.withCtx(()=>[l.createVNode(fr,{modelValue:n.value.day,"onUpdate:modelValue":a[1]||(a[1]=o=>n.value.day=o),options:l.unref(n_e)},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0),n.value.interval==="weekly"?(l.openBlock(),l.createBlock(zi,{key:1,fieldName:"Weekday",class:"w-44"},{default:l.withCtx(()=>[l.createVNode(fr,{modelValue:n.value.weekday,"onUpdate:modelValue":a[2]||(a[2]=o=>n.value.weekday=o),options:l.unref(e_e)},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0),n.value.interval!=="minute"&&n.value.interval!=="hourly"?(l.openBlock(),l.createBlock(zi,{key:2,fieldName:"Hour",class:"w-44"},{default:l.withCtx(()=>[l.createVNode(fr,{modelValue:n.value.hour,"onUpdate:modelValue":a[3]||(a[3]=o=>n.value.hour=o),options:l.unref(t_e)},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0),n.value.interval==="minute"||n.value.interval==="hourly"||n.value.interval==="daily"?(l.openBlock(),l.createBlock(zi,{key:3,fieldName:"Minute",class:"w-44"},{default:l.withCtx(()=>[l.createVNode(fr,{modelValue:n.value.minute,"onUpdate:modelValue":a[4]||(a[4]=o=>n.value.minute=o),options:r.value},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0)]),n.value.interval!=="minute"&&n.value.interval!=="hourly"?(l.openBlock(),l.createBlock(zi,{key:0,fieldName:"Timezone"},{default:l.withCtx(()=>[l.createVNode(fr,{modelValue:n.value.timezone,"onUpdate:modelValue":a[5]||(a[5]=o=>n.value.timezone=o),options:l.unref(r_e)},null,8,["modelValue","options"])]),_:1})):l.createCommentVNode("",!0)])]),_:1}))}};function s_e(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12Zm13.36-1.814a.75.75 0 1 0-1.22-.872l-3.236 4.53L9.53 12.22a.75.75 0 0 0-1.06 1.06l2.25 2.25a.75.75 0 0 0 1.14-.094l3.75-5.25Z","clip-rule":"evenodd"})])}function l_e(e,t){return l.openBlock(),l.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon"},[l.createElementVNode("path",{"fill-rule":"evenodd",d:"M2.25 12c0-5.385 4.365-9.75 9.75-9.75s9.75 4.365 9.75 9.75-4.365 9.75-9.75 9.75S2.25 17.385 2.25 12ZM12 8.25a.75.75 0 0 1 .75.75v3.75a.75.75 0 0 1-1.5 0V9a.75.75 0 0 1 .75-.75Zm0 8.25a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5Z","clip-rule":"evenodd"})])}const W1=e=>{const t=new Date(e),n={weekday:"long",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"};return t.toLocaleTimeString("en-us",n)};function rg(e){if(!e)return new Date;if(e.toString().indexOf("/")!==-1)return new Date(e);if(e.toString().indexOf("-")!==-1)return new Date(e);if(e.toString().startsWith("2")){const n=e.substring(0,4),r=e.substring(4,6),i=e.substring(6,8);return new Date(n,r-1,i)}return new Date(e).valueOf()!==e?new Date(e*1e3):new Date(e)}function u_e(e){return ft(e).fromNow()}const c_e={role:"list",class:"space-y-6"},A_e={class:"relative flex gap-x-4"},d_e={class:"relative flex icon-lg flex-none items-center justify-center std-white"},f_e={key:2,class:"h-2 w-2 rounded-full std-white-reverse ring-1 ring-gray-300"},h_e={class:"flex-auto py-0.5 text-xs leading-5"},p_e={class:"font-bold"},m_e=["datetime"],g_e={__name:"Feed",props:{data:Array},setup(e){return(t,n)=>(l.openBlock(),l.createElementBlock("ul",c_e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.data,(r,i)=>(l.openBlock(),l.createElementBlock("li",A_e,[l.createElementVNode("div",{class:l.normalizeClass([i===e.data.length-1?"h-6":"-bottom-6","absolute left-0 top-0 flex w-6 justify-center"])},n[0]||(n[0]=[l.createElementVNode("div",{class:"w-px slider-active"},null,-1)]),2),l.createElementVNode("div",d_e,[r.action==="resolve"?(l.openBlock(),l.createBlock(l.unref(s_e),{key:0,class:"icon-lg icon-green","aria-hidden":"true"})):r.action==="trigger"?(l.openBlock(),l.createBlock(l.unref(l_e),{key:1,class:"icon-lg icon-red","aria-hidden":"true"})):(l.openBlock(),l.createElementBlock("div",f_e))]),l.createElementVNode("p",h_e,[l.createElementVNode("span",p_e,l.toDisplayString(r.source),1),l.createTextVNode(" "+l.toDisplayString(r.action)+" the alert. ",1)]),l.createElementVNode("time",{datetime:r.timestamp,class:"flex-none py-0.5 text-xs leading-5 font-light"},l.toDisplayString(l.unref(u_e)(r.timestamp)),9,m_e)]))),256))]))}},v_e={class:"mb-3 flex items-center justify-between relative"},y_e={class:"min-w-0 flex-1"},__e={class:"row truncate font-medium"},b_e={class:"text-xs font-light"},w_e={class:"flex mt-0 ml-4"},B_e={__name:"CategoryCard",props:{category:{type:[Object,String],required:!0},description:String},setup(e){return(t,n)=>(l.openBlock(),l.createBlock(bm,null,{default:l.withCtx(()=>[l.createElementVNode("div",v_e,[l.renderSlot(t.$slots,"icon"),l.createElementVNode("div",y_e,[l.createElementVNode("h3",__e,[l.createTextVNode(l.toDisplayString(e.category.name||e.category)+" ",1),l.renderSlot(t.$slots,"title")]),l.createElementVNode("p",b_e,l.toDisplayString(e.description),1)]),l.createElementVNode("div",w_e,[l.renderSlot(t.$slots,"header")])]),l.renderSlot(t.$slots,"default")]),_:3}))}},x_e={},C_e={class:"min-h-11 pl-3 py-1 sm:flex sm:items-center sm:justify-between content-center std-light dark:std-dark"},S_e={class:"mt-3 flex sm:mt-0"};function k_e(e,t){return l.openBlock(),l.createElementBlock("div",C_e,[l.renderSlot(e.$slots,"title"),l.createElementVNode("div",S_e,[l.renderSlot(e.$slots,"buttons")])])}const M_e=ar(x_e,[["render",k_e]]),E_e={class:"py-1"},L_e=["onClick"],sO={__name:"Select",props:{options:{type:Array,required:!0},direction:{type:String,default:"left"},optionsSize:{type:String,default:"40"},size:{type:String,default:"xs"},color:String,current:{type:String,default:""},disabled:Boolean,dense:Boolean},emits:["select"],setup(e,{emit:t}){const n=e,r=t;function i(a){return n.current===a||n.current===(a==null?void 0:a.label)}return(a,o)=>(l.openBlock(),l.createBlock(l.unref(Ed),{as:"div",class:"relative inline-block text-left"},{default:l.withCtx(()=>[l.createVNode(l.unref(Ld),{class:l.normalizeClass([`group inline-flex justify-center text-${e.size} font-medium`,{"std-btn std-btn-red":e.color==="red"},{"std-btn std-btn-green":e.color==="green"},{"std-btn std-btn-blue":e.color==="blue"},{"px-3! py-1!":e.dense}]),disabled:e.disabled},{default:l.withCtx(()=>[l.renderSlot(a.$slots,"btn")]),_:3},8,["class","disabled"]),l.createVNode(l.Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:l.withCtx(()=>[l.createVNode(l.unref(Td),{class:l.normalizeClass([`std-white input-dropdown w-${e.optionsSize} origin-top-right shadow-lg max-h-96`,e.direction==="right"?"left-0 ":"right-0",{"std-red":e.color==="red"},{"std-green":e.color==="green"},{"std-blue":e.color==="blue"},{"std-white":e.color!=="red"&&e.color!=="blue"&&e.color!=="green"}])},{default:l.withCtx(()=>[l.createElementVNode("div",E_e,[(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.options,s=>(l.openBlock(),l.createBlock(l.unref(eu),{key:s},{default:l.withCtx(({active:u})=>[l.createElementVNode("span",{class:l.normalizeClass([{"outline-hidden":u},{"white-bg-hover dark:dark-bg-hover":e.color!=="red"&&e.color!=="blue"&&e.color!=="green"&&(u||i(s))},{"std-red-hover-light":e.color==="red"&&(u||i(s))},{"std-blue-hover-light":e.color==="blue"&&(u||i(s))},{"std-green-hover-light":e.color==="green"&&(u||i(s))},`group flex w-full items-center rounded-md px-2 py-2 text-${e.size} cursor-pointer`]),onClick:l.withModifiers(c=>r("select",s),["stop"])},l.toDisplayString((s==null?void 0:s.label)||s),11,L_e)]),_:2},1024))),128))])]),_:1},8,["class"])]),_:1})]),_:3}))}},lO={__name:"Sort",props:{options:{type:Array,required:!0},direction:{type:String,default:"left"},current:{type:Object,default:()=>({})},size:{type:String,default:"xs"}},emits:["sort"],setup(e,{emit:t}){const n=e,r=t,i=l.computed(()=>n.size==="xs"?"icon":n.size==="sm"?"icon-md":n.size==="md"?"icon-lg":n.size==="lg"?"icon-xl":"icon");return(a,o)=>(l.openBlock(),l.createBlock(sO,{options:e.options,current:e.current.label,direction:e.direction,size:e.size,onSelect:o[0]||(o[0]=s=>r("sort",s))},{btn:l.withCtx(()=>[l.createVNode(l.unref(oN),{class:l.normalizeClass(`${i.value} mr-2`)},null,8,["class"]),o[1]||(o[1]=l.createTextVNode(" Sort By ",-1)),l.createVNode(l.unref(A1),{class:l.normalizeClass(`${i.value} ml-2`)},null,8,["class"])]),_:1},8,["options","current","direction","size"]))}},T_e={class:"row py-0.5 border-b items-center"},uO={__name:"CheckDropdown",props:{options:{type:Array,required:!0},text:{type:String,default:"Filter"},size:{type:String,default:"sm"},color:String,direction:{type:String,default:"left"},optionsSize:{type:String,default:"40"},disabled:Boolean,dense:Boolean,selectAll:{type:Boolean,default:!0}},emits:[],setup(e,{emit:t}){const n=e,r=l.ref(!!n.selectAll),i=l.computed(()=>n.size==="xs"?"icon":n.size==="sm"?"icon-md":n.size==="md"?"icon-lg":n.size==="lg"?"icon-xl":"icon");function a(){const o=r.value;n.options.forEach(s=>{s.checked=o})}return(o,s)=>(l.openBlock(),l.createBlock(l.unref(Cw),{as:"div",class:"relative inline-block text-left"},{default:l.withCtx(()=>[l.createVNode(l.unref(E6),{class:l.normalizeClass([`group inline-flex justify-center text-${e.size} font-medium`,{"std-btn std-btn-red":e.color==="red"},{"std-btn std-btn-green":e.color==="green"},{"std-btn std-btn-blue":e.color==="blue"},{"px-3! py-1!":e.dense}]),disabled:e.disabled},{default:l.withCtx(()=>[l.renderSlot(o.$slots,"btn"),l.createTextVNode(" "+l.toDisplayString(e.text)+" ",1),l.createVNode(l.unref(Q6),{class:l.normalizeClass([i.value])},null,8,["class"])]),_:3},8,["class","disabled"]),l.createVNode(l.Transition,{"enter-active-class":"transition ease-out duration-100","enter-from-class":"transform opacity-0 scale-95","enter-to-class":"transform opacity-100 scale-100","leave-active-class":"transition ease-in duration-75","leave-from-class":"transform opacity-100 scale-100","leave-to-class":"transform opacity-0 scale-95"},{default:l.withCtx(()=>[l.createVNode(l.unref(L6),{class:l.normalizeClass(["std-white input-dropdown origin-top-right shadow-lg max-h-96",`w-${e.optionsSize}`,e.direction==="right"?"left-0 ":"right-0",{"std-red":e.color==="red"},{"std-green":e.color==="green"},{"std-blue":e.color==="blue"},{"std-white":e.color!=="red"&&e.color!=="blue"&&e.color!=="green"}])},{default:l.withCtx(()=>[l.createElementVNode("div",null,[l.createElementVNode("span",T_e,[l.createVNode(tu,{modelValue:r.value,"onUpdate:modelValue":[s[0]||(s[0]=u=>r.value=u),a],size:e.size},null,8,["modelValue","size"]),l.createElementVNode("span",{class:l.normalizeClass(`ml-1 text-${e.size}`)},"Select All",2)]),(l.openBlock(!0),l.createElementBlock(l.Fragment,null,l.renderList(e.options,(u,c)=>(l.openBlock(),l.createElementBlock("span",{class:l.normalizeClass(["row py-0.5 items-center",{"border-b":c<e.options.length-1}])},[l.createVNode(tu,{modelValue:u.checked,"onUpdate:modelValue":A=>u.checked=A,disabled:r.value,size:e.size},null,8,["modelValue","onUpdate:modelValue","disabled","size"]),l.createElementVNode("span",{class:l.normalizeClass([`ml-1 text-${e.size}`,{"font-thin":r.value}])},l.toDisplayString(u.label),3)],2))),256))])]),_:1},8,["class"])]),_:1})]),_:3}))}},N_e={__name:"Filter",props:{filters:{type:Array,required:!0},text:{type:String,default:"Filter By"},direction:{type:String,default:"left"},size:{type:String,default:"xs"},optionsSize:{type:String,default:"40"},disabled:Boolean,dense:Boolean,selectAll:{type:Boolean,default:!0}},setup(e){const t=e,n=l.computed(()=>t.size==="xs"?"icon":t.size==="sm"?"icon-md":t.size==="md"?"icon-lg":t.size==="lg"?"icon-xl":"icon");return(r,i)=>(l.openBlock(),l.createBlock(uO,{options:e.filters,text:e.text,direction:e.direction,size:e.size,optionsSize:e.optionsSize,disabled:e.disabled,dense:e.dense,selectAll:e.selectAll},{btn:l.withCtx(()=>[l.createVNode(l.unref(GAe),{class:l.normalizeClass(`${n.value} mr-2`)},null,8,["class"])]),_:1},8,["options","text","direction","size","optionsSize","disabled","dense","selectAll"]))}},F_e=["title"],O_e={key:1,class:"text-xs"},D_e={__name:"Flag",props:{country:String,city:String,org:String,squared:{type:Boolean,default:!1}},emits:[],setup(e,{emit:t}){const n=e;return(r,i)=>(l.openBlock(),l.createElementBlock("div",null,[e.country?(l.openBlock(),l.createElementBlock("span",{key:0,class:l.normalizeClass(["fi mr-1",{fis:n.squared},`fi-${n.country.toLowerCase()}`]),title:e.country},null,10,F_e)):l.createCommentVNode("",!0),e.city?(l.openBlock(),l.createElementBlock("span",O_e,l.toDisplayString(e.city)+", "+l.toDisplayString(e.org),1)):l.createCommentVNode("",!0)]))}},I_e={class:"col md:flex-row md:justify-between gap-x-5 my-4"},U_e={class:"col items-center mt-2"},P_e={class:"row"},H_e={class:"text-5xl font-semibold"},Y_e={class:"font-light"},R_e={class:"col items-center mt-2"},Q_e={class:"row"},j_e={class:"text-5xl font-semibold"},V_e={class:"font-light"},z_e={class:"col items-center mt-2"},q_e={class:"row"},K_e={class:"text-5xl font-semibold"},G_e={class:"font-light"},W_e={__name:"ThreeHomePanel",props:{firstPanelValue:[Number,String],firstPanelName:String,secondPanelValue:[Number,String],secondPanelName:String,thirdPanelValue:[Number,String],thirdPanelName:String,shadow:{type:Boolean,default:!1}},emits:["panel"],setup(e,{emit:t}){const n=t;return(r,i)=>(l.openBlock(),l.createElementBlock("div",I_e,[l.createVNode(bm,{class:l.normalizeClass(["md:w-1/3",{"dark:bg-black":e.shadow}]),onClick:i[0]||(i[0]=a=>n("panel",1))},{default:l.withCtx(()=>[l.createElementVNode("div",U_e,[l.createElementVNode("div",P_e,[l.renderSlot(r.$slots,"firstPanelIcon"),l.createElementVNode("div",H_e,l.toDisplayString(e.firstPanelValue),1)]),l.createElementVNode("div",Y_e,l.toDisplayString(e.firstPanelName),1)])]),_:3},8,["class"]),l.createVNode(bm,{class:l.normalizeClass(["md:w-1/3",{"dark:bg-black":e.shadow}]),onClick:i[1]||(i[1]=a=>n("panel",2))},{default:l.withCtx(()=>[l.createElementVNode("div",R_e,[l.createElementVNode("div",Q_e,[l.renderSlot(r.$slots,"secondPanelIcon"),l.createElementVNode("div",j_e,l.toDisplayString(e.secondPanelValue),1)]),l.createElementVNode("div",V_e,l.toDisplayString(e.secondPanelName),1)])]),_:3},8,["class"]),l.createVNode(bm,{class:l.normalizeClass(["md:w-1/3",{"dark:bg-black":e.shadow}]),onClick:i[2]||(i[2]=a=>n("panel",3))},{default:l.withCtx(()=>[l.createElementVNode("div",z_e,[l.createElementVNode("div",q_e,[l.renderSlot(r.$slots,"thirdPanelIcon"),l.createElementVNode("div",K_e,l.toDisplayString(e.thirdPanelValue),1)]),l.createElementVNode("div",G_e,l.toDisplayString(e.thirdPanelName),1)])]),_:3},8,["class"])]))}};function wA(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function ig(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function X1(e){let t,n,r;e.length!==2?(t=wA,n=(s,u)=>wA(e(s),u),r=(s,u)=>e(s)-u):(t=e===wA||e===ig?e:X_e,n=e,r=e);function i(s,u,c=0,A=s.length){if(c<A){if(t(u,u)!==0)return A;do{const f=c+A>>>1;n(s[f],u)<0?c=f+1:A=f}while(c<A)}return c}function a(s,u,c=0,A=s.length){if(c<A){if(t(u,u)!==0)return A;do{const f=c+A>>>1;n(s[f],u)<=0?c=f+1:A=f}while(c<A)}return c}function o(s,u,c=0,A=s.length){const f=i(s,u,c,A-1);return f>c&&r(s[f-1],u)>-r(s[f],u)?f-1:f}return{left:i,center:o,right:a}}function X_e(){return 0}function cO(e){return e===null?NaN:+e}function*J_e(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 J1=X1(wA).right;X1(cO).center;function SB(e,t){let n=0;for(let r of e)r!=null&&(r=+r)>=r&&++n;return n}function Z_e(e){return e.length|0}function $_e(e){return!(e>0)}function ebe(e){return typeof e!="object"||"length"in e?e:Array.from(e)}function tbe(e){return t=>e(...t)}function nbe(...e){const t=typeof e[e.length-1]=="function"&&tbe(e.pop());e=e.map(ebe);const n=e.map(Z_e),r=e.length-1,i=new Array(r+1).fill(0),a=[];if(r<0||n.some($_e))return a;for(;;){a.push(i.map((s,u)=>e[u][s]));let o=r;for(;++i[o]===n[o];){if(o===0)return t?a.map(t):a;i[o--]=0}}}function AO(e,t){let n=0,r,i=0,a=0;if(t===void 0)for(let o of e)o!=null&&(o=+o)>=o&&(r=o-i,i+=r/++n,a+=r*(o-i));else{let o=-1;for(let s of e)(s=t(s,++o,e))!=null&&(s=+s)>=s&&(r=s-i,i+=r/++n,a+=r*(s-i))}if(n>1)return a/(n-1)}function dO(e,t){const n=AO(e,t);return n&&Math.sqrt(n)}function ii(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 a of e)(a=t(a,++i,e))!=null&&(n===void 0?a>=a&&(n=r=a):(n>a&&(n=a),r<a&&(r=a)))}return[n,r]}class Zd{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 a=n[i],o=t+a,s=Math.abs(t)<Math.abs(a)?t-(o-a):a-(o-t);s&&(n[r++]=s),t=o}return n[r]=t,this._n=r+1,this}valueOf(){const t=this._partials;let n=this._n,r,i,a,o=0;if(n>0){for(o=t[--n];n>0&&(r=o,i=t[--n],o=r+i,a=i-(o-r),!a););n>0&&(a<0&&t[n-1]<0||a>0&&t[n-1]>0)&&(i=a*2,r=o+i,i==r-o&&(o=r))}return o}}class ag extends Map{constructor(t,n=pO){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(kB(this,t))}has(t){return super.has(kB(this,t))}set(t,n){return super.set(fO(this,t),n)}delete(t){return super.delete(hO(this,t))}}class og extends Set{constructor(t,n=pO){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const r of t)this.add(r)}has(t){return super.has(kB(this,t))}add(t){return super.add(fO(this,t))}delete(t){return super.delete(hO(this,t))}}function kB({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function fO({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function hO({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function pO(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Z1(e){return e}function mO(e,...t){return ey(e,Z1,Z1,t)}function $1(e,t,...n){return ey(e,Z1,t,n)}function rbe(e,t,...n){return ey(e,Array.from,t,n)}function gO(e,...t){return ey(e,Z1,ibe,t)}function ibe(e){if(e.length!==1)throw new Error("duplicate key");return e[0]}function ey(e,t,n,r){return function i(a,o){if(o>=r.length)return n(a);const s=new ag,u=r[o++];let c=-1;for(const A of a){const f=u(A,++c,a),h=s.get(f);h?h.push(A):s.set(f,[A])}for(const[A,f]of s)s.set(A,i(f,o));return t(s)}(e,0)}function abe(e,t){return Array.from(t,n=>e[n])}function vO(e,...t){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");e=Array.from(e);let[n]=t;if(n&&n.length!==2||t.length>1){const r=Uint32Array.from(e,(i,a)=>a);return t.length>1?(t=t.map(i=>e.map(i)),r.sort((i,a)=>{for(const o of t){const s=ty(o[i],o[a]);if(s)return s}})):(n=e.map(n),r.sort((i,a)=>ty(n[i],n[a]))),abe(e,r)}return e.sort(yO(n))}function yO(e=wA){if(e===wA)return ty;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 ty(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const obe=Math.sqrt(50),sbe=Math.sqrt(10),lbe=Math.sqrt(2);function ny(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=obe?10:a>=sbe?5:a>=lbe?2:1;let s,u,c;return i<0?(c=Math.pow(10,-i)/o,s=Math.round(e*c),u=Math.round(t*c),s/c<e&&++s,u/c>t&&--u,c=-c):(c=Math.pow(10,i)*o,s=Math.round(e/c),u=Math.round(t/c),s*c<e&&++s,u*c>t&&--u),u<s&&.5<=n&&n<2?ny(e,t,n*2):[s,u,c]}function Ac(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,a,o]=r?ny(t,e,n):ny(e,t,n);if(!(a>=i))return[];const s=a-i+1,u=new Array(s);if(r)if(o<0)for(let c=0;c<s;++c)u[c]=(a-c)/-o;else for(let c=0;c<s;++c)u[c]=(a-c)*o;else if(o<0)for(let c=0;c<s;++c)u[c]=(i+c)/-o;else for(let c=0;c<s;++c)u[c]=(i+c)*o;return u}function ry(e,t,n){return t=+t,e=+e,n=+n,ny(e,t,n)[2]}function MB(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?ry(t,e,n):ry(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function ube(e){return Math.max(1,Math.ceil(Math.log(SB(e))/Math.LN2)+1)}function Pi(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 cbe(e,t){let n,r=-1,i=-1;if(t===void 0)for(const a of e)++i,a!=null&&(n<a||n===void 0&&a>=a)&&(n=a,r=i);else for(let a of e)(a=t(a,++i,e))!=null&&(n<a||n===void 0&&a>=a)&&(n=a,r=i);return r}function Dh(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 Abe(e,t){let n,r=-1,i=-1;if(t===void 0)for(const a of e)++i,a!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=i);else for(let a of e)(a=t(a,++i,e))!=null&&(n>a||n===void 0&&a>=a)&&(n=a,r=i);return r}function _O(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?ty:yO(i);r>n;){if(r-n>600){const u=r-n+1,c=t-n+1,A=Math.log(u),f=.5*Math.exp(2*A/3),h=.5*Math.sqrt(A*f*(u-f)/u)*(c-u/2<0?-1:1),d=Math.max(n,Math.floor(t-c*f/u+h)),m=Math.min(r,Math.floor(t+(u-c)*f/u+h));_O(e,t,d,m,i)}const a=e[t];let o=n,s=r;for(sg(e,n,t),i(e[r],a)>0&&sg(e,n,r);o<s;){for(sg(e,o,s),++o,--s;i(e[o],a)<0;)++o;for(;i(e[s],a)>0;)--s}i(e[n],a)===0?sg(e,n,s):(++s,sg(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function sg(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Ih(e,t,n){if(e=Float64Array.from(J_e(e,n)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return Dh(e);if(t>=1)return Pi(e);var r,i=(r-1)*t,a=Math.floor(i),o=Pi(_O(e,a).subarray(0,a+1)),s=Dh(e.subarray(a+1));return o+(s-o)*(i-a)}}function dbe(e,t,n=cO){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,a=Math.floor(i),o=+n(e[a],a,e),s=+n(e[a+1],a+1,e);return o+(s-o)*(i-a)}}function fbe(e,t,n){const r=SB(e),i=Ih(e,.75)-Ih(e,.25);return r&&i?Math.ceil((n-t)/(2*i*Math.pow(r,-1/3))):1}function bO(e,t,n){const r=SB(e),i=dO(e);return r&&i?Math.ceil((n-t)*Math.cbrt(r)/(3.49*i)):1}function hbe(e,t){let n=0,r=0;if(t===void 0)for(let i of e)i!=null&&(i=+i)>=i&&(++n,r+=i);else{let i=-1;for(let a of e)(a=t(a,++i,e))!=null&&(a=+a)>=a&&(++n,r+=a)}if(n)return r/n}function EB(e,t){return Ih(e,.5,t)}function*pbe(e){for(const t of e)yield*t}function wO(e){return Array.from(pbe(e))}function mbe(e,t){const n=new ag;if(t===void 0)for(let a of e)a!=null&&a>=a&&n.set(a,(n.get(a)||0)+1);else{let a=-1;for(let o of e)(o=t(o,++a,e))!=null&&o>=o&&n.set(o,(n.get(o)||0)+1)}let r,i=0;for(const[a,o]of n)o>i&&(i=o,r=a);return r}function gbe(e,t=vbe){const n=[];let r,i=!1;for(const a of e)i&&n.push(t(r,a)),r=a,i=!0;return n}function vbe(e,t){return[e,t]}function LB(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=new Array(i);++r<i;)a[r]=e+r*n;return a}function iy(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 ay(e){if(typeof e[Symbol.iterator]!="function")throw new TypeError("values is not iterable");return Array.from(e).reverse()}function BO(...e){const t=new og;for(const n of e)for(const r of n)t.add(r);return t}function ybe(e){return e}var oy=1,sy=2,TB=3,lg=4,xO=1e-6;function _be(e){return"translate("+e+",0)"}function bbe(e){return"translate(0,"+e+")"}function wbe(e){return t=>+e(t)}function Bbe(e,t){return t=Math.max(0,e.bandwidth()-t*2)/2,e.round()&&(t=Math.round(t)),n=>+e(n)+t}function xbe(){return!this.__axis}function ly(e,t){var n=[],r=null,i=null,a=6,o=6,s=3,u=typeof window<"u"&&window.devicePixelRatio>1?0:.5,c=e===oy||e===lg?-1:1,A=e===lg||e===sy?"x":"y",f=e===oy||e===TB?_be:bbe;function h(d){var m=r??(t.ticks?t.ticks.apply(t,n):t.domain()),p=i??(t.tickFormat?t.tickFormat.apply(t,n):ybe),g=Math.max(a,0)+s,v=t.range(),y=+v[0]+u,_=+v[v.length-1]+u,b=(t.bandwidth?Bbe:wbe)(t.copy(),u),w=d.selection?d.selection():d,C=w.selectAll(".domain").data([null]),B=w.selectAll(".tick").data(m,t).order(),E=B.exit(),N=B.enter().append("g").attr("class","tick"),P=B.select("line"),k=B.select("text");C=C.merge(C.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),B=B.merge(N),P=P.merge(N.append("line").attr("stroke","currentColor").attr(A+"2",c*a)),k=k.merge(N.append("text").attr("fill","currentColor").attr(A,c*g).attr("dy",e===oy?"0em":e===TB?"0.71em":"0.32em")),d!==w&&(C=C.transition(d),B=B.transition(d),P=P.transition(d),k=k.transition(d),E=E.transition(d).attr("opacity",xO).attr("transform",function(F){return isFinite(F=b(F))?f(F+u):this.getAttribute("transform")}),N.attr("opacity",xO).attr("transform",function(F){var D=this.parentNode.__axis;return f((D&&isFinite(D=D(F))?D:b(F))+u)})),E.remove(),C.attr("d",e===lg||e===sy?o?"M"+c*o+","+y+"H"+u+"V"+_+"H"+c*o:"M"+u+","+y+"V"+_:o?"M"+y+","+c*o+"V"+u+"H"+_+"V"+c*o:"M"+y+","+u+"H"+_),B.attr("opacity",1).attr("transform",function(F){return f(b(F)+u)}),P.attr(A+"2",c*a),k.attr(A,c*g).text(p),w.filter(xbe).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===sy?"start":e===lg?"end":"middle"),w.each(function(){this.__axis=b})}return h.scale=function(d){return arguments.length?(t=d,h):t},h.ticks=function(){return n=Array.from(arguments),h},h.tickArguments=function(d){return arguments.length?(n=d==null?[]:Array.from(d),h):n.slice()},h.tickValues=function(d){return arguments.length?(r=d==null?null:Array.from(d),h):r&&r.slice()},h.tickFormat=function(d){return arguments.length?(i=d,h):i},h.tickSize=function(d){return arguments.length?(a=o=+d,h):a},h.tickSizeInner=function(d){return arguments.length?(a=+d,h):a},h.tickSizeOuter=function(d){return arguments.length?(o=+d,h):o},h.tickPadding=function(d){return arguments.length?(s=+d,h):s},h.offset=function(d){return arguments.length?(u=+d,h):u},h}function Cbe(e){return ly(oy,e)}function Sbe(e){return ly(sy,e)}function uo(e){return ly(TB,e)}function $d(e){return ly(lg,e)}var kbe={value:()=>{}};function NB(){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 uy(n)}function uy(e){this._=e}function Mbe(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}})}uy.prototype=NB.prototype={constructor:uy,on:function(e,t){var n=this._,r=Mbe(e+"",n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=Ebe(n[i],e.name)))return i;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=CO(n[i],e.name,t);else if(t==null)for(i in n)n[i]=CO(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 uy(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=new Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function Ebe(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function CO(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=kbe,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var FB="http://www.w3.org/1999/xhtml";const Uh={svg:"http://www.w3.org/2000/svg",xhtml:FB,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function cy(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),Uh.hasOwnProperty(t)?{space:Uh[t],local:e}:e}function Lbe(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===FB&&t.documentElement.namespaceURI===FB?t.createElement(e):t.createElementNS(n,e)}}function Tbe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Ay(e){var t=cy(e);return(t.local?Tbe:Lbe)(t)}function Nbe(){}function OB(e){return e==null?Nbe:function(){return this.querySelector(e)}}function Fbe(e){typeof e!="function"&&(e=OB(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=new Array(o),u,c,A=0;A<o;++A)(u=a[A])&&(c=e.call(u,u.__data__,A,a))&&("__data__"in u&&(c.__data__=u.__data__),s[A]=c);return new co(r,this._parents)}function SO(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Obe(){return[]}function kO(e){return e==null?Obe:function(){return this.querySelectorAll(e)}}function Dbe(e){return function(){return SO(e.apply(this,arguments))}}function Ibe(e){typeof e=="function"?e=Dbe(e):e=kO(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,u,c=0;c<s;++c)(u=o[c])&&(r.push(e.call(u,u.__data__,c,o)),i.push(u));return new co(r,i)}function MO(e){return function(){return this.matches(e)}}function EO(e){return function(t){return t.matches(e)}}var Ube=Array.prototype.find;function Pbe(e){return function(){return Ube.call(this.children,e)}}function Hbe(){return this.firstElementChild}function Ybe(e){return this.select(e==null?Hbe:Pbe(typeof e=="function"?e:EO(e)))}var Rbe=Array.prototype.filter;function Qbe(){return Array.from(this.children)}function jbe(e){return function(){return Rbe.call(this.children,e)}}function Vbe(e){return this.selectAll(e==null?Qbe:jbe(typeof e=="function"?e:EO(e)))}function zbe(e){typeof e!="function"&&(e=MO(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],u,c=0;c<o;++c)(u=a[c])&&e.call(u,u.__data__,c,a)&&s.push(u);return new co(r,this._parents)}function LO(e){return new Array(e.length)}function qbe(){return new co(this._enter||this._groups.map(LO),this._parents)}function dy(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}dy.prototype={constructor:dy,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 Kbe(e){return function(){return e}}function Gbe(e,t,n,r,i,a){for(var o=0,s,u=t.length,c=a.length;o<c;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new dy(e,a[o]);for(;o<u;++o)(s=t[o])&&(i[o]=s)}function Wbe(e,t,n,r,i,a,o){var s,u,c=new Map,A=t.length,f=a.length,h=new Array(A),d;for(s=0;s<A;++s)(u=t[s])&&(h[s]=d=o.call(u,u.__data__,s,t)+"",c.has(d)?i[s]=u:c.set(d,u));for(s=0;s<f;++s)d=o.call(e,a[s],s,a)+"",(u=c.get(d))?(r[s]=u,u.__data__=a[s],c.delete(d)):n[s]=new dy(e,a[s]);for(s=0;s<A;++s)(u=t[s])&&c.get(h[s])===u&&(i[s]=u)}function Xbe(e){return e.__data__}function Jbe(e,t){if(!arguments.length)return Array.from(this,Xbe);var n=t?Wbe:Gbe,r=this._parents,i=this._groups;typeof e!="function"&&(e=Kbe(e));for(var a=i.length,o=new Array(a),s=new Array(a),u=new Array(a),c=0;c<a;++c){var A=r[c],f=i[c],h=f.length,d=Zbe(e.call(A,A&&A.__data__,c,r)),m=d.length,p=s[c]=new Array(m),g=o[c]=new Array(m),v=u[c]=new Array(h);n(A,f,p,g,v,d,t);for(var y=0,_=0,b,w;y<m;++y)if(b=p[y]){for(y>=_&&(_=y+1);!(w=g[_])&&++_<m;);b._next=w||null}}return o=new co(o,r),o._enter=s,o._exit=u,o}function Zbe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function $be(){return new co(this._exit||this._groups.map(LO),this._parents)}function e2e(e,t,n){var r=this.enter(),i=this,a=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?a.remove():n(a),r&&i?r.merge(i).order():i}function t2e(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=new Array(i),u=0;u<o;++u)for(var c=n[u],A=r[u],f=c.length,h=s[u]=new Array(f),d,m=0;m<f;++m)(d=c[m]||A[m])&&(h[m]=d);for(;u<i;++u)s[u]=n[u];return new co(s,this._parents)}function n2e(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function r2e(e){e||(e=i2e);function t(f,h){return f&&h?e(f.__data__,h.__data__):!f-!h}for(var n=this._groups,r=n.length,i=new Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,u=i[a]=new Array(s),c,A=0;A<s;++A)(c=o[A])&&(u[A]=c);u.sort(t)}return new co(i,this._parents).order()}function i2e(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function a2e(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function o2e(){return Array.from(this)}function s2e(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function l2e(){let e=0;for(const t of this)++e;return e}function u2e(){return!this.node()}function c2e(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function A2e(e){return function(){this.removeAttribute(e)}}function d2e(e){return function(){this.removeAttributeNS(e.space,e.local)}}function f2e(e,t){return function(){this.setAttribute(e,t)}}function h2e(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function p2e(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function m2e(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 g2e(e,t){var n=cy(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?d2e:A2e:typeof t=="function"?n.local?m2e:p2e:n.local?h2e:f2e)(n,t))}function TO(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function v2e(e){return function(){this.style.removeProperty(e)}}function y2e(e,t,n){return function(){this.style.setProperty(e,t,n)}}function _2e(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function b2e(e,t,n){return arguments.length>1?this.each((t==null?v2e:typeof t=="function"?_2e:y2e)(e,t,n??"")):Ph(this.node(),e)}function Ph(e,t){return e.style.getPropertyValue(t)||TO(e).getComputedStyle(e,null).getPropertyValue(t)}function w2e(e){return function(){delete this[e]}}function B2e(e,t){return function(){this[e]=t}}function x2e(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function C2e(e,t){return arguments.length>1?this.each((t==null?w2e:typeof t=="function"?x2e:B2e)(e,t)):this.node()[e]}function NO(e){return e.trim().split(/^|\s+/)}function DB(e){return e.classList||new FO(e)}function FO(e){this._node=e,this._names=NO(e.getAttribute("class")||"")}FO.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 OO(e,t){for(var n=DB(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function DO(e,t){for(var n=DB(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function S2e(e){return function(){OO(this,e)}}function k2e(e){return function(){DO(this,e)}}function M2e(e,t){return function(){(t.apply(this,arguments)?OO:DO)(this,e)}}function E2e(e,t){var n=NO(e+"");if(arguments.length<2){for(var r=DB(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t=="function"?M2e:t?S2e:k2e)(n,t))}function L2e(){this.textContent=""}function T2e(e){return function(){this.textContent=e}}function N2e(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function F2e(e){return arguments.length?this.each(e==null?L2e:(typeof e=="function"?N2e:T2e)(e)):this.node().textContent}function O2e(){this.innerHTML=""}function D2e(e){return function(){this.innerHTML=e}}function I2e(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function U2e(e){return arguments.length?this.each(e==null?O2e:(typeof e=="function"?I2e:D2e)(e)):this.node().innerHTML}function P2e(){this.nextSibling&&this.parentNode.appendChild(this)}function H2e(){return this.each(P2e)}function Y2e(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function R2e(){return this.each(Y2e)}function Q2e(e){var t=typeof e=="function"?e:Ay(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function j2e(){return null}function V2e(e,t){var n=typeof e=="function"?e:Ay(e),r=t==null?j2e:typeof t=="function"?t:OB(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function z2e(){var e=this.parentNode;e&&e.removeChild(this)}function q2e(){return this.each(z2e)}function K2e(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function G2e(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function W2e(e){return this.select(e?G2e:K2e)}function X2e(e){return arguments.length?this.property("__data__",e):this.node().__data__}function J2e(e){return function(t){e.call(this,t,this.__data__)}}function Z2e(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 $2e(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function ewe(e,t,n){return function(){var r=this.__on,i,a=J2e(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function twe(e,t,n){var r=Z2e(e+""),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var u=0,c=s.length,A;u<c;++u)for(i=0,A=s[u];i<a;++i)if((o=r[i]).type===A.type&&o.name===A.name)return A.value}return}for(s=t?ewe:$2e,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function IO(e,t,n){var r=TO(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 nwe(e,t){return function(){return IO(this,e,t)}}function rwe(e,t){return function(){return IO(this,e,t.apply(this,arguments))}}function iwe(e,t){return this.each((typeof t=="function"?rwe:nwe)(e,t))}function*awe(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var IB=[null];function co(e,t){this._groups=e,this._parents=t}function ug(){return new co([[document.documentElement]],IB)}function owe(){return this}co.prototype=ug.prototype={constructor:co,select:Fbe,selectAll:Ibe,selectChild:Ybe,selectChildren:Vbe,filter:zbe,data:Jbe,enter:qbe,exit:$be,join:e2e,merge:t2e,selection:owe,order:n2e,sort:r2e,call:a2e,nodes:o2e,node:s2e,size:l2e,empty:u2e,each:c2e,attr:g2e,style:b2e,property:C2e,classed:E2e,text:F2e,html:U2e,raise:H2e,lower:R2e,append:Q2e,insert:V2e,remove:q2e,clone:W2e,datum:X2e,on:twe,dispatch:iwe,[Symbol.iterator]:awe};function Ot(e){return typeof e=="string"?new co([[document.querySelector(e)]],[document.documentElement]):new co([[e]],IB)}function swe(e){let t;for(;t=e.sourceEvent;)e=t;return e}function fy(e,t){if(e=swe(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]}function Pn(e){return typeof e=="string"?new co([document.querySelectorAll(e)],[document.documentElement]):new co([SO(e)],IB)}const UB={capture:!0,passive:!1};function PB(e){e.preventDefault(),e.stopImmediatePropagation()}function lwe(e){var t=e.document.documentElement,n=Ot(e).on("dragstart.drag",PB,UB);"onselectstart"in t?n.on("selectstart.drag",PB,UB):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function uwe(e,t){var n=e.document.documentElement,r=Ot(e).on("dragstart.drag",null);t&&(r.on("click.drag",PB,UB),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 Hh(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function cg(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function BA(){}var ef=.7,Yh=1/ef,Rh="\\s*([+-]?\\d+)\\s*",Ag="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",du="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",cwe=/^#([0-9a-f]{3,8})$/,Awe=new RegExp(`^rgb\\(${Rh},${Rh},${Rh}\\)$`),dwe=new RegExp(`^rgb\\(${du},${du},${du}\\)$`),fwe=new RegExp(`^rgba\\(${Rh},${Rh},${Rh},${Ag}\\)$`),hwe=new RegExp(`^rgba\\(${du},${du},${du},${Ag}\\)$`),pwe=new RegExp(`^hsl\\(${Ag},${du},${du}\\)$`),mwe=new RegExp(`^hsla\\(${Ag},${du},${du},${Ag}\\)$`),UO={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};Hh(BA,tf,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:PO,formatHex:PO,formatHex8:gwe,formatHsl:vwe,formatRgb:HO,toString:HO});function PO(){return this.rgb().formatHex()}function gwe(){return this.rgb().formatHex8()}function vwe(){return VO(this).formatHsl()}function HO(){return this.rgb().formatRgb()}function tf(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=cwe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?YO(t):n===3?new sa(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?hy(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?hy(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=Awe.exec(e))?new sa(t[1],t[2],t[3],1):(t=dwe.exec(e))?new sa(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=fwe.exec(e))?hy(t[1],t[2],t[3],t[4]):(t=hwe.exec(e))?hy(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=pwe.exec(e))?jO(t[1],t[2]/100,t[3]/100,1):(t=mwe.exec(e))?jO(t[1],t[2]/100,t[3]/100,t[4]):UO.hasOwnProperty(e)?YO(UO[e]):e==="transparent"?new sa(NaN,NaN,NaN,0):null}function YO(e){return new sa(e>>16&255,e>>8&255,e&255,1)}function hy(e,t,n,r){return r<=0&&(e=t=n=NaN),new sa(e,t,n,r)}function HB(e){return e instanceof BA||(e=tf(e)),e?(e=e.rgb(),new sa(e.r,e.g,e.b,e.opacity)):new sa}function xA(e,t,n,r){return arguments.length===1?HB(e):new sa(e,t,n,r??1)}function sa(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Hh(sa,xA,cg(BA,{brighter(e){return e=e==null?Yh:Math.pow(Yh,e),new sa(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ef:Math.pow(ef,e),new sa(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new sa(nf(this.r),nf(this.g),nf(this.b),py(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:RO,formatHex:RO,formatHex8:ywe,formatRgb:QO,toString:QO}));function RO(){return`#${rf(this.r)}${rf(this.g)}${rf(this.b)}`}function ywe(){return`#${rf(this.r)}${rf(this.g)}${rf(this.b)}${rf((isNaN(this.opacity)?1:this.opacity)*255)}`}function QO(){const e=py(this.opacity);return`${e===1?"rgb(":"rgba("}${nf(this.r)}, ${nf(this.g)}, ${nf(this.b)}${e===1?")":`, ${e})`}`}function py(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function nf(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function rf(e){return e=nf(e),(e<16?"0":"")+e.toString(16)}function jO(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new cl(e,t,n,r)}function VO(e){if(e instanceof cl)return new cl(e.h,e.s,e.l,e.opacity);if(e instanceof BA||(e=tf(e)),!e)return new cl;if(e instanceof cl)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,u=(a+i)/2;return s?(t===a?o=(n-r)/s+(n<r)*6:n===a?o=(r-t)/s+2:o=(t-n)/s+4,s/=u<.5?a+i:2-a-i,o*=60):s=u>0&&u<1?0:o,new cl(o,s,u,e.opacity)}function YB(e,t,n,r){return arguments.length===1?VO(e):new cl(e,t,n,r??1)}function cl(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Hh(cl,YB,cg(BA,{brighter(e){return e=e==null?Yh:Math.pow(Yh,e),new cl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ef:Math.pow(ef,e),new cl(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 sa(RB(e>=240?e-240:e+120,i,r),RB(e,i,r),RB(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new cl(zO(this.h),my(this.s),my(this.l),py(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=py(this.opacity);return`${e===1?"hsl(":"hsla("}${zO(this.h)}, ${my(this.s)*100}%, ${my(this.l)*100}%${e===1?")":`, ${e})`}`}}));function zO(e){return e=(e||0)%360,e<0?e+360:e}function my(e){return Math.max(0,Math.min(1,e||0))}function RB(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 qO=Math.PI/180,KO=180/Math.PI,gy=18,GO=.96422,WO=1,XO=.82521,JO=4/29,Qh=6/29,ZO=3*Qh*Qh,_we=Qh*Qh*Qh;function $O(e){if(e instanceof fu)return new fu(e.l,e.a,e.b,e.opacity);if(e instanceof dc)return e7(e);e instanceof sa||(e=HB(e));var t=qB(e.r),n=qB(e.g),r=qB(e.b),i=jB((.2225045*t+.7168786*n+.0606169*r)/WO),a,o;return t===n&&n===r?a=o=i:(a=jB((.4360747*t+.3850649*n+.1430804*r)/GO),o=jB((.0139322*t+.0971045*n+.7141733*r)/XO)),new fu(116*i-16,500*(a-i),200*(i-o),e.opacity)}function QB(e,t,n,r){return arguments.length===1?$O(e):new fu(e,t,n,r??1)}function fu(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}Hh(fu,QB,cg(BA,{brighter(e){return new fu(this.l+gy*(e??1),this.a,this.b,this.opacity)},darker(e){return new fu(this.l-gy*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=GO*VB(t),e=WO*VB(e),n=XO*VB(n),new sa(zB(3.1338561*t-1.6168667*e-.4906146*n),zB(-.9787684*t+1.9161415*e+.033454*n),zB(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function jB(e){return e>_we?Math.pow(e,1/3):e/ZO+JO}function VB(e){return e>Qh?e*e*e:ZO*(e-JO)}function zB(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function qB(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function bwe(e){if(e instanceof dc)return new dc(e.h,e.c,e.l,e.opacity);if(e instanceof fu||(e=$O(e)),e.a===0&&e.b===0)return new dc(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*KO;return new dc(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function KB(e,t,n,r){return arguments.length===1?bwe(e):new dc(e,t,n,r??1)}function dc(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function e7(e){if(isNaN(e.h))return new fu(e.l,0,0,e.opacity);var t=e.h*qO;return new fu(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Hh(dc,KB,cg(BA,{brighter(e){return new dc(this.h,this.c,this.l+gy*(e??1),this.opacity)},darker(e){return new dc(this.h,this.c,this.l-gy*(e??1),this.opacity)},rgb(){return e7(this).rgb()}}));var t7=-.14861,GB=1.78277,WB=-.29227,vy=-.90649,dg=1.97294,n7=dg*vy,r7=dg*GB,i7=GB*WB-vy*t7;function wwe(e){if(e instanceof af)return new af(e.h,e.s,e.l,e.opacity);e instanceof sa||(e=HB(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(i7*r+n7*t-r7*n)/(i7+n7-r7),a=r-i,o=(dg*(n-i)-WB*a)/vy,s=Math.sqrt(o*o+a*a)/(dg*i*(1-i)),u=s?Math.atan2(o,a)*KO-120:NaN;return new af(u<0?u+360:u,s,i,e.opacity)}function hu(e,t,n,r){return arguments.length===1?wwe(e):new af(e,t,n,r??1)}function af(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Hh(af,hu,cg(BA,{brighter(e){return e=e==null?Yh:Math.pow(Yh,e),new af(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ef:Math.pow(ef,e),new af(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*qO,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new sa(255*(t+n*(t7*r+GB*i)),255*(t+n*(WB*r+vy*i)),255*(t+n*(dg*r)),this.opacity)}}));function Bwe(e,t,n,r,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*n+(1+3*e+3*a-3*o)*r+o*i)/6}function xwe(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],a=e[r+1],o=r>0?e[r-1]:2*i-a,s=r<t-1?e[r+2]:2*a-i;return Bwe((n-r/t)*t,o,i,a,s)}}const yy=e=>()=>e;function a7(e,t){return function(n){return e+n*t}}function Cwe(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 XB(e,t){var n=t-e;return n?a7(e,n>180||n<-180?n-360*Math.round(n/360):n):yy(isNaN(e)?t:e)}function Swe(e){return(e=+e)==1?Ha:function(t,n){return n-t?Cwe(t,n,e):yy(isNaN(t)?n:t)}}function Ha(e,t){var n=t-e;return n?a7(e,n):yy(isNaN(e)?t:e)}const of=function e(t){var n=Swe(t);function r(i,a){var o=n((i=xA(i)).r,(a=xA(a)).r),s=n(i.g,a.g),u=n(i.b,a.b),c=Ha(i.opacity,a.opacity);return function(A){return i.r=o(A),i.g=s(A),i.b=u(A),i.opacity=c(A),i+""}}return r.gamma=e,r}(1);function kwe(e){return function(t){var n=t.length,r=new Array(n),i=new Array(n),a=new Array(n),o,s;for(o=0;o<n;++o)s=xA(t[o]),r[o]=s.r||0,i[o]=s.g||0,a[o]=s.b||0;return r=e(r),i=e(i),a=e(a),s.opacity=1,function(u){return s.r=r(u),s.g=i(u),s.b=a(u),s+""}}}var Mwe=kwe(xwe);function Ewe(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function Lwe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Twe(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),o;for(o=0;o<r;++o)i[o]=pu(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(s){for(o=0;o<r;++o)a[o]=i[o](s);return a}}function Nwe(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Ya(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Fwe(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]=pu(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var JB=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ZB=new RegExp(JB.source,"g");function Owe(e){return function(){return e}}function Dwe(e){return function(t){return e(t)+""}}function o7(e,t){var n=JB.lastIndex=ZB.lastIndex=0,r,i,a,o=-1,s=[],u=[];for(e=e+"",t=t+"";(r=JB.exec(e))&&(i=ZB.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,u.push({i:o,x:Ya(r,i)})),n=ZB.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?u[0]?Dwe(u[0].x):Owe(t):(t=u.length,function(c){for(var A=0,f;A<t;++A)s[(f=u[A]).i]=f.x(c);return s.join("")})}function pu(e,t){var n=typeof t,r;return t==null||n==="boolean"?yy(t):(n==="number"?Ya:n==="string"?(r=tf(t))?(t=r,of):o7:t instanceof tf?of:t instanceof Date?Nwe:Lwe(t)?Ewe:Array.isArray(t)?Twe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Fwe:Ya)(e,t)}function _y(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var s7=180/Math.PI,$B={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function l7(e,t,n,r,i,a){var o,s,u;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r<t*n&&(e=-e,t=-t,u=-u,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*s7,skewX:Math.atan(u)*s7,scaleX:o,scaleY:s}}var by;function Iwe(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?$B:l7(t.a,t.b,t.c,t.d,t.e,t.f)}function Uwe(e){return e==null||(by||(by=document.createElementNS("http://www.w3.org/2000/svg","g")),by.setAttribute("transform",e),!(e=by.transform.baseVal.consolidate()))?$B:(e=e.matrix,l7(e.a,e.b,e.c,e.d,e.e,e.f))}function u7(e,t,n,r){function i(c){return c.length?c.pop()+" ":""}function a(c,A,f,h,d,m){if(c!==f||A!==h){var p=d.push("translate(",null,t,null,n);m.push({i:p-4,x:Ya(c,f)},{i:p-2,x:Ya(A,h)})}else(f||h)&&d.push("translate("+f+t+h+n)}function o(c,A,f,h){c!==A?(c-A>180?A+=360:A-c>180&&(c+=360),h.push({i:f.push(i(f)+"rotate(",null,r)-2,x:Ya(c,A)})):A&&f.push(i(f)+"rotate("+A+r)}function s(c,A,f,h){c!==A?h.push({i:f.push(i(f)+"skewX(",null,r)-2,x:Ya(c,A)}):A&&f.push(i(f)+"skewX("+A+r)}function u(c,A,f,h,d,m){if(c!==f||A!==h){var p=d.push(i(d)+"scale(",null,",",null,")");m.push({i:p-4,x:Ya(c,f)},{i:p-2,x:Ya(A,h)})}else(f!==1||h!==1)&&d.push(i(d)+"scale("+f+","+h+")")}return function(c,A){var f=[],h=[];return c=e(c),A=e(A),a(c.translateX,c.translateY,A.translateX,A.translateY,f,h),o(c.rotate,A.rotate,f,h),s(c.skewX,A.skewX,f,h),u(c.scaleX,c.scaleY,A.scaleX,A.scaleY,f,h),c=A=null,function(d){for(var m=-1,p=h.length,g;++m<p;)f[(g=h[m]).i]=g.x(d);return f.join("")}}}var Pwe=u7(Iwe,"px, ","px)","deg)"),Hwe=u7(Uwe,", ",")",")");function Ywe(e){return function(t,n){var r=e((t=YB(t)).h,(n=YB(n)).h),i=Ha(t.s,n.s),a=Ha(t.l,n.l),o=Ha(t.opacity,n.opacity);return function(s){return t.h=r(s),t.s=i(s),t.l=a(s),t.opacity=o(s),t+""}}}const Rwe=Ywe(XB);function Qwe(e,t){var n=Ha((e=QB(e)).l,(t=QB(t)).l),r=Ha(e.a,t.a),i=Ha(e.b,t.b),a=Ha(e.opacity,t.opacity);return function(o){return e.l=n(o),e.a=r(o),e.b=i(o),e.opacity=a(o),e+""}}function jwe(e){return function(t,n){var r=e((t=KB(t)).h,(n=KB(n)).h),i=Ha(t.c,n.c),a=Ha(t.l,n.l),o=Ha(t.opacity,n.opacity);return function(s){return t.h=r(s),t.c=i(s),t.l=a(s),t.opacity=o(s),t+""}}}const Vwe=jwe(XB);function c7(e){return function t(n){n=+n;function r(i,a){var o=e((i=hu(i)).h,(a=hu(a)).h),s=Ha(i.s,a.s),u=Ha(i.l,a.l),c=Ha(i.opacity,a.opacity);return function(A){return i.h=o(A),i.s=s(A),i.l=u(Math.pow(A,n)),i.opacity=c(A),i+""}}return r.gamma=t,r}(1)}c7(XB);var ex=c7(Ha);function wy(e,t){t===void 0&&(t=e,e=pu);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(o){var s=Math.max(0,Math.min(r-1,Math.floor(o*=r)));return a[s](o-s)}}function Al(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n}var jh=0,fg=0,hg=0,A7=1e3,By,pg,xy=0,sf=0,Cy=0,mg=typeof performance=="object"&&performance.now?performance:Date,d7=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function tx(){return sf||(d7(zwe),sf=mg.now()+Cy)}function zwe(){sf=0}function Sy(){this._call=this._time=this._next=null}Sy.prototype=f7.prototype={constructor:Sy,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?tx():+n)+(t==null?0:+t),!this._next&&pg!==this&&(pg?pg._next=this:By=this,pg=this),this._call=e,this._time=n,nx()},stop:function(){this._call&&(this._call=null,this._time=1/0,nx())}};function f7(e,t,n){var r=new Sy;return r.restart(e,t,n),r}function qwe(){tx(),++jh;for(var e=By,t;e;)(t=sf-e._time)>=0&&e._call.call(void 0,t),e=e._next;--jh}function h7(){sf=(xy=mg.now())+Cy,jh=fg=0;try{qwe()}finally{jh=0,Gwe(),sf=0}}function Kwe(){var e=mg.now(),t=e-xy;t>A7&&(Cy-=t,xy=e)}function Gwe(){for(var e,t=By,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:By=n);pg=e,nx(r)}function nx(e){if(!jh){fg&&(fg=clearTimeout(fg));var t=e-sf;t>24?(e<1/0&&(fg=setTimeout(h7,e-mg.now()-Cy)),hg&&(hg=clearInterval(hg))):(hg||(xy=mg.now(),hg=setInterval(Kwe,A7)),jh=1,d7(h7))}}function p7(e,t,n){var r=new Sy;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var Wwe=NB("start","end","cancel","interrupt"),Xwe=[],m7=0,g7=1,rx=2,ky=3,v7=4,ix=5,My=6;function Ey(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;Jwe(e,n,{name:t,index:r,group:i,on:Wwe,tween:Xwe,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:m7})}function ax(e,t){var n=dl(e,t);if(n.state>m7)throw new Error("too late; already scheduled");return n}function mu(e,t){var n=dl(e,t);if(n.state>ky)throw new Error("too late; already running");return n}function dl(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function Jwe(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=f7(a,0,n.time);function a(c){n.state=g7,n.timer.restart(o,n.delay,n.time),n.delay<=c&&o(c-n.delay)}function o(c){var A,f,h,d;if(n.state!==g7)return u();for(A in r)if(d=r[A],d.name===n.name){if(d.state===ky)return p7(o);d.state===v7?(d.state=My,d.timer.stop(),d.on.call("interrupt",e,e.__data__,d.index,d.group),delete r[A]):+A<t&&(d.state=My,d.timer.stop(),d.on.call("cancel",e,e.__data__,d.index,d.group),delete r[A])}if(p7(function(){n.state===ky&&(n.state=v7,n.timer.restart(s,n.delay,n.time),s(c))}),n.state=rx,n.on.call("start",e,e.__data__,n.index,n.group),n.state===rx){for(n.state=ky,i=new Array(h=n.tween.length),A=0,f=-1;A<h;++A)(d=n.tween[A].value.call(e,e.__data__,n.index,n.group))&&(i[++f]=d);i.length=f+1}}function s(c){for(var A=c<n.duration?n.ease.call(null,c/n.duration):(n.timer.restart(u),n.state=ix,1),f=-1,h=i.length;++f<h;)i[f].call(e,A);n.state===ix&&(n.on.call("end",e,e.__data__,n.index,n.group),u())}function u(){n.state=My,n.timer.stop(),delete r[t];for(var c in r)return;delete e.__transition}}function ox(e,t){var n=e.__transition,r,i,a=!0,o;if(n){t=t==null?null:t+"";for(o in n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>rx&&r.state<ix,r.state=My,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function Zwe(e){return this.each(function(){ox(this,e)})}function $we(e,t){var n,r;return function(){var i=mu(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function e5e(e,t,n){var r,i;if(typeof n!="function")throw new Error;return function(){var a=mu(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},u=0,c=i.length;u<c;++u)if(i[u].name===t){i[u]=s;break}u===c&&i.push(s)}a.tween=i}}function t5e(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r=dl(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?$we:e5e)(n,e,t))}function sx(e,t,n){var r=e._id;return e.each(function(){var i=mu(this,r);(i.value||(i.value={}))[t]=n.apply(this,arguments)}),function(i){return dl(i,r).value[t]}}function y7(e,t){var n;return(typeof t=="number"?Ya:t instanceof tf?of:(n=tf(t))?(t=n,of):o7)(e,t)}function n5e(e){return function(){this.removeAttribute(e)}}function r5e(e){return function(){this.removeAttributeNS(e.space,e.local)}}function i5e(e,t,n){var r,i=n+"",a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function a5e(e,t,n){var r,i=n+"",a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function o5e(e,t,n){var r,i,a;return function(){var o,s=n(this),u;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),u=s+"",o===u?null:o===r&&u===i?a:(i=u,a=t(r=o,s)))}}function s5e(e,t,n){var r,i,a;return function(){var o,s=n(this),u;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),u=s+"",o===u?null:o===r&&u===i?a:(i=u,a=t(r=o,s)))}}function l5e(e,t){var n=cy(e),r=n==="transform"?Hwe:y7;return this.attrTween(e,typeof t=="function"?(n.local?s5e:o5e)(n,r,sx(this,"attr."+e,t)):t==null?(n.local?r5e:n5e)(n):(n.local?a5e:i5e)(n,r,t))}function u5e(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function c5e(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function A5e(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&c5e(e,a)),n}return i._value=t,i}function d5e(e,t){var n,r;function i(){var a=t.apply(this,arguments);return a!==r&&(n=(r=a)&&u5e(e,a)),n}return i._value=t,i}function f5e(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=cy(e);return this.tween(n,(r.local?A5e:d5e)(r,t))}function h5e(e,t){return function(){ax(this,e).delay=+t.apply(this,arguments)}}function p5e(e,t){return t=+t,function(){ax(this,e).delay=t}}function m5e(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?h5e:p5e)(t,e)):dl(this.node(),t).delay}function g5e(e,t){return function(){mu(this,e).duration=+t.apply(this,arguments)}}function v5e(e,t){return t=+t,function(){mu(this,e).duration=t}}function y5e(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?g5e:v5e)(t,e)):dl(this.node(),t).duration}function _5e(e,t){if(typeof t!="function")throw new Error;return function(){mu(this,e).ease=t}}function b5e(e){var t=this._id;return arguments.length?this.each(_5e(t,e)):dl(this.node(),t).ease}function w5e(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!="function")throw new Error;mu(this,e).ease=n}}function B5e(e){if(typeof e!="function")throw new Error;return this.each(w5e(this._id,e))}function x5e(e){typeof e!="function"&&(e=MO(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],u,c=0;c<o;++c)(u=a[c])&&e.call(u,u.__data__,c,a)&&s.push(u);return new fc(r,this._parents,this._name,this._id)}function C5e(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=new Array(r),s=0;s<a;++s)for(var u=t[s],c=n[s],A=u.length,f=o[s]=new Array(A),h,d=0;d<A;++d)(h=u[d]||c[d])&&(f[d]=h);for(;s<r;++s)o[s]=t[s];return new fc(o,this._parents,this._name,this._id)}function S5e(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 k5e(e,t,n){var r,i,a=S5e(t)?ax:mu;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function M5e(e,t){var n=this._id;return arguments.length<2?dl(this.node(),n).on.on(e):this.each(k5e(n,e,t))}function E5e(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function L5e(){return this.on("end.remove",E5e(this._id))}function T5e(e){var t=this._name,n=this._id;typeof e!="function"&&(e=OB(e));for(var r=this._groups,i=r.length,a=new Array(i),o=0;o<i;++o)for(var s=r[o],u=s.length,c=a[o]=new Array(u),A,f,h=0;h<u;++h)(A=s[h])&&(f=e.call(A,A.__data__,h,s))&&("__data__"in A&&(f.__data__=A.__data__),c[h]=f,Ey(c[h],t,n,h,c,dl(A,n)));return new fc(a,this._parents,t,n)}function N5e(e){var t=this._name,n=this._id;typeof e!="function"&&(e=kO(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var u=r[s],c=u.length,A,f=0;f<c;++f)if(A=u[f]){for(var h=e.call(A,A.__data__,f,u),d,m=dl(A,n),p=0,g=h.length;p<g;++p)(d=h[p])&&Ey(d,t,n,p,h,m);a.push(h),o.push(A)}return new fc(a,o,t,n)}var F5e=ug.prototype.constructor;function O5e(){return new F5e(this._groups,this._parents)}function D5e(e,t){var n,r,i;return function(){var a=Ph(this,e),o=(this.style.removeProperty(e),Ph(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function _7(e){return function(){this.style.removeProperty(e)}}function I5e(e,t,n){var r,i=n+"",a;return function(){var o=Ph(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function U5e(e,t,n){var r,i,a;return function(){var o=Ph(this,e),s=n(this),u=s+"";return s==null&&(u=s=(this.style.removeProperty(e),Ph(this,e))),o===u?null:o===r&&u===i?a:(i=u,a=t(r=o,s))}}function P5e(e,t){var n,r,i,a="style."+t,o="end."+a,s;return function(){var u=mu(this,e),c=u.on,A=u.value[a]==null?s||(s=_7(t)):void 0;(c!==n||i!==A)&&(r=(n=c).copy()).on(o,i=A),u.on=r}}function H5e(e,t,n){var r=(e+="")=="transform"?Pwe:y7;return t==null?this.styleTween(e,D5e(e,r)).on("end.style."+e,_7(e)):typeof t=="function"?this.styleTween(e,U5e(e,r,sx(this,"style."+e,t))).each(P5e(this._id,e)):this.styleTween(e,I5e(e,r,t),n).on("end.style."+e,null)}function Y5e(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function R5e(e,t,n){var r,i;function a(){var o=t.apply(this,arguments);return o!==i&&(r=(i=o)&&Y5e(e,o,n)),r}return a._value=t,a}function Q5e(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,R5e(e,t,n??""))}function j5e(e){return function(){this.textContent=e}}function V5e(e){return function(){var t=e(this);this.textContent=t??""}}function z5e(e){return this.tween("text",typeof e=="function"?V5e(sx(this,"text",e)):j5e(e==null?"":e+""))}function q5e(e){return function(t){this.textContent=e.call(this,t)}}function K5e(e){var t,n;function r(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&q5e(i)),t}return r._value=e,r}function G5e(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,K5e(e))}function W5e(){for(var e=this._name,t=this._id,n=b7(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,u,c=0;c<s;++c)if(u=o[c]){var A=dl(u,t);Ey(u,e,n,c,o,{time:A.time+A.delay+A.duration,delay:0,duration:A.duration,ease:A.ease})}return new fc(r,this._parents,e,n)}function X5e(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},u={value:function(){--i===0&&a()}};n.each(function(){var c=mu(this,r),A=c.on;A!==e&&(t=(e=A).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(u)),c.on=t}),i===0&&a()})}var J5e=0;function fc(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function b7(){return++J5e}var hc=ug.prototype;fc.prototype={constructor:fc,select:T5e,selectAll:N5e,selectChild:hc.selectChild,selectChildren:hc.selectChildren,filter:x5e,merge:C5e,selection:O5e,transition:W5e,call:hc.call,nodes:hc.nodes,node:hc.node,size:hc.size,empty:hc.empty,each:hc.each,on:M5e,attr:l5e,attrTween:f5e,style:H5e,styleTween:Q5e,text:z5e,textTween:G5e,remove:L5e,tween:t5e,delay:m5e,duration:y5e,ease:b5e,easeVarying:B5e,end:X5e,[Symbol.iterator]:hc[Symbol.iterator]};const Z5e=e=>+e;function $5e(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var eBe={time:null,delay:0,duration:250,ease:$5e};function tBe(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 nBe(e){var t,n;e instanceof fc?(t=e._id,e=e._name):(t=b7(),(n=eBe).time=tx(),e=e==null?null:e+"");for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,u,c=0;c<s;++c)(u=o[c])&&Ey(u,e,t,c,o,n||tBe(u,t));return new fc(r,this._parents,e,t)}ug.prototype.interrupt=Zwe,ug.prototype.transition=nBe;const lx=e=>()=>e;function rBe(e,{sourceEvent:t,target:n,selection:r,mode:i,dispatch:a}){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:a}})}function iBe(e){e.stopImmediatePropagation()}function ux(e){e.preventDefault(),e.stopImmediatePropagation()}var w7={name:"drag"},cx={name:"space"},Vh={name:"handle"},zh={name:"center"};const{abs:B7,max:Ra,min:Qa}=Math;function x7(e){return[+e[0],+e[1]]}function C7(e){return[x7(e[0]),x7(e[1])]}var Ly={name:"x",handles:["w","e"].map(dx),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]]}},Ax={},pc={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"},S7={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},k7={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},aBe={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},oBe={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function dx(e){return{type:e}}function sBe(e){return!e.ctrlKey&&!e.button}function lBe(){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 uBe(){return navigator.maxTouchPoints||"ontouchstart"in this}function fx(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function cBe(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function M7(){return ABe(Ly)}function ABe(e){var t=lBe,n=sBe,r=uBe,i=!0,a=NB("start","brush","end"),o=6,s;function u(g){var v=g.property("__brush",p).selectAll(".overlay").data([dx("overlay")]);v.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",pc.overlay).merge(v).each(function(){var _=fx(this).extent;Ot(this).attr("x",_[0][0]).attr("y",_[0][1]).attr("width",_[1][0]-_[0][0]).attr("height",_[1][1]-_[0][1])}),g.selectAll(".selection").data([dx("selection")]).enter().append("rect").attr("class","selection").attr("cursor",pc.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var y=g.selectAll(".handle").data(e.handles,function(_){return _.type});y.exit().remove(),y.enter().append("rect").attr("class",function(_){return"handle handle--"+_.type}).attr("cursor",function(_){return pc[_.type]}),g.each(c).attr("fill","none").attr("pointer-events","all").on("mousedown.brush",h).filter(r).on("touchstart.brush",h).on("touchmove.brush",d).on("touchend.brush touchcancel.brush",m).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}u.move=function(g,v,y){g.tween?g.on("start.brush",function(_){A(this,arguments).beforestart().start(_)}).on("interrupt.brush end.brush",function(_){A(this,arguments).end(_)}).tween("brush",function(){var _=this,b=_.__brush,w=A(_,arguments),C=b.selection,B=e.input(typeof v=="function"?v.apply(this,arguments):v,b.extent),E=pu(C,B);function N(P){b.selection=P===1&&B===null?null:E(P),c.call(_),w.brush()}return C!==null&&B!==null?N:N(1)}):g.each(function(){var _=this,b=arguments,w=_.__brush,C=e.input(typeof v=="function"?v.apply(_,b):v,w.extent),B=A(_,b).beforestart();ox(_),w.selection=C===null?null:C,c.call(_),B.start(y).brush(y).end(y)})},u.clear=function(g,v){u.move(g,null,v)};function c(){var g=Ot(this),v=fx(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]-o/2:v[0][0]-o/2}).attr("y",function(y){return y.type[0]==="s"?v[1][1]-o/2:v[0][1]-o/2}).attr("width",function(y){return y.type==="n"||y.type==="s"?v[1][0]-v[0][0]+o:o}).attr("height",function(y){return y.type==="e"||y.type==="w"?v[1][1]-v[0][1]+o:o})):g.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function A(g,v,y){var _=g.__brush.emitter;return _&&(!y||!_.clean)?_:new f(g,v,y)}function f(g,v,y){this.that=g,this.args=v,this.state=g.__brush,this.active=0,this.clean=y}f.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 _=Ot(this.that).datum();a.call(g,this.that,new rBe(g,{sourceEvent:v,target:u,selection:e.output(this.state.selection),mode:y,dispatch:a}),_)}};function h(g){if(s&&!g.touches||!n.apply(this,arguments))return;var v=this,y=g.target.__data__.type,_=(i&&g.metaKey?y="overlay":y)==="selection"?w7:i&&g.altKey?zh:Vh,b=e===Ax?null:aBe[y],w=e===Ly?null:oBe[y],C=fx(v),B=C.extent,E=C.selection,N=B[0][0],P,k,F=B[0][1],D,L,H=B[1][0],K,q,z=B[1][1],J,ie,X=0,I=0,W,ee=b&&w&&i&&g.shiftKey,ne,pe,he=Array.from(g.touches||[g],$=>{const Z=$.identifier;return $=fy($,v),$.point0=$.slice(),$.identifier=Z,$});ox(v);var ve=A(v,arguments,!0).beforestart();if(y==="overlay"){E&&(W=!0);const $=[he[0],he[1]||he[0]];C.selection=E=[[P=e===Ax?N:Qa($[0][0],$[1][0]),D=e===Ly?F:Qa($[0][1],$[1][1])],[K=e===Ax?H:Ra($[0][0],$[1][0]),J=e===Ly?z:Ra($[0][1],$[1][1])]],he.length>1&&Pe(g)}else P=E[0][0],D=E[0][1],K=E[1][0],J=E[1][1];k=P,L=D,q=K,ie=J;var ue=Ot(v).attr("pointer-events","none"),_e=ue.selectAll(".overlay").attr("cursor",pc[y]);if(g.touches)ve.moved=Me,ve.ended=Q;else{var Le=Ot(g.view).on("mousemove.brush",Me,!0).on("mouseup.brush",Q,!0);i&&Le.on("keydown.brush",te,!0).on("keyup.brush",ce,!0),lwe(g.view)}c.call(v),ve.start(g,_.name);function Me($){for(const Z of $.changedTouches||[$])for(const ae of he)ae.identifier===Z.identifier&&(ae.cur=fy(Z,v));if(ee&&!ne&&!pe&&he.length===1){const Z=he[0];B7(Z.cur[0]-Z[0])>B7(Z.cur[1]-Z[1])?pe=!0:ne=!0}for(const Z of he)Z.cur&&(Z[0]=Z.cur[0],Z[1]=Z.cur[1]);W=!0,ux($),Pe($)}function Pe($){const Z=he[0],ae=Z.point0;var Be;switch(X=Z[0]-ae[0],I=Z[1]-ae[1],_){case cx:case w7:{b&&(X=Ra(N-P,Qa(H-K,X)),k=P+X,q=K+X),w&&(I=Ra(F-D,Qa(z-J,I)),L=D+I,ie=J+I);break}case Vh:{he[1]?(b&&(k=Ra(N,Qa(H,he[0][0])),q=Ra(N,Qa(H,he[1][0])),b=1),w&&(L=Ra(F,Qa(z,he[0][1])),ie=Ra(F,Qa(z,he[1][1])),w=1)):(b<0?(X=Ra(N-P,Qa(H-P,X)),k=P+X,q=K):b>0&&(X=Ra(N-K,Qa(H-K,X)),k=P,q=K+X),w<0?(I=Ra(F-D,Qa(z-D,I)),L=D+I,ie=J):w>0&&(I=Ra(F-J,Qa(z-J,I)),L=D,ie=J+I));break}case zh:{b&&(k=Ra(N,Qa(H,P-X*b)),q=Ra(N,Qa(H,K+X*b))),w&&(L=Ra(F,Qa(z,D-I*w)),ie=Ra(F,Qa(z,J+I*w)));break}}q<k&&(b*=-1,Be=P,P=K,K=Be,Be=k,k=q,q=Be,y in S7&&_e.attr("cursor",pc[y=S7[y]])),ie<L&&(w*=-1,Be=D,D=J,J=Be,Be=L,L=ie,ie=Be,y in k7&&_e.attr("cursor",pc[y=k7[y]])),C.selection&&(E=C.selection),ne&&(k=E[0][0],q=E[1][0]),pe&&(L=E[0][1],ie=E[1][1]),(E[0][0]!==k||E[0][1]!==L||E[1][0]!==q||E[1][1]!==ie)&&(C.selection=[[k,L],[q,ie]],c.call(v),ve.brush($,_.name))}function Q($){if(iBe($),$.touches){if($.touches.length)return;s&&clearTimeout(s),s=setTimeout(function(){s=null},500)}else uwe($.view,W),Le.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);ue.attr("pointer-events","all"),_e.attr("cursor",pc.overlay),C.selection&&(E=C.selection),cBe(E)&&(C.selection=null,c.call(v)),ve.end($,_.name)}function te($){switch($.keyCode){case 16:{ee=b&&w;break}case 18:{_===Vh&&(b&&(K=q-X*b,P=k+X*b),w&&(J=ie-I*w,D=L+I*w),_=zh,Pe($));break}case 32:{(_===Vh||_===zh)&&(b<0?K=q-X:b>0&&(P=k-X),w<0?J=ie-I:w>0&&(D=L-I),_=cx,_e.attr("cursor",pc.selection),Pe($));break}default:return}ux($)}function ce($){switch($.keyCode){case 16:{ee&&(ne=pe=ee=!1,Pe($));break}case 18:{_===zh&&(b<0?K=q:b>0&&(P=k),w<0?J=ie:w>0&&(D=L),_=Vh,Pe($));break}case 32:{_===cx&&($.altKey?(b&&(K=q-X*b,P=k+X*b),w&&(J=ie-I*w,D=L+I*w),_=zh):(b<0?K=q:b>0&&(P=k),w<0?J=ie:w>0&&(D=L),_=Vh),_e.attr("cursor",pc[y]),Pe($));break}default:return}ux($)}}function d(g){A(this,arguments).moved(g)}function m(g){A(this,arguments).ended(g)}function p(){var g=this.__brush||{selection:null};return g.extent=C7(t.apply(this,arguments)),g.dim=e,g}return u.extent=function(g){return arguments.length?(t=typeof g=="function"?g:lx(C7(g)),u):t},u.filter=function(g){return arguments.length?(n=typeof g=="function"?g:lx(!!g),u):n},u.touchable=function(g){return arguments.length?(r=typeof g=="function"?g:lx(!!g),u):r},u.handleSize=function(g){return arguments.length?(o=+g,u):o},u.keyModifiers=function(g){return arguments.length?(i=!!g,u):i},u.on=function(){var g=a.on.apply(a,arguments);return g===a?u:g},u}const hx=Math.PI,px=2*hx,lf=1e-6,dBe=px-lf;function E7(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function fBe(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return E7;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class L7{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?E7:fBe(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,a,o){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,n,r,i,a){if(t=+t,n=+n,r=+r,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,s=this._y1,u=r-t,c=i-n,A=o-t,f=s-n,h=A*A+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(h>lf)if(!(Math.abs(f*u-c*A)>lf)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let d=r-o,m=i-s,p=u*u+c*c,g=d*d+m*m,v=Math.sqrt(p),y=Math.sqrt(h),_=a*Math.tan((hx-Math.acos((p+h-g)/(2*v*y)))/2),b=_/y,w=_/v;Math.abs(b-1)>lf&&this._append`L${t+b*A},${n+b*f}`,this._append`A${a},${a},0,0,${+(f*d>A*m)},${this._x1=t+w*u},${this._y1=n+w*c}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(i),u=r*Math.sin(i),c=t+s,A=n+u,f=1^o,h=o?i-a:a-i;this._x1===null?this._append`M${c},${A}`:(Math.abs(this._x1-c)>lf||Math.abs(this._y1-A)>lf)&&this._append`L${c},${A}`,r&&(h<0&&(h=h%px+px),h>dBe?this._append`A${r},${r},0,1,${f},${t-s},${n-u}A${r},${r},0,1,${f},${this._x1=c},${this._y1=A}`:h>lf&&this._append`A${r},${r},0,${+(h>=hx)},${f},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}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 uf(e=3){return new L7(+e)}function hBe(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Ty(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 qh(e){return e=Ty(Math.abs(e)),e?e[1]:NaN}function pBe(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),a.push(n.substring(i-=s,i+s)),!((u+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function mBe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var gBe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function gg(e){if(!(t=gBe.exec(e)))throw new Error("invalid format: "+e);var t;return new mx({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]})}gg.prototype=mx.prototype;function mx(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+""}mx.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 vBe(e){e: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 e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var T7;function yBe(e,t){var n=Ty(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(T7=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+Ty(e,Math.max(0,t+a-1))[0]}function N7(e,t){var n=Ty(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 F7={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:hBe,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)=>N7(e*100,t),r:N7,s:yBe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function O7(e){return e}var D7=Array.prototype.map,I7=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function _Be(e){var t=e.grouping===void 0||e.thousands===void 0?O7:pBe(D7.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?O7:mBe(D7.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function c(f){f=gg(f);var h=f.fill,d=f.align,m=f.sign,p=f.symbol,g=f.zero,v=f.width,y=f.comma,_=f.precision,b=f.trim,w=f.type;w==="n"?(y=!0,w="g"):F7[w]||(_===void 0&&(_=12),b=!0,w="g"),(g||h==="0"&&d==="=")&&(g=!0,h="0",d="=");var C=p==="$"?n:p==="#"&&/[boxX]/.test(w)?"0"+w.toLowerCase():"",B=p==="$"?r:/[%p]/.test(w)?o:"",E=F7[w],N=/[defgprs%]/.test(w);_=_===void 0?6:/[gprs]/.test(w)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function P(k){var F=C,D=B,L,H,K;if(w==="c")D=E(k)+D,k="";else{k=+k;var q=k<0||1/k<0;if(k=isNaN(k)?u:E(Math.abs(k),_),b&&(k=vBe(k)),q&&+k==0&&m!=="+"&&(q=!1),F=(q?m==="("?m:s:m==="-"||m==="("?"":m)+F,D=(w==="s"?I7[8+T7/3]:"")+D+(q&&m==="("?")":""),N){for(L=-1,H=k.length;++L<H;)if(K=k.charCodeAt(L),48>K||K>57){D=(K===46?i+k.slice(L+1):k.slice(L))+D,k=k.slice(0,L);break}}}y&&!g&&(k=t(k,1/0));var z=F.length+k.length+D.length,J=z<v?new Array(v-z+1).join(h):"";switch(y&&g&&(k=t(J+k,J.length?v-D.length:1/0),J=""),d){case"<":k=F+k+D+J;break;case"=":k=F+J+k+D;break;case"^":k=J.slice(0,z=J.length>>1)+F+k+D+J.slice(z);break;default:k=J+F+k+D;break}return a(k)}return P.toString=function(){return f+""},P}function A(f,h){var d=c((f=gg(f),f.type="f",f)),m=Math.max(-8,Math.min(8,Math.floor(qh(h)/3)))*3,p=Math.pow(10,-m),g=I7[8+m/3];return function(v){return d(p*v)+g}}return{format:c,formatPrefix:A}}var Ny,_a,U7;bBe({thousands:",",grouping:[3],currency:["$",""]});function bBe(e){return Ny=_Be(e),_a=Ny.format,U7=Ny.formatPrefix,Ny}function wBe(e){return Math.max(0,-qh(Math.abs(e)))}function BBe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(qh(t)/3)))*3-qh(Math.abs(e)))}function xBe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,qh(t)-qh(e))+1}var On=1e-6,P7=1e-12,Qn=Math.PI,ui=Qn/2,H7=Qn/4,Xo=Qn*2,Ao=180/Qn,ci=Qn/180,yr=Math.abs,Kh=Math.atan,mc=Math.atan2,Yn=Math.cos,Y7=Math.exp,Fy=Math.log,gx=Math.pow,Mn=Math.sin,ks=Math.sign||function(e){return e>0?1:e<0?-1:0},Eo=Math.sqrt,vx=Math.tan;function R7(e){return e>1?0:e<-1?Qn:Math.acos(e)}function Ms(e){return e>1?ui:e<-1?-ui:Math.asin(e)}function Es(){}function Oy(e,t){e&&j7.hasOwnProperty(e.type)&&j7[e.type](e,t)}var Q7={Feature:function(e,t){Oy(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)Oy(n[r].geometry,t)}},j7={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){yx(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)yx(n[r],t,0)},Polygon:function(e,t){V7(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)V7(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)Oy(n[r],t)}};function yx(e,t,n){var r=-1,i=e.length-n,a;for(t.lineStart();++r<i;)a=e[r],t.point(a[0],a[1],a[2]);t.lineEnd()}function V7(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)yx(e[n],t,1);t.polygonEnd()}function cf(e,t){e&&Q7.hasOwnProperty(e.type)?Q7[e.type](e,t):Oy(e,t)}function _x(e){return[mc(e[1],e[0]),Ms(e[2])]}function Gh(e){var t=e[0],n=e[1],r=Yn(n);return[r*Yn(t),r*Mn(t),Mn(n)]}function Dy(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Iy(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 bx(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Uy(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function wx(e){var t=Eo(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}function Bx(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 xx(e,t){return yr(e)>Qn&&(e-=Math.round(e/Xo)*Xo),[e,t]}xx.invert=xx;function z7(e,t,n){return(e%=Xo)?t||n?Bx(K7(e),G7(t,n)):K7(e):t||n?G7(t,n):xx}function q7(e){return function(t,n){return t+=e,yr(t)>Qn&&(t-=Math.round(t/Xo)*Xo),[t,n]}}function K7(e){var t=q7(e);return t.invert=q7(-e),t}function G7(e,t){var n=Yn(e),r=Mn(e),i=Yn(t),a=Mn(t);function o(s,u){var c=Yn(u),A=Yn(s)*c,f=Mn(s)*c,h=Mn(u),d=h*n+A*r;return[mc(f*i-d*a,A*n-h*r),Ms(d*i+f*a)]}return o.invert=function(s,u){var c=Yn(u),A=Yn(s)*c,f=Mn(s)*c,h=Mn(u),d=h*i-f*a;return[mc(f*i+h*a,A*n+d*r),Ms(d*n-A*r)]},o}function CBe(e){e=z7(e[0]*ci,e[1]*ci,e.length>2?e[2]*ci:0);function t(n){return n=e(n[0]*ci,n[1]*ci),n[0]*=Ao,n[1]*=Ao,n}return t.invert=function(n){return n=e.invert(n[0]*ci,n[1]*ci),n[0]*=Ao,n[1]*=Ao,n},t}function SBe(e,t,n,r,i,a){if(n){var o=Yn(t),s=Mn(t),u=r*n;i==null?(i=t+r*Xo,a=t-u/2):(i=W7(o,i),a=W7(o,a),(r>0?i<a:i>a)&&(i+=r*Xo));for(var c,A=i;r>0?A>a:A<a;A-=u)c=_x([o,-s*Yn(A),-s*Mn(A)]),e.point(c[0],c[1])}}function W7(e,t){t=Gh(t),t[0]-=e,wx(t);var n=R7(-t[1]);return((-t[2]<0?-n:n)+Xo-On)%Xo}function X7(){var e=[],t;return{point:function(n,r,i){t.push([n,r,i])},lineStart:function(){e.push(t=[])},lineEnd:Es,rejoin:function(){e.length>1&&e.push(e.pop().concat(e.shift()))},result:function(){var n=e;return e=[],t=null,n}}}function Py(e,t){return yr(e[0]-t[0])<On&&yr(e[1]-t[1])<On}function Hy(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 J7(e,t,n,r,i){var a=[],o=[],s,u;if(e.forEach(function(m){if(!((p=m.length-1)<=0)){var p,g=m[0],v=m[p],y;if(Py(g,v)){if(!g[2]&&!v[2]){for(i.lineStart(),s=0;s<p;++s)i.point((g=m[s])[0],g[1]);i.lineEnd();return}v[0]+=2*On}a.push(y=new Hy(g,m,null,!0)),o.push(y.o=new Hy(g,null,y,!1)),a.push(y=new Hy(v,m,null,!1)),o.push(y.o=new Hy(v,null,y,!0))}}),!!a.length){for(o.sort(t),Z7(a),Z7(o),s=0,u=o.length;s<u;++s)o[s].e=n=!n;for(var c=a[0],A,f;;){for(var h=c,d=!0;h.v;)if((h=h.n)===c)return;A=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(d)for(s=0,u=A.length;s<u;++s)i.point((f=A[s])[0],f[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(d)for(A=h.p.z,s=A.length-1;s>=0;--s)i.point((f=A[s])[0],f[1]);else r(h.x,h.p.x,-1,i);h=h.p}h=h.o,A=h.z,d=!d}while(!h.v);i.lineEnd()}}}function Z7(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 Cx(e){return yr(e[0])<=Qn?e[0]:ks(e[0])*((yr(e[0])+Qn)%Xo-Qn)}function kBe(e,t){var n=Cx(t),r=t[1],i=Mn(r),a=[Mn(n),-Yn(n),0],o=0,s=0,u=new Zd;i===1?r=ui+On:i===-1&&(r=-ui-On);for(var c=0,A=e.length;c<A;++c)if(h=(f=e[c]).length)for(var f,h,d=f[h-1],m=Cx(d),p=d[1]/2+H7,g=Mn(p),v=Yn(p),y=0;y<h;++y,m=b,g=C,v=B,d=_){var _=f[y],b=Cx(_),w=_[1]/2+H7,C=Mn(w),B=Yn(w),E=b-m,N=E>=0?1:-1,P=N*E,k=P>Qn,F=g*C;if(u.add(mc(F*N*Mn(P),v*B+F*Yn(P))),o+=k?E+N*Xo:E,k^m>=n^b>=n){var D=Iy(Gh(d),Gh(_));wx(D);var L=Iy(a,D);wx(L);var H=(k^E>=0?-1:1)*Ms(L[2]);(r>H||r===H&&(D[0]||D[1]))&&(s+=k^E>=0?1:-1)}}return(o<-On||o<On&&u<-P7)^s&1}function $7(e,t,n,r){return function(i){var a=t(i),o=X7(),s=t(o),u=!1,c,A,f,h={point:d,lineStart:p,lineEnd:g,polygonStart:function(){h.point=v,h.lineStart=y,h.lineEnd=_,A=[],c=[]},polygonEnd:function(){h.point=d,h.lineStart=p,h.lineEnd=g,A=wO(A);var b=kBe(c,r);A.length?(u||(i.polygonStart(),u=!0),J7(A,EBe,b,n,i)):b&&(u||(i.polygonStart(),u=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),u&&(i.polygonEnd(),u=!1),A=c=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function d(b,w){e(b,w)&&i.point(b,w)}function m(b,w){a.point(b,w)}function p(){h.point=m,a.lineStart()}function g(){h.point=d,a.lineEnd()}function v(b,w){f.push([b,w]),s.point(b,w)}function y(){s.lineStart(),f=[]}function _(){v(f[0][0],f[0][1]),s.lineEnd();var b=s.clean(),w=o.result(),C,B=w.length,E,N,P;if(f.pop(),c.push(f),f=null,!!B){if(b&1){if(N=w[0],(E=N.length-1)>0){for(u||(i.polygonStart(),u=!0),i.lineStart(),C=0;C<E;++C)i.point((P=N[C])[0],P[1]);i.lineEnd()}return}B>1&&b&2&&w.push(w.pop().concat(w.shift())),A.push(w.filter(MBe))}}return h}}function MBe(e){return e.length>1}function EBe(e,t){return((e=e.x)[0]<0?e[1]-ui-On:ui-e[1])-((t=t.x)[0]<0?t[1]-ui-On:ui-t[1])}const eD=$7(function(){return!0},LBe,NBe,[-Qn,-ui]);function LBe(e){var t=NaN,n=NaN,r=NaN,i;return{lineStart:function(){e.lineStart(),i=1},point:function(a,o){var s=a>0?Qn:-Qn,u=yr(a-t);yr(u-Qn)<On?(e.point(t,n=(n+o)/2>0?ui:-ui),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(s,n),e.point(a,n),i=0):r!==s&&u>=Qn&&(yr(t-r)<On&&(t-=r*On),yr(a-s)<On&&(a-=s*On),n=TBe(t,n,a,o),e.point(r,n),e.lineEnd(),e.lineStart(),e.point(s,n),i=0),e.point(t=a,n=o),r=s},lineEnd:function(){e.lineEnd(),t=n=NaN},clean:function(){return 2-i}}}function TBe(e,t,n,r){var i,a,o=Mn(e-n);return yr(o)>On?Kh((Mn(t)*(a=Yn(r))*Mn(n)-Mn(r)*(i=Yn(t))*Mn(e))/(i*a*o)):(t+r)/2}function NBe(e,t,n,r){var i;if(e==null)i=n*ui,r.point(-Qn,i),r.point(0,i),r.point(Qn,i),r.point(Qn,0),r.point(Qn,-i),r.point(0,-i),r.point(-Qn,-i),r.point(-Qn,0),r.point(-Qn,i);else if(yr(e[0]-t[0])>On){var a=e[0]<t[0]?Qn:-Qn;i=n*a/2,r.point(-a,i),r.point(0,i),r.point(a,i)}else r.point(t[0],t[1])}function FBe(e){var t=Yn(e),n=2*ci,r=t>0,i=yr(t)>On;function a(A,f,h,d){SBe(d,e,n,h,A,f)}function o(A,f){return Yn(A)*Yn(f)>t}function s(A){var f,h,d,m,p;return{lineStart:function(){m=d=!1,p=1},point:function(g,v){var y=[g,v],_,b=o(g,v),w=r?b?0:c(g,v):b?c(g+(g<0?Qn:-Qn),v):0;if(!f&&(m=d=b)&&A.lineStart(),b!==d&&(_=u(f,y),(!_||Py(f,_)||Py(y,_))&&(y[2]=1)),b!==d)p=0,b?(A.lineStart(),_=u(y,f),A.point(_[0],_[1])):(_=u(f,y),A.point(_[0],_[1],2),A.lineEnd()),f=_;else if(i&&f&&r^b){var C;!(w&h)&&(C=u(y,f,!0))&&(p=0,r?(A.lineStart(),A.point(C[0][0],C[0][1]),A.point(C[1][0],C[1][1]),A.lineEnd()):(A.point(C[1][0],C[1][1]),A.lineEnd(),A.lineStart(),A.point(C[0][0],C[0][1],3)))}b&&(!f||!Py(f,y))&&A.point(y[0],y[1]),f=y,d=b,h=w},lineEnd:function(){d&&A.lineEnd(),f=null},clean:function(){return p|(m&&d)<<1}}}function u(A,f,h){var d=Gh(A),m=Gh(f),p=[1,0,0],g=Iy(d,m),v=Dy(g,g),y=g[0],_=v-y*y;if(!_)return!h&&A;var b=t*v/_,w=-t*y/_,C=Iy(p,g),B=Uy(p,b),E=Uy(g,w);bx(B,E);var N=C,P=Dy(B,N),k=Dy(N,N),F=P*P-k*(Dy(B,B)-1);if(!(F<0)){var D=Eo(F),L=Uy(N,(-P-D)/k);if(bx(L,B),L=_x(L),!h)return L;var H=A[0],K=f[0],q=A[1],z=f[1],J;K<H&&(J=H,H=K,K=J);var ie=K-H,X=yr(ie-Qn)<On,I=X||ie<On;if(!X&&z<q&&(J=q,q=z,z=J),I?X?q+z>0^L[1]<(yr(L[0]-H)<On?q:z):q<=L[1]&&L[1]<=z:ie>Qn^(H<=L[0]&&L[0]<=K)){var W=Uy(N,(-P+D)/k);return bx(W,B),[L,_x(W)]}}}function c(A,f){var h=r?e:Qn-e,d=0;return A<-h?d|=1:A>h&&(d|=2),f<-h?d|=4:f>h&&(d|=8),d}return $7(o,s,a,r?[0,-e]:[-Qn,e-Qn])}function OBe(e,t,n,r,i,a){var o=e[0],s=e[1],u=t[0],c=t[1],A=0,f=1,h=u-o,d=c-s,m;if(m=n-o,!(!h&&m>0)){if(m/=h,h<0){if(m<A)return;m<f&&(f=m)}else if(h>0){if(m>f)return;m>A&&(A=m)}if(m=i-o,!(!h&&m<0)){if(m/=h,h<0){if(m>f)return;m>A&&(A=m)}else if(h>0){if(m<A)return;m<f&&(f=m)}if(m=r-s,!(!d&&m>0)){if(m/=d,d<0){if(m<A)return;m<f&&(f=m)}else if(d>0){if(m>f)return;m>A&&(A=m)}if(m=a-s,!(!d&&m<0)){if(m/=d,d<0){if(m>f)return;m>A&&(A=m)}else if(d>0){if(m<A)return;m<f&&(f=m)}return A>0&&(e[0]=o+A*h,e[1]=s+A*d),f<1&&(t[0]=o+f*h,t[1]=s+f*d),!0}}}}}var vg=1e9,Yy=-vg;function tD(e,t,n,r){function i(c,A){return e<=c&&c<=n&&t<=A&&A<=r}function a(c,A,f,h){var d=0,m=0;if(c==null||(d=o(c,f))!==(m=o(A,f))||u(c,A)<0^f>0)do h.point(d===0||d===3?e:n,d>1?r:t);while((d=(d+f+4)%4)!==m);else h.point(A[0],A[1])}function o(c,A){return yr(c[0]-e)<On?A>0?0:3:yr(c[0]-n)<On?A>0?2:1:yr(c[1]-t)<On?A>0?1:0:A>0?3:2}function s(c,A){return u(c.x,A.x)}function u(c,A){var f=o(c,1),h=o(A,1);return f!==h?f-h:f===0?A[1]-c[1]:f===1?c[0]-A[0]:f===2?c[1]-A[1]:A[0]-c[0]}return function(c){var A=c,f=X7(),h,d,m,p,g,v,y,_,b,w,C,B={point:E,lineStart:F,lineEnd:D,polygonStart:P,polygonEnd:k};function E(H,K){i(H,K)&&A.point(H,K)}function N(){for(var H=0,K=0,q=d.length;K<q;++K)for(var z=d[K],J=1,ie=z.length,X=z[0],I,W,ee=X[0],ne=X[1];J<ie;++J)I=ee,W=ne,X=z[J],ee=X[0],ne=X[1],W<=r?ne>r&&(ee-I)*(r-W)>(ne-W)*(e-I)&&++H:ne<=r&&(ee-I)*(r-W)<(ne-W)*(e-I)&&--H;return H}function P(){A=f,h=[],d=[],C=!0}function k(){var H=N(),K=C&&H,q=(h=wO(h)).length;(K||q)&&(c.polygonStart(),K&&(c.lineStart(),a(null,null,1,c),c.lineEnd()),q&&J7(h,s,H,a,c),c.polygonEnd()),A=c,h=d=m=null}function F(){B.point=L,d&&d.push(m=[]),w=!0,b=!1,y=_=NaN}function D(){h&&(L(p,g),v&&b&&f.rejoin(),h.push(f.result())),B.point=E,b&&A.lineEnd()}function L(H,K){var q=i(H,K);if(d&&m.push([H,K]),w)p=H,g=K,v=q,w=!1,q&&(A.lineStart(),A.point(H,K));else if(q&&b)A.point(H,K);else{var z=[y=Math.max(Yy,Math.min(vg,y)),_=Math.max(Yy,Math.min(vg,_))],J=[H=Math.max(Yy,Math.min(vg,H)),K=Math.max(Yy,Math.min(vg,K))];OBe(z,J,e,t,n,r)?(b||(A.lineStart(),A.point(z[0],z[1])),A.point(J[0],J[1]),q||A.lineEnd(),C=!1):q&&(A.lineStart(),A.point(H,K),C=!1)}y=H,_=K,b=q}return B}}const Sx=e=>e;var kx=new Zd,Mx=new Zd,nD,rD,Ex,Lx,gc={point:Es,lineStart:Es,lineEnd:Es,polygonStart:function(){gc.lineStart=DBe,gc.lineEnd=UBe},polygonEnd:function(){gc.lineStart=gc.lineEnd=gc.point=Es,kx.add(yr(Mx)),Mx=new Zd},result:function(){var e=kx/2;return kx=new Zd,e}};function DBe(){gc.point=IBe}function IBe(e,t){gc.point=iD,nD=Ex=e,rD=Lx=t}function iD(e,t){Mx.add(Lx*e-Ex*t),Ex=e,Lx=t}function UBe(){iD(nD,rD)}var Wh=1/0,Ry=Wh,yg=-Wh,Qy=yg,jy={point:PBe,lineStart:Es,lineEnd:Es,polygonStart:Es,polygonEnd:Es,result:function(){var e=[[Wh,Ry],[yg,Qy]];return yg=Qy=-(Ry=Wh=1/0),e}};function PBe(e,t){e<Wh&&(Wh=e),e>yg&&(yg=e),t<Ry&&(Ry=t),t>Qy&&(Qy=t)}var Tx=0,Nx=0,_g=0,Vy=0,zy=0,Xh=0,Fx=0,Ox=0,bg=0,aD,oD,gu,vu,Ls={point:Af,lineStart:sD,lineEnd:lD,polygonStart:function(){Ls.lineStart=RBe,Ls.lineEnd=QBe},polygonEnd:function(){Ls.point=Af,Ls.lineStart=sD,Ls.lineEnd=lD},result:function(){var e=bg?[Fx/bg,Ox/bg]:Xh?[Vy/Xh,zy/Xh]:_g?[Tx/_g,Nx/_g]:[NaN,NaN];return Tx=Nx=_g=Vy=zy=Xh=Fx=Ox=bg=0,e}};function Af(e,t){Tx+=e,Nx+=t,++_g}function sD(){Ls.point=HBe}function HBe(e,t){Ls.point=YBe,Af(gu=e,vu=t)}function YBe(e,t){var n=e-gu,r=t-vu,i=Eo(n*n+r*r);Vy+=i*(gu+e)/2,zy+=i*(vu+t)/2,Xh+=i,Af(gu=e,vu=t)}function lD(){Ls.point=Af}function RBe(){Ls.point=jBe}function QBe(){uD(aD,oD)}function jBe(e,t){Ls.point=uD,Af(aD=gu=e,oD=vu=t)}function uD(e,t){var n=e-gu,r=t-vu,i=Eo(n*n+r*r);Vy+=i*(gu+e)/2,zy+=i*(vu+t)/2,Xh+=i,i=vu*e-gu*t,Fx+=i*(gu+e),Ox+=i*(vu+t),bg+=i*3,Af(gu=e,vu=t)}function cD(e){this._context=e}cD.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,Xo);break}}},result:Es};var Dx=new Zd,Ix,AD,dD,wg,Bg,xg={point:Es,lineStart:function(){xg.point=VBe},lineEnd:function(){Ix&&fD(AD,dD),xg.point=Es},polygonStart:function(){Ix=!0},polygonEnd:function(){Ix=null},result:function(){var e=+Dx;return Dx=new Zd,e}};function VBe(e,t){xg.point=fD,AD=wg=e,dD=Bg=t}function fD(e,t){wg-=e,Bg-=t,Dx.add(Eo(wg*wg+Bg*Bg)),wg=e,Bg=t}let hD,qy,pD,mD;class gD{constructor(t){this._append=t==null?vD:zBe(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!==pD||this._append!==qy){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`,pD=r,qy=this._append,mD=this._,this._=i}this._+=mD;break}}}result(){const t=this._;return this._="",t.length?t:null}}function vD(e){let t=1;this._+=e[0];for(const n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function zBe(e){const t=Math.floor(e);if(!(t>=0))throw new RangeError(`invalid digits: ${e}`);if(t>15)return vD;if(t!==hD){const n=10**t;hD=t,qy=function(i){let a=1;this._+=i[0];for(const o=i.length;a<o;++a)this._+=Math.round(arguments[a]*n)/n+i[a]}}return qy}function Ux(e,t){let n=3,r=4.5,i,a;function o(s){return s&&(typeof r=="function"&&a.pointRadius(+r.apply(this,arguments)),cf(s,i(a))),a.result()}return o.area=function(s){return cf(s,i(gc)),gc.result()},o.measure=function(s){return cf(s,i(xg)),xg.result()},o.bounds=function(s){return cf(s,i(jy)),jy.result()},o.centroid=function(s){return cf(s,i(Ls)),Ls.result()},o.projection=function(s){return arguments.length?(i=s==null?(e=null,Sx):(e=s).stream,o):e},o.context=function(s){return arguments.length?(a=s==null?(t=null,new gD(n)):new cD(t=s),typeof r!="function"&&a.pointRadius(r),o):t},o.pointRadius=function(s){return arguments.length?(r=typeof s=="function"?s:(a.pointRadius(+s),+s),o):r},o.digits=function(s){if(!arguments.length)return n;if(s==null)n=null;else{const u=Math.floor(s);if(!(u>=0))throw new RangeError(`invalid digits: ${s}`);n=u}return t===null&&(a=new gD(n)),o},o.projection(e).digits(n).context(t)}function Ky(e){return{stream:Gy(e)}}function Gy(e){return function(t){var n=new Px;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Px(){}Px.prototype={constructor:Px,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 Hx(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),r!=null&&e.clipExtent(null),cf(n,e.stream(jy)),t(jy.result()),r!=null&&e.clipExtent(r),e}function Yx(e,t,n){return Hx(e,function(r){var i=t[1][0]-t[0][0],a=t[1][1]-t[0][1],o=Math.min(i/(r[1][0]-r[0][0]),a/(r[1][1]-r[0][1])),s=+t[0][0]+(i-o*(r[1][0]+r[0][0]))/2,u=+t[0][1]+(a-o*(r[1][1]+r[0][1]))/2;e.scale(150*o).translate([s,u])},n)}function yD(e,t,n){return Yx(e,[[0,0],t],n)}function _D(e,t,n){return Hx(e,function(r){var i=+t,a=i/(r[1][0]-r[0][0]),o=(i-a*(r[1][0]+r[0][0]))/2,s=-a*r[0][1];e.scale(150*a).translate([o,s])},n)}function bD(e,t,n){return Hx(e,function(r){var i=+t,a=i/(r[1][1]-r[0][1]),o=-a*r[0][0],s=(i-a*(r[1][1]+r[0][1]))/2;e.scale(150*a).translate([o,s])},n)}var wD=16,qBe=Yn(30*ci);function BD(e,t){return+t?GBe(e,t):KBe(e)}function KBe(e){return Gy({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}function GBe(e,t){function n(r,i,a,o,s,u,c,A,f,h,d,m,p,g){var v=c-r,y=A-i,_=v*v+y*y;if(_>4*t&&p--){var b=o+h,w=s+d,C=u+m,B=Eo(b*b+w*w+C*C),E=Ms(C/=B),N=yr(yr(C)-1)<On||yr(a-f)<On?(a+f)/2:mc(w,b),P=e(N,E),k=P[0],F=P[1],D=k-r,L=F-i,H=y*D-v*L;(H*H/_>t||yr((v*D+y*L)/_-.5)>.3||o*h+s*d+u*m<qBe)&&(n(r,i,a,o,s,u,k,F,N,b/=B,w/=B,C,p,g),g.point(k,F),n(k,F,N,b,w,C,c,A,f,h,d,m,p,g))}}return function(r){var i,a,o,s,u,c,A,f,h,d,m,p,g={point:v,lineStart:y,lineEnd:b,polygonStart:function(){r.polygonStart(),g.lineStart=w},polygonEnd:function(){r.polygonEnd(),g.lineStart=y}};function v(E,N){E=e(E,N),r.point(E[0],E[1])}function y(){f=NaN,g.point=_,r.lineStart()}function _(E,N){var P=Gh([E,N]),k=e(E,N);n(f,h,A,d,m,p,f=k[0],h=k[1],A=E,d=P[0],m=P[1],p=P[2],wD,r),r.point(f,h)}function b(){g.point=v,r.lineEnd()}function w(){y(),g.point=C,g.lineEnd=B}function C(E,N){_(i=E,N),a=f,o=h,s=d,u=m,c=p,g.point=_}function B(){n(f,h,A,d,m,p,a,o,i,s,u,c,wD,r),g.lineEnd=b,b()}return g}}var WBe=Gy({point:function(e,t){this.stream.point(e*ci,t*ci)}});function XBe(e){return Gy({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}function JBe(e,t,n,r,i){function a(o,s){return o*=r,s*=i,[t+e*o,n-e*s]}return a.invert=function(o,s){return[(o-t)/e*r,(n-s)/e*i]},a}function xD(e,t,n,r,i,a){if(!a)return JBe(e,t,n,r,i);var o=Yn(a),s=Mn(a),u=o*e,c=s*e,A=o/e,f=s/e,h=(s*n-o*t)/e,d=(s*t+o*n)/e;function m(p,g){return p*=r,g*=i,[u*p-c*g+t,n-c*p-u*g]}return m.invert=function(p,g){return[r*(A*p-f*g+h),i*(d-f*p-A*g)]},m}function CA(e){return CD(function(){return e})()}function CD(e){var t,n=150,r=480,i=250,a=0,o=0,s=0,u=0,c=0,A,f=0,h=1,d=1,m=null,p=eD,g=null,v,y,_,b=Sx,w=.5,C,B,E,N,P;function k(H){return E(H[0]*ci,H[1]*ci)}function F(H){return H=E.invert(H[0],H[1]),H&&[H[0]*Ao,H[1]*Ao]}k.stream=function(H){return N&&P===H?N:N=WBe(XBe(A)(p(C(b(P=H)))))},k.preclip=function(H){return arguments.length?(p=H,m=void 0,L()):p},k.postclip=function(H){return arguments.length?(b=H,g=v=y=_=null,L()):b},k.clipAngle=function(H){return arguments.length?(p=+H?FBe(m=H*ci):(m=null,eD),L()):m*Ao},k.clipExtent=function(H){return arguments.length?(b=H==null?(g=v=y=_=null,Sx):tD(g=+H[0][0],v=+H[0][1],y=+H[1][0],_=+H[1][1]),L()):g==null?null:[[g,v],[y,_]]},k.scale=function(H){return arguments.length?(n=+H,D()):n},k.translate=function(H){return arguments.length?(r=+H[0],i=+H[1],D()):[r,i]},k.center=function(H){return arguments.length?(a=H[0]%360*ci,o=H[1]%360*ci,D()):[a*Ao,o*Ao]},k.rotate=function(H){return arguments.length?(s=H[0]%360*ci,u=H[1]%360*ci,c=H.length>2?H[2]%360*ci:0,D()):[s*Ao,u*Ao,c*Ao]},k.angle=function(H){return arguments.length?(f=H%360*ci,D()):f*Ao},k.reflectX=function(H){return arguments.length?(h=H?-1:1,D()):h<0},k.reflectY=function(H){return arguments.length?(d=H?-1:1,D()):d<0},k.precision=function(H){return arguments.length?(C=BD(B,w=H*H),L()):Eo(w)},k.fitExtent=function(H,K){return Yx(k,H,K)},k.fitSize=function(H,K){return yD(k,H,K)},k.fitWidth=function(H,K){return _D(k,H,K)},k.fitHeight=function(H,K){return bD(k,H,K)};function D(){var H=xD(n,0,0,h,d,f).apply(null,t(a,o)),K=xD(n,r-H[0],i-H[1],h,d,f);return A=z7(s,u,c),B=Bx(t,K),E=Bx(A,B),C=BD(B,w),L()}function L(){return N=P=null,k}return function(){return t=e.apply(this,arguments),k.invert=t.invert&&F,D()}}function Rx(e){var t=0,n=Qn/3,r=CD(e),i=r(t,n);return i.parallels=function(a){return arguments.length?r(t=a[0]*ci,n=a[1]*ci):[t*Ao,n*Ao]},i}function ZBe(e){var t=Yn(e);function n(r,i){return[r*t,Mn(i)/t]}return n.invert=function(r,i){return[r/t,Ms(i*t)]},n}function $Be(e,t){var n=Mn(e),r=(n+Mn(t))/2;if(yr(r)<On)return ZBe(e);var i=1+n*(2*r-n),a=Eo(i)/r;function o(s,u){var c=Eo(i-2*r*Mn(u))/r;return[c*Mn(s*=r),a-c*Yn(s)]}return o.invert=function(s,u){var c=a-u,A=mc(s,yr(c))*ks(c);return c*r<0&&(A-=Qn*ks(s)*ks(c)),[A/r,Ms((i-(s*s+c*c)*r*r)/(2*r))]},o}function Wy(){return Rx($Be).scale(155.424).center([0,33.6442])}function SD(){return Wy().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function exe(e){var t=e.length;return{point:function(n,r){for(var i=-1;++i<t;)e[i].point(n,r)},sphere:function(){for(var n=-1;++n<t;)e[n].sphere()},lineStart:function(){for(var n=-1;++n<t;)e[n].lineStart()},lineEnd:function(){for(var n=-1;++n<t;)e[n].lineEnd()},polygonStart:function(){for(var n=-1;++n<t;)e[n].polygonStart()},polygonEnd:function(){for(var n=-1;++n<t;)e[n].polygonEnd()}}}function txe(){var e,t,n=SD(),r,i=Wy().rotate([154,0]).center([-2,58.5]).parallels([55,65]),a,o=Wy().rotate([157,0]).center([-3,19.9]).parallels([8,18]),s,u,c={point:function(h,d){u=[h,d]}};function A(h){var d=h[0],m=h[1];return u=null,r.point(d,m),u||(a.point(d,m),u)||(s.point(d,m),u)}A.invert=function(h){var d=n.scale(),m=n.translate(),p=(h[0]-m[0])/d,g=(h[1]-m[1])/d;return(g>=.12&&g<.234&&p>=-.425&&p<-.214?i:g>=.166&&g<.234&&p>=-.214&&p<-.115?o:n).invert(h)},A.stream=function(h){return e&&t===h?e:e=exe([n.stream(t=h),i.stream(h),o.stream(h)])},A.precision=function(h){return arguments.length?(n.precision(h),i.precision(h),o.precision(h),f()):n.precision()},A.scale=function(h){return arguments.length?(n.scale(h),i.scale(h*.35),o.scale(h),A.translate(n.translate())):n.scale()},A.translate=function(h){if(!arguments.length)return n.translate();var d=n.scale(),m=+h[0],p=+h[1];return r=n.translate(h).clipExtent([[m-.455*d,p-.238*d],[m+.455*d,p+.238*d]]).stream(c),a=i.translate([m-.307*d,p+.201*d]).clipExtent([[m-.425*d+On,p+.12*d+On],[m-.214*d-On,p+.234*d-On]]).stream(c),s=o.translate([m-.205*d,p+.212*d]).clipExtent([[m-.214*d+On,p+.166*d+On],[m-.115*d-On,p+.234*d-On]]).stream(c),f()},A.fitExtent=function(h,d){return Yx(A,h,d)},A.fitSize=function(h,d){return yD(A,h,d)},A.fitWidth=function(h,d){return _D(A,h,d)},A.fitHeight=function(h,d){return bD(A,h,d)};function f(){return e=t=null,A}return A.scale(1070)}function kD(e){return function(t,n){var r=Yn(t),i=Yn(n),a=e(r*i);return a===1/0?[2,0]:[a*i*Mn(t),a*Mn(n)]}}function Cg(e){return function(t,n){var r=Eo(t*t+n*n),i=e(r),a=Mn(i),o=Yn(i);return[mc(t*a,r*o),Ms(r&&n*a/r)]}}var MD=kD(function(e){return Eo(2/(1+e))});MD.invert=Cg(function(e){return 2*Ms(e/2)});function nxe(){return CA(MD).scale(124.75).clipAngle(180-.001)}var ED=kD(function(e){return(e=R7(e))&&e/Mn(e)});ED.invert=Cg(function(e){return e});function rxe(){return CA(ED).scale(79.4188).clipAngle(180-.001)}function Xy(e,t){return[e,Fy(vx((ui+t)/2))]}Xy.invert=function(e,t){return[e,2*Kh(Y7(t))-ui]};function ixe(){return LD(Xy).scale(961/Xo)}function LD(e){var t=CA(e),n=t.center,r=t.scale,i=t.translate,a=t.clipExtent,o=null,s,u,c;t.scale=function(f){return arguments.length?(r(f),A()):r()},t.translate=function(f){return arguments.length?(i(f),A()):i()},t.center=function(f){return arguments.length?(n(f),A()):n()},t.clipExtent=function(f){return arguments.length?(f==null?o=s=u=c=null:(o=+f[0][0],s=+f[0][1],u=+f[1][0],c=+f[1][1]),A()):o==null?null:[[o,s],[u,c]]};function A(){var f=Qn*r(),h=t(CBe(t.rotate()).invert([0,0]));return a(o==null?[[h[0]-f,h[1]-f],[h[0]+f,h[1]+f]]:e===Xy?[[Math.max(h[0]-f,o),s],[Math.min(h[0]+f,u),c]]:[[o,Math.max(h[1]-f,s)],[u,Math.min(h[1]+f,c)]])}return A()}function Jy(e){return vx((ui+e)/2)}function axe(e,t){var n=Yn(e),r=e===t?Mn(e):Fy(n/Yn(t))/Fy(Jy(t)/Jy(e)),i=n*gx(Jy(e),r)/r;if(!r)return Xy;function a(o,s){i>0?s<-ui+On&&(s=-ui+On):s>ui-On&&(s=ui-On);var u=i/gx(Jy(s),r);return[u*Mn(r*o),i-u*Yn(r*o)]}return a.invert=function(o,s){var u=i-s,c=ks(r)*Eo(o*o+u*u),A=mc(o,yr(u))*ks(u);return u*r<0&&(A-=Qn*ks(o)*ks(u)),[A/r,2*Kh(gx(i/c,1/r))-ui]},a}function oxe(){return Rx(axe).scale(109.5).parallels([30,30])}function Zy(e,t){return[e,t]}Zy.invert=Zy;function sxe(){return CA(Zy).scale(152.63)}function lxe(e,t){var n=Yn(e),r=e===t?Mn(e):(n-Yn(t))/(t-e),i=n/r+e;if(yr(r)<On)return Zy;function a(o,s){var u=i-s,c=r*o;return[u*Mn(c),i-u*Yn(c)]}return a.invert=function(o,s){var u=i-s,c=mc(o,yr(u))*ks(u);return u*r<0&&(c-=Qn*ks(o)*ks(u)),[c/r,i-ks(r)*Eo(o*o+u*u)]},a}function uxe(){return Rx(lxe).scale(131.154).center([0,13.9389])}var Sg=1.340264,kg=-.081106,Mg=893e-6,Eg=.003796,$y=Eo(3)/2,cxe=12;function TD(e,t){var n=Ms($y*Mn(t)),r=n*n,i=r*r*r;return[e*Yn(n)/($y*(Sg+3*kg*r+i*(7*Mg+9*Eg*r))),n*(Sg+kg*r+i*(Mg+Eg*r))]}TD.invert=function(e,t){for(var n=t,r=n*n,i=r*r*r,a=0,o,s,u;a<cxe&&(s=n*(Sg+kg*r+i*(Mg+Eg*r))-t,u=Sg+3*kg*r+i*(7*Mg+9*Eg*r),n-=o=s/u,r=n*n,i=r*r*r,!(yr(o)<P7));++a);return[$y*e*(Sg+3*kg*r+i*(7*Mg+9*Eg*r))/Yn(n),Ms(Mn(n)/$y)]};function Axe(){return CA(TD).scale(177.158)}function ND(e,t){var n=Yn(t),r=Yn(e)*n;return[n*Mn(e)/r,Mn(t)/r]}ND.invert=Cg(Kh);function dxe(){return CA(ND).scale(144.049).clipAngle(60)}function FD(e,t){return[Yn(t)*Mn(e),Mn(t)]}FD.invert=Cg(Ms);function fxe(){return CA(FD).scale(249.5).clipAngle(90+On)}function OD(e,t){var n=Yn(t),r=1+Yn(e)*n;return[n*Mn(e)/r,Mn(t)/r]}OD.invert=Cg(function(e){return 2*Kh(e)});function hxe(){return CA(OD).scale(250).clipAngle(142)}function DD(e,t){return[Fy(vx((ui+t)/2)),-e]}DD.invert=function(e,t){return[-t,2*Kh(Y7(e))-ui]};function pxe(){var e=LD(DD),t=e.center,n=e.rotate;return e.center=function(r){return arguments.length?t([-r[1],r[0]]):(r=t(),[r[1],-r[0]])},e.rotate=function(r){return arguments.length?n([r[0],r[1],r.length>2?r[2]+90:90]):(r=n(),[r[0],r[1],r[2]-90])},n([0,0,90]).scale(159.155)}function yu(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Lg(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const Qx=Symbol("implicit");function jx(){var e=new ag,t=[],n=[],r=Qx;function i(a){let o=e.get(a);if(o===void 0){if(r!==Qx)return r;e.set(a,o=t.push(a)-1)}return n[o%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new ag;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(n=Array.from(a),i):n.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return jx(t,n).unknown(r)},yu.apply(i,arguments),i}function SA(){var e=jx().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,u=0,c=0,A=.5;delete e.unknown;function f(){var h=t().length,d=i<r,m=d?i:r,p=d?r:i;a=(p-m)/Math.max(1,h-u+c*2),s&&(a=Math.floor(a)),m+=(p-m-a*(h-u))*A,o=a*(1-u),s&&(m=Math.round(m),o=Math.round(o));var g=LB(h).map(function(v){return m+a*v});return n(d?g.reverse():g)}return e.domain=function(h){return arguments.length?(t(h),f()):t()},e.range=function(h){return arguments.length?([r,i]=h,r=+r,i=+i,f()):[r,i]},e.rangeRound=function(h){return[r,i]=h,r=+r,i=+i,s=!0,f()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(h){return arguments.length?(s=!!h,f()):s},e.padding=function(h){return arguments.length?(u=Math.min(1,c=+h),f()):u},e.paddingInner=function(h){return arguments.length?(u=Math.min(1,h),f()):u},e.paddingOuter=function(h){return arguments.length?(c=+h,f()):c},e.align=function(h){return arguments.length?(A=Math.max(0,Math.min(1,h)),f()):A},e.copy=function(){return SA(t(),[r,i]).round(s).paddingInner(u).paddingOuter(c).align(A)},yu.apply(f(),arguments)}function ID(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return ID(t())},e}function mxe(){return ID(SA.apply(null,arguments).paddingInner(1))}function gxe(e){return function(){return e}}function Vx(e){return+e}var UD=[0,1];function Lo(e){return e}function zx(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:gxe(isNaN(t)?NaN:.5)}function vxe(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function yxe(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=zx(i,r),a=n(o,a)):(r=zx(r,i),a=n(a,o)),function(s){return a(r(s))}}function _xe(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=zx(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(s){var u=J1(e,s,1,r)-1;return a[u](i[u](s))}}function Tg(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function e_(){var e=UD,t=UD,n=pu,r,i,a,o=Lo,s,u,c;function A(){var h=Math.min(e.length,t.length);return o!==Lo&&(o=vxe(e[0],e[h-1])),s=h>2?_xe:yxe,u=c=null,f}function f(h){return h==null||isNaN(h=+h)?a:(u||(u=s(e.map(r),t,n)))(r(o(h)))}return f.invert=function(h){return o(i((c||(c=s(t,e.map(r),Ya)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,Vx),A()):e.slice()},f.range=function(h){return arguments.length?(t=Array.from(h),A()):t.slice()},f.rangeRound=function(h){return t=Array.from(h),n=_y,A()},f.clamp=function(h){return arguments.length?(o=h?!0:Lo,A()):o!==Lo},f.interpolate=function(h){return arguments.length?(n=h,A()):n},f.unknown=function(h){return arguments.length?(a=h,f):a},function(h,d){return r=h,i=d,A()}}function PD(){return e_()(Lo,Lo)}function bxe(e,t,n,r){var i=MB(e,t,n),a;switch(r=gg(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=BBe(i,o))&&(r.precision=a),U7(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=xBe(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=wBe(i))&&(r.precision=a-(r.type==="%")*2);break}}return _a(r)}function Jh(e){var t=e.domain;return e.ticks=function(n){var r=t();return Ac(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return bxe(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],u,c,A=10;for(s<o&&(c=o,o=s,s=c,c=i,i=a,a=c);A-- >0;){if(c=ry(o,s,n),c===u)return r[i]=o,r[a]=s,t(r);if(c>0)o=Math.floor(o/c)*c,s=Math.ceil(s/c)*c;else if(c<0)o=Math.ceil(o*c)/c,s=Math.floor(s*c)/c;else break;u=c}return e},e}function Jo(){var e=PD();return e.copy=function(){return Tg(e,Jo())},yu.apply(e,arguments),Jh(e)}function HD(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Vx),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return HD(e).unknown(t)},e=arguments.length?Array.from(e,Vx):[0,1],Jh(n)}function YD(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function RD(e){return Math.log(e)}function QD(e){return Math.exp(e)}function wxe(e){return-Math.log(-e)}function Bxe(e){return-Math.exp(-e)}function xxe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Cxe(e){return e===10?xxe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Sxe(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 jD(e){return(t,n)=>-e(-t,n)}function VD(e){const t=e(RD,QD),n=t.domain;let r=10,i,a;function o(){return i=Sxe(r),a=Cxe(r),n()[0]<0?(i=jD(i),a=jD(a),e(wxe,Bxe)):e(RD,QD),t}return t.base=function(s){return arguments.length?(r=+s,o()):r},t.domain=function(s){return arguments.length?(n(s),o()):n()},t.ticks=s=>{const u=n();let c=u[0],A=u[u.length-1];const f=A<c;f&&([c,A]=[A,c]);let h=i(c),d=i(A),m,p;const g=s==null?10:+s;let v=[];if(!(r%1)&&d-h<g){if(h=Math.floor(h),d=Math.ceil(d),c>0){for(;h<=d;++h)for(m=1;m<r;++m)if(p=h<0?m/a(-h):m*a(h),!(p<c)){if(p>A)break;v.push(p)}}else for(;h<=d;++h)for(m=r-1;m>=1;--m)if(p=h>0?m/a(-h):m*a(h),!(p<c)){if(p>A)break;v.push(p)}v.length*2<g&&(v=Ac(c,A,g))}else v=Ac(h,d,Math.min(d-h,g)).map(a);return f?v.reverse():v},t.tickFormat=(s,u)=>{if(s==null&&(s=10),u==null&&(u=r===10?"s":","),typeof u!="function"&&(!(r%1)&&(u=gg(u)).precision==null&&(u.trim=!0),u=_a(u)),s===1/0)return u;const c=Math.max(1,r*s/t.ticks().length);return A=>{let f=A/a(Math.round(i(A)));return f*r<r-.5&&(f*=r),f<=c?u(A):""}},t.nice=()=>n(YD(n(),{floor:s=>a(Math.floor(i(s))),ceil:s=>a(Math.ceil(i(s)))})),t}function zD(){const e=VD(e_()).domain([1,10]);return e.copy=()=>Tg(e,zD()).base(e.base()),yu.apply(e,arguments),e}function qD(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function KD(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function GD(e){var t=1,n=e(qD(t),KD(t));return n.constant=function(r){return arguments.length?e(qD(t=+r),KD(t)):t},Jh(n)}function WD(){var e=GD(e_());return e.copy=function(){return Tg(e,WD()).constant(e.constant())},yu.apply(e,arguments)}function XD(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function kxe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Mxe(e){return e<0?-e*e:e*e}function JD(e){var t=e(Lo,Lo),n=1;function r(){return n===1?e(Lo,Lo):n===.5?e(kxe,Mxe):e(XD(n),XD(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Jh(t)}function ZD(){var e=JD(e_());return e.copy=function(){return Tg(e,ZD()).exponent(e.exponent())},yu.apply(e,arguments),e}function $D(){var e=[],t=[],n=[],r;function i(){var o=0,s=Math.max(1,t.length);for(n=new Array(s-1);++o<s;)n[o-1]=dbe(e,o/s);return a}function a(o){return o==null||isNaN(o=+o)?r:t[J1(n,o)]}return a.invertExtent=function(o){var s=t.indexOf(o);return s<0?[NaN,NaN]:[s>0?n[s-1]:e[0],s<n.length?n[s]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let s of o)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(wA),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return $D().domain(e).range(t).unknown(r)},yu.apply(a,arguments)}function eI(){var e=[.5],t=[0,1],n,r=1;function i(a){return a!=null&&a<=a?t[J1(e,a,0,r)]:n}return i.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return eI().domain(e).range(t).unknown(n)},yu.apply(i,arguments)}const qx=new Date,Kx=new Date;function Gi(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),s=i.ceil(a);return a-o<s-a?o:s},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,s)=>{const u=[];if(a=i.ceil(a),s=s==null?1:Math.floor(s),!(a<o)||!(s>0))return u;let c;do u.push(c=new Date(+a)),t(a,s),e(a);while(c<a&&a<o);return u},i.filter=a=>Gi(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,s)=>{if(o>=o)if(s<0)for(;++s<=0;)for(;t(o,-1),!a(o););else for(;--s>=0;)for(;t(o,1),!a(o););}),n&&(i.count=(a,o)=>(qx.setTime(+a),Kx.setTime(+o),e(qx),e(Kx),Math.floor(n(qx,Kx))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?o=>r(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const t_=Gi(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);t_.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Gi(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):t_),t_.range;const vc=1e3,Ts=vc*60,yc=Ts*60,_c=yc*24,Gx=_c*7,tI=_c*30,Wx=_c*365,fl=Gi(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*vc)},(e,t)=>(t-e)/vc,e=>e.getUTCSeconds());fl.range;const Ng=Gi(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*vc)},(e,t)=>{e.setTime(+e+t*Ts)},(e,t)=>(t-e)/Ts,e=>e.getMinutes());Ng.range;const Fg=Gi(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Ts)},(e,t)=>(t-e)/Ts,e=>e.getUTCMinutes());Fg.range;const df=Gi(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*vc-e.getMinutes()*Ts)},(e,t)=>{e.setTime(+e+t*yc)},(e,t)=>(t-e)/yc,e=>e.getHours());df.range;const Og=Gi(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*yc)},(e,t)=>(t-e)/yc,e=>e.getUTCHours());Og.range;const ff=Gi(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Ts)/_c,e=>e.getDate()-1);ff.range;const n_=Gi(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/_c,e=>e.getUTCDate()-1);n_.range;const r_=Gi(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/_c,e=>Math.floor(e/_c));r_.range;function hf(e){return Gi(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())*Ts)/Gx)}const Zh=hf(0),Dg=hf(1),nI=hf(2),rI=hf(3),pf=hf(4),iI=hf(5),aI=hf(6);Zh.range,Dg.range,nI.range,rI.range,pf.range,iI.range,aI.range;function mf(e){return Gi(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)/Gx)}const $h=mf(0),Ig=mf(1),oI=mf(2),sI=mf(3),gf=mf(4),lI=mf(5),uI=mf(6);$h.range,Ig.range,oI.range,sI.range,gf.range,lI.range,uI.range;const Ug=Gi(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());Ug.range;const Pg=Gi(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());Pg.range;const hl=Gi(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());hl.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Gi(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)}),hl.range;const pl=Gi(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());pl.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Gi(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)}),pl.range;function cI(e,t,n,r,i,a){const o=[[fl,1,vc],[fl,5,5*vc],[fl,15,15*vc],[fl,30,30*vc],[a,1,Ts],[a,5,5*Ts],[a,15,15*Ts],[a,30,30*Ts],[i,1,yc],[i,3,3*yc],[i,6,6*yc],[i,12,12*yc],[r,1,_c],[r,2,2*_c],[n,1,Gx],[t,1,tI],[t,3,3*tI],[e,1,Wx]];function s(c,A,f){const h=A<c;h&&([c,A]=[A,c]);const d=f&&typeof f.range=="function"?f:u(c,A,f),m=d?d.range(c,+A+1):[];return h?m.reverse():m}function u(c,A,f){const h=Math.abs(A-c)/f,d=X1(([,,g])=>g).right(o,h);if(d===o.length)return e.every(MB(c/Wx,A/Wx,f));if(d===0)return t_.every(Math.max(MB(c,A,f),1));const[m,p]=o[h/o[d-1][2]<o[d][2]/h?d-1:d];return m.every(p)}return[s,u]}const[Exe,AI]=cI(pl,Pg,$h,r_,Og,Fg),[Lxe,Txe]=cI(hl,Ug,Zh,ff,df,Ng);function Xx(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 Jx(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 Hg(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Nxe(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,u=e.shortMonths,c=Yg(i),A=Rg(i),f=Yg(a),h=Rg(a),d=Yg(o),m=Rg(o),p=Yg(s),g=Rg(s),v=Yg(u),y=Rg(u),_={a:q,A:z,b:J,B:ie,c:null,d:gI,e:gI,f:tCe,g:ACe,G:fCe,H:Zxe,I:$xe,j:eCe,L:vI,m:nCe,M:rCe,p:X,q:I,Q:xI,s:CI,S:iCe,u:aCe,U:oCe,V:sCe,w:lCe,W:uCe,x:null,X:null,y:cCe,Y:dCe,Z:hCe,"%":BI},b={a:W,A:ee,b:ne,B:pe,c:null,d:_I,e:_I,f:vCe,g:MCe,G:LCe,H:pCe,I:mCe,j:gCe,L:bI,m:yCe,M:_Ce,p:he,q:ve,Q:xI,s:CI,S:bCe,u:wCe,U:BCe,V:xCe,w:CCe,W:SCe,x:null,X:null,y:kCe,Y:ECe,Z:TCe,"%":BI},w={a:P,A:k,b:F,B:D,c:L,d:pI,e:pI,f:Gxe,g:hI,G:fI,H:mI,I:mI,j:Vxe,L:Kxe,m:jxe,M:zxe,p:N,q:Qxe,Q:Xxe,s:Jxe,S:qxe,u:Uxe,U:Pxe,V:Hxe,w:Ixe,W:Yxe,x:H,X:K,y:hI,Y:fI,Z:Rxe,"%":Wxe};_.x=C(n,_),_.X=C(r,_),_.c=C(t,_),b.x=C(n,b),b.X=C(r,b),b.c=C(t,b);function C(ue,_e){return function(Le){var Me=[],Pe=-1,Q=0,te=ue.length,ce,$,Z;for(Le instanceof Date||(Le=new Date(+Le));++Pe<te;)ue.charCodeAt(Pe)===37&&(Me.push(ue.slice(Q,Pe)),($=dI[ce=ue.charAt(++Pe)])!=null?ce=ue.charAt(++Pe):$=ce==="e"?" ":"0",(Z=_e[ce])&&(ce=Z(Le,$)),Me.push(ce),Q=Pe+1);return Me.push(ue.slice(Q,Pe)),Me.join("")}}function B(ue,_e){return function(Le){var Me=Hg(1900,void 0,1),Pe=E(Me,ue,Le+="",0),Q,te;if(Pe!=Le.length)return null;if("Q"in Me)return new Date(Me.Q);if("s"in Me)return new Date(Me.s*1e3+("L"in Me?Me.L:0));if(_e&&!("Z"in Me)&&(Me.Z=0),"p"in Me&&(Me.H=Me.H%12+Me.p*12),Me.m===void 0&&(Me.m="q"in Me?Me.q:0),"V"in Me){if(Me.V<1||Me.V>53)return null;"w"in Me||(Me.w=1),"Z"in Me?(Q=Jx(Hg(Me.y,0,1)),te=Q.getUTCDay(),Q=te>4||te===0?Ig.ceil(Q):Ig(Q),Q=n_.offset(Q,(Me.V-1)*7),Me.y=Q.getUTCFullYear(),Me.m=Q.getUTCMonth(),Me.d=Q.getUTCDate()+(Me.w+6)%7):(Q=Xx(Hg(Me.y,0,1)),te=Q.getDay(),Q=te>4||te===0?Dg.ceil(Q):Dg(Q),Q=ff.offset(Q,(Me.V-1)*7),Me.y=Q.getFullYear(),Me.m=Q.getMonth(),Me.d=Q.getDate()+(Me.w+6)%7)}else("W"in Me||"U"in Me)&&("w"in Me||(Me.w="u"in Me?Me.u%7:"W"in Me?1:0),te="Z"in Me?Jx(Hg(Me.y,0,1)).getUTCDay():Xx(Hg(Me.y,0,1)).getDay(),Me.m=0,Me.d="W"in Me?(Me.w+6)%7+Me.W*7-(te+5)%7:Me.w+Me.U*7-(te+6)%7);return"Z"in Me?(Me.H+=Me.Z/100|0,Me.M+=Me.Z%100,Jx(Me)):Xx(Me)}}function E(ue,_e,Le,Me){for(var Pe=0,Q=_e.length,te=Le.length,ce,$;Pe<Q;){if(Me>=te)return-1;if(ce=_e.charCodeAt(Pe++),ce===37){if(ce=_e.charAt(Pe++),$=w[ce in dI?_e.charAt(Pe++):ce],!$||(Me=$(ue,Le,Me))<0)return-1}else if(ce!=Le.charCodeAt(Me++))return-1}return Me}function N(ue,_e,Le){var Me=c.exec(_e.slice(Le));return Me?(ue.p=A.get(Me[0].toLowerCase()),Le+Me[0].length):-1}function P(ue,_e,Le){var Me=d.exec(_e.slice(Le));return Me?(ue.w=m.get(Me[0].toLowerCase()),Le+Me[0].length):-1}function k(ue,_e,Le){var Me=f.exec(_e.slice(Le));return Me?(ue.w=h.get(Me[0].toLowerCase()),Le+Me[0].length):-1}function F(ue,_e,Le){var Me=v.exec(_e.slice(Le));return Me?(ue.m=y.get(Me[0].toLowerCase()),Le+Me[0].length):-1}function D(ue,_e,Le){var Me=p.exec(_e.slice(Le));return Me?(ue.m=g.get(Me[0].toLowerCase()),Le+Me[0].length):-1}function L(ue,_e,Le){return E(ue,t,_e,Le)}function H(ue,_e,Le){return E(ue,n,_e,Le)}function K(ue,_e,Le){return E(ue,r,_e,Le)}function q(ue){return o[ue.getDay()]}function z(ue){return a[ue.getDay()]}function J(ue){return u[ue.getMonth()]}function ie(ue){return s[ue.getMonth()]}function X(ue){return i[+(ue.getHours()>=12)]}function I(ue){return 1+~~(ue.getMonth()/3)}function W(ue){return o[ue.getUTCDay()]}function ee(ue){return a[ue.getUTCDay()]}function ne(ue){return u[ue.getUTCMonth()]}function pe(ue){return s[ue.getUTCMonth()]}function he(ue){return i[+(ue.getUTCHours()>=12)]}function ve(ue){return 1+~~(ue.getUTCMonth()/3)}return{format:function(ue){var _e=C(ue+="",_);return _e.toString=function(){return ue},_e},parse:function(ue){var _e=B(ue+="",!1);return _e.toString=function(){return ue},_e},utcFormat:function(ue){var _e=C(ue+="",b);return _e.toString=function(){return ue},_e},utcParse:function(ue){var _e=B(ue+="",!0);return _e.toString=function(){return ue},_e}}}var dI={"-":"",_:" ",0:"0"},la=/^\s*\d+/,Fxe=/^%/,Oxe=/[\\^$*+?|[\]().{}]/g;function lr(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function Dxe(e){return e.replace(Oxe,"\\$&")}function Yg(e){return new RegExp("^(?:"+e.map(Dxe).join("|")+")","i")}function Rg(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Ixe(e,t,n){var r=la.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Uxe(e,t,n){var r=la.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Pxe(e,t,n){var r=la.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Hxe(e,t,n){var r=la.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Yxe(e,t,n){var r=la.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function fI(e,t,n){var r=la.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function hI(e,t,n){var r=la.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Rxe(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 Qxe(e,t,n){var r=la.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function jxe(e,t,n){var r=la.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function pI(e,t,n){var r=la.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Vxe(e,t,n){var r=la.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function mI(e,t,n){var r=la.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function zxe(e,t,n){var r=la.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function qxe(e,t,n){var r=la.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Kxe(e,t,n){var r=la.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Gxe(e,t,n){var r=la.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Wxe(e,t,n){var r=Fxe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Xxe(e,t,n){var r=la.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Jxe(e,t,n){var r=la.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function gI(e,t){return lr(e.getDate(),t,2)}function Zxe(e,t){return lr(e.getHours(),t,2)}function $xe(e,t){return lr(e.getHours()%12||12,t,2)}function eCe(e,t){return lr(1+ff.count(hl(e),e),t,3)}function vI(e,t){return lr(e.getMilliseconds(),t,3)}function tCe(e,t){return vI(e,t)+"000"}function nCe(e,t){return lr(e.getMonth()+1,t,2)}function rCe(e,t){return lr(e.getMinutes(),t,2)}function iCe(e,t){return lr(e.getSeconds(),t,2)}function aCe(e){var t=e.getDay();return t===0?7:t}function oCe(e,t){return lr(Zh.count(hl(e)-1,e),t,2)}function yI(e){var t=e.getDay();return t>=4||t===0?pf(e):pf.ceil(e)}function sCe(e,t){return e=yI(e),lr(pf.count(hl(e),e)+(hl(e).getDay()===4),t,2)}function lCe(e){return e.getDay()}function uCe(e,t){return lr(Dg.count(hl(e)-1,e),t,2)}function cCe(e,t){return lr(e.getFullYear()%100,t,2)}function ACe(e,t){return e=yI(e),lr(e.getFullYear()%100,t,2)}function dCe(e,t){return lr(e.getFullYear()%1e4,t,4)}function fCe(e,t){var n=e.getDay();return e=n>=4||n===0?pf(e):pf.ceil(e),lr(e.getFullYear()%1e4,t,4)}function hCe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+lr(t/60|0,"0",2)+lr(t%60,"0",2)}function _I(e,t){return lr(e.getUTCDate(),t,2)}function pCe(e,t){return lr(e.getUTCHours(),t,2)}function mCe(e,t){return lr(e.getUTCHours()%12||12,t,2)}function gCe(e,t){return lr(1+n_.count(pl(e),e),t,3)}function bI(e,t){return lr(e.getUTCMilliseconds(),t,3)}function vCe(e,t){return bI(e,t)+"000"}function yCe(e,t){return lr(e.getUTCMonth()+1,t,2)}function _Ce(e,t){return lr(e.getUTCMinutes(),t,2)}function bCe(e,t){return lr(e.getUTCSeconds(),t,2)}function wCe(e){var t=e.getUTCDay();return t===0?7:t}function BCe(e,t){return lr($h.count(pl(e)-1,e),t,2)}function wI(e){var t=e.getUTCDay();return t>=4||t===0?gf(e):gf.ceil(e)}function xCe(e,t){return e=wI(e),lr(gf.count(pl(e),e)+(pl(e).getUTCDay()===4),t,2)}function CCe(e){return e.getUTCDay()}function SCe(e,t){return lr(Ig.count(pl(e)-1,e),t,2)}function kCe(e,t){return lr(e.getUTCFullYear()%100,t,2)}function MCe(e,t){return e=wI(e),lr(e.getUTCFullYear()%100,t,2)}function ECe(e,t){return lr(e.getUTCFullYear()%1e4,t,4)}function LCe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?gf(e):gf.ceil(e),lr(e.getUTCFullYear()%1e4,t,4)}function TCe(){return"+0000"}function BI(){return"%"}function xI(e){return+e}function CI(e){return Math.floor(+e/1e3)}var ep,Qg,jg;NCe({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 NCe(e){return ep=Nxe(e),Qg=ep.format,ep.parse,jg=ep.utcFormat,ep.utcParse,ep}function FCe(e){return new Date(e)}function OCe(e){return e instanceof Date?+e:+new Date(+e)}function Zx(e,t,n,r,i,a,o,s,u,c){var A=PD(),f=A.invert,h=A.domain,d=c(".%L"),m=c(":%S"),p=c("%I:%M"),g=c("%I %p"),v=c("%a %d"),y=c("%b %d"),_=c("%B"),b=c("%Y");function w(C){return(u(C)<C?d:s(C)<C?m:o(C)<C?p:a(C)<C?g:r(C)<C?i(C)<C?v:y:n(C)<C?_:b)(C)}return A.invert=function(C){return new Date(f(C))},A.domain=function(C){return arguments.length?h(Array.from(C,OCe)):h().map(FCe)},A.ticks=function(C){var B=h();return e(B[0],B[B.length-1],C??10)},A.tickFormat=function(C,B){return B==null?w:c(B)},A.nice=function(C){var B=h();return(!C||typeof C.range!="function")&&(C=t(B[0],B[B.length-1],C??10)),C?h(YD(B,C)):A},A.copy=function(){return Tg(A,Zx(e,t,n,r,i,a,o,s,u,c))},A}function $x(){return yu.apply(Zx(Lxe,Txe,hl,Ug,Zh,ff,df,Ng,fl,Qg).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function kA(){return yu.apply(Zx(Exe,AI,pl,Pg,$h,n_,Og,Fg,fl,jg).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function DCe(){var e=0,t=1,n,r,i,a,o=Lo,s=!1,u;function c(f){return f==null||isNaN(f=+f)?u:o(i===0?.5:(f=(a(f)-n)*i,s?Math.max(0,Math.min(1,f)):f))}c.domain=function(f){return arguments.length?([e,t]=f,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),c):[e,t]},c.clamp=function(f){return arguments.length?(s=!!f,c):s},c.interpolator=function(f){return arguments.length?(o=f,c):o};function A(f){return function(h){var d,m;return arguments.length?([d,m]=h,o=f(d,m),c):[o(0),o(1)]}}return c.range=A(pu),c.rangeRound=A(_y),c.unknown=function(f){return arguments.length?(u=f,c):u},function(f){return a=f,n=f(e),r=f(t),i=n===r?0:1/(r-n),c}}function Vg(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function _u(){var e=Jh(DCe()(Lo));return e.copy=function(){return Vg(e,_u())},Lg.apply(e,arguments)}function i_(){var e=0,t=.5,n=1,r=1,i,a,o,s,u,c=Lo,A,f=!1,h;function d(p){return isNaN(p=+p)?h:(p=.5+((p=+A(p))-a)*(r*p<r*a?s:u),c(f?Math.max(0,Math.min(1,p)):p))}d.domain=function(p){return arguments.length?([e,t,n]=p,i=A(e=+e),a=A(t=+t),o=A(n=+n),s=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),r=a<i?-1:1,d):[e,t,n]},d.clamp=function(p){return arguments.length?(f=!!p,d):f},d.interpolator=function(p){return arguments.length?(c=p,d):c};function m(p){return function(g){var v,y,_;return arguments.length?([v,y,_]=g,c=wy(p,[v,y,_]),d):[c(0),c(.5),c(1)]}}return d.range=m(pu),d.rangeRound=m(_y),d.unknown=function(p){return arguments.length?(h=p,d):h},function(p){return A=p,i=p(e),a=p(t),o=p(n),s=i===a?0:.5/(a-i),u=a===o?0:.5/(o-a),r=a<i?-1:1,d}}function SI(){var e=Jh(i_()(Lo));return e.copy=function(){return Vg(e,SI())},Lg.apply(e,arguments)}function kI(){var e=VD(i_()).domain([.1,1,10]);return e.copy=function(){return Vg(e,kI()).base(e.base())},Lg.apply(e,arguments)}function MI(){var e=GD(i_());return e.copy=function(){return Vg(e,MI()).constant(e.constant())},Lg.apply(e,arguments)}function EI(){var e=JD(i_());return e.copy=function(){return Vg(e,EI()).exponent(e.exponent())},Lg.apply(e,arguments)}function En(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(r*6,++r*6);return n}const ICe=En("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),UCe=En("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),PCe=En("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),HCe=En("4269d0efb118ff725c6cc5b03ca951ff8ab7a463f297bbf59c6b4e9498a0"),YCe=En("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),RCe=En("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),QCe=En("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),jCe=En("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),VCe=En("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),zCe=En("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),qCe=En("4e79a7f28e2ce1575976b7b259a14fedc949af7aa1ff9da79c755fbab0ab"),Tr=e=>Mwe(e[e.length-1]);var LI=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(En);const TI=Tr(LI);var NI=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(En);const FI=Tr(NI);var OI=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(En);const DI=Tr(OI);var II=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(En);const UI=Tr(II);var eC=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(En);const a_=Tr(eC);var PI=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(En);const HI=Tr(PI);var tC=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(En);const o_=Tr(tC);var YI=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(En);const RI=Tr(YI);var QI=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(En);const jI=Tr(QI);var VI=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(En);const zI=Tr(VI);var qI=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(En);const KI=Tr(qI);var GI=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(En);const WI=Tr(GI);var XI=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(En);const JI=Tr(XI);var ZI=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(En);const $I=Tr(ZI);var eU=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(En);const tU=Tr(eU);var nU=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(En);const rU=Tr(nU);var iU=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(En);const aU=Tr(iU);var oU=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(En);const sU=Tr(oU);var lU=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(En);const uU=Tr(lU);var cU=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(En);const AU=Tr(cU);var dU=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(En);const fU=Tr(dU);var hU=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(En);const s_=Tr(hU);var pU=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(En);const l_=Tr(pU);var mU=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(En);const zg=Tr(mU);var gU=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(En);const vU=Tr(gU);var yU=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(En);const nC=Tr(yU);var _U=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(En);const rC=Tr(_U);function bU(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(-4.54-e*(35.34-e*(2381.73-e*(6402.7-e*(7024.72-e*2710.57)))))))+", "+Math.max(0,Math.min(255,Math.round(32.49+e*(170.73+e*(52.82-e*(131.46-e*(176.58-e*67.37)))))))+", "+Math.max(0,Math.min(255,Math.round(81.24+e*(442.36-e*(2482.43-e*(6167.24-e*(6614.94-e*2475.67)))))))+")"}const wU=ex(hu(300,.5,0),hu(-240,.5,1));var BU=ex(hu(-100,.75,.35),hu(80,1.5,.8)),xU=ex(hu(260,.75,.35),hu(80,1.5,.8)),u_=hu();function CU(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return u_.h=360*e-100,u_.s=1.5-1.5*t,u_.l=.8-.9*t,u_+""}var c_=xA(),KCe=Math.PI/3,GCe=Math.PI*2/3;function SU(e){var t;return e=(.5-e)*Math.PI,c_.r=255*(t=Math.sin(e))*t,c_.g=255*(t=Math.sin(e+KCe))*t,c_.b=255*(t=Math.sin(e+GCe))*t,c_+""}function kU(e){return e=Math.max(0,Math.min(1,e)),"rgb("+Math.max(0,Math.min(255,Math.round(34.61+e*(1172.33-e*(10793.56-e*(33300.12-e*(38394.49-e*14825.05)))))))+", "+Math.max(0,Math.min(255,Math.round(23.31+e*(557.33+e*(1225.33-e*(3574.96-e*(1073.77+e*707.56)))))))+", "+Math.max(0,Math.min(255,Math.round(27.2+e*(3211.1-e*(15327.97-e*(27814-e*(22569.18-e*6838.66)))))))+")"}function A_(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}const MU=A_(En("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));var EU=A_(En("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),LU=A_(En("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),TU=A_(En("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function Rn(e){return function(){return e}}const NU=Math.abs,ja=Math.atan2,bc=Math.cos,WCe=Math.max,tp=Math.min,To=Math.sin,zr=Math.sqrt,Va=1e-12,MA=Math.PI,d_=MA/2,EA=2*MA;function XCe(e){return e>1?0:e<-1?MA:Math.acos(e)}function FU(e){return e>=1?d_:e<=-1?-d_:Math.asin(e)}function f_(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 L7(t)}function JCe(e){return e.innerRadius}function ZCe(e){return e.outerRadius}function $Ce(e){return e.startAngle}function eSe(e){return e.endAngle}function tSe(e){return e&&e.padAngle}function nSe(e,t,n,r,i,a,o,s){var u=n-e,c=r-t,A=o-i,f=s-a,h=f*u-A*c;if(!(h*h<Va))return h=(A*(t-a)-f*(e-i))/h,[e+h*u,t+h*c]}function h_(e,t,n,r,i,a,o){var s=e-n,u=t-r,c=(o?a:-a)/zr(s*s+u*u),A=c*u,f=-c*s,h=e+A,d=t+f,m=n+A,p=r+f,g=(h+m)/2,v=(d+p)/2,y=m-h,_=p-d,b=y*y+_*_,w=i-a,C=h*p-m*d,B=(_<0?-1:1)*zr(WCe(0,w*w*b-C*C)),E=(C*_-y*B)/b,N=(-C*y-_*B)/b,P=(C*_+y*B)/b,k=(-C*y+_*B)/b,F=E-g,D=N-v,L=P-g,H=k-v;return F*F+D*D>L*L+H*H&&(E=P,N=k),{cx:E,cy:N,x01:-A,y01:-f,x11:E*(i/w-1),y11:N*(i/w-1)}}function iC(){var e=JCe,t=ZCe,n=Rn(0),r=null,i=$Ce,a=eSe,o=tSe,s=null,u=f_(c);function c(){var A,f,h=+e.apply(this,arguments),d=+t.apply(this,arguments),m=i.apply(this,arguments)-d_,p=a.apply(this,arguments)-d_,g=NU(p-m),v=p>m;if(s||(s=A=u()),d<h&&(f=d,d=h,h=f),!(d>Va))s.moveTo(0,0);else if(g>EA-Va)s.moveTo(d*bc(m),d*To(m)),s.arc(0,0,d,m,p,!v),h>Va&&(s.moveTo(h*bc(p),h*To(p)),s.arc(0,0,h,p,m,v));else{var y=m,_=p,b=m,w=p,C=g,B=g,E=o.apply(this,arguments)/2,N=E>Va&&(r?+r.apply(this,arguments):zr(h*h+d*d)),P=tp(NU(d-h)/2,+n.apply(this,arguments)),k=P,F=P,D,L;if(N>Va){var H=FU(N/h*To(E)),K=FU(N/d*To(E));(C-=H*2)>Va?(H*=v?1:-1,b+=H,w-=H):(C=0,b=w=(m+p)/2),(B-=K*2)>Va?(K*=v?1:-1,y+=K,_-=K):(B=0,y=_=(m+p)/2)}var q=d*bc(y),z=d*To(y),J=h*bc(w),ie=h*To(w);if(P>Va){var X=d*bc(_),I=d*To(_),W=h*bc(b),ee=h*To(b),ne;if(g<MA)if(ne=nSe(q,z,W,ee,X,I,J,ie)){var pe=q-ne[0],he=z-ne[1],ve=X-ne[0],ue=I-ne[1],_e=1/To(XCe((pe*ve+he*ue)/(zr(pe*pe+he*he)*zr(ve*ve+ue*ue)))/2),Le=zr(ne[0]*ne[0]+ne[1]*ne[1]);k=tp(P,(h-Le)/(_e-1)),F=tp(P,(d-Le)/(_e+1))}else k=F=0}B>Va?F>Va?(D=h_(W,ee,q,z,d,F,v),L=h_(X,I,J,ie,d,F,v),s.moveTo(D.cx+D.x01,D.cy+D.y01),F<P?s.arc(D.cx,D.cy,F,ja(D.y01,D.x01),ja(L.y01,L.x01),!v):(s.arc(D.cx,D.cy,F,ja(D.y01,D.x01),ja(D.y11,D.x11),!v),s.arc(0,0,d,ja(D.cy+D.y11,D.cx+D.x11),ja(L.cy+L.y11,L.cx+L.x11),!v),s.arc(L.cx,L.cy,F,ja(L.y11,L.x11),ja(L.y01,L.x01),!v))):(s.moveTo(q,z),s.arc(0,0,d,y,_,!v)):s.moveTo(q,z),!(h>Va)||!(C>Va)?s.lineTo(J,ie):k>Va?(D=h_(J,ie,X,I,h,-k,v),L=h_(q,z,W,ee,h,-k,v),s.lineTo(D.cx+D.x01,D.cy+D.y01),k<P?s.arc(D.cx,D.cy,k,ja(D.y01,D.x01),ja(L.y01,L.x01),!v):(s.arc(D.cx,D.cy,k,ja(D.y01,D.x01),ja(D.y11,D.x11),!v),s.arc(0,0,h,ja(D.cy+D.y11,D.cx+D.x11),ja(L.cy+L.y11,L.cx+L.x11),v),s.arc(L.cx,L.cy,k,ja(L.y11,L.x11),ja(L.y01,L.x01),!v))):s.arc(0,0,h,w,b,v)}if(s.closePath(),A)return s=null,A+""||null}return c.centroid=function(){var A=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,f=(+i.apply(this,arguments)+ +a.apply(this,arguments))/2-MA/2;return[bc(f)*A,To(f)*A]},c.innerRadius=function(A){return arguments.length?(e=typeof A=="function"?A:Rn(+A),c):e},c.outerRadius=function(A){return arguments.length?(t=typeof A=="function"?A:Rn(+A),c):t},c.cornerRadius=function(A){return arguments.length?(n=typeof A=="function"?A:Rn(+A),c):n},c.padRadius=function(A){return arguments.length?(r=A==null?null:typeof A=="function"?A:Rn(+A),c):r},c.startAngle=function(A){return arguments.length?(i=typeof A=="function"?A:Rn(+A),c):i},c.endAngle=function(A){return arguments.length?(a=typeof A=="function"?A:Rn(+A),c):a},c.padAngle=function(A){return arguments.length?(o=typeof A=="function"?A:Rn(+A),c):o},c.context=function(A){return arguments.length?(s=A??null,c):s},c}var rSe=Array.prototype.slice;function p_(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function OU(e){this._context=e}OU.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 qg(e){return new OU(e)}function aC(e){return e[0]}function oC(e){return e[1]}function Kg(e,t){var n=Rn(!0),r=null,i=qg,a=null,o=f_(s);e=typeof e=="function"?e:e===void 0?aC:Rn(e),t=typeof t=="function"?t:t===void 0?oC:Rn(t);function s(u){var c,A=(u=p_(u)).length,f,h=!1,d;for(r==null&&(a=i(d=o())),c=0;c<=A;++c)!(c<A&&n(f=u[c],c,u))===h&&((h=!h)?a.lineStart():a.lineEnd()),h&&a.point(+e(f,c,u),+t(f,c,u));if(d)return a=null,d+""||null}return s.x=function(u){return arguments.length?(e=typeof u=="function"?u:Rn(+u),s):e},s.y=function(u){return arguments.length?(t=typeof u=="function"?u:Rn(+u),s):t},s.defined=function(u){return arguments.length?(n=typeof u=="function"?u:Rn(!!u),s):n},s.curve=function(u){return arguments.length?(i=u,r!=null&&(a=i(r)),s):i},s.context=function(u){return arguments.length?(u==null?r=a=null:a=i(r=u),s):r},s}function iSe(e,t,n){var r=null,i=Rn(!0),a=null,o=qg,s=null,u=f_(c);e=typeof e=="function"?e:e===void 0?aC:Rn(+e),t=typeof t=="function"?t:Rn(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?oC:Rn(+n);function c(f){var h,d,m,p=(f=p_(f)).length,g,v=!1,y,_=new Array(p),b=new Array(p);for(a==null&&(s=o(y=u())),h=0;h<=p;++h){if(!(h<p&&i(g=f[h],h,f))===v)if(v=!v)d=h,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),m=h-1;m>=d;--m)s.point(_[m],b[m]);s.lineEnd(),s.areaEnd()}v&&(_[h]=+e(g,h,f),b[h]=+t(g,h,f),s.point(r?+r(g,h,f):_[h],n?+n(g,h,f):b[h]))}if(y)return s=null,y+""||null}function A(){return Kg().defined(i).curve(o).context(a)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:Rn(+f),r=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Rn(+f),c):e},c.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Rn(+f),c):r},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:Rn(+f),n=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Rn(+f),c):t},c.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Rn(+f),c):n},c.lineX0=c.lineY0=function(){return A().x(e).y(t)},c.lineY1=function(){return A().x(e).y(n)},c.lineX1=function(){return A().x(r).y(t)},c.defined=function(f){return arguments.length?(i=typeof f=="function"?f:Rn(!!f),c):i},c.curve=function(f){return arguments.length?(o=f,a!=null&&(s=o(a)),c):o},c.context=function(f){return arguments.length?(f==null?a=s=null:s=o(a=f),c):a},c}function aSe(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function oSe(e){return e}function sSe(){var e=oSe,t=aSe,n=null,r=Rn(0),i=Rn(EA),a=Rn(0);function o(s){var u,c=(s=p_(s)).length,A,f,h=0,d=new Array(c),m=new Array(c),p=+r.apply(this,arguments),g=Math.min(EA,Math.max(-EA,i.apply(this,arguments)-p)),v,y=Math.min(Math.abs(g)/c,a.apply(this,arguments)),_=y*(g<0?-1:1),b;for(u=0;u<c;++u)(b=m[d[u]=u]=+e(s[u],u,s))>0&&(h+=b);for(t!=null?d.sort(function(w,C){return t(m[w],m[C])}):n!=null&&d.sort(function(w,C){return n(s[w],s[C])}),u=0,f=h?(g-c*_)/h:0;u<c;++u,p=v)A=d[u],b=m[A],v=p+(b>0?b*f:0)+_,m[A]={data:s[A],index:u,value:b,startAngle:p,endAngle:v,padAngle:y};return m}return o.value=function(s){return arguments.length?(e=typeof s=="function"?s:Rn(+s),o):e},o.sortValues=function(s){return arguments.length?(t=s,n=null,o):t},o.sort=function(s){return arguments.length?(n=s,t=null,o):n},o.startAngle=function(s){return arguments.length?(r=typeof s=="function"?s:Rn(+s),o):r},o.endAngle=function(s){return arguments.length?(i=typeof s=="function"?s:Rn(+s),o):i},o.padAngle=function(s){return arguments.length?(a=typeof s=="function"?s:Rn(+s),o):a},o}class DU{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 IU(e){return new DU(e,!0)}function lSe(e){return new DU(e,!1)}function uSe(e){return e.source}function cSe(e){return e.target}function ASe(e){let t=uSe,n=cSe,r=aC,i=oC,a=null,o=null,s=f_(u);function u(){let c;const A=rSe.call(arguments),f=t.apply(this,A),h=n.apply(this,A);if(a==null&&(o=e(c=s())),o.lineStart(),A[0]=f,o.point(+r.apply(this,A),+i.apply(this,A)),A[0]=h,o.point(+r.apply(this,A),+i.apply(this,A)),o.lineEnd(),c)return o=null,c+""||null}return u.source=function(c){return arguments.length?(t=c,u):t},u.target=function(c){return arguments.length?(n=c,u):n},u.x=function(c){return arguments.length?(r=typeof c=="function"?c:Rn(+c),u):r},u.y=function(c){return arguments.length?(i=typeof c=="function"?c:Rn(+c),u):i},u.context=function(c){return arguments.length?(c==null?a=o=null:o=e(a=c),u):a},u}function dSe(){return ASe(IU)}const fSe=zr(3),UU={draw(e,t){const n=zr(t+tp(t/28,.75))*.59436,r=n/2,i=r*fSe;e.moveTo(0,n),e.lineTo(0,-n),e.moveTo(-i,-r),e.lineTo(i,r),e.moveTo(-i,r),e.lineTo(i,-r)}},Gg={draw(e,t){const n=zr(t/MA);e.moveTo(n,0),e.arc(0,0,n,0,EA)}},PU={draw(e,t){const n=zr(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},HU=zr(1/3),hSe=HU*2,YU={draw(e,t){const n=zr(t/hSe),r=n*HU;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},RU={draw(e,t){const n=zr(t)*.62625;e.moveTo(0,-n),e.lineTo(n,0),e.lineTo(0,n),e.lineTo(-n,0),e.closePath()}},QU={draw(e,t){const n=zr(t-tp(t/7,2))*.87559;e.moveTo(-n,0),e.lineTo(n,0),e.moveTo(0,n),e.lineTo(0,-n)}},jU={draw(e,t){const n=zr(t),r=-n/2;e.rect(r,r,n,n)}},VU={draw(e,t){const n=zr(t)*.4431;e.moveTo(n,n),e.lineTo(n,-n),e.lineTo(-n,-n),e.lineTo(-n,n),e.closePath()}},pSe=.8908130915292852,zU=To(MA/10)/To(7*MA/10),mSe=To(EA/10)*zU,gSe=-bc(EA/10)*zU,qU={draw(e,t){const n=zr(t*pSe),r=mSe*n,i=gSe*n;e.moveTo(0,-n),e.lineTo(r,i);for(let a=1;a<5;++a){const o=EA*a/5,s=bc(o),u=To(o);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*i,u*r+s*i)}e.closePath()}},sC=zr(3),KU={draw(e,t){const n=-zr(t/(sC*3));e.moveTo(0,n*2),e.lineTo(-sC*n,-n),e.lineTo(sC*n,-n),e.closePath()}},vSe=zr(3),GU={draw(e,t){const n=zr(t)*.6824,r=n/2,i=n*vSe/2;e.moveTo(0,-n),e.lineTo(i,r),e.lineTo(-i,r),e.closePath()}},Ns=-.5,Fs=zr(3)/2,lC=1/zr(12),ySe=(lC/2+1)*3,WU={draw(e,t){const n=zr(t/ySe),r=n/2,i=n*lC,a=r,o=n*lC+n,s=-a,u=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(s,u),e.lineTo(Ns*r-Fs*i,Fs*r+Ns*i),e.lineTo(Ns*a-Fs*o,Fs*a+Ns*o),e.lineTo(Ns*s-Fs*u,Fs*s+Ns*u),e.lineTo(Ns*r+Fs*i,Ns*i-Fs*r),e.lineTo(Ns*a+Fs*o,Ns*o-Fs*a),e.lineTo(Ns*s+Fs*u,Ns*u-Fs*s),e.closePath()}},XU={draw(e,t){const n=zr(t-tp(t/6,1.7))*.6189;e.moveTo(-n,-n),e.lineTo(n,n),e.moveTo(-n,n),e.lineTo(n,-n)}},_Se=[Gg,PU,YU,jU,qU,KU,WU],bSe=[Gg,QU,XU,GU,UU,VU,RU];function LA(){}function m_(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 g_(e){this._context=e}g_.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:m_(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:m_(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function wSe(e){return new g_(e)}function JU(e){this._context=e}JU.prototype={areaStart:LA,areaEnd:LA,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:m_(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function BSe(e){return new JU(e)}function ZU(e){this._context=e}ZU.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:m_(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function xSe(e){return new ZU(e)}function $U(e,t){this._basis=new g_(e),this._beta=t}$U.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,u;++s<=n;)u=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+u*a),this._beta*t[s]+(1-this._beta)*(i+u*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};const CSe=function e(t){function n(r){return t===1?new g_(r):new $U(r,t)}return n.beta=function(r){return e(+r)},n}(.85);function v_(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 uC(e,t){this._context=e,this._k=(1-t)/6}uC.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:v_(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:v_(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 SSe=function e(t){function n(r){return new uC(r,t)}return n.tension=function(r){return e(+r)},n}(0);function cC(e,t){this._context=e,this._k=(1-t)/6}cC.prototype={areaStart:LA,areaEnd:LA,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:v_(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 kSe=function e(t){function n(r){return new cC(r,t)}return n.tension=function(r){return e(+r)},n}(0);function AC(e,t){this._context=e,this._k=(1-t)/6}AC.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:v_(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 MSe=function e(t){function n(r){return new AC(r,t)}return n.tension=function(r){return e(+r)},n}(0);function dC(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>Va){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>Va){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,A=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*c+e._x1*e._l23_2a-t*e._l12_2a)/A,o=(o*c+e._y1*e._l23_2a-n*e._l12_2a)/A}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function eP(e,t){this._context=e,this._alpha=t}eP.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:dC(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 ESe=function e(t){function n(r){return t?new eP(r,t):new uC(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function tP(e,t){this._context=e,this._alpha=t}tP.prototype={areaStart:LA,areaEnd:LA,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:dC(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 LSe=function e(t){function n(r){return t?new tP(r,t):new cC(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function nP(e,t){this._context=e,this._alpha=t}nP.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:dC(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 TSe=function e(t){function n(r){return t?new nP(r,t):new AC(r,0)}return n.alpha=function(r){return e(+r)},n}(.5);function rP(e){this._context=e}rP.prototype={areaStart:LA,areaEnd:LA,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 NSe(e){return new rP(e)}function iP(e){return e<0?-1:1}function aP(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(iP(a)+iP(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function oP(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function fC(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function y_(e){this._context=e}y_.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:fC(this,this._t0,oP(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,fC(this,oP(this,n=aP(this,e,t)),n);break;default:fC(this,this._t0,n=aP(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function sP(e){this._context=new lP(e)}(sP.prototype=Object.create(y_.prototype)).point=function(e,t){y_.prototype.point.call(this,t,e)};function lP(e){this._context=e}lP.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function FSe(e){return new y_(e)}function OSe(e){return new sP(e)}function uP(e){this._context=e}uP.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=cP(e),i=cP(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function cP(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function DSe(e){return new uP(e)}function __(e,t){this._context=e,this._t=t}__.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 ISe(e){return new __(e,.5)}function USe(e){return new __(e,0)}function PSe(e){return new __(e,1)}function AP(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,s=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function dP(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function HSe(e,t){return e[t]}function YSe(e){const t=[];return t.key=e,t}function fP(){var e=Rn([]),t=dP,n=AP,r=HSe;function i(a){var o=Array.from(e.apply(this,arguments),YSe),s,u=o.length,c=-1,A;for(const f of a)for(s=0,++c;s<u;++s)(o[s][c]=[0,+r(f,o[s].key,c,a)]).data=f;for(s=0,A=p_(t(o));s<u;++s)o[A[s]].index=s;return n(o,A),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:Rn(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:Rn(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?dP:typeof a=="function"?a:Rn(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??AP,i):n},i}function Wg(e,t,n){this.k=e,this.x=t,this.y=n}Wg.prototype={constructor:Wg,scale:function(e){return e===1?this:new Wg(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Wg(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+")"}},Wg.prototype;const Ai={light:{canvas:"#ececee",primary:"#003153",secondary:"#2d6f9d",accent:"#9C27B0",positive:"#259940",neutral:"#777777",negative:"#C10015",info:"#007bf5",warning:"#C71E23",active:"#007D11",active2:"#BE8700",inactive:"#5C5C5C",error:"#B44936",text:"#000000",main:"#FFFFFF"},dark:{canvas:"#121212",primary:"#003153",secondary:"#2d6f9d",accent:"#9C27B0",positive:"#259940",neutral:"#777777",negative:"#C10015",info:"#007bf5",warning:"#C71E23",active:"#03FC1C",active2:"goldenrod",inactive:"#BDBDBD",error:"#FD1C03",text:"#cbd5e1",main:"#1f2937"}},TA={light:{pass:"#27aeef",input:"#007D11",output:"#007D11",drop:"#ef9b20",abort:"#7f7f7f",compressed:"#5C5C5C",error:"#ea5545",ignored:"#7f7f7f",buffer:"#27aeef"},dark:{pass:"#27aeef",input:"#03FC1C",output:"#03FC1C",drop:"#ef9b20",abort:"#7f7f7f",compressed:"#BDBDBD",error:"#ea5545",ignored:"#7f7f7f",buffer:"#27aeef"},scale:{pass:_u(s_),input:_u(l_),output:_u(l_),drop:_u(rC),abort:_u(zg),compressed:_u(zg),error:_u(nC),ignored:_u(zg),buffer:_u(s_)}},hC={light:{ingressdata:"#007D11",egresstootherregion:"#ef9b20",egresstointernet:"#27aeef"},dark:{ingressdata:"#03FC1C",egresstootherregion:"#ef9b20",egresstointernet:"#27aeef"}},jn=["#1f77b4","#ff7f0e","#2ca02c","#d62728","#9467bd","#8c564b","#e377c2","#7f7f7f","#bcbd22","#17becf","#1c9099","#d95f02","#7570b3","#e7298a","#66a61e","#e6ab02","#a6761d","#666666"],b_={light:{Average:"#ff7f0e",Upper_Bound:"#2ca02c",Lower_Bound:"#e377c2",Alert:"#27aeef"},dark:{Average:"#ff7f0e",Upper_Bound:"#2ca02c",Lower_Bound:"#e377c2",Alert:"#27aeef"}},RSe={green:["#3FA83F","#93CE07","#43B446","#73B142","#259940","#00695C","#3ec995"],compute15:QSe("#b50101","#7f7f7f",15)};function hP(e){return e<0?"00":e<16?"0"+e.toString(16):e.toString(16)}function pC(e,t,n,r){return e>t?hP(Math.floor((t-e)*(n/r))+e):hP(Math.floor((e-t)*(1-n/r))+t)}function QSe(e,t,n){e=e.replace("#",""),t=t.replace("#","");const r=parseInt(e.substring(0,2),16),i=parseInt(e.substring(2,4),16),a=parseInt(e.substring(4,6),16),o=parseInt(t.substring(0,2),16),s=parseInt(t.substring(2,4),16),u=parseInt(t.substring(4,6),16),c=[];for(let A=0;A<=n;A++){let f="#";const h=pC(r,o,A,n),d=pC(i,s,A,n),m=pC(a,u,A,n);f=f+h+d+m,c.push(f)}return c}function jSe(e,t){const n=RSe[e];return n[t%n.length]}function VSe(e,t){let n=0;for(let r=0;r<t.length;r++)n+=t.charCodeAt(r);return jSe(e,n)}const NA=e=>`$${e.toFixed(2)}`,Xr=e=>{const t=["","K","M","G","T","P"];let n=0;const r=e>=0;let i=Math.abs(e);if(i<1e3)return i;for(;i>=1e3&&n<t.length-1;)i/=1e3,++n;return r?`${i.toFixed(1)} ${t[n]}`:`-${i.toFixed(1)} ${t[n]}`},Jr=e=>{const t=["","Ki","Mi","Gi","Ti","Pi"];let n=0;const r=e>=0;let i=Math.abs(e);if(i<1024)return i===1e3?1e3:i.toPrecision(3);for(;i>=1024&&n<t.length-1;)i/=1024,++n;return r?`${i.toFixed(1)} ${t[n]}`:`-${i.toFixed(1)} ${t[n]}`},pP=e=>e>6e4?e>36e5?e>864e5?Math.floor(e/864e5)+" days":Math.floor(e/36e5)+" hrs":Math.floor(e/6e4)+" mins":e+" ms",mP=e=>{const t=["s","mins","hrs","days"];let n=e,r="";if(n>=86400){const i=Math.floor(n/86400);n%=86400,r+=`${i} ${t[3]} `}if(n>=3600){const i=Math.floor(n/3600);n%=3600,r+=`${i} ${t[2]} `}if(n>=60){const i=Math.floor(n/60);n%=60,r+=`${i} ${t[1]} `}return`${r}${n} ${t[0]}`},zSe={props:{id:{type:String,required:!0},data:{type:Object,required:!0},unit:{type:String,default:"Count"},width:{type:Number,default:350},height:{type:Number,default:200},pannable:{type:Boolean,default:!0},theme:{type:String,default:"light"}},data(){return{svg:null}},mounted(){this.initializeChart(),this.createChart(this.data)},methods:{initializeChart(){this.svg=Ot("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height)},createChart(e){let t=[];e.series.forEach((h,d)=>{t.push({...h,index:d})});const n=this.width,r=this.height,i=20,a=15,o=30,s=50,u=[],c=(h,d)=>{const m=new Date(d.slots).toUTCString(),p=this.unit==="Bytes (B)"?Jr(d.values)+"B":this.unit==="Percent (%)"?d.values.toFixed(2)+"%":Xr(d.values),g=d.action?`${d.action}<br>Time: ${m}<br>Value: ${p}`:`Alert<br>Time: ${m}<br>Value: ${p}`;h.target.r.baseVal.value=5,Ot("#"+this.id+"tooltip").html(g).style("opacity",1).style("left",h.layerX+"px").style("top",h.layerY+"px")},A=(h,d)=>{h.target.r.baseVal.value=3,Ot("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")};(()=>{const h=t.filter(_=>!u.includes(_.index)),d=this.getAxisLargest(h),m=kA(ii(d[0]),[s,n-a]),p=Jo([0,d[1]],[r-o,i]),g=this.svg.append("g").attr("class",this.id+"xaxis").attr("transform",`translate(0,${r-o})`).call(uo(m).ticks(n/80).tickSizeOuter(0));if(this.svg.append("g").attr("class",this.id+"yaxis").attr("transform",`translate(${s},0)`).call($d(p).ticks(r/40).tickFormat(_=>this.unit==="Bytes (B)"?Jr(_):Xr(_))).call(_=>_.select(".domain").remove()).call(_=>_.selectAll(".tick line").clone().attr("x2",n-s-a).attr("stroke-opacity",.1)).call(_=>_.append("text").attr("x",-s).attr("y",10).attr("fill","currentColor").attr("text-anchor","start").text(this.unit)),this.pannable){let b=function(){_=null},_;const w=(B,E)=>{const N=B.selection;if(N)m.domain([m.invert(N[0]),m.invert(N[1])]),this.svg.select("."+this.id+"brush").call(C.move,null);else{if(!_)return _=setTimeout(b,500);m.domain(ii(e.slots))}g.transition().duration(1e3).call(uo(m)),this.svg.selectAll("."+this.id+"line").attr("d",function(P){return v(P.values.map((k,F)=>({slots:e.slots[F],values:k})))}),this.svg.selectAll("."+this.id+"points").attr("cx",P=>m(P.slots))},C=M7().extent([[0,0],[n,r]]).on("end",w);this.svg.append("g").attr("class",B=>this.id+"brush").call(C),this.svg.on("dblclick",function(){m.domain(ii(d[0],function(B){return B})),g.transition().call(uo(m)),this.svg.selectAll("."+this.id+"line").attr("d",function(B){return v(B.values.map((E,N)=>({slots:e.slots[N],values:E})))}),this.svg.selectAll("."+this.id+"points").attr("cx",B=>m(B.slots))})}const v=Kg().x((_,b)=>m(_.slots)).y((_,b)=>p(_.values));this.svg.selectAll(".line").data(h).enter().append("path").attr("class",_=>this.id+_.index+"line "+this.id+"line").attr("fill","none").attr("z-index",1).style("stroke",_=>b_[this.theme][_.action]||`${jn[_.index%jn.length]}${this.theme==="dark"?"CC":"99"}`).style("stroke-dasharray","3, 3").attr("stroke-width",1).attr("d",function(_){return v(_.values.map((b,w)=>({slots:e.slots[w],values:b})))}),this.svg.selectAll(".line").data([e]).enter().append("path").attr("class",this.id+"line").attr("fill","none").attr("z-index",1).style("stroke",b_[this.theme].Alert).attr("stroke-width",1.5).attr("d",function(_){return v(_.slots.map((b,w)=>({slots:b,values:_.values[w]})))});const y=e.slots.map((_,b)=>({slots:_,values:e.values[b],isAlert:e.metric.bools[b]}));this.svg.selectAll(".point").data(y).enter().append("circle").attr("class",(_,b)=>this.id+b+"points "+this.id+"points").attr("fill",jn[3]).attr("display",_=>_.isAlert?"":"none").attr("r",3).attr("cx",_=>m(_.slots)).attr("cy",_=>p(_.values)).on("mouseover",c).on("mouseout",A)})(),e.series||this.svg.append("text").attr("x",n/2).attr("y",r/2).attr("text-anchor","middle").attr("fill","currentColor").text("No data available"),e.series.length>0&&(this.legend=Ot("#"+this.id+"legend").append("svg").attr("width",this.width>600?200:75).attr("height",Math.max(25*e.series.length,r-20)),this.legend.selectAll("legendDots").data([...t,{action:"Alert",index:t.length}]).enter().append("circle").attr("id",h=>this.id+h.index+"dots").attr("class","show").attr("cx",10).attr("cy",(h,d)=>r/(t.length+2)+d*25).attr("r",5).style("fill",h=>b_[this.theme][h.action]||`${jn[h.index%jn.length]}${this.theme==="dark"?"CC":"99"}`),this.legend.selectAll("legendLabels").data([...t,{action:"Alert",index:t.length}]).enter().append("text").attr("class",h=>this.id+h.index+"labels").attr("x",20).attr("y",(h,d)=>r/(t.length+2)+d*25).style("fill",h=>b_[this.theme][h.action]||`${jn[h.index%jn.length]}${this.theme==="dark"?"CC":"99"}`).text(h=>h.action==="Alert"?e.action:h.action||"(no name)").attr("font-weight",500).attr("text-anchor","left").attr("font-size","11px").style("alignment-baseline","middle"))},getAxisLargest(e){let t=this.data.slots,n=Math.max(...this.data.values);return e.forEach((r,i)=>{const a=Math.max(...r.values);a>n&&(n=a)}),[t,n]}}},qSe=["id"],KSe=["id"],GSe=["id"];function WSe(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{id:n.id,class:"float-left"},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,KSe)],8,qSe),l.createElementVNode("div",{class:"overflow-auto",style:l.normalizeStyle(`height: ${n.height}px; overflow: auto`)},[l.createElementVNode("div",{id:n.id+"legend"},null,8,GSe)],4)],64)}const mC=ar(zSe,[["render",WSe]]),XSe={props:{id:String,tooltip:String,runs:Array,tooltipOffset:{type:String,default:"client"},theme:{type:String,default:"light"}},data(){return{svg:null,width:250,height:60}},mounted(){this.initializeChart(),this.createChart()},methods:{initializeChart(){this.svg=Ot("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height).attr("style","outline: thin solid;")},createChart(){const e=this.width,t=this.height,n=3,r=18,i=17,a=18,o=(A,f)=>{Pn("."+this.id+"run").attr("opacity","0.5"),Ot("."+this.id+f.taskID).attr("opacity","1");const h=ft(f.launchTime).format("YYYY-MM-DD HH:mm:ss"),d=ft(f.completeTime).format("YYYY-MM-DD HH:mm:ss"),m=ft(f.completeTime).diff(ft(f.launchTime)),p=`Task: ${f.taskID}<br>Status: ${f.status}<br>Launch Time: ${h}<br>Complete Time: ${d}<br>Duration: ${pP(m)}`;Ot("#"+this.id+"tooltip").html(p).style("opacity",1).style("left",A[this.tooltipOffset+"X"]+10+"px").style("top",A[this.tooltipOffset+"Y"]+"px")},s=(A,f)=>{Pn("."+this.id+"run").attr("opacity","1"),Ot("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},u=this.runs.map(A=>ft(A.launchTime).valueOf());u.length===1&&(u.push(ft(u[0]).add(2,"minute").valueOf()),u.push(ft(u[0]).subtract(2,"minute").valueOf()));const c=$x(ii(u),[a,e-r]);this.svg.append("g").attr("class",this.id+"xaxis").attr("transform",`translate(0,${t-i})`).call(uo(c).ticks(e/80).tickSize(3).tickSizeOuter(0)),this.svg.selectAll(".rect").data(this.runs).enter().append("rect").attr("class",A=>this.id+`run ${this.id}${A.taskID}`).attr("style","cursor: pointer;").attr("z-index",1).attr("x",A=>c(ft(A.launchTime).valueOf())).attr("y",n).attr("width",A=>{const f=c(ft(A.completeTime).valueOf())-c(ft(A.launchTime).valueOf());return f>3.5?f:3.5}).attr("height",A=>t-i-n).attr("fill",A=>{const f=A.status==="completed"?"input":A.status==="aborted"?"error":"ignored";return TA[this.theme][f]}).attr("opacity",0).on("click",(A,f)=>{this.$emit("viewRun",f)}).on("mouseover",o).on("mouseout",s).transition().delay((A,f)=>1e3-f/this.runs.length*1200).duration(200).attr("opacity",1)}}},JSe=["id"],ZSe=["id"];function $Se(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock("div",{id:n.id},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,ZSe)],8,JSe)}const e4e=ar(XSe,[["render",$Se]]),t4e={props:{id:{type:String,required:!0},data:{type:Array,required:!0},unit:{type:String,default:"Count"},width:{type:Number,default:350},height:{type:Number,default:200},hideZeros:{type:Boolean,default:!0},isTime:{type:Boolean,default:!0},tooltipOffset:{type:String,default:"layer"},slotName:{type:String,default:"Field"},valueName:{type:String,default:"Value"},useLegend:{type:Boolean,default:!0},theme:{type:String,default:"light"}},data(){return{svg:null,legend:null}},mounted(){this.initializeChart(),this.createChart(this.data)},methods:{initializeChart(){this.svg=Ot("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height)},createChart(e){let t=[];e.forEach((g,v)=>{g.index=v,g.values=g.values.map(_=>isNaN(_)?0:_);const y=g.values.reduce((_,b)=>_+b,0);g.total=isNaN(y)?0:y,this.hideZeros?y>0&&t.push(g):t.push(g)}),t=t.sort((g,v)=>v.total-g.total),e=e.sort((g,v)=>v.total-g.total);const n=this.width,r=this.height,i=20,a=15,o=30,s=50,u=[],c=(g,v)=>{const y=this.isTime?new Date(v.slots).toUTCString():v.slots,_=this.unit==="Bytes (B)"||this.unit==="B"?Jr(v.values)+"B":this.unit==="Percent (%)"?v.values.toFixed(2)+"%":this.unit==="$"?"$"+v.values.toFixed(2):Xr(v.values),b=v.action?`${v.action}<br>${this.isTime?"Time":this.slotName}: ${y}<br>${this.valueName}: ${_}`:`${this.isTime?"Time":this.slotName}: ${y}<br>${this.valueName}: ${_}`;g.target.r.baseVal.value=5,Ot("#"+this.id+"tooltip").html(b).style("opacity",1).style("left",g[this.tooltipOffset+"X"]+10+"px").style("top",g[this.tooltipOffset+"Y"]+"px")},A=(g,v)=>{g.target.r.baseVal.value=3,Ot("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},f=(g,v)=>{const y=v.index;g.target.classList.contains("show")&&(Pn("."+this.id+"line").attr("stroke-width",1),Pn("."+this.id+y+"line").attr("stroke-width",2.5),Pn("."+this.id+"points").attr("r",1),Pn("."+this.id+y+"points").attr("r",3),Pn("#"+this.id+y+"dots").attr("r",6),Pn("."+this.id+y+"labels").attr("font-weight",1e3))},h=(g,v)=>{const y=v.index;Pn("."+this.id+"line").attr("stroke-width",1.5),Pn("."+this.id+"points").attr("r",2.5),Pn("#"+this.id+y+"dots").attr("r",5),Pn("."+this.id+y+"labels").attr("font-weight",500)},d=(g,v)=>{const y=v.index;g.target.classList.contains("show")?(u.push(y),g.target.classList.remove("show"),g.target.classList.add("hide"),Pn("#"+this.id+y+"dots").attr("opacity","0.5")):(u.splice(u.indexOf(y),1),g.target.classList.remove("hide"),g.target.classList.add("show"),Pn("#"+this.id+y+"dots").attr("opacity","1")),Pn("."+this.id+"line").remove(),Pn("."+this.id+"points").remove(),Ot("."+this.id+"xaxis").remove(),Ot("."+this.id+"yaxis").remove(),m()},m=()=>{const g=t.filter(B=>!u.includes(B.index)),v=this.getAxisLargest(g),y=this.isTime?kA(ii(v[0]),[s,n-a]):SA(v[0],[s,n-a]),_=Jo([0,v[1]],[r-o,i]);this.svg.append("g").attr("class",this.id+"xaxis").attr("transform",`translate(0,${r-o})`).call(this.isTime?uo(y).ticks(n/80).tickSizeOuter(0):uo(y).ticks(n/20).tickSizeOuter(0).tickFormat(B=>{if(!this.isTime)return hA(B,(n-a)/v[0].length*8)})),this.svg.append("g").attr("class",this.id+"yaxis").attr("transform",`translate(${s},0)`).call($d(_).ticks(r/40).tickFormat(B=>this.unit==="Bytes (B)"||this.unit==="B"?Jr(B):Xr(B))).call(B=>B.select(".domain").remove()).call(B=>B.selectAll(".tick line").clone().attr("x2",n-s-a).attr("stroke-opacity",.1)).call(B=>B.append("text").attr("x",-s).attr("y",10).attr("fill","currentColor").attr("text-anchor","start").text(this.unit));const b=Kg().x((B,E)=>y(B.slots)).y((B,E)=>_(B.values)),w=this.svg.selectAll(".line").data(g).enter().append("path").attr("class",B=>this.id+B.index+"line "+this.id+"line").attr("fill","none").attr("z-index",1).attr("stroke",B=>TA[this.theme][B.action]||`${jn[B.index%jn.length]}${this.theme==="dark"?"CC":"99"}`).attr("stroke-width",1.5).attr("d",function(B){return b(B.slots.map((E,N)=>({slots:E,values:B.values[N]})))}),C=1200;w.attr("stroke-dasharray",function(){const B=this.getTotalLength();return B+" "+B}).attr("stroke-dashoffset",function(){return this.getTotalLength()}).transition().duration(C).ease(Z5e).attr("stroke-dashoffset",0);for(const B of g){const E=B.slots.map((N,P)=>({index:B.index,action:B.action,slots:N,values:B.values[P]}));this.svg.selectAll(".point").data(E).enter().append("circle").attr("class",N=>this.id+N.index+"points "+this.id+"points").attr("fill",N=>TA[this.theme][B.action]||`${jn[N.index%jn.length]}${this.theme==="dark"?"CC":"99"}`).attr("r",2.5).attr("cx",N=>y(N.slots)).attr("cy",N=>_(N.values)).attr("opacity",0).on("mouseover",c).on("mouseout",A).transition().delay((N,P)=>P/E.length*C).duration(250).attr("opacity",1)}};m(),t.length===0&&this.svg.append("text").attr("x",n/2).attr("y",r/2).attr("text-anchor","middle").attr("fill","currentColor").text("No data available");const p=Math.max(...e.map(g=>Khe(g.action||"(no name)")),0);this.legend=Ot("#"+this.id+"legend").append("svg").attr("width",p/7+30).attr("height",Math.max(25*e.length,this.height)),this.legend.selectAll("legendDots").data(e).enter().append("circle").attr("id",g=>this.id+g.index+"dots").attr("class","show").attr("cx",10).attr("cy",(g,v)=>r/(e.length+1)+v*25+4).attr("r",5).style("fill",g=>TA[this.theme][g.action]||`${jn[g.index%jn.length]}${this.theme==="dark"?"CC":"99"}`).on("mouseover",f).on("mouseout",h).on("click",d),this.legend.selectAll("legendLabels").data(e).enter().append("text").attr("class",g=>this.id+g.index+"labels").attr("x",20).attr("y",(g,v)=>r/(e.length+1)+v*25+5).style("fill",g=>TA[this.theme][g.action]||`${jn[g.index%jn.length]}${this.theme==="dark"?"CC":"99"}`).text(g=>g.action||"(no name)").attr("font-weight",500).attr("text-anchor","left").attr("font-size","13px").style("alignment-baseline","middle")},getAxisLargest(e){let t=[],n=this.unit==="Percent (%)"?100:0;return e.forEach((r,i)=>{r.slots.forEach(o=>{t.includes(o)||t.push(o)});const a=Math.max(...r.values);a>n&&(n=a)}),[t,n]}}},n4e=["id"],r4e=["id"],i4e=["id"];function a4e(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{id:n.id,class:"float-left"},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,r4e)],8,n4e),n.useLegend?(l.openBlock(),l.createElementBlock("div",{key:0,style:l.normalizeStyle(`height: ${n.height}px; overflow: auto`)},[l.createElementVNode("div",{id:n.id+"legend"},null,8,i4e)],4)):l.createCommentVNode("",!0)],64)}const Xg=ar(t4e,[["render",a4e]]),o4e={props:{id:{type:String,required:!0},data:{type:Object,required:!0},unit:{type:String,default:"Cost ($)"},width:{type:Number,default:800},height:{type:Number,default:400},title:{type:String,default:""},valueName:{type:String,default:"Value"},theme:{type:String,default:"light"}},data(){return{svg:null}},mounted(){this.initializeChart(),this.createChart(this.data)},methods:{initializeChart(){this.svg=Ot("#"+this.id).append("svg").attr("width",this.width).attr("height",this.title?this.height+40:this.height)},createChart(e){const t=this.width,n=this.title?this.height+30:this.height,r=20,i=15,a=30,o=50;let s=this.unit==="Percent (%)"?100:0;e.values.forEach(d=>{d>s&&(s=d)});const u=kA(ii(e.slots),[o,t-i]),c=this.title?[n-a,r+30]:[n-a,r],A=Jo([0,s],c),f=(d,m)=>{const p=new Date(m.slots).toUTCString(),g=this.unit==="Bytes (B)"||this.unit==="B"?Jr(m.values)+"B":this.unit==="Percent (%)"?m.values.toFixed(2)+"%":this.unit==="Cost ($)"?NA(m.values):Xr(m.values),v=Ot("#"+this.id+"tooltip").html(`${this.data.name}<br>${p}<br>${this.valueName}: ${g}`).style("opacity",1).style("top",d.layerY+"px");if(d.layerX>t*3/4){const y=v.node().getBoundingClientRect().width;v.style("left",d.layerX-y+"px")}else v.style("left",d.layerX+"px")},h=(d,m)=>{Ot("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")};if(this.svg.append("g").attr("transform",`translate(0,${n-a})`).call(uo(u).ticks(t/80).tickSizeOuter(0)),this.svg.append("g").attr("transform",`translate(${o},0)`).call($d(A).ticks(n/40).tickFormat(d=>this.unit==="Bytes (B)"||this.unit==="B"?Jr(d):this.unit==="Cost ($)"?NA(d):Xr(d))).call(d=>d.select(".domain").remove()).call(d=>d.selectAll(".tick line").clone().attr("x2",t-o-i).attr("stroke-opacity",.1)).call(d=>d.append("text").attr("x",-o).attr("y",this.title?40:10).attr("fill","currentColor").attr("text-anchor","start").text(this.unit)).call(d=>d.append("text").attr("x",-o).attr("y",20).attr("fill","currentColor").attr("text-anchor","start").attr("font-weight","bold").attr("font-size","2em").text(this.title)),e.slots.length>0){const d=e.slots.map((m,p)=>({slots:m,values:e.values[p]}));this.svg.selectAll(".rect").data(d).enter().append("rect").attr("class",m=>this.id+"bar").attr("z-index",1).attr("x",m=>u(m.slots)-2).attr("y",m=>A(m.values)).attr("width",10).attr("height",m=>n-a-A(m.values)).attr("fill",jn[0]).on("mouseover",f).on("mouseout",h)}else this.svg.append("text").attr("x",t/2).attr("y",n/2).attr("text-anchor","middle").text("No data available")}}},s4e=["id"],l4e=["id"];function u4e(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock("div",{id:n.id},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,l4e)],8,s4e)}const c4e=ar(o4e,[["render",u4e]]),A4e={props:{id:{type:String,required:!0},data:{type:Object,required:!0},unit:{type:String,default:"Cost ($)"},width:{type:Number,default:300},height:{type:Number,default:600},title:{type:String,default:""},resizable:{type:Boolean,default:!1},tooltipOffset:{type:String,default:"layer"},valueName:{type:String,default:"Value"},theme:{type:String,default:"light"}},data(){return{svg:null}},mounted(){this.initializeChart(),this.createChart(this.data)},methods:{initializeChart(){this.resizable?this.svg=Ot("#"+this.id).append("svg").attr("viewBox",`0 0 ${this.width} ${this.title?this.height+40:this.height}`):this.svg=Ot("#"+this.id).append("svg").attr("width",this.width).attr("height",this.title?this.height+40:this.height)},createChart(e){const t=this.width,n=this.title?this.height+30:this.height,r=20,i=5,a=5,o=10,s=e.fields.reduce((h,d,m)=>(h[m]=d||"(no name)",h),{}),u=e.values.reduce((h,d,m)=>(h[m]=d||0,h),{}),c=h=>this.unit==="Bytes (B)"||this.unit==="B"?Jr(h)+"B":this.unit==="Cost ($)"?NA(h):this.unit==="Percent (%)"?h.toFixed(2)+"%":Xr(h),A=(h,d)=>{const m=c(d.values);h.target.style.opacity=.4,Ot("#"+this.id+"tooltip").html(`${d.field?d.field:"(no name)"}<br>${this.valueName}: ${m}`).style("opacity",1).style("left",h[this.tooltipOffset+"X"]+10+"px").style("top",h[this.tooltipOffset+"Y"]+"px")},f=(h,d)=>{h.target.style.opacity=0,Ot("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")};if(e.fields&&e.fields.length>0){let h=this.unit==="Percent (%)"?100:0;e.values.forEach(v=>{v>h&&(h=v)}),h===0&&(h=1);const d=Jo([0,h],[o,t-i-o]),m=this.title?[n-a,r+30]:[n-a,r],p=SA().range(m).domain(e.fields.map((v,y)=>y)).padding(.2),g=e.fields.map((v,y)=>({field:v,values:e.values[y]||0}));this.svg.selectAll(".rect").data(g).enter().append("rect").attr("class",v=>this.id+"bar").attr("z-index",1).attr("x",v=>d(0)).attr("y",(v,y)=>p(y)).attr("width",v=>0).attr("height",p.bandwidth()).attr("fill",(v,y)=>`${jn[y%jn.length]}${this.theme==="dark"?"CC":"99"}`).style("opacity",.8),this.svg.selectAll("rect").transition().duration(500).attr("x",v=>d(0)).attr("width",v=>d(v.values)-o).delay((v,y)=>y*50),this.svg.selectAll(".rect").data(g).enter().append("rect").attr("class",v=>this.id+"barEmpty").attr("z-index",1).attr("x",v=>d(0)).attr("y",(v,y)=>p(y)).attr("width",this.width-o).attr("height",p.bandwidth()).attr("fill",(v,y)=>`${jn[y%jn.length]}${this.theme==="dark"?"CC":"99"}`).style("opacity",0).on("mouseover",A).on("mouseout",f),this.svg.append("g").attr("transform",`translate(0,${r})`).call(Cbe(d).ticks(5).tickFormat(v=>this.unit==="Bytes (B)"||this.unit==="B"?Jr(v):this.unit==="Cost ($)"?NA(v):Xr(v))),this.svg.append("g").attr("transform",`translate(${o},0)`).call(Sbe(p).tickSize(0).tickFormat(v=>`${s[v]} - ${c(u[v])}`)).call(v=>v.select(".domain").remove()).call(v=>v.append("text").attr("x",-o).attr("y",20).attr("fill","currentColor").attr("text-anchor","start").attr("font-size","2em").text(this.title))}else this.svg.append("text").attr("x",t/2).attr("y",n/2).attr("text-anchor","middle").text("No data available")}}},d4e=["id"],f4e=["id"];function h4e(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock("div",{id:n.id},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,f4e)],8,d4e)}const gP=ar(A4e,[["render",h4e]]),p4e={props:{id:{type:String,required:!0},data:{type:Object,required:!0},change:{type:String,default:"neutral"},unit:{type:String,default:"Count"},width:{type:Number,default:350},height:{type:Number,default:200},hideAxis:{type:Boolean,default:!1},hideTooltip:{type:Boolean,default:!1},resizable:{type:Boolean,default:!1},tooltipOffset:{type:String,default:"layer"},valueName:{type:String,default:"Value"},theme:{type:String,default:"light"}},data(){return{svg:null}},watch:{data:{handler(){this.createChart(this.data)},deep:!0},theme:{handler(){this.svg&&this.updateTheme()},immediate:!1}},mounted(){this.initializeChart(),this.createChart(this.data)},methods:{initializeChart(){this.resizable?this.svg=Ot("#"+this.id).append("svg").attr("viewBox",`0 0 ${this.width} ${this.height}`):this.svg=Ot("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height);const e=this.data.color?this.data.color:Ai[this.theme][this.change],t=this.svg.append("defs").append("linearGradient").attr("id","gradientFill"+this.id).attr("x1","0%").attr("x2","0%").attr("y1","100%").attr("y2","0%");t.append("stop").attr("offset","0%").style("stop-color",Ai[this.theme].canvas).style("stop-opacity",.5),t.append("stop").attr("offset","100%").style("stop-color",e).style("stop-opacity",1)},createChart(e){const t=this.width,n=this.height,r=this.hideAxis?2:20,i=this.hideAxis?2:15,a=this.hideAxis?2:30,o=this.hideAxis?2:50,s=t>300?3:2,u=t>300?5:3,c=e.color?e.color:Ai[this.theme][this.change];let A=this.unit==="Percent (%)"?100:0;e.values.forEach(w=>{w>A&&(A=w)});const f=kA(ii(e.slots),[o,t-i]),h=Jo([0,A],[n-a,r]),d=(w,C)=>{const B=new Date(C.slots).toUTCString(),E=this.unit==="Bytes (B)"?Jr(C.values)+"B":this.unit==="Percent (%)"?C.values.toFixed(2)+"%":Xr(C.values);w.target.r.baseVal.value=u,Ot("#"+this.id+"tooltip").html(`Time: ${B}<br>${this.valueName}: ${E}`).style("opacity",1).style("left",w[this.tooltipOffset+"X"]+15+"px").style("top",w[this.tooltipOffset+"Y"]+"px")},m=(w,C)=>{w.target.r.baseVal.value=s,Ot("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},p=Kg().x((w,C)=>f(w.slots)).y((w,C)=>h(w.values)),g=iSe().x((w,C)=>f(w.slots)).y0(n-a).y1((w,C)=>h(w.values)),v=this.svg,y=this;v.selectAll("g").data([e]).join(w=>_(w),w=>_(w),w=>b(w));function _(w){w.append("g").call(C=>{C.append("g").call(B=>{B.append("g").attr("id",y.id+"xaxis").attr("transform",`translate(0,${n-a})`).call(uo(f).ticks(y.hideAxis?0:t/80).tickSizeOuter(0)),B.append("g").attr("id",y.id+"yaxis").attr("transform",`translate(${o},0)`).call($d(h).ticks(y.hideAxis?0:n/40).tickFormat(E=>y.unit==="Bytes (B)"?Jr(E):Xr(E))).call(E=>y.hideAxis?E.select(".domain").attr("stroke-width",.5):E.select(".domain").remove()).call(E=>E.selectAll(".tick line").clone().attr("x2",t-o-i).attr("stroke-opacity",.1)).call(E=>E.append("text").attr("x",-o).attr("y",10).attr("fill","currentColor").attr("text-anchor","start").text(y.hideAxis?"":y.unit))})}).call(C=>{C.append("g").call(B=>{if(B.append("path").attr("class",E=>y.id+"line").attr("z-index",1).attr("stroke",c).attr("stroke-width",1.5).attr("d",function(E){const N=E.slots.map((P,k)=>({slots:P,values:e.values[k]}));return p(N)}).attr("class","area").attr("d",function(E){const N=E.slots.map((P,k)=>({slots:P,values:e.values[k]}));return g(N)}).attr("fill","url(#gradientFill"+y.id+")"),!y.hideTooltip){const E=y.data.slots.map((N,P)=>({slots:N,values:y.data.values[P]}));B.append("g").call(N=>E.forEach(P=>{N.append("circle").attr("class",k=>y.id+"points").attr("stroke",c).attr("r",s).attr("cx",k=>f(P.slots)).attr("cy",k=>h(P.values)).on("mouseover",k=>d(k,P)).on("mouseout",k=>m(k))}))}})})}function b(w){w.call(C=>C.style("opacity",0).remove())}},updateTheme(){if(!this.svg)return;const e=this.data.color?this.data.color:Ai[this.theme][this.change],t=this.svg.select("#gradientFill"+this.id);if(t.node()){const n=t.selectAll("stop");Ot(n.nodes()[0]).style("stop-color",Ai[this.theme].canvas),Ot(n.nodes()[1]).style("stop-color",e)}}}},m4e=["id"],g4e=["id"];function v4e(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock("div",{id:n.id},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,g4e)],8,m4e)}const vP=ar(p4e,[["render",v4e]]),y4e={props:{id:{type:String,required:!0},data:{type:Object,required:!0},unit:{type:String,default:"Cost ($)"},width:{type:Number,default:575},height:{type:Number,default:350},title:{type:String,default:""},names:{type:Object,default:()=>{}},isTime:{type:Boolean,default:!0},tooltipOffset:{type:String,default:"layer"},slotName:{type:String,default:"Field"},valueName:{type:String,default:"Value"},theme:{type:String,default:"light"}},data(){return{svg:null,legend:null}},mounted(){this.initializeChart(),this.createChart(this.data)},methods:{initializeChart(){this.svg=Ot("#"+this.id).append("svg").attr("width",this.width).attr("height",this.title?this.height+30:this.height)},createChart(e){const t=this.width,n=this.title?this.height+30:this.height,r=20,i=15,a=30,o=50,s=[],u=Object.keys(this.names),c=(g,v)=>{const y=this.isTime?new Date(v.data[0]).toUTCString():v.data[0],_=v[1]-v[0],b=this.names[v.key]||v.key,w=this.unit==="Bytes (B)"?Jr(_)+"B":this.unit==="Percent (%)"?_.toFixed(2)+"%":this.unit==="Cost ($)"?"$"+_.toFixed(2):Xr(_);g.target.style.opacity=.7,Ot("#"+this.id+"tooltip").html(`${b}<br>${this.isTime?"Time":this.slotName}: ${y}<br>${this.valueName}: ${w}`).style("opacity",1).style("left",g[this.tooltipOffset+"X"]+10+"px").style("top",g[this.tooltipOffset+"Y"]+"px")},A=(g,v)=>{g.target.style.opacity=1,Ot("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},f=(g,v)=>{const y=u.indexOf(v.key);Pn("."+this.id+"bar").style("opacity",.7),Pn("."+this.id+y+"bar").style("opacity",1),Pn("#"+this.id+y+"dots").attr("r",6),Pn("."+this.id+y+"labels").attr("font-weight",1e3)},h=(g,v)=>{const y=u.indexOf(v.key);Pn("."+this.id+"bar").style("opacity",1),Pn("#"+this.id+y+"dots").attr("r",5),Pn("."+this.id+y+"labels").attr("font-weight",500)},d=(g,v)=>{const y=u.indexOf(v.key);Ot("."+this.id+"xaxis").remove(),Ot("."+this.id+"yaxis").remove(),Pn("#"+this.id+" rect").remove(),g.target.classList.contains("show")?(s.push(v.key),g.target.classList.remove("show"),g.target.classList.add("hide"),Pn("#"+this.id+y+"dots").attr("opacity","0.5")):(s.splice(s.indexOf(v.key),1),g.target.classList.remove("hide"),g.target.classList.add("show"),Pn("#"+this.id+y+"dots").attr("opacity","1")),m()},m=()=>{const g=e.series.filter(w=>!s.includes(w.name)),v=fP().keys(BO(g.map(w=>w.name))).value((w,C)=>w[1].get(C)===void 0?0:w[1].get(C).value)(gO(g,w=>w.slot,w=>w.name)),y=this.isTime?kA(ii(e.slots),[o,t-i]):SA(e.slots,[o,t-i]),_=this.title?[n-a,r+30]:[n-a,r],b=Jo([0,Pi(v,w=>Pi(w,C=>C[1]))],_);return this.svg.append("g").attr("transform",`translate(0,${n-a})`).attr("class",this.id+"xaxis").call(this.isTime?uo(y).ticks(t/80).tickSizeOuter(0):uo(y).ticks(t/20).tickSizeOuter(0).tickFormat(w=>{if(!this.isTime)return hA(w,(t-i)/e.slots.length*8)})),this.svg.append("g").attr("transform",`translate(${o},0)`).attr("class",this.id+"yaxis").call($d(b).ticks(n/40).tickFormat(w=>this.unit==="Bytes (B)"?Jr(w):this.unit==="Cost ($)"?NA(w):Xr(w))).call(w=>w.select(".domain").remove()).call(w=>w.selectAll(".tick line").clone().attr("x2",t-o-i).attr("stroke-opacity",.1)).call(w=>w.append("text").attr("x",-o).attr("y",this.title?40:10).attr("fill","currentColor").attr("text-anchor","start").text(this.unit)),this.svg.append("g").selectAll().data(v).join("g").attr("fill",w=>hC[this.theme][w.key]||`${jn[u.indexOf(w.key)%jn.length]}${this.theme==="dark"?"CC":"99"}`).selectAll("rect").data(w=>w.map(C=>(C.key=w.key,C))).join("rect").attr("class",w=>{const C=u.indexOf(w.key);return`${this.id}${C}bar ${this.id}bar`}).attr("x",w=>y(w.data[0])).attr("y",w=>b(w[1])).attr("height",w=>b(w[0])-b(w[1])).attr("width",this.isTime?15:Math.max(y.step()-5,15)).on("mouseover",c).on("mouseout",A),v},p=m();this.svg.append("g").call(g=>g.append("text").attr("x",0).attr("y",20).attr("fill","currentColor").attr("text-anchor","start").attr("font-weight","bold").attr("font-size","20px").text(this.title)),e.series.length===0&&this.svg.append("text").attr("x",t/2).attr("y",n/2).attr("text-anchor","middle").text("No data available").attr("fill","currentColor"),this.legend=Ot("#"+this.id+"legend").append("svg").attr("width",Math.max(this.width,p.length*125)).attr("height",20),this.legend.selectAll("legendDots").data(p).enter().append("circle").attr("id",g=>this.id+u.indexOf(g.key)+"dots").attr("class","show").attr("cx",(g,v)=>t/(p.length+1)+v*120-10).attr("cy",15).attr("r",5).attr("fill",(g,v)=>hC[this.theme][g.key]||`${jn[v%jn.length]}${this.theme==="dark"?"CC":"99"}`).on("mouseover",f).on("mouseout",h).on("click",d),this.legend.selectAll("legendLabels").data(p).enter().append("text").attr("class",g=>this.id+u.indexOf(g.key)+"labels").attr("x",(g,v)=>t/(p.length+1)+v*120).attr("y",15).attr("fill",(g,v)=>hC[this.theme][g.key]||`${jn[v%jn.length]}${this.theme==="dark"?"CC":"99"}`).text((g,v)=>hA(this.names[g[0].key],700)).attr("font-weight",500).attr("text-anchor","left").attr("font-size","11px").style("alignment-baseline","middle")}}},_4e=["id"],b4e=["id"],w4e=["id"];function B4e(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{id:n.id},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,b4e)],8,_4e),l.createElementVNode("div",{class:"overflow-auto",style:l.normalizeStyle(`width: ${n.width}px; overflow: auto`)},[l.createElementVNode("div",{id:n.id+"legend"},null,8,w4e)],4)],64)}const Jg=ar(y4e,[["render",B4e]]),x4e={props:{id:{type:String,required:!0},data:{type:Object,required:!0},names:{type:Object,default:{}},unit:{type:String,default:"Cost ($)"},width:{type:Number,default:575},height:{type:Number,default:350},isTime:{type:Boolean,default:!0},tooltipOffset:{type:String,default:"layer"},slotName:{type:String,default:"Field"},valueName:{type:String,default:"Value"},theme:{type:String,default:"light"}},data(){return{svg:null,legend:null}},mounted(){this.initializeChart(),this.createChart(this.data)},methods:{initializeChart(){this.svg=Ot("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height)},createChart(e){const t=this.width,n=this.height,r=20,i=15,a=30,o=50,s={},u={};e.forEach(_=>{s[_.action]=_.action,u[_.instance]=_.instance});const c=[],A=Object.keys(s),f=Object.keys(u),h=[];e.forEach(_=>{_.slots.forEach((b,w)=>{h.push({slot:b,action:_.action,instance:_.instance,value:_.values[w]})})});const d=(_,b)=>{const w=this.isTime?new Date(b.data[0]).toUTCString():b.data[0],C=b[1]-b[0],B=b.key.split(":")[0],E=this.names[b.key.split(":")[1]]||b.key.split(":")[1],N=this.unit==="Bytes (B)"?Jr(C)+"B":this.unit==="Percent (%)"?C.toFixed(2)+"%":this.unit==="Cost ($)"?"$"+C.toFixed(2):Xr(C);_.target.style.opacity=.7,Ot("#"+this.id+"tooltip").html(`${B}<br>Instance: ${E}<br>${this.isTime?"Time":this.slotName}: ${w}<br>${this.valueName}: ${N}`).style("opacity",1).style("left",_[this.tooltipOffset+"X"]+10+"px").style("top",_[this.tooltipOffset+"Y"]+"px")},m=(_,b)=>{_.target.style.opacity=1,Ot("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},p=(_,b)=>{const w=A.indexOf(b);Pn("."+this.id+"bar").style("opacity",.7),Pn("."+this.id+w+"bar").style("opacity",1),Pn("#"+this.id+w+"dots").attr("r",6),Pn("."+this.id+w+"labels").attr("font-weight",1e3)},g=(_,b)=>{const w=A.indexOf(b);Pn("."+this.id+"bar").style("opacity",1),Pn("#"+this.id+w+"dots").attr("r",5),Pn("."+this.id+w+"labels").attr("font-weight",500)},v=(_,b)=>{const w=A.indexOf(b);Ot("."+this.id+"xaxis").remove(),Ot("."+this.id+"yaxis").remove(),Pn("#"+this.id+" rect").remove(),_.target.classList.contains("show")?(c.push(b),_.target.classList.remove("show"),_.target.classList.add("hide"),Pn("#"+this.id+w+"dots").attr("opacity","0.5")):(c.splice(c.indexOf(b),1),_.target.classList.remove("hide"),_.target.classList.add("show"),Pn("#"+this.id+w+"dots").attr("opacity","1")),y()},y=()=>{const _=h.filter(D=>!c.includes(D.action)),b=_.map(D=>D.slot).filter((D,L,H)=>H.indexOf(D)===L),w=Pi(b),C=Dh(b),B=(w-C)/20,E=!w||!C?null:w+B,N=this.isTime?kA(ii([...b,E]),[o,t-i]):SA(b,[o,t-i]),P=Pi(_,D=>D.value),k=[n-a,r];for(const D of A)if(!c.includes(D)){const L=A.indexOf(D),H=h.filter(z=>z.action===D),K=fP().keys(BO(H.map(z=>z.action+":"+z.instance))).value((z,J)=>z[1].get(J)===void 0?0:z[1].get(J).value)(gO(H,z=>z.slot,z=>z.action+":"+z.instance)),q=Jo([0,P],k);this.svg.append("g").selectAll().data(K).join("g").attr("fill",z=>TA.scale[z.key.split(":")[0]](.5*f.indexOf(z.key.split(":")[1])/f.length+.5)||`${jn[A.indexOf(z.key.split(":")[0])%jn.length]}${this.theme==="dark"?"CC":"99"}`).selectAll("rect").data(z=>z.map(J=>(J.key=z.key,J))).join("rect").attr("class",z=>`${this.id}${L}bar ${this.id}bar`).attr("x",z=>N(z.data[0])+30*L/A.length).attr("y",z=>n-a).attr("width",Math.min((t-o-i)/b.length,25)/A.length).attr("height",0).attr("stroke","black").attr("stroke-width","0.5").on("mouseover",d).on("mouseout",m).transition().duration(1e3).attr("y",z=>q(z[1])).attr("height",z=>q(z[0])-q(z[1]))}const F=Jo([0,P],k);this.svg.append("g").attr("transform",`translate(0,${n-a})`).attr("class",this.id+"xaxis").call(this.isTime?uo(N).ticks(t/80).tickSizeOuter(0):uo(N).ticks(t/20).tickSizeOuter(0).tickFormat(D=>{if(!this.isTime)return hA(D,(t-i)/b.length*8)})),this.svg.append("g").attr("transform",`translate(${o},0)`).attr("class",this.id+"yaxis").call($d(F).ticks(n/40).tickFormat(D=>this.unit==="Bytes (B)"?Jr(D):this.unit==="Cost ($)"?NA(D):Xr(D))).call(D=>D.select(".domain").remove()).call(D=>D.selectAll(".tick line").clone().attr("x2",t-o-i).attr("stroke-opacity",.1)).call(D=>D.append("text").attr("x",-o).attr("y",10).attr("fill","currentColor").attr("text-anchor","start").text(this.unit))};y(),e.length===0&&this.svg.append("text").attr("x",t/2).attr("y",n/2).attr("text-anchor","middle").text("No data available").attr("fill","currentColor"),this.legend=Ot("#"+this.id+"legend").append("svg").attr("width",Math.max(this.width,A.length*100)).attr("height",30),this.legend.selectAll("legendDots").data(A).enter().append("circle").attr("id",_=>this.id+A.indexOf(_)+"dots").attr("class","show").attr("cx",(_,b)=>t/(A.length+1)+b*100-10).attr("cy",5).attr("r",5).attr("fill",(_,b)=>TA[this.theme][_]||`${jn[b%jn.length]}${this.theme==="dark"?"CC":"99"}`).on("mouseover",p).on("mouseout",g).on("click",v),this.legend.selectAll("legendLabels").data(A).enter().append("text").attr("class",_=>this.id+A.indexOf(_)+"labels").attr("x",(_,b)=>t/(A.length+1)+b*100).attr("y",5).attr("fill",(_,b)=>TA[this.theme][_]||`${jn[b%jn.length]}${this.theme==="dark"?"CC":"99"}`).text((_,b)=>hA(_,700)).attr("font-weight",500).attr("text-anchor","left").attr("font-size","11px").style("alignment-baseline","middle")}}},C4e=["id"],S4e=["id"],k4e=["id"];function M4e(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock(l.Fragment,null,[l.createElementVNode("div",{id:n.id},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,S4e)],8,C4e),l.createElementVNode("div",{class:"overflow-auto",style:l.normalizeStyle(`width: ${n.width}px; overflow: auto`)},[l.createElementVNode("div",{id:n.id+"legend"},null,8,k4e)],4)],64)}const E4e=ar(x4e,[["render",M4e]]),L4e={props:{id:{type:String,required:!0},data:{type:Array,required:!0},unit:{type:String,default:"Count"},width:{type:Number,default:350},height:{type:Number,default:200},tooltipOffset:{type:String,default:"layer"},valueName:{type:String,default:"Value"},theme:{type:String,default:"light"}},data(){return{svg:null,legend:null}},mounted(){this.initializeChart(),this.createChart()},watch:{theme(){this.updateThemeStyles()}},methods:{initializeChart(){this.svg=Ot("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height-10)},createChart(){const e=this.width,t=this.height-20,n=Math.min(e,t)/2,r=n*2+100>e?n>150?n-75:n-50:n,i={};this.data.forEach((b,w)=>{i[b.field]=w});const a=sSe().value(b=>b.values),o=iC().innerRadius(0).outerRadius(r),s=iC().innerRadius(r*.9).outerRadius(r*.9),u=(b,w)=>{const C=!b.target.id||b.target.id.endsWith("dots")?t/2:b[this.tooltipOffset+"Y"],B=!b.target.id||b.target.id.endsWith("dots")?0:b[this.tooltipOffset+"X"],E=i[w.data.field],N=this.unit==="Bytes (B)"||this.unit==="B"?Jr(w.data.values)+"B":this.unit==="Percent (%)"?w.data.values.toFixed(2)+"%":Xr(w.data.values);Pn("."+this.id+"pie").style("opacity",.4),Ot("#"+this.id+E+"pie").style("opacity",1),Pn("."+this.id+"labels").style("opacity",.4),Ot("#"+this.id+E+"labels").style("opacity",1),Ot("#"+this.id+E+"polyline").style("opacity",1),Ot("#"+this.id+"tooltip").html(`${w.data.field}<br>${this.valueName}: ${N} (${((w.endAngle-w.startAngle)/(2*Math.PI)*100).toFixed(2)}%)`).style("opacity",1).style("left",B+10+"px").style("top",C+"px")},c=()=>{Pn("."+this.id+"pie").style("opacity",.8),Pn("."+this.id+"labels").style("opacity",1),Ot("#"+this.id+"tooltip").style("opacity",0).style("left","0px").style("top","0px")},A=a(this.data),f=A.reduce((b,w)=>b+w.data.values,0),h=e/t,d=h>2?h>2.5?1500:900:600,p=(b=>{const w=r<100?12:14;return b.map((C,B)=>{if(B===0)return C;if(!f){const P=b[B-1].pos[1]-C.pos[1]+w;return C.pos[1]+=P,C}const E=(b[B-1].startAngle+b[B-1].endAngle)/2,N=(C.startAngle+C.endAngle)/2;if(E<Math.PI&&N>Math.PI)return C;if(E>Math.PI&&N<Math.PI)return C;if(N>Math.PI){const P=b[B-1].pos[1]-C.pos[1]+w;P>0&&(C.pos[1]+=P)}else{const P=C.pos[1]-b[B-1].pos[1]+w;P>0&&(C.pos[1]-=P)}return C})})(A.map(b=>f?{...b,pos:s.centroid(b)}:{...b,pos:s.centroid({startAngle:2*Math.PI,endAngle:2*Math.PI})}).sort((b,w)=>w.startAngle-b.startAngle)),g=this.svg,v=this;g.selectAll("g").data(p).join(b=>y(b),b=>y(b),b=>_(b));function y(b){const w=b.append("g"),C=b.append("g");w.append("path").attr("class",v.id+"pie").attr("id",B=>v.id+i[B.data.field]+"pie").attr("transform",`translate(${e/2},${t/2+10})`).attr("d",B=>(f||(B.endAngle=Math.PI*A.length),o(B))).attr("fill",(B,E)=>f?`${jn[E%jn.length]}${v.theme==="dark"?"CC":"99"}`:jn[0]).style("opacity",.8).style("fill-opacity",0).on("mouseover",u).on("mouseout",c).transition().duration(800).attrTween("d",function(B){const E=pu(v._current,B);return v._current=E(1),N=>o(E(N))}).style("fill-opacity",1),C.append("polyline").attr("class",v.id+"labels").attr("id",B=>v.id+i[B.data.field]+"polyline").attr("points",B=>{const E=B.pos,P=(B.startAngle+B.endAngle)/2<Math.PI?r*1.1:-r*1.1;if(!f){const k=-r*1.1;return[o.centroid({startAngle:0,endAngle:0}),s.centroid({startAngle:0,endAngle:0}),[k,E[1]]]}return[o.centroid(B),s.centroid(B),[P,E[1]]]}).attr("fill","none").style("stroke",v.theme==="dark"?"white":"black").attr("transform",`translate(${e/2},${t/2})`).style("opacity",0).transition().duration(800).style("opacity",1),C.append("text").attr("class",v.id+"labels").attr("id",B=>v.id+i[B.data.field]+"labels").attr("transform",B=>{const E=B.pos;return`translate(${((B.startAngle+B.endAngle)/2<Math.PI?r*1.15:-r*1.15)+e/2},${E[1]+t/2})`}).attr("text-anchor",B=>(B.startAngle+B.endAngle)/2<Math.PI?"start":"end").attr("font-size",r<100?"9px":"11px").style("fill",v.theme==="dark"?"white":"black").text(B=>B.data.field===0?0:B.data.field?hA(B.data.field,d):"(no name)").on("mouseover",u).on("mouseout",c).style("opacity",0).transition().duration(1200).style("opacity",1)}function _(b){b.call(w=>w.style("opacity",0).remove())}},updateThemeStyles(){if(!this.svg)return;const e=this.data.reduce((n,r)=>n+(r.values||0),0),t=this.theme==="dark"?"white":"black";this.svg.selectAll("polyline."+this.id+"labels").style("stroke",t),this.svg.selectAll("text."+this.id+"labels").style("fill",t),this.svg.selectAll("path."+this.id+"pie").attr("fill",(n,r)=>e?`${jn[r%jn.length]}${this.theme==="dark"?"CC":"99"}`:jn[0])}}},T4e={class:"flex w-full flex-col items-center"},N4e=["id"],F4e=["id"],O4e=["id"];function D4e(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock("div",T4e,[l.createElementVNode("div",{id:n.id},[l.createElementVNode("div",{id:n.id+"tooltip",role:"tooltip",class:"tooltip"},null,8,F4e)],8,N4e),l.createElementVNode("div",{class:"overflow-auto",style:l.normalizeStyle(`width: ${n.width}px; overflow: auto`)},[l.createElementVNode("div",{id:n.id+"legend"},null,8,O4e)],4)])}const yP=ar(L4e,[["render",D4e]]),I4e={props:{id:{type:String,required:!0},data:{type:Object,required:!0},width:{type:Number,default:350},height:{type:Number,default:200},theme:{type:String,default:"light"}},data(){return{svg:null,legend:null}},watch:{theme:{handler(){this.svg&&this.createChart()},immediate:!0}},mounted(){this.initializeChart(),this.createChart()},methods:{initializeChart(){this.svg=Ot("#"+this.id).append("svg").attr("width",this.width).attr("height",this.height)},createChart(){const e=this.width,t=this.height,n=Math.min(e,t)/2,r=this.data.progress,i=iC().innerRadius(n*.7).outerRadius(n).startAngle(0);this.svg.append("path").datum({endAngle:2*Math.PI}).attr("d",i).attr("fill",Ai[this.theme].canvas).attr("transform",`translate(${e/2},${t/2})`),this.svg.append("path").datum({endAngle:0}).attr("d",i).attr("fill",Ai[this.theme].secondary).attr("transform",`translate(${e/2},${t/2})`).transition().duration(1e3).call(a=>a.attrTween("d",o=>{const s=pu(0,r*2*Math.PI);return u=>(o.endAngle=s(u),i(o))})),this.svg.append("text").attr("text-anchor","middle").attr("dy","0.35em").style("font-size","35px").text("0%").style("fill",Ai[this.theme].text).attr("transform",`translate(${e/2},${t/2})`).transition().duration(1e3).tween("text",function(){const a=pu(0,r*100);return function(o){this.textContent=`${Math.round(a(o))}%`}})}}},U4e=["id"];function P4e(e,t,n,r,i,a){return l.openBlock(),l.createElementBlock("div",{id:n.id,class:"float-left"},null,8,U4e)}const H4e=ar(I4e,[["render",P4e]]);function FA(e){return e!=null&&!Number.isNaN(e)}function vf(e,t){return+FA(t)-+FA(e)||wA(e,t)}function gC(e,t){return+FA(t)-+FA(e)||ig(e,t)}function vC(e){return e!=null&&`${e}`!=""}function _P(e){return isFinite(e)?e:NaN}function w_(e){return e>0&&isFinite(e)?e:NaN}function yC(e){return e<0&&isFinite(e)?e:NaN}function Y4e(e,t){if(e instanceof Date||(e=new Date(+e)),isNaN(e))return typeof t=="function"?t(e):t;const n=e.getUTCHours(),r=e.getUTCMinutes(),i=e.getUTCSeconds(),a=e.getUTCMilliseconds();return`${R4e(e.getUTCFullYear())}-${wc(e.getUTCMonth()+1,2)}-${wc(e.getUTCDate(),2)}${n||r||i||a?`T${wc(n,2)}:${wc(r,2)}${i||a?`:${wc(i,2)}${a?`.${wc(a,3)}`:""}`:""}Z`:""}`}function R4e(e){return e<0?`-${wc(-e,6)}`:e>9999?`+${wc(e,6)}`:wc(e,4)}function wc(e,t){return`${e}`.padStart(t,"0")}const Q4e=/^(?:[-+]\d{2})?\d{4}(?:-\d{2}(?:-\d{2})?)?(?:T\d{2}:\d{2}(?::\d{2}(?:\.\d{3})?)?(?:Z|[-+]\d{2}:?\d{2})?)?$/;function bP(e,t){return Q4e.test(e+="")?new Date(e):typeof t=="function"?t(e):t}function np(e){if(e==null)return;const t=e[0],n=e[e.length-1];return ig(t,n)}const rp=1e3,OA=rp*60,DA=OA*60,bu=DA*24,wu=bu*7,yf=bu*30,IA=bu*365,_C=[["millisecond",1],["2 milliseconds",2],["5 milliseconds",5],["10 milliseconds",10],["20 milliseconds",20],["50 milliseconds",50],["100 milliseconds",100],["200 milliseconds",200],["500 milliseconds",500],["second",rp],["5 seconds",5*rp],["15 seconds",15*rp],["30 seconds",30*rp],["minute",OA],["5 minutes",5*OA],["15 minutes",15*OA],["30 minutes",30*OA],["hour",DA],["3 hours",3*DA],["6 hours",6*DA],["12 hours",12*DA],["day",bu],["2 days",2*bu],["week",wu],["2 weeks",2*wu],["month",yf],["3 months",3*yf],["6 months",6*yf],["year",IA],["2 years",2*IA],["5 years",5*IA],["10 years",10*IA],["20 years",20*IA],["50 years",50*IA],["100 years",100*IA]],bC=new Map([["second",rp],["minute",OA],["hour",DA],["day",bu],["monday",wu],["tuesday",wu],["wednesday",wu],["thursday",wu],["friday",wu],["saturday",wu],["sunday",wu],["week",wu],["month",yf],["year",IA]]),wP=new Map([["second",fl],["minute",Ng],["hour",df],["day",ff],["monday",Dg],["tuesday",nI],["wednesday",rI],["thursday",pf],["friday",iI],["saturday",aI],["sunday",Zh],["week",Zh],["month",Ug],["year",hl]]),wC=new Map([["second",fl],["minute",Fg],["hour",Og],["day",r_],["monday",Ig],["tuesday",oI],["wednesday",sI],["thursday",gf],["friday",lI],["saturday",uI],["sunday",$h],["week",$h],["month",Pg],["year",pl]]),Zg=Symbol("intervalDuration"),B_=Symbol("intervalType");for(const[e,t]of wP)t[Zg]=bC.get(e),t[B_]="time";for(const[e,t]of wC)t[Zg]=bC.get(e),t[B_]="utc";const $g=[["year",pl,"utc"],["month",Pg,"utc"],["day",r_,"utc",6*yf],["hour",Og,"utc",3*bu],["minute",Fg,"utc",6*DA],["second",fl,"utc",30*OA]],x_=[["year",hl,"time"],["month",Ug,"time"],["day",ff,"time",6*yf],["hour",df,"time",3*bu],["minute",Ng,"time",6*DA],["second",fl,"time",30*OA]],j4e=[$g[0],x_[0],$g[1],x_[1],$g[2],x_[2],...$g.slice(3)];function BP(e){let t=`${e}`.toLowerCase();t.endsWith("s")&&(t=t.slice(0,-1));let n=1;const r=/^(?:(\d+)\s+)/.exec(t);switch(r&&(t=t.slice(r[0].length),n=+r[1]),t){case"quarter":t="month",n*=3;break;case"half":t="month",n*=6;break}let i=wC.get(t);if(!i)throw new Error(`unknown interval: ${e}`);if(n>1&&!i.every)throw new Error(`non-periodic interval: ${t}`);return[t,n]}function xP(e){return CP(BP(e),"time")}function BC(e){return CP(BP(e),"utc")}function CP([e,t],n){let r=(n==="time"?wP:wC).get(e);return t>1&&(r=r.every(t),r[Zg]=bC.get(e)*t,r[B_]=n),r}function SP(e,t){if(!(t>1))return;const n=e[Zg];if(!_C.some(([,i])=>i===n)||n%bu===0&&bu<n&&n<yf)return;const[r]=_C[X1(([,i])=>Math.log(i)).center(_C,Math.log(n*t))];return(e[B_]==="time"?xP:BC)(r)}function kP(e,t,n){const r=t==="time"?Qg:jg;if(n==null)return r(e==="year"?"%Y":e==="month"?"%Y-%m":e==="day"?"%Y-%m-%d":e==="hour"||e==="minute"?"%Y-%m-%dT%H:%M":e==="second"?"%Y-%m-%dT%H:%M:%S":"%Y-%m-%dT%H:%M:%S.%L");const i=V4e(n);switch(e){case"millisecond":return ip(r(".%L"),r(":%M:%S"),i);case"second":return ip(r(":%S"),r("%-I:%M"),i);case"minute":return ip(r("%-I:%M"),r("%p"),i);case"hour":return ip(r("%-I %p"),r("%b %-d"),i);case"day":return ip(r("%-d"),r("%b"),i);case"month":return ip(r("%b"),r("%Y"),i);case"year":return r("%Y")}throw new Error("unable to format time ticks")}function V4e(e){return e==="left"||e==="right"?(t,n)=>`
91
91
  ${t}
92
92
  ${n}`:e==="top"?(t,n)=>`${n}
93
93
  ${t}`:(t,n)=>`${t}